function Xp(a,i){for(var s=0;s<i.length;s++){const c=i[s];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(c,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();var Fb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var tc={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 Bh;function Zp(){if(Bh)return Za;Bh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(c,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var y in f)y!=="key"&&(d[y]=f[y])}else d=f;return f=d.ref,{$$typeof:a,type:c,key:h,ref:f!==void 0?f:null,props:d}}return Za.Fragment=i,Za.jsx=s,Za.jsxs=s,Za}var Lh;function Vp(){return Lh||(Lh=1,tc.exports=Zp()),tc.exports}var x=Vp(),ec={exports:{}},ot={};/**
 * @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 Yh;function Jp(){if(Yh)return ot;Yh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),C=Symbol.iterator;function L(b){return b===null||typeof b!="object"?null:(b=C&&b[C]||b["@@iterator"],typeof b=="function"?b:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,$={};function it(b,U,w){this.props=b,this.context=U,this.refs=$,this.updater=w||Z}it.prototype.isReactComponent={},it.prototype.setState=function(b,U){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,U,"setState")},it.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function ht(){}ht.prototype=it.prototype;function jt(b,U,w){this.props=b,this.context=U,this.refs=$,this.updater=w||Z}var qt=jt.prototype=new ht;qt.constructor=jt,Q(qt,it.prototype),qt.isPureReactComponent=!0;var F=Array.isArray;function V(){}var D={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function J(b,U,w){var B=w.ref;return{$$typeof:a,type:b,key:U,ref:B!==void 0?B:null,props:w}}function et(b,U){return J(b.type,U,b.props)}function lt(b){return typeof b=="object"&&b!==null&&b.$$typeof===a}function tt(b){var U={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(w){return U[w]})}var I=/\/+/g;function rt(b,U){return typeof b=="object"&&b!==null&&b.key!=null?tt(""+b.key):U.toString(36)}function ct(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(V,V):(b.status="pending",b.then(function(U){b.status==="pending"&&(b.status="fulfilled",b.value=U)},function(U){b.status==="pending"&&(b.status="rejected",b.reason=U)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function T(b,U,w,B,P){var st=typeof b;(st==="undefined"||st==="boolean")&&(b=null);var St=!1;if(b===null)St=!0;else switch(st){case"bigint":case"string":case"number":St=!0;break;case"object":switch(b.$$typeof){case a:case i:St=!0;break;case z:return St=b._init,T(St(b._payload),U,w,B,P)}}if(St)return P=P(b),St=B===""?"."+rt(b,0):B,F(P)?(w="",St!=null&&(w=St.replace(I,"$&/")+"/"),T(P,U,w,"",function(Wn){return Wn})):P!=null&&(lt(P)&&(P=et(P,w+(P.key==null||b&&b.key===P.key?"":(""+P.key).replace(I,"$&/")+"/")+St)),U.push(P)),1;St=0;var ae=B===""?".":B+":";if(F(b))for(var Lt=0;Lt<b.length;Lt++)B=b[Lt],st=ae+rt(B,Lt),St+=T(B,U,w,st,P);else if(Lt=L(b),typeof Lt=="function")for(b=Lt.call(b),Lt=0;!(B=b.next()).done;)B=B.value,st=ae+rt(B,Lt++),St+=T(B,U,w,st,P);else if(st==="object"){if(typeof b.then=="function")return T(ct(b),U,w,B,P);throw U=String(b),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return St}function H(b,U,w){if(b==null)return b;var B=[],P=0;return T(b,B,"","",function(st){return U.call(w,st,P++)}),B}function G(b){if(b._status===-1){var U=b._result;U=U(),U.then(function(w){(b._status===0||b._status===-1)&&(b._status=1,b._result=w)},function(w){(b._status===0||b._status===-1)&&(b._status=2,b._result=w)}),b._status===-1&&(b._status=0,b._result=U)}if(b._status===1)return b._result.default;throw b._result}var at=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},mt={map:H,forEach:function(b,U,w){H(b,function(){U.apply(this,arguments)},w)},count:function(b){var U=0;return H(b,function(){U++}),U},toArray:function(b){return H(b,function(U){return U})||[]},only:function(b){if(!lt(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return ot.Activity=_,ot.Children=mt,ot.Component=it,ot.Fragment=s,ot.Profiler=f,ot.PureComponent=jt,ot.StrictMode=c,ot.Suspense=v,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,ot.__COMPILER_RUNTIME={__proto__:null,c:function(b){return D.H.useMemoCache(b)}},ot.cache=function(b){return function(){return b.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(b,U,w){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var B=Q({},b.props),P=b.key;if(U!=null)for(st in U.key!==void 0&&(P=""+U.key),U)!X.call(U,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&U.ref===void 0||(B[st]=U[st]);var st=arguments.length-2;if(st===1)B.children=w;else if(1<st){for(var St=Array(st),ae=0;ae<st;ae++)St[ae]=arguments[ae+2];B.children=St}return J(b.type,P,B)},ot.createContext=function(b){return b={$$typeof:h,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:d,_context:b},b},ot.createElement=function(b,U,w){var B,P={},st=null;if(U!=null)for(B in U.key!==void 0&&(st=""+U.key),U)X.call(U,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(P[B]=U[B]);var St=arguments.length-2;if(St===1)P.children=w;else if(1<St){for(var ae=Array(St),Lt=0;Lt<St;Lt++)ae[Lt]=arguments[Lt+2];P.children=ae}if(b&&b.defaultProps)for(B in St=b.defaultProps,St)P[B]===void 0&&(P[B]=St[B]);return J(b,st,P)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(b){return{$$typeof:y,render:b}},ot.isValidElement=lt,ot.lazy=function(b){return{$$typeof:z,_payload:{_status:-1,_result:b},_init:G}},ot.memo=function(b,U){return{$$typeof:p,type:b,compare:U===void 0?null:U}},ot.startTransition=function(b){var U=D.T,w={};D.T=w;try{var B=b(),P=D.S;P!==null&&P(w,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(V,at)}catch(st){at(st)}finally{U!==null&&w.types!==null&&(U.types=w.types),D.T=U}},ot.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},ot.use=function(b){return D.H.use(b)},ot.useActionState=function(b,U,w){return D.H.useActionState(b,U,w)},ot.useCallback=function(b,U){return D.H.useCallback(b,U)},ot.useContext=function(b){return D.H.useContext(b)},ot.useDebugValue=function(){},ot.useDeferredValue=function(b,U){return D.H.useDeferredValue(b,U)},ot.useEffect=function(b,U){return D.H.useEffect(b,U)},ot.useEffectEvent=function(b){return D.H.useEffectEvent(b)},ot.useId=function(){return D.H.useId()},ot.useImperativeHandle=function(b,U,w){return D.H.useImperativeHandle(b,U,w)},ot.useInsertionEffect=function(b,U){return D.H.useInsertionEffect(b,U)},ot.useLayoutEffect=function(b,U){return D.H.useLayoutEffect(b,U)},ot.useMemo=function(b,U){return D.H.useMemo(b,U)},ot.useOptimistic=function(b,U){return D.H.useOptimistic(b,U)},ot.useReducer=function(b,U,w){return D.H.useReducer(b,U,w)},ot.useRef=function(b){return D.H.useRef(b)},ot.useState=function(b){return D.H.useState(b)},ot.useSyncExternalStore=function(b,U,w){return D.H.useSyncExternalStore(b,U,w)},ot.useTransition=function(){return D.H.useTransition()},ot.version="19.2.1",ot}var Gh;function Ci(){return Gh||(Gh=1,ec.exports=Jp()),ec.exports}var Y=Ci();const kp=Kp(Y),xm=Xp({__proto__:null,default:kp},[Y]);var lc={exports:{}},Va={},nc={exports:{}},ac={};/**
 * @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 Xh;function Fp(){return Xh||(Xh=1,(function(a){function i(T,H){var G=T.length;T.push(H);t:for(;0<G;){var at=G-1>>>1,mt=T[at];if(0<f(mt,H))T[at]=H,T[G]=mt,G=at;else break t}}function s(T){return T.length===0?null:T[0]}function c(T){if(T.length===0)return null;var H=T[0],G=T.pop();if(G!==H){T[0]=G;t:for(var at=0,mt=T.length,b=mt>>>1;at<b;){var U=2*(at+1)-1,w=T[U],B=U+1,P=T[B];if(0>f(w,G))B<mt&&0>f(P,w)?(T[at]=P,T[B]=G,at=B):(T[at]=w,T[U]=G,at=U);else if(B<mt&&0>f(P,G))T[at]=P,T[B]=G,at=B;else break t}}return H}function f(T,H){var G=T.sortIndex-H.sortIndex;return G!==0?G:T.id-H.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,y=h.now();a.unstable_now=function(){return h.now()-y}}var v=[],p=[],z=1,_=null,C=3,L=!1,Z=!1,Q=!1,$=!1,it=typeof setTimeout=="function"?setTimeout:null,ht=typeof clearTimeout=="function"?clearTimeout:null,jt=typeof setImmediate<"u"?setImmediate:null;function qt(T){for(var H=s(p);H!==null;){if(H.callback===null)c(p);else if(H.startTime<=T)c(p),H.sortIndex=H.expirationTime,i(v,H);else break;H=s(p)}}function F(T){if(Q=!1,qt(T),!Z)if(s(v)!==null)Z=!0,V||(V=!0,tt());else{var H=s(p);H!==null&&ct(F,H.startTime-T)}}var V=!1,D=-1,X=5,J=-1;function et(){return $?!0:!(a.unstable_now()-J<X)}function lt(){if($=!1,V){var T=a.unstable_now();J=T;var H=!0;try{t:{Z=!1,Q&&(Q=!1,ht(D),D=-1),L=!0;var G=C;try{e:{for(qt(T),_=s(v);_!==null&&!(_.expirationTime>T&&et());){var at=_.callback;if(typeof at=="function"){_.callback=null,C=_.priorityLevel;var mt=at(_.expirationTime<=T);if(T=a.unstable_now(),typeof mt=="function"){_.callback=mt,qt(T),H=!0;break e}_===s(v)&&c(v),qt(T)}else c(v);_=s(v)}if(_!==null)H=!0;else{var b=s(p);b!==null&&ct(F,b.startTime-T),H=!1}}break t}finally{_=null,C=G,L=!1}H=void 0}}finally{H?tt():V=!1}}}var tt;if(typeof jt=="function")tt=function(){jt(lt)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,rt=I.port2;I.port1.onmessage=lt,tt=function(){rt.postMessage(null)}}else tt=function(){it(lt,0)};function ct(T,H){D=it(function(){T(a.unstable_now())},H)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(T){T.callback=null},a.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<T?Math.floor(1e3/T):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(T){switch(C){case 1:case 2:case 3:var H=3;break;default:H=C}var G=C;C=H;try{return T()}finally{C=G}},a.unstable_requestPaint=function(){$=!0},a.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var G=C;C=T;try{return H()}finally{C=G}},a.unstable_scheduleCallback=function(T,H,G){var at=a.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?at+G:at):G=at,T){case 1:var mt=-1;break;case 2:mt=250;break;case 5:mt=1073741823;break;case 4:mt=1e4;break;default:mt=5e3}return mt=G+mt,T={id:z++,callback:H,priorityLevel:T,startTime:G,expirationTime:mt,sortIndex:-1},G>at?(T.sortIndex=G,i(p,T),s(v)===null&&T===s(p)&&(Q?(ht(D),D=-1):Q=!0,ct(F,G-at))):(T.sortIndex=mt,i(v,T),Z||L||(Z=!0,V||(V=!0,tt()))),T},a.unstable_shouldYield=et,a.unstable_wrapCallback=function(T){var H=C;return function(){var G=C;C=H;try{return T.apply(this,arguments)}finally{C=G}}}})(ac)),ac}var Kh;function $p(){return Kh||(Kh=1,nc.exports=Fp()),nc.exports}var uc={exports:{}},le={};/**
 * @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 Zh;function Pp(){if(Zh)return le;Zh=1;var a=Ci();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)p+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(v,p,z){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:_==null?null:""+_,children:v,containerInfo:p,implementation:z}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,le.createPortal=function(v,p){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(v,p,null,z)},le.flushSync=function(v){var p=h.T,z=c.p;try{if(h.T=null,c.p=2,v)return v()}finally{h.T=p,c.p=z,c.d.f()}},le.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(v,p))},le.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},le.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var z=p.as,_=y(z,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,L=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;z==="style"?c.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:C,fetchPriority:L}):z==="script"&&c.d.X(v,{crossOrigin:_,integrity:C,fetchPriority:L,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},le.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var z=y(p.as,p.crossOrigin);c.d.M(v,{crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(v)},le.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var z=p.as,_=y(z,p.crossOrigin);c.d.L(v,z,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},le.preloadModule=function(v,p){if(typeof v=="string")if(p){var z=y(p.as,p.crossOrigin);c.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(v)},le.requestFormReset=function(v){c.d.r(v)},le.unstable_batchedUpdates=function(v,p){return v(p)},le.useFormState=function(v,p,z){return h.H.useFormState(v,p,z)},le.useFormStatus=function(){return h.H.useHostTransitionStatus()},le.version="19.2.1",le}var Vh;function Wp(){if(Vh)return uc.exports;Vh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),uc.exports=Pp(),uc.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 Jh;function Ip(){if(Jh)return Va;Jh=1;var a=$p(),i=Ci(),s=Wp();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(d(t)!==t)throw Error(c(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var l=t,n=e;;){var u=l.return;if(u===null)break;var r=u.alternate;if(r===null){if(n=u.return,n!==null){l=n;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===l)return v(u),t;if(r===n)return v(u),e;r=r.sibling}throw Error(c(188))}if(l.return!==n.return)l=u,n=r;else{for(var o=!1,m=u.child;m;){if(m===l){o=!0,l=u,n=r;break}if(m===n){o=!0,n=u,l=r;break}m=m.sibling}if(!o){for(m=r.child;m;){if(m===l){o=!0,l=r,n=u;break}if(m===n){o=!0,n=r,l=u;break}m=m.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==n)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function z(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=z(t),e!==null)return e;t=t.sibling}return null}var _=Object.assign,C=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),it=Symbol.for("react.profiler"),ht=Symbol.for("react.consumer"),jt=Symbol.for("react.context"),qt=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=lt&&t[lt]||t["@@iterator"],typeof t=="function"?t:null)}var I=Symbol.for("react.client.reference");function rt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===I?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Q:return"Fragment";case it:return"Profiler";case $:return"StrictMode";case F:return"Suspense";case V:return"SuspenseList";case J:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case jt:return t.displayName||"Context";case ht:return(t._context.displayName||"Context")+".Consumer";case qt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case D:return e=t.displayName||null,e!==null?e:rt(t.type)||"Memo";case X:e=t._payload,t=t._init;try{return rt(t(e))}catch{}}return null}var ct=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},at=[],mt=-1;function b(t){return{current:t}}function U(t){0>mt||(t.current=at[mt],at[mt]=null,mt--)}function w(t,e){mt++,at[mt]=t.current,t.current=e}var B=b(null),P=b(null),st=b(null),St=b(null);function ae(t,e){switch(w(st,e),w(P,t),w(B,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?sh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=sh(e),t=ch(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(B),w(B,t)}function Lt(){U(B),U(P),U(st)}function Wn(t){t.memoizedState!==null&&w(St,t);var e=B.current,l=ch(e,t.type);e!==l&&(w(P,t),w(B,l))}function tu(t){P.current===t&&(U(B),U(P)),St.current===t&&(U(St),Ya._currentValue=G)}var Qi,Qc;function Bl(t){if(Qi===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Qi=e&&e[1]||"",Qc=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Qi+t+Qc}var Hi=!1;function wi(t,e){if(!t||Hi)return"";Hi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){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(M){var A=M}Reflect.construct(t,[],q)}else{try{q.call()}catch(M){A=M}t.call(q.prototype)}}else{try{throw Error()}catch(M){A=M}(q=t())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(M){if(M&&A&&typeof M.stack=="string")return[M.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),o=r[0],m=r[1];if(o&&m){var g=o.split(`
`),j=m.split(`
`);for(u=n=0;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;for(;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;if(n===g.length||u===j.length)for(n=g.length-1,u=j.length-1;1<=n&&0<=u&&g[n]!==j[u];)u--;for(;1<=n&&0<=u;n--,u--)if(g[n]!==j[u]){if(n!==1||u!==1)do if(n--,u--,0>u||g[n]!==j[u]){var R=`
`+g[n].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=n&&0<=u);break}}}finally{Hi=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Bl(l):""}function Sy(t,e){switch(t.tag){case 26:case 27:case 5:return Bl(t.type);case 16:return Bl("Lazy");case 13:return t.child!==e&&e!==null?Bl("Suspense Fallback"):Bl("Suspense");case 19:return Bl("SuspenseList");case 0:case 15:return wi(t.type,!1);case 11:return wi(t.type.render,!1);case 1:return wi(t.type,!0);case 31:return Bl("Activity");default:return""}}function Hc(t){try{var e="",l=null;do e+=Sy(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var Bi=Object.prototype.hasOwnProperty,Li=a.unstable_scheduleCallback,Yi=a.unstable_cancelCallback,xy=a.unstable_shouldYield,Oy=a.unstable_requestPaint,me=a.unstable_now,_y=a.unstable_getCurrentPriorityLevel,wc=a.unstable_ImmediatePriority,Bc=a.unstable_UserBlockingPriority,eu=a.unstable_NormalPriority,Ey=a.unstable_LowPriority,Lc=a.unstable_IdlePriority,jy=a.log,Ty=a.unstable_setDisableYieldValue,In=null,ye=null;function fl(t){if(typeof jy=="function"&&Ty(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(In,t)}catch{}}var ve=Math.clz32?Math.clz32:Cy,Ay=Math.log,zy=Math.LN2;function Cy(t){return t>>>=0,t===0?32:31-(Ay(t)/zy|0)|0}var lu=256,nu=262144,au=4194304;function Ll(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function uu(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var u=0,r=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?u=Ll(n):(o&=m,o!==0?u=Ll(o):l||(l=m&~t,l!==0&&(u=Ll(l))))):(m=n&~r,m!==0?u=Ll(m):o!==0?u=Ll(o):l||(l=n&~t,l!==0&&(u=Ll(l)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,l=e&-e,r>=l||r===32&&(l&4194048)!==0)?e:u}function ta(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function My(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Yc(){var t=au;return au<<=1,(au&62914560)===0&&(au=4194304),t}function Gi(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function ea(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Dy(t,e,l,n,u,r){var o=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var m=t.entanglements,g=t.expirationTimes,j=t.hiddenUpdates;for(l=o&~l;0<l;){var R=31-ve(l),q=1<<R;m[R]=0,g[R]=-1;var A=j[R];if(A!==null)for(j[R]=null,R=0;R<A.length;R++){var M=A[R];M!==null&&(M.lane&=-536870913)}l&=~q}n!==0&&Gc(t,n,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(o&~e))}function Gc(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-ve(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function Xc(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-ve(l),u=1<<n;u&e|t[n]&e&&(t[n]|=e),l&=~u}}function Kc(t,e){var l=e&-e;return l=(l&42)!==0?1:Xi(l),(l&(t.suspendedLanes|e))!==0?0:l}function Xi(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ki(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Zc(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Rh(t.type))}function Vc(t,e){var l=H.p;try{return H.p=t,e()}finally{H.p=l}}var dl=Math.random().toString(36).slice(2),Pt="__reactFiber$"+dl,re="__reactProps$"+dl,fn="__reactContainer$"+dl,Zi="__reactEvents$"+dl,Ry="__reactListeners$"+dl,Uy="__reactHandles$"+dl,Jc="__reactResources$"+dl,la="__reactMarker$"+dl;function Vi(t){delete t[Pt],delete t[re],delete t[Zi],delete t[Ry],delete t[Uy]}function dn(t){var e=t[Pt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[fn]||l[Pt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=vh(t);t!==null;){if(l=t[Pt])return l;t=vh(t)}return e}t=l,l=t.parentNode}return null}function hn(t){if(t=t[Pt]||t[fn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function na(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function mn(t){var e=t[Jc];return e||(e=t[Jc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[la]=!0}var kc=new Set,Fc={};function Yl(t,e){yn(t,e),yn(t+"Capture",e)}function yn(t,e){for(Fc[t]=e,t=0;t<e.length;t++)kc.add(e[t])}var Ny=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]*$"),$c={},Pc={};function qy(t){return Bi.call(Pc,t)?!0:Bi.call($c,t)?!1:Ny.test(t)?Pc[t]=!0:($c[t]=!0,!1)}function iu(t,e,l){if(qy(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function ru(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Je(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Wc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Qy(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,r=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(o){l=""+o,r.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ji(t){if(!t._valueTracker){var e=Wc(t)?"checked":"value";t._valueTracker=Qy(t,e,""+t[e])}}function Ic(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=Wc(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function su(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Hy=/[\n"\\]/g;function Te(t){return t.replace(Hy,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ki(t,e,l,n,u,r,o,m){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+je(e)):t.value!==""+je(e)&&(t.value=""+je(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?Fi(t,o,je(e)):l!=null?Fi(t,o,je(l)):n!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.name=""+je(m):t.removeAttribute("name")}function to(t,e,l,n,u,r,o,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||l!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Ji(t);return}l=l!=null?""+je(l):"",e=e!=null?""+je(e):l,m||e===t.value||(t.value=e),t.defaultValue=e}n=n??u,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=m?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Ji(t)}function Fi(t,e,l){e==="number"&&su(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function vn(t,e,l,n){if(t=t.options,e){e={};for(var u=0;u<l.length;u++)e["$"+l[u]]=!0;for(l=0;l<t.length;l++)u=e.hasOwnProperty("$"+t[l].value),t[l].selected!==u&&(t[l].selected=u),u&&n&&(t[l].defaultSelected=!0)}else{for(l=""+je(l),e=null,u=0;u<t.length;u++){if(t[u].value===l){t[u].selected=!0,n&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function eo(t,e,l){if(e!=null&&(e=""+je(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+je(l):""}function lo(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(c(92));if(ct(n)){if(1<n.length)throw Error(c(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=je(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),Ji(t)}function pn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var wy=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 no(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||wy.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function ao(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var u in e)n=e[u],e.hasOwnProperty(u)&&l[u]!==n&&no(t,u,n)}else for(var r in e)e.hasOwnProperty(r)&&no(t,r,e[r])}function $i(t){if(t.indexOf("-")===-1)return!1;switch(t){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 By=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"]]),Ly=/^[\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 cu(t){return Ly.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ke(){}var Pi=null;function Wi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var gn=null,bn=null;function uo(t){var e=hn(t);if(e&&(t=e.stateNode)){var l=t[re]||null;t:switch(t=e.stateNode,e.type){case"input":if(ki(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Te(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var u=n[re]||null;if(!u)throw Error(c(90));ki(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&Ic(n)}break t;case"textarea":eo(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&vn(t,!!l.multiple,e,!1)}}}var Ii=!1;function io(t,e,l){if(Ii)return t(e,l);Ii=!0;try{var n=t(e);return n}finally{if(Ii=!1,(gn!==null||bn!==null)&&($u(),gn&&(e=gn,t=bn,bn=gn=null,uo(e),t)))for(e=0;e<t.length;e++)uo(t[e])}}function aa(t,e){var l=t.stateNode;if(l===null)return null;var n=l[re]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(c(231,e,typeof l));return l}var Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tr=!1;if(Fe)try{var ua={};Object.defineProperty(ua,"passive",{get:function(){tr=!0}}),window.addEventListener("test",ua,ua),window.removeEventListener("test",ua,ua)}catch{tr=!1}var hl=null,er=null,ou=null;function ro(){if(ou)return ou;var t,e=er,l=e.length,n,u="value"in hl?hl.value:hl.textContent,r=u.length;for(t=0;t<l&&e[t]===u[t];t++);var o=l-t;for(n=1;n<=o&&e[l-n]===u[r-n];n++);return ou=u.slice(t,1<n?1-n:void 0)}function fu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function du(){return!0}function so(){return!1}function se(t){function e(l,n,u,r,o){this._reactName=l,this._targetInst=u,this.type=n,this.nativeEvent=r,this.target=o,this.currentTarget=null;for(var m in t)t.hasOwnProperty(m)&&(l=t[m],this[m]=l?l(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?du:so,this.isPropagationStopped=so,this}return _(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=du)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=du)},persist:function(){},isPersistent:du}),e}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hu=se(Gl),ia=_({},Gl,{view:0,detail:0}),Yy=se(ia),lr,nr,ra,mu=_({},ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ur,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ra&&(ra&&t.type==="mousemove"?(lr=t.screenX-ra.screenX,nr=t.screenY-ra.screenY):nr=lr=0,ra=t),lr)},movementY:function(t){return"movementY"in t?t.movementY:nr}}),co=se(mu),Gy=_({},mu,{dataTransfer:0}),Xy=se(Gy),Ky=_({},ia,{relatedTarget:0}),ar=se(Ky),Zy=_({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),Vy=se(Zy),Jy=_({},Gl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ky=se(Jy),Fy=_({},Gl,{data:0}),oo=se(Fy),$y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Py={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"},Wy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Wy[t])?!!e[t]:!1}function ur(){return Iy}var tv=_({},ia,{key:function(t){if(t.key){var e=$y[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=fu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Py[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ur,charCode:function(t){return t.type==="keypress"?fu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?fu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ev=se(tv),lv=_({},mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fo=se(lv),nv=_({},ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ur}),av=se(nv),uv=_({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),iv=se(uv),rv=_({},mu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),sv=se(rv),cv=_({},Gl,{newState:0,oldState:0}),ov=se(cv),fv=[9,13,27,32],ir=Fe&&"CompositionEvent"in window,sa=null;Fe&&"documentMode"in document&&(sa=document.documentMode);var dv=Fe&&"TextEvent"in window&&!sa,ho=Fe&&(!ir||sa&&8<sa&&11>=sa),mo=" ",yo=!1;function vo(t,e){switch(t){case"keyup":return fv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function po(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Sn=!1;function hv(t,e){switch(t){case"compositionend":return po(e);case"keypress":return e.which!==32?null:(yo=!0,mo);case"textInput":return t=e.data,t===mo&&yo?null:t;default:return null}}function mv(t,e){if(Sn)return t==="compositionend"||!ir&&vo(t,e)?(t=ro(),ou=er=hl=null,Sn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ho&&e.locale!=="ko"?null:e.data;default:return null}}var yv={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 go(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!yv[t.type]:e==="textarea"}function bo(t,e,l,n){gn?bn?bn.push(n):bn=[n]:gn=n,e=ni(e,"onChange"),0<e.length&&(l=new hu("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var ca=null,oa=null;function vv(t){lh(t,0)}function yu(t){var e=na(t);if(Ic(e))return t}function So(t,e){if(t==="change")return e}var xo=!1;if(Fe){var rr;if(Fe){var sr="oninput"in document;if(!sr){var Oo=document.createElement("div");Oo.setAttribute("oninput","return;"),sr=typeof Oo.oninput=="function"}rr=sr}else rr=!1;xo=rr&&(!document.documentMode||9<document.documentMode)}function _o(){ca&&(ca.detachEvent("onpropertychange",Eo),oa=ca=null)}function Eo(t){if(t.propertyName==="value"&&yu(oa)){var e=[];bo(e,oa,t,Wi(t)),io(vv,e)}}function pv(t,e,l){t==="focusin"?(_o(),ca=e,oa=l,ca.attachEvent("onpropertychange",Eo)):t==="focusout"&&_o()}function gv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return yu(oa)}function bv(t,e){if(t==="click")return yu(e)}function Sv(t,e){if(t==="input"||t==="change")return yu(e)}function xv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:xv;function fa(t,e){if(pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var u=l[n];if(!Bi.call(e,u)||!pe(t[u],e[u]))return!1}return!0}function jo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function To(t,e){var l=jo(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=jo(l)}}function Ao(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ao(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function zo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=su(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=su(t.document)}return e}function cr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Ov=Fe&&"documentMode"in document&&11>=document.documentMode,xn=null,or=null,da=null,fr=!1;function Co(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;fr||xn==null||xn!==su(n)||(n=xn,"selectionStart"in n&&cr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),da&&fa(da,n)||(da=n,n=ni(or,"onSelect"),0<n.length&&(e=new hu("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=xn)))}function Xl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var On={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionrun:Xl("Transition","TransitionRun"),transitionstart:Xl("Transition","TransitionStart"),transitioncancel:Xl("Transition","TransitionCancel"),transitionend:Xl("Transition","TransitionEnd")},dr={},Mo={};Fe&&(Mo=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function Kl(t){if(dr[t])return dr[t];if(!On[t])return t;var e=On[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Mo)return dr[t]=e[l];return t}var Do=Kl("animationend"),Ro=Kl("animationiteration"),Uo=Kl("animationstart"),_v=Kl("transitionrun"),Ev=Kl("transitionstart"),jv=Kl("transitioncancel"),No=Kl("transitionend"),qo=new Map,hr="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(" ");hr.push("scrollEnd");function Qe(t,e){qo.set(t,e),Yl(e,[t])}var vu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],_n=0,mr=0;function pu(){for(var t=_n,e=mr=_n=0;e<t;){var l=Ae[e];Ae[e++]=null;var n=Ae[e];Ae[e++]=null;var u=Ae[e];Ae[e++]=null;var r=Ae[e];if(Ae[e++]=null,n!==null&&u!==null){var o=n.pending;o===null?u.next=u:(u.next=o.next,o.next=u),n.pending=u}r!==0&&Qo(l,u,r)}}function gu(t,e,l,n){Ae[_n++]=t,Ae[_n++]=e,Ae[_n++]=l,Ae[_n++]=n,mr|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function yr(t,e,l,n){return gu(t,e,l,n),bu(t)}function Zl(t,e){return gu(t,null,null,e),bu(t)}function Qo(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var u=!1,r=t.return;r!==null;)r.childLanes|=l,n=r.alternate,n!==null&&(n.childLanes|=l),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(u=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,u&&e!==null&&(u=31-ve(l),t=r.hiddenUpdates,n=t[u],n===null?t[u]=[e]:n.push(e),e.lane=l|536870912),r):null}function bu(t){if(50<Na)throw Na=0,Es=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var En={};function Tv(t,e,l,n){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ge(t,e,l,n){return new Tv(t,e,l,n)}function vr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $e(t,e){var l=t.alternate;return l===null?(l=ge(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Ho(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Su(t,e,l,n,u,r){var o=0;if(n=t,typeof t=="function")vr(t)&&(o=1);else if(typeof t=="string")o=Dp(t,l,B.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case J:return t=ge(31,l,e,u),t.elementType=J,t.lanes=r,t;case Q:return Vl(l.children,u,r,e);case $:o=8,u|=24;break;case it:return t=ge(12,l,e,u|2),t.elementType=it,t.lanes=r,t;case F:return t=ge(13,l,e,u),t.elementType=F,t.lanes=r,t;case V:return t=ge(19,l,e,u),t.elementType=V,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case jt:o=10;break t;case ht:o=9;break t;case qt:o=11;break t;case D:o=14;break t;case X:o=16,n=null;break t}o=29,l=Error(c(130,t===null?"null":typeof t,"")),n=null}return e=ge(o,l,e,u),e.elementType=t,e.type=n,e.lanes=r,e}function Vl(t,e,l,n){return t=ge(7,t,n,e),t.lanes=l,t}function pr(t,e,l){return t=ge(6,t,null,e),t.lanes=l,t}function wo(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function gr(t,e,l){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Bo=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var l=Bo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Hc(e)},Bo.set(t,e),e)}return{value:t,source:e,stack:Hc(e)}}var jn=[],Tn=0,xu=null,ha=0,Ce=[],Me=0,ml=null,Ye=1,Ge="";function Pe(t,e){jn[Tn++]=ha,jn[Tn++]=xu,xu=t,ha=e}function Lo(t,e,l){Ce[Me++]=Ye,Ce[Me++]=Ge,Ce[Me++]=ml,ml=t;var n=Ye;t=Ge;var u=32-ve(n)-1;n&=~(1<<u),l+=1;var r=32-ve(e)+u;if(30<r){var o=u-u%5;r=(n&(1<<o)-1).toString(32),n>>=o,u-=o,Ye=1<<32-ve(e)+u|l<<u|n,Ge=r+t}else Ye=1<<r|l<<u|n,Ge=t}function br(t){t.return!==null&&(Pe(t,1),Lo(t,1,0))}function Sr(t){for(;t===xu;)xu=jn[--Tn],jn[Tn]=null,ha=jn[--Tn],jn[Tn]=null;for(;t===ml;)ml=Ce[--Me],Ce[Me]=null,Ge=Ce[--Me],Ce[Me]=null,Ye=Ce[--Me],Ce[Me]=null}function Yo(t,e){Ce[Me++]=Ye,Ce[Me++]=Ge,Ce[Me++]=ml,Ye=e.id,Ge=e.overflow,ml=t}var Wt=null,Ut=null,bt=!1,yl=null,De=!1,xr=Error(c(519));function vl(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ma(ze(e,t)),xr}function Go(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[Pt]=t,e[re]=n,l){case"dialog":vt("cancel",e),vt("close",e);break;case"iframe":case"object":case"embed":vt("load",e);break;case"video":case"audio":for(l=0;l<Qa.length;l++)vt(Qa[l],e);break;case"source":vt("error",e);break;case"img":case"image":case"link":vt("error",e),vt("load",e);break;case"details":vt("toggle",e);break;case"input":vt("invalid",e),to(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":vt("invalid",e);break;case"textarea":vt("invalid",e),lo(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||ih(e.textContent,l)?(n.popover!=null&&(vt("beforetoggle",e),vt("toggle",e)),n.onScroll!=null&&vt("scroll",e),n.onScrollEnd!=null&&vt("scrollend",e),n.onClick!=null&&(e.onclick=ke),e=!0):e=!1,e||vl(t,!0)}function Xo(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:Wt=Wt.return}}function An(t){if(t!==Wt)return!1;if(!bt)return Xo(t),bt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Bs(t.type,t.memoizedProps)),l=!l),l&&Ut&&vl(t),Xo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ut=yh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ut=yh(t)}else e===27?(e=Ut,Ml(t.type)?(t=Ks,Ks=null,Ut=t):Ut=e):Ut=Wt?Ue(t.stateNode.nextSibling):null;return!0}function Jl(){Ut=Wt=null,bt=!1}function Or(){var t=yl;return t!==null&&(de===null?de=t:de.push.apply(de,t),yl=null),t}function ma(t){yl===null?yl=[t]:yl.push(t)}var _r=b(null),kl=null,We=null;function pl(t,e,l){w(_r,e._currentValue),e._currentValue=l}function Ie(t){t._currentValue=_r.current,U(_r)}function Er(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function jr(t,e,l,n){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var r=u.dependencies;if(r!==null){var o=u.child;r=r.firstContext;t:for(;r!==null;){var m=r;r=u;for(var g=0;g<e.length;g++)if(m.context===e[g]){r.lanes|=l,m=r.alternate,m!==null&&(m.lanes|=l),Er(r.return,l,t),n||(o=null);break t}r=m.next}}else if(u.tag===18){if(o=u.return,o===null)throw Error(c(341));o.lanes|=l,r=o.alternate,r!==null&&(r.lanes|=l),Er(o,l,t),o=null}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}}function zn(t,e,l,n){t=null;for(var u=e,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var o=u.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var m=u.type;pe(u.pendingProps.value,o.value)||(t!==null?t.push(m):t=[m])}}else if(u===St.current){if(o=u.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Ya):t=[Ya])}u=u.return}t!==null&&jr(e,t,l,n),e.flags|=262144}function Ou(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Fl(t){kl=t,We=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Ko(kl,t)}function _u(t,e){return kl===null&&Fl(t),Ko(t,e)}function Ko(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},We===null){if(t===null)throw Error(c(308));We=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else We=We.next=e;return l}var Av=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},zv=a.unstable_scheduleCallback,Cv=a.unstable_NormalPriority,Kt={$$typeof:jt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tr(){return{controller:new Av,data:new Map,refCount:0}}function ya(t){t.refCount--,t.refCount===0&&zv(Cv,function(){t.controller.abort()})}var va=null,Ar=0,Cn=0,Mn=null;function Mv(t,e){if(va===null){var l=va=[];Ar=0,Cn=Ms(),Mn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Ar++,e.then(Zo,Zo),e}function Zo(){if(--Ar===0&&va!==null){Mn!==null&&(Mn.status="fulfilled");var t=va;va=null,Cn=0,Mn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Dv(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var u=0;u<l.length;u++)(0,l[u])(e)},function(u){for(n.status="rejected",n.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),n}var Vo=T.S;T.S=function(t,e){Md=me(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Mv(t,e),Vo!==null&&Vo(t,e)};var $l=b(null);function zr(){var t=$l.current;return t!==null?t:Rt.pooledCache}function Eu(t,e){e===null?w($l,$l.current):w($l,e.pool)}function Jo(){var t=zr();return t===null?null:{parent:Kt._currentValue,pool:t}}var Dn=Error(c(460)),Cr=Error(c(474)),ju=Error(c(542)),Tu={then:function(){}};function ko(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Fo(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(ke,ke),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Po(t),t;default:if(typeof e.status=="string")e.then(ke,ke);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=n}},function(n){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Po(t),t}throw Wl=e,Dn}}function Pl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wl=l,Dn):l}}var Wl=null;function $o(){if(Wl===null)throw Error(c(459));var t=Wl;return Wl=null,t}function Po(t){if(t===Dn||t===ju)throw Error(c(483))}var Rn=null,pa=0;function Au(t){var e=pa;return pa+=1,Rn===null&&(Rn=[]),Fo(Rn,t,e)}function ga(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function zu(t,e){throw e.$$typeof===C?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Wo(t){function e(O,S){if(t){var E=O.deletions;E===null?(O.deletions=[S],O.flags|=16):E.push(S)}}function l(O,S){if(!t)return null;for(;S!==null;)e(O,S),S=S.sibling;return null}function n(O){for(var S=new Map;O!==null;)O.key!==null?S.set(O.key,O):S.set(O.index,O),O=O.sibling;return S}function u(O,S){return O=$e(O,S),O.index=0,O.sibling=null,O}function r(O,S,E){return O.index=E,t?(E=O.alternate,E!==null?(E=E.index,E<S?(O.flags|=67108866,S):E):(O.flags|=67108866,S)):(O.flags|=1048576,S)}function o(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function m(O,S,E,N){return S===null||S.tag!==6?(S=pr(E,O.mode,N),S.return=O,S):(S=u(S,E),S.return=O,S)}function g(O,S,E,N){var nt=E.type;return nt===Q?R(O,S,E.props.children,N,E.key):S!==null&&(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&Pl(nt)===S.type)?(S=u(S,E.props),ga(S,E),S.return=O,S):(S=Su(E.type,E.key,E.props,null,O.mode,N),ga(S,E),S.return=O,S)}function j(O,S,E,N){return S===null||S.tag!==4||S.stateNode.containerInfo!==E.containerInfo||S.stateNode.implementation!==E.implementation?(S=gr(E,O.mode,N),S.return=O,S):(S=u(S,E.children||[]),S.return=O,S)}function R(O,S,E,N,nt){return S===null||S.tag!==7?(S=Vl(E,O.mode,N,nt),S.return=O,S):(S=u(S,E),S.return=O,S)}function q(O,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=pr(""+S,O.mode,E),S.return=O,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case L:return E=Su(S.type,S.key,S.props,null,O.mode,E),ga(E,S),E.return=O,E;case Z:return S=gr(S,O.mode,E),S.return=O,S;case X:return S=Pl(S),q(O,S,E)}if(ct(S)||tt(S))return S=Vl(S,O.mode,E,null),S.return=O,S;if(typeof S.then=="function")return q(O,Au(S),E);if(S.$$typeof===jt)return q(O,_u(O,S),E);zu(O,S)}return null}function A(O,S,E,N){var nt=S!==null?S.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return nt!==null?null:m(O,S,""+E,N);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case L:return E.key===nt?g(O,S,E,N):null;case Z:return E.key===nt?j(O,S,E,N):null;case X:return E=Pl(E),A(O,S,E,N)}if(ct(E)||tt(E))return nt!==null?null:R(O,S,E,N,null);if(typeof E.then=="function")return A(O,S,Au(E),N);if(E.$$typeof===jt)return A(O,S,_u(O,E),N);zu(O,E)}return null}function M(O,S,E,N,nt){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return O=O.get(E)||null,m(S,O,""+N,nt);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case L:return O=O.get(N.key===null?E:N.key)||null,g(S,O,N,nt);case Z:return O=O.get(N.key===null?E:N.key)||null,j(S,O,N,nt);case X:return N=Pl(N),M(O,S,E,N,nt)}if(ct(N)||tt(N))return O=O.get(E)||null,R(S,O,N,nt,null);if(typeof N.then=="function")return M(O,S,E,Au(N),nt);if(N.$$typeof===jt)return M(O,S,E,_u(S,N),nt);zu(S,N)}return null}function k(O,S,E,N){for(var nt=null,xt=null,W=S,dt=S=0,gt=null;W!==null&&dt<E.length;dt++){W.index>dt?(gt=W,W=null):gt=W.sibling;var Ot=A(O,W,E[dt],N);if(Ot===null){W===null&&(W=gt);break}t&&W&&Ot.alternate===null&&e(O,W),S=r(Ot,S,dt),xt===null?nt=Ot:xt.sibling=Ot,xt=Ot,W=gt}if(dt===E.length)return l(O,W),bt&&Pe(O,dt),nt;if(W===null){for(;dt<E.length;dt++)W=q(O,E[dt],N),W!==null&&(S=r(W,S,dt),xt===null?nt=W:xt.sibling=W,xt=W);return bt&&Pe(O,dt),nt}for(W=n(W);dt<E.length;dt++)gt=M(W,O,dt,E[dt],N),gt!==null&&(t&&gt.alternate!==null&&W.delete(gt.key===null?dt:gt.key),S=r(gt,S,dt),xt===null?nt=gt:xt.sibling=gt,xt=gt);return t&&W.forEach(function(ql){return e(O,ql)}),bt&&Pe(O,dt),nt}function ut(O,S,E,N){if(E==null)throw Error(c(151));for(var nt=null,xt=null,W=S,dt=S=0,gt=null,Ot=E.next();W!==null&&!Ot.done;dt++,Ot=E.next()){W.index>dt?(gt=W,W=null):gt=W.sibling;var ql=A(O,W,Ot.value,N);if(ql===null){W===null&&(W=gt);break}t&&W&&ql.alternate===null&&e(O,W),S=r(ql,S,dt),xt===null?nt=ql:xt.sibling=ql,xt=ql,W=gt}if(Ot.done)return l(O,W),bt&&Pe(O,dt),nt;if(W===null){for(;!Ot.done;dt++,Ot=E.next())Ot=q(O,Ot.value,N),Ot!==null&&(S=r(Ot,S,dt),xt===null?nt=Ot:xt.sibling=Ot,xt=Ot);return bt&&Pe(O,dt),nt}for(W=n(W);!Ot.done;dt++,Ot=E.next())Ot=M(W,O,dt,Ot.value,N),Ot!==null&&(t&&Ot.alternate!==null&&W.delete(Ot.key===null?dt:Ot.key),S=r(Ot,S,dt),xt===null?nt=Ot:xt.sibling=Ot,xt=Ot);return t&&W.forEach(function(Gp){return e(O,Gp)}),bt&&Pe(O,dt),nt}function Dt(O,S,E,N){if(typeof E=="object"&&E!==null&&E.type===Q&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case L:t:{for(var nt=E.key;S!==null;){if(S.key===nt){if(nt=E.type,nt===Q){if(S.tag===7){l(O,S.sibling),N=u(S,E.props.children),N.return=O,O=N;break t}}else if(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&Pl(nt)===S.type){l(O,S.sibling),N=u(S,E.props),ga(N,E),N.return=O,O=N;break t}l(O,S);break}else e(O,S);S=S.sibling}E.type===Q?(N=Vl(E.props.children,O.mode,N,E.key),N.return=O,O=N):(N=Su(E.type,E.key,E.props,null,O.mode,N),ga(N,E),N.return=O,O=N)}return o(O);case Z:t:{for(nt=E.key;S!==null;){if(S.key===nt)if(S.tag===4&&S.stateNode.containerInfo===E.containerInfo&&S.stateNode.implementation===E.implementation){l(O,S.sibling),N=u(S,E.children||[]),N.return=O,O=N;break t}else{l(O,S);break}else e(O,S);S=S.sibling}N=gr(E,O.mode,N),N.return=O,O=N}return o(O);case X:return E=Pl(E),Dt(O,S,E,N)}if(ct(E))return k(O,S,E,N);if(tt(E)){if(nt=tt(E),typeof nt!="function")throw Error(c(150));return E=nt.call(E),ut(O,S,E,N)}if(typeof E.then=="function")return Dt(O,S,Au(E),N);if(E.$$typeof===jt)return Dt(O,S,_u(O,E),N);zu(O,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,S!==null&&S.tag===6?(l(O,S.sibling),N=u(S,E),N.return=O,O=N):(l(O,S),N=pr(E,O.mode,N),N.return=O,O=N),o(O)):l(O,S)}return function(O,S,E,N){try{pa=0;var nt=Dt(O,S,E,N);return Rn=null,nt}catch(W){if(W===Dn||W===ju)throw W;var xt=ge(29,W,null,O.mode);return xt.lanes=N,xt.return=O,xt}finally{}}}var Il=Wo(!0),Io=Wo(!1),gl=!1;function Mr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function bl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Et&2)!==0){var u=n.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),n.pending=e,e=bu(t),Qo(t,null,l),e}return gu(t,n,e,l),bu(t)}function ba(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Xc(t,l)}}function Rr(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var u=null,r=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};r===null?u=r=o:r=r.next=o,l=l.next}while(l!==null);r===null?u=r=e:r=r.next=e}else u=r=e;l={baseState:n.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Ur=!1;function Sa(){if(Ur){var t=Mn;if(t!==null)throw t}}function xa(t,e,l,n){Ur=!1;var u=t.updateQueue;gl=!1;var r=u.firstBaseUpdate,o=u.lastBaseUpdate,m=u.shared.pending;if(m!==null){u.shared.pending=null;var g=m,j=g.next;g.next=null,o===null?r=j:o.next=j,o=g;var R=t.alternate;R!==null&&(R=R.updateQueue,m=R.lastBaseUpdate,m!==o&&(m===null?R.firstBaseUpdate=j:m.next=j,R.lastBaseUpdate=g))}if(r!==null){var q=u.baseState;o=0,R=j=g=null,m=r;do{var A=m.lane&-536870913,M=A!==m.lane;if(M?(pt&A)===A:(n&A)===A){A!==0&&A===Cn&&(Ur=!0),R!==null&&(R=R.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});t:{var k=t,ut=m;A=e;var Dt=l;switch(ut.tag){case 1:if(k=ut.payload,typeof k=="function"){q=k.call(Dt,q,A);break t}q=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=ut.payload,A=typeof k=="function"?k.call(Dt,q,A):k,A==null)break t;q=_({},q,A);break t;case 2:gl=!0}}A=m.callback,A!==null&&(t.flags|=64,M&&(t.flags|=8192),M=u.callbacks,M===null?u.callbacks=[A]:M.push(A))}else M={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},R===null?(j=R=M,g=q):R=R.next=M,o|=A;if(m=m.next,m===null){if(m=u.shared.pending,m===null)break;M=m,m=M.next,M.next=null,u.lastBaseUpdate=M,u.shared.pending=null}}while(!0);R===null&&(g=q),u.baseState=g,u.firstBaseUpdate=j,u.lastBaseUpdate=R,r===null&&(u.shared.lanes=0),jl|=o,t.lanes=o,t.memoizedState=q}}function tf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function ef(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)tf(l[t],e)}var Un=b(null),Cu=b(0);function lf(t,e){t=sl,w(Cu,t),w(Un,e),sl=t|e.baseLanes}function Nr(){w(Cu,sl),w(Un,Un.current)}function qr(){sl=Cu.current,U(Un),U(Cu)}var be=b(null),Re=null;function xl(t){var e=t.alternate;w(Yt,Yt.current&1),w(be,t),Re===null&&(e===null||Un.current!==null||e.memoizedState!==null)&&(Re=t)}function Qr(t){w(Yt,Yt.current),w(be,t),Re===null&&(Re=t)}function nf(t){t.tag===22?(w(Yt,Yt.current),w(be,t),Re===null&&(Re=t)):Ol()}function Ol(){w(Yt,Yt.current),w(be,be.current)}function Se(t){U(be),Re===t&&(Re=null),U(Yt)}var Yt=b(0);function Mu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Gs(l)||Xs(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var tl=0,ft=null,Ct=null,Zt=null,Du=!1,Nn=!1,tn=!1,Ru=0,Oa=0,qn=null,Rv=0;function Ht(){throw Error(c(321))}function Hr(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!pe(t[l],e[l]))return!1;return!0}function wr(t,e,l,n,u,r){return tl=r,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?Yf:Ir,tn=!1,r=l(n,u),tn=!1,Nn&&(r=uf(e,l,n,u)),af(t),r}function af(t){T.H=ja;var e=Ct!==null&&Ct.next!==null;if(tl=0,Zt=Ct=ft=null,Du=!1,Oa=0,qn=null,e)throw Error(c(300));t===null||Vt||(t=t.dependencies,t!==null&&Ou(t)&&(Vt=!0))}function uf(t,e,l,n){ft=t;var u=0;do{if(Nn&&(qn=null),Oa=0,Nn=!1,25<=u)throw Error(c(301));if(u+=1,Zt=Ct=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}T.H=Gf,r=e(l,n)}while(Nn);return r}function Uv(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?_a(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ft.flags|=1024),e}function Br(){var t=Ru!==0;return Ru=0,t}function Lr(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Yr(t){if(Du){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Du=!1}tl=0,Zt=Ct=ft=null,Nn=!1,Oa=Ru=0,qn=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ft.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Gt(){if(Ct===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Zt===null?ft.memoizedState:Zt.next;if(e!==null)Zt=e,Ct=t;else{if(t===null)throw ft.alternate===null?Error(c(467)):Error(c(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Zt===null?ft.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _a(t){var e=Oa;return Oa+=1,qn===null&&(qn=[]),t=Fo(qn,t,e),e=ft,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?Yf:Ir),t}function Nu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return _a(t);if(t.$$typeof===jt)return It(t)}throw Error(c(438,String(t)))}function Gr(t){var e=null,l=ft.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=ft.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Uu(),ft.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=et;return e.index++,l}function el(t,e){return typeof e=="function"?e(t):e}function qu(t){var e=Gt();return Xr(e,Ct,t)}function Xr(t,e,l){var n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=l;var u=t.baseQueue,r=n.pending;if(r!==null){if(u!==null){var o=u.next;u.next=r.next,r.next=o}e.baseQueue=u=r,n.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var m=o=null,g=null,j=e,R=!1;do{var q=j.lane&-536870913;if(q!==j.lane?(pt&q)===q:(tl&q)===q){var A=j.revertLane;if(A===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),q===Cn&&(R=!0);else if((tl&A)===A){j=j.next,A===Cn&&(R=!0);continue}else q={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},g===null?(m=g=q,o=r):g=g.next=q,ft.lanes|=A,jl|=A;q=j.action,tn&&l(r,q),r=j.hasEagerState?j.eagerState:l(r,q)}else A={lane:q,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},g===null?(m=g=A,o=r):g=g.next=A,ft.lanes|=q,jl|=q;j=j.next}while(j!==null&&j!==e);if(g===null?o=r:g.next=m,!pe(r,t.memoizedState)&&(Vt=!0,R&&(l=Mn,l!==null)))throw l;t.memoizedState=r,t.baseState=o,t.baseQueue=g,n.lastRenderedState=r}return u===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Kr(t){var e=Gt(),l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=t;var n=l.dispatch,u=l.pending,r=e.memoizedState;if(u!==null){l.pending=null;var o=u=u.next;do r=t(r,o.action),o=o.next;while(o!==u);pe(r,e.memoizedState)||(Vt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),l.lastRenderedState=r}return[r,n]}function rf(t,e,l){var n=ft,u=Gt(),r=bt;if(r){if(l===void 0)throw Error(c(407));l=l()}else l=e();var o=!pe((Ct||u).memoizedState,l);if(o&&(u.memoizedState=l,Vt=!0),u=u.queue,Jr(of.bind(null,n,u,t),[t]),u.getSnapshot!==e||o||Zt!==null&&Zt.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},cf.bind(null,n,u,l,e),null),Rt===null)throw Error(c(349));r||(tl&127)!==0||sf(n,e,l)}return l}function sf(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ft.updateQueue,e===null?(e=Uu(),ft.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function cf(t,e,l,n){e.value=l,e.getSnapshot=n,ff(e)&&df(t)}function of(t,e,l){return l(function(){ff(e)&&df(t)})}function ff(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!pe(t,l)}catch{return!0}}function df(t){var e=Zl(t,2);e!==null&&he(e,t,2)}function Zr(t){var e=ue();if(typeof t=="function"){var l=t;if(t=l(),tn){fl(!0);try{l()}finally{fl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:t},e}function hf(t,e,l,n){return t.baseState=l,Xr(t,Ct,typeof n=="function"?n:el)}function Nv(t,e,l,n,u){if(wu(t))throw Error(c(485));if(t=e.action,t!==null){var r={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){r.listeners.push(o)}};T.T!==null?l(!0):r.isTransition=!1,n(r),l=e.pending,l===null?(r.next=e.pending=r,mf(e,r)):(r.next=l.next,e.pending=l.next=r)}}function mf(t,e){var l=e.action,n=e.payload,u=t.state;if(e.isTransition){var r=T.T,o={};T.T=o;try{var m=l(u,n),g=T.S;g!==null&&g(o,m),yf(t,e,m)}catch(j){Vr(t,e,j)}finally{r!==null&&o.types!==null&&(r.types=o.types),T.T=r}}else try{r=l(u,n),yf(t,e,r)}catch(j){Vr(t,e,j)}}function yf(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){vf(t,e,n)},function(n){return Vr(t,e,n)}):vf(t,e,l)}function vf(t,e,l){e.status="fulfilled",e.value=l,pf(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,mf(t,l)))}function Vr(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,pf(e),e=e.next;while(e!==n)}t.action=null}function pf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function gf(t,e){return e}function bf(t,e){if(bt){var l=Rt.formState;if(l!==null){t:{var n=ft;if(bt){if(Ut){e:{for(var u=Ut,r=De;u.nodeType!==8;){if(!r){u=null;break e}if(u=Ue(u.nextSibling),u===null){u=null;break e}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){Ut=Ue(u.nextSibling),n=u.data==="F!";break t}}vl(n)}n=!1}n&&(e=l[0])}}return l=ue(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gf,lastRenderedState:e},l.queue=n,l=wf.bind(null,ft,n),n.dispatch=l,n=Zr(!1),r=Wr.bind(null,ft,!1,n.queue),n=ue(),u={state:e,dispatch:null,action:t,pending:null},n.queue=u,l=Nv.bind(null,ft,u,r,l),u.dispatch=l,n.memoizedState=t,[e,l,!1]}function Sf(t){var e=Gt();return xf(e,Ct,t)}function xf(t,e,l){if(e=Xr(t,e,gf)[0],t=qu(el)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=_a(e)}catch(o){throw o===Dn?ju:o}else n=e;e=Gt();var u=e.queue,r=u.dispatch;return l!==e.memoizedState&&(ft.flags|=2048,Qn(9,{destroy:void 0},qv.bind(null,u,l),null)),[n,r,t]}function qv(t,e){t.action=e}function Of(t){var e=Gt(),l=Ct;if(l!==null)return xf(e,l,t);Gt(),e=e.memoizedState,l=Gt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Qn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=ft.updateQueue,e===null&&(e=Uu(),ft.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function _f(){return Gt().memoizedState}function Qu(t,e,l,n){var u=ue();ft.flags|=t,u.memoizedState=Qn(1|e,{destroy:void 0},l,n===void 0?null:n)}function Hu(t,e,l,n){var u=Gt();n=n===void 0?null:n;var r=u.memoizedState.inst;Ct!==null&&n!==null&&Hr(n,Ct.memoizedState.deps)?u.memoizedState=Qn(e,r,l,n):(ft.flags|=t,u.memoizedState=Qn(1|e,r,l,n))}function Ef(t,e){Qu(8390656,8,t,e)}function Jr(t,e){Hu(2048,8,t,e)}function Qv(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=Uu(),ft.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function jf(t){var e=Gt().memoizedState;return Qv({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Tf(t,e){return Hu(4,2,t,e)}function Af(t,e){return Hu(4,4,t,e)}function zf(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Cf(t,e,l){l=l!=null?l.concat([t]):null,Hu(4,4,zf.bind(null,e,t),l)}function kr(){}function Mf(t,e){var l=Gt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Hr(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Df(t,e){var l=Gt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Hr(e,n[1]))return n[0];if(n=t(),tn){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[n,e],n}function Fr(t,e,l){return l===void 0||(tl&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Rd(),ft.lanes|=t,jl|=t,l)}function Rf(t,e,l,n){return pe(l,e)?l:Un.current!==null?(t=Fr(t,l,n),pe(t,e)||(Vt=!0),t):(tl&42)===0||(tl&1073741824)!==0&&(pt&261930)===0?(Vt=!0,t.memoizedState=l):(t=Rd(),ft.lanes|=t,jl|=t,e)}function Uf(t,e,l,n,u){var r=H.p;H.p=r!==0&&8>r?r:8;var o=T.T,m={};T.T=m,Wr(t,!1,e,l);try{var g=u(),j=T.S;if(j!==null&&j(m,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var R=Dv(g,n);Ea(t,e,R,_e(t))}else Ea(t,e,n,_e(t))}catch(q){Ea(t,e,{then:function(){},status:"rejected",reason:q},_e())}finally{H.p=r,o!==null&&m.types!==null&&(o.types=m.types),T.T=o}}function Hv(){}function $r(t,e,l,n){if(t.tag!==5)throw Error(c(476));var u=Nf(t).queue;Uf(t,u,e,G,l===null?Hv:function(){return qf(t),l(n)})}function Nf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:G},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qf(t){var e=Nf(t);e.next===null&&(e=t.alternate.memoizedState),Ea(t,e.next.queue,{},_e())}function Pr(){return It(Ya)}function Qf(){return Gt().memoizedState}function Hf(){return Gt().memoizedState}function wv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=_e();t=bl(l);var n=Sl(e,t,l);n!==null&&(he(n,e,l),ba(n,e,l)),e={cache:Tr()},t.payload=e;return}e=e.return}}function Bv(t,e,l){var n=_e();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wu(t)?Bf(e,l):(l=yr(t,e,l,n),l!==null&&(he(l,t,n),Lf(l,e,n)))}function wf(t,e,l){var n=_e();Ea(t,e,l,n)}function Ea(t,e,l,n){var u={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(wu(t))Bf(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var o=e.lastRenderedState,m=r(o,l);if(u.hasEagerState=!0,u.eagerState=m,pe(m,o))return gu(t,e,u,0),Rt===null&&pu(),!1}catch{}finally{}if(l=yr(t,e,u,n),l!==null)return he(l,t,n),Lf(l,e,n),!0}return!1}function Wr(t,e,l,n){if(n={lane:2,revertLane:Ms(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},wu(t)){if(e)throw Error(c(479))}else e=yr(t,l,n,2),e!==null&&he(e,t,2)}function wu(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Bf(t,e){Nn=Du=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Lf(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Xc(t,l)}}var ja={readContext:It,use:Nu,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};ja.useEffectEvent=Ht;var Yf={readContext:It,use:Nu,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:Ef,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Qu(4194308,4,zf.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Qu(4194308,4,t,e)},useInsertionEffect:function(t,e){Qu(4,2,t,e)},useMemo:function(t,e){var l=ue();e=e===void 0?null:e;var n=t();if(tn){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=ue();if(l!==void 0){var u=l(e);if(tn){fl(!0);try{l(e)}finally{fl(!1)}}}else u=e;return n.memoizedState=n.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},n.queue=t,t=t.dispatch=Bv.bind(null,ft,t),[n.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=Zr(t);var e=t.queue,l=wf.bind(null,ft,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:kr,useDeferredValue:function(t,e){var l=ue();return Fr(l,t,e)},useTransition:function(){var t=Zr(!1);return t=Uf.bind(null,ft,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=ft,u=ue();if(bt){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),Rt===null)throw Error(c(349));(pt&127)!==0||sf(n,e,l)}u.memoizedState=l;var r={value:l,getSnapshot:e};return u.queue=r,Ef(of.bind(null,n,r,t),[t]),n.flags|=2048,Qn(9,{destroy:void 0},cf.bind(null,n,r,l,e),null),l},useId:function(){var t=ue(),e=Rt.identifierPrefix;if(bt){var l=Ge,n=Ye;l=(n&~(1<<32-ve(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Ru++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Rv++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Pr,useFormState:bf,useActionState:bf,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Wr.bind(null,ft,!0,l),l.dispatch=e,[t,e]},useMemoCache:Gr,useCacheRefresh:function(){return ue().memoizedState=wv.bind(null,ft)},useEffectEvent:function(t){var e=ue(),l={impl:t};return e.memoizedState=l,function(){if((Et&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},Ir={readContext:It,use:Nu,useCallback:Mf,useContext:It,useEffect:Jr,useImperativeHandle:Cf,useInsertionEffect:Tf,useLayoutEffect:Af,useMemo:Df,useReducer:qu,useRef:_f,useState:function(){return qu(el)},useDebugValue:kr,useDeferredValue:function(t,e){var l=Gt();return Rf(l,Ct.memoizedState,t,e)},useTransition:function(){var t=qu(el)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:_a(t),e]},useSyncExternalStore:rf,useId:Qf,useHostTransitionStatus:Pr,useFormState:Sf,useActionState:Sf,useOptimistic:function(t,e){var l=Gt();return hf(l,Ct,t,e)},useMemoCache:Gr,useCacheRefresh:Hf};Ir.useEffectEvent=jf;var Gf={readContext:It,use:Nu,useCallback:Mf,useContext:It,useEffect:Jr,useImperativeHandle:Cf,useInsertionEffect:Tf,useLayoutEffect:Af,useMemo:Df,useReducer:Kr,useRef:_f,useState:function(){return Kr(el)},useDebugValue:kr,useDeferredValue:function(t,e){var l=Gt();return Ct===null?Fr(l,t,e):Rf(l,Ct.memoizedState,t,e)},useTransition:function(){var t=Kr(el)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:_a(t),e]},useSyncExternalStore:rf,useId:Qf,useHostTransitionStatus:Pr,useFormState:Of,useActionState:Of,useOptimistic:function(t,e){var l=Gt();return Ct!==null?hf(l,Ct,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Gr,useCacheRefresh:Hf};Gf.useEffectEvent=jf;function ts(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:_({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var es={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=_e(),u=bl(n);u.payload=e,l!=null&&(u.callback=l),e=Sl(t,u,n),e!==null&&(he(e,t,n),ba(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=_e(),u=bl(n);u.tag=1,u.payload=e,l!=null&&(u.callback=l),e=Sl(t,u,n),e!==null&&(he(e,t,n),ba(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=_e(),n=bl(l);n.tag=2,e!=null&&(n.callback=e),e=Sl(t,n,l),e!==null&&(he(e,t,l),ba(e,t,l))}};function Xf(t,e,l,n,u,r,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,r,o):e.prototype&&e.prototype.isPureReactComponent?!fa(l,n)||!fa(u,r):!0}function Kf(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&es.enqueueReplaceState(e,e.state,null)}function en(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=_({},l));for(var u in t)l[u]===void 0&&(l[u]=t[u])}return l}function Zf(t){vu(t)}function Vf(t){console.error(t)}function Jf(t){vu(t)}function Bu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function kf(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function ls(t,e,l){return l=bl(l),l.tag=3,l.payload={element:null},l.callback=function(){Bu(t,e)},l}function Ff(t){return t=bl(t),t.tag=3,t}function $f(t,e,l,n){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var r=n.value;t.payload=function(){return u(r)},t.callback=function(){kf(e,l,n)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){kf(e,l,n),typeof u!="function"&&(Tl===null?Tl=new Set([this]):Tl.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function Lv(t,e,l,n,u){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&zn(e,l,u,!0),l=be.current,l!==null){switch(l.tag){case 31:case 13:return Re===null?Pu():l.alternate===null&&wt===0&&(wt=3),l.flags&=-257,l.flags|=65536,l.lanes=u,n===Tu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),As(t,n,u)),!1;case 22:return l.flags|=65536,n===Tu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),As(t,n,u)),!1}throw Error(c(435,l.tag))}return As(t,n,u),Pu(),!1}if(bt)return e=be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,n!==xr&&(t=Error(c(422),{cause:n}),ma(ze(t,l)))):(n!==xr&&(e=Error(c(423),{cause:n}),ma(ze(e,l))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,n=ze(n,l),u=ls(t.stateNode,n,u),Rr(t,u),wt!==4&&(wt=2)),!1;var r=Error(c(520),{cause:n});if(r=ze(r,l),Ua===null?Ua=[r]:Ua.push(r),wt!==4&&(wt=2),e===null)return!0;n=ze(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=u&-u,l.lanes|=t,t=ls(l.stateNode,n,t),Rr(l,t),!1;case 1:if(e=l.type,r=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Tl===null||!Tl.has(r))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Ff(u),$f(u,t,l,n),Rr(l,u),!1}l=l.return}while(l!==null);return!1}var ns=Error(c(461)),Vt=!1;function te(t,e,l,n){e.child=t===null?Io(e,null,l,n):Il(e,t.child,l,n)}function Pf(t,e,l,n,u){l=l.render;var r=e.ref;if("ref"in n){var o={};for(var m in n)m!=="ref"&&(o[m]=n[m])}else o=n;return Fl(e),n=wr(t,e,l,o,r,u),m=Br(),t!==null&&!Vt?(Lr(t,e,u),ll(t,e,u)):(bt&&m&&br(e),e.flags|=1,te(t,e,n,u),e.child)}function Wf(t,e,l,n,u){if(t===null){var r=l.type;return typeof r=="function"&&!vr(r)&&r.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=r,If(t,e,r,n,u)):(t=Su(l.type,null,n,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!fs(t,u)){var o=r.memoizedProps;if(l=l.compare,l=l!==null?l:fa,l(o,n)&&t.ref===e.ref)return ll(t,e,u)}return e.flags|=1,t=$e(r,n),t.ref=e.ref,t.return=e,e.child=t}function If(t,e,l,n,u){if(t!==null){var r=t.memoizedProps;if(fa(r,n)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=n=r,fs(t,u))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,ll(t,e,u)}return as(t,e,l,n,u)}function td(t,e,l,n){var u=n.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|l:l,t!==null){for(n=e.child=t.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;n=u&~r}else n=0,e.child=null;return ed(t,e,r,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Eu(e,r!==null?r.cachePool:null),r!==null?lf(e,r):Nr(),nf(e);else return n=e.lanes=536870912,ed(t,e,r!==null?r.baseLanes|l:l,l,n)}else r!==null?(Eu(e,r.cachePool),lf(e,r),Ol(),e.memoizedState=null):(t!==null&&Eu(e,null),Nr(),Ol());return te(t,e,u,l),e.child}function Ta(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ed(t,e,l,n,u){var r=zr();return r=r===null?null:{parent:Kt._currentValue,pool:r},e.memoizedState={baseLanes:l,cachePool:r},t!==null&&Eu(e,null),Nr(),nf(e),t!==null&&zn(t,e,n,!0),e.childLanes=u,null}function Lu(t,e){return e=Gu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ld(t,e,l){return Il(e,t.child,null,l),t=Lu(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function Yv(t,e,l){var n=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(n.mode==="hidden")return t=Lu(e,n),e.lanes=536870912,Ta(null,t);if(Qr(e),(t=Ut)?(t=mh(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ml!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},l=wo(t),l.return=e,e.child=l,Wt=e,Ut=null)):t=null,t===null)throw vl(e);return e.lanes=536870912,null}return Lu(e,n)}var r=t.memoizedState;if(r!==null){var o=r.dehydrated;if(Qr(e),u)if(e.flags&256)e.flags&=-257,e=ld(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Vt||zn(t,e,l,!1),u=(l&t.childLanes)!==0,Vt||u){if(n=Rt,n!==null&&(o=Kc(n,l),o!==0&&o!==r.retryLane))throw r.retryLane=o,Zl(t,o),he(n,t,o),ns;Pu(),e=ld(t,e,l)}else t=r.treeContext,Ut=Ue(o.nextSibling),Wt=e,bt=!0,yl=null,De=!1,t!==null&&Yo(e,t),e=Lu(e,n),e.flags|=4096;return e}return t=$e(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Yu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function as(t,e,l,n,u){return Fl(e),l=wr(t,e,l,n,void 0,u),n=Br(),t!==null&&!Vt?(Lr(t,e,u),ll(t,e,u)):(bt&&n&&br(e),e.flags|=1,te(t,e,l,u),e.child)}function nd(t,e,l,n,u,r){return Fl(e),e.updateQueue=null,l=uf(e,n,l,u),af(t),n=Br(),t!==null&&!Vt?(Lr(t,e,r),ll(t,e,r)):(bt&&n&&br(e),e.flags|=1,te(t,e,l,r),e.child)}function ad(t,e,l,n,u){if(Fl(e),e.stateNode===null){var r=En,o=l.contextType;typeof o=="object"&&o!==null&&(r=It(o)),r=new l(n,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=es,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=n,r.state=e.memoizedState,r.refs={},Mr(e),o=l.contextType,r.context=typeof o=="object"&&o!==null?It(o):En,r.state=e.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(ts(e,l,o,n),r.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(o=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),o!==r.state&&es.enqueueReplaceState(r,r.state,null),xa(e,n,r,u),Sa(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){r=e.stateNode;var m=e.memoizedProps,g=en(l,m);r.props=g;var j=r.context,R=l.contextType;o=En,typeof R=="object"&&R!==null&&(o=It(R));var q=l.getDerivedStateFromProps;R=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=e.pendingProps!==m,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||j!==o)&&Kf(e,r,n,o),gl=!1;var A=e.memoizedState;r.state=A,xa(e,n,r,u),Sa(),j=e.memoizedState,m||A!==j||gl?(typeof q=="function"&&(ts(e,l,q,n),j=e.memoizedState),(g=gl||Xf(e,l,g,n,A,j,o))?(R||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=j),r.props=n,r.state=j,r.context=o,n=g):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{r=e.stateNode,Dr(t,e),o=e.memoizedProps,R=en(l,o),r.props=R,q=e.pendingProps,A=r.context,j=l.contextType,g=En,typeof j=="object"&&j!==null&&(g=It(j)),m=l.getDerivedStateFromProps,(j=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o!==q||A!==g)&&Kf(e,r,n,g),gl=!1,A=e.memoizedState,r.state=A,xa(e,n,r,u),Sa();var M=e.memoizedState;o!==q||A!==M||gl||t!==null&&t.dependencies!==null&&Ou(t.dependencies)?(typeof m=="function"&&(ts(e,l,m,n),M=e.memoizedState),(R=gl||Xf(e,l,R,n,A,M,g)||t!==null&&t.dependencies!==null&&Ou(t.dependencies))?(j||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,M,g),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,M,g)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=M),r.props=n,r.state=M,r.context=g,n=R):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),n=!1)}return r=n,Yu(t,e),n=(e.flags&128)!==0,r||n?(r=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&n?(e.child=Il(e,t.child,null,u),e.child=Il(e,null,l,u)):te(t,e,l,u),e.memoizedState=r.state,t=e.child):t=ll(t,e,u),t}function ud(t,e,l,n){return Jl(),e.flags|=256,te(t,e,l,n),e.child}var us={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function is(t){return{baseLanes:t,cachePool:Jo()}}function rs(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Oe),t}function id(t,e,l){var n=e.pendingProps,u=!1,r=(e.flags&128)!==0,o;if((o=r)||(o=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),o&&(u=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(u?xl(e):Ol(),(t=Ut)?(t=mh(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ml!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},l=wo(t),l.return=e,e.child=l,Wt=e,Ut=null)):t=null,t===null)throw vl(e);return Xs(t)?e.lanes=32:e.lanes=536870912,null}var m=n.children;return n=n.fallback,u?(Ol(),u=e.mode,m=Gu({mode:"hidden",children:m},u),n=Vl(n,u,l,null),m.return=e,n.return=e,m.sibling=n,e.child=m,n=e.child,n.memoizedState=is(l),n.childLanes=rs(t,o,l),e.memoizedState=us,Ta(null,n)):(xl(e),ss(e,m))}var g=t.memoizedState;if(g!==null&&(m=g.dehydrated,m!==null)){if(r)e.flags&256?(xl(e),e.flags&=-257,e=cs(t,e,l)):e.memoizedState!==null?(Ol(),e.child=t.child,e.flags|=128,e=null):(Ol(),m=n.fallback,u=e.mode,n=Gu({mode:"visible",children:n.children},u),m=Vl(m,u,l,null),m.flags|=2,n.return=e,m.return=e,n.sibling=m,e.child=n,Il(e,t.child,null,l),n=e.child,n.memoizedState=is(l),n.childLanes=rs(t,o,l),e.memoizedState=us,e=Ta(null,n));else if(xl(e),Xs(m)){if(o=m.nextSibling&&m.nextSibling.dataset,o)var j=o.dgst;o=j,n=Error(c(419)),n.stack="",n.digest=o,ma({value:n,source:null,stack:null}),e=cs(t,e,l)}else if(Vt||zn(t,e,l,!1),o=(l&t.childLanes)!==0,Vt||o){if(o=Rt,o!==null&&(n=Kc(o,l),n!==0&&n!==g.retryLane))throw g.retryLane=n,Zl(t,n),he(o,t,n),ns;Gs(m)||Pu(),e=cs(t,e,l)}else Gs(m)?(e.flags|=192,e.child=t.child,e=null):(t=g.treeContext,Ut=Ue(m.nextSibling),Wt=e,bt=!0,yl=null,De=!1,t!==null&&Yo(e,t),e=ss(e,n.children),e.flags|=4096);return e}return u?(Ol(),m=n.fallback,u=e.mode,g=t.child,j=g.sibling,n=$e(g,{mode:"hidden",children:n.children}),n.subtreeFlags=g.subtreeFlags&65011712,j!==null?m=$e(j,m):(m=Vl(m,u,l,null),m.flags|=2),m.return=e,n.return=e,n.sibling=m,e.child=n,Ta(null,n),n=e.child,m=t.child.memoizedState,m===null?m=is(l):(u=m.cachePool,u!==null?(g=Kt._currentValue,u=u.parent!==g?{parent:g,pool:g}:u):u=Jo(),m={baseLanes:m.baseLanes|l,cachePool:u}),n.memoizedState=m,n.childLanes=rs(t,o,l),e.memoizedState=us,Ta(t.child,n)):(xl(e),l=t.child,t=l.sibling,l=$e(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=l,e.memoizedState=null,l)}function ss(t,e){return e=Gu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Gu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function cs(t,e,l){return Il(e,t.child,null,l),t=ss(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function rd(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Er(t.return,e,l)}function os(t,e,l,n,u,r){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:u,treeForkCount:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=l,o.tailMode=u,o.treeForkCount=r)}function sd(t,e,l){var n=e.pendingProps,u=n.revealOrder,r=n.tail;n=n.children;var o=Yt.current,m=(o&2)!==0;if(m?(o=o&1|2,e.flags|=128):o&=1,w(Yt,o),te(t,e,n,l),n=bt?ha:0,!m&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rd(t,l,e);else if(t.tag===19)rd(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(l=e.child,u=null;l!==null;)t=l.alternate,t!==null&&Mu(t)===null&&(u=l),l=l.sibling;l=u,l===null?(u=e.child,e.child=null):(u=l.sibling,l.sibling=null),os(e,!1,u,l,r,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Mu(t)===null){e.child=u;break}t=u.sibling,u.sibling=l,l=u,u=t}os(e,!0,l,null,r,n);break;case"together":os(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function ll(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),jl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(zn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=$e(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=$e(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function fs(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ou(t)))}function Gv(t,e,l){switch(e.tag){case 3:ae(e,e.stateNode.containerInfo),pl(e,Kt,t.memoizedState.cache),Jl();break;case 27:case 5:Wn(e);break;case 4:ae(e,e.stateNode.containerInfo);break;case 10:pl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Qr(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(xl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?id(t,e,l):(xl(e),t=ll(t,e,l),t!==null?t.sibling:null);xl(e);break;case 19:var u=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(zn(t,e,l,!1),n=(l&e.childLanes)!==0),u){if(n)return sd(t,e,l);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),w(Yt,Yt.current),n)break;return null;case 22:return e.lanes=0,td(t,e,l,e.pendingProps);case 24:pl(e,Kt,t.memoizedState.cache)}return ll(t,e,l)}function cd(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!fs(t,l)&&(e.flags&128)===0)return Vt=!1,Gv(t,e,l);Vt=(t.flags&131072)!==0}else Vt=!1,bt&&(e.flags&1048576)!==0&&Lo(e,ha,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Pl(e.elementType),e.type=t,typeof t=="function")vr(t)?(n=en(t,n),e.tag=1,e=ad(null,e,t,n,l)):(e.tag=0,e=as(null,e,t,n,l));else{if(t!=null){var u=t.$$typeof;if(u===qt){e.tag=11,e=Pf(null,e,t,n,l);break t}else if(u===D){e.tag=14,e=Wf(null,e,t,n,l);break t}}throw e=rt(t)||t,Error(c(306,e,""))}}return e;case 0:return as(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,u=en(n,e.pendingProps),ad(t,e,n,u,l);case 3:t:{if(ae(e,e.stateNode.containerInfo),t===null)throw Error(c(387));n=e.pendingProps;var r=e.memoizedState;u=r.element,Dr(t,e),xa(e,n,null,l);var o=e.memoizedState;if(n=o.cache,pl(e,Kt,n),n!==r.cache&&jr(e,[Kt],l,!0),Sa(),n=o.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=ud(t,e,n,l);break t}else if(n!==u){u=ze(Error(c(424)),e),ma(u),e=ud(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ut=Ue(t.firstChild),Wt=e,bt=!0,yl=null,De=!0,l=Io(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),n===u){e=ll(t,e,l);break t}te(t,e,n,l)}e=e.child}return e;case 26:return Yu(t,e),t===null?(l=Sh(e.type,null,e.pendingProps,null))?e.memoizedState=l:bt||(l=e.type,t=e.pendingProps,n=ai(st.current).createElement(l),n[Pt]=e,n[re]=t,ee(n,l,t),Ft(n),e.stateNode=n):e.memoizedState=Sh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Wn(e),t===null&&bt&&(n=e.stateNode=ph(e.type,e.pendingProps,st.current),Wt=e,De=!0,u=Ut,Ml(e.type)?(Ks=u,Ut=Ue(n.firstChild)):Ut=u),te(t,e,e.pendingProps.children,l),Yu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((u=n=Ut)&&(n=gp(n,e.type,e.pendingProps,De),n!==null?(e.stateNode=n,Wt=e,Ut=Ue(n.firstChild),De=!1,u=!0):u=!1),u||vl(e)),Wn(e),u=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,n=r.children,Bs(u,r)?n=null:o!==null&&Bs(u,o)&&(e.flags|=32),e.memoizedState!==null&&(u=wr(t,e,Uv,null,null,l),Ya._currentValue=u),Yu(t,e),te(t,e,n,l),e.child;case 6:return t===null&&bt&&((t=l=Ut)&&(l=bp(l,e.pendingProps,De),l!==null?(e.stateNode=l,Wt=e,Ut=null,t=!0):t=!1),t||vl(e)),null;case 13:return id(t,e,l);case 4:return ae(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Il(e,null,n,l):te(t,e,n,l),e.child;case 11:return Pf(t,e,e.type,e.pendingProps,l);case 7:return te(t,e,e.pendingProps,l),e.child;case 8:return te(t,e,e.pendingProps.children,l),e.child;case 12:return te(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,pl(e,e.type,n.value),te(t,e,n.children,l),e.child;case 9:return u=e.type._context,n=e.pendingProps.children,Fl(e),u=It(u),n=n(u),e.flags|=1,te(t,e,n,l),e.child;case 14:return Wf(t,e,e.type,e.pendingProps,l);case 15:return If(t,e,e.type,e.pendingProps,l);case 19:return sd(t,e,l);case 31:return Yv(t,e,l);case 22:return td(t,e,l,e.pendingProps);case 24:return Fl(e),n=It(Kt),t===null?(u=zr(),u===null&&(u=Rt,r=Tr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=l),u=r),e.memoizedState={parent:n,cache:u},Mr(e),pl(e,Kt,u)):((t.lanes&l)!==0&&(Dr(t,e),xa(e,null,null,l),Sa()),u=t.memoizedState,r=e.memoizedState,u.parent!==n?(u={parent:n,cache:n},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),pl(e,Kt,n)):(n=r.cache,pl(e,Kt,n),n!==u.cache&&jr(e,[Kt],l,!0))),te(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function nl(t){t.flags|=4}function ds(t,e,l,n,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Qd())t.flags|=8192;else throw Wl=Tu,Cr}else t.flags&=-16777217}function od(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!jh(e))if(Qd())t.flags|=8192;else throw Wl=Tu,Cr}function Xu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Yc():536870912,t.lanes|=e,Ln|=e)}function Aa(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Nt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var u=t.child;u!==null;)l|=u.lanes|u.childLanes,n|=u.subtreeFlags&65011712,n|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)l|=u.lanes|u.childLanes,n|=u.subtreeFlags,n|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function Xv(t,e,l){var n=e.pendingProps;switch(Sr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Ie(Kt),Lt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(An(e)?nl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Or())),Nt(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(nl(e),r!==null?(Nt(e),od(e,r)):(Nt(e),ds(e,u,null,n,l))):r?r!==t.memoizedState?(nl(e),Nt(e),od(e,r)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&nl(e),Nt(e),ds(e,u,t,n,l)),null;case 27:if(tu(e),l=st.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&nl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return Nt(e),null}t=B.current,An(e)?Go(e):(t=ph(u,n,l),e.stateNode=t,nl(e))}return Nt(e),null;case 5:if(tu(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&nl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return Nt(e),null}if(r=B.current,An(e))Go(e);else{var o=ai(st.current);switch(r){case 1:r=o.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=o.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=o.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?o.createElement(u,{is:n.is}):o.createElement(u)}}r[Pt]=e,r[re]=n;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=r;t:switch(ee(r,u,n),u){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&nl(e)}}return Nt(e),ds(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&nl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(c(166));if(t=st.current,An(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,u=Wt,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||ih(t.nodeValue,l)),t||vl(e,!0)}else t=ai(t).createTextNode(n),t[Pt]=e,e.stateNode=t}return Nt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=An(e),l!==null){if(t===null){if(!n)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Pt]=e}else Jl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else l=Or(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Se(e),e):(Se(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Nt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=An(e),n!==null&&n.dehydrated!==null){if(t===null){if(!u)throw Error(c(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[Pt]=e}else Jl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),u=!1}else u=Or(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Se(e),e):(Se(e),null)}return Se(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,u=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(u=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==u&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Xu(e,e.updateQueue),Nt(e),null);case 4:return Lt(),t===null&&Ns(e.stateNode.containerInfo),Nt(e),null;case 10:return Ie(e.type),Nt(e),null;case 19:if(U(Yt),n=e.memoizedState,n===null)return Nt(e),null;if(u=(e.flags&128)!==0,r=n.rendering,r===null)if(u)Aa(n,!1);else{if(wt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Mu(t),r!==null){for(e.flags|=128,Aa(n,!1),t=r.updateQueue,e.updateQueue=t,Xu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Ho(l,t),l=l.sibling;return w(Yt,Yt.current&1|2),bt&&Pe(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&me()>ku&&(e.flags|=128,u=!0,Aa(n,!1),e.lanes=4194304)}else{if(!u)if(t=Mu(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Xu(e,t),Aa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!bt)return Nt(e),null}else 2*me()-n.renderingStartTime>ku&&l!==536870912&&(e.flags|=128,u=!0,Aa(n,!1),e.lanes=4194304);n.isBackwards?(r.sibling=e.child,e.child=r):(t=n.last,t!==null?t.sibling=r:e.child=r,n.last=r)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=me(),t.sibling=null,l=Yt.current,w(Yt,u?l&1|2:l&1),bt&&Pe(e,n.treeForkCount),t):(Nt(e),null);case 22:case 23:return Se(e),qr(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),l=e.updateQueue,l!==null&&Xu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&U($l),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ie(Kt),Nt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Kv(t,e){switch(Sr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ie(Kt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return tu(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(c(340));Jl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Se(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Jl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Yt),null;case 4:return Lt(),null;case 10:return Ie(e.type),null;case 22:case 23:return Se(e),qr(),t!==null&&U($l),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ie(Kt),null;case 25:return null;default:return null}}function fd(t,e){switch(Sr(e),e.tag){case 3:Ie(Kt),Lt();break;case 26:case 27:case 5:tu(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:U(Yt);break;case 10:Ie(e.type);break;case 22:case 23:Se(e),qr(),t!==null&&U($l);break;case 24:Ie(Kt)}}function za(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&t)===t){n=void 0;var r=l.create,o=l.inst;n=r(),o.destroy=n}l=l.next}while(l!==u)}}catch(m){At(e,e.return,m)}}function _l(t,e,l){try{var n=e.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var r=u.next;n=r;do{if((n.tag&t)===t){var o=n.inst,m=o.destroy;if(m!==void 0){o.destroy=void 0,u=e;var g=l,j=m;try{j()}catch(R){At(u,g,R)}}}n=n.next}while(n!==r)}}catch(R){At(e,e.return,R)}}function dd(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{ef(e,l)}catch(n){At(t,t.return,n)}}}function hd(t,e,l){l.props=en(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){At(t,e,n)}}function Ca(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(u){At(t,e,u)}}function Xe(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(u){At(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){At(t,e,u)}else l.current=null}function md(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(u){At(t,t.return,u)}}function hs(t,e,l){try{var n=t.stateNode;dp(n,t.type,l,e),n[re]=e}catch(u){At(t,t.return,u)}}function yd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ml(t.type)||t.tag===4}function ms(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||yd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ml(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ys(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=ke));else if(n!==4&&(n===27&&Ml(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(ys(t,e,l),t=t.sibling;t!==null;)ys(t,e,l),t=t.sibling}function Ku(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Ml(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ku(t,e,l),t=t.sibling;t!==null;)Ku(t,e,l),t=t.sibling}function vd(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,n,l),e[Pt]=t,e[re]=l}catch(r){At(t,t.return,r)}}var al=!1,Jt=!1,vs=!1,pd=typeof WeakSet=="function"?WeakSet:Set,$t=null;function Zv(t,e){if(t=t.containerInfo,Hs=fi,t=zo(t),cr(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var u=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{l.nodeType,r.nodeType}catch{l=null;break t}var o=0,m=-1,g=-1,j=0,R=0,q=t,A=null;e:for(;;){for(var M;q!==l||u!==0&&q.nodeType!==3||(m=o+u),q!==r||n!==0&&q.nodeType!==3||(g=o+n),q.nodeType===3&&(o+=q.nodeValue.length),(M=q.firstChild)!==null;)A=q,q=M;for(;;){if(q===t)break e;if(A===l&&++j===u&&(m=o),A===r&&++R===n&&(g=o),(M=q.nextSibling)!==null)break;q=A,A=q.parentNode}q=M}l=m===-1||g===-1?null:{start:m,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(ws={focusedElem:t,selectionRange:l},fi=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)u=t[l],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,l=e,u=r.memoizedProps,r=r.memoizedState,n=l.stateNode;try{var k=en(l.type,u);t=n.getSnapshotBeforeUpdate(k,r),n.__reactInternalSnapshotBeforeUpdate=t}catch(ut){At(l,l.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Ys(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ys(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function gd(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:il(t,l),n&4&&za(5,l);break;case 1:if(il(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(o){At(l,l.return,o)}else{var u=en(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){At(l,l.return,o)}}n&64&&dd(l),n&512&&Ca(l,l.return);break;case 3:if(il(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{ef(t,e)}catch(o){At(l,l.return,o)}}break;case 27:e===null&&n&4&&vd(l);case 26:case 5:il(t,l),e===null&&n&4&&md(l),n&512&&Ca(l,l.return);break;case 12:il(t,l);break;case 31:il(t,l),n&4&&xd(t,l);break;case 13:il(t,l),n&4&&Od(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=tp.bind(null,l),Sp(t,l))));break;case 22:if(n=l.memoizedState!==null||al,!n){e=e!==null&&e.memoizedState!==null||Jt,u=al;var r=Jt;al=n,(Jt=e)&&!r?rl(t,l,(l.subtreeFlags&8772)!==0):il(t,l),al=u,Jt=r}break;case 30:break;default:il(t,l)}}function bd(t){var e=t.alternate;e!==null&&(t.alternate=null,bd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Vi(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Qt=null,ce=!1;function ul(t,e,l){for(l=l.child;l!==null;)Sd(t,e,l),l=l.sibling}function Sd(t,e,l){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(In,l)}catch{}switch(l.tag){case 26:Jt||Xe(l,e),ul(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Jt||Xe(l,e);var n=Qt,u=ce;Ml(l.type)&&(Qt=l.stateNode,ce=!1),ul(t,e,l),wa(l.stateNode),Qt=n,ce=u;break;case 5:Jt||Xe(l,e);case 6:if(n=Qt,u=ce,Qt=null,ul(t,e,l),Qt=n,ce=u,Qt!==null)if(ce)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(l.stateNode)}catch(r){At(l,e,r)}else try{Qt.removeChild(l.stateNode)}catch(r){At(l,e,r)}break;case 18:Qt!==null&&(ce?(t=Qt,dh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),kn(t)):dh(Qt,l.stateNode));break;case 4:n=Qt,u=ce,Qt=l.stateNode.containerInfo,ce=!0,ul(t,e,l),Qt=n,ce=u;break;case 0:case 11:case 14:case 15:_l(2,l,e),Jt||_l(4,l,e),ul(t,e,l);break;case 1:Jt||(Xe(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&hd(l,e,n)),ul(t,e,l);break;case 21:ul(t,e,l);break;case 22:Jt=(n=Jt)||l.memoizedState!==null,ul(t,e,l),Jt=n;break;default:ul(t,e,l)}}function xd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{kn(t)}catch(l){At(e,e.return,l)}}}function Od(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{kn(t)}catch(l){At(e,e.return,l)}}function Vv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new pd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new pd),e;default:throw Error(c(435,t.tag))}}function Zu(t,e){var l=Vv(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var u=ep.bind(null,t,n);n.then(u,u)}})}function oe(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var u=l[n],r=t,o=e,m=o;t:for(;m!==null;){switch(m.tag){case 27:if(Ml(m.type)){Qt=m.stateNode,ce=!1;break t}break;case 5:Qt=m.stateNode,ce=!1;break t;case 3:case 4:Qt=m.stateNode.containerInfo,ce=!0;break t}m=m.return}if(Qt===null)throw Error(c(160));Sd(r,o,u),Qt=null,ce=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)_d(e,t),e=e.sibling}var He=null;function _d(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oe(e,t),fe(t),n&4&&(_l(3,t,t.return),za(3,t),_l(5,t,t.return));break;case 1:oe(e,t),fe(t),n&512&&(Jt||l===null||Xe(l,l.return)),n&64&&al&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var u=He;if(oe(e,t),fe(t),n&512&&(Jt||l===null||Xe(l,l.return)),n&4){var r=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,u=u.ownerDocument||u;e:switch(n){case"title":r=u.getElementsByTagName("title")[0],(!r||r[la]||r[Pt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(n),u.head.insertBefore(r,u.querySelector("head > title"))),ee(r,n,l),r[Pt]=t,Ft(r),n=r;break t;case"link":var o=_h("link","href",u).get(n+(l.href||""));if(o){for(var m=0;m<o.length;m++)if(r=o[m],r.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&r.getAttribute("rel")===(l.rel==null?null:l.rel)&&r.getAttribute("title")===(l.title==null?null:l.title)&&r.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(m,1);break e}}r=u.createElement(n),ee(r,n,l),u.head.appendChild(r);break;case"meta":if(o=_h("meta","content",u).get(n+(l.content||""))){for(m=0;m<o.length;m++)if(r=o[m],r.getAttribute("content")===(l.content==null?null:""+l.content)&&r.getAttribute("name")===(l.name==null?null:l.name)&&r.getAttribute("property")===(l.property==null?null:l.property)&&r.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&r.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(m,1);break e}}r=u.createElement(n),ee(r,n,l),u.head.appendChild(r);break;default:throw Error(c(468,n))}r[Pt]=t,Ft(r),n=r}t.stateNode=n}else Eh(u,t.type,t.stateNode);else t.stateNode=Oh(u,n,t.memoizedProps);else r!==n?(r===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):r.count--,n===null?Eh(u,t.type,t.stateNode):Oh(u,n,t.memoizedProps)):n===null&&t.stateNode!==null&&hs(t,t.memoizedProps,l.memoizedProps)}break;case 27:oe(e,t),fe(t),n&512&&(Jt||l===null||Xe(l,l.return)),l!==null&&n&4&&hs(t,t.memoizedProps,l.memoizedProps);break;case 5:if(oe(e,t),fe(t),n&512&&(Jt||l===null||Xe(l,l.return)),t.flags&32){u=t.stateNode;try{pn(u,"")}catch(k){At(t,t.return,k)}}n&4&&t.stateNode!=null&&(u=t.memoizedProps,hs(t,u,l!==null?l.memoizedProps:u)),n&1024&&(vs=!0);break;case 6:if(oe(e,t),fe(t),n&4){if(t.stateNode===null)throw Error(c(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(k){At(t,t.return,k)}}break;case 3:if(ri=null,u=He,He=ui(e.containerInfo),oe(e,t),He=u,fe(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{kn(e.containerInfo)}catch(k){At(t,t.return,k)}vs&&(vs=!1,Ed(t));break;case 4:n=He,He=ui(t.stateNode.containerInfo),oe(e,t),fe(t),He=n;break;case 12:oe(e,t),fe(t);break;case 31:oe(e,t),fe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Zu(t,n)));break;case 13:oe(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ju=me()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Zu(t,n)));break;case 22:u=t.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,j=al,R=Jt;if(al=j||u,Jt=R||g,oe(e,t),Jt=R,al=j,fe(t),n&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(l===null||g||al||Jt||ln(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){g=l=e;try{if(r=g.stateNode,u)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=g.stateNode;var q=g.memoizedProps.style,A=q!=null&&q.hasOwnProperty("display")?q.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(k){At(g,g.return,k)}}}else if(e.tag===6){if(l===null){g=e;try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch(k){At(g,g.return,k)}}}else if(e.tag===18){if(l===null){g=e;try{var M=g.stateNode;u?hh(M,!0):hh(g.stateNode,!1)}catch(k){At(g,g.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Zu(t,l))));break;case 19:oe(e,t),fe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Zu(t,n)));break;case 30:break;case 21:break;default:oe(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(yd(n)){l=n;break}n=n.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var u=l.stateNode,r=ms(t);Ku(t,r,u);break;case 5:var o=l.stateNode;l.flags&32&&(pn(o,""),l.flags&=-33);var m=ms(t);Ku(t,m,o);break;case 3:case 4:var g=l.stateNode.containerInfo,j=ms(t);ys(t,j,g);break;default:throw Error(c(161))}}catch(R){At(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ed(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ed(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function il(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)gd(t,e.alternate,e),e=e.sibling}function ln(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:_l(4,e,e.return),ln(e);break;case 1:Xe(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&hd(e,e.return,l),ln(e);break;case 27:wa(e.stateNode);case 26:case 5:Xe(e,e.return),ln(e);break;case 22:e.memoizedState===null&&ln(e);break;case 30:ln(e);break;default:ln(e)}t=t.sibling}}function rl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,u=t,r=e,o=r.flags;switch(r.tag){case 0:case 11:case 15:rl(u,r,l),za(4,r);break;case 1:if(rl(u,r,l),n=r,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(j){At(n,n.return,j)}if(n=r,u=n.updateQueue,u!==null){var m=n.stateNode;try{var g=u.shared.hiddenCallbacks;if(g!==null)for(u.shared.hiddenCallbacks=null,u=0;u<g.length;u++)tf(g[u],m)}catch(j){At(n,n.return,j)}}l&&o&64&&dd(r),Ca(r,r.return);break;case 27:vd(r);case 26:case 5:rl(u,r,l),l&&n===null&&o&4&&md(r),Ca(r,r.return);break;case 12:rl(u,r,l);break;case 31:rl(u,r,l),l&&o&4&&xd(u,r);break;case 13:rl(u,r,l),l&&o&4&&Od(u,r);break;case 22:r.memoizedState===null&&rl(u,r,l),Ca(r,r.return);break;case 30:break;default:rl(u,r,l)}e=e.sibling}}function ps(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ya(l))}function gs(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ya(t))}function we(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jd(t,e,l,n),e=e.sibling}function jd(t,e,l,n){var u=e.flags;switch(e.tag){case 0:case 11:case 15:we(t,e,l,n),u&2048&&za(9,e);break;case 1:we(t,e,l,n);break;case 3:we(t,e,l,n),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ya(t)));break;case 12:if(u&2048){we(t,e,l,n),t=e.stateNode;try{var r=e.memoizedProps,o=r.id,m=r.onPostCommit;typeof m=="function"&&m(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){At(e,e.return,g)}}else we(t,e,l,n);break;case 31:we(t,e,l,n);break;case 13:we(t,e,l,n);break;case 23:break;case 22:r=e.stateNode,o=e.alternate,e.memoizedState!==null?r._visibility&2?we(t,e,l,n):Ma(t,e):r._visibility&2?we(t,e,l,n):(r._visibility|=2,Hn(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),u&2048&&ps(o,e);break;case 24:we(t,e,l,n),u&2048&&gs(e.alternate,e);break;default:we(t,e,l,n)}}function Hn(t,e,l,n,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,o=e,m=l,g=n,j=o.flags;switch(o.tag){case 0:case 11:case 15:Hn(r,o,m,g,u),za(8,o);break;case 23:break;case 22:var R=o.stateNode;o.memoizedState!==null?R._visibility&2?Hn(r,o,m,g,u):Ma(r,o):(R._visibility|=2,Hn(r,o,m,g,u)),u&&j&2048&&ps(o.alternate,o);break;case 24:Hn(r,o,m,g,u),u&&j&2048&&gs(o.alternate,o);break;default:Hn(r,o,m,g,u)}e=e.sibling}}function Ma(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,u=n.flags;switch(n.tag){case 22:Ma(l,n),u&2048&&ps(n.alternate,n);break;case 24:Ma(l,n),u&2048&&gs(n.alternate,n);break;default:Ma(l,n)}e=e.sibling}}var Da=8192;function wn(t,e,l){if(t.subtreeFlags&Da)for(t=t.child;t!==null;)Td(t,e,l),t=t.sibling}function Td(t,e,l){switch(t.tag){case 26:wn(t,e,l),t.flags&Da&&t.memoizedState!==null&&Rp(l,He,t.memoizedState,t.memoizedProps);break;case 5:wn(t,e,l);break;case 3:case 4:var n=He;He=ui(t.stateNode.containerInfo),wn(t,e,l),He=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Da,Da=16777216,wn(t,e,l),Da=n):wn(t,e,l));break;default:wn(t,e,l)}}function Ad(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ra(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];$t=n,Cd(n,t)}Ad(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zd(t),t=t.sibling}function zd(t){switch(t.tag){case 0:case 11:case 15:Ra(t),t.flags&2048&&_l(9,t,t.return);break;case 3:Ra(t);break;case 12:Ra(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Vu(t)):Ra(t);break;default:Ra(t)}}function Vu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];$t=n,Cd(n,t)}Ad(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:_l(8,e,e.return),Vu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Vu(e));break;default:Vu(e)}t=t.sibling}}function Cd(t,e){for(;$t!==null;){var l=$t;switch(l.tag){case 0:case 11:case 15:_l(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ya(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,$t=n;else t:for(l=t;$t!==null;){n=$t;var u=n.sibling,r=n.return;if(bd(n),n===l){$t=null;break t}if(u!==null){u.return=r,$t=u;break t}$t=r}}}var Jv={getCacheForType:function(t){var e=It(Kt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return It(Kt).controller.signal}},kv=typeof WeakMap=="function"?WeakMap:Map,Et=0,Rt=null,yt=null,pt=0,Tt=0,xe=null,El=!1,Bn=!1,bs=!1,sl=0,wt=0,jl=0,nn=0,Ss=0,Oe=0,Ln=0,Ua=null,de=null,xs=!1,Ju=0,Md=0,ku=1/0,Fu=null,Tl=null,kt=0,Al=null,Yn=null,cl=0,Os=0,_s=null,Dd=null,Na=0,Es=null;function _e(){return(Et&2)!==0&&pt!==0?pt&-pt:T.T!==null?Ms():Zc()}function Rd(){if(Oe===0)if((pt&536870912)===0||bt){var t=nu;nu<<=1,(nu&3932160)===0&&(nu=262144),Oe=t}else Oe=536870912;return t=be.current,t!==null&&(t.flags|=32),Oe}function he(t,e,l){(t===Rt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(Gn(t,0),zl(t,pt,Oe,!1)),ea(t,l),((Et&2)===0||t!==Rt)&&(t===Rt&&((Et&2)===0&&(nn|=l),wt===4&&zl(t,pt,Oe,!1)),Ke(t))}function Ud(t,e,l){if((Et&6)!==0)throw Error(c(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||ta(t,e),u=n?Pv(t,e):Ts(t,e,!0),r=n;do{if(u===0){Bn&&!n&&zl(t,e,0,!1);break}else{if(l=t.current.alternate,r&&!Fv(l)){u=Ts(t,e,!1),r=!1;continue}if(u===2){if(r=e,t.errorRecoveryDisabledLanes&r)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var m=t;u=Ua;var g=m.current.memoizedState.isDehydrated;if(g&&(Gn(m,o).flags|=256),o=Ts(m,o,!1),o!==2){if(bs&&!g){m.errorRecoveryDisabledLanes|=r,nn|=r,u=4;break t}r=de,de=u,r!==null&&(de===null?de=r:de.push.apply(de,r))}u=o}if(r=!1,u!==2)continue}}if(u===1){Gn(t,0),zl(t,e,0,!0);break}t:{switch(n=t,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:zl(n,e,Oe,!El);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(u=Ju+300-me(),10<u)){if(zl(n,e,Oe,!El),uu(n,0,!0)!==0)break t;cl=e,n.timeoutHandle=oh(Nd.bind(null,n,l,de,Fu,xs,e,Oe,nn,Ln,El,r,"Throttled",-0,0),u);break t}Nd(n,l,de,Fu,xs,e,Oe,nn,Ln,El,r,null,-0,0)}}break}while(!0);Ke(t)}function Nd(t,e,l,n,u,r,o,m,g,j,R,q,A,M){if(t.timeoutHandle=-1,q=e.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ke},Td(e,r,q);var k=(r&62914560)===r?Ju-me():(r&4194048)===r?Md-me():0;if(k=Up(q,k),k!==null){cl=r,t.cancelPendingCommit=k(Gd.bind(null,t,e,r,l,n,u,o,m,g,R,q,null,A,M)),zl(t,r,o,!j);return}}Gd(t,e,r,l,n,u,o,m,g)}function Fv(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var u=l[n],r=u.getSnapshot;u=u.value;try{if(!pe(r(),u))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function zl(t,e,l,n){e&=~Ss,e&=~nn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var u=e;0<u;){var r=31-ve(u),o=1<<r;n[r]=-1,u&=~o}l!==0&&Gc(t,l,e)}function $u(){return(Et&6)===0?(qa(0),!1):!0}function js(){if(yt!==null){if(Tt===0)var t=yt.return;else t=yt,We=kl=null,Yr(t),Rn=null,pa=0,t=yt;for(;t!==null;)fd(t.alternate,t),t=t.return;yt=null}}function Gn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,yp(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),cl=0,js(),Rt=t,yt=l=$e(t.current,null),pt=e,Tt=0,xe=null,El=!1,Bn=ta(t,e),bs=!1,Ln=Oe=Ss=nn=jl=wt=0,de=Ua=null,xs=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var u=31-ve(n),r=1<<u;e|=t[u],n&=~r}return sl=e,pu(),l}function qd(t,e){ft=null,T.H=ja,e===Dn||e===ju?(e=$o(),Tt=3):e===Cr?(e=$o(),Tt=4):Tt=e===ns?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,xe=e,yt===null&&(wt=1,Bu(t,ze(e,t.current)))}function Qd(){var t=be.current;return t===null?!0:(pt&4194048)===pt?Re===null:(pt&62914560)===pt||(pt&536870912)!==0?t===Re:!1}function Hd(){var t=T.H;return T.H=ja,t===null?ja:t}function wd(){var t=T.A;return T.A=Jv,t}function Pu(){wt=4,El||(pt&4194048)!==pt&&be.current!==null||(Bn=!0),(jl&134217727)===0&&(nn&134217727)===0||Rt===null||zl(Rt,pt,Oe,!1)}function Ts(t,e,l){var n=Et;Et|=2;var u=Hd(),r=wd();(Rt!==t||pt!==e)&&(Fu=null,Gn(t,e)),e=!1;var o=wt;t:do try{if(Tt!==0&&yt!==null){var m=yt,g=xe;switch(Tt){case 8:js(),o=6;break t;case 3:case 2:case 9:case 6:be.current===null&&(e=!0);var j=Tt;if(Tt=0,xe=null,Xn(t,m,g,j),l&&Bn){o=0;break t}break;default:j=Tt,Tt=0,xe=null,Xn(t,m,g,j)}}$v(),o=wt;break}catch(R){qd(t,R)}while(!0);return e&&t.shellSuspendCounter++,We=kl=null,Et=n,T.H=u,T.A=r,yt===null&&(Rt=null,pt=0,pu()),o}function $v(){for(;yt!==null;)Bd(yt)}function Pv(t,e){var l=Et;Et|=2;var n=Hd(),u=wd();Rt!==t||pt!==e?(Fu=null,ku=me()+500,Gn(t,e)):Bn=ta(t,e);t:do try{if(Tt!==0&&yt!==null){e=yt;var r=xe;e:switch(Tt){case 1:Tt=0,xe=null,Xn(t,e,r,1);break;case 2:case 9:if(ko(r)){Tt=0,xe=null,Ld(e);break}e=function(){Tt!==2&&Tt!==9||Rt!==t||(Tt=7),Ke(t)},r.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:ko(r)?(Tt=0,xe=null,Ld(e)):(Tt=0,xe=null,Xn(t,e,r,7));break;case 5:var o=null;switch(yt.tag){case 26:o=yt.memoizedState;case 5:case 27:var m=yt;if(o?jh(o):m.stateNode.complete){Tt=0,xe=null;var g=m.sibling;if(g!==null)yt=g;else{var j=m.return;j!==null?(yt=j,Wu(j)):yt=null}break e}}Tt=0,xe=null,Xn(t,e,r,5);break;case 6:Tt=0,xe=null,Xn(t,e,r,6);break;case 8:js(),wt=6;break t;default:throw Error(c(462))}}Wv();break}catch(R){qd(t,R)}while(!0);return We=kl=null,T.H=n,T.A=u,Et=l,yt!==null?0:(Rt=null,pt=0,pu(),wt)}function Wv(){for(;yt!==null&&!xy();)Bd(yt)}function Bd(t){var e=cd(t.alternate,t,sl);t.memoizedProps=t.pendingProps,e===null?Wu(t):yt=e}function Ld(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=nd(l,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=nd(l,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:Yr(e);default:fd(l,e),e=yt=Ho(e,sl),e=cd(l,e,sl)}t.memoizedProps=t.pendingProps,e===null?Wu(t):yt=e}function Xn(t,e,l,n){We=kl=null,Yr(e),Rn=null,pa=0;var u=e.return;try{if(Lv(t,u,e,l,pt)){wt=1,Bu(t,ze(l,t.current)),yt=null;return}}catch(r){if(u!==null)throw yt=u,r;wt=1,Bu(t,ze(l,t.current)),yt=null;return}e.flags&32768?(bt||n===1?t=!0:Bn||(pt&536870912)!==0?t=!1:(El=t=!0,(n===2||n===9||n===3||n===6)&&(n=be.current,n!==null&&n.tag===13&&(n.flags|=16384))),Yd(e,t)):Wu(e)}function Wu(t){var e=t;do{if((e.flags&32768)!==0){Yd(e,El);return}t=e.return;var l=Xv(e.alternate,e,sl);if(l!==null){yt=l;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);wt===0&&(wt=5)}function Yd(t,e){do{var l=Kv(t.alternate,t);if(l!==null){l.flags&=32767,yt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=l}while(t!==null);wt=6,yt=null}function Gd(t,e,l,n,u,r,o,m,g){t.cancelPendingCommit=null;do Iu();while(kt!==0);if((Et&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(r=e.lanes|e.childLanes,r|=mr,Dy(t,l,r,o,m,g),t===Rt&&(yt=Rt=null,pt=0),Yn=e,Al=t,cl=l,Os=r,_s=u,Dd=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,lp(eu,function(){return Jd(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null,u=H.p,H.p=2,o=Et,Et|=4;try{Zv(t,e,l)}finally{Et=o,H.p=u,T.T=n}}kt=1,Xd(),Kd(),Zd()}}function Xd(){if(kt===1){kt=0;var t=Al,e=Yn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var n=H.p;H.p=2;var u=Et;Et|=4;try{_d(e,t);var r=ws,o=zo(t.containerInfo),m=r.focusedElem,g=r.selectionRange;if(o!==m&&m&&m.ownerDocument&&Ao(m.ownerDocument.documentElement,m)){if(g!==null&&cr(m)){var j=g.start,R=g.end;if(R===void 0&&(R=j),"selectionStart"in m)m.selectionStart=j,m.selectionEnd=Math.min(R,m.value.length);else{var q=m.ownerDocument||document,A=q&&q.defaultView||window;if(A.getSelection){var M=A.getSelection(),k=m.textContent.length,ut=Math.min(g.start,k),Dt=g.end===void 0?ut:Math.min(g.end,k);!M.extend&&ut>Dt&&(o=Dt,Dt=ut,ut=o);var O=To(m,ut),S=To(m,Dt);if(O&&S&&(M.rangeCount!==1||M.anchorNode!==O.node||M.anchorOffset!==O.offset||M.focusNode!==S.node||M.focusOffset!==S.offset)){var E=q.createRange();E.setStart(O.node,O.offset),M.removeAllRanges(),ut>Dt?(M.addRange(E),M.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),M.addRange(E))}}}}for(q=[],M=m;M=M.parentNode;)M.nodeType===1&&q.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<q.length;m++){var N=q[m];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}fi=!!Hs,ws=Hs=null}finally{Et=u,H.p=n,T.T=l}}t.current=e,kt=2}}function Kd(){if(kt===2){kt=0;var t=Al,e=Yn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var n=H.p;H.p=2;var u=Et;Et|=4;try{gd(t,e.alternate,e)}finally{Et=u,H.p=n,T.T=l}}kt=3}}function Zd(){if(kt===4||kt===3){kt=0,Oy();var t=Al,e=Yn,l=cl,n=Dd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?kt=5:(kt=0,Yn=Al=null,Vd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Tl=null),Ki(l),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(In,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=T.T,u=H.p,H.p=2,T.T=null;try{for(var r=t.onRecoverableError,o=0;o<n.length;o++){var m=n[o];r(m.value,{componentStack:m.stack})}}finally{T.T=e,H.p=u}}(cl&3)!==0&&Iu(),Ke(t),u=t.pendingLanes,(l&261930)!==0&&(u&42)!==0?t===Es?Na++:(Na=0,Es=t):Na=0,qa(0)}}function Vd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ya(e)))}function Iu(){return Xd(),Kd(),Zd(),Jd()}function Jd(){if(kt!==5)return!1;var t=Al,e=Os;Os=0;var l=Ki(cl),n=T.T,u=H.p;try{H.p=32>l?32:l,T.T=null,l=_s,_s=null;var r=Al,o=cl;if(kt=0,Yn=Al=null,cl=0,(Et&6)!==0)throw Error(c(331));var m=Et;if(Et|=4,zd(r.current),jd(r,r.current,o,l),Et=m,qa(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(In,r)}catch{}return!0}finally{H.p=u,T.T=n,Vd(t,e)}}function kd(t,e,l){e=ze(l,e),e=ls(t.stateNode,e,2),t=Sl(t,e,2),t!==null&&(ea(t,2),Ke(t))}function At(t,e,l){if(t.tag===3)kd(t,t,l);else for(;e!==null;){if(e.tag===3){kd(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Tl===null||!Tl.has(n))){t=ze(l,t),l=Ff(2),n=Sl(e,l,2),n!==null&&($f(l,n,e,t),ea(n,2),Ke(n));break}}e=e.return}}function As(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new kv;var u=new Set;n.set(e,u)}else u=n.get(e),u===void 0&&(u=new Set,n.set(e,u));u.has(l)||(bs=!0,u.add(l),t=Iv.bind(null,t,e,l),e.then(t,t))}function Iv(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Rt===t&&(pt&l)===l&&(wt===4||wt===3&&(pt&62914560)===pt&&300>me()-Ju?(Et&2)===0&&Gn(t,0):Ss|=l,Ln===pt&&(Ln=0)),Ke(t)}function Fd(t,e){e===0&&(e=Yc()),t=Zl(t,e),t!==null&&(ea(t,e),Ke(t))}function tp(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Fd(t,l)}function ep(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,u=t.memoizedState;u!==null&&(l=u.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(e),Fd(t,l)}function lp(t,e){return Li(t,e)}var ti=null,Kn=null,zs=!1,ei=!1,Cs=!1,Cl=0;function Ke(t){t!==Kn&&t.next===null&&(Kn===null?ti=Kn=t:Kn=Kn.next=t),ei=!0,zs||(zs=!0,ap())}function qa(t,e){if(!Cs&&ei){Cs=!0;do for(var l=!1,n=ti;n!==null;){if(t!==0){var u=n.pendingLanes;if(u===0)var r=0;else{var o=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-ve(42|t)+1)-1,r&=u&~(o&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(l=!0,Id(n,r))}else r=pt,r=uu(n,n===Rt?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||ta(n,r)||(l=!0,Id(n,r));n=n.next}while(l);Cs=!1}}function np(){$d()}function $d(){ei=zs=!1;var t=0;Cl!==0&&mp()&&(t=Cl);for(var e=me(),l=null,n=ti;n!==null;){var u=n.next,r=Pd(n,e);r===0?(n.next=null,l===null?ti=u:l.next=u,u===null&&(Kn=l)):(l=n,(t!==0||(r&3)!==0)&&(ei=!0)),n=u}kt!==0&&kt!==5||qa(t),Cl!==0&&(Cl=0)}function Pd(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var o=31-ve(r),m=1<<o,g=u[o];g===-1?((m&l)===0||(m&n)!==0)&&(u[o]=My(m,e)):g<=e&&(t.expiredLanes|=m),r&=~m}if(e=Rt,l=pt,l=uu(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Yi(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ta(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&Yi(n),Ki(l)){case 2:case 8:l=Bc;break;case 32:l=eu;break;case 268435456:l=Lc;break;default:l=eu}return n=Wd.bind(null,t),l=Li(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Yi(n),t.callbackPriority=2,t.callbackNode=null,2}function Wd(t,e){if(kt!==0&&kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Iu()&&t.callbackNode!==l)return null;var n=pt;return n=uu(t,t===Rt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Ud(t,n,e),Pd(t,me()),t.callbackNode!=null&&t.callbackNode===l?Wd.bind(null,t):null)}function Id(t,e){if(Iu())return null;Ud(t,e,!0)}function ap(){vp(function(){(Et&6)!==0?Li(wc,np):$d()})}function Ms(){if(Cl===0){var t=Cn;t===0&&(t=lu,lu<<=1,(lu&261888)===0&&(lu=256)),Cl=t}return Cl}function th(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:cu(""+t)}function eh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function up(t,e,l,n,u){if(e==="submit"&&l&&l.stateNode===u){var r=th((u[re]||null).action),o=n.submitter;o&&(e=(e=o[re]||null)?th(e.formAction):o.getAttribute("formAction"),e!==null&&(r=e,o=null));var m=new hu("action","action",null,n,u);t.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Cl!==0){var g=o?eh(u,o):new FormData(u);$r(l,{pending:!0,data:g,method:u.method,action:r},null,g)}}else typeof r=="function"&&(m.preventDefault(),g=o?eh(u,o):new FormData(u),$r(l,{pending:!0,data:g,method:u.method,action:r},r,g))},currentTarget:u}]})}}for(var Ds=0;Ds<hr.length;Ds++){var Rs=hr[Ds],ip=Rs.toLowerCase(),rp=Rs[0].toUpperCase()+Rs.slice(1);Qe(ip,"on"+rp)}Qe(Do,"onAnimationEnd"),Qe(Ro,"onAnimationIteration"),Qe(Uo,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(_v,"onTransitionRun"),Qe(Ev,"onTransitionStart"),Qe(jv,"onTransitionCancel"),Qe(No,"onTransitionEnd"),yn("onMouseEnter",["mouseout","mouseover"]),yn("onMouseLeave",["mouseout","mouseover"]),yn("onPointerEnter",["pointerout","pointerover"]),yn("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="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(" "),sp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qa));function lh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],u=n.event;n=n.listeners;t:{var r=void 0;if(e)for(var o=n.length-1;0<=o;o--){var m=n[o],g=m.instance,j=m.currentTarget;if(m=m.listener,g!==r&&u.isPropagationStopped())break t;r=m,u.currentTarget=j;try{r(u)}catch(R){vu(R)}u.currentTarget=null,r=g}else for(o=0;o<n.length;o++){if(m=n[o],g=m.instance,j=m.currentTarget,m=m.listener,g!==r&&u.isPropagationStopped())break t;r=m,u.currentTarget=j;try{r(u)}catch(R){vu(R)}u.currentTarget=null,r=g}}}}function vt(t,e){var l=e[Zi];l===void 0&&(l=e[Zi]=new Set);var n=t+"__bubble";l.has(n)||(nh(e,t,2,!1),l.add(n))}function Us(t,e,l){var n=0;e&&(n|=4),nh(l,t,n,e)}var li="_reactListening"+Math.random().toString(36).slice(2);function Ns(t){if(!t[li]){t[li]=!0,kc.forEach(function(l){l!=="selectionchange"&&(sp.has(l)||Us(l,!1,t),Us(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[li]||(e[li]=!0,Us("selectionchange",!1,e))}}function nh(t,e,l,n){switch(Rh(e)){case 2:var u=Qp;break;case 8:u=Hp;break;default:u=Fs}l=u.bind(null,e,l,t),u=void 0,!tr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),n?u!==void 0?t.addEventListener(e,l,{capture:!0,passive:u}):t.addEventListener(e,l,!0):u!==void 0?t.addEventListener(e,l,{passive:u}):t.addEventListener(e,l,!1)}function qs(t,e,l,n,u){var r=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var m=n.stateNode.containerInfo;if(m===u)break;if(o===4)for(o=n.return;o!==null;){var g=o.tag;if((g===3||g===4)&&o.stateNode.containerInfo===u)return;o=o.return}for(;m!==null;){if(o=dn(m),o===null)return;if(g=o.tag,g===5||g===6||g===26||g===27){n=r=o;continue t}m=m.parentNode}}n=n.return}io(function(){var j=r,R=Wi(l),q=[];t:{var A=qo.get(t);if(A!==void 0){var M=hu,k=t;switch(t){case"keypress":if(fu(l)===0)break t;case"keydown":case"keyup":M=ev;break;case"focusin":k="focus",M=ar;break;case"focusout":k="blur",M=ar;break;case"beforeblur":case"afterblur":M=ar;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=co;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Xy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=av;break;case Do:case Ro:case Uo:M=Vy;break;case No:M=iv;break;case"scroll":case"scrollend":M=Yy;break;case"wheel":M=sv;break;case"copy":case"cut":case"paste":M=ky;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=fo;break;case"toggle":case"beforetoggle":M=ov}var ut=(e&4)!==0,Dt=!ut&&(t==="scroll"||t==="scrollend"),O=ut?A!==null?A+"Capture":null:A;ut=[];for(var S=j,E;S!==null;){var N=S;if(E=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||E===null||O===null||(N=aa(S,O),N!=null&&ut.push(Ha(S,N,E))),Dt)break;S=S.return}0<ut.length&&(A=new M(A,k,null,l,R),q.push({event:A,listeners:ut}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",M=t==="mouseout"||t==="pointerout",A&&l!==Pi&&(k=l.relatedTarget||l.fromElement)&&(dn(k)||k[fn]))break t;if((M||A)&&(A=R.window===R?R:(A=R.ownerDocument)?A.defaultView||A.parentWindow:window,M?(k=l.relatedTarget||l.toElement,M=j,k=k?dn(k):null,k!==null&&(Dt=d(k),ut=k.tag,k!==Dt||ut!==5&&ut!==27&&ut!==6)&&(k=null)):(M=null,k=j),M!==k)){if(ut=co,N="onMouseLeave",O="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(ut=fo,N="onPointerLeave",O="onPointerEnter",S="pointer"),Dt=M==null?A:na(M),E=k==null?A:na(k),A=new ut(N,S+"leave",M,l,R),A.target=Dt,A.relatedTarget=E,N=null,dn(R)===j&&(ut=new ut(O,S+"enter",k,l,R),ut.target=E,ut.relatedTarget=Dt,N=ut),Dt=N,M&&k)e:{for(ut=cp,O=M,S=k,E=0,N=O;N;N=ut(N))E++;N=0;for(var nt=S;nt;nt=ut(nt))N++;for(;0<E-N;)O=ut(O),E--;for(;0<N-E;)S=ut(S),N--;for(;E--;){if(O===S||S!==null&&O===S.alternate){ut=O;break e}O=ut(O),S=ut(S)}ut=null}else ut=null;M!==null&&ah(q,A,M,ut,!1),k!==null&&Dt!==null&&ah(q,Dt,k,ut,!0)}}t:{if(A=j?na(j):window,M=A.nodeName&&A.nodeName.toLowerCase(),M==="select"||M==="input"&&A.type==="file")var xt=So;else if(go(A))if(xo)xt=Sv;else{xt=gv;var W=pv}else M=A.nodeName,!M||M.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?j&&$i(j.elementType)&&(xt=So):xt=bv;if(xt&&(xt=xt(t,j))){bo(q,xt,l,R);break t}W&&W(t,A,j),t==="focusout"&&j&&A.type==="number"&&j.memoizedProps.value!=null&&Fi(A,"number",A.value)}switch(W=j?na(j):window,t){case"focusin":(go(W)||W.contentEditable==="true")&&(xn=W,or=j,da=null);break;case"focusout":da=or=xn=null;break;case"mousedown":fr=!0;break;case"contextmenu":case"mouseup":case"dragend":fr=!1,Co(q,l,R);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":Co(q,l,R)}var dt;if(ir)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else Sn?vo(t,l)&&(gt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(gt="onCompositionStart");gt&&(ho&&l.locale!=="ko"&&(Sn||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Sn&&(dt=ro()):(hl=R,er="value"in hl?hl.value:hl.textContent,Sn=!0)),W=ni(j,gt),0<W.length&&(gt=new oo(gt,t,null,l,R),q.push({event:gt,listeners:W}),dt?gt.data=dt:(dt=po(l),dt!==null&&(gt.data=dt)))),(dt=dv?hv(t,l):mv(t,l))&&(gt=ni(j,"onBeforeInput"),0<gt.length&&(W=new oo("onBeforeInput","beforeinput",null,l,R),q.push({event:W,listeners:gt}),W.data=dt)),up(q,t,j,l,R)}lh(q,e)})}function Ha(t,e,l){return{instance:t,listener:e,currentTarget:l}}function ni(t,e){for(var l=e+"Capture",n=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=aa(t,l),u!=null&&n.unshift(Ha(t,u,r)),u=aa(t,e),u!=null&&n.push(Ha(t,u,r))),t.tag===3)return n;t=t.return}return[]}function cp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ah(t,e,l,n,u){for(var r=e._reactName,o=[];l!==null&&l!==n;){var m=l,g=m.alternate,j=m.stateNode;if(m=m.tag,g!==null&&g===n)break;m!==5&&m!==26&&m!==27||j===null||(g=j,u?(j=aa(l,r),j!=null&&o.unshift(Ha(l,j,g))):u||(j=aa(l,r),j!=null&&o.push(Ha(l,j,g)))),l=l.return}o.length!==0&&t.push({event:e,listeners:o})}var op=/\r\n?/g,fp=/\u0000|\uFFFD/g;function uh(t){return(typeof t=="string"?t:""+t).replace(op,`
`).replace(fp,"")}function ih(t,e){return e=uh(e),uh(t)===e}function Mt(t,e,l,n,u,r){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||pn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&pn(t,""+n);break;case"className":ru(t,"class",n);break;case"tabIndex":ru(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ru(t,l,n);break;case"style":ao(t,n,r);break;case"data":if(e!=="object"){ru(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=cu(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.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 r=="function"&&(l==="formAction"?(e!=="input"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=cu(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=ke);break;case"onScroll":n!=null&&vt("scroll",t);break;case"onScrollEnd":n!=null&&vt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=cu(""+n),t.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":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":vt("beforetoggle",t),vt("toggle",t),iu(t,"popover",n);break;case"xlinkActuate":Je(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Je(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Je(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Je(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Je(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Je(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Je(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Je(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Je(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":iu(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=By.get(l)||l,iu(t,l,n))}}function Qs(t,e,l,n,u,r){switch(l){case"style":ao(t,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof n=="string"?pn(t,n):(typeof n=="number"||typeof n=="bigint")&&pn(t,""+n);break;case"onScroll":n!=null&&vt("scroll",t);break;case"onScrollEnd":n!=null&&vt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fc.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),e=l.slice(2,u?l.length-7:void 0),r=t[re]||null,r=r!=null?r[l]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof n=="function")){typeof r!="function"&&r!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,u);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):iu(t,l,n)}}}function ee(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",t),vt("load",t);var n=!1,u=!1,r;for(r in l)if(l.hasOwnProperty(r)){var o=l[r];if(o!=null)switch(r){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Mt(t,e,r,o,l,null)}}u&&Mt(t,e,"srcSet",l.srcSet,l,null),n&&Mt(t,e,"src",l.src,l,null);return;case"input":vt("invalid",t);var m=r=o=u=null,g=null,j=null;for(n in l)if(l.hasOwnProperty(n)){var R=l[n];if(R!=null)switch(n){case"name":u=R;break;case"type":o=R;break;case"checked":g=R;break;case"defaultChecked":j=R;break;case"value":r=R;break;case"defaultValue":m=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:Mt(t,e,n,R,l,null)}}to(t,r,m,g,j,o,u,!1);return;case"select":vt("invalid",t),n=o=r=null;for(u in l)if(l.hasOwnProperty(u)&&(m=l[u],m!=null))switch(u){case"value":r=m;break;case"defaultValue":o=m;break;case"multiple":n=m;default:Mt(t,e,u,m,l,null)}e=r,l=o,t.multiple=!!n,e!=null?vn(t,!!n,e,!1):l!=null&&vn(t,!!n,l,!0);return;case"textarea":vt("invalid",t),r=u=n=null;for(o in l)if(l.hasOwnProperty(o)&&(m=l[o],m!=null))switch(o){case"value":n=m;break;case"defaultValue":u=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:Mt(t,e,o,m,l,null)}lo(t,n,u,r);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(n=l[g],n!=null))switch(g){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Mt(t,e,g,n,l,null)}return;case"dialog":vt("beforetoggle",t),vt("toggle",t),vt("cancel",t),vt("close",t);break;case"iframe":case"object":vt("load",t);break;case"video":case"audio":for(n=0;n<Qa.length;n++)vt(Qa[n],t);break;case"image":vt("error",t),vt("load",t);break;case"details":vt("toggle",t);break;case"embed":case"source":case"link":vt("error",t),vt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in l)if(l.hasOwnProperty(j)&&(n=l[j],n!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Mt(t,e,j,n,l,null)}return;default:if($i(e)){for(R in l)l.hasOwnProperty(R)&&(n=l[R],n!==void 0&&Qs(t,e,R,n,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(n=l[m],n!=null&&Mt(t,e,m,n,l,null))}function dp(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,o=null,m=null,g=null,j=null,R=null;for(M in l){var q=l[M];if(l.hasOwnProperty(M)&&q!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":g=q;default:n.hasOwnProperty(M)||Mt(t,e,M,null,n,q)}}for(var A in n){var M=n[A];if(q=l[A],n.hasOwnProperty(A)&&(M!=null||q!=null))switch(A){case"type":r=M;break;case"name":u=M;break;case"checked":j=M;break;case"defaultChecked":R=M;break;case"value":o=M;break;case"defaultValue":m=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,e));break;default:M!==q&&Mt(t,e,A,M,n,q)}}ki(t,o,m,g,j,R,r,u);return;case"select":M=o=m=A=null;for(r in l)if(g=l[r],l.hasOwnProperty(r)&&g!=null)switch(r){case"value":break;case"multiple":M=g;default:n.hasOwnProperty(r)||Mt(t,e,r,null,n,g)}for(u in n)if(r=n[u],g=l[u],n.hasOwnProperty(u)&&(r!=null||g!=null))switch(u){case"value":A=r;break;case"defaultValue":m=r;break;case"multiple":o=r;default:r!==g&&Mt(t,e,u,r,n,g)}e=m,l=o,n=M,A!=null?vn(t,!!l,A,!1):!!n!=!!l&&(e!=null?vn(t,!!l,e,!0):vn(t,!!l,l?[]:"",!1));return;case"textarea":M=A=null;for(m in l)if(u=l[m],l.hasOwnProperty(m)&&u!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Mt(t,e,m,null,n,u)}for(o in n)if(u=n[o],r=l[o],n.hasOwnProperty(o)&&(u!=null||r!=null))switch(o){case"value":A=u;break;case"defaultValue":M=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&Mt(t,e,o,u,n,r)}eo(t,A,M);return;case"option":for(var k in l)if(A=l[k],l.hasOwnProperty(k)&&A!=null&&!n.hasOwnProperty(k))switch(k){case"selected":t.selected=!1;break;default:Mt(t,e,k,null,n,A)}for(g in n)if(A=n[g],M=l[g],n.hasOwnProperty(g)&&A!==M&&(A!=null||M!=null))switch(g){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Mt(t,e,g,A,n,M)}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 ut in l)A=l[ut],l.hasOwnProperty(ut)&&A!=null&&!n.hasOwnProperty(ut)&&Mt(t,e,ut,null,n,A);for(j in n)if(A=n[j],M=l[j],n.hasOwnProperty(j)&&A!==M&&(A!=null||M!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,e));break;default:Mt(t,e,j,A,n,M)}return;default:if($i(e)){for(var Dt in l)A=l[Dt],l.hasOwnProperty(Dt)&&A!==void 0&&!n.hasOwnProperty(Dt)&&Qs(t,e,Dt,void 0,n,A);for(R in n)A=n[R],M=l[R],!n.hasOwnProperty(R)||A===M||A===void 0&&M===void 0||Qs(t,e,R,A,n,M);return}}for(var O in l)A=l[O],l.hasOwnProperty(O)&&A!=null&&!n.hasOwnProperty(O)&&Mt(t,e,O,null,n,A);for(q in n)A=n[q],M=l[q],!n.hasOwnProperty(q)||A===M||A==null&&M==null||Mt(t,e,q,A,n,M)}function rh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var u=l[n],r=u.transferSize,o=u.initiatorType,m=u.duration;if(r&&m&&rh(o)){for(o=0,m=u.responseEnd,n+=1;n<l.length;n++){var g=l[n],j=g.startTime;if(j>m)break;var R=g.transferSize,q=g.initiatorType;R&&rh(q)&&(g=g.responseEnd,o+=R*(g<m?1:(m-j)/(g-j)))}if(--n,e+=8*(r+o)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Hs=null,ws=null;function ai(t){return t.nodeType===9?t:t.ownerDocument}function sh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ch(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Bs(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ls=null;function mp(){var t=window.event;return t&&t.type==="popstate"?t===Ls?!1:(Ls=t,!0):(Ls=null,!1)}var oh=typeof setTimeout=="function"?setTimeout:void 0,yp=typeof clearTimeout=="function"?clearTimeout:void 0,fh=typeof Promise=="function"?Promise:void 0,vp=typeof queueMicrotask=="function"?queueMicrotask:typeof fh<"u"?function(t){return fh.resolve(null).then(t).catch(pp)}:oh;function pp(t){setTimeout(function(){throw t})}function Ml(t){return t==="head"}function dh(t,e){var l=e,n=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(u),kn(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")wa(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,wa(l);for(var r=l.firstChild;r;){var o=r.nextSibling,m=r.nodeName;r[la]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||l.removeChild(r),r=o}}else l==="body"&&wa(t.ownerDocument.body);l=u}while(l);kn(e)}function hh(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Ys(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ys(l),Vi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function gp(t,e,l,n){for(;t.nodeType===1;){var u=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[la])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Ue(t.nextSibling),t===null)break}return null}function bp(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ue(t.nextSibling),t===null))return null;return t}function mh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ue(t.nextSibling),t===null))return null;return t}function Gs(t){return t.data==="$?"||t.data==="$~"}function Xs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Sp(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ue(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Ks=null;function yh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ue(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function vh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function ph(t,e,l){switch(e=ai(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function wa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Vi(t)}var Ne=new Map,gh=new Set;function ui(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ol=H.d;H.d={f:xp,r:Op,D:_p,C:Ep,L:jp,m:Tp,X:zp,S:Ap,M:Cp};function xp(){var t=ol.f(),e=$u();return t||e}function Op(t){var e=hn(t);e!==null&&e.tag===5&&e.type==="form"?qf(e):ol.r(t)}var Zn=typeof document>"u"?null:document;function bh(t,e,l){var n=Zn;if(n&&typeof e=="string"&&e){var u=Te(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),gh.has(u)||(gh.add(u),t={rel:t,crossOrigin:l,href:e},n.querySelector(u)===null&&(e=n.createElement("link"),ee(e,"link",t),Ft(e),n.head.appendChild(e)))}}function _p(t){ol.D(t),bh("dns-prefetch",t,null)}function Ep(t,e){ol.C(t,e),bh("preconnect",t,e)}function jp(t,e,l){ol.L(t,e,l);var n=Zn;if(n&&t&&e){var u='link[rel="preload"][as="'+Te(e)+'"]';e==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+Te(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+Te(l.imageSizes)+'"]')):u+='[href="'+Te(t)+'"]';var r=u;switch(e){case"style":r=Vn(t);break;case"script":r=Jn(t)}Ne.has(r)||(t=_({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ne.set(r,t),n.querySelector(u)!==null||e==="style"&&n.querySelector(Ba(r))||e==="script"&&n.querySelector(La(r))||(e=n.createElement("link"),ee(e,"link",t),Ft(e),n.head.appendChild(e)))}}function Tp(t,e){ol.m(t,e);var l=Zn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Te(n)+'"][href="'+Te(t)+'"]',r=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Jn(t)}if(!Ne.has(r)&&(t=_({rel:"modulepreload",href:t},e),Ne.set(r,t),l.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(La(r)))return}n=l.createElement("link"),ee(n,"link",t),Ft(n),l.head.appendChild(n)}}}function Ap(t,e,l){ol.S(t,e,l);var n=Zn;if(n&&t){var u=mn(n).hoistableStyles,r=Vn(t);e=e||"default";var o=u.get(r);if(!o){var m={loading:0,preload:null};if(o=n.querySelector(Ba(r)))m.loading=5;else{t=_({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ne.get(r))&&Zs(t,l);var g=o=n.createElement("link");Ft(g),ee(g,"link",t),g._p=new Promise(function(j,R){g.onload=j,g.onerror=R}),g.addEventListener("load",function(){m.loading|=1}),g.addEventListener("error",function(){m.loading|=2}),m.loading|=4,ii(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:m},u.set(r,o)}}}function zp(t,e){ol.X(t,e);var l=Zn;if(l&&t){var n=mn(l).hoistableScripts,u=Jn(t),r=n.get(u);r||(r=l.querySelector(La(u)),r||(t=_({src:t,async:!0},e),(e=Ne.get(u))&&Vs(t,e),r=l.createElement("script"),Ft(r),ee(r,"link",t),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(u,r))}}function Cp(t,e){ol.M(t,e);var l=Zn;if(l&&t){var n=mn(l).hoistableScripts,u=Jn(t),r=n.get(u);r||(r=l.querySelector(La(u)),r||(t=_({src:t,async:!0,type:"module"},e),(e=Ne.get(u))&&Vs(t,e),r=l.createElement("script"),Ft(r),ee(r,"link",t),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(u,r))}}function Sh(t,e,l,n){var u=(u=st.current)?ui(u):null;if(!u)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Vn(l.href),l=mn(u).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Vn(l.href);var r=mn(u).hoistableStyles,o=r.get(t);if(o||(u=u.ownerDocument||u,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,o),(r=u.querySelector(Ba(t)))&&!r._p&&(o.instance=r,o.state.loading=5),Ne.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ne.set(t,l),r||Mp(u,t,l,o.state))),e&&n===null)throw Error(c(528,""));return o}if(e&&n!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Jn(l),l=mn(u).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Vn(t){return'href="'+Te(t)+'"'}function Ba(t){return'link[rel="stylesheet"]['+t+"]"}function xh(t){return _({},t,{"data-precedence":t.precedence,precedence:null})}function Mp(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),ee(e,"link",l),Ft(e),t.head.appendChild(e))}function Jn(t){return'[src="'+Te(t)+'"]'}function La(t){return"script[async]"+t}function Oh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Te(l.href)+'"]');if(n)return e.instance=n,Ft(n),n;var u=_({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Ft(n),ee(n,"style",u),ii(n,l.precedence,t),e.instance=n;case"stylesheet":u=Vn(l.href);var r=t.querySelector(Ba(u));if(r)return e.state.loading|=4,e.instance=r,Ft(r),r;n=xh(l),(u=Ne.get(u))&&Zs(n,u),r=(t.ownerDocument||t).createElement("link"),Ft(r);var o=r;return o._p=new Promise(function(m,g){o.onload=m,o.onerror=g}),ee(r,"link",n),e.state.loading|=4,ii(r,l.precedence,t),e.instance=r;case"script":return r=Jn(l.src),(u=t.querySelector(La(r)))?(e.instance=u,Ft(u),u):(n=l,(u=Ne.get(r))&&(n=_({},l),Vs(n,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ft(u),ee(u,"link",n),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,ii(n,l.precedence,t));return e.instance}function ii(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,r=u,o=0;o<n.length;o++){var m=n[o];if(m.dataset.precedence===e)r=m;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Zs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Vs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ri=null;function _h(t,e,l){if(ri===null){var n=new Map,u=ri=new Map;u.set(l,n)}else u=ri,n=u.get(l),n||(n=new Map,u.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),u=0;u<l.length;u++){var r=l[u];if(!(r[la]||r[Pt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var o=r.getAttribute(e)||"";o=t+o;var m=n.get(o);m?m.push(r):n.set(o,[r])}}return n}function Eh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Dp(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function jh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Rp(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=Vn(n.href),r=e.querySelector(Ba(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=si.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=r,Ft(r);return}r=e.ownerDocument||e,n=xh(n),(u=Ne.get(u))&&Zs(n,u),r=r.createElement("link"),Ft(r);var o=r;o._p=new Promise(function(m,g){o.onload=m,o.onerror=g}),ee(r,"link",n),l.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=si.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Js=0;function Up(t,e){return t.stylesheets&&t.count===0&&oi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&oi(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Js===0&&(Js=62500*hp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&oi(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Js?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function si(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)oi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ci=null;function oi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ci=new Map,e.forEach(Np,t),ci=null,si.call(t))}function Np(t,e){if(!(e.state.loading&4)){var l=ci.get(t);if(l)var n=l.get(null);else{l=new Map,ci.set(t,l);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var o=u[r];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),n=o)}n&&l.set(null,n)}u=e.instance,o=u.getAttribute("data-precedence"),r=l.get(o)||n,r===n&&l.set(null,u),l.set(o,u),this.count++,n=si.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),r?r.parentNode.insertBefore(u,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Ya={$$typeof:jt,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function qp(t,e,l,n,u,r,o,m,g){this.tag=1,this.containerInfo=t,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=Gi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gi(0),this.hiddenUpdates=Gi(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Th(t,e,l,n,u,r,o,m,g,j,R,q){return t=new qp(t,e,l,o,g,j,R,q,m),e=1,r===!0&&(e|=24),r=ge(3,null,null,e),t.current=r,r.stateNode=t,e=Tr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:n,isDehydrated:l,cache:e},Mr(r),t}function Ah(t){return t?(t=En,t):En}function zh(t,e,l,n,u,r){u=Ah(u),n.context===null?n.context=u:n.pendingContext=u,n=bl(e),n.payload={element:l},r=r===void 0?null:r,r!==null&&(n.callback=r),l=Sl(t,n,e),l!==null&&(he(l,t,e),ba(l,t,e))}function Ch(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function ks(t,e){Ch(t,e),(t=t.alternate)&&Ch(t,e)}function Mh(t){if(t.tag===13||t.tag===31){var e=Zl(t,67108864);e!==null&&he(e,t,67108864),ks(t,67108864)}}function Dh(t){if(t.tag===13||t.tag===31){var e=_e();e=Xi(e);var l=Zl(t,e);l!==null&&he(l,t,e),ks(t,e)}}var fi=!0;function Qp(t,e,l,n){var u=T.T;T.T=null;var r=H.p;try{H.p=2,Fs(t,e,l,n)}finally{H.p=r,T.T=u}}function Hp(t,e,l,n){var u=T.T;T.T=null;var r=H.p;try{H.p=8,Fs(t,e,l,n)}finally{H.p=r,T.T=u}}function Fs(t,e,l,n){if(fi){var u=$s(n);if(u===null)qs(t,e,n,di,l),Uh(t,n);else if(Bp(u,t,e,l,n))n.stopPropagation();else if(Uh(t,n),e&4&&-1<wp.indexOf(t)){for(;u!==null;){var r=hn(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var o=Ll(r.pendingLanes);if(o!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;o;){var g=1<<31-ve(o);m.entanglements[1]|=g,o&=~g}Ke(r),(Et&6)===0&&(ku=me()+500,qa(0))}}break;case 31:case 13:m=Zl(r,2),m!==null&&he(m,r,2),$u(),ks(r,2)}if(r=$s(n),r===null&&qs(t,e,n,di,l),r===u)break;u=r}u!==null&&n.stopPropagation()}else qs(t,e,n,null,l)}}function $s(t){return t=Wi(t),Ps(t)}var di=null;function Ps(t){if(di=null,t=dn(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=h(e),t!==null)return t;t=null}else if(l===31){if(t=y(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return di=t,null}function Rh(t){switch(t){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(_y()){case wc:return 2;case Bc:return 8;case eu:case Ey:return 32;case Lc:return 268435456;default:return 32}default:return 32}}var Ws=!1,Dl=null,Rl=null,Ul=null,Ga=new Map,Xa=new Map,Nl=[],wp="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 Uh(t,e){switch(t){case"focusin":case"focusout":Dl=null;break;case"dragenter":case"dragleave":Rl=null;break;case"mouseover":case"mouseout":Ul=null;break;case"pointerover":case"pointerout":Ga.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xa.delete(e.pointerId)}}function Ka(t,e,l,n,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:r,targetContainers:[u]},e!==null&&(e=hn(e),e!==null&&Mh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Bp(t,e,l,n,u){switch(e){case"focusin":return Dl=Ka(Dl,t,e,l,n,u),!0;case"dragenter":return Rl=Ka(Rl,t,e,l,n,u),!0;case"mouseover":return Ul=Ka(Ul,t,e,l,n,u),!0;case"pointerover":var r=u.pointerId;return Ga.set(r,Ka(Ga.get(r)||null,t,e,l,n,u)),!0;case"gotpointercapture":return r=u.pointerId,Xa.set(r,Ka(Xa.get(r)||null,t,e,l,n,u)),!0}return!1}function Nh(t){var e=dn(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=h(l),e!==null){t.blockedOn=e,Vc(t.priority,function(){Dh(l)});return}}else if(e===31){if(e=y(l),e!==null){t.blockedOn=e,Vc(t.priority,function(){Dh(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function hi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=$s(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);Pi=n,l.target.dispatchEvent(n),Pi=null}else return e=hn(l),e!==null&&Mh(e),t.blockedOn=l,!1;e.shift()}return!0}function qh(t,e,l){hi(t)&&l.delete(e)}function Lp(){Ws=!1,Dl!==null&&hi(Dl)&&(Dl=null),Rl!==null&&hi(Rl)&&(Rl=null),Ul!==null&&hi(Ul)&&(Ul=null),Ga.forEach(qh),Xa.forEach(qh)}function mi(t,e){t.blockedOn===e&&(t.blockedOn=null,Ws||(Ws=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Lp)))}var yi=null;function Qh(t){yi!==t&&(yi=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){yi===t&&(yi=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],u=t[e+2];if(typeof n!="function"){if(Ps(n||l)===null)continue;break}var r=hn(l);r!==null&&(t.splice(e,3),e-=3,$r(r,{pending:!0,data:u,method:l.method,action:n},n,u))}}))}function kn(t){function e(g){return mi(g,t)}Dl!==null&&mi(Dl,t),Rl!==null&&mi(Rl,t),Ul!==null&&mi(Ul,t),Ga.forEach(e),Xa.forEach(e);for(var l=0;l<Nl.length;l++){var n=Nl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Nl.length&&(l=Nl[0],l.blockedOn===null);)Nh(l),l.blockedOn===null&&Nl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var u=l[n],r=l[n+1],o=u[re]||null;if(typeof r=="function")o||Qh(l);else if(o){var m=null;if(r&&r.hasAttribute("formAction")){if(u=r,o=r[re]||null)m=o.formAction;else if(Ps(u)!==null)continue}else m=o.action;typeof m=="function"?l[n+1]=m:(l.splice(n,3),n-=3),Qh(l)}}}function Hh(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(o){return u=o})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Is(t){this._internalRoot=t}vi.prototype.render=Is.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,n=_e();zh(l,n,t,e,null,null)},vi.prototype.unmount=Is.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zh(t.current,2,null,t,null,null),$u(),e[fn]=null}};function vi(t){this._internalRoot=t}vi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Zc();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Nl.length&&e!==0&&e<Nl[l].priority;l++);Nl.splice(l,0,t),l===0&&Nh(t)}};var wh=i.version;if(wh!=="19.2.1")throw Error(c(527,wh,"19.2.1"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=p(e),t=t!==null?z(t):null,t=t===null?null:t.stateNode,t};var Yp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pi.isDisabled&&pi.supportsFiber)try{In=pi.inject(Yp),ye=pi}catch{}}return Va.createRoot=function(t,e){if(!f(t))throw Error(c(299));var l=!1,n="",u=Zf,r=Vf,o=Jf;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Th(t,1,!1,null,null,l,n,null,u,r,o,Hh),t[fn]=e.current,Ns(t),new Is(e)},Va.hydrateRoot=function(t,e,l){if(!f(t))throw Error(c(299));var n=!1,u="",r=Zf,o=Vf,m=Jf,g=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(r=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),e=Th(t,1,!0,e,l??null,n,u,g,r,o,m,Hh),e.context=Ah(null),l=e.current,n=_e(),n=Xi(n),u=bl(n),u.callback=null,Sl(l,u,n),l=n,e.current.lanes=l,ea(e,l),Ke(e),t[fn]=e.current,Ns(t),new vi(e)},Va.version="19.2.1",Va}var kh;function t0(){if(kh)return lc.exports;kh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),lc.exports=Ip(),lc.exports}var e0=t0();const l0="modulepreload",n0=function(a){return"/"+a},Fh={},a0=function(i,s,c){let f=Promise.resolve();if(s&&s.length>0){let v=function(p){return Promise.all(p.map(z=>Promise.resolve(z).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=h?.nonce||h?.getAttribute("nonce");f=v(s.map(p=>{if(p=n0(p),p in Fh)return;Fh[p]=!0;const z=p.endsWith(".css"),_=z?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${_}`))return;const C=document.createElement("link");if(C.rel=z?"stylesheet":l0,z||(C.as="script"),C.crossOrigin="",C.href=p,y&&C.setAttribute("nonce",y),document.head.appendChild(C),z)return new Promise((L,Z)=>{C.addEventListener("load",L),C.addEventListener("error",()=>Z(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return f.then(h=>{for(const y of h||[])y.status==="rejected"&&d(y.reason);return i().catch(d)})};var sn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},un=typeof window>"u"||"Deno"in globalThis;function ne(){}function u0(a,i){return typeof a=="function"?a(i):a}function mc(a){return typeof a=="number"&&a>=0&&a!==1/0}function Om(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Ql(a,i){return typeof a=="function"?a(i):a}function Be(a,i){return typeof a=="function"?a(i):a}function $h(a,i){const{type:s="all",exact:c,fetchStatus:f,predicate:d,queryKey:h,stale:y}=a;if(h){if(c){if(i.queryHash!==Ec(h,i.options))return!1}else if(!Fa(i.queryKey,h))return!1}if(s!=="all"){const v=i.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof y=="boolean"&&i.isStale()!==y||f&&f!==i.state.fetchStatus||d&&!d(i))}function Ph(a,i){const{exact:s,status:c,predicate:f,mutationKey:d}=a;if(d){if(!i.options.mutationKey)return!1;if(s){if(Hl(i.options.mutationKey)!==Hl(d))return!1}else if(!Fa(i.options.mutationKey,d))return!1}return!(c&&i.state.status!==c||f&&!f(i))}function Ec(a,i){return(i?.queryKeyHashFn||Hl)(a)}function Hl(a){return JSON.stringify(a,(i,s)=>yc(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function Fa(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(s=>Fa(a[s],i[s])):!1}function jc(a,i){if(a===i)return a;const s=Wh(a)&&Wh(i);if(s||yc(a)&&yc(i)){const c=s?a:Object.keys(a),f=c.length,d=s?i:Object.keys(i),h=d.length,y=s?[]:{},v=new Set(c);let p=0;for(let z=0;z<h;z++){const _=s?z:d[z];(!s&&v.has(_)||s)&&a[_]===void 0&&i[_]===void 0?(y[_]=void 0,p++):(y[_]=jc(a[_],i[_]),y[_]===a[_]&&a[_]!==void 0&&p++)}return f===h&&p===f?a:y}return i}function Ei(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const s in a)if(a[s]!==i[s])return!1;return!0}function Wh(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function yc(a){if(!Ih(a))return!1;const i=a.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Ih(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Ih(a){return Object.prototype.toString.call(a)==="[object Object]"}function i0(a){return new Promise(i=>{setTimeout(i,a)})}function vc(a,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,i):s.structuralSharing!==!1?jc(a,i):i}function r0(a,i,s=0){const c=[...a,i];return s&&c.length>s?c.slice(1):c}function s0(a,i,s=0){const c=[i,...a];return s&&c.length>s?c.slice(0,-1):c}var Ee=Symbol();function _m(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===Ee?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function Em(a,i){return typeof a=="function"?a(...i):!!a}var c0=class extends sn{#e;#t;#l;constructor(){super(),this.#l=a=>{if(!un&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#l=a,this.#t?.(),this.#t=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#e!==a&&(this.#e=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Tc=new c0,o0=class extends sn{#e=!0;#t;#l;constructor(){super(),this.#l=a=>{if(!un&&window.addEventListener){const i=()=>a(!0),s=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#l=a,this.#t?.(),this.#t=a(this.setOnline.bind(this))}setOnline(a){this.#e!==a&&(this.#e=a,this.listeners.forEach(s=>{s(a)}))}isOnline(){return this.#e}},ji=new o0;function pc(){let a,i;const s=new Promise((f,d)=>{a=f,i=d});s.status="pending",s.catch(()=>{});function c(f){Object.assign(s,f),delete s.resolve,delete s.reject}return s.resolve=f=>{c({status:"fulfilled",value:f}),a(f)},s.reject=f=>{c({status:"rejected",reason:f}),i(f)},s}function f0(a){return Math.min(1e3*2**a,3e4)}function jm(a){return(a??"online")==="online"?ji.isOnline():!0}var Tm=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function ic(a){return a instanceof Tm}function Am(a){let i=!1,s=0,c=!1,f;const d=pc(),h=Q=>{c||(C(new Tm(Q)),a.abort?.())},y=()=>{i=!0},v=()=>{i=!1},p=()=>Tc.isFocused()&&(a.networkMode==="always"||ji.isOnline())&&a.canRun(),z=()=>jm(a.networkMode)&&a.canRun(),_=Q=>{c||(c=!0,a.onSuccess?.(Q),f?.(),d.resolve(Q))},C=Q=>{c||(c=!0,a.onError?.(Q),f?.(),d.reject(Q))},L=()=>new Promise(Q=>{f=$=>{(c||p())&&Q($)},a.onPause?.()}).then(()=>{f=void 0,c||a.onContinue?.()}),Z=()=>{if(c)return;let Q;const $=s===0?a.initialPromise:void 0;try{Q=$??a.fn()}catch(it){Q=Promise.reject(it)}Promise.resolve(Q).then(_).catch(it=>{if(c)return;const ht=a.retry??(un?0:3),jt=a.retryDelay??f0,qt=typeof jt=="function"?jt(s,it):jt,F=ht===!0||typeof ht=="number"&&s<ht||typeof ht=="function"&&ht(s,it);if(i||!F){C(it);return}s++,a.onFail?.(s,it),i0(qt).then(()=>p()?void 0:L()).then(()=>{i?C(it):Z()})})};return{promise:d,cancel:h,continue:()=>(f?.(),d),cancelRetry:y,continueRetry:v,canStart:z,start:()=>(z()?Z():L().then(Z),d)}}var d0=a=>setTimeout(a,0);function h0(){let a=[],i=0,s=y=>{y()},c=y=>{y()},f=d0;const d=y=>{i?a.push(y):f(()=>{s(y)})},h=()=>{const y=a;a=[],y.length&&f(()=>{c(()=>{y.forEach(v=>{s(v)})})})};return{batch:y=>{let v;i++;try{v=y()}finally{i--,i||h()}return v},batchCalls:y=>(...v)=>{d(()=>{y(...v)})},schedule:d,setNotifyFunction:y=>{s=y},setBatchNotifyFunction:y=>{c=y},setScheduler:y=>{f=y}}}var Bt=h0(),zm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mc(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(un?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},m0=class extends zm{#e;#t;#l;#n;#a;#u;#r;constructor(a){super(),this.#r=!1,this.#u=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#n=a.client,this.#l=this.#n.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=y0(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){this.options={...this.#u,...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(a,i){const s=vc(this.state.data,a,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(ne).catch(ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(a=>Be(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ee||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Ql(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!Om(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#r?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(a,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const v=this.observers.find(p=>p.options.queryFn);v&&this.setOptions(v.options)}const s=new AbortController,c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)})},f=()=>{const v=_m(this.options,i),z=(()=>{const _={client:this.#n,queryKey:this.queryKey,meta:this.meta};return c(_),_})();return this.#r=!1,this.options.persister?this.options.persister(v,z,this):v(z)},h=(()=>{const v={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:f};return c(v),v})();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});const y=v=>{ic(v)&&v.silent||this.#i({type:"error",error:v}),ic(v)||(this.#l.config.onError?.(v,this),this.#l.config.onSettled?.(this.state.data,v,this)),this.scheduleGc()};return this.#a=Am({initialPromise:i?.initialPromise,fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:v=>{if(v===void 0){y(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(p){y(p);return}this.#l.config.onSuccess?.(v,this),this.#l.config.onSettled?.(v,this.state.error,this),this.scheduleGc()},onError:y,onFail:(v,p)=>{this.#i({type:"failed",failureCount:v,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}),this.#a.start()}#i(a){const i=s=>{switch(a.type){case"failed":return{...s,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Cm(s.data,this.options),fetchMeta:a.meta??null};case"success":return this.#t=void 0,{...s,data:a.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const c=a.error;return ic(c)&&c.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...a.state}}};this.state=i(this.state),Bt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:a})})}};function Cm(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jm(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function y0(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,s=i!==void 0,c=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var v0=class extends sn{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,s){const c=i.queryKey,f=i.queryHash??Ec(c,i);let d=this.get(f);return d||(d=new m0({client:a,queryKey:c,queryHash:f,options:a.defaultQueryOptions(i),state:s,defaultOptions:a.getQueryDefaults(c)}),this.add(d)),d}add(a){this.#e.has(a.queryHash)||(this.#e.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#e.get(a.queryHash);i&&(a.destroy(),i===a&&this.#e.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Bt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#e.get(a)}getAll(){return[...this.#e.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(s=>$h(i,s))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(s=>$h(a,s)):i}notify(a){Bt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},p0=class extends zm{#e;#t;#l;constructor(a){super(),this.mutationId=a.mutationId,this.#t=a.mutationCache,this.#e=[],this.state=a.state||Mm(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#n({type:"continue"})};this.#l=Am({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#n({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#n({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",c=!this.#l.canStart();try{if(s)i();else{this.#n({type:"pending",variables:a,isPaused:c}),await this.#t.config.onMutate?.(a,this);const d=await this.options.onMutate?.(a);d!==this.state.context&&this.#n({type:"pending",context:d,variables:a,isPaused:c})}const f=await this.#l.start();return await this.#t.config.onSuccess?.(f,a,this.state.context,this),await this.options.onSuccess?.(f,a,this.state.context),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(f,null,a,this.state.context),this.#n({type:"success",data:f}),f}catch(f){try{throw await this.#t.config.onError?.(f,a,this.state.context,this),await this.options.onError?.(f,a,this.state.context),await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,f,a,this.state.context),f}finally{this.#n({type:"error",error:f})}}finally{this.#t.runNext(this)}}#n(a){const i=s=>{switch(a.type){case"failed":return{...s,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...s,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:a.error,failureCount:s.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Bt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(a)}),this.#t.notify({mutation:this,type:"updated",action:a})})}};function Mm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var g0=class extends sn{constructor(a={}){super(),this.config=a,this.#e=new Set,this.#t=new Map,this.#l=0}#e;#t;#l;build(a,i,s){const c=new p0({mutationCache:this,mutationId:++this.#l,options:a.defaultMutationOptions(i),state:s});return this.add(c),c}add(a){this.#e.add(a);const i=gi(a);if(typeof i=="string"){const s=this.#t.get(i);s?s.push(a):this.#t.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#e.delete(a)){const i=gi(a);if(typeof i=="string"){const s=this.#t.get(i);if(s)if(s.length>1){const c=s.indexOf(a);c!==-1&&s.splice(c,1)}else s[0]===a&&this.#t.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=gi(a);if(typeof i=="string"){const c=this.#t.get(i)?.find(f=>f.state.status==="pending");return!c||c===a}else return!0}runNext(a){const i=gi(a);return typeof i=="string"?this.#t.get(i)?.find(c=>c!==a&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Bt.batch(()=>{this.#e.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Ph(i,s))}findAll(a={}){return this.getAll().filter(i=>Ph(a,i))}notify(a){Bt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Bt.batch(()=>Promise.all(a.map(i=>i.continue().catch(ne))))}};function gi(a){return a.options.scope?.id}function Ti(a){return{onFetch:(i,s)=>{const c=i.options,f=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let y={pages:[],pageParams:[]},v=0;const p=async()=>{let z=!1;const _=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>(i.signal.aborted?z=!0:i.signal.addEventListener("abort",()=>{z=!0}),i.signal)})},C=_m(i.options,i.fetchOptions),L=async(Z,Q,$)=>{if(z)return Promise.reject();if(Q==null&&Z.pages.length)return Promise.resolve(Z);const ht=(()=>{const V={client:i.client,queryKey:i.queryKey,pageParam:Q,direction:$?"backward":"forward",meta:i.options.meta};return _(V),V})(),jt=await C(ht),{maxPages:qt}=i.options,F=$?s0:r0;return{pages:F(Z.pages,jt,qt),pageParams:F(Z.pageParams,Q,qt)}};if(f&&d.length){const Z=f==="backward",Q=Z?Dm:gc,$={pages:d,pageParams:h},it=Q(c,$);y=await L($,it,Z)}else{const Z=a??d.length;do{const Q=v===0?h[0]??c.initialPageParam:gc(c,y);if(v>0&&Q==null)break;y=await L(y,Q),v++}while(v<Z)}return y};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=p}}}function gc(a,{pages:i,pageParams:s}){const c=i.length-1;return i.length>0?a.getNextPageParam(i[c],i,s[c],s):void 0}function Dm(a,{pages:i,pageParams:s}){return i.length>0?a.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function b0(a,i){return i?gc(a,i)!=null:!1}function S0(a,i){return!i||!a.getPreviousPageParam?!1:Dm(a,i)!=null}var x0=class{#e;#t;#l;#n;#a;#u;#r;#i;constructor(a={}){this.#e=a.queryCache||new v0,this.#t=a.mutationCache||new g0,this.#l=a.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=Tc.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ji.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#e.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#t.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),s=this.#e.build(this,i),c=s.state.data;return c===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(Ql(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(a){return this.#e.findAll(a).map(({queryKey:i,state:s})=>{const c=s.data;return[i,c]})}setQueryData(a,i,s){const c=this.defaultQueryOptions({queryKey:a}),d=this.#e.get(c.queryHash)?.state.data,h=u0(i,d);if(h!==void 0)return this.#e.build(this,c).setData(h,{...s,manual:!0})}setQueriesData(a,i,s){return Bt.batch(()=>this.#e.findAll(a).map(({queryKey:c})=>[c,this.setQueryData(c,i,s)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state}removeQueries(a){const i=this.#e;Bt.batch(()=>{i.findAll(a).forEach(s=>{i.remove(s)})})}resetQueries(a,i){const s=this.#e;return Bt.batch(()=>(s.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const s={revert:!0,...i},c=Bt.batch(()=>this.#e.findAll(a).map(f=>f.cancel(s)));return Promise.all(c).then(ne).catch(ne)}invalidateQueries(a,i={}){return Bt.batch(()=>(this.#e.findAll(a).forEach(s=>{s.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},c=Bt.batch(()=>this.#e.findAll(a).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let d=f.fetch(void 0,s);return s.throwOnError||(d=d.catch(ne)),f.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(ne)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const s=this.#e.build(this,i);return s.isStaleByTime(Ql(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(ne).catch(ne)}fetchInfiniteQuery(a){return a.behavior=Ti(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(ne).catch(ne)}ensureInfiniteQueryData(a){return a.behavior=Ti(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return ji.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#l}setDefaultOptions(a){this.#l=a}setQueryDefaults(a,i){this.#n.set(Hl(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#n.values()],s={};return i.forEach(c=>{Fa(a,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(a,i){this.#a.set(Hl(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],s={};return i.forEach(c=>{Fa(a,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#l.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Ec(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Ee&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#l.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},$a=class extends sn{constructor(a,i){super(),this.options=i,this.#e=a,this.#i=null,this.#r=pc(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#l=void 0;#n=void 0;#a;#u;#r;#i;#h;#f;#d;#c;#o;#s;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),tm(this.#t,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#x(),this.#t.removeObserver(this)}setOptions(a){const i=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Be(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),i._defaulted&&!Ei(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const c=this.hasListeners();c&&em(this.#t,s,this.options,i)&&this.#m(),this.updateResult(),c&&(this.#t!==s||Be(this.options.enabled,this.#t)!==Be(i.enabled,this.#t)||Ql(this.options.staleTime,this.#t)!==Ql(i.staleTime,this.#t))&&this.#v();const f=this.#p();c&&(this.#t!==s||Be(this.options.enabled,this.#t)!==Be(i.enabled,this.#t)||f!==this.#s)&&this.#g(f)}getOptimisticResult(a){const i=this.#e.getQueryCache().build(this.#e,a),s=this.createResult(i,a);return _0(this,s)&&(this.#n=s,this.#u=this.options,this.#a=this.#t.state),s}getCurrentResult(){return this.#n}trackResult(a,i){return new Proxy(a,{get:(s,c)=>(this.trackProp(c),i?.(c),Reflect.get(s,c))})}trackProp(a){this.#y.add(a)}getCurrentQuery(){return this.#t}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#e.defaultQueryOptions(a),s=this.#e.getQueryCache().build(this.#e,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(a){return this.#m({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#m(a){this.#O();let i=this.#t.fetch(this.options,a);return a?.throwOnError||(i=i.catch(ne)),i}#v(){this.#S();const a=Ql(this.options.staleTime,this.#t);if(un||this.#n.isStale||!mc(a))return;const s=Om(this.#n.dataUpdatedAt,a)+1;this.#c=setTimeout(()=>{this.#n.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(a){this.#x(),this.#s=a,!(un||Be(this.options.enabled,this.#t)===!1||!mc(this.#s)||this.#s===0)&&(this.#o=setInterval(()=>{(this.options.refetchIntervalInBackground||Tc.isFocused())&&this.#m()},this.#s))}#b(){this.#v(),this.#g(this.#p())}#S(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#x(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}createResult(a,i){const s=this.#t,c=this.options,f=this.#n,d=this.#a,h=this.#u,v=a!==s?a.state:this.#l,{state:p}=a;let z={...p},_=!1,C;if(i._optimisticResults){const X=this.hasListeners(),J=!X&&tm(a,i),et=X&&em(a,s,i,c);(J||et)&&(z={...z,...Cm(p.data,a.options)}),i._optimisticResults==="isRestoring"&&(z.fetchStatus="idle")}let{error:L,errorUpdatedAt:Z,status:Q}=z;C=z.data;let $=!1;if(i.placeholderData!==void 0&&C===void 0&&Q==="pending"){let X;f?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(X=f.data,$=!0):X=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,X!==void 0&&(Q="success",C=vc(f?.data,X,i),_=!0)}if(i.select&&C!==void 0&&!$)if(f&&C===d?.data&&i.select===this.#h)C=this.#f;else try{this.#h=i.select,C=i.select(C),C=vc(f?.data,C,i),this.#f=C,this.#i=null}catch(X){this.#i=X}this.#i&&(L=this.#i,C=this.#f,Z=Date.now(),Q="error");const it=z.fetchStatus==="fetching",ht=Q==="pending",jt=Q==="error",qt=ht&&it,F=C!==void 0,D={status:Q,fetchStatus:z.fetchStatus,isPending:ht,isSuccess:Q==="success",isError:jt,isInitialLoading:qt,isLoading:qt,data:C,dataUpdatedAt:z.dataUpdatedAt,error:L,errorUpdatedAt:Z,failureCount:z.fetchFailureCount,failureReason:z.fetchFailureReason,errorUpdateCount:z.errorUpdateCount,isFetched:z.dataUpdateCount>0||z.errorUpdateCount>0,isFetchedAfterMount:z.dataUpdateCount>v.dataUpdateCount||z.errorUpdateCount>v.errorUpdateCount,isFetching:it,isRefetching:it&&!ht,isLoadingError:jt&&!F,isPaused:z.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:jt&&F,isStale:Ac(a,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const X=lt=>{D.status==="error"?lt.reject(D.error):D.data!==void 0&&lt.resolve(D.data)},J=()=>{const lt=this.#r=D.promise=pc();X(lt)},et=this.#r;switch(et.status){case"pending":a.queryHash===s.queryHash&&X(et);break;case"fulfilled":(D.status==="error"||D.data!==et.value)&&J();break;case"rejected":(D.status!=="error"||D.error!==et.reason)&&J();break}}return D}updateResult(){const a=this.#n,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#u=this.options,this.#a.data!==void 0&&(this.#d=this.#t),Ei(i,a))return;this.#n=i;const s=()=>{if(!a)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!this.#y.size)return!0;const d=new Set(f??this.#y);return this.options.throwOnError&&d.add("error"),Object.keys(this.#n).some(h=>{const y=h;return this.#n[y]!==a[y]&&d.has(y)})};this.#_({listeners:s()})}#O(){const a=this.#e.getQueryCache().build(this.#e,this.options);if(a===this.#t)return;const i=this.#t;this.#t=a,this.#l=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(a){Bt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function O0(a,i){return Be(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function tm(a,i){return O0(a,i)||a.state.data!==void 0&&bc(a,i,i.refetchOnMount)}function bc(a,i,s){if(Be(i.enabled,a)!==!1&&Ql(i.staleTime,a)!=="static"){const c=typeof s=="function"?s(a):s;return c==="always"||c!==!1&&Ac(a,i)}return!1}function em(a,i,s,c){return(a!==i||Be(c.enabled,a)===!1)&&(!s.suspense||a.state.status!=="error")&&Ac(a,s)}function Ac(a,i){return Be(i.enabled,a)!==!1&&a.isStaleByTime(Ql(i.staleTime,a))}function _0(a,i){return!Ei(a.getCurrentResult(),i)}function lm(a,i){const s=new Set(i);return a.filter(c=>!s.has(c))}function E0(a,i,s){const c=a.slice(0);return c[i]=s,c}var j0=class extends sn{#e;#t;#l;#n;#a;#u;#r;#i;#h=[];constructor(a,i,s){super(),this.#e=a,this.#n=s,this.#l=[],this.#a=[],this.#t=[],this.setQueries(i)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(a=>{a.subscribe(i=>{this.#o(a,i)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(a=>{a.destroy()})}setQueries(a,i){this.#l=a,this.#n=i,Bt.batch(()=>{const s=this.#a,c=this.#c(this.#l);this.#h=c,c.forEach(y=>y.observer.setOptions(y.defaultedQueryOptions));const f=c.map(y=>y.observer),d=f.map(y=>y.getCurrentResult()),h=f.some((y,v)=>y!==s[v]);s.length===f.length&&!h||(this.#a=f,this.#t=d,this.hasListeners()&&(lm(s,f).forEach(y=>{y.destroy()}),lm(f,s).forEach(y=>{y.subscribe(v=>{this.#o(y,v)})}),this.#s()))})}getCurrentResult(){return this.#t}getQueries(){return this.#a.map(a=>a.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(a,i){const s=this.#c(a),c=s.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions));return[c,f=>this.#d(f??c,i),()=>this.#f(c,s)]}#f(a,i){return i.map((s,c)=>{const f=a[c];return s.defaultedQueryOptions.notifyOnChangeProps?f:s.observer.trackResult(f,d=>{i.forEach(h=>{h.observer.trackProp(d)})})})}#d(a,i){return i?((!this.#u||this.#t!==this.#i||i!==this.#r)&&(this.#r=i,this.#i=this.#t,this.#u=jc(this.#u,i(a))),this.#u):a}#c(a){const i=new Map(this.#a.map(c=>[c.options.queryHash,c])),s=[];return a.forEach(c=>{const f=this.#e.defaultQueryOptions(c),d=i.get(f.queryHash);d?s.push({defaultedQueryOptions:f,observer:d}):s.push({defaultedQueryOptions:f,observer:new $a(this.#e,f)})}),s}#o(a,i){const s=this.#a.indexOf(a);s!==-1&&(this.#t=E0(this.#t,s,i),this.#s())}#s(){if(this.hasListeners()){const a=this.#u,i=this.#f(this.#t,this.#h),s=this.#d(i,this.#n?.combine);a!==s&&Bt.batch(()=>{this.listeners.forEach(c=>{c(this.#t)})})}}},Rm=class extends $a{constructor(a,i){super(a,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){super.setOptions({...a,behavior:Ti()})}getOptimisticResult(a){return a.behavior=Ti(),super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,i){const{state:s}=a,c=super.createResult(a,i),{isFetching:f,isRefetching:d,isError:h,isRefetchError:y}=c,v=s.fetchMeta?.fetchMore?.direction,p=h&&v==="forward",z=f&&v==="forward",_=h&&v==="backward",C=f&&v==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:b0(i,s.data),hasPreviousPage:S0(i,s.data),isFetchNextPageError:p,isFetchingNextPage:z,isFetchPreviousPageError:_,isFetchingPreviousPage:C,isRefetchError:y&&!p&&!_,isRefetching:d&&!z&&!C}}},T0=class extends sn{#e;#t=void 0;#l;#n;constructor(i,s){super(),this.#e=i,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const s=this.options;this.options=this.#e.defaultMutationOptions(i),Ei(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#l,observer:this}),s?.mutationKey&&this.options.mutationKey&&Hl(s.mutationKey)!==Hl(this.options.mutationKey)?this.reset():this.#l?.state.status==="pending"&&this.#l.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#l?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#u(i)}getCurrentResult(){return this.#t}reset(){this.#l?.removeObserver(this),this.#l=void 0,this.#a(),this.#u()}mutate(i,s){return this.#n=s,this.#l?.removeObserver(this),this.#l=this.#e.getMutationCache().build(this.#e,this.options),this.#l.addObserver(this),this.#l.execute(i)}#a(){const i=this.#l?.state??Mm();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#u(i){Bt.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context;i?.type==="success"?(this.#n.onSuccess?.(i.data,s,c),this.#n.onSettled?.(i.data,null,s,c)):i?.type==="error"&&(this.#n.onError?.(i.error,s,c),this.#n.onSettled?.(void 0,i.error,s,c))}this.listeners.forEach(s=>{s(this.#t)})})}},Um=Y.createContext(void 0),Pa=a=>{const i=Y.useContext(Um);if(a)return a;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},A0=({client:a,children:i})=>(Y.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),x.jsx(Um.Provider,{value:a,children:i})),Nm=Y.createContext(!1),qm=()=>Y.useContext(Nm);Nm.Provider;function z0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var C0=Y.createContext(z0()),Qm=()=>Y.useContext(C0),Hm=(a,i)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(i.isReset()||(a.retryOnMount=!1))},wm=a=>{Y.useEffect(()=>{a.clearReset()},[a])},Bm=({result:a,errorResetBoundary:i,throwOnError:s,query:c,suspense:f})=>a.isError&&!i.isReset()&&!a.isFetching&&c&&(f&&a.data===void 0||Em(s,[a.error,c])),zc=(a,i)=>i.state.data===void 0,Lm=a=>{if(a.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=a.staleTime;a.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},Ym=(a,i)=>a.isLoading&&a.isFetching&&!i,Sc=(a,i)=>a?.suspense&&i.isPending,Ai=(a,i,s)=>i.fetchOptimistic(a).catch(()=>{s.clearReset()});function Gm({queries:a,...i},s){const c=Pa(s),f=qm(),d=Qm(),h=Y.useMemo(()=>a.map(Q=>{const $=c.defaultQueryOptions(Q);return $._optimisticResults=f?"isRestoring":"optimistic",$}),[a,c,f]);h.forEach(Q=>{Lm(Q),Hm(Q,d)}),wm(d);const[y]=Y.useState(()=>new j0(c,h,i)),[v,p,z]=y.getOptimisticResult(h,i.combine),_=!f&&i.subscribed!==!1;Y.useSyncExternalStore(Y.useCallback(Q=>_?y.subscribe(Bt.batchCalls(Q)):ne,[y,_]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),Y.useEffect(()=>{y.setQueries(h,i)},[h,i,y]);const L=v.some((Q,$)=>Sc(h[$],Q))?v.flatMap((Q,$)=>{const it=h[$];if(it){const ht=new $a(c,it);if(Sc(it,Q))return Ai(it,ht,d);Ym(Q,f)&&Ai(it,ht,d)}return[]}):[];if(L.length>0)throw Promise.all(L);const Z=v.find((Q,$)=>{const it=h[$];return it&&Bm({result:Q,errorResetBoundary:d,throwOnError:it.throwOnError,query:c.getQueryCache().get(it.queryHash),suspense:it.suspense})});if(Z?.error)throw Z.error;return p(z())}function Mi(a,i,s){const c=qm(),f=Qm(),d=Pa(s),h=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=c?"isRestoring":"optimistic",Lm(h),Hm(h,f),wm(f);const y=!d.getQueryCache().get(h.queryHash),[v]=Y.useState(()=>new i(d,h)),p=v.getOptimisticResult(h),z=!c&&a.subscribed!==!1;if(Y.useSyncExternalStore(Y.useCallback(_=>{const C=z?v.subscribe(Bt.batchCalls(_)):ne;return v.updateResult(),C},[v,z]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),Y.useEffect(()=>{v.setOptions(h)},[h,v]),Sc(h,p))throw Ai(h,v,f);if(Bm({result:p,errorResetBoundary:f,throwOnError:h.throwOnError,query:d.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw p.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(h,p),h.experimental_prefetchInRender&&!un&&Ym(p,c)&&(y?Ai(h,v,f):d.getQueryCache().get(h.queryHash)?.promise)?.catch(ne).finally(()=>{v.updateResult()}),h.notifyOnChangeProps?p:v.trackResult(p)}function M0(a,i){return Mi(a,$a,i)}function D0(a,i){return Mi({...a,enabled:!0,suspense:!0,throwOnError:zc,placeholderData:void 0},$a,i)}function R0(a,i){return Mi({...a,enabled:!0,suspense:!0,throwOnError:zc},Rm,i)}function U0(a,i){return Gm({...a,queries:a.queries.map(s=>({...s,suspense:!0,throwOnError:zc,enabled:!0,placeholderData:void 0}))},i)}function N0(a,i){const s=Pa(i);s.getQueryState(a.queryKey)||s.prefetchQuery(a)}function q0(a,i){const s=Pa(i);s.getQueryState(a.queryKey)||s.prefetchInfiniteQuery(a)}function Q0(a,i){const s=Pa(i),[c]=Y.useState(()=>new T0(s,a));Y.useEffect(()=>{c.setOptions(a)},[c,a]);const f=Y.useSyncExternalStore(Y.useCallback(h=>c.subscribe(Bt.batchCalls(h)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=Y.useCallback((h,y)=>{c.mutate(h,y).catch(ne)},[c]);if(f.error&&Em(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:d,mutateAsync:f.mutate}}function H0(a,i){return Mi(a,Rm,i)}function w0(a,i){if(a instanceof RegExp)return{keys:!1,pattern:a};var s,c,f,d,h=[],y="",v=a.split("/");for(v[0]||v.shift();f=v.shift();)s=f[0],s==="*"?(h.push(s),y+=f[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(c=f.indexOf("?",1),d=f.indexOf(".",1),h.push(f.substring(1,~c?c:~d?d:f.length)),y+=~c&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(y+=(~c?"?":"")+"\\"+f.substring(d))):y+="/"+f;return{keys:h,pattern:new RegExp("^"+y+(i?"(?=$|/)":"/?$"),"i")}}var rc={exports:{}},sc={};/**
 * @license React
 * use-sync-external-store-shim.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 nm;function B0(){if(nm)return sc;nm=1;var a=Ci();function i(_,C){return _===C&&(_!==0||1/_===1/C)||_!==_&&C!==C}var s=typeof Object.is=="function"?Object.is:i,c=a.useState,f=a.useEffect,d=a.useLayoutEffect,h=a.useDebugValue;function y(_,C){var L=C(),Z=c({inst:{value:L,getSnapshot:C}}),Q=Z[0].inst,$=Z[1];return d(function(){Q.value=L,Q.getSnapshot=C,v(Q)&&$({inst:Q})},[_,L,C]),f(function(){return v(Q)&&$({inst:Q}),_(function(){v(Q)&&$({inst:Q})})},[_]),h(L),L}function v(_){var C=_.getSnapshot;_=_.value;try{var L=C();return!s(_,L)}catch{return!0}}function p(_,C){return C()}var z=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:y;return sc.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:z,sc}var am;function L0(){return am||(am=1,rc.exports=B0()),rc.exports}var Y0=L0();const G0=xm.useInsertionEffect,X0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",K0=X0?Y.useLayoutEffect:Y.useEffect,Z0=G0||K0,Xm=a=>{const i=Y.useRef([a,(...s)=>i[0](...s)]).current;return Z0(()=>{i[0]=a}),i[1]},V0="popstate",Cc="pushState",Mc="replaceState",J0="hashchange",um=[V0,Cc,Mc,J0],k0=a=>{for(const i of um)addEventListener(i,a);return()=>{for(const i of um)removeEventListener(i,a)}},Km=(a,i)=>Y0.useSyncExternalStore(k0,a,i),F0=()=>location.search,$0=({ssrSearch:a=""}={})=>Km(F0,()=>a),im=()=>location.pathname,P0=({ssrPath:a}={})=>Km(im,a?()=>a:im),W0=(a,{replace:i=!1,state:s=null}={})=>history[i?Mc:Cc](s,"",a),I0=(a={})=>[P0(a),W0],rm=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[rm]>"u"){for(const a of[Cc,Mc]){const i=history[a];history[a]=function(){const s=i.apply(this,arguments),c=new Event(a);return c.arguments=arguments,dispatchEvent(c),s}}Object.defineProperty(window,rm,{value:!0})}const tg=(a,i)=>i.toLowerCase().indexOf(a.toLowerCase())?"~"+i:i.slice(a.length)||"/",Zm=(a="")=>a==="/"?"":a,eg=(a,i)=>a[0]==="~"?a.slice(1):Zm(i)+a,lg=(a="",i)=>tg(xc(Zm(a)),xc(i)),ng=a=>a[0]==="?"?a.slice(1):a,xc=a=>{try{return decodeURI(a)}catch{return a}},ag=a=>xc(ng(a)),Vm={hook:I0,searchHook:$0,parser:w0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:a=>a},Jm=Y.createContext(Vm),Pn=()=>Y.useContext(Jm),km={},Fm=Y.createContext(km),Dc=()=>Y.useContext(Fm),Di=a=>{const[i,s]=a.hook(a);return[lg(a.base,i),Xm((c,f)=>s(eg(c,a.base),f))]},ug=()=>Di(Pn()),ig=()=>{const a=Pn();return ag(a.searchHook(a))},$m=(a,i,s,c)=>{const{pattern:f,keys:d}=i instanceof RegExp?{keys:!1,pattern:i}:a(i||"*",c),h=f.exec(s)||[],[y,...v]=h;return y!==void 0?[!0,(()=>{const p=d!==!1?Object.fromEntries(d.map((_,C)=>[_,v[C]])):h.groups;let z={...v};return p&&Object.assign(z,p),z})(),...c?[y]:[]]:[!1,null]},rg=({children:a,...i})=>{const s=Pn(),c=i.hook?Vm:s;let f=c;const[d,h]=i.ssrPath?.split("?")??[];h&&(i.ssrSearch=h,i.ssrPath=d),i.hrefs=i.hrefs??i.hook?.hrefs;let y=Y.useRef({}),v=y.current,p=v;for(let z in c){const _=z==="base"?c[z]+(i[z]||""):i[z]||c[z];v===p&&_!==p[z]&&(y.current=p={...p}),p[z]=_,_!==c[z]&&(f=p)}return Y.createElement(Jm.Provider,{value:f,children:a})},sm=({children:a,component:i},s)=>i?Y.createElement(i,{params:s}):typeof a=="function"?a(s):a,sg=a=>{let i=Y.useRef(km),s=i.current;for(const c in a)a[c]!==s[c]&&(s=a);return Object.keys(a).length===0&&(s=a),i.current=s},Fn=({path:a,nest:i,match:s,...c})=>{const f=Pn(),[d]=Di(f),[h,y,v]=s??$m(f.parser,a,d,i),p=sg({...Dc(),...y});if(!h)return null;const z=v?Y.createElement(rg,{base:v},sm(c,p)):sm(c,p);return Y.createElement(Fm.Provider,{value:p,children:z})};Y.forwardRef((a,i)=>{const s=Pn(),[c,f]=Di(s),{to:d="",href:h=d,onClick:y,asChild:v,children:p,className:z,replace:_,state:C,...L}=a,Z=Xm($=>{$.ctrlKey||$.metaKey||$.altKey||$.shiftKey||$.button!==0||(y?.($),$.defaultPrevented||($.preventDefault(),f(h,a)))}),Q=s.hrefs(h[0]==="~"?h.slice(1):s.base+h,s);return v&&Y.isValidElement(p)?Y.cloneElement(p,{onClick:Z,href:Q}):Y.createElement("a",{...L,onClick:Z,href:Q,className:z?.call?z(c===h):z,children:p,ref:i})});const Pm=a=>Array.isArray(a)?a.flatMap(i=>Pm(i&&i.type===Y.Fragment?i.props.children:i)):[a],cg=({children:a,location:i})=>{const s=Pn(),[c]=Di(s);for(const f of Pm(a)){let d=0;if(Y.isValidElement(f)&&(d=$m(s.parser,f.props.path,i||c,f.props.nest))[0])return Y.cloneElement(f,{match:d})}return null};function rn(a){return!!a&&!Array.isArray(a)&&typeof a=="object"}const og=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Wm(a){return og&&rn(a)&&Symbol.asyncIterator in a}var fg=Object.create,Im=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,ty=Object.getOwnPropertyNames,hg=Object.getPrototypeOf,mg=Object.prototype.hasOwnProperty,Wa=(a,i)=>function(){return i||(0,a[ty(a)[0]])((i={exports:{}}).exports,i),i.exports},yg=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=ty(i),d=0,h=f.length,y;d<h;d++)y=f[d],!mg.call(a,y)&&y!==s&&Im(a,y,{get:(v=>i[v]).bind(null,y),enumerable:!(c=dg(i,y))||c.enumerable});return a},Ri=(a,i,s)=>(s=a!=null?fg(hg(a)):{},yg(Im(s,"default",{value:a,enumerable:!0}),a));const ey=()=>{},cm=a=>{Object.freeze&&Object.freeze(a)};function ly(a,i,s){var c;const f=i.join(".");return(c=s[f])!==null&&c!==void 0||(s[f]=new Proxy(ey,{get(d,h){if(!(typeof h!="string"||h==="then"))return ly(a,[...i,h],s)},apply(d,h,y){const v=i[i.length-1];let p={args:y,path:i};return v==="call"?p={args:y.length>=2?[y[1]]:[],path:i.slice(0,-1)}:v==="apply"&&(p={args:y.length>=2?y[1]:[],path:i.slice(0,-1)}),cm(p.args),cm(p.path),a(p)}})),s[f]}const Ui=a=>ly(a,[],Object.create(null)),Rc=a=>new Proxy(ey,{get(i,s){if(s!=="then")return a(s)}});var ny=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),vg=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=ny().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var y=h.call(f,d||"default");if(s(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),pg=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=ny().default,c=vg();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),ay=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=pg();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Uc=Wa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=ay();function c(d,h){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),y.push.apply(y,v)}return y}function f(d){for(var h=1;h<arguments.length;h++){var y=arguments[h]!=null?arguments[h]:{};h%2?c(Object(y),!0).forEach(function(v){s(d,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(y,v))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});Ri(Uc());Ri(ay());var bi=Ri(Uc());function gg(a,i){if("error"in a){const c=i.deserialize(a.error);return{ok:!1,error:(0,bi.default)((0,bi.default)({},a),{},{error:c})}}return{ok:!0,result:(0,bi.default)((0,bi.default)({},a.result),(!a.result.type||a.result.type==="data")&&{type:"data",data:i.deserialize(a.result.data)})}}var cc=class extends Error{constructor(){super("Unable to transform response from server")}};function bg(a,i){let s;try{s=gg(a,i)}catch{throw new cc}if(!s.ok&&(!rn(s.error.error)||typeof s.error.error.code!="number"))throw new cc;if(s.ok&&!rn(s.result))throw new cc;return s}Ri(Uc());function Ni(a){const i={subscribe(s){let c=null,f=!1,d=!1,h=!1;function y(){if(c===null){h=!0;return}d||(d=!0,typeof c=="function"?c():c&&c.unsubscribe())}return c=a({next(v){var p;f||(p=s.next)===null||p===void 0||p.call(s,v)},error(v){var p;f||(f=!0,(p=s.error)===null||p===void 0||p.call(s,v),y())},complete(){var v;f||(f=!0,(v=s.complete)===null||v===void 0||v.call(s),y())}}),h&&y(),{unsubscribe:y}},pipe(...s){return s.reduce(Sg,i)}};return i}function Sg(a,i){return i(a)}function xg(a){const i=new AbortController;return new Promise((c,f)=>{let d=!1;function h(){d||(d=!0,y.unsubscribe())}i.signal.addEventListener("abort",()=>{f(i.signal.reason)});const y=a.subscribe({next(v){d=!0,c(v),h()},error(v){f(v)},complete(){i.abort(),h()}})})}var Og=Object.create,uy=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,iy=Object.getOwnPropertyNames,Eg=Object.getPrototypeOf,jg=Object.prototype.hasOwnProperty,wl=(a,i)=>function(){return i||(0,a[iy(a)[0]])((i={exports:{}}).exports,i),i.exports},Tg=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=iy(i),d=0,h=f.length,y;d<h;d++)y=f[d],!jg.call(a,y)&&y!==s&&uy(a,y,{get:(v=>i[v]).bind(null,y),enumerable:!(c=_g(i,y))||c.enumerable});return a},cn=(a,i,s)=>(s=a!=null?Og(Eg(a)):{},Tg(i||!a||!a.__esModule?uy(s,"default",{value:a,enumerable:!0}):s,a)),Ag=wl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,i){function s(c,f){if(c==null)return{};var d={};for(var h in c)if({}.hasOwnProperty.call(c,h)){if(f.includes(h))continue;d[h]=c[h]}return d}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),zg=wl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(a,i){var s=Ag();function c(f,d){if(f==null)return{};var h,y,v=s(f,d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);for(y=0;y<p.length;y++)h=p[y],d.includes(h)||{}.propertyIsEnumerable.call(f,h)&&(v[h]=f[h])}return v}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),ry=wl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Cg=wl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=ry().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var y=h.call(f,d||"default");if(s(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Mg=wl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=ry().default,c=Cg();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Dg=wl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=Mg();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ia=wl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=Dg();function c(d,h){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),y.push.apply(y,v)}return y}function f(d){for(var h=1;h<arguments.length;h++){var y=arguments[h]!=null?arguments[h]:{};h%2?c(Object(y),!0).forEach(function(v){s(d,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(y,v))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Rg=cn(zg(),1),om=cn(Ia(),1);const Ug=["cursor","direction"];function Ze(a,i,s){const c=a.flatMap(f=>f.split("."));if(!i&&(!s||s==="any"))return c.length?[c]:[];if(s==="infinite"&&rn(i)&&("direction"in i||"cursor"in i)){const{cursor:f,direction:d}=i,h=(0,Rg.default)(i,Ug);return[c,{input:h,type:"infinite"}]}return[c,(0,om.default)((0,om.default)({},typeof i<"u"&&i!==Ee&&{input:i}),s&&s!=="any"&&{type:s})]}function Oi(a){return Ze(a,void 0,"any")}var Ng=Object.create,sy=Object.defineProperty,qg=Object.getOwnPropertyDescriptor,cy=Object.getOwnPropertyNames,Qg=Object.getPrototypeOf,Hg=Object.prototype.hasOwnProperty,Ve=(a,i)=>function(){return i||(0,a[cy(a)[0]])((i={exports:{}}).exports,i),i.exports},wg=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=cy(i),d=0,h=f.length,y;d<h;d++)y=f[d],!Hg.call(a,y)&&y!==s&&sy(a,y,{get:(v=>i[v]).bind(null,y),enumerable:!(c=qg(i,y))||c.enumerable});return a},Xt=(a,i,s)=>(s=a!=null?Ng(Qg(a)):{},wg(i||!a||!a.__esModule?sy(s,"default",{value:a,enumerable:!0}):s,a)),oy=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Bg=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=oy().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var y=h.call(f,d||"default");if(s(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Lg=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=oy().default,c=Bg();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),on=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=Lg();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Le=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=on();function c(d,h){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),y.push.apply(y,v)}return y}function f(d){for(var h=1;h<arguments.length;h++){var y=arguments[h]!=null?arguments[h]:{};h%2?c(Object(y),!0).forEach(function(v){s(d,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(y,v))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});function Yg(a){return i=>{let s=0,c=null;const f=[];function d(){c||(c=i.subscribe({next(y){for(const p of f){var v;(v=p.next)===null||v===void 0||v.call(p,y)}},error(y){for(const p of f){var v;(v=p.error)===null||v===void 0||v.call(p,y)}},complete(){for(const v of f){var y;(y=v.complete)===null||y===void 0||y.call(v)}}}))}function h(){if(s===0&&c){const y=c;c=null,y.unsubscribe()}}return Ni(y=>(s++,f.push(y),d(),{unsubscribe(){s--,h();const v=f.findIndex(p=>p===y);v>-1&&f.splice(v,1)}}))}}function Gg(a){let i=a;const s=[],c=h=>{i!==void 0&&h.next(i),s.push(h)},f=h=>{s.splice(s.indexOf(h),1)},d=Ni(h=>(c(h),()=>{f(h)}));return d.next=h=>{if(i!==h){i=h;for(const y of s)y.next(h)}},d.get=()=>i,d}function Xg(a){return Ni(i=>{function s(f=0,d=a.op){const h=a.links[f];if(!h)throw new Error("No more links to execute - did you forget to add an ending link?");return h({op:d,next(v){return s(f+1,v)}})}return s().subscribe(i)})}var Si=Xt(on(),1),$n=Xt(Le(),1);function Kg(a){return a instanceof zi}function Zg(a){return rn(a)&&rn(a.error)&&typeof a.error.code=="number"&&typeof a.error.message=="string"}function Vg(a,i){return typeof a=="string"?a:rn(a)&&typeof a.message=="string"?a.message:i}var zi=class _i extends Error{constructor(i,s){var c,f;const d=s?.cause;super(i,{cause:d}),(0,Si.default)(this,"cause",void 0),(0,Si.default)(this,"shape",void 0),(0,Si.default)(this,"data",void 0),(0,Si.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=d,this.shape=s==null||(c=s.result)===null||c===void 0?void 0:c.error,this.data=s==null||(f=s.result)===null||f===void 0?void 0:f.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,_i.prototype)}static from(i,s={}){const c=i;return Kg(c)?(s.meta&&(c.meta=(0,$n.default)((0,$n.default)({},c.meta),s.meta)),c):Zg(c)?new _i(c.error.message,(0,$n.default)((0,$n.default)({},s),{},{result:c})):new _i(Vg(c,"Unknown error"),(0,$n.default)((0,$n.default)({},s),{},{cause:c}))}};function Jg(a){const i=a;return i?"input"in i?i:{input:i,output:i}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const fm=a=>typeof a=="function";function kg(a){if(a)return a;if(typeof window<"u"&&fm(window.fetch))return window.fetch;if(typeof globalThis<"u"&&fm(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var ka=Xt(Le());function Fg(a){return{url:a.url.toString(),fetch:a.fetch,transformer:Jg(a.transformer),methodOverride:a.methodOverride}}function $g(a){const i={};for(let s=0;s<a.length;s++){const c=a[s];i[s]=c}return i}const Pg={query:"GET",mutation:"POST",subscription:"PATCH"};function fy(a){return"input"in a?a.transformer.input.serialize(a.input):$g(a.inputs.map(i=>a.transformer.input.serialize(i)))}const dy=a=>{const i=a.url.split("?");let c=i[0].replace(/\/$/,"")+"/"+a.path;const f=[];if(i[1]&&f.push(i[1]),"inputs"in a&&f.push("batch=1"),a.type==="query"||a.type==="subscription"){const d=fy(a);d!==void 0&&a.methodOverride!=="POST"&&f.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return f.length&&(c+="?"+f.join("&")),c},Wg=a=>{if(a.type==="query"&&a.methodOverride!=="POST")return;const i=fy(a);return i!==void 0?JSON.stringify(i):void 0},Ig=a=>nb((0,ka.default)((0,ka.default)({},a),{},{contentTypeHeader:"application/json",getUrl:dy,getBody:Wg}));var tb=class extends Error{constructor(){const a="AbortError";super(a),this.name=a,this.message=a}};const eb=a=>{var i;if(a?.aborted)throw(i=a.throwIfAborted)===null||i===void 0||i.call(a),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new tb};async function lb(a){var i;eb(a.signal);const s=a.getUrl(a),c=a.getBody(a),f=(i=a.methodOverride)!==null&&i!==void 0?i:Pg[a.type],d=await(async()=>{const y=await a.headers();return Symbol.iterator in y?Object.fromEntries(y):y})(),h=(0,ka.default)((0,ka.default)((0,ka.default)({},a.contentTypeHeader&&f!=="GET"?{"content-type":a.contentTypeHeader}:{}),a.trpcAcceptHeader?{"trpc-accept":a.trpcAcceptHeader}:void 0),d);return kg(a.fetch)(s,{method:f,signal:a.signal,body:c,headers:h})}async function nb(a){const i={},s=await lb(a);i.response=s;const c=await s.json();return i.responseJSON=c,{json:c,meta:i}}Xt(Le(),1);const dm=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function hm(a){let i=null,s=null;const c=()=>{clearTimeout(s),s=null,i=null};function f(y){const v=[[]];let p=0;for(;;){const C=y[p];if(!C)break;const L=v[v.length-1];if(C.aborted){var z;(z=C.reject)===null||z===void 0||z.call(C,new Error("Aborted")),p++;continue}if(a.validate(L.concat(C).map(Q=>Q.key))){L.push(C),p++;continue}if(L.length===0){var _;(_=C.reject)===null||_===void 0||_.call(C,new Error("Input is too big for a single dispatch")),p++;continue}v.push([])}return v}function d(){const y=f(i);c();for(const v of y){if(!v.length)continue;const p={items:v};for(const _ of v)_.batch=p;a.fetch(p.items.map(_=>_.key)).then(async _=>{await Promise.all(_.map(async(L,Z)=>{const Q=p.items[Z];try{var $;const ht=await Promise.resolve(L);($=Q.resolve)===null||$===void 0||$.call(Q,ht)}catch(ht){var it;(it=Q.reject)===null||it===void 0||it.call(Q,ht)}Q.batch=null,Q.reject=null,Q.resolve=null}));for(const L of p.items){var C;(C=L.reject)===null||C===void 0||C.call(L,new Error("Missing result")),L.batch=null}}).catch(_=>{for(const L of p.items){var C;(C=L.reject)===null||C===void 0||C.call(L,_),L.batch=null}})}}function h(y){var v;const p={aborted:!1,key:y,batch:null,resolve:dm,reject:dm},z=new Promise((_,C)=>{var L;p.reject=C,p.resolve=_,(L=i)!==null&&L!==void 0||(i=[]),i.push(p)});return(v=s)!==null&&v!==void 0||(s=setTimeout(d)),z}return{load:h}}function ab(...a){const i=new AbortController,s=a.length;let c=0;const f=()=>{++c===s&&i.abort()};for(const d of a)d?.aborted?f():d?.addEventListener("abort",f,{once:!0});return i.signal}var xi=Xt(Le(),1);function ub(a){var i,s;const c=Fg(a),f=(i=a.maxURLLength)!==null&&i!==void 0?i:1/0,d=(s=a.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const h=z=>({validate(_){if(f===1/0&&d===1/0)return!0;if(_.length>d)return!1;const C=_.map(Q=>Q.path).join(","),L=_.map(Q=>Q.input);return dy((0,xi.default)((0,xi.default)({},c),{},{type:z,path:C,inputs:L,signal:null})).length<=f},async fetch(_){const C=_.map(ht=>ht.path).join(","),L=_.map(ht=>ht.input),Z=ab(..._.map(ht=>ht.signal)),Q=await Ig((0,xi.default)((0,xi.default)({},c),{},{path:C,inputs:L,type:z,headers(){return a.headers?typeof a.headers=="function"?a.headers({opList:_}):a.headers:{}},signal:Z}));return(Array.isArray(Q.json)?Q.json:_.map(()=>Q.json)).map(ht=>({meta:Q.meta,json:ht}))}}),y=hm(h("query")),v=hm(h("mutation")),p={query:y,mutation:v};return({op:z})=>Ni(_=>{/* istanbul ignore if -- @preserve */if(z.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const L=p[z.type].load(z);let Z;return L.then(Q=>{Z=Q;const $=bg(Q.json,c.transformer.output);if(!$.ok){_.error(zi.from($.error,{meta:Q.meta}));return}_.next({context:Q.meta,result:$.result}),_.complete()}).catch(Q=>{_.error(zi.from(Q,{meta:Z?.meta}))}),()=>{}})}}Xt(Le(),1);const hy=(a,...i)=>typeof a=="function"?a(...i):a;Xt(on(),1);function ib(){let a,i;return{promise:new Promise((c,f)=>{a=c,i=f}),resolve:a,reject:i}}async function rb(a){const i=await hy(a.url);if(!a.connectionParams)return i;const c=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+c}async function sb(a){const i={method:"connectionParams",data:await hy(a)};return JSON.stringify(i)}Xt(on(),1);var an=Xt(on(),1);function cb(a){const{promise:i,resolve:s,reject:c}=ib();return a.addEventListener("open",()=>{a.removeEventListener("error",c),s()}),a.addEventListener("error",c),i}function ob(a,{intervalMs:i,pongTimeoutMs:s}){let c,f;function d(){c=setTimeout(()=>{a.send("PING"),f=setTimeout(()=>{a.close()},s)},i)}function h(){clearTimeout(c),d()}function y(){clearTimeout(f),h()}a.addEventListener("open",d),a.addEventListener("message",({data:v})=>{clearTimeout(c),d(),v==="PONG"&&y()}),a.addEventListener("close",()=>{clearTimeout(c),clearTimeout(f)})}var fb=class Oc{constructor(i){var s;if((0,an.default)(this,"id",++Oc.connectCount),(0,an.default)(this,"WebSocketPonyfill",void 0),(0,an.default)(this,"urlOptions",void 0),(0,an.default)(this,"keepAliveOpts",void 0),(0,an.default)(this,"wsObservable",Gg(null)),(0,an.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=i.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=i.urlOptions,this.keepAliveOpts=i.keepAlive}get ws(){return this.wsObservable.get()}set ws(i){this.wsObservable.next(i)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var i=this;if(i.openPromise)return i.openPromise;i.id=++Oc.connectCount;const s=rb(i.urlOptions).then(c=>new i.WebSocketPonyfill(c));i.openPromise=s.then(async c=>{i.ws=c,c.addEventListener("message",function({data:f}){f==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&ob(c,i.keepAliveOpts),c.addEventListener("close",()=>{i.ws===c&&(i.ws=null)}),await cb(c),i.urlOptions.connectionParams&&c.send(await sb(i.urlOptions.connectionParams))});try{await i.openPromise}finally{i.openPromise=null}}async close(){var i=this;try{await i.openPromise}finally{var s;(s=i.ws)===null||s===void 0||s.close()}}};(0,an.default)(fb,"connectCount",0);Xt(on(),1);Xt(Le(),1);var oc=Xt(on(),1),mm=Xt(Le(),1),qi=class{constructor(a){(0,oc.default)(this,"links",void 0),(0,oc.default)(this,"runtime",void 0),(0,oc.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=a.links.map(i=>i(this.runtime))}$request(a){var i;return Xg({links:this.links,op:(0,mm.default)((0,mm.default)({},a),{},{context:(i=a.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(Yg())}async requestAsPromise(a){var i=this;try{const s=i.$request(a);return(await xg(s)).result.data}catch(s){throw zi.from(s)}}query(a,i,s){return this.requestAsPromise({type:"query",path:a,input:i,context:s?.context,signal:s?.signal})}mutation(a,i,s){return this.requestAsPromise({type:"mutation",path:a,input:i,context:s?.context,signal:s?.signal})}subscription(a,i,s){return this.$request({type:"subscription",path:a,input:i,context:s.context,signal:s.signal}).subscribe({next(f){switch(f.result.type){case"state":{var d;(d=s.onConnectionStateChange)===null||d===void 0||d.call(s,f.result);break}case"started":{var h;(h=s.onStarted)===null||h===void 0||h.call(s,{context:f.context});break}case"stopped":{var y;(y=s.onStopped)===null||y===void 0||y.call(s);break}case"data":case void 0:{var v;(v=s.onData)===null||v===void 0||v.call(s,f.result.data);break}}},error(f){var d;(d=s.onError)===null||d===void 0||d.call(s,f)},complete(){var f;(f=s.onComplete)===null||f===void 0||f.call(s)}})}};const my=Symbol.for("trpc_untypedClient"),db={query:"query",mutate:"mutation",subscribe:"subscription"},hb=a=>db[a];function yy(a){const i=Ui(({path:s,args:c})=>{const f=[...s],d=hb(f.pop()),h=f.join(".");return a[d](h,...c)});return Rc(s=>s===my?a:i[s])}function mb(a){const i=new qi(a);return yy(i)}function Nc(a){return a[my]}Xt(Le(),1);Xt(Le(),1);var yb=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function s(f){var d,h,y,v=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,y=Symbol.iterator);v--;){if(h&&(d=f[h])!=null)return d.call(f);if(y&&(d=f[y])!=null)return new c(d.call(f));h="@@asyncIterator",y="@@iterator"}throw new TypeError("Object is not async iterable")}function c(f){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var y=h.done;return Promise.resolve(h.value).then(function(v){return{value:v,done:y}})}return c=function(y){this.s=y,this.n=y.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(y){var v=this.s.return;return v===void 0?Promise.resolve({value:y,done:!0}):d(v.apply(this.s,arguments))},throw:function(y){var v=this.s.return;return v===void 0?Promise.reject(y):d(v.apply(this.s,arguments))}},new c(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Xt(yb(),1);Xt(Le(),1);var vb=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(a,i){function s(){var c=typeof SuppressedError=="function"?SuppressedError:function(y,v){var p=Error();return p.name="SuppressedError",p.error=y,p.suppressed=v,p},f={},d=[];function h(y,v){if(v!=null){if(Object(v)!==v)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(y)var p=v[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=v[Symbol.dispose||Symbol.for("Symbol.dispose")],y))var z=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");z&&(p=function(){try{z.call(v)}catch(C){return Promise.reject(C)}}),d.push({v,d:p,a:y})}else y&&d.push({d:v,a:y});return v}return{e:f,u:h.bind(null,!1),a:h.bind(null,!0),d:function(){var v,p=this.e,z=0;function _(){for(;v=d.pop();)try{if(!v.a&&z===1)return z=0,d.push(v),Promise.resolve().then(_);if(v.d){var L=v.d.call(v.v);if(v.a)return z|=2,Promise.resolve(L).then(_,C)}else z|=1}catch(Z){return C(Z)}if(z===1)return p!==f?Promise.reject(p):Promise.resolve();if(p!==f)throw p}function C(L){return p=p!==f?new c(L,p):L,_()}return _()}}}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),vy=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(a,i){function s(c,f){this.v=c,this.k=f}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),pb=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(a,i){var s=vy();function c(f){return new s(f,0)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),gb=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(a,i){var s=vy();function c(d){return function(){return new f(d.apply(this,arguments))}}function f(d){var h,y;function v(z,_){try{var C=d[z](_),L=C.value,Z=L instanceof s;Promise.resolve(Z?L.v:L).then(function(Q){if(Z){var $=z==="return"?"return":"next";if(!L.k||Q.done)return v($,Q);Q=d[$](Q).value}p(C.done?"return":"normal",Q)},function(Q){v("throw",Q)})}catch(Q){p("throw",Q)}}function p(z,_){switch(z){case"return":h.resolve({value:_,done:!0});break;case"throw":h.reject(_);break;default:h.resolve({value:_,done:!1})}(h=h.next)?v(h.key,h.arg):y=null}this._invoke=function(z,_){return new Promise(function(C,L){var Z={key:z,arg:_,resolve:C,reject:L,next:null};y?y=y.next=Z:(h=y=Z,v(z,_))})},typeof d.return!="function"&&(this.return=void 0)}f.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},f.prototype.next=function(d){return this._invoke("next",d)},f.prototype.throw=function(d){return this._invoke("throw",d)},f.prototype.return=function(d){return this._invoke("return",d)},i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Xt(vb(),1);Xt(pb(),1);Xt(gb(),1);Xt(Le(),1);function bb(a){return Ui(({path:i,args:s})=>{var c;const f=[...i],d=f.pop();if(d==="useMutation")return a[d](f,...s);if(d==="_def")return{path:f};const[h,...y]=s,v=(c=y[0])!==null&&c!==void 0?c:{};return a[d](f,h,v)})}var fc;const Sb=["client","ssrContext","ssrState","abortOnUnmount"],xb=(fc=Y.createContext)===null||fc===void 0?void 0:fc.call(xm,null),Ob=a=>{switch(a){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function _b(a){return Ui(i=>{const s=[...i.path],c=s.pop(),f=[...i.args],d=f.shift(),h=Ob(c),y=Ze(s,d,h);return{infiniteQueryOptions:()=>a.infiniteQueryOptions(s,y,f[0]),queryOptions:()=>a.queryOptions(s,y,...f),fetch:()=>a.fetchQuery(y,...f),fetchInfinite:()=>a.fetchInfiniteQuery(y,f[0]),prefetch:()=>a.prefetchQuery(y,...f),prefetchInfinite:()=>a.prefetchInfiniteQuery(y,f[0]),ensureData:()=>a.ensureQueryData(y,...f),invalidate:()=>a.invalidateQueries(y,...f),reset:()=>a.resetQueries(y,...f),refetch:()=>a.refetchQueries(y,...f),cancel:()=>a.cancelQuery(y,...f),setData:()=>{a.setQueryData(y,f[0],f[1])},setQueriesData:()=>a.setQueriesData(y,f[0],f[1],f[2]),setInfiniteData:()=>{a.setInfiniteQueryData(y,f[0],f[1])},getData:()=>a.getQueryData(y),getInfiniteData:()=>a.getInfiniteQueryData(y),setMutationDefaults:()=>a.setMutationDefaults(Oi(s),d),getMutationDefaults:()=>a.getMutationDefaults(Oi(s)),isMutating:()=>a.isMutating({mutationKey:Oi(s)})}[c]()})}function Eb(a){const i=yy(a.client),s=_b(a);return Rc(c=>{const f=c;return f==="client"?i:Sb.includes(f)?a[f]:s[c]})}var jb=cn(Ia(),1);function ym(a){const i=a instanceof qi?a:Nc(a);return Ui(s=>{const c=s.path,f=c.join("."),[d,h]=s.args;return(0,jb.default)({queryKey:Ze(c,d,"query"),queryFn:()=>i.query(f,d,h?.trpc)},h)})}var dc=cn(Ia(),1);function ie(a,i,s){var c;const f=a[0];let d=(c=a[1])===null||c===void 0?void 0:c.input;if(s){var h;d=(0,dc.default)((0,dc.default)((0,dc.default)({},(h=d)!==null&&h!==void 0?h:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[f.join("."),d,i?.trpc]}var Tb=wl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function s(f){var d,h,y,v=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,y=Symbol.iterator);v--;){if(h&&(d=f[h])!=null)return d.call(f);if(y&&(d=f[y])!=null)return new c(d.call(f));h="@@asyncIterator",y="@@iterator"}throw new TypeError("Object is not async iterable")}function c(f){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var y=h.done;return Promise.resolve(h.value).then(function(v){return{value:v,done:y}})}return c=function(y){this.s=y,this.n=y.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(y){var v=this.s.return;return v===void 0?Promise.resolve({value:y,done:!0}):d(v.apply(this.s,arguments))},throw:function(y){var v=this.s.return;return v===void 0?Promise.reject(y):d(v.apply(this.s,arguments))}},new c(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ab=cn(Tb(),1);function _c(a){return{path:a.path.join(".")}}function Ja(a){const i=_c(a);return Y.useMemo(()=>i,[i])}async function py(a,i,s){const f=i.getQueryCache().build(i,{queryKey:s});f.setState({data:[],status:"success"});const d=[];var h=!1,y=!1,v;try{for(var p=(0,Ab.default)(a),z;h=!(z=await p.next()).done;h=!1){const _=z.value;d.push(_),f.setState({data:[...d]})}}catch(_){y=!0,v=_}finally{try{h&&p.return!=null&&await p.return()}finally{if(y)throw v}}return d}var _t=cn(Ia(),1);function zb(a){const{client:i,queryClient:s}=a,c=i instanceof qi?i:Nc(i);return{infiniteQueryOptions:(f,d,h)=>{var y,v;const p=((y=d[1])===null||y===void 0?void 0:y.input)===Ee,z=async _=>{var C;const L=(0,_t.default)((0,_t.default)({},h),{},{trpc:(0,_t.default)((0,_t.default)({},h?.trpc),!(h==null||(C=h.trpc)===null||C===void 0)&&C.abortOnUnmount?{signal:_.signal}:{signal:null})});return await c.query(...ie(d,L,{direction:_.direction,pageParam:_.pageParam}))};return Object.assign((0,_t.default)((0,_t.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:p?Ee:z,initialPageParam:(v=h?.initialCursor)!==null&&v!==void 0?v:null}),{trpc:_c({path:f})})},queryOptions:(f,d,h)=>{var y;const v=((y=d[1])===null||y===void 0?void 0:y.input)===Ee,p=async z=>{var _;const C=(0,_t.default)((0,_t.default)({},h),{},{trpc:(0,_t.default)((0,_t.default)({},h?.trpc),!(h==null||(_=h.trpc)===null||_===void 0)&&_.abortOnUnmount?{signal:z.signal}:{signal:null})}),L=await c.query(...ie(d,C));return Wm(L)?py(L,s,d):L};return Object.assign((0,_t.default)((0,_t.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:v?Ee:p}),{trpc:_c({path:f})})},fetchQuery:(f,d)=>s.fetchQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...ie(f,d))})),fetchInfiniteQuery:(f,d)=>{var h;return s.fetchInfiniteQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:({pageParam:y,direction:v})=>c.query(...ie(f,d,{pageParam:y,direction:v})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},prefetchQuery:(f,d)=>s.prefetchQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...ie(f,d))})),prefetchInfiniteQuery:(f,d)=>{var h;return s.prefetchInfiniteQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:({pageParam:y,direction:v})=>c.query(...ie(f,d,{pageParam:y,direction:v})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},ensureQueryData:(f,d)=>s.ensureQueryData((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...ie(f,d))})),invalidateQueries:(f,d,h)=>s.invalidateQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:f}),h),resetQueries:(f,d,h)=>s.resetQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:f}),h),refetchQueries:(f,d,h)=>s.refetchQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:f}),h),cancelQuery:(f,d)=>s.cancelQueries({queryKey:f},d),setQueryData:(f,d,h)=>s.setQueryData(f,d,h),setQueriesData:(f,d,h,y)=>s.setQueriesData((0,_t.default)((0,_t.default)({},d),{},{queryKey:f}),h,y),getQueryData:f=>s.getQueryData(f),setInfiniteQueryData:(f,d,h)=>s.setQueryData(f,d,h),getInfiniteQueryData:f=>s.getQueryData(f),setMutationDefaults:(f,d)=>{const h=f[0],y=v=>c.mutation(...ie([h,{input:v}],a));return s.setMutationDefaults(f,typeof d=="function"?d({canonicalMutationFn:y}):d)},getMutationDefaults:f=>s.getMutationDefaults(f),isMutating:f=>s.isMutating((0,_t.default)((0,_t.default)({},f),{},{exact:!0}))}}var K=cn(Ia());const vm=(a,i)=>new Proxy(a,{get(c,f){return i(f),c[f]}});function Cb(a){var i,s;const c=(i=void 0)!==null&&i!==void 0?i:F=>F.originalFn(),f=(s=void 0)!==null&&s!==void 0?s:xb,d=mb,h=F=>{var V;const{abortOnUnmount:D=!1,queryClient:X,ssrContext:J}=F,[et,lt]=Y.useState((V=F.ssrState)!==null&&V!==void 0?V:!1),tt=F.client instanceof qi?F.client:Nc(F.client),I=Y.useMemo(()=>zb({client:tt,queryClient:X}),[tt,X]),rt=Y.useMemo(()=>(0,K.default)({abortOnUnmount:D,queryClient:X,client:tt,ssrContext:J??null,ssrState:et},I),[D,tt,I,X,J,et]);return Y.useEffect(()=>{lt(ct=>ct?"mounted":!1)},[]),x.jsx(f.Provider,{value:rt,children:F.children})};function y(){const F=Y.useContext(f);if(!F)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return F}function v(F,V){var D;const{queryClient:X,ssrState:J}=y();return J&&J!=="mounted"&&((D=X.getQueryCache().find({queryKey:F}))===null||D===void 0?void 0:D.state.status)==="error"?(0,K.default)({retryOnMount:!1},V):V}function p(F,V,D){var X,J,et,lt,tt;const I=y(),{abortOnUnmount:rt,client:ct,ssrState:T,queryClient:H,prefetchQuery:G}=I,at=Ze(F,V,"query"),mt=H.getQueryDefaults(at),b=V===Ee;typeof window>"u"&&T==="prepass"&&(D==null||(X=D.trpc)===null||X===void 0?void 0:X.ssr)!==!1&&((J=D?.enabled)!==null&&J!==void 0?J:mt?.enabled)!==!1&&!b&&!H.getQueryCache().find({queryKey:at})&&G(at,D);const U=v(at,(0,K.default)((0,K.default)({},mt),D)),w=(et=(lt=D==null||(tt=D.trpc)===null||tt===void 0?void 0:tt.abortOnUnmount)!==null&&lt!==void 0?lt:void 0)!==null&&et!==void 0?et:rt,B=M0((0,K.default)((0,K.default)({},U),{},{queryKey:at,queryFn:b?V:async P=>{const st=(0,K.default)((0,K.default)({},U),{},{trpc:(0,K.default)((0,K.default)({},U?.trpc),w?{signal:P.signal}:{signal:null})}),St=await ct.query(...ie(at,st));return Wm(St)?py(St,H,at):St}}),H);return B.trpc=Ja({path:F}),B}function z(F,V,D){var X,J,et;const lt=y(),tt=Ze(F,V,"query"),I=V===Ee,rt=(X=(J=D==null||(et=D.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&J!==void 0?J:void 0)!==null&&X!==void 0?X:lt.abortOnUnmount;N0((0,K.default)((0,K.default)({},D),{},{queryKey:tt,queryFn:I?V:ct=>{const T={trpc:(0,K.default)((0,K.default)({},D?.trpc),rt?{signal:ct.signal}:{})};return lt.client.query(...ie(tt,T))}}))}function _(F,V,D){var X,J,et;const lt=y(),tt=Ze(F,V,"query"),I=(X=(J=D==null||(et=D.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&J!==void 0?J:void 0)!==null&&X!==void 0?X:lt.abortOnUnmount,rt=D0((0,K.default)((0,K.default)({},D),{},{queryKey:tt,queryFn:ct=>{const T=(0,K.default)((0,K.default)({},D),{},{trpc:(0,K.default)((0,K.default)({},D?.trpc),I?{signal:ct.signal}:{signal:null})});return lt.client.query(...ie(tt,T))}}),lt.queryClient);return rt.trpc=Ja({path:F}),[rt.data,rt]}function C(F,V){const{client:D,queryClient:X}=y(),J=Oi(F),et=X.defaultMutationOptions(X.getMutationDefaults(J)),lt=Q0((0,K.default)((0,K.default)({},V),{},{mutationKey:J,mutationFn:tt=>D.mutation(...ie([F,{input:tt}],V)),onSuccess(...tt){var I,rt;return c({originalFn:()=>{var T,H,G;return(T=V==null||(H=V.onSuccess)===null||H===void 0?void 0:H.call(V,...tt))!==null&&T!==void 0?T:et==null||(G=et.onSuccess)===null||G===void 0?void 0:G.call(et,...tt)},queryClient:X,meta:(I=(rt=V?.meta)!==null&&rt!==void 0?rt:et?.meta)!==null&&I!==void 0?I:{}})}}),X);return lt.trpc=Ja({path:F}),lt}const L={data:void 0,error:null,status:"idle"},Z={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function Q(F,V,D){var X;const J=(X=D?.enabled)!==null&&X!==void 0?X:V!==Ee,et=Hl(Ze(F,V,"any")),{client:lt}=y(),tt=Y.useRef(D);Y.useEffect(()=>{tt.current=D});const[I]=Y.useState(new Set([])),rt=Y.useCallback(b=>{I.add(b)},[I]),ct=Y.useRef(null),T=Y.useCallback(b=>{const U=G.current,w=G.current=b(U);let B=!1;for(const P of I)if(U[P]!==w[P]){B=!0;break}B&&mt(vm(w,rt))},[rt,I]),H=Y.useCallback(()=>{var b;if((b=ct.current)===null||b===void 0||b.unsubscribe(),!J){T(()=>(0,K.default)((0,K.default)({},L),{},{reset:H}));return}T(()=>(0,K.default)((0,K.default)({},Z),{},{reset:H}));const U=lt.subscription(F.join("."),V??void 0,{onStarted:()=>{var w,B;(w=(B=tt.current).onStarted)===null||w===void 0||w.call(B),T(P=>(0,K.default)((0,K.default)({},P),{},{status:"pending",error:null}))},onData:w=>{var B,P;(B=(P=tt.current).onData)===null||B===void 0||B.call(P,w),T(st=>(0,K.default)((0,K.default)({},st),{},{status:"pending",data:w,error:null}))},onError:w=>{var B,P;(B=(P=tt.current).onError)===null||B===void 0||B.call(P,w),T(st=>(0,K.default)((0,K.default)({},st),{},{status:"error",error:w}))},onConnectionStateChange:w=>{T(B=>{switch(w.state){case"idle":return(0,K.default)((0,K.default)({},B),{},{status:w.state,error:null,data:void 0});case"connecting":return(0,K.default)((0,K.default)({},B),{},{error:w.error,status:w.state});case"pending":return B}})},onComplete:()=>{var w,B;(w=(B=tt.current).onComplete)===null||w===void 0||w.call(B),T(P=>(0,K.default)((0,K.default)({},P),{},{status:"idle",error:null,data:void 0}))}});ct.current=U},[lt,et,J,T]);Y.useEffect(()=>(H(),()=>{var b;(b=ct.current)===null||b===void 0||b.unsubscribe()}),[H]);const G=Y.useRef(J?(0,K.default)((0,K.default)({},Z),{},{reset:H}):(0,K.default)((0,K.default)({},L),{},{reset:H})),[at,mt]=Y.useState(vm(G.current,rt));return at}function $(F,V,D){var X,J,et,lt,tt;const{client:I,ssrState:rt,prefetchInfiniteQuery:ct,queryClient:T,abortOnUnmount:H}=y(),G=Ze(F,V,"infinite"),at=T.getQueryDefaults(G),mt=V===Ee;typeof window>"u"&&rt==="prepass"&&(D==null||(X=D.trpc)===null||X===void 0?void 0:X.ssr)!==!1&&((J=D?.enabled)!==null&&J!==void 0?J:at?.enabled)!==!1&&!mt&&!T.getQueryCache().find({queryKey:G})&&ct(G,(0,K.default)((0,K.default)({},at),D));const b=v(G,(0,K.default)((0,K.default)({},at),D)),U=(et=D==null||(lt=D.trpc)===null||lt===void 0?void 0:lt.abortOnUnmount)!==null&&et!==void 0?et:H,w=H0((0,K.default)((0,K.default)({},b),{},{initialPageParam:(tt=D.initialCursor)!==null&&tt!==void 0?tt:null,persister:D.persister,queryKey:G,queryFn:mt?V:B=>{var P;const st=(0,K.default)((0,K.default)({},b),{},{trpc:(0,K.default)((0,K.default)({},b?.trpc),U?{signal:B.signal}:{signal:null})});return I.query(...ie(G,st,{pageParam:(P=B.pageParam)!==null&&P!==void 0?P:D.initialCursor,direction:B.direction}))}}),T);return w.trpc=Ja({path:F}),w}function it(F,V,D){var X,J,et;const lt=y(),tt=Ze(F,V,"infinite"),I=lt.queryClient.getQueryDefaults(tt),rt=V===Ee,ct=v(tt,(0,K.default)((0,K.default)({},I),D)),T=(X=D==null||(J=D.trpc)===null||J===void 0?void 0:J.abortOnUnmount)!==null&&X!==void 0?X:lt.abortOnUnmount;q0((0,K.default)((0,K.default)({},D),{},{initialPageParam:(et=D.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:rt?V:H=>{var G;const at=(0,K.default)((0,K.default)({},ct),{},{trpc:(0,K.default)((0,K.default)({},ct?.trpc),T?{signal:H.signal}:{})});return lt.client.query(...ie(tt,at,{pageParam:(G=H.pageParam)!==null&&G!==void 0?G:D.initialCursor,direction:H.direction}))}}))}function ht(F,V,D){var X,J,et;const lt=y(),tt=Ze(F,V,"infinite"),I=lt.queryClient.getQueryDefaults(tt),rt=v(tt,(0,K.default)((0,K.default)({},I),D)),ct=(X=D==null||(J=D.trpc)===null||J===void 0?void 0:J.abortOnUnmount)!==null&&X!==void 0?X:lt.abortOnUnmount,T=R0((0,K.default)((0,K.default)({},D),{},{initialPageParam:(et=D.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:H=>{var G;const at=(0,K.default)((0,K.default)({},rt),{},{trpc:(0,K.default)((0,K.default)({},rt?.trpc),ct?{signal:H.signal}:{})});return lt.client.query(...ie(tt,at,{pageParam:(G=H.pageParam)!==null&&G!==void 0?G:D.initialCursor,direction:H.direction}))}}),lt.queryClient);return T.trpc=Ja({path:F}),[T.data,T]}return{Provider:h,createClient:d,useContext:y,useUtils:y,useQuery:p,usePrefetchQuery:z,useSuspenseQuery:_,useQueries:(F,V)=>{const{ssrState:D,queryClient:X,prefetchQuery:J,client:et}=y(),lt=ym(et),tt=F(lt);if(typeof window>"u"&&D==="prepass")for(const rt of tt){var I;const ct=rt;((I=ct.trpc)===null||I===void 0?void 0:I.ssr)!==!1&&!X.getQueryCache().find({queryKey:ct.queryKey})&&J(ct.queryKey,ct)}return Gm({queries:tt.map(rt=>(0,K.default)((0,K.default)({},rt),{},{queryKey:rt.queryKey})),combine:V?.combine},X)},useSuspenseQueries:F=>{const{queryClient:V,client:D}=y(),X=ym(D),J=F(X),et=U0({queries:J.map(lt=>(0,K.default)((0,K.default)({},lt),{},{queryFn:lt.queryFn,queryKey:lt.queryKey}))},V);return[et.map(lt=>lt.data),et]},useMutation:C,useSubscription:Q,useInfiniteQuery:$,usePrefetchInfiniteQuery:it,useSuspenseInfiniteQuery:ht}}function Mb(a){const i=bb(a);return Rc(s=>s==="useContext"||s==="useUtils"?()=>{const c=a.useUtils();return Y.useMemo(()=>Eb(c),[c])}:a.hasOwnProperty(s)?a[s]:i[s])}function Db(a){const i=Cb();return Mb(i)}const zt=Db(),Rb=zt.createClient({links:[ub({url:"/api/trpc"})]}),pm="/media/images/capas/capa-placeholder.svg",hc="biblioteca_modo_exibicao";function gm(){if(typeof window>"u")return"desktop";const a=window.innerWidth;return a<768?"mobile":a<1024?"tablet":"desktop"}function Ub(){const[a,i]=Y.useState(gm);return Y.useEffect(()=>{function s(){i(gm())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),a}function qc({livros:a,titulo:i}){const{data:s}=zt.config.obter.useQuery(),c=Ub(),[f,d]=Y.useState(()=>typeof window>"u"?"grade":localStorage.getItem(hc)||"grade");Y.useEffect(()=>{s&&!localStorage.getItem(hc)&&d(s.modoPadrao)},[s]);function h(v){d(v),localStorage.setItem(hc,v)}const y=c==="desktop"?s?.colunasDesktop??4:c==="tablet"?s?.colunasTablet??2:null;return x.jsxs("section",{children:[x.jsxs("div",{className:"flex items-center justify-between mb-4",children:[x.jsx("h2",{className:"font-medium uppercase text-xs",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:i}),x.jsxs("div",{className:"flex gap-1",children:[x.jsx("button",{"aria-label":"ver em grade","aria-pressed":f==="grade",onClick:()=>h("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:bm(f==="grade"),children:x.jsx(Nb,{})}),x.jsx("button",{"aria-label":"ver em lista","aria-pressed":f==="lista",onClick:()=>h("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:bm(f==="lista"),children:x.jsx(qb,{})})]})]}),f==="grade"?x.jsx("div",{className:"grid gap-x-5 gap-y-8",style:{gridTemplateColumns:y?`repeat(${y}, 1fr)`:"repeat(auto-fill, minmax(120px, 1fr))"},children:a.map(v=>x.jsxs("a",{href:`/livro/${v.id}`,className:"group block",children:[x.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 ease-out group-hover:-translate-y-1 group-hover:shadow-2xl",children:x.jsx("img",{src:v.capaUrl||pm,alt:v.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),x.jsx("p",{className:"text-sm mt-2 leading-snug line-clamp-2 transition-colors group-hover:text-[var(--clr-acento-400)]",style:{color:"var(--clr-branco)"},children:v.titulo}),x.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:v.autor})]},v.id))}):x.jsx("div",{className:"flex flex-col gap-2",children:a.map(v=>x.jsxs("a",{href:`/livro/${v.id}`,className:"flex gap-4 items-center p-2 rounded-md transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)"},children:[x.jsx("img",{src:v.capaUrl||pm,alt:v.titulo,className:"w-12 aspect-[2/3] object-cover rounded flex-shrink-0 shadow"}),x.jsxs("div",{className:"min-w-0",children:[x.jsx("p",{className:"text-sm truncate",style:{color:"var(--clr-branco)"},children:v.titulo}),x.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[v.autor,v.serie?` · ${v.serie}`:""]})]})]},v.id))})]})}function bm(a){return{background:a?"var(--clr-acento-alpha12)":"transparent",color:a?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"}}function Nb(){return x.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[x.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),x.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),x.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),x.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function qb(){return x.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[x.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),x.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),x.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const gy="/media/images/capas/capa-placeholder.svg";function Sm({titulo:a,itens:i}){return x.jsxs("section",{className:"mb-14",children:[x.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:a}),x.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2 -mx-1 px-1",children:i.map(s=>x.jsxs("a",{href:s.href,className:"group block flex-shrink-0 w-24",children:[x.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:x.jsx("img",{src:s.capaUrl||gy,alt:s.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),x.jsx("p",{className:"text-xs mt-2 leading-snug line-clamp-2",style:{color:"var(--clr-branco)"},children:s.titulo})]},s.id))})]})}function Qb(){const[,a]=ug(),[i,s]=Y.useState(""),{data:c,isLoading:f}=zt.biblioteca.getCatalogo.useQuery(),{data:d}=zt.auth.me.useQuery(),{data:h}=zt.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!d}),{data:y}=zt.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!d}),{data:v}=zt.biblioteca.listarSeries.useQuery(),p=c?.[0],z=c?.slice(1)??[];function _(C){C.preventDefault(),i.trim()&&a(`/buscar?q=${encodeURIComponent(i.trim())}`)}return x.jsxs("main",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[x.jsxs("header",{className:"flex items-center justify-between gap-3 px-5 py-4 sticky top-0 z-10 backdrop-blur-sm",style:{borderBottom:"var(--border-thin)",background:"rgba(26,2,9,0.75)"},children:[x.jsx("a",{href:"/",className:"flex-shrink-0",children:x.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-8"})}),x.jsx("form",{onSubmit:_,className:"flex-1 max-w-xs",children:x.jsx("input",{value:i,onChange:C=>s(C.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm px-3 py-1.5 rounded-full transition-colors focus:outline-none",style:{border:"var(--border-medium)",background:"rgba(255,255,255,0.06)",color:"var(--clr-branco)"}})}),x.jsx("a",{href:"/admin",className:"btn btn-ghost flex-shrink-0",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:d?"área do editor":"entrar"})]}),x.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16",children:[f&&x.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),!f&&(!c||c.length===0)&&x.jsxs("div",{className:"rounded-lg p-10 text-center",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[x.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"A estante ainda está sendo montada"}),x.jsx("p",{className:"text-sm",children:"Em breve os primeiros livros aparecem aqui."})]}),p&&x.jsxs("section",{className:"mb-14 relative",children:[x.jsx("div",{className:"absolute -top-16 left-1/2 -translate-x-1/2 w-72 h-72 rounded-full pointer-events-none",style:{background:"var(--gradient-accent-glow)",filter:"blur(10px)"}}),x.jsxs("div",{className:"relative flex flex-col sm:flex-row gap-8 rounded-2xl p-6 sm:p-8",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",boxShadow:"var(--shadow-borgonha-md)"},children:[x.jsx("a",{href:`/livro/${p.id}`,className:"flex-shrink-0 mx-auto sm:mx-0 group",children:x.jsx("img",{src:p.capaUrl||gy,alt:p.titulo,className:"w-36 sm:w-44 aspect-[2/3] object-cover rounded-lg shadow-2xl transition-transform duration-300 group-hover:scale-[1.03]"})}),x.jsxs("div",{className:"flex flex-col justify-center gap-2 text-center sm:text-left",children:[x.jsx("span",{className:"text-xs font-bold uppercase",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-acento-400)"},children:"destaque"}),x.jsx("a",{href:`/livro/${p.id}`,className:"text-2xl sm:text-3xl font-semibold leading-tight transition-colors hover:text-[var(--clr-acento-400)]",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:p.titulo}),x.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:p.autor}),p.serie&&x.jsxs("a",{href:`/serie/${encodeURIComponent(p.serie)}`,className:"text-sm w-fit mx-auto sm:mx-0 transition-colors hover:opacity-80",style:{color:"var(--color-text-on-dark-muted)"},children:[p.serie,p.volumeNumero?` · volume ${p.volumeNumero}`:""]}),p.resumo&&x.jsx("p",{className:"text-sm mt-1 max-w-md",style:{color:"var(--color-text-on-dark-muted)",lineHeight:"var(--leading-relaxed)"},children:p.resumo}),x.jsx("a",{href:`/leitor/${p.id}`,className:"btn btn-primary w-fit mx-auto sm:mx-0 mt-3",children:"ler agora"})]})]})]}),h&&h.length>0&&x.jsx(Sm,{titulo:"continuar lendo",itens:h.map(C=>({id:C.livroId,titulo:C.titulo,capaUrl:C.capaUrl,href:`/leitor/${C.livroId}`}))}),y&&y.length>0&&x.jsx(Sm,{titulo:"meus favoritos",itens:y.map(C=>({id:C.livroId,titulo:C.titulo,capaUrl:C.capaUrl,href:`/livro/${C.livroId}`}))}),v&&v.length>0&&x.jsxs("section",{className:"mb-14",children:[x.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"coleções"}),x.jsx("div",{className:"flex gap-2 flex-wrap",children:v.map(C=>x.jsx("a",{href:`/serie/${encodeURIComponent(C)}`,className:"text-sm px-4 py-2 rounded-full transition-colors hover:bg-white/[0.08]",style:{border:"var(--border-medium)",color:"var(--clr-branco)"},children:C},C))})]}),z.length>0&&x.jsx(qc,{livros:z,titulo:"todos os livros"})]})]})}function by(){const a=zt.useUtils(),{data:i,isLoading:s}=zt.auth.me.useQuery(),c=zt.auth.login.useMutation({onSuccess:()=>a.auth.me.invalidate()}),f=zt.auth.logout.useMutation({onSuccess:()=>a.auth.me.invalidate()}),d=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:s,login:c,logout:f,podePublicar:d}}const Hb="/media/images/capas/capa-placeholder.svg";function wb(){const{login:a}=by(),[i,s]=Y.useState(""),[c,f]=Y.useState("");return x.jsx("div",{className:"min-h-dvh flex items-center justify-center px-6",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:x.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[x.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-8 mb-6"}),x.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Entrar"}),x.jsx("input",{className:"w-full rounded px-3 py-2",style:qe,placeholder:"e-mail",value:i,onChange:d=>s(d.target.value)}),x.jsx("input",{className:"w-full rounded px-3 py-2",style:qe,placeholder:"senha",type:"password",value:c,onChange:d=>f(d.target.value)}),x.jsx("button",{className:"btn btn-primary w-full",onClick:()=>a.mutate({email:i,senha:c}),disabled:a.isPending,children:a.isPending?"entrando...":"entrar"}),a.isError&&x.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:a.error.message})]})})}const qe={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function Bb({livroExistente:a,aoTerminar:i}){const s=zt.useUtils(),c=zt.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),f=zt.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),[d,h]=Y.useState(a?.titulo??""),[y,v]=Y.useState(a?.subtitulo??""),[p,z]=Y.useState(a?.serie??""),[_,C]=Y.useState(a?.volumeNumero?.toString()??""),[L,Z]=Y.useState(a?.autor??""),[Q,$]=Y.useState(a?.resumo??""),[it,ht]=Y.useState(null),[jt,qt]=Y.useState(null),[F,V]=Y.useState(!1),[D,X]=Y.useState(null),J=!!a;async function et(I,rt,ct,T={}){const H=new FormData;H.append(rt,ct);for(const[at,mt]of Object.entries(T))H.append(at,mt);const G=await fetch(I,{method:"POST",body:H});if(!G.ok){const at=await G.json().catch(()=>({}));throw new Error(at.erro||"Falha no upload.")}return G.json()}function lt(){h(""),v(""),z(""),C(""),Z(""),$(""),ht(null),qt(null)}async function tt(){if(!J&&!it){X("Selecione o arquivo DOCX.");return}X(null),V(!0);try{let I,rt,ct;if(it){const H=await et("/api/admin/upload-docx","arquivo",it,{titulo:d,autor:L});I=H.docxOriginalUrl,rt=H.epubUrl}jt&&(ct=(await et("/api/admin/upload-capa","imagem",jt)).url);const T={titulo:d,subtitulo:y||void 0,serie:p||void 0,volumeNumero:_?Number(_):void 0,autor:L,resumo:Q||void 0,...ct&&{capaUrl:ct},...rt&&{epubUrl:rt},...I&&{docxOriginalUrl:I}};J?await f.mutateAsync({id:a.id,...T}):(await c.mutateAsync(T),lt()),i()}catch(I){X(I instanceof Error?I.message:"Erro ao salvar.")}finally{V(!1)}}return x.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:J?`Editando: ${a.titulo}`:"Novo livro"}),J&&x.jsx("button",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},onClick:i,children:"cancelar edição"})]}),x.jsx("input",{className:"w-full rounded px-3 py-2",style:qe,placeholder:"título",value:d,onChange:I=>h(I.target.value)}),x.jsx("input",{className:"w-full rounded px-3 py-2",style:qe,placeholder:"subtítulo (opcional)",value:y,onChange:I=>v(I.target.value)}),x.jsxs("div",{className:"flex gap-3",children:[x.jsx("input",{className:"flex-1 rounded px-3 py-2",style:qe,placeholder:"série (opcional)",value:p,onChange:I=>z(I.target.value)}),x.jsx("input",{className:"w-28 rounded px-3 py-2",style:qe,placeholder:"volume nº",value:_,onChange:I=>C(I.target.value)})]}),x.jsx("input",{className:"w-full rounded px-3 py-2",style:qe,placeholder:"autor",value:L,onChange:I=>Z(I.target.value)}),x.jsx("textarea",{className:"w-full rounded px-3 py-2",style:qe,placeholder:"resumo (opcional)",value:Q,onChange:I=>$(I.target.value)}),x.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",J&&"(deixe em branco pra manter o atual)"]}),x.jsx("input",{type:"file",accept:".docx",onChange:I=>ht(I.target.files?.[0]??null)}),x.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",J&&"(deixe em branco pra manter a atual)"]}),x.jsx("input",{type:"file",accept:"image/*",onChange:I=>qt(I.target.files?.[0]??null)}),D&&x.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:D}),x.jsx("button",{className:"btn btn-primary",onClick:tt,disabled:F||!d||!L,children:F?"processando...":J?"salvar alterações":"salvar como rascunho"})]})}function Lb({aoEditar:a}){const i=zt.useUtils(),{data:s}=zt.biblioteca.admin.listar.useQuery(),[c,f]=Y.useState(""),d=zt.biblioteca.admin.atualizar.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),h=zt.biblioteca.admin.excluir.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),y=s?.filter(p=>p.titulo.toLowerCase().includes(c.toLowerCase())||p.autor.toLowerCase().includes(c.toLowerCase()));function v(p,z){window.confirm(`Excluir "${z}" permanentemente? Essa ação não pode ser desfeita.`)&&h.mutate({id:p})}return x.jsxs("div",{className:"mt-8 space-y-3",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:["Livros ",s?`(${s.length})`:""]}),x.jsx("input",{value:c,onChange:p=>f(p.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...qe,maxWidth:240}})]}),x.jsxs("div",{className:"space-y-2",children:[y?.map(p=>x.jsxs("div",{className:"flex items-center gap-3 rounded-md p-2",style:{border:"var(--border-thin)"},children:[x.jsx("img",{src:p.capaUrl||Hb,alt:"",className:"w-10 aspect-[2/3] object-cover rounded flex-shrink-0"}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"text-sm truncate",children:p.titulo}),x.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"var(--color-text-on-dark-muted)"},children:[x.jsx("span",{className:"px-1.5 py-0.5 rounded",style:{background:p.status==="publicado"?"var(--clr-acento-alpha12)":"rgba(255,255,255,0.06)",color:p.status==="publicado"?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:p.status}),p.epubUrl?"epub ok":"sem epub",p.serie?` · ${p.serie}`:""]})]}),x.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[x.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>a(p),children:"editar"}),x.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>d.mutate({id:p.id,status:p.status==="publicado"?"rascunho":"publicado"}),children:p.status==="publicado"?"despublicar":"publicar"}),x.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem",color:"#ff8080"},onClick:()=>v(p.id,p.titulo),children:"excluir"})]})]},p.id)),y?.length===0&&x.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum livro encontrado."})]})]})}function Yb(){const{data:a}=zt.config.obter.useQuery(),i=zt.useUtils(),s=zt.config.atualizar.useMutation({onSuccess:()=>i.config.obter.invalidate()});return a?x.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[x.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Configurações de exibição"}),x.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Controla como os livros aparecem na Home. O celular sempre se ajusta sozinho — só desktop e tablet usam esse número fixo."}),x.jsxs("div",{className:"flex gap-4 items-center",children:[x.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",x.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:qe,onBlur:c=>s.mutate({colunasDesktop:Number(c.target.value)})})]}),x.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",x.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:qe,onBlur:c=>s.mutate({colunasTablet:Number(c.target.value)})})]})]}),x.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",x.jsxs("select",{defaultValue:a.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:qe,onChange:c=>s.mutate({modoPadrao:c.target.value}),children:[x.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),x.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]})]}):null}function Gb(){const{usuario:a,isLoading:i,podePublicar:s,logout:c}=by(),[f,d]=Y.useState(null);return i?null:a?s?x.jsx("div",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:x.jsxs("div",{className:"max-w-2xl mx-auto p-6",children:[x.jsxs("div",{className:"flex justify-between items-center mb-6",children:[x.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7"}),x.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>c.mutate(),children:"sair"})]}),x.jsx(Bb,{livroExistente:f,aoTerminar:()=>d(null)},f?.id??"novo"),x.jsx(Lb,{aoEditar:d}),x.jsx(Yb,{})]})}):x.jsx("div",{className:"min-h-dvh p-6",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:"Sua conta não tem permissão de editor."}):x.jsx(wb,{})}const Xb="/media/images/capas/capa-placeholder.svg";function Kb(){const{id:a}=Dc(),i=Number(a),{data:s,isLoading:c}=zt.biblioteca.getLivro.useQuery({id:i}),{data:f}=zt.auth.me.useQuery(),{data:d}=zt.biblioteca.favoritos.status.useQuery({livroId:i},{enabled:!!f&&!Number.isNaN(i)}),h=zt.useUtils(),y=zt.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>h.biblioteca.favoritos.status.invalidate({livroId:i})});return c?x.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:x.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?x.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[x.jsxs("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:[x.jsx("a",{href:"/",style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:"← voltar"}),f&&x.jsx("button",{"aria-label":"favoritar",onClick:()=>y.mutate({livroId:i}),style:{background:"none",border:"none",fontSize:"1.1rem",color:d?.favorito?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:d?.favorito?"★":"☆"})]}),x.jsxs("div",{style:{maxWidth:640,margin:"0 auto",padding:"2rem 1.25rem 4rem",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[x.jsx("img",{src:s.capaUrl||Xb,alt:s.titulo,style:{width:180,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-borgonha-md)",marginBottom:"1.5rem"}}),x.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",fontWeight:600,color:"var(--clr-branco)",marginBottom:"0.4rem"},children:s.titulo}),s.subtitulo&&x.jsx("p",{style:{fontSize:"0.95rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),x.jsx("p",{style:{fontSize:"0.85rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),s.serie&&x.jsxs("a",{href:`/serie/${encodeURIComponent(s.serie)}`,style:{display:"inline-block",marginTop:"0.4rem",marginBottom:"1.5rem",fontSize:"0.75rem",padding:"0.35rem 0.9rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",color:"var(--clr-acento-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&x.jsx("p",{style:{fontSize:"0.9rem",lineHeight:"var(--leading-relaxed)",color:"var(--color-text-on-dark-muted)",marginBottom:"2rem",maxWidth:"50ch"},children:s.resumo}),s.epubUrl?x.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):x.jsx("p",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-subtle)"},children:"este livro ainda não tem um arquivo de leitura disponível."})]})]}):x.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"1rem"},children:[x.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),x.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]})}function Zb(){const i=new URLSearchParams(ig()).get("q")||"",[s,c]=Y.useState(i),[f,d]=Y.useState(i),{data:h,isLoading:y}=zt.biblioteca.buscar.useQuery({q:f},{enabled:f.length>0});function v(p){p.preventDefault(),d(s.trim()),window.history.replaceState(null,"",`/buscar?q=${encodeURIComponent(s.trim())}`)}return x.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[x.jsxs("header",{style:{display:"flex",alignItems:"center",gap:"1rem",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:[x.jsx("a",{href:"/",style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:"← voltar"}),x.jsx("form",{onSubmit:v,style:{flex:1},children:x.jsx("input",{autoFocus:!0,value:s,onChange:p=>c(p.target.value),placeholder:"buscar por título, autor ou série...",style:{width:"100%",padding:"0.5rem 0.9rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",background:"rgba(255,255,255,0.06)",color:"var(--clr-branco)",fontSize:"0.85rem"}})})]}),x.jsxs("div",{style:{maxWidth:960,margin:"0 auto",padding:"1.5rem 1.25rem 4rem"},children:[f.length===0&&x.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),y&&x.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),f.length>0&&!y&&h&&h.length===0&&x.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',f,'".']}),h&&h.length>0&&x.jsx(qc,{livros:h,titulo:`resultados pra "${f}"`})]})]})}function Vb(){const{nome:a}=Dc(),i=decodeURIComponent(a),{data:s,isLoading:c}=zt.biblioteca.getSerie.useQuery({nome:i});return x.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[x.jsx("header",{style:{display:"flex",alignItems:"center",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:x.jsx("a",{href:"/",style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:"← voltar"})}),x.jsxs("div",{style:{maxWidth:960,margin:"0 auto",padding:"1.5rem 1.25rem 4rem"},children:[x.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:i}),c&&x.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?x.jsx(qc,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!c&&x.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]})]})}const Jb=Y.lazy(()=>a0(()=>import("./Leitor-XUez31fH.js"),[]).then(a=>({default:a.Leitor})));function kb(){const[a]=Y.useState(()=>new x0);return x.jsx(zt.Provider,{client:Rb,queryClient:a,children:x.jsx(A0,{client:a,children:x.jsx(Y.Suspense,{fallback:null,children:x.jsxs(cg,{children:[x.jsx(Fn,{path:"/admin",component:Gb}),x.jsx(Fn,{path:"/leitor/:id",component:Jb}),x.jsx(Fn,{path:"/livro/:id",component:Kb}),x.jsx(Fn,{path:"/serie/:nome",component:Vb}),x.jsx(Fn,{path:"/buscar",component:Zb}),x.jsx(Fn,{path:"/",component:Qb})]})})})})}e0.createRoot(document.getElementById("root")).render(x.jsx(Y.StrictMode,{children:x.jsx(kb,{})}));export{ig as a,Fb as c,Kp as g,x as j,Y as r,zt as t,Dc as u};
