function Bp(a,i){for(var c=0;c<i.length;c++){const s=i[c];if(typeof s!="string"&&!Array.isArray(s)){for(const f in s)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(s,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>s[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"]'))s(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"&&s(h)}).observe(document,{childList:!0,subtree:!0});function c(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 s(f){if(f.ep)return;f.ep=!0;const d=c(f);fetch(f.href,d)}})();var wb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var $c={exports:{}},La={};/**
 * @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 Qh;function Gp(){if(Qh)return La;Qh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var v in f)v!=="key"&&(d[v]=f[v])}else d=f;return f=d.ref,{$$typeof:a,type:s,key:h,ref:f!==void 0?f:null,props:d}}return La.Fragment=i,La.jsx=c,La.jsxs=c,La}var Nh;function Lp(){return Nh||(Nh=1,$c.exports=Gp()),$c.exports}var Q=Lp(),Wc={exports:{}},ct={};/**
 * @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 Hh;function Xp(){if(Hh)return ct;Hh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),R=Symbol.iterator;function Y(b){return b===null||typeof b!="object"?null:(b=R&&b[R]||b["@@iterator"],typeof b=="function"?b:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,P={};function at(b,D,w){this.props=b,this.context=D,this.refs=P,this.updater=w||J}at.prototype.isReactComponent={},at.prototype.setState=function(b,D){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,D,"setState")},at.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function dt(){}dt.prototype=at.prototype;function Tt(b,D,w){this.props=b,this.context=D,this.refs=P,this.updater=w||J}var qt=Tt.prototype=new dt;qt.constructor=Tt,N(qt,at.prototype),qt.isPureReactComponent=!0;var F=Array.isArray;function X(){}var M={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function L(b,D,w){var B=w.ref;return{$$typeof:a,type:b,key:D,ref:B!==void 0?B:null,props:w}}function et(b,D){return L(b.type,D,b.props)}function I(b){return typeof b=="object"&&b!==null&&b.$$typeof===a}function tt(b){var D={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(w){return D[w]})}var ht=/\/+/g;function it(b,D){return typeof b=="object"&&b!==null&&b.key!=null?tt(""+b.key):D.toString(36)}function st(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(X,X):(b.status="pending",b.then(function(D){b.status==="pending"&&(b.status="fulfilled",b.value=D)},function(D){b.status==="pending"&&(b.status="rejected",b.reason=D)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function T(b,D,w,B,$){var rt=typeof b;(rt==="undefined"||rt==="boolean")&&(b=null);var St=!1;if(b===null)St=!0;else switch(rt){case"bigint":case"string":case"number":St=!0;break;case"object":switch(b.$$typeof){case a:case i:St=!0;break;case j:return St=b._init,T(St(b._payload),D,w,B,$)}}if(St)return $=$(b),St=B===""?"."+it(b,0):B,F($)?(w="",St!=null&&(w=St.replace(ht,"$&/")+"/"),T($,D,w,"",function(Fl){return Fl})):$!=null&&(I($)&&($=et($,w+($.key==null||b&&b.key===$.key?"":(""+$.key).replace(ht,"$&/")+"/")+St)),D.push($)),1;St=0;var ae=B===""?".":B+":";if(F(b))for(var Bt=0;Bt<b.length;Bt++)B=b[Bt],rt=ae+it(B,Bt),St+=T(B,D,w,rt,$);else if(Bt=Y(b),typeof Bt=="function")for(b=Bt.call(b),Bt=0;!(B=b.next()).done;)B=B.value,rt=ae+it(B,Bt++),St+=T(B,D,w,rt,$);else if(rt==="object"){if(typeof b.then=="function")return T(st(b),D,w,B,$);throw D=String(b),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return St}function H(b,D,w){if(b==null)return b;var B=[],$=0;return T(b,B,"","",function(rt){return D.call(w,rt,$++)}),B}function Z(b){if(b._status===-1){var D=b._result;D=D(),D.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=D)}if(b._status===1)return b._result.default;throw b._result}var ut=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=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(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},yt={map:H,forEach:function(b,D,w){H(b,function(){D.apply(this,arguments)},w)},count:function(b){var D=0;return H(b,function(){D++}),D},toArray:function(b){return H(b,function(D){return D})||[]},only:function(b){if(!I(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return ct.Activity=_,ct.Children=yt,ct.Component=at,ct.Fragment=c,ct.Profiler=f,ct.PureComponent=Tt,ct.StrictMode=s,ct.Suspense=m,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,ct.__COMPILER_RUNTIME={__proto__:null,c:function(b){return M.H.useMemoCache(b)}},ct.cache=function(b){return function(){return b.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(b,D,w){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var B=N({},b.props),$=b.key;if(D!=null)for(rt in D.key!==void 0&&($=""+D.key),D)!K.call(D,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&D.ref===void 0||(B[rt]=D[rt]);var rt=arguments.length-2;if(rt===1)B.children=w;else if(1<rt){for(var St=Array(rt),ae=0;ae<rt;ae++)St[ae]=arguments[ae+2];B.children=St}return L(b.type,$,B)},ct.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},ct.createElement=function(b,D,w){var B,$={},rt=null;if(D!=null)for(B in D.key!==void 0&&(rt=""+D.key),D)K.call(D,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&($[B]=D[B]);var St=arguments.length-2;if(St===1)$.children=w;else if(1<St){for(var ae=Array(St),Bt=0;Bt<St;Bt++)ae[Bt]=arguments[Bt+2];$.children=ae}if(b&&b.defaultProps)for(B in St=b.defaultProps,St)$[B]===void 0&&($[B]=St[B]);return L(b,rt,$)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(b){return{$$typeof:v,render:b}},ct.isValidElement=I,ct.lazy=function(b){return{$$typeof:j,_payload:{_status:-1,_result:b},_init:Z}},ct.memo=function(b,D){return{$$typeof:p,type:b,compare:D===void 0?null:D}},ct.startTransition=function(b){var D=M.T,w={};M.T=w;try{var B=b(),$=M.S;$!==null&&$(w,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(X,ut)}catch(rt){ut(rt)}finally{D!==null&&w.types!==null&&(D.types=w.types),M.T=D}},ct.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},ct.use=function(b){return M.H.use(b)},ct.useActionState=function(b,D,w){return M.H.useActionState(b,D,w)},ct.useCallback=function(b,D){return M.H.useCallback(b,D)},ct.useContext=function(b){return M.H.useContext(b)},ct.useDebugValue=function(){},ct.useDeferredValue=function(b,D){return M.H.useDeferredValue(b,D)},ct.useEffect=function(b,D){return M.H.useEffect(b,D)},ct.useEffectEvent=function(b){return M.H.useEffectEvent(b)},ct.useId=function(){return M.H.useId()},ct.useImperativeHandle=function(b,D,w){return M.H.useImperativeHandle(b,D,w)},ct.useInsertionEffect=function(b,D){return M.H.useInsertionEffect(b,D)},ct.useLayoutEffect=function(b,D){return M.H.useLayoutEffect(b,D)},ct.useMemo=function(b,D){return M.H.useMemo(b,D)},ct.useOptimistic=function(b,D){return M.H.useOptimistic(b,D)},ct.useReducer=function(b,D,w){return M.H.useReducer(b,D,w)},ct.useRef=function(b){return M.H.useRef(b)},ct.useState=function(b){return M.H.useState(b)},ct.useSyncExternalStore=function(b,D,w){return M.H.useSyncExternalStore(b,D,w)},ct.useTransition=function(){return M.H.useTransition()},ct.version="19.2.1",ct}var wh;function Ai(){return wh||(wh=1,Wc.exports=Xp()),Wc.exports}var G=Ai();const Kp=Yp(G),gy=Bp({__proto__:null,default:Kp},[G]);var Ic={exports:{}},Xa={},ts={exports:{}},es={};/**
 * @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 Bh;function Zp(){return Bh||(Bh=1,(function(a){function i(T,H){var Z=T.length;T.push(H);t:for(;0<Z;){var ut=Z-1>>>1,yt=T[ut];if(0<f(yt,H))T[ut]=H,T[Z]=yt,Z=ut;else break t}}function c(T){return T.length===0?null:T[0]}function s(T){if(T.length===0)return null;var H=T[0],Z=T.pop();if(Z!==H){T[0]=Z;t:for(var ut=0,yt=T.length,b=yt>>>1;ut<b;){var D=2*(ut+1)-1,w=T[D],B=D+1,$=T[B];if(0>f(w,Z))B<yt&&0>f($,w)?(T[ut]=$,T[B]=Z,ut=B):(T[ut]=w,T[D]=Z,ut=D);else if(B<yt&&0>f($,Z))T[ut]=$,T[B]=Z,ut=B;else break t}}return H}function f(T,H){var Z=T.sortIndex-H.sortIndex;return Z!==0?Z: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,v=h.now();a.unstable_now=function(){return h.now()-v}}var m=[],p=[],j=1,_=null,R=3,Y=!1,J=!1,N=!1,P=!1,at=typeof setTimeout=="function"?setTimeout:null,dt=typeof clearTimeout=="function"?clearTimeout:null,Tt=typeof setImmediate<"u"?setImmediate:null;function qt(T){for(var H=c(p);H!==null;){if(H.callback===null)s(p);else if(H.startTime<=T)s(p),H.sortIndex=H.expirationTime,i(m,H);else break;H=c(p)}}function F(T){if(N=!1,qt(T),!J)if(c(m)!==null)J=!0,X||(X=!0,tt());else{var H=c(p);H!==null&&st(F,H.startTime-T)}}var X=!1,M=-1,K=5,L=-1;function et(){return P?!0:!(a.unstable_now()-L<K)}function I(){if(P=!1,X){var T=a.unstable_now();L=T;var H=!0;try{t:{J=!1,N&&(N=!1,dt(M),M=-1),Y=!0;var Z=R;try{e:{for(qt(T),_=c(m);_!==null&&!(_.expirationTime>T&&et());){var ut=_.callback;if(typeof ut=="function"){_.callback=null,R=_.priorityLevel;var yt=ut(_.expirationTime<=T);if(T=a.unstable_now(),typeof yt=="function"){_.callback=yt,qt(T),H=!0;break e}_===c(m)&&s(m),qt(T)}else s(m);_=c(m)}if(_!==null)H=!0;else{var b=c(p);b!==null&&st(F,b.startTime-T),H=!1}}break t}finally{_=null,R=Z,Y=!1}H=void 0}}finally{H?tt():X=!1}}}var tt;if(typeof Tt=="function")tt=function(){Tt(I)};else if(typeof MessageChannel<"u"){var ht=new MessageChannel,it=ht.port2;ht.port1.onmessage=I,tt=function(){it.postMessage(null)}}else tt=function(){at(I,0)};function st(T,H){M=at(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"):K=0<T?Math.floor(1e3/T):5},a.unstable_getCurrentPriorityLevel=function(){return R},a.unstable_next=function(T){switch(R){case 1:case 2:case 3:var H=3;break;default:H=R}var Z=R;R=H;try{return T()}finally{R=Z}},a.unstable_requestPaint=function(){P=!0},a.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var Z=R;R=T;try{return H()}finally{R=Z}},a.unstable_scheduleCallback=function(T,H,Z){var ut=a.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ut+Z:ut):Z=ut,T){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=Z+yt,T={id:j++,callback:H,priorityLevel:T,startTime:Z,expirationTime:yt,sortIndex:-1},Z>ut?(T.sortIndex=Z,i(p,T),c(m)===null&&T===c(p)&&(N?(dt(M),M=-1):N=!0,st(F,Z-ut))):(T.sortIndex=yt,i(m,T),J||Y||(J=!0,X||(X=!0,tt()))),T},a.unstable_shouldYield=et,a.unstable_wrapCallback=function(T){var H=R;return function(){var Z=R;R=H;try{return T.apply(this,arguments)}finally{R=Z}}}})(es)),es}var Yh;function Vp(){return Yh||(Yh=1,ts.exports=Zp()),ts.exports}var ns={exports:{}},ne={};/**
 * @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 Gh;function Jp(){if(Gh)return ne;Gh=1;var a=Ai();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)p+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(m,p,j){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:_==null?null:""+_,children:m,containerInfo:p,implementation:j}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ne.createPortal=function(m,p){var j=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(m,p,null,j)},ne.flushSync=function(m){var p=h.T,j=s.p;try{if(h.T=null,s.p=2,m)return m()}finally{h.T=p,s.p=j,s.d.f()}},ne.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},ne.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},ne.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var j=p.as,_=v(j,p.crossOrigin),R=typeof p.integrity=="string"?p.integrity:void 0,Y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;j==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:R,fetchPriority:Y}):j==="script"&&s.d.X(m,{crossOrigin:_,integrity:R,fetchPriority:Y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ne.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var j=v(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:j,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},ne.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var j=p.as,_=v(j,p.crossOrigin);s.d.L(m,j,{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})}},ne.preloadModule=function(m,p){if(typeof m=="string")if(p){var j=v(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:j,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},ne.requestFormReset=function(m){s.d.r(m)},ne.unstable_batchedUpdates=function(m,p){return m(p)},ne.useFormState=function(m,p,j){return h.H.useFormState(m,p,j)},ne.useFormStatus=function(){return h.H.useHostTransitionStatus()},ne.version="19.2.1",ne}var Lh;function kp(){if(Lh)return ns.exports;Lh=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(),ns.exports=Jp(),ns.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 Xh;function Fp(){if(Xh)return Xa;Xh=1;var a=Vp(),i=Ai(),c=kp();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n: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 v(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 m(t){if(d(t)!==t)throw Error(s(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(s(188));return e!==t?null:t}for(var n=t,l=e;;){var u=n.return;if(u===null)break;var r=u.alternate;if(r===null){if(l=u.return,l!==null){n=l;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===n)return m(u),t;if(r===l)return m(u),e;r=r.sibling}throw Error(s(188))}if(n.return!==l.return)n=u,l=r;else{for(var o=!1,y=u.child;y;){if(y===n){o=!0,n=u,l=r;break}if(y===l){o=!0,l=u,n=r;break}y=y.sibling}if(!o){for(y=r.child;y;){if(y===n){o=!0,n=r,l=u;break}if(y===l){o=!0,l=r,n=u;break}y=y.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?t:e}function j(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=j(t),e!==null)return e;t=t.sibling}return null}var _=Object.assign,R=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),at=Symbol.for("react.profiler"),dt=Symbol.for("react.consumer"),Tt=Symbol.for("react.context"),qt=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var ht=Symbol.for("react.client.reference");function it(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ht?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case at:return"Profiler";case P:return"StrictMode";case F:return"Suspense";case X:return"SuspenseList";case L:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case J:return"Portal";case Tt:return t.displayName||"Context";case dt: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 M:return e=t.displayName||null,e!==null?e:it(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return it(t(e))}catch{}}return null}var st=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ut=[],yt=-1;function b(t){return{current:t}}function D(t){0>yt||(t.current=ut[yt],ut[yt]=null,yt--)}function w(t,e){yt++,ut[yt]=t.current,t.current=e}var B=b(null),$=b(null),rt=b(null),St=b(null);function ae(t,e){switch(w(rt,e),w($,t),w(B,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ah(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ah(e),t=uh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(B),w(B,t)}function Bt(){D(B),D($),D(rt)}function Fl(t){t.memoizedState!==null&&w(St,t);var e=B.current,n=uh(e,t.type);e!==n&&(w($,t),w(B,n))}function $a(t){$.current===t&&(D(B),D($)),St.current===t&&(D(St),wa._currentValue=Z)}var Ui,Rs;function Bn(t){if(Ui===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ui=e&&e[1]||"",Rs=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ui+t+Rs}var qi=!1;function Qi(t,e){if(!t||qi)return"";qi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={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(z){var A=z}Reflect.construct(t,[],q)}else{try{q.call()}catch(z){A=z}t.call(q.prototype)}}else{try{throw Error()}catch(z){A=z}(q=t())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(z){if(z&&A&&typeof z.stack=="string")return[z.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),o=r[0],y=r[1];if(o&&y){var g=o.split(`
`),E=y.split(`
`);for(u=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;u<E.length&&!E[u].includes("DetermineComponentFrameRoot");)u++;if(l===g.length||u===E.length)for(l=g.length-1,u=E.length-1;1<=l&&0<=u&&g[l]!==E[u];)u--;for(;1<=l&&0<=u;l--,u--)if(g[l]!==E[u]){if(l!==1||u!==1)do if(l--,u--,0>u||g[l]!==E[u]){var C=`
`+g[l].replace(" at new "," at ");return t.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",t.displayName)),C}while(1<=l&&0<=u);break}}}finally{qi=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Bn(n):""}function mv(t,e){switch(t.tag){case 26:case 27:case 5:return Bn(t.type);case 16:return Bn("Lazy");case 13:return t.child!==e&&e!==null?Bn("Suspense Fallback"):Bn("Suspense");case 19:return Bn("SuspenseList");case 0:case 15:return Qi(t.type,!1);case 11:return Qi(t.type.render,!1);case 1:return Qi(t.type,!0);case 31:return Bn("Activity");default:return""}}function Us(t){try{var e="",n=null;do e+=mv(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var Ni=Object.prototype.hasOwnProperty,Hi=a.unstable_scheduleCallback,wi=a.unstable_cancelCallback,pv=a.unstable_shouldYield,gv=a.unstable_requestPaint,ye=a.unstable_now,bv=a.unstable_getCurrentPriorityLevel,qs=a.unstable_ImmediatePriority,Qs=a.unstable_UserBlockingPriority,Wa=a.unstable_NormalPriority,Sv=a.unstable_LowPriority,Ns=a.unstable_IdlePriority,Ov=a.log,_v=a.unstable_setDisableYieldValue,Pl=null,ve=null;function fn(t){if(typeof Ov=="function"&&_v(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(Pl,t)}catch{}}var me=Math.clz32?Math.clz32:Tv,xv=Math.log,Ev=Math.LN2;function Tv(t){return t>>>=0,t===0?32:31-(xv(t)/Ev|0)|0}var Ia=256,tu=262144,eu=4194304;function Yn(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 nu(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var u=0,r=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var y=l&134217727;return y!==0?(l=y&~r,l!==0?u=Yn(l):(o&=y,o!==0?u=Yn(o):n||(n=y&~t,n!==0&&(u=Yn(n))))):(y=l&~r,y!==0?u=Yn(y):o!==0?u=Yn(o):n||(n=l&~t,n!==0&&(u=Yn(n)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:u}function $l(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Av(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 Hs(){var t=eu;return eu<<=1,(eu&62914560)===0&&(eu=4194304),t}function Bi(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Wl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function jv(t,e,n,l,u,r){var o=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,g=t.expirationTimes,E=t.hiddenUpdates;for(n=o&~n;0<n;){var C=31-me(n),q=1<<C;y[C]=0,g[C]=-1;var A=E[C];if(A!==null)for(E[C]=null,C=0;C<A.length;C++){var z=A[C];z!==null&&(z.lane&=-536870913)}n&=~q}l!==0&&ws(t,l,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(o&~e))}function ws(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-me(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Bs(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-me(n),u=1<<l;u&e|t[l]&e&&(t[l]|=e),n&=~u}}function Ys(t,e){var n=e&-e;return n=(n&42)!==0?1:Yi(n),(n&(t.suspendedLanes|e))!==0?0:n}function Yi(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 Gi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Gs(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:zh(t.type))}function Ls(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var dn=Math.random().toString(36).slice(2),$t="__reactFiber$"+dn,re="__reactProps$"+dn,ol="__reactContainer$"+dn,Li="__reactEvents$"+dn,zv="__reactListeners$"+dn,Mv="__reactHandles$"+dn,Xs="__reactResources$"+dn,Il="__reactMarker$"+dn;function Xi(t){delete t[$t],delete t[re],delete t[Li],delete t[zv],delete t[Mv]}function fl(t){var e=t[$t];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ol]||n[$t]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=dh(t);t!==null;){if(n=t[$t])return n;t=dh(t)}return e}t=n,n=t.parentNode}return null}function dl(t){if(t=t[$t]||t[ol]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ta(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function hl(t){var e=t[Xs];return e||(e=t[Xs]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Il]=!0}var Ks=new Set,Zs={};function Gn(t,e){yl(t,e),yl(t+"Capture",e)}function yl(t,e){for(Zs[t]=e,t=0;t<e.length;t++)Ks.add(e[t])}var Cv=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]*$"),Vs={},Js={};function Dv(t){return Ni.call(Js,t)?!0:Ni.call(Vs,t)?!1:Cv.test(t)?Js[t]=!0:(Vs[t]=!0,!1)}function lu(t,e,n){if(Dv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function au(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Ve(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ks(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Rv(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,r=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(o){n=""+o,r.call(this,o)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ki(t){if(!t._valueTracker){var e=ks(t)?"checked":"value";t._valueTracker=Rv(t,e,""+t[e])}}function Fs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=ks(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function uu(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 Uv=/[\n"\\]/g;function Ae(t){return t.replace(Uv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Zi(t,e,n,l,u,r,o,y){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=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?Vi(t,o,Te(e)):n!=null?Vi(t,o,Te(n)):l!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Te(y):t.removeAttribute("name")}function Ps(t,e,n,l,u,r,o,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Ki(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=y?t.checked:!!l,t.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Ki(t)}function Vi(t,e,n){e==="number"&&uu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function vl(t,e,n,l){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Te(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function $s(t,e,n){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Te(n):""}function Ws(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(s(92));if(st(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Ki(t)}function ml(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var qv=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 Is(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||qv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function to(t,e,n){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&n[u]!==l&&Is(t,u,l)}else for(var r in e)e.hasOwnProperty(r)&&Is(t,r,e[r])}function Ji(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 Qv=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"]]),Nv=/^[\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 iu(t){return Nv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Je(){}var ki=null;function Fi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var pl=null,gl=null;function eo(t){var e=dl(t);if(e&&(t=e.stateNode)){var n=t[re]||null;t:switch(t=e.stateNode,e.type){case"input":if(Zi(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ae(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var u=l[re]||null;if(!u)throw Error(s(90));Zi(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Fs(l)}break t;case"textarea":$s(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&vl(t,!!n.multiple,e,!1)}}}var Pi=!1;function no(t,e,n){if(Pi)return t(e,n);Pi=!0;try{var l=t(e);return l}finally{if(Pi=!1,(pl!==null||gl!==null)&&(Ju(),pl&&(e=pl,t=gl,gl=pl=null,eo(e),t)))for(e=0;e<t.length;e++)eo(t[e])}}function ea(t,e){var n=t.stateNode;if(n===null)return null;var l=n[re]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(s(231,e,typeof n));return n}var ke=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$i=!1;if(ke)try{var na={};Object.defineProperty(na,"passive",{get:function(){$i=!0}}),window.addEventListener("test",na,na),window.removeEventListener("test",na,na)}catch{$i=!1}var hn=null,Wi=null,ru=null;function lo(){if(ru)return ru;var t,e=Wi,n=e.length,l,u="value"in hn?hn.value:hn.textContent,r=u.length;for(t=0;t<n&&e[t]===u[t];t++);var o=n-t;for(l=1;l<=o&&e[n-l]===u[r-l];l++);return ru=u.slice(t,1<l?1-l:void 0)}function cu(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 su(){return!0}function ao(){return!1}function ce(t){function e(n,l,u,r,o){this._reactName=n,this._targetInst=u,this.type=l,this.nativeEvent=r,this.target=o,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?su:ao,this.isPropagationStopped=ao,this}return _(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=su)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=su)},persist:function(){},isPersistent:su}),e}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ou=ce(Ln),la=_({},Ln,{view:0,detail:0}),Hv=ce(la),Ii,tr,aa,fu=_({},la,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,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!==aa&&(aa&&t.type==="mousemove"?(Ii=t.screenX-aa.screenX,tr=t.screenY-aa.screenY):tr=Ii=0,aa=t),Ii)},movementY:function(t){return"movementY"in t?t.movementY:tr}}),uo=ce(fu),wv=_({},fu,{dataTransfer:0}),Bv=ce(wv),Yv=_({},la,{relatedTarget:0}),er=ce(Yv),Gv=_({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0}),Lv=ce(Gv),Xv=_({},Ln,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Kv=ce(Xv),Zv=_({},Ln,{data:0}),io=ce(Zv),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jv={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"},kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=kv[t])?!!e[t]:!1}function nr(){return Fv}var Pv=_({},la,{key:function(t){if(t.key){var e=Vv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=cu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Jv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(t){return t.type==="keypress"?cu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?cu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),$v=ce(Pv),Wv=_({},fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ro=ce(Wv),Iv=_({},la,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr}),tm=ce(Iv),em=_({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0}),nm=ce(em),lm=_({},fu,{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}),am=ce(lm),um=_({},Ln,{newState:0,oldState:0}),im=ce(um),rm=[9,13,27,32],lr=ke&&"CompositionEvent"in window,ua=null;ke&&"documentMode"in document&&(ua=document.documentMode);var cm=ke&&"TextEvent"in window&&!ua,co=ke&&(!lr||ua&&8<ua&&11>=ua),so=" ",oo=!1;function fo(t,e){switch(t){case"keyup":return rm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ho(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var bl=!1;function sm(t,e){switch(t){case"compositionend":return ho(e);case"keypress":return e.which!==32?null:(oo=!0,so);case"textInput":return t=e.data,t===so&&oo?null:t;default:return null}}function om(t,e){if(bl)return t==="compositionend"||!lr&&fo(t,e)?(t=lo(),ru=Wi=hn=null,bl=!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 co&&e.locale!=="ko"?null:e.data;default:return null}}var fm={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 yo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!fm[t.type]:e==="textarea"}function vo(t,e,n,l){pl?gl?gl.push(l):gl=[l]:pl=l,e=ti(e,"onChange"),0<e.length&&(n=new ou("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ia=null,ra=null;function dm(t){Wd(t,0)}function du(t){var e=ta(t);if(Fs(e))return t}function mo(t,e){if(t==="change")return e}var po=!1;if(ke){var ar;if(ke){var ur="oninput"in document;if(!ur){var go=document.createElement("div");go.setAttribute("oninput","return;"),ur=typeof go.oninput=="function"}ar=ur}else ar=!1;po=ar&&(!document.documentMode||9<document.documentMode)}function bo(){ia&&(ia.detachEvent("onpropertychange",So),ra=ia=null)}function So(t){if(t.propertyName==="value"&&du(ra)){var e=[];vo(e,ra,t,Fi(t)),no(dm,e)}}function hm(t,e,n){t==="focusin"?(bo(),ia=e,ra=n,ia.attachEvent("onpropertychange",So)):t==="focusout"&&bo()}function ym(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return du(ra)}function vm(t,e){if(t==="click")return du(e)}function mm(t,e){if(t==="input"||t==="change")return du(e)}function pm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:pm;function ca(t,e){if(pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var u=n[l];if(!Ni.call(e,u)||!pe(t[u],e[u]))return!1}return!0}function Oo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _o(t,e){var n=Oo(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Oo(n)}}function xo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?xo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Eo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=uu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=uu(t.document)}return e}function ir(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 gm=ke&&"documentMode"in document&&11>=document.documentMode,Sl=null,rr=null,sa=null,cr=!1;function To(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cr||Sl==null||Sl!==uu(l)||(l=Sl,"selectionStart"in l&&ir(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),sa&&ca(sa,l)||(sa=l,l=ti(rr,"onSelect"),0<l.length&&(e=new ou("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Sl)))}function Xn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ol={animationend:Xn("Animation","AnimationEnd"),animationiteration:Xn("Animation","AnimationIteration"),animationstart:Xn("Animation","AnimationStart"),transitionrun:Xn("Transition","TransitionRun"),transitionstart:Xn("Transition","TransitionStart"),transitioncancel:Xn("Transition","TransitionCancel"),transitionend:Xn("Transition","TransitionEnd")},sr={},Ao={};ke&&(Ao=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Kn(t){if(sr[t])return sr[t];if(!Ol[t])return t;var e=Ol[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ao)return sr[t]=e[n];return t}var jo=Kn("animationend"),zo=Kn("animationiteration"),Mo=Kn("animationstart"),bm=Kn("transitionrun"),Sm=Kn("transitionstart"),Om=Kn("transitioncancel"),Co=Kn("transitionend"),Do=new Map,or="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(" ");or.push("scrollEnd");function Qe(t,e){Do.set(t,e),Gn(e,[t])}var hu=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)},je=[],_l=0,fr=0;function yu(){for(var t=_l,e=fr=_l=0;e<t;){var n=je[e];je[e++]=null;var l=je[e];je[e++]=null;var u=je[e];je[e++]=null;var r=je[e];if(je[e++]=null,l!==null&&u!==null){var o=l.pending;o===null?u.next=u:(u.next=o.next,o.next=u),l.pending=u}r!==0&&Ro(n,u,r)}}function vu(t,e,n,l){je[_l++]=t,je[_l++]=e,je[_l++]=n,je[_l++]=l,fr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function dr(t,e,n,l){return vu(t,e,n,l),mu(t)}function Zn(t,e){return vu(t,null,null,e),mu(t)}function Ro(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var u=!1,r=t.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),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-me(n),t=r.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=n|536870912),r):null}function mu(t){if(50<Da)throw Da=0,Oc=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var xl={};function _m(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ge(t,e,n,l){return new _m(t,e,n,l)}function hr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Fe(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Uo(t,e){t.flags&=65011714;var n=t.alternate;return n===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=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function pu(t,e,n,l,u,r){var o=0;if(l=t,typeof t=="function")hr(t)&&(o=1);else if(typeof t=="string")o=jp(t,n,B.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case L:return t=ge(31,n,e,u),t.elementType=L,t.lanes=r,t;case N:return Vn(n.children,u,r,e);case P:o=8,u|=24;break;case at:return t=ge(12,n,e,u|2),t.elementType=at,t.lanes=r,t;case F:return t=ge(13,n,e,u),t.elementType=F,t.lanes=r,t;case X:return t=ge(19,n,e,u),t.elementType=X,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Tt:o=10;break t;case dt:o=9;break t;case qt:o=11;break t;case M:o=14;break t;case K:o=16,l=null;break t}o=29,n=Error(s(130,t===null?"null":typeof t,"")),l=null}return e=ge(o,n,e,u),e.elementType=t,e.type=l,e.lanes=r,e}function Vn(t,e,n,l){return t=ge(7,t,l,e),t.lanes=n,t}function yr(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function qo(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function vr(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Qo=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var n=Qo.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Us(e)},Qo.set(t,e),e)}return{value:t,source:e,stack:Us(e)}}var El=[],Tl=0,gu=null,oa=0,Me=[],Ce=0,yn=null,Ye=1,Ge="";function Pe(t,e){El[Tl++]=oa,El[Tl++]=gu,gu=t,oa=e}function No(t,e,n){Me[Ce++]=Ye,Me[Ce++]=Ge,Me[Ce++]=yn,yn=t;var l=Ye;t=Ge;var u=32-me(l)-1;l&=~(1<<u),n+=1;var r=32-me(e)+u;if(30<r){var o=u-u%5;r=(l&(1<<o)-1).toString(32),l>>=o,u-=o,Ye=1<<32-me(e)+u|n<<u|l,Ge=r+t}else Ye=1<<r|n<<u|l,Ge=t}function mr(t){t.return!==null&&(Pe(t,1),No(t,1,0))}function pr(t){for(;t===gu;)gu=El[--Tl],El[Tl]=null,oa=El[--Tl],El[Tl]=null;for(;t===yn;)yn=Me[--Ce],Me[Ce]=null,Ge=Me[--Ce],Me[Ce]=null,Ye=Me[--Ce],Me[Ce]=null}function Ho(t,e){Me[Ce++]=Ye,Me[Ce++]=Ge,Me[Ce++]=yn,Ye=e.id,Ge=e.overflow,yn=t}var Wt=null,Rt=null,bt=!1,vn=null,De=!1,gr=Error(s(519));function mn(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fa(ze(e,t)),gr}function wo(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[$t]=t,e[re]=l,n){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(n=0;n<Ua.length;n++)mt(Ua[n],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),Ps(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),Ws(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||nh(e.textContent,n)?(l.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),l.onScroll!=null&&mt("scroll",e),l.onScrollEnd!=null&&mt("scrollend",e),l.onClick!=null&&(e.onclick=Je),e=!0):e=!1,e||mn(t,!0)}function Bo(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 Al(t){if(t!==Wt)return!1;if(!bt)return Bo(t),bt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Nc(t.type,t.memoizedProps)),n=!n),n&&Rt&&mn(t),Bo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Rt=fh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Rt=fh(t)}else e===27?(e=Rt,Cn(t.type)?(t=Gc,Gc=null,Rt=t):Rt=e):Rt=Wt?Ue(t.stateNode.nextSibling):null;return!0}function Jn(){Rt=Wt=null,bt=!1}function br(){var t=vn;return t!==null&&(de===null?de=t:de.push.apply(de,t),vn=null),t}function fa(t){vn===null?vn=[t]:vn.push(t)}var Sr=b(null),kn=null,$e=null;function pn(t,e,n){w(Sr,e._currentValue),e._currentValue=n}function We(t){t._currentValue=Sr.current,D(Sr)}function Or(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function _r(t,e,n,l){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 y=r;r=u;for(var g=0;g<e.length;g++)if(y.context===e[g]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),Or(r.return,n,t),l||(o=null);break t}r=y.next}}else if(u.tag===18){if(o=u.return,o===null)throw Error(s(341));o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),Or(o,n,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 jl(t,e,n,l){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(s(387));if(o=o.memoizedProps,o!==null){var y=u.type;pe(u.pendingProps.value,o.value)||(t!==null?t.push(y):t=[y])}}else if(u===St.current){if(o=u.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(wa):t=[wa])}u=u.return}t!==null&&_r(e,t,n,l),e.flags|=262144}function bu(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Fn(t){kn=t,$e=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Yo(kn,t)}function Su(t,e){return kn===null&&Fn(t),Yo(t,e)}function Yo(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},$e===null){if(t===null)throw Error(s(308));$e=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else $e=$e.next=e;return n}var xm=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Em=a.unstable_scheduleCallback,Tm=a.unstable_NormalPriority,Xt={$$typeof:Tt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xr(){return{controller:new xm,data:new Map,refCount:0}}function da(t){t.refCount--,t.refCount===0&&Em(Tm,function(){t.controller.abort()})}var ha=null,Er=0,zl=0,Ml=null;function Am(t,e){if(ha===null){var n=ha=[];Er=0,zl=jc(),Ml={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Er++,e.then(Go,Go),e}function Go(){if(--Er===0&&ha!==null){Ml!==null&&(Ml.status="fulfilled");var t=ha;ha=null,zl=0,Ml=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function jm(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),l}var Lo=T.S;T.S=function(t,e){Ad=ye(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Am(t,e),Lo!==null&&Lo(t,e)};var Pn=b(null);function Tr(){var t=Pn.current;return t!==null?t:Dt.pooledCache}function Ou(t,e){e===null?w(Pn,Pn.current):w(Pn,e.pool)}function Xo(){var t=Tr();return t===null?null:{parent:Xt._currentValue,pool:t}}var Cl=Error(s(460)),Ar=Error(s(474)),_u=Error(s(542)),xu={then:function(){}};function Ko(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Zo(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Je,Je),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Jo(t),t;default:if(typeof e.status=="string")e.then(Je,Je);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Jo(t),t}throw Wn=e,Cl}}function $n(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Wn=n,Cl):n}}var Wn=null;function Vo(){if(Wn===null)throw Error(s(459));var t=Wn;return Wn=null,t}function Jo(t){if(t===Cl||t===_u)throw Error(s(483))}var Dl=null,ya=0;function Eu(t){var e=ya;return ya+=1,Dl===null&&(Dl=[]),Zo(Dl,t,e)}function va(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Tu(t,e){throw e.$$typeof===R?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ko(t){function e(O,S){if(t){var x=O.deletions;x===null?(O.deletions=[S],O.flags|=16):x.push(S)}}function n(O,S){if(!t)return null;for(;S!==null;)e(O,S),S=S.sibling;return null}function l(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=Fe(O,S),O.index=0,O.sibling=null,O}function r(O,S,x){return O.index=x,t?(x=O.alternate,x!==null?(x=x.index,x<S?(O.flags|=67108866,S):x):(O.flags|=67108866,S)):(O.flags|=1048576,S)}function o(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function y(O,S,x,U){return S===null||S.tag!==6?(S=yr(x,O.mode,U),S.return=O,S):(S=u(S,x),S.return=O,S)}function g(O,S,x,U){var nt=x.type;return nt===N?C(O,S,x.props.children,U,x.key):S!==null&&(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===K&&$n(nt)===S.type)?(S=u(S,x.props),va(S,x),S.return=O,S):(S=pu(x.type,x.key,x.props,null,O.mode,U),va(S,x),S.return=O,S)}function E(O,S,x,U){return S===null||S.tag!==4||S.stateNode.containerInfo!==x.containerInfo||S.stateNode.implementation!==x.implementation?(S=vr(x,O.mode,U),S.return=O,S):(S=u(S,x.children||[]),S.return=O,S)}function C(O,S,x,U,nt){return S===null||S.tag!==7?(S=Vn(x,O.mode,U,nt),S.return=O,S):(S=u(S,x),S.return=O,S)}function q(O,S,x){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=yr(""+S,O.mode,x),S.return=O,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Y:return x=pu(S.type,S.key,S.props,null,O.mode,x),va(x,S),x.return=O,x;case J:return S=vr(S,O.mode,x),S.return=O,S;case K:return S=$n(S),q(O,S,x)}if(st(S)||tt(S))return S=Vn(S,O.mode,x,null),S.return=O,S;if(typeof S.then=="function")return q(O,Eu(S),x);if(S.$$typeof===Tt)return q(O,Su(O,S),x);Tu(O,S)}return null}function A(O,S,x,U){var nt=S!==null?S.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return nt!==null?null:y(O,S,""+x,U);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:return x.key===nt?g(O,S,x,U):null;case J:return x.key===nt?E(O,S,x,U):null;case K:return x=$n(x),A(O,S,x,U)}if(st(x)||tt(x))return nt!==null?null:C(O,S,x,U,null);if(typeof x.then=="function")return A(O,S,Eu(x),U);if(x.$$typeof===Tt)return A(O,S,Su(O,x),U);Tu(O,x)}return null}function z(O,S,x,U,nt){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return O=O.get(x)||null,y(S,O,""+U,nt);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Y:return O=O.get(U.key===null?x:U.key)||null,g(S,O,U,nt);case J:return O=O.get(U.key===null?x:U.key)||null,E(S,O,U,nt);case K:return U=$n(U),z(O,S,x,U,nt)}if(st(U)||tt(U))return O=O.get(x)||null,C(S,O,U,nt,null);if(typeof U.then=="function")return z(O,S,x,Eu(U),nt);if(U.$$typeof===Tt)return z(O,S,x,Su(S,U),nt);Tu(S,U)}return null}function k(O,S,x,U){for(var nt=null,Ot=null,W=S,ft=S=0,gt=null;W!==null&&ft<x.length;ft++){W.index>ft?(gt=W,W=null):gt=W.sibling;var _t=A(O,W,x[ft],U);if(_t===null){W===null&&(W=gt);break}t&&W&&_t.alternate===null&&e(O,W),S=r(_t,S,ft),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t,W=gt}if(ft===x.length)return n(O,W),bt&&Pe(O,ft),nt;if(W===null){for(;ft<x.length;ft++)W=q(O,x[ft],U),W!==null&&(S=r(W,S,ft),Ot===null?nt=W:Ot.sibling=W,Ot=W);return bt&&Pe(O,ft),nt}for(W=l(W);ft<x.length;ft++)gt=z(W,O,ft,x[ft],U),gt!==null&&(t&&gt.alternate!==null&&W.delete(gt.key===null?ft:gt.key),S=r(gt,S,ft),Ot===null?nt=gt:Ot.sibling=gt,Ot=gt);return t&&W.forEach(function(Qn){return e(O,Qn)}),bt&&Pe(O,ft),nt}function lt(O,S,x,U){if(x==null)throw Error(s(151));for(var nt=null,Ot=null,W=S,ft=S=0,gt=null,_t=x.next();W!==null&&!_t.done;ft++,_t=x.next()){W.index>ft?(gt=W,W=null):gt=W.sibling;var Qn=A(O,W,_t.value,U);if(Qn===null){W===null&&(W=gt);break}t&&W&&Qn.alternate===null&&e(O,W),S=r(Qn,S,ft),Ot===null?nt=Qn:Ot.sibling=Qn,Ot=Qn,W=gt}if(_t.done)return n(O,W),bt&&Pe(O,ft),nt;if(W===null){for(;!_t.done;ft++,_t=x.next())_t=q(O,_t.value,U),_t!==null&&(S=r(_t,S,ft),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t);return bt&&Pe(O,ft),nt}for(W=l(W);!_t.done;ft++,_t=x.next())_t=z(W,O,ft,_t.value,U),_t!==null&&(t&&_t.alternate!==null&&W.delete(_t.key===null?ft:_t.key),S=r(_t,S,ft),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t);return t&&W.forEach(function(wp){return e(O,wp)}),bt&&Pe(O,ft),nt}function Ct(O,S,x,U){if(typeof x=="object"&&x!==null&&x.type===N&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:t:{for(var nt=x.key;S!==null;){if(S.key===nt){if(nt=x.type,nt===N){if(S.tag===7){n(O,S.sibling),U=u(S,x.props.children),U.return=O,O=U;break t}}else if(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===K&&$n(nt)===S.type){n(O,S.sibling),U=u(S,x.props),va(U,x),U.return=O,O=U;break t}n(O,S);break}else e(O,S);S=S.sibling}x.type===N?(U=Vn(x.props.children,O.mode,U,x.key),U.return=O,O=U):(U=pu(x.type,x.key,x.props,null,O.mode,U),va(U,x),U.return=O,O=U)}return o(O);case J:t:{for(nt=x.key;S!==null;){if(S.key===nt)if(S.tag===4&&S.stateNode.containerInfo===x.containerInfo&&S.stateNode.implementation===x.implementation){n(O,S.sibling),U=u(S,x.children||[]),U.return=O,O=U;break t}else{n(O,S);break}else e(O,S);S=S.sibling}U=vr(x,O.mode,U),U.return=O,O=U}return o(O);case K:return x=$n(x),Ct(O,S,x,U)}if(st(x))return k(O,S,x,U);if(tt(x)){if(nt=tt(x),typeof nt!="function")throw Error(s(150));return x=nt.call(x),lt(O,S,x,U)}if(typeof x.then=="function")return Ct(O,S,Eu(x),U);if(x.$$typeof===Tt)return Ct(O,S,Su(O,x),U);Tu(O,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,S!==null&&S.tag===6?(n(O,S.sibling),U=u(S,x),U.return=O,O=U):(n(O,S),U=yr(x,O.mode,U),U.return=O,O=U),o(O)):n(O,S)}return function(O,S,x,U){try{ya=0;var nt=Ct(O,S,x,U);return Dl=null,nt}catch(W){if(W===Cl||W===_u)throw W;var Ot=ge(29,W,null,O.mode);return Ot.lanes=U,Ot.return=O,Ot}finally{}}}var In=ko(!0),Fo=ko(!1),gn=!1;function jr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zr(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 bn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=mu(t),Ro(t,null,n),e}return vu(t,l,e,n),mu(t)}function ma(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Bs(t,n)}}function Mr(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var u=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=o:r=r.next=o,n=n.next}while(n!==null);r===null?u=r=e:r=r.next=e}else u=r=e;n={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Cr=!1;function pa(){if(Cr){var t=Ml;if(t!==null)throw t}}function ga(t,e,n,l){Cr=!1;var u=t.updateQueue;gn=!1;var r=u.firstBaseUpdate,o=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var g=y,E=g.next;g.next=null,o===null?r=E:o.next=E,o=g;var C=t.alternate;C!==null&&(C=C.updateQueue,y=C.lastBaseUpdate,y!==o&&(y===null?C.firstBaseUpdate=E:y.next=E,C.lastBaseUpdate=g))}if(r!==null){var q=u.baseState;o=0,C=E=g=null,y=r;do{var A=y.lane&-536870913,z=A!==y.lane;if(z?(pt&A)===A:(l&A)===A){A!==0&&A===zl&&(Cr=!0),C!==null&&(C=C.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var k=t,lt=y;A=e;var Ct=n;switch(lt.tag){case 1:if(k=lt.payload,typeof k=="function"){q=k.call(Ct,q,A);break t}q=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=lt.payload,A=typeof k=="function"?k.call(Ct,q,A):k,A==null)break t;q=_({},q,A);break t;case 2:gn=!0}}A=y.callback,A!==null&&(t.flags|=64,z&&(t.flags|=8192),z=u.callbacks,z===null?u.callbacks=[A]:z.push(A))}else z={lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},C===null?(E=C=z,g=q):C=C.next=z,o|=A;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;z=y,y=z.next,z.next=null,u.lastBaseUpdate=z,u.shared.pending=null}}while(!0);C===null&&(g=q),u.baseState=g,u.firstBaseUpdate=E,u.lastBaseUpdate=C,r===null&&(u.shared.lanes=0),Tn|=o,t.lanes=o,t.memoizedState=q}}function Po(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function $o(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Po(n[t],e)}var Rl=b(null),Au=b(0);function Wo(t,e){t=cn,w(Au,t),w(Rl,e),cn=t|e.baseLanes}function Dr(){w(Au,cn),w(Rl,Rl.current)}function Rr(){cn=Au.current,D(Rl),D(Au)}var be=b(null),Re=null;function On(t){var e=t.alternate;w(Yt,Yt.current&1),w(be,t),Re===null&&(e===null||Rl.current!==null||e.memoizedState!==null)&&(Re=t)}function Ur(t){w(Yt,Yt.current),w(be,t),Re===null&&(Re=t)}function Io(t){t.tag===22?(w(Yt,Yt.current),w(be,t),Re===null&&(Re=t)):_n()}function _n(){w(Yt,Yt.current),w(be,be.current)}function Se(t){D(be),Re===t&&(Re=null),D(Yt)}var Yt=b(0);function ju(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Bc(n)||Yc(n)))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 Ie=0,ot=null,zt=null,Kt=null,zu=!1,Ul=!1,tl=!1,Mu=0,ba=0,ql=null,zm=0;function Nt(){throw Error(s(321))}function qr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pe(t[n],e[n]))return!1;return!0}function Qr(t,e,n,l,u,r){return Ie=r,ot=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?Hf:Pr,tl=!1,r=n(l,u),tl=!1,Ul&&(r=ef(e,n,l,u)),tf(t),r}function tf(t){T.H=_a;var e=zt!==null&&zt.next!==null;if(Ie=0,Kt=zt=ot=null,zu=!1,ba=0,ql=null,e)throw Error(s(300));t===null||Zt||(t=t.dependencies,t!==null&&bu(t)&&(Zt=!0))}function ef(t,e,n,l){ot=t;var u=0;do{if(Ul&&(ql=null),ba=0,Ul=!1,25<=u)throw Error(s(301));if(u+=1,Kt=zt=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=wf,r=e(n,l)}while(Ul);return r}function Mm(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?Sa(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(ot.flags|=1024),e}function Nr(){var t=Mu!==0;return Mu=0,t}function Hr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function wr(t){if(zu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}zu=!1}Ie=0,Kt=zt=ot=null,Ul=!1,ba=Mu=0,ql=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?ot.memoizedState=Kt=t:Kt=Kt.next=t,Kt}function Gt(){if(zt===null){var t=ot.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Kt===null?ot.memoizedState:Kt.next;if(e!==null)Kt=e,zt=t;else{if(t===null)throw ot.alternate===null?Error(s(467)):Error(s(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Kt===null?ot.memoizedState=Kt=t:Kt=Kt.next=t}return Kt}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sa(t){var e=ba;return ba+=1,ql===null&&(ql=[]),t=Zo(ql,t,e),e=ot,(Kt===null?e.memoizedState:Kt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?Hf:Pr),t}function Du(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Sa(t);if(t.$$typeof===Tt)return It(t)}throw Error(s(438,String(t)))}function Br(t){var e=null,n=ot.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ot.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Cu(),ot.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=et;return e.index++,n}function tn(t,e){return typeof e=="function"?e(t):e}function Ru(t){var e=Gt();return Yr(e,zt,t)}function Yr(t,e,n){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var u=t.baseQueue,r=l.pending;if(r!==null){if(u!==null){var o=u.next;u.next=r.next,r.next=o}e.baseQueue=u=r,l.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var y=o=null,g=null,E=e,C=!1;do{var q=E.lane&-536870913;if(q!==E.lane?(pt&q)===q:(Ie&q)===q){var A=E.revertLane;if(A===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),q===zl&&(C=!0);else if((Ie&A)===A){E=E.next,A===zl&&(C=!0);continue}else q={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},g===null?(y=g=q,o=r):g=g.next=q,ot.lanes|=A,Tn|=A;q=E.action,tl&&n(r,q),r=E.hasEagerState?E.eagerState:n(r,q)}else A={lane:q,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},g===null?(y=g=A,o=r):g=g.next=A,ot.lanes|=q,Tn|=q;E=E.next}while(E!==null&&E!==e);if(g===null?o=r:g.next=y,!pe(r,t.memoizedState)&&(Zt=!0,C&&(n=Ml,n!==null)))throw n;t.memoizedState=r,t.baseState=o,t.baseQueue=g,l.lastRenderedState=r}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Gr(t){var e=Gt(),n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=t;var l=n.dispatch,u=n.pending,r=e.memoizedState;if(u!==null){n.pending=null;var o=u=u.next;do r=t(r,o.action),o=o.next;while(o!==u);pe(r,e.memoizedState)||(Zt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,l]}function nf(t,e,n){var l=ot,u=Gt(),r=bt;if(r){if(n===void 0)throw Error(s(407));n=n()}else n=e();var o=!pe((zt||u).memoizedState,n);if(o&&(u.memoizedState=n,Zt=!0),u=u.queue,Kr(uf.bind(null,l,u,t),[t]),u.getSnapshot!==e||o||Kt!==null&&Kt.memoizedState.tag&1){if(l.flags|=2048,Ql(9,{destroy:void 0},af.bind(null,l,u,n,e),null),Dt===null)throw Error(s(349));r||(Ie&127)!==0||lf(l,e,n)}return n}function lf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ot.updateQueue,e===null?(e=Cu(),ot.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function af(t,e,n,l){e.value=n,e.getSnapshot=l,rf(e)&&cf(t)}function uf(t,e,n){return n(function(){rf(e)&&cf(t)})}function rf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function cf(t){var e=Zn(t,2);e!==null&&he(e,t,2)}function Lr(t){var e=ue();if(typeof t=="function"){var n=t;if(t=n(),tl){fn(!0);try{n()}finally{fn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:t},e}function sf(t,e,n,l){return t.baseState=n,Yr(t,zt,typeof l=="function"?l:tn)}function Cm(t,e,n,l,u){if(Qu(t))throw Error(s(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?n(!0):r.isTransition=!1,l(r),n=e.pending,n===null?(r.next=e.pending=r,of(e,r)):(r.next=n.next,e.pending=n.next=r)}}function of(t,e){var n=e.action,l=e.payload,u=t.state;if(e.isTransition){var r=T.T,o={};T.T=o;try{var y=n(u,l),g=T.S;g!==null&&g(o,y),ff(t,e,y)}catch(E){Xr(t,e,E)}finally{r!==null&&o.types!==null&&(r.types=o.types),T.T=r}}else try{r=n(u,l),ff(t,e,r)}catch(E){Xr(t,e,E)}}function ff(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){df(t,e,l)},function(l){return Xr(t,e,l)}):df(t,e,n)}function df(t,e,n){e.status="fulfilled",e.value=n,hf(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,of(t,n)))}function Xr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,hf(e),e=e.next;while(e!==l)}t.action=null}function hf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function yf(t,e){return e}function vf(t,e){if(bt){var n=Dt.formState;if(n!==null){t:{var l=ot;if(bt){if(Rt){e:{for(var u=Rt,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){Rt=Ue(u.nextSibling),l=u.data==="F!";break t}}mn(l)}l=!1}l&&(e=n[0])}}return n=ue(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yf,lastRenderedState:e},n.queue=l,n=qf.bind(null,ot,l),l.dispatch=n,l=Lr(!1),r=Fr.bind(null,ot,!1,l.queue),l=ue(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,n=Cm.bind(null,ot,u,r,n),u.dispatch=n,l.memoizedState=t,[e,n,!1]}function mf(t){var e=Gt();return pf(e,zt,t)}function pf(t,e,n){if(e=Yr(t,e,yf)[0],t=Ru(tn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Sa(e)}catch(o){throw o===Cl?_u:o}else l=e;e=Gt();var u=e.queue,r=u.dispatch;return n!==e.memoizedState&&(ot.flags|=2048,Ql(9,{destroy:void 0},Dm.bind(null,u,n),null)),[l,r,t]}function Dm(t,e){t.action=e}function gf(t){var e=Gt(),n=zt;if(n!==null)return pf(e,n,t);Gt(),e=e.memoizedState,n=Gt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ql(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ot.updateQueue,e===null&&(e=Cu(),ot.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function bf(){return Gt().memoizedState}function Uu(t,e,n,l){var u=ue();ot.flags|=t,u.memoizedState=Ql(1|e,{destroy:void 0},n,l===void 0?null:l)}function qu(t,e,n,l){var u=Gt();l=l===void 0?null:l;var r=u.memoizedState.inst;zt!==null&&l!==null&&qr(l,zt.memoizedState.deps)?u.memoizedState=Ql(e,r,n,l):(ot.flags|=t,u.memoizedState=Ql(1|e,r,n,l))}function Sf(t,e){Uu(8390656,8,t,e)}function Kr(t,e){qu(2048,8,t,e)}function Rm(t){ot.flags|=4;var e=ot.updateQueue;if(e===null)e=Cu(),ot.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Of(t){var e=Gt().memoizedState;return Rm({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function _f(t,e){return qu(4,2,t,e)}function xf(t,e){return qu(4,4,t,e)}function Ef(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Tf(t,e,n){n=n!=null?n.concat([t]):null,qu(4,4,Ef.bind(null,e,t),n)}function Zr(){}function Af(t,e){var n=Gt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&qr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function jf(t,e){var n=Gt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&qr(e,l[1]))return l[0];if(l=t(),tl){fn(!0);try{t()}finally{fn(!1)}}return n.memoizedState=[l,e],l}function Vr(t,e,n){return n===void 0||(Ie&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=zd(),ot.lanes|=t,Tn|=t,n)}function zf(t,e,n,l){return pe(n,e)?n:Rl.current!==null?(t=Vr(t,n,l),pe(t,e)||(Zt=!0),t):(Ie&42)===0||(Ie&1073741824)!==0&&(pt&261930)===0?(Zt=!0,t.memoizedState=n):(t=zd(),ot.lanes|=t,Tn|=t,e)}function Mf(t,e,n,l,u){var r=H.p;H.p=r!==0&&8>r?r:8;var o=T.T,y={};T.T=y,Fr(t,!1,e,n);try{var g=u(),E=T.S;if(E!==null&&E(y,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var C=jm(g,l);Oa(t,e,C,xe(t))}else Oa(t,e,l,xe(t))}catch(q){Oa(t,e,{then:function(){},status:"rejected",reason:q},xe())}finally{H.p=r,o!==null&&y.types!==null&&(o.types=y.types),T.T=o}}function Um(){}function Jr(t,e,n,l){if(t.tag!==5)throw Error(s(476));var u=Cf(t).queue;Mf(t,u,e,Z,n===null?Um:function(){return Df(t),n(l)})}function Cf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:Z},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Df(t){var e=Cf(t);e.next===null&&(e=t.alternate.memoizedState),Oa(t,e.next.queue,{},xe())}function kr(){return It(wa)}function Rf(){return Gt().memoizedState}function Uf(){return Gt().memoizedState}function qm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=xe();t=bn(n);var l=Sn(e,t,n);l!==null&&(he(l,e,n),ma(l,e,n)),e={cache:xr()},t.payload=e;return}e=e.return}}function Qm(t,e,n){var l=xe();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Qu(t)?Qf(e,n):(n=dr(t,e,n,l),n!==null&&(he(n,t,l),Nf(n,e,l)))}function qf(t,e,n){var l=xe();Oa(t,e,n,l)}function Oa(t,e,n,l){var u={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qu(t))Qf(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,y=r(o,n);if(u.hasEagerState=!0,u.eagerState=y,pe(y,o))return vu(t,e,u,0),Dt===null&&yu(),!1}catch{}finally{}if(n=dr(t,e,u,l),n!==null)return he(n,t,l),Nf(n,e,l),!0}return!1}function Fr(t,e,n,l){if(l={lane:2,revertLane:jc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Qu(t)){if(e)throw Error(s(479))}else e=dr(t,n,l,2),e!==null&&he(e,t,2)}function Qu(t){var e=t.alternate;return t===ot||e!==null&&e===ot}function Qf(t,e){Ul=zu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Nf(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Bs(t,n)}}var _a={readContext:It,use:Du,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};_a.useEffectEvent=Nt;var Hf={readContext:It,use:Du,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:Sf,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Uu(4194308,4,Ef.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Uu(4194308,4,t,e)},useInsertionEffect:function(t,e){Uu(4,2,t,e)},useMemo:function(t,e){var n=ue();e=e===void 0?null:e;var l=t();if(tl){fn(!0);try{t()}finally{fn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ue();if(n!==void 0){var u=n(e);if(tl){fn(!0);try{n(e)}finally{fn(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=Qm.bind(null,ot,t),[l.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=Lr(t);var e=t.queue,n=qf.bind(null,ot,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Zr,useDeferredValue:function(t,e){var n=ue();return Vr(n,t,e)},useTransition:function(){var t=Lr(!1);return t=Mf.bind(null,ot,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ot,u=ue();if(bt){if(n===void 0)throw Error(s(407));n=n()}else{if(n=e(),Dt===null)throw Error(s(349));(pt&127)!==0||lf(l,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,Sf(uf.bind(null,l,r,t),[t]),l.flags|=2048,Ql(9,{destroy:void 0},af.bind(null,l,r,n,e),null),n},useId:function(){var t=ue(),e=Dt.identifierPrefix;if(bt){var n=Ge,l=Ye;n=(l&~(1<<32-me(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Mu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=zm++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:kr,useFormState:vf,useActionState:vf,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Fr.bind(null,ot,!0,n),n.dispatch=e,[t,e]},useMemoCache:Br,useCacheRefresh:function(){return ue().memoizedState=qm.bind(null,ot)},useEffectEvent:function(t){var e=ue(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Pr={readContext:It,use:Du,useCallback:Af,useContext:It,useEffect:Kr,useImperativeHandle:Tf,useInsertionEffect:_f,useLayoutEffect:xf,useMemo:jf,useReducer:Ru,useRef:bf,useState:function(){return Ru(tn)},useDebugValue:Zr,useDeferredValue:function(t,e){var n=Gt();return zf(n,zt.memoizedState,t,e)},useTransition:function(){var t=Ru(tn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:nf,useId:Rf,useHostTransitionStatus:kr,useFormState:mf,useActionState:mf,useOptimistic:function(t,e){var n=Gt();return sf(n,zt,t,e)},useMemoCache:Br,useCacheRefresh:Uf};Pr.useEffectEvent=Of;var wf={readContext:It,use:Du,useCallback:Af,useContext:It,useEffect:Kr,useImperativeHandle:Tf,useInsertionEffect:_f,useLayoutEffect:xf,useMemo:jf,useReducer:Gr,useRef:bf,useState:function(){return Gr(tn)},useDebugValue:Zr,useDeferredValue:function(t,e){var n=Gt();return zt===null?Vr(n,t,e):zf(n,zt.memoizedState,t,e)},useTransition:function(){var t=Gr(tn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:nf,useId:Rf,useHostTransitionStatus:kr,useFormState:gf,useActionState:gf,useOptimistic:function(t,e){var n=Gt();return zt!==null?sf(n,zt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Br,useCacheRefresh:Uf};wf.useEffectEvent=Of;function $r(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:_({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Wr={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=xe(),u=bn(l);u.payload=e,n!=null&&(u.callback=n),e=Sn(t,u,l),e!==null&&(he(e,t,l),ma(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=xe(),u=bn(l);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=Sn(t,u,l),e!==null&&(he(e,t,l),ma(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=xe(),l=bn(n);l.tag=2,e!=null&&(l.callback=e),e=Sn(t,l,n),e!==null&&(he(e,t,n),ma(e,t,n))}};function Bf(t,e,n,l,u,r,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,r,o):e.prototype&&e.prototype.isPureReactComponent?!ca(n,l)||!ca(u,r):!0}function Yf(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Wr.enqueueReplaceState(e,e.state,null)}function el(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=_({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function Gf(t){hu(t)}function Lf(t){console.error(t)}function Xf(t){hu(t)}function Nu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Kf(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ir(t,e,n){return n=bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Nu(t,e)},n}function Zf(t){return t=bn(t),t.tag=3,t}function Vf(t,e,n,l){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var r=l.value;t.payload=function(){return u(r)},t.callback=function(){Kf(e,n,l)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Kf(e,n,l),typeof u!="function"&&(An===null?An=new Set([this]):An.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function Nm(t,e,n,l,u){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&jl(e,n,u,!0),n=be.current,n!==null){switch(n.tag){case 31:case 13:return Re===null?ku():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=u,l===xu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Ec(t,l,u)),!1;case 22:return n.flags|=65536,l===xu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Ec(t,l,u)),!1}throw Error(s(435,n.tag))}return Ec(t,l,u),ku(),!1}if(bt)return e=be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==gr&&(t=Error(s(422),{cause:l}),fa(ze(t,n)))):(l!==gr&&(e=Error(s(423),{cause:l}),fa(ze(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=ze(l,n),u=Ir(t.stateNode,l,u),Mr(t,u),Ht!==4&&(Ht=2)),!1;var r=Error(s(520),{cause:l});if(r=ze(r,n),Ca===null?Ca=[r]:Ca.push(r),Ht!==4&&(Ht=2),e===null)return!0;l=ze(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Ir(n.stateNode,l,t),Mr(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(An===null||!An.has(r))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Zf(u),Vf(u,t,n,l),Mr(n,u),!1}n=n.return}while(n!==null);return!1}var tc=Error(s(461)),Zt=!1;function te(t,e,n,l){e.child=t===null?Fo(e,null,n,l):In(e,t.child,n,l)}function Jf(t,e,n,l,u){n=n.render;var r=e.ref;if("ref"in l){var o={};for(var y in l)y!=="ref"&&(o[y]=l[y])}else o=l;return Fn(e),l=Qr(t,e,n,o,r,u),y=Nr(),t!==null&&!Zt?(Hr(t,e,u),en(t,e,u)):(bt&&y&&mr(e),e.flags|=1,te(t,e,l,u),e.child)}function kf(t,e,n,l,u){if(t===null){var r=n.type;return typeof r=="function"&&!hr(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Ff(t,e,r,l,u)):(t=pu(n.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!cc(t,u)){var o=r.memoizedProps;if(n=n.compare,n=n!==null?n:ca,n(o,l)&&t.ref===e.ref)return en(t,e,u)}return e.flags|=1,t=Fe(r,l),t.ref=e.ref,t.return=e,e.child=t}function Ff(t,e,n,l,u){if(t!==null){var r=t.memoizedProps;if(ca(r,l)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=l=r,cc(t,u))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,en(t,e,u)}return ec(t,e,n,l,u)}function Pf(t,e,n,l){var u=l.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~r}else l=0,e.child=null;return $f(t,e,r,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ou(e,r!==null?r.cachePool:null),r!==null?Wo(e,r):Dr(),Io(e);else return l=e.lanes=536870912,$f(t,e,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(Ou(e,r.cachePool),Wo(e,r),_n(),e.memoizedState=null):(t!==null&&Ou(e,null),Dr(),_n());return te(t,e,u,n),e.child}function xa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function $f(t,e,n,l,u){var r=Tr();return r=r===null?null:{parent:Xt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Ou(e,null),Dr(),Io(e),t!==null&&jl(t,e,l,!0),e.childLanes=u,null}function Hu(t,e){return e=Bu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Wf(t,e,n){return In(e,t.child,null,n),t=Hu(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function Hm(t,e,n){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(l.mode==="hidden")return t=Hu(e,l),e.lanes=536870912,xa(null,t);if(Ur(e),(t=Rt)?(t=oh(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:yn!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},n=qo(t),n.return=e,e.child=n,Wt=e,Rt=null)):t=null,t===null)throw mn(e);return e.lanes=536870912,null}return Hu(e,l)}var r=t.memoizedState;if(r!==null){var o=r.dehydrated;if(Ur(e),u)if(e.flags&256)e.flags&=-257,e=Wf(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(Zt||jl(t,e,n,!1),u=(n&t.childLanes)!==0,Zt||u){if(l=Dt,l!==null&&(o=Ys(l,n),o!==0&&o!==r.retryLane))throw r.retryLane=o,Zn(t,o),he(l,t,o),tc;ku(),e=Wf(t,e,n)}else t=r.treeContext,Rt=Ue(o.nextSibling),Wt=e,bt=!0,vn=null,De=!1,t!==null&&Ho(e,t),e=Hu(e,l),e.flags|=4096;return e}return t=Fe(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function wu(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ec(t,e,n,l,u){return Fn(e),n=Qr(t,e,n,l,void 0,u),l=Nr(),t!==null&&!Zt?(Hr(t,e,u),en(t,e,u)):(bt&&l&&mr(e),e.flags|=1,te(t,e,n,u),e.child)}function If(t,e,n,l,u,r){return Fn(e),e.updateQueue=null,n=ef(e,l,n,u),tf(t),l=Nr(),t!==null&&!Zt?(Hr(t,e,r),en(t,e,r)):(bt&&l&&mr(e),e.flags|=1,te(t,e,n,r),e.child)}function td(t,e,n,l,u){if(Fn(e),e.stateNode===null){var r=xl,o=n.contextType;typeof o=="object"&&o!==null&&(r=It(o)),r=new n(l,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Wr,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=l,r.state=e.memoizedState,r.refs={},jr(e),o=n.contextType,r.context=typeof o=="object"&&o!==null?It(o):xl,r.state=e.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&($r(e,n,o,l),r.state=e.memoizedState),typeof n.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&&Wr.enqueueReplaceState(r,r.state,null),ga(e,l,r,u),pa(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,g=el(n,y);r.props=g;var E=r.context,C=n.contextType;o=xl,typeof C=="object"&&C!==null&&(o=It(C));var q=n.getDerivedStateFromProps;C=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,C||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||E!==o)&&Yf(e,r,l,o),gn=!1;var A=e.memoizedState;r.state=A,ga(e,l,r,u),pa(),E=e.memoizedState,y||A!==E||gn?(typeof q=="function"&&($r(e,n,q,l),E=e.memoizedState),(g=gn||Bf(e,n,g,l,A,E,o))?(C||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=l,e.memoizedState=E),r.props=l,r.state=E,r.context=o,l=g):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{r=e.stateNode,zr(t,e),o=e.memoizedProps,C=el(n,o),r.props=C,q=e.pendingProps,A=r.context,E=n.contextType,g=xl,typeof E=="object"&&E!==null&&(g=It(E)),y=n.getDerivedStateFromProps,(E=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o!==q||A!==g)&&Yf(e,r,l,g),gn=!1,A=e.memoizedState,r.state=A,ga(e,l,r,u),pa();var z=e.memoizedState;o!==q||A!==z||gn||t!==null&&t.dependencies!==null&&bu(t.dependencies)?(typeof y=="function"&&($r(e,n,y,l),z=e.memoizedState),(C=gn||Bf(e,n,C,l,A,z,g)||t!==null&&t.dependencies!==null&&bu(t.dependencies))?(E||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,z,g),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,z,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=l,e.memoizedState=z),r.props=l,r.state=z,r.context=g,l=C):(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),l=!1)}return r=l,wu(t,e),l=(e.flags&128)!==0,r||l?(r=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&l?(e.child=In(e,t.child,null,u),e.child=In(e,null,n,u)):te(t,e,n,u),e.memoizedState=r.state,t=e.child):t=en(t,e,u),t}function ed(t,e,n,l){return Jn(),e.flags|=256,te(t,e,n,l),e.child}var nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lc(t){return{baseLanes:t,cachePool:Xo()}}function ac(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=_e),t}function nd(t,e,n){var l=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?On(e):_n(),(t=Rt)?(t=oh(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:yn!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},n=qo(t),n.return=e,e.child=n,Wt=e,Rt=null)):t=null,t===null)throw mn(e);return Yc(t)?e.lanes=32:e.lanes=536870912,null}var y=l.children;return l=l.fallback,u?(_n(),u=e.mode,y=Bu({mode:"hidden",children:y},u),l=Vn(l,u,n,null),y.return=e,l.return=e,y.sibling=l,e.child=y,l=e.child,l.memoizedState=lc(n),l.childLanes=ac(t,o,n),e.memoizedState=nc,xa(null,l)):(On(e),uc(e,y))}var g=t.memoizedState;if(g!==null&&(y=g.dehydrated,y!==null)){if(r)e.flags&256?(On(e),e.flags&=-257,e=ic(t,e,n)):e.memoizedState!==null?(_n(),e.child=t.child,e.flags|=128,e=null):(_n(),y=l.fallback,u=e.mode,l=Bu({mode:"visible",children:l.children},u),y=Vn(y,u,n,null),y.flags|=2,l.return=e,y.return=e,l.sibling=y,e.child=l,In(e,t.child,null,n),l=e.child,l.memoizedState=lc(n),l.childLanes=ac(t,o,n),e.memoizedState=nc,e=xa(null,l));else if(On(e),Yc(y)){if(o=y.nextSibling&&y.nextSibling.dataset,o)var E=o.dgst;o=E,l=Error(s(419)),l.stack="",l.digest=o,fa({value:l,source:null,stack:null}),e=ic(t,e,n)}else if(Zt||jl(t,e,n,!1),o=(n&t.childLanes)!==0,Zt||o){if(o=Dt,o!==null&&(l=Ys(o,n),l!==0&&l!==g.retryLane))throw g.retryLane=l,Zn(t,l),he(o,t,l),tc;Bc(y)||ku(),e=ic(t,e,n)}else Bc(y)?(e.flags|=192,e.child=t.child,e=null):(t=g.treeContext,Rt=Ue(y.nextSibling),Wt=e,bt=!0,vn=null,De=!1,t!==null&&Ho(e,t),e=uc(e,l.children),e.flags|=4096);return e}return u?(_n(),y=l.fallback,u=e.mode,g=t.child,E=g.sibling,l=Fe(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&65011712,E!==null?y=Fe(E,y):(y=Vn(y,u,n,null),y.flags|=2),y.return=e,l.return=e,l.sibling=y,e.child=l,xa(null,l),l=e.child,y=t.child.memoizedState,y===null?y=lc(n):(u=y.cachePool,u!==null?(g=Xt._currentValue,u=u.parent!==g?{parent:g,pool:g}:u):u=Xo(),y={baseLanes:y.baseLanes|n,cachePool:u}),l.memoizedState=y,l.childLanes=ac(t,o,n),e.memoizedState=nc,xa(t.child,l)):(On(e),n=t.child,t=n.sibling,n=Fe(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=n,e.memoizedState=null,n)}function uc(t,e){return e=Bu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Bu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function ic(t,e,n){return In(e,t.child,null,n),t=uc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ld(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Or(t.return,e,n)}function rc(t,e,n,l,u,r){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:u,treeForkCount:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=n,o.tailMode=u,o.treeForkCount=r)}function ad(t,e,n){var l=e.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var o=Yt.current,y=(o&2)!==0;if(y?(o=o&1|2,e.flags|=128):o&=1,w(Yt,o),te(t,e,l,n),l=bt?oa:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ld(t,n,e);else if(t.tag===19)ld(t,n,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(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&ju(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),rc(e,!1,u,n,r,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&ju(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}rc(e,!0,n,null,r,l);break;case"together":rc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function en(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Tn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(jl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,n=Fe(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Fe(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function cc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&bu(t)))}function wm(t,e,n){switch(e.tag){case 3:ae(e,e.stateNode.containerInfo),pn(e,Xt,t.memoizedState.cache),Jn();break;case 27:case 5:Fl(e);break;case 4:ae(e,e.stateNode.containerInfo);break;case 10:pn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ur(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(On(e),e.flags|=128,null):(n&e.child.childLanes)!==0?nd(t,e,n):(On(e),t=en(t,e,n),t!==null?t.sibling:null);On(e);break;case 19:var u=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(jl(t,e,n,!1),l=(n&e.childLanes)!==0),u){if(l)return ad(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),w(Yt,Yt.current),l)break;return null;case 22:return e.lanes=0,Pf(t,e,n,e.pendingProps);case 24:pn(e,Xt,t.memoizedState.cache)}return en(t,e,n)}function ud(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!cc(t,n)&&(e.flags&128)===0)return Zt=!1,wm(t,e,n);Zt=(t.flags&131072)!==0}else Zt=!1,bt&&(e.flags&1048576)!==0&&No(e,oa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=$n(e.elementType),e.type=t,typeof t=="function")hr(t)?(l=el(t,l),e.tag=1,e=td(null,e,t,l,n)):(e.tag=0,e=ec(null,e,t,l,n));else{if(t!=null){var u=t.$$typeof;if(u===qt){e.tag=11,e=Jf(null,e,t,l,n);break t}else if(u===M){e.tag=14,e=kf(null,e,t,l,n);break t}}throw e=it(t)||t,Error(s(306,e,""))}}return e;case 0:return ec(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,u=el(l,e.pendingProps),td(t,e,l,u,n);case 3:t:{if(ae(e,e.stateNode.containerInfo),t===null)throw Error(s(387));l=e.pendingProps;var r=e.memoizedState;u=r.element,zr(t,e),ga(e,l,null,n);var o=e.memoizedState;if(l=o.cache,pn(e,Xt,l),l!==r.cache&&_r(e,[Xt],n,!0),pa(),l=o.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=ed(t,e,l,n);break t}else if(l!==u){u=ze(Error(s(424)),e),fa(u),e=ed(t,e,l,n);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(Rt=Ue(t.firstChild),Wt=e,bt=!0,vn=null,De=!0,n=Fo(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Jn(),l===u){e=en(t,e,n);break t}te(t,e,l,n)}e=e.child}return e;case 26:return wu(t,e),t===null?(n=mh(e.type,null,e.pendingProps,null))?e.memoizedState=n:bt||(n=e.type,t=e.pendingProps,l=ei(rt.current).createElement(n),l[$t]=e,l[re]=t,ee(l,n,t),kt(l),e.stateNode=l):e.memoizedState=mh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Fl(e),t===null&&bt&&(l=e.stateNode=hh(e.type,e.pendingProps,rt.current),Wt=e,De=!0,u=Rt,Cn(e.type)?(Gc=u,Rt=Ue(l.firstChild)):Rt=u),te(t,e,e.pendingProps.children,n),wu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((u=l=Rt)&&(l=yp(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,Wt=e,Rt=Ue(l.firstChild),De=!1,u=!0):u=!1),u||mn(e)),Fl(e),u=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,l=r.children,Nc(u,r)?l=null:o!==null&&Nc(u,o)&&(e.flags|=32),e.memoizedState!==null&&(u=Qr(t,e,Mm,null,null,n),wa._currentValue=u),wu(t,e),te(t,e,l,n),e.child;case 6:return t===null&&bt&&((t=n=Rt)&&(n=vp(n,e.pendingProps,De),n!==null?(e.stateNode=n,Wt=e,Rt=null,t=!0):t=!1),t||mn(e)),null;case 13:return nd(t,e,n);case 4:return ae(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=In(e,null,l,n):te(t,e,l,n),e.child;case 11:return Jf(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,pn(e,e.type,l.value),te(t,e,l.children,n),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,Fn(e),u=It(u),l=l(u),e.flags|=1,te(t,e,l,n),e.child;case 14:return kf(t,e,e.type,e.pendingProps,n);case 15:return Ff(t,e,e.type,e.pendingProps,n);case 19:return ad(t,e,n);case 31:return Hm(t,e,n);case 22:return Pf(t,e,n,e.pendingProps);case 24:return Fn(e),l=It(Xt),t===null?(u=Tr(),u===null&&(u=Dt,r=xr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=n),u=r),e.memoizedState={parent:l,cache:u},jr(e),pn(e,Xt,u)):((t.lanes&n)!==0&&(zr(t,e),ga(e,null,null,n),pa()),u=t.memoizedState,r=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),pn(e,Xt,l)):(l=r.cache,pn(e,Xt,l),l!==u.cache&&_r(e,[Xt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function nn(t){t.flags|=4}function sc(t,e,n,l,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(Rd())t.flags|=8192;else throw Wn=xu,Ar}else t.flags&=-16777217}function id(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Oh(e))if(Rd())t.flags|=8192;else throw Wn=xu,Ar}function Yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Hs():536870912,t.lanes|=e,Bl|=e)}function Ea(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function Bm(t,e,n){var l=e.pendingProps;switch(pr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),We(Xt),Bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Al(e)?nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,br())),Ut(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(nn(e),r!==null?(Ut(e),id(e,r)):(Ut(e),sc(e,u,null,l,n))):r?r!==t.memoizedState?(nn(e),Ut(e),id(e,r)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&nn(e),Ut(e),sc(e,u,t,l,n)),null;case 27:if($a(e),n=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return Ut(e),null}t=B.current,Al(e)?wo(e):(t=hh(u,l,n),e.stateNode=t,nn(e))}return Ut(e),null;case 5:if($a(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return Ut(e),null}if(r=B.current,Al(e))wo(e);else{var o=ei(rt.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 l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?o.createElement(u,{is:l.is}):o.createElement(u)}}r[$t]=e,r[re]=l;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,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&nn(e)}}return Ut(e),sc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(s(166));if(t=rt.current,Al(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,u=Wt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[$t]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||nh(t.nodeValue,n)),t||mn(e,!0)}else t=ei(t).createTextNode(l),t[$t]=e,e.stateNode=t}return Ut(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Al(e),n!==null){if(t===null){if(!l)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[$t]=e}else Jn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else n=br(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Se(e),e):(Se(e),null);if((e.flags&128)!==0)throw Error(s(558))}return Ut(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Al(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(s(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[$t]=e}else Jn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),u=!1}else u=br(),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=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Yu(e,e.updateQueue),Ut(e),null);case 4:return Bt(),t===null&&Dc(e.stateNode.containerInfo),Ut(e),null;case 10:return We(e.type),Ut(e),null;case 19:if(D(Yt),l=e.memoizedState,l===null)return Ut(e),null;if(u=(e.flags&128)!==0,r=l.rendering,r===null)if(u)Ea(l,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=ju(t),r!==null){for(e.flags|=128,Ea(l,!1),t=r.updateQueue,e.updateQueue=t,Yu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Uo(n,t),n=n.sibling;return w(Yt,Yt.current&1|2),bt&&Pe(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ye()>Zu&&(e.flags|=128,u=!0,Ea(l,!1),e.lanes=4194304)}else{if(!u)if(t=ju(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Yu(e,t),Ea(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!bt)return Ut(e),null}else 2*ye()-l.renderingStartTime>Zu&&n!==536870912&&(e.flags|=128,u=!0,Ea(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(t=l.last,t!==null?t.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ye(),t.sibling=null,n=Yt.current,w(Yt,u?n&1|2:n&1),bt&&Pe(e,l.treeForkCount),t):(Ut(e),null);case 22:case 23:return Se(e),Rr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),n=e.updateQueue,n!==null&&Yu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&D(Pn),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),We(Xt),Ut(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Ym(t,e){switch(pr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return We(Xt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $a(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(s(340));Jn()}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(s(340));Jn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return D(Yt),null;case 4:return Bt(),null;case 10:return We(e.type),null;case 22:case 23:return Se(e),Rr(),t!==null&&D(Pn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return We(Xt),null;case 25:return null;default:return null}}function rd(t,e){switch(pr(e),e.tag){case 3:We(Xt),Bt();break;case 26:case 27:case 5:$a(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:D(Yt);break;case 10:We(e.type);break;case 22:case 23:Se(e),Rr(),t!==null&&D(Pn);break;case 24:We(Xt)}}function Ta(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){l=void 0;var r=n.create,o=n.inst;l=r(),o.destroy=l}n=n.next}while(n!==u)}}catch(y){jt(e,e.return,y)}}function xn(t,e,n){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var r=u.next;l=r;do{if((l.tag&t)===t){var o=l.inst,y=o.destroy;if(y!==void 0){o.destroy=void 0,u=e;var g=n,E=y;try{E()}catch(C){jt(u,g,C)}}}l=l.next}while(l!==r)}}catch(C){jt(e,e.return,C)}}function cd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{$o(e,n)}catch(l){jt(t,t.return,l)}}}function sd(t,e,n){n.props=el(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){jt(t,e,l)}}function Aa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(u){jt(t,e,u)}}function Le(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(u){jt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){jt(t,e,u)}else n.current=null}function od(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(u){jt(t,t.return,u)}}function oc(t,e,n){try{var l=t.stateNode;cp(l,t.type,n,e),l[re]=e}catch(u){jt(t,t.return,u)}}function fd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Cn(t.type)||t.tag===4}function fc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||fd(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&&Cn(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 dc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Je));else if(l!==4&&(l===27&&Cn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(dc(t,e,n),t=t.sibling;t!==null;)dc(t,e,n),t=t.sibling}function Gu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Cn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Gu(t,e,n),t=t.sibling;t!==null;)Gu(t,e,n),t=t.sibling}function dd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,l,n),e[$t]=t,e[re]=n}catch(r){jt(t,t.return,r)}}var ln=!1,Vt=!1,hc=!1,hd=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function Gm(t,e){if(t=t.containerInfo,qc=ci,t=Eo(t),ir(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var o=0,y=-1,g=-1,E=0,C=0,q=t,A=null;e:for(;;){for(var z;q!==n||u!==0&&q.nodeType!==3||(y=o+u),q!==r||l!==0&&q.nodeType!==3||(g=o+l),q.nodeType===3&&(o+=q.nodeValue.length),(z=q.firstChild)!==null;)A=q,q=z;for(;;){if(q===t)break e;if(A===n&&++E===u&&(y=o),A===r&&++C===l&&(g=o),(z=q.nextSibling)!==null)break;q=A,A=q.parentNode}q=z}n=y===-1||g===-1?null:{start:y,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qc={focusedElem:t,selectionRange:n},ci=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,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(n=0;n<t.length;n++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,u=r.memoizedProps,r=r.memoizedState,l=n.stateNode;try{var k=el(n.type,u);t=l.getSnapshotBeforeUpdate(k,r),l.__reactInternalSnapshotBeforeUpdate=t}catch(lt){jt(n,n.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)wc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":wc(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(s(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function yd(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:un(t,n),l&4&&Ta(5,n);break;case 1:if(un(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(o){jt(n,n.return,o)}else{var u=el(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){jt(n,n.return,o)}}l&64&&cd(n),l&512&&Aa(n,n.return);break;case 3:if(un(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{$o(t,e)}catch(o){jt(n,n.return,o)}}break;case 27:e===null&&l&4&&dd(n);case 26:case 5:un(t,n),e===null&&l&4&&od(n),l&512&&Aa(n,n.return);break;case 12:un(t,n);break;case 31:un(t,n),l&4&&pd(t,n);break;case 13:un(t,n),l&4&&gd(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Pm.bind(null,n),mp(t,n))));break;case 22:if(l=n.memoizedState!==null||ln,!l){e=e!==null&&e.memoizedState!==null||Vt,u=ln;var r=Vt;ln=l,(Vt=e)&&!r?rn(t,n,(n.subtreeFlags&8772)!==0):un(t,n),ln=u,Vt=r}break;case 30:break;default:un(t,n)}}function vd(t){var e=t.alternate;e!==null&&(t.alternate=null,vd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Xi(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,se=!1;function an(t,e,n){for(n=n.child;n!==null;)md(t,e,n),n=n.sibling}function md(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(Pl,n)}catch{}switch(n.tag){case 26:Vt||Le(n,e),an(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Vt||Le(n,e);var l=Qt,u=se;Cn(n.type)&&(Qt=n.stateNode,se=!1),an(t,e,n),Qa(n.stateNode),Qt=l,se=u;break;case 5:Vt||Le(n,e);case 6:if(l=Qt,u=se,Qt=null,an(t,e,n),Qt=l,se=u,Qt!==null)if(se)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(n.stateNode)}catch(r){jt(n,e,r)}else try{Qt.removeChild(n.stateNode)}catch(r){jt(n,e,r)}break;case 18:Qt!==null&&(se?(t=Qt,ch(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Jl(t)):ch(Qt,n.stateNode));break;case 4:l=Qt,u=se,Qt=n.stateNode.containerInfo,se=!0,an(t,e,n),Qt=l,se=u;break;case 0:case 11:case 14:case 15:xn(2,n,e),Vt||xn(4,n,e),an(t,e,n);break;case 1:Vt||(Le(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&sd(n,e,l)),an(t,e,n);break;case 21:an(t,e,n);break;case 22:Vt=(l=Vt)||n.memoizedState!==null,an(t,e,n),Vt=l;break;default:an(t,e,n)}}function pd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Jl(t)}catch(n){jt(e,e.return,n)}}}function gd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Jl(t)}catch(n){jt(e,e.return,n)}}function Lm(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new hd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new hd),e;default:throw Error(s(435,t.tag))}}function Lu(t,e){var n=Lm(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var u=$m.bind(null,t,l);l.then(u,u)}})}function oe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l],r=t,o=e,y=o;t:for(;y!==null;){switch(y.tag){case 27:if(Cn(y.type)){Qt=y.stateNode,se=!1;break t}break;case 5:Qt=y.stateNode,se=!1;break t;case 3:case 4:Qt=y.stateNode.containerInfo,se=!0;break t}y=y.return}if(Qt===null)throw Error(s(160));md(r,o,u),Qt=null,se=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)bd(e,t),e=e.sibling}var Ne=null;function bd(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oe(e,t),fe(t),l&4&&(xn(3,t,t.return),Ta(3,t),xn(5,t,t.return));break;case 1:oe(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),l&64&&ln&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var u=Ne;if(oe(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),l&4){var r=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":r=u.getElementsByTagName("title")[0],(!r||r[Il]||r[$t]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(l),u.head.insertBefore(r,u.querySelector("head > title"))),ee(r,l,n),r[$t]=t,kt(r),l=r;break t;case"link":var o=bh("link","href",u).get(l+(n.href||""));if(o){for(var y=0;y<o.length;y++)if(r=o[y],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(y,1);break e}}r=u.createElement(l),ee(r,l,n),u.head.appendChild(r);break;case"meta":if(o=bh("meta","content",u).get(l+(n.content||""))){for(y=0;y<o.length;y++)if(r=o[y],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(y,1);break e}}r=u.createElement(l),ee(r,l,n),u.head.appendChild(r);break;default:throw Error(s(468,l))}r[$t]=t,kt(r),l=r}t.stateNode=l}else Sh(u,t.type,t.stateNode);else t.stateNode=gh(u,l,t.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?Sh(u,t.type,t.stateNode):gh(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&oc(t,t.memoizedProps,n.memoizedProps)}break;case 27:oe(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),n!==null&&l&4&&oc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(oe(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),t.flags&32){u=t.stateNode;try{ml(u,"")}catch(k){jt(t,t.return,k)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,oc(t,u,n!==null?n.memoizedProps:u)),l&1024&&(hc=!0);break;case 6:if(oe(e,t),fe(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(k){jt(t,t.return,k)}}break;case 3:if(ai=null,u=Ne,Ne=ni(e.containerInfo),oe(e,t),Ne=u,fe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(e.containerInfo)}catch(k){jt(t,t.return,k)}hc&&(hc=!1,Sd(t));break;case 4:l=Ne,Ne=ni(t.stateNode.containerInfo),oe(e,t),fe(t),Ne=l;break;case 12:oe(e,t),fe(t);break;case 31:oe(e,t),fe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Lu(t,l)));break;case 13:oe(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ku=ye()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Lu(t,l)));break;case 22:u=t.memoizedState!==null;var g=n!==null&&n.memoizedState!==null,E=ln,C=Vt;if(ln=E||u,Vt=C||g,oe(e,t),Vt=C,ln=E,fe(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||g||ln||Vt||nl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){g=n=e;try{if(r=g.stateNode,u)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{y=g.stateNode;var q=g.memoizedProps.style,A=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(k){jt(g,g.return,k)}}}else if(e.tag===6){if(n===null){g=e;try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch(k){jt(g,g.return,k)}}}else if(e.tag===18){if(n===null){g=e;try{var z=g.stateNode;u?sh(z,!0):sh(g.stateNode,!1)}catch(k){jt(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;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Lu(t,n))));break;case 19:oe(e,t),fe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Lu(t,l)));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 n,l=t.return;l!==null;){if(fd(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,r=fc(t);Gu(t,r,u);break;case 5:var o=n.stateNode;n.flags&32&&(ml(o,""),n.flags&=-33);var y=fc(t);Gu(t,y,o);break;case 3:case 4:var g=n.stateNode.containerInfo,E=fc(t);dc(t,E,g);break;default:throw Error(s(161))}}catch(C){jt(t,t.return,C)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Sd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Sd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function un(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)yd(t,e.alternate,e),e=e.sibling}function nl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:xn(4,e,e.return),nl(e);break;case 1:Le(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&sd(e,e.return,n),nl(e);break;case 27:Qa(e.stateNode);case 26:case 5:Le(e,e.return),nl(e);break;case 22:e.memoizedState===null&&nl(e);break;case 30:nl(e);break;default:nl(e)}t=t.sibling}}function rn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,r=e,o=r.flags;switch(r.tag){case 0:case 11:case 15:rn(u,r,n),Ta(4,r);break;case 1:if(rn(u,r,n),l=r,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(E){jt(l,l.return,E)}if(l=r,u=l.updateQueue,u!==null){var y=l.stateNode;try{var g=u.shared.hiddenCallbacks;if(g!==null)for(u.shared.hiddenCallbacks=null,u=0;u<g.length;u++)Po(g[u],y)}catch(E){jt(l,l.return,E)}}n&&o&64&&cd(r),Aa(r,r.return);break;case 27:dd(r);case 26:case 5:rn(u,r,n),n&&l===null&&o&4&&od(r),Aa(r,r.return);break;case 12:rn(u,r,n);break;case 31:rn(u,r,n),n&&o&4&&pd(u,r);break;case 13:rn(u,r,n),n&&o&4&&gd(u,r);break;case 22:r.memoizedState===null&&rn(u,r,n),Aa(r,r.return);break;case 30:break;default:rn(u,r,n)}e=e.sibling}}function yc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&da(n))}function vc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&da(t))}function He(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Od(t,e,n,l),e=e.sibling}function Od(t,e,n,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:He(t,e,n,l),u&2048&&Ta(9,e);break;case 1:He(t,e,n,l);break;case 3:He(t,e,n,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&da(t)));break;case 12:if(u&2048){He(t,e,n,l),t=e.stateNode;try{var r=e.memoizedProps,o=r.id,y=r.onPostCommit;typeof y=="function"&&y(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){jt(e,e.return,g)}}else He(t,e,n,l);break;case 31:He(t,e,n,l);break;case 13:He(t,e,n,l);break;case 23:break;case 22:r=e.stateNode,o=e.alternate,e.memoizedState!==null?r._visibility&2?He(t,e,n,l):ja(t,e):r._visibility&2?He(t,e,n,l):(r._visibility|=2,Nl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&yc(o,e);break;case 24:He(t,e,n,l),u&2048&&vc(e.alternate,e);break;default:He(t,e,n,l)}}function Nl(t,e,n,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,o=e,y=n,g=l,E=o.flags;switch(o.tag){case 0:case 11:case 15:Nl(r,o,y,g,u),Ta(8,o);break;case 23:break;case 22:var C=o.stateNode;o.memoizedState!==null?C._visibility&2?Nl(r,o,y,g,u):ja(r,o):(C._visibility|=2,Nl(r,o,y,g,u)),u&&E&2048&&yc(o.alternate,o);break;case 24:Nl(r,o,y,g,u),u&&E&2048&&vc(o.alternate,o);break;default:Nl(r,o,y,g,u)}e=e.sibling}}function ja(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,u=l.flags;switch(l.tag){case 22:ja(n,l),u&2048&&yc(l.alternate,l);break;case 24:ja(n,l),u&2048&&vc(l.alternate,l);break;default:ja(n,l)}e=e.sibling}}var za=8192;function Hl(t,e,n){if(t.subtreeFlags&za)for(t=t.child;t!==null;)_d(t,e,n),t=t.sibling}function _d(t,e,n){switch(t.tag){case 26:Hl(t,e,n),t.flags&za&&t.memoizedState!==null&&zp(n,Ne,t.memoizedState,t.memoizedProps);break;case 5:Hl(t,e,n);break;case 3:case 4:var l=Ne;Ne=ni(t.stateNode.containerInfo),Hl(t,e,n),Ne=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=za,za=16777216,Hl(t,e,n),za=l):Hl(t,e,n));break;default:Hl(t,e,n)}}function xd(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 Ma(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Ft=l,Td(l,t)}xd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ed(t),t=t.sibling}function Ed(t){switch(t.tag){case 0:case 11:case 15:Ma(t),t.flags&2048&&xn(9,t,t.return);break;case 3:Ma(t);break;case 12:Ma(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Xu(t)):Ma(t);break;default:Ma(t)}}function Xu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Ft=l,Td(l,t)}xd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:xn(8,e,e.return),Xu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Xu(e));break;default:Xu(e)}t=t.sibling}}function Td(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:xn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:da(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ft=l;else t:for(n=t;Ft!==null;){l=Ft;var u=l.sibling,r=l.return;if(vd(l),l===n){Ft=null;break t}if(u!==null){u.return=r,Ft=u;break t}Ft=r}}}var Xm={getCacheForType:function(t){var e=It(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return It(Xt).controller.signal}},Km=typeof WeakMap=="function"?WeakMap:Map,Et=0,Dt=null,vt=null,pt=0,At=0,Oe=null,En=!1,wl=!1,mc=!1,cn=0,Ht=0,Tn=0,ll=0,pc=0,_e=0,Bl=0,Ca=null,de=null,gc=!1,Ku=0,Ad=0,Zu=1/0,Vu=null,An=null,Jt=0,jn=null,Yl=null,sn=0,bc=0,Sc=null,jd=null,Da=0,Oc=null;function xe(){return(Et&2)!==0&&pt!==0?pt&-pt:T.T!==null?jc():Gs()}function zd(){if(_e===0)if((pt&536870912)===0||bt){var t=tu;tu<<=1,(tu&3932160)===0&&(tu=262144),_e=t}else _e=536870912;return t=be.current,t!==null&&(t.flags|=32),_e}function he(t,e,n){(t===Dt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Gl(t,0),zn(t,pt,_e,!1)),Wl(t,n),((Et&2)===0||t!==Dt)&&(t===Dt&&((Et&2)===0&&(ll|=n),Ht===4&&zn(t,pt,_e,!1)),Xe(t))}function Md(t,e,n){if((Et&6)!==0)throw Error(s(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||$l(t,e),u=l?Jm(t,e):xc(t,e,!0),r=l;do{if(u===0){wl&&!l&&zn(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Zm(n)){u=xc(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 y=t;u=Ca;var g=y.current.memoizedState.isDehydrated;if(g&&(Gl(y,o).flags|=256),o=xc(y,o,!1),o!==2){if(mc&&!g){y.errorRecoveryDisabledLanes|=r,ll|=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){Gl(t,0),zn(t,e,0,!0);break}t:{switch(l=t,r=u,r){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:zn(l,e,_e,!En);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(u=Ku+300-ye(),10<u)){if(zn(l,e,_e,!En),nu(l,0,!0)!==0)break t;sn=e,l.timeoutHandle=ih(Cd.bind(null,l,n,de,Vu,gc,e,_e,ll,Bl,En,r,"Throttled",-0,0),u);break t}Cd(l,n,de,Vu,gc,e,_e,ll,Bl,En,r,null,-0,0)}}break}while(!0);Xe(t)}function Cd(t,e,n,l,u,r,o,y,g,E,C,q,A,z){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:Je},_d(e,r,q);var k=(r&62914560)===r?Ku-ye():(r&4194048)===r?Ad-ye():0;if(k=Mp(q,k),k!==null){sn=r,t.cancelPendingCommit=k(wd.bind(null,t,e,r,n,l,u,o,y,g,C,q,null,A,z)),zn(t,r,o,!E);return}}wd(t,e,r,n,l,u,o,y,g)}function Zm(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var u=n[l],r=u.getSnapshot;u=u.value;try{if(!pe(r(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 zn(t,e,n,l){e&=~pc,e&=~ll,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var r=31-me(u),o=1<<r;l[r]=-1,u&=~o}n!==0&&ws(t,n,e)}function Ju(){return(Et&6)===0?(Ra(0),!1):!0}function _c(){if(vt!==null){if(At===0)var t=vt.return;else t=vt,$e=kn=null,wr(t),Dl=null,ya=0,t=vt;for(;t!==null;)rd(t.alternate,t),t=t.return;vt=null}}function Gl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,fp(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),sn=0,_c(),Dt=t,vt=n=Fe(t.current,null),pt=e,At=0,Oe=null,En=!1,wl=$l(t,e),mc=!1,Bl=_e=pc=ll=Tn=Ht=0,de=Ca=null,gc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-me(l),r=1<<u;e|=t[u],l&=~r}return cn=e,yu(),n}function Dd(t,e){ot=null,T.H=_a,e===Cl||e===_u?(e=Vo(),At=3):e===Ar?(e=Vo(),At=4):At=e===tc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Oe=e,vt===null&&(Ht=1,Nu(t,ze(e,t.current)))}function Rd(){var t=be.current;return t===null?!0:(pt&4194048)===pt?Re===null:(pt&62914560)===pt||(pt&536870912)!==0?t===Re:!1}function Ud(){var t=T.H;return T.H=_a,t===null?_a:t}function qd(){var t=T.A;return T.A=Xm,t}function ku(){Ht=4,En||(pt&4194048)!==pt&&be.current!==null||(wl=!0),(Tn&134217727)===0&&(ll&134217727)===0||Dt===null||zn(Dt,pt,_e,!1)}function xc(t,e,n){var l=Et;Et|=2;var u=Ud(),r=qd();(Dt!==t||pt!==e)&&(Vu=null,Gl(t,e)),e=!1;var o=Ht;t:do try{if(At!==0&&vt!==null){var y=vt,g=Oe;switch(At){case 8:_c(),o=6;break t;case 3:case 2:case 9:case 6:be.current===null&&(e=!0);var E=At;if(At=0,Oe=null,Ll(t,y,g,E),n&&wl){o=0;break t}break;default:E=At,At=0,Oe=null,Ll(t,y,g,E)}}Vm(),o=Ht;break}catch(C){Dd(t,C)}while(!0);return e&&t.shellSuspendCounter++,$e=kn=null,Et=l,T.H=u,T.A=r,vt===null&&(Dt=null,pt=0,yu()),o}function Vm(){for(;vt!==null;)Qd(vt)}function Jm(t,e){var n=Et;Et|=2;var l=Ud(),u=qd();Dt!==t||pt!==e?(Vu=null,Zu=ye()+500,Gl(t,e)):wl=$l(t,e);t:do try{if(At!==0&&vt!==null){e=vt;var r=Oe;e:switch(At){case 1:At=0,Oe=null,Ll(t,e,r,1);break;case 2:case 9:if(Ko(r)){At=0,Oe=null,Nd(e);break}e=function(){At!==2&&At!==9||Dt!==t||(At=7),Xe(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Ko(r)?(At=0,Oe=null,Nd(e)):(At=0,Oe=null,Ll(t,e,r,7));break;case 5:var o=null;switch(vt.tag){case 26:o=vt.memoizedState;case 5:case 27:var y=vt;if(o?Oh(o):y.stateNode.complete){At=0,Oe=null;var g=y.sibling;if(g!==null)vt=g;else{var E=y.return;E!==null?(vt=E,Fu(E)):vt=null}break e}}At=0,Oe=null,Ll(t,e,r,5);break;case 6:At=0,Oe=null,Ll(t,e,r,6);break;case 8:_c(),Ht=6;break t;default:throw Error(s(462))}}km();break}catch(C){Dd(t,C)}while(!0);return $e=kn=null,T.H=l,T.A=u,Et=n,vt!==null?0:(Dt=null,pt=0,yu(),Ht)}function km(){for(;vt!==null&&!pv();)Qd(vt)}function Qd(t){var e=ud(t.alternate,t,cn);t.memoizedProps=t.pendingProps,e===null?Fu(t):vt=e}function Nd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=If(n,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=If(n,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:wr(e);default:rd(n,e),e=vt=Uo(e,cn),e=ud(n,e,cn)}t.memoizedProps=t.pendingProps,e===null?Fu(t):vt=e}function Ll(t,e,n,l){$e=kn=null,wr(e),Dl=null,ya=0;var u=e.return;try{if(Nm(t,u,e,n,pt)){Ht=1,Nu(t,ze(n,t.current)),vt=null;return}}catch(r){if(u!==null)throw vt=u,r;Ht=1,Nu(t,ze(n,t.current)),vt=null;return}e.flags&32768?(bt||l===1?t=!0:wl||(pt&536870912)!==0?t=!1:(En=t=!0,(l===2||l===9||l===3||l===6)&&(l=be.current,l!==null&&l.tag===13&&(l.flags|=16384))),Hd(e,t)):Fu(e)}function Fu(t){var e=t;do{if((e.flags&32768)!==0){Hd(e,En);return}t=e.return;var n=Bm(e.alternate,e,cn);if(n!==null){vt=n;return}if(e=e.sibling,e!==null){vt=e;return}vt=e=t}while(e!==null);Ht===0&&(Ht=5)}function Hd(t,e){do{var n=Ym(t.alternate,t);if(n!==null){n.flags&=32767,vt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){vt=t;return}vt=t=n}while(t!==null);Ht=6,vt=null}function wd(t,e,n,l,u,r,o,y,g){t.cancelPendingCommit=null;do Pu();while(Jt!==0);if((Et&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(r=e.lanes|e.childLanes,r|=fr,jv(t,n,r,o,y,g),t===Dt&&(vt=Dt=null,pt=0),Yl=e,jn=t,sn=n,bc=r,Sc=u,jd=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Wm(Wa,function(){return Xd(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,u=H.p,H.p=2,o=Et,Et|=4;try{Gm(t,e,n)}finally{Et=o,H.p=u,T.T=l}}Jt=1,Bd(),Yd(),Gd()}}function Bd(){if(Jt===1){Jt=0;var t=jn,e=Yl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null;var l=H.p;H.p=2;var u=Et;Et|=4;try{bd(e,t);var r=Qc,o=Eo(t.containerInfo),y=r.focusedElem,g=r.selectionRange;if(o!==y&&y&&y.ownerDocument&&xo(y.ownerDocument.documentElement,y)){if(g!==null&&ir(y)){var E=g.start,C=g.end;if(C===void 0&&(C=E),"selectionStart"in y)y.selectionStart=E,y.selectionEnd=Math.min(C,y.value.length);else{var q=y.ownerDocument||document,A=q&&q.defaultView||window;if(A.getSelection){var z=A.getSelection(),k=y.textContent.length,lt=Math.min(g.start,k),Ct=g.end===void 0?lt:Math.min(g.end,k);!z.extend&&lt>Ct&&(o=Ct,Ct=lt,lt=o);var O=_o(y,lt),S=_o(y,Ct);if(O&&S&&(z.rangeCount!==1||z.anchorNode!==O.node||z.anchorOffset!==O.offset||z.focusNode!==S.node||z.focusOffset!==S.offset)){var x=q.createRange();x.setStart(O.node,O.offset),z.removeAllRanges(),lt>Ct?(z.addRange(x),z.extend(S.node,S.offset)):(x.setEnd(S.node,S.offset),z.addRange(x))}}}}for(q=[],z=y;z=z.parentNode;)z.nodeType===1&&q.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var U=q[y];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ci=!!qc,Qc=qc=null}finally{Et=u,H.p=l,T.T=n}}t.current=e,Jt=2}}function Yd(){if(Jt===2){Jt=0;var t=jn,e=Yl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=T.T,T.T=null;var l=H.p;H.p=2;var u=Et;Et|=4;try{yd(t,e.alternate,e)}finally{Et=u,H.p=l,T.T=n}}Jt=3}}function Gd(){if(Jt===4||Jt===3){Jt=0,gv();var t=jn,e=Yl,n=sn,l=jd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,Yl=jn=null,Ld(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(An=null),Gi(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(Pl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=T.T,u=H.p,H.p=2,T.T=null;try{for(var r=t.onRecoverableError,o=0;o<l.length;o++){var y=l[o];r(y.value,{componentStack:y.stack})}}finally{T.T=e,H.p=u}}(sn&3)!==0&&Pu(),Xe(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Oc?Da++:(Da=0,Oc=t):Da=0,Ra(0)}}function Ld(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,da(e)))}function Pu(){return Bd(),Yd(),Gd(),Xd()}function Xd(){if(Jt!==5)return!1;var t=jn,e=bc;bc=0;var n=Gi(sn),l=T.T,u=H.p;try{H.p=32>n?32:n,T.T=null,n=Sc,Sc=null;var r=jn,o=sn;if(Jt=0,Yl=jn=null,sn=0,(Et&6)!==0)throw Error(s(331));var y=Et;if(Et|=4,Ed(r.current),Od(r,r.current,o,n),Et=y,Ra(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(Pl,r)}catch{}return!0}finally{H.p=u,T.T=l,Ld(t,e)}}function Kd(t,e,n){e=ze(n,e),e=Ir(t.stateNode,e,2),t=Sn(t,e,2),t!==null&&(Wl(t,2),Xe(t))}function jt(t,e,n){if(t.tag===3)Kd(t,t,n);else for(;e!==null;){if(e.tag===3){Kd(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(An===null||!An.has(l))){t=ze(n,t),n=Zf(2),l=Sn(e,n,2),l!==null&&(Vf(n,l,e,t),Wl(l,2),Xe(l));break}}e=e.return}}function Ec(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Km;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(n)||(mc=!0,u.add(n),t=Fm.bind(null,t,e,n),e.then(t,t))}function Fm(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Dt===t&&(pt&n)===n&&(Ht===4||Ht===3&&(pt&62914560)===pt&&300>ye()-Ku?(Et&2)===0&&Gl(t,0):pc|=n,Bl===pt&&(Bl=0)),Xe(t)}function Zd(t,e){e===0&&(e=Hs()),t=Zn(t,e),t!==null&&(Wl(t,e),Xe(t))}function Pm(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Zd(t,n)}function $m(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(e),Zd(t,n)}function Wm(t,e){return Hi(t,e)}var $u=null,Xl=null,Tc=!1,Wu=!1,Ac=!1,Mn=0;function Xe(t){t!==Xl&&t.next===null&&(Xl===null?$u=Xl=t:Xl=Xl.next=t),Wu=!0,Tc||(Tc=!0,tp())}function Ra(t,e){if(!Ac&&Wu){Ac=!0;do for(var n=!1,l=$u;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var o=l.suspendedLanes,y=l.pingedLanes;r=(1<<31-me(42|t)+1)-1,r&=u&~(o&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Fd(l,r))}else r=pt,r=nu(l,l===Dt?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||$l(l,r)||(n=!0,Fd(l,r));l=l.next}while(n);Ac=!1}}function Im(){Vd()}function Vd(){Wu=Tc=!1;var t=0;Mn!==0&&op()&&(t=Mn);for(var e=ye(),n=null,l=$u;l!==null;){var u=l.next,r=Jd(l,e);r===0?(l.next=null,n===null?$u=u:n.next=u,u===null&&(Xl=n)):(n=l,(t!==0||(r&3)!==0)&&(Wu=!0)),l=u}Jt!==0&&Jt!==5||Ra(t),Mn!==0&&(Mn=0)}function Jd(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var o=31-me(r),y=1<<o,g=u[o];g===-1?((y&n)===0||(y&l)!==0)&&(u[o]=Av(y,e)):g<=e&&(t.expiredLanes|=y),r&=~y}if(e=Dt,n=pt,n=nu(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&wi(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||$l(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&wi(l),Gi(n)){case 2:case 8:n=Qs;break;case 32:n=Wa;break;case 268435456:n=Ns;break;default:n=Wa}return l=kd.bind(null,t),n=Hi(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&wi(l),t.callbackPriority=2,t.callbackNode=null,2}function kd(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Pu()&&t.callbackNode!==n)return null;var l=pt;return l=nu(t,t===Dt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Md(t,l,e),Jd(t,ye()),t.callbackNode!=null&&t.callbackNode===n?kd.bind(null,t):null)}function Fd(t,e){if(Pu())return null;Md(t,e,!0)}function tp(){dp(function(){(Et&6)!==0?Hi(qs,Im):Vd()})}function jc(){if(Mn===0){var t=zl;t===0&&(t=Ia,Ia<<=1,(Ia&261888)===0&&(Ia=256)),Mn=t}return Mn}function Pd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:iu(""+t)}function $d(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function ep(t,e,n,l,u){if(e==="submit"&&n&&n.stateNode===u){var r=Pd((u[re]||null).action),o=l.submitter;o&&(e=(e=o[re]||null)?Pd(e.formAction):o.getAttribute("formAction"),e!==null&&(r=e,o=null));var y=new ou("action","action",null,l,u);t.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Mn!==0){var g=o?$d(u,o):new FormData(u);Jr(n,{pending:!0,data:g,method:u.method,action:r},null,g)}}else typeof r=="function"&&(y.preventDefault(),g=o?$d(u,o):new FormData(u),Jr(n,{pending:!0,data:g,method:u.method,action:r},r,g))},currentTarget:u}]})}}for(var zc=0;zc<or.length;zc++){var Mc=or[zc],np=Mc.toLowerCase(),lp=Mc[0].toUpperCase()+Mc.slice(1);Qe(np,"on"+lp)}Qe(jo,"onAnimationEnd"),Qe(zo,"onAnimationIteration"),Qe(Mo,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(bm,"onTransitionRun"),Qe(Sm,"onTransitionStart"),Qe(Om,"onTransitionCancel"),Qe(Co,"onTransitionEnd"),yl("onMouseEnter",["mouseout","mouseover"]),yl("onMouseLeave",["mouseout","mouseover"]),yl("onPointerEnter",["pointerout","pointerover"]),yl("onPointerLeave",["pointerout","pointerover"]),Gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ua="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(" "),ap=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ua));function Wd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],u=l.event;l=l.listeners;t:{var r=void 0;if(e)for(var o=l.length-1;0<=o;o--){var y=l[o],g=y.instance,E=y.currentTarget;if(y=y.listener,g!==r&&u.isPropagationStopped())break t;r=y,u.currentTarget=E;try{r(u)}catch(C){hu(C)}u.currentTarget=null,r=g}else for(o=0;o<l.length;o++){if(y=l[o],g=y.instance,E=y.currentTarget,y=y.listener,g!==r&&u.isPropagationStopped())break t;r=y,u.currentTarget=E;try{r(u)}catch(C){hu(C)}u.currentTarget=null,r=g}}}}function mt(t,e){var n=e[Li];n===void 0&&(n=e[Li]=new Set);var l=t+"__bubble";n.has(l)||(Id(e,t,2,!1),n.add(l))}function Cc(t,e,n){var l=0;e&&(l|=4),Id(n,t,l,e)}var Iu="_reactListening"+Math.random().toString(36).slice(2);function Dc(t){if(!t[Iu]){t[Iu]=!0,Ks.forEach(function(n){n!=="selectionchange"&&(ap.has(n)||Cc(n,!1,t),Cc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Iu]||(e[Iu]=!0,Cc("selectionchange",!1,e))}}function Id(t,e,n,l){switch(zh(e)){case 2:var u=Rp;break;case 8:u=Up;break;default:u=Vc}n=u.bind(null,e,n,t),u=void 0,!$i||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function Rc(t,e,n,l,u){var r=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var y=l.stateNode.containerInfo;if(y===u)break;if(o===4)for(o=l.return;o!==null;){var g=o.tag;if((g===3||g===4)&&o.stateNode.containerInfo===u)return;o=o.return}for(;y!==null;){if(o=fl(y),o===null)return;if(g=o.tag,g===5||g===6||g===26||g===27){l=r=o;continue t}y=y.parentNode}}l=l.return}no(function(){var E=r,C=Fi(n),q=[];t:{var A=Do.get(t);if(A!==void 0){var z=ou,k=t;switch(t){case"keypress":if(cu(n)===0)break t;case"keydown":case"keyup":z=$v;break;case"focusin":k="focus",z=er;break;case"focusout":k="blur",z=er;break;case"beforeblur":case"afterblur":z=er;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=uo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Bv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=tm;break;case jo:case zo:case Mo:z=Lv;break;case Co:z=nm;break;case"scroll":case"scrollend":z=Hv;break;case"wheel":z=am;break;case"copy":case"cut":case"paste":z=Kv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=ro;break;case"toggle":case"beforetoggle":z=im}var lt=(e&4)!==0,Ct=!lt&&(t==="scroll"||t==="scrollend"),O=lt?A!==null?A+"Capture":null:A;lt=[];for(var S=E,x;S!==null;){var U=S;if(x=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||x===null||O===null||(U=ea(S,O),U!=null&&lt.push(qa(S,U,x))),Ct)break;S=S.return}0<lt.length&&(A=new z(A,k,null,n,C),q.push({event:A,listeners:lt}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",A&&n!==ki&&(k=n.relatedTarget||n.fromElement)&&(fl(k)||k[ol]))break t;if((z||A)&&(A=C.window===C?C:(A=C.ownerDocument)?A.defaultView||A.parentWindow:window,z?(k=n.relatedTarget||n.toElement,z=E,k=k?fl(k):null,k!==null&&(Ct=d(k),lt=k.tag,k!==Ct||lt!==5&&lt!==27&&lt!==6)&&(k=null)):(z=null,k=E),z!==k)){if(lt=uo,U="onMouseLeave",O="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(lt=ro,U="onPointerLeave",O="onPointerEnter",S="pointer"),Ct=z==null?A:ta(z),x=k==null?A:ta(k),A=new lt(U,S+"leave",z,n,C),A.target=Ct,A.relatedTarget=x,U=null,fl(C)===E&&(lt=new lt(O,S+"enter",k,n,C),lt.target=x,lt.relatedTarget=Ct,U=lt),Ct=U,z&&k)e:{for(lt=up,O=z,S=k,x=0,U=O;U;U=lt(U))x++;U=0;for(var nt=S;nt;nt=lt(nt))U++;for(;0<x-U;)O=lt(O),x--;for(;0<U-x;)S=lt(S),U--;for(;x--;){if(O===S||S!==null&&O===S.alternate){lt=O;break e}O=lt(O),S=lt(S)}lt=null}else lt=null;z!==null&&th(q,A,z,lt,!1),k!==null&&Ct!==null&&th(q,Ct,k,lt,!0)}}t:{if(A=E?ta(E):window,z=A.nodeName&&A.nodeName.toLowerCase(),z==="select"||z==="input"&&A.type==="file")var Ot=mo;else if(yo(A))if(po)Ot=mm;else{Ot=ym;var W=hm}else z=A.nodeName,!z||z.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?E&&Ji(E.elementType)&&(Ot=mo):Ot=vm;if(Ot&&(Ot=Ot(t,E))){vo(q,Ot,n,C);break t}W&&W(t,A,E),t==="focusout"&&E&&A.type==="number"&&E.memoizedProps.value!=null&&Vi(A,"number",A.value)}switch(W=E?ta(E):window,t){case"focusin":(yo(W)||W.contentEditable==="true")&&(Sl=W,rr=E,sa=null);break;case"focusout":sa=rr=Sl=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,To(q,n,C);break;case"selectionchange":if(gm)break;case"keydown":case"keyup":To(q,n,C)}var ft;if(lr)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 bl?fo(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(co&&n.locale!=="ko"&&(bl||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&bl&&(ft=lo()):(hn=C,Wi="value"in hn?hn.value:hn.textContent,bl=!0)),W=ti(E,gt),0<W.length&&(gt=new io(gt,t,null,n,C),q.push({event:gt,listeners:W}),ft?gt.data=ft:(ft=ho(n),ft!==null&&(gt.data=ft)))),(ft=cm?sm(t,n):om(t,n))&&(gt=ti(E,"onBeforeInput"),0<gt.length&&(W=new io("onBeforeInput","beforeinput",null,n,C),q.push({event:W,listeners:gt}),W.data=ft)),ep(q,t,E,n,C)}Wd(q,e)})}function qa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ti(t,e){for(var n=e+"Capture",l=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=ea(t,n),u!=null&&l.unshift(qa(t,u,r)),u=ea(t,e),u!=null&&l.push(qa(t,u,r))),t.tag===3)return l;t=t.return}return[]}function up(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function th(t,e,n,l,u){for(var r=e._reactName,o=[];n!==null&&n!==l;){var y=n,g=y.alternate,E=y.stateNode;if(y=y.tag,g!==null&&g===l)break;y!==5&&y!==26&&y!==27||E===null||(g=E,u?(E=ea(n,r),E!=null&&o.unshift(qa(n,E,g))):u||(E=ea(n,r),E!=null&&o.push(qa(n,E,g)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var ip=/\r\n?/g,rp=/\u0000|\uFFFD/g;function eh(t){return(typeof t=="string"?t:""+t).replace(ip,`
`).replace(rp,"")}function nh(t,e){return e=eh(e),eh(t)===e}function Mt(t,e,n,l,u,r){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ml(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ml(t,""+l);break;case"className":au(t,"class",l);break;case"tabIndex":au(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":au(t,n,l);break;case"style":to(t,l,r);break;case"data":if(e!=="object"){au(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=iu(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="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(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=iu(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Je);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=iu(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":mt("beforetoggle",t),mt("toggle",t),lu(t,"popover",l);break;case"xlinkActuate":Ve(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ve(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ve(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ve(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ve(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ve(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":lu(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Qv.get(n)||n,lu(t,n,l))}}function Uc(t,e,n,l,u,r){switch(n){case"style":to(t,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ml(t,l):(typeof l=="number"||typeof l=="bigint")&&ml(t,""+l);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zs.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),r=t[re]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof l=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,u);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):lu(t,n,l)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var l=!1,u=!1,r;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];if(o!=null)switch(r){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Mt(t,e,r,o,n,null)}}u&&Mt(t,e,"srcSet",n.srcSet,n,null),l&&Mt(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var y=r=o=u=null,g=null,E=null;for(l in n)if(n.hasOwnProperty(l)){var C=n[l];if(C!=null)switch(l){case"name":u=C;break;case"type":o=C;break;case"checked":g=C;break;case"defaultChecked":E=C;break;case"value":r=C;break;case"defaultValue":y=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(s(137,e));break;default:Mt(t,e,l,C,n,null)}}Ps(t,r,y,g,E,o,u,!1);return;case"select":mt("invalid",t),l=o=r=null;for(u in n)if(n.hasOwnProperty(u)&&(y=n[u],y!=null))switch(u){case"value":r=y;break;case"defaultValue":o=y;break;case"multiple":l=y;default:Mt(t,e,u,y,n,null)}e=r,n=o,t.multiple=!!l,e!=null?vl(t,!!l,e,!1):n!=null&&vl(t,!!l,n,!0);return;case"textarea":mt("invalid",t),r=u=l=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":l=y;break;case"defaultValue":u=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Mt(t,e,o,y,n,null)}Ws(t,l,u,r);return;case"option":for(g in n)if(n.hasOwnProperty(g)&&(l=n[g],l!=null))switch(g){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Mt(t,e,g,l,n,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(l=0;l<Ua.length;l++)mt(Ua[l],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("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(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Mt(t,e,E,l,n,null)}return;default:if(Ji(e)){for(C in n)n.hasOwnProperty(C)&&(l=n[C],l!==void 0&&Uc(t,e,C,l,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(l=n[y],l!=null&&Mt(t,e,y,l,n,null))}function cp(t,e,n,l){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,y=null,g=null,E=null,C=null;for(z in n){var q=n[z];if(n.hasOwnProperty(z)&&q!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":g=q;default:l.hasOwnProperty(z)||Mt(t,e,z,null,l,q)}}for(var A in l){var z=l[A];if(q=n[A],l.hasOwnProperty(A)&&(z!=null||q!=null))switch(A){case"type":r=z;break;case"name":u=z;break;case"checked":E=z;break;case"defaultChecked":C=z;break;case"value":o=z;break;case"defaultValue":y=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,e));break;default:z!==q&&Mt(t,e,A,z,l,q)}}Zi(t,o,y,g,E,C,r,u);return;case"select":z=o=y=A=null;for(r in n)if(g=n[r],n.hasOwnProperty(r)&&g!=null)switch(r){case"value":break;case"multiple":z=g;default:l.hasOwnProperty(r)||Mt(t,e,r,null,l,g)}for(u in l)if(r=l[u],g=n[u],l.hasOwnProperty(u)&&(r!=null||g!=null))switch(u){case"value":A=r;break;case"defaultValue":y=r;break;case"multiple":o=r;default:r!==g&&Mt(t,e,u,r,l,g)}e=y,n=o,l=z,A!=null?vl(t,!!n,A,!1):!!l!=!!n&&(e!=null?vl(t,!!n,e,!0):vl(t,!!n,n?[]:"",!1));return;case"textarea":z=A=null;for(y in n)if(u=n[y],n.hasOwnProperty(y)&&u!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Mt(t,e,y,null,l,u)}for(o in l)if(u=l[o],r=n[o],l.hasOwnProperty(o)&&(u!=null||r!=null))switch(o){case"value":A=u;break;case"defaultValue":z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==r&&Mt(t,e,o,u,l,r)}$s(t,A,z);return;case"option":for(var k in n)if(A=n[k],n.hasOwnProperty(k)&&A!=null&&!l.hasOwnProperty(k))switch(k){case"selected":t.selected=!1;break;default:Mt(t,e,k,null,l,A)}for(g in l)if(A=l[g],z=n[g],l.hasOwnProperty(g)&&A!==z&&(A!=null||z!=null))switch(g){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Mt(t,e,g,A,l,z)}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 lt in n)A=n[lt],n.hasOwnProperty(lt)&&A!=null&&!l.hasOwnProperty(lt)&&Mt(t,e,lt,null,l,A);for(E in l)if(A=l[E],z=n[E],l.hasOwnProperty(E)&&A!==z&&(A!=null||z!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,e));break;default:Mt(t,e,E,A,l,z)}return;default:if(Ji(e)){for(var Ct in n)A=n[Ct],n.hasOwnProperty(Ct)&&A!==void 0&&!l.hasOwnProperty(Ct)&&Uc(t,e,Ct,void 0,l,A);for(C in l)A=l[C],z=n[C],!l.hasOwnProperty(C)||A===z||A===void 0&&z===void 0||Uc(t,e,C,A,l,z);return}}for(var O in n)A=n[O],n.hasOwnProperty(O)&&A!=null&&!l.hasOwnProperty(O)&&Mt(t,e,O,null,l,A);for(q in l)A=l[q],z=n[q],!l.hasOwnProperty(q)||A===z||A==null&&z==null||Mt(t,e,q,A,l,z)}function lh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var u=n[l],r=u.transferSize,o=u.initiatorType,y=u.duration;if(r&&y&&lh(o)){for(o=0,y=u.responseEnd,l+=1;l<n.length;l++){var g=n[l],E=g.startTime;if(E>y)break;var C=g.transferSize,q=g.initiatorType;C&&lh(q)&&(g=g.responseEnd,o+=C*(g<y?1:(y-E)/(g-E)))}if(--l,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 qc=null,Qc=null;function ei(t){return t.nodeType===9?t:t.ownerDocument}function ah(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 uh(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 Nc(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 Hc=null;function op(){var t=window.event;return t&&t.type==="popstate"?t===Hc?!1:(Hc=t,!0):(Hc=null,!1)}var ih=typeof setTimeout=="function"?setTimeout:void 0,fp=typeof clearTimeout=="function"?clearTimeout:void 0,rh=typeof Promise=="function"?Promise:void 0,dp=typeof queueMicrotask=="function"?queueMicrotask:typeof rh<"u"?function(t){return rh.resolve(null).then(t).catch(hp)}:ih;function hp(t){setTimeout(function(){throw t})}function Cn(t){return t==="head"}function ch(t,e){var n=e,l=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(u),Jl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Qa(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Qa(n);for(var r=n.firstChild;r;){var o=r.nextSibling,y=r.nodeName;r[Il]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=o}}else n==="body"&&Qa(t.ownerDocument.body);n=u}while(n);Jl(e)}function sh(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function wc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wc(n),Xi(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function yp(t,e,n,l){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Il])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 vp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ue(t.nextSibling),t===null))return null;return t}function oh(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 Bc(t){return t.data==="$?"||t.data==="$~"}function Yc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function mp(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}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 Gc=null;function fh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ue(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function dh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function hh(t,e,n){switch(e=ei(n),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Qa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Xi(t)}var qe=new Map,yh=new Set;function ni(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var on=H.d;H.d={f:pp,r:gp,D:bp,C:Sp,L:Op,m:_p,X:Ep,S:xp,M:Tp};function pp(){var t=on.f(),e=Ju();return t||e}function gp(t){var e=dl(t);e!==null&&e.tag===5&&e.type==="form"?Df(e):on.r(t)}var Kl=typeof document>"u"?null:document;function vh(t,e,n){var l=Kl;if(l&&typeof e=="string"&&e){var u=Ae(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),yh.has(u)||(yh.add(u),t={rel:t,crossOrigin:n,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),ee(e,"link",t),kt(e),l.head.appendChild(e)))}}function bp(t){on.D(t),vh("dns-prefetch",t,null)}function Sp(t,e){on.C(t,e),vh("preconnect",t,e)}function Op(t,e,n){on.L(t,e,n);var l=Kl;if(l&&t&&e){var u='link[rel="preload"][as="'+Ae(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ae(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ae(n.imageSizes)+'"]')):u+='[href="'+Ae(t)+'"]';var r=u;switch(e){case"style":r=Zl(t);break;case"script":r=Vl(t)}qe.has(r)||(t=_({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),qe.set(r,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(Na(r))||e==="script"&&l.querySelector(Ha(r))||(e=l.createElement("link"),ee(e,"link",t),kt(e),l.head.appendChild(e)))}}function _p(t,e){on.m(t,e);var n=Kl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ae(l)+'"][href="'+Ae(t)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Vl(t)}if(!qe.has(r)&&(t=_({rel:"modulepreload",href:t},e),qe.set(r,t),n.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ha(r)))return}l=n.createElement("link"),ee(l,"link",t),kt(l),n.head.appendChild(l)}}}function xp(t,e,n){on.S(t,e,n);var l=Kl;if(l&&t){var u=hl(l).hoistableStyles,r=Zl(t);e=e||"default";var o=u.get(r);if(!o){var y={loading:0,preload:null};if(o=l.querySelector(Na(r)))y.loading=5;else{t=_({rel:"stylesheet",href:t,"data-precedence":e},n),(n=qe.get(r))&&Lc(t,n);var g=o=l.createElement("link");kt(g),ee(g,"link",t),g._p=new Promise(function(E,C){g.onload=E,g.onerror=C}),g.addEventListener("load",function(){y.loading|=1}),g.addEventListener("error",function(){y.loading|=2}),y.loading|=4,li(o,e,l)}o={type:"stylesheet",instance:o,count:1,state:y},u.set(r,o)}}}function Ep(t,e){on.X(t,e);var n=Kl;if(n&&t){var l=hl(n).hoistableScripts,u=Vl(t),r=l.get(u);r||(r=n.querySelector(Ha(u)),r||(t=_({src:t,async:!0},e),(e=qe.get(u))&&Xc(t,e),r=n.createElement("script"),kt(r),ee(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Tp(t,e){on.M(t,e);var n=Kl;if(n&&t){var l=hl(n).hoistableScripts,u=Vl(t),r=l.get(u);r||(r=n.querySelector(Ha(u)),r||(t=_({src:t,async:!0,type:"module"},e),(e=qe.get(u))&&Xc(t,e),r=n.createElement("script"),kt(r),ee(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function mh(t,e,n,l){var u=(u=rt.current)?ni(u):null;if(!u)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Zl(n.href),n=hl(u).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Zl(n.href);var r=hl(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(Na(t)))&&!r._p&&(o.instance=r,o.state.loading=5),qe.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qe.set(t,n),r||Ap(u,t,n,o.state))),e&&l===null)throw Error(s(528,""));return o}if(e&&l!==null)throw Error(s(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Vl(n),n=hl(u).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Zl(t){return'href="'+Ae(t)+'"'}function Na(t){return'link[rel="stylesheet"]['+t+"]"}function ph(t){return _({},t,{"data-precedence":t.precedence,precedence:null})}function Ap(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ee(e,"link",n),kt(e),t.head.appendChild(e))}function Vl(t){return'[src="'+Ae(t)+'"]'}function Ha(t){return"script[async]"+t}function gh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ae(n.href)+'"]');if(l)return e.instance=l,kt(l),l;var u=_({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),kt(l),ee(l,"style",u),li(l,n.precedence,t),e.instance=l;case"stylesheet":u=Zl(n.href);var r=t.querySelector(Na(u));if(r)return e.state.loading|=4,e.instance=r,kt(r),r;l=ph(n),(u=qe.get(u))&&Lc(l,u),r=(t.ownerDocument||t).createElement("link"),kt(r);var o=r;return o._p=new Promise(function(y,g){o.onload=y,o.onerror=g}),ee(r,"link",l),e.state.loading|=4,li(r,n.precedence,t),e.instance=r;case"script":return r=Vl(n.src),(u=t.querySelector(Ha(r)))?(e.instance=u,kt(u),u):(l=n,(u=qe.get(r))&&(l=_({},n),Xc(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),kt(u),ee(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,li(l,n.precedence,t));return e.instance}function li(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,r=u,o=0;o<l.length;o++){var y=l[o];if(y.dataset.precedence===e)r=y;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Lc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Xc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ai=null;function bh(t,e,n){if(ai===null){var l=new Map,u=ai=new Map;u.set(n,l)}else u=ai,l=u.get(n),l||(l=new Map,u.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var r=n[u];if(!(r[Il]||r[$t]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var o=r.getAttribute(e)||"";o=t+o;var y=l.get(o);y?y.push(r):l.set(o,[r])}}return l}function Sh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function jp(t,e,n){if(n===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 Oh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function zp(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Zl(l.href),r=e.querySelector(Na(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ui.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,kt(r);return}r=e.ownerDocument||e,l=ph(l),(u=qe.get(u))&&Lc(l,u),r=r.createElement("link"),kt(r);var o=r;o._p=new Promise(function(y,g){o.onload=y,o.onerror=g}),ee(r,"link",l),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=ui.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Kc=0;function Mp(t,e){return t.stylesheets&&t.count===0&&ri(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&ri(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Kc===0&&(Kc=62500*sp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ri(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Kc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ri(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ii=null;function ri(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ii=new Map,e.forEach(Cp,t),ii=null,ui.call(t))}function Cp(t,e){if(!(e.state.loading&4)){var n=ii.get(t);if(n)var l=n.get(null);else{n=new Map,ii.set(t,n);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")&&(n.set(o.dataset.precedence,o),l=o)}l&&n.set(null,l)}u=e.instance,o=u.getAttribute("data-precedence"),r=n.get(o)||l,r===l&&n.set(null,u),n.set(o,u),this.count++,l=ui.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),r?r.parentNode.insertBefore(u,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var wa={$$typeof:Tt,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Dp(t,e,n,l,u,r,o,y,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=Bi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bi(0),this.hiddenUpdates=Bi(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function _h(t,e,n,l,u,r,o,y,g,E,C,q){return t=new Dp(t,e,n,o,g,E,C,q,y),e=1,r===!0&&(e|=24),r=ge(3,null,null,e),t.current=r,r.stateNode=t,e=xr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:e},jr(r),t}function xh(t){return t?(t=xl,t):xl}function Eh(t,e,n,l,u,r){u=xh(u),l.context===null?l.context=u:l.pendingContext=u,l=bn(e),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=Sn(t,l,e),n!==null&&(he(n,t,e),ma(n,t,e))}function Th(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Zc(t,e){Th(t,e),(t=t.alternate)&&Th(t,e)}function Ah(t){if(t.tag===13||t.tag===31){var e=Zn(t,67108864);e!==null&&he(e,t,67108864),Zc(t,67108864)}}function jh(t){if(t.tag===13||t.tag===31){var e=xe();e=Yi(e);var n=Zn(t,e);n!==null&&he(n,t,e),Zc(t,e)}}var ci=!0;function Rp(t,e,n,l){var u=T.T;T.T=null;var r=H.p;try{H.p=2,Vc(t,e,n,l)}finally{H.p=r,T.T=u}}function Up(t,e,n,l){var u=T.T;T.T=null;var r=H.p;try{H.p=8,Vc(t,e,n,l)}finally{H.p=r,T.T=u}}function Vc(t,e,n,l){if(ci){var u=Jc(l);if(u===null)Rc(t,e,l,si,n),Mh(t,l);else if(Qp(u,t,e,n,l))l.stopPropagation();else if(Mh(t,l),e&4&&-1<qp.indexOf(t)){for(;u!==null;){var r=dl(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var o=Yn(r.pendingLanes);if(o!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;o;){var g=1<<31-me(o);y.entanglements[1]|=g,o&=~g}Xe(r),(Et&6)===0&&(Zu=ye()+500,Ra(0))}}break;case 31:case 13:y=Zn(r,2),y!==null&&he(y,r,2),Ju(),Zc(r,2)}if(r=Jc(l),r===null&&Rc(t,e,l,si,n),r===u)break;u=r}u!==null&&l.stopPropagation()}else Rc(t,e,l,null,n)}}function Jc(t){return t=Fi(t),kc(t)}var si=null;function kc(t){if(si=null,t=fl(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===31){if(t=v(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return si=t,null}function zh(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(bv()){case qs:return 2;case Qs:return 8;case Wa:case Sv:return 32;case Ns:return 268435456;default:return 32}default:return 32}}var Fc=!1,Dn=null,Rn=null,Un=null,Ba=new Map,Ya=new Map,qn=[],qp="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 Mh(t,e){switch(t){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":Ba.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ya.delete(e.pointerId)}}function Ga(t,e,n,l,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[u]},e!==null&&(e=dl(e),e!==null&&Ah(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Qp(t,e,n,l,u){switch(e){case"focusin":return Dn=Ga(Dn,t,e,n,l,u),!0;case"dragenter":return Rn=Ga(Rn,t,e,n,l,u),!0;case"mouseover":return Un=Ga(Un,t,e,n,l,u),!0;case"pointerover":var r=u.pointerId;return Ba.set(r,Ga(Ba.get(r)||null,t,e,n,l,u)),!0;case"gotpointercapture":return r=u.pointerId,Ya.set(r,Ga(Ya.get(r)||null,t,e,n,l,u)),!0}return!1}function Ch(t){var e=fl(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,Ls(t.priority,function(){jh(n)});return}}else if(e===31){if(e=v(n),e!==null){t.blockedOn=e,Ls(t.priority,function(){jh(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function oi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Jc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);ki=l,n.target.dispatchEvent(l),ki=null}else return e=dl(n),e!==null&&Ah(e),t.blockedOn=n,!1;e.shift()}return!0}function Dh(t,e,n){oi(t)&&n.delete(e)}function Np(){Fc=!1,Dn!==null&&oi(Dn)&&(Dn=null),Rn!==null&&oi(Rn)&&(Rn=null),Un!==null&&oi(Un)&&(Un=null),Ba.forEach(Dh),Ya.forEach(Dh)}function fi(t,e){t.blockedOn===e&&(t.blockedOn=null,Fc||(Fc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Np)))}var di=null;function Rh(t){di!==t&&(di=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){di===t&&(di=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(kc(l||n)===null)continue;break}var r=dl(n);r!==null&&(t.splice(e,3),e-=3,Jr(r,{pending:!0,data:u,method:n.method,action:l},l,u))}}))}function Jl(t){function e(g){return fi(g,t)}Dn!==null&&fi(Dn,t),Rn!==null&&fi(Rn,t),Un!==null&&fi(Un,t),Ba.forEach(e),Ya.forEach(e);for(var n=0;n<qn.length;n++){var l=qn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)Ch(n),n.blockedOn===null&&qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var u=n[l],r=n[l+1],o=u[re]||null;if(typeof r=="function")o||Rh(n);else if(o){var y=null;if(r&&r.hasAttribute("formAction")){if(u=r,o=r[re]||null)y=o.formAction;else if(kc(u)!==null)continue}else y=o.action;typeof y=="function"?n[l+1]=y:(n.splice(l,3),l-=3),Rh(n)}}}function Uh(){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),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Pc(t){this._internalRoot=t}hi.prototype.render=Pc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var n=e.current,l=xe();Eh(n,l,t,e,null,null)},hi.prototype.unmount=Pc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Eh(t.current,2,null,t,null,null),Ju(),e[ol]=null}};function hi(t){this._internalRoot=t}hi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Gs();t={blockedOn:null,target:t,priority:e};for(var n=0;n<qn.length&&e!==0&&e<qn[n].priority;n++);qn.splice(n,0,t),n===0&&Ch(t)}};var qh=i.version;if(qh!=="19.2.1")throw Error(s(527,qh,"19.2.1"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=p(e),t=t!==null?j(t):null,t=t===null?null:t.stateNode,t};var Hp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yi.isDisabled&&yi.supportsFiber)try{Pl=yi.inject(Hp),ve=yi}catch{}}return Xa.createRoot=function(t,e){if(!f(t))throw Error(s(299));var n=!1,l="",u=Gf,r=Lf,o=Xf;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=_h(t,1,!1,null,null,n,l,null,u,r,o,Uh),t[ol]=e.current,Dc(t),new Pc(e)},Xa.hydrateRoot=function(t,e,n){if(!f(t))throw Error(s(299));var l=!1,u="",r=Gf,o=Lf,y=Xf,g=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(g=n.formState)),e=_h(t,1,!0,e,n??null,l,u,g,r,o,y,Uh),e.context=xh(null),n=e.current,l=xe(),l=Yi(l),u=bn(l),u.callback=null,Sn(n,u,l),n=l,e.current.lanes=n,Wl(e,n),Xe(e),t[ol]=e.current,Dc(t),new hi(e)},Xa.version="19.2.1",Xa}var Kh;function Pp(){if(Kh)return Ic.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(),Ic.exports=Fp(),Ic.exports}var $p=Pp();const Wp="modulepreload",Ip=function(a){return"/"+a},Zh={},t0=function(i,c,s){let f=Promise.resolve();if(c&&c.length>0){let m=function(p){return Promise.all(p.map(j=>Promise.resolve(j).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=h?.nonce||h?.getAttribute("nonce");f=m(c.map(p=>{if(p=Ip(p),p in Zh)return;Zh[p]=!0;const j=p.endsWith(".css"),_=j?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${_}`))return;const R=document.createElement("link");if(R.rel=j?"stylesheet":Wp,j||(R.as="script"),R.crossOrigin="",R.href=p,v&&R.setAttribute("nonce",v),document.head.appendChild(R),j)return new Promise((Y,J)=>{R.addEventListener("load",Y),R.addEventListener("error",()=>J(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(h){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=h,window.dispatchEvent(v),!v.defaultPrevented)throw h}return f.then(h=>{for(const v of h||[])v.status==="rejected"&&d(v.reason);return i().catch(d)})};var rl=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(){}},ul=typeof window>"u"||"Deno"in globalThis;function le(){}function e0(a,i){return typeof a=="function"?a(i):a}function ds(a){return typeof a=="number"&&a>=0&&a!==1/0}function by(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Nn(a,i){return typeof a=="function"?a(i):a}function we(a,i){return typeof a=="function"?a(i):a}function Vh(a,i){const{type:c="all",exact:s,fetchStatus:f,predicate:d,queryKey:h,stale:v}=a;if(h){if(s){if(i.queryHash!==Os(h,i.options))return!1}else if(!Va(i.queryKey,h))return!1}if(c!=="all"){const m=i.isActive();if(c==="active"&&!m||c==="inactive"&&m)return!1}return!(typeof v=="boolean"&&i.isStale()!==v||f&&f!==i.state.fetchStatus||d&&!d(i))}function Jh(a,i){const{exact:c,status:s,predicate:f,mutationKey:d}=a;if(d){if(!i.options.mutationKey)return!1;if(c){if(Hn(i.options.mutationKey)!==Hn(d))return!1}else if(!Va(i.options.mutationKey,d))return!1}return!(s&&i.state.status!==s||f&&!f(i))}function Os(a,i){return(i?.queryKeyHashFn||Hn)(a)}function Hn(a){return JSON.stringify(a,(i,c)=>hs(c)?Object.keys(c).sort().reduce((s,f)=>(s[f]=c[f],s),{}):c)}function Va(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(c=>Va(a[c],i[c])):!1}function _s(a,i){if(a===i)return a;const c=kh(a)&&kh(i);if(c||hs(a)&&hs(i)){const s=c?a:Object.keys(a),f=s.length,d=c?i:Object.keys(i),h=d.length,v=c?[]:{},m=new Set(s);let p=0;for(let j=0;j<h;j++){const _=c?j:d[j];(!c&&m.has(_)||c)&&a[_]===void 0&&i[_]===void 0?(v[_]=void 0,p++):(v[_]=_s(a[_],i[_]),v[_]===a[_]&&a[_]!==void 0&&p++)}return f===h&&p===f?a:v}return i}function Oi(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const c in a)if(a[c]!==i[c])return!1;return!0}function kh(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function hs(a){if(!Fh(a))return!1;const i=a.constructor;if(i===void 0)return!0;const c=i.prototype;return!(!Fh(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Fh(a){return Object.prototype.toString.call(a)==="[object Object]"}function n0(a){return new Promise(i=>{setTimeout(i,a)})}function ys(a,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(a,i):c.structuralSharing!==!1?_s(a,i):i}function l0(a,i,c=0){const s=[...a,i];return c&&s.length>c?s.slice(1):s}function a0(a,i,c=0){const s=[i,...a];return c&&s.length>c?s.slice(0,-1):s}var Ee=Symbol();function Sy(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 Oy(a,i){return typeof a=="function"?a(...i):!!a}var u0=class extends rl{#e;#t;#n;constructor(){super(),this.#n=a=>{if(!ul&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#n=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"}},xs=new u0,i0=class extends rl{#e=!0;#t;#n;constructor(){super(),this.#n=a=>{if(!ul&&window.addEventListener){const i=()=>a(!0),c=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#n=a,this.#t?.(),this.#t=a(this.setOnline.bind(this))}setOnline(a){this.#e!==a&&(this.#e=a,this.listeners.forEach(c=>{c(a)}))}isOnline(){return this.#e}},_i=new i0;function vs(){let a,i;const c=new Promise((f,d)=>{a=f,i=d});c.status="pending",c.catch(()=>{});function s(f){Object.assign(c,f),delete c.resolve,delete c.reject}return c.resolve=f=>{s({status:"fulfilled",value:f}),a(f)},c.reject=f=>{s({status:"rejected",reason:f}),i(f)},c}function r0(a){return Math.min(1e3*2**a,3e4)}function _y(a){return(a??"online")==="online"?_i.isOnline():!0}var xy=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function ls(a){return a instanceof xy}function Ey(a){let i=!1,c=0,s=!1,f;const d=vs(),h=N=>{s||(R(new xy(N)),a.abort?.())},v=()=>{i=!0},m=()=>{i=!1},p=()=>xs.isFocused()&&(a.networkMode==="always"||_i.isOnline())&&a.canRun(),j=()=>_y(a.networkMode)&&a.canRun(),_=N=>{s||(s=!0,a.onSuccess?.(N),f?.(),d.resolve(N))},R=N=>{s||(s=!0,a.onError?.(N),f?.(),d.reject(N))},Y=()=>new Promise(N=>{f=P=>{(s||p())&&N(P)},a.onPause?.()}).then(()=>{f=void 0,s||a.onContinue?.()}),J=()=>{if(s)return;let N;const P=c===0?a.initialPromise:void 0;try{N=P??a.fn()}catch(at){N=Promise.reject(at)}Promise.resolve(N).then(_).catch(at=>{if(s)return;const dt=a.retry??(ul?0:3),Tt=a.retryDelay??r0,qt=typeof Tt=="function"?Tt(c,at):Tt,F=dt===!0||typeof dt=="number"&&c<dt||typeof dt=="function"&&dt(c,at);if(i||!F){R(at);return}c++,a.onFail?.(c,at),n0(qt).then(()=>p()?void 0:Y()).then(()=>{i?R(at):J()})})};return{promise:d,cancel:h,continue:()=>(f?.(),d),cancelRetry:v,continueRetry:m,canStart:j,start:()=>(j()?J():Y().then(J),d)}}var c0=a=>setTimeout(a,0);function s0(){let a=[],i=0,c=v=>{v()},s=v=>{v()},f=c0;const d=v=>{i?a.push(v):f(()=>{c(v)})},h=()=>{const v=a;a=[],v.length&&f(()=>{s(()=>{v.forEach(m=>{c(m)})})})};return{batch:v=>{let m;i++;try{m=v()}finally{i--,i||h()}return m},batchCalls:v=>(...m)=>{d(()=>{v(...m)})},schedule:d,setNotifyFunction:v=>{c=v},setBatchNotifyFunction:v=>{s=v},setScheduler:v=>{f=v}}}var wt=s0(),Ty=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ds(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(ul?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},o0=class extends Ty{#e;#t;#n;#l;#a;#u;#r;constructor(a){super(),this.#r=!1,this.#u=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#n=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=f0(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.#n.remove(this)}setData(a,i){const c=ys(this.state.data,a,this.options);return this.#i({data:c,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),c}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(le).catch(le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(a=>we(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=>Nn(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:!by(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.#n.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.#n.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 m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const c=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},f=()=>{const m=Sy(this.options,i),j=(()=>{const _={client:this.#l,queryKey:this.queryKey,meta:this.meta};return s(_),_})();return this.#r=!1,this.options.persister?this.options.persister(m,j,this):m(j)},h=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:f};return s(m),m})();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 v=m=>{ls(m)&&m.silent||this.#i({type:"error",error:m}),ls(m)||(this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this)),this.scheduleGc()};return this.#a=Ey({initialPromise:i?.initialPromise,fn:h.fetchFn,abort:c.abort.bind(c),onSuccess:m=>{if(m===void 0){v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(p){v(p);return}this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),this.scheduleGc()},onError:v,onFail:(m,p)=>{this.#i({type:"failed",failureCount:m,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=c=>{switch(a.type){case"failed":return{...c,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Ay(c.data,this.options),fetchMeta:a.meta??null};case"success":return this.#t=void 0,{...c,data:a.data,dataUpdateCount:c.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=a.error;return ls(s)&&s.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...c,error:s,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...a.state}}};this.state=i(this.state),wt.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:a})})}};function Ay(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_y(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function f0(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,c=i!==void 0,s=c?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:c?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var d0=class extends rl{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,c){const s=i.queryKey,f=i.queryHash??Os(s,i);let d=this.get(f);return d||(d=new o0({client:a,queryKey:s,queryHash:f,options:a.defaultQueryOptions(i),state:c,defaultOptions:a.getQueryDefaults(s)}),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(){wt.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(c=>Vh(i,c))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(c=>Vh(a,c)):i}notify(a){wt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){wt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){wt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},h0=class extends Ty{#e;#t;#n;constructor(a){super(),this.mutationId=a.mutationId,this.#t=a.mutationCache,this.#e=[],this.state=a.state||jy(),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.#n?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#l({type:"continue"})};this.#n=Ey({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#l({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#l({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const c=this.state.status==="pending",s=!this.#n.canStart();try{if(c)i();else{this.#l({type:"pending",variables:a,isPaused:s}),await this.#t.config.onMutate?.(a,this);const d=await this.options.onMutate?.(a);d!==this.state.context&&this.#l({type:"pending",context:d,variables:a,isPaused:s})}const f=await this.#n.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.#l({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.#l({type:"error",error:f})}}finally{this.#t.runNext(this)}}#l(a){const i=c=>{switch(a.type){case"failed":return{...c,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,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{...c,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:a.error,failureCount:c.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),wt.batch(()=>{this.#e.forEach(c=>{c.onMutationUpdate(a)}),this.#t.notify({mutation:this,type:"updated",action:a})})}};function jy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var y0=class extends rl{constructor(a={}){super(),this.config=a,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(a,i,c){const s=new h0({mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:c});return this.add(s),s}add(a){this.#e.add(a);const i=vi(a);if(typeof i=="string"){const c=this.#t.get(i);c?c.push(a):this.#t.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#e.delete(a)){const i=vi(a);if(typeof i=="string"){const c=this.#t.get(i);if(c)if(c.length>1){const s=c.indexOf(a);s!==-1&&c.splice(s,1)}else c[0]===a&&this.#t.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=vi(a);if(typeof i=="string"){const s=this.#t.get(i)?.find(f=>f.state.status==="pending");return!s||s===a}else return!0}runNext(a){const i=vi(a);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==a&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){wt.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(c=>Jh(i,c))}findAll(a={}){return this.getAll().filter(i=>Jh(a,i))}notify(a){wt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return wt.batch(()=>Promise.all(a.map(i=>i.continue().catch(le))))}};function vi(a){return a.options.scope?.id}function xi(a){return{onFetch:(i,c)=>{const s=i.options,f=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let v={pages:[],pageParams:[]},m=0;const p=async()=>{let j=!1;const _=J=>{Object.defineProperty(J,"signal",{enumerable:!0,get:()=>(i.signal.aborted?j=!0:i.signal.addEventListener("abort",()=>{j=!0}),i.signal)})},R=Sy(i.options,i.fetchOptions),Y=async(J,N,P)=>{if(j)return Promise.reject();if(N==null&&J.pages.length)return Promise.resolve(J);const dt=(()=>{const X={client:i.client,queryKey:i.queryKey,pageParam:N,direction:P?"backward":"forward",meta:i.options.meta};return _(X),X})(),Tt=await R(dt),{maxPages:qt}=i.options,F=P?a0:l0;return{pages:F(J.pages,Tt,qt),pageParams:F(J.pageParams,N,qt)}};if(f&&d.length){const J=f==="backward",N=J?zy:ms,P={pages:d,pageParams:h},at=N(s,P);v=await Y(P,at,J)}else{const J=a??d.length;do{const N=m===0?h[0]??s.initialPageParam:ms(s,v);if(m>0&&N==null)break;v=await Y(v,N),m++}while(m<J)}return v};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},c):i.fetchFn=p}}}function ms(a,{pages:i,pageParams:c}){const s=i.length-1;return i.length>0?a.getNextPageParam(i[s],i,c[s],c):void 0}function zy(a,{pages:i,pageParams:c}){return i.length>0?a.getPreviousPageParam?.(i[0],i,c[0],c):void 0}function v0(a,i){return i?ms(a,i)!=null:!1}function m0(a,i){return!i||!a.getPreviousPageParam?!1:zy(a,i)!=null}var p0=class{#e;#t;#n;#l;#a;#u;#r;#i;constructor(a={}){this.#e=a.queryCache||new d0,this.#t=a.mutationCache||new y0,this.#n=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=xs.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=_i.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),c=this.#e.build(this,i),s=c.state.data;return s===void 0?this.fetchQuery(a):(a.revalidateIfStale&&c.isStaleByTime(Nn(i.staleTime,c))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(a){return this.#e.findAll(a).map(({queryKey:i,state:c})=>{const s=c.data;return[i,s]})}setQueryData(a,i,c){const s=this.defaultQueryOptions({queryKey:a}),d=this.#e.get(s.queryHash)?.state.data,h=e0(i,d);if(h!==void 0)return this.#e.build(this,s).setData(h,{...c,manual:!0})}setQueriesData(a,i,c){return wt.batch(()=>this.#e.findAll(a).map(({queryKey:s})=>[s,this.setQueryData(s,i,c)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state}removeQueries(a){const i=this.#e;wt.batch(()=>{i.findAll(a).forEach(c=>{i.remove(c)})})}resetQueries(a,i){const c=this.#e;return wt.batch(()=>(c.findAll(a).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const c={revert:!0,...i},s=wt.batch(()=>this.#e.findAll(a).map(f=>f.cancel(c)));return Promise.all(s).then(le).catch(le)}invalidateQueries(a,i={}){return wt.batch(()=>(this.#e.findAll(a).forEach(c=>{c.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const c={...i,cancelRefetch:i.cancelRefetch??!0},s=wt.batch(()=>this.#e.findAll(a).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let d=f.fetch(void 0,c);return c.throwOnError||(d=d.catch(le)),f.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(s).then(le)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const c=this.#e.build(this,i);return c.isStaleByTime(Nn(i.staleTime,c))?c.fetch(i):Promise.resolve(c.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(le).catch(le)}fetchInfiniteQuery(a){return a.behavior=xi(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(le).catch(le)}ensureInfiniteQueryData(a){return a.behavior=xi(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return _i.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#l.set(Hn(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],c={};return i.forEach(s=>{Va(a,s.queryKey)&&Object.assign(c,s.defaultOptions)}),c}setMutationDefaults(a,i){this.#a.set(Hn(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],c={};return i.forEach(s=>{Va(a,s.mutationKey)&&Object.assign(c,s.defaultOptions)}),c}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Os(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.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ja=class extends rl{constructor(a,i){super(),this.options=i,this.#e=a,this.#i=null,this.#r=vs(),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;#n=void 0;#l=void 0;#a;#u;#r;#i;#h;#f;#d;#s;#o;#c;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ph(this.#t,this.options)?this.#y():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ps(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ps(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#O(),this.#t.removeObserver(this)}setOptions(a){const i=this.options,c=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 we(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#t.setOptions(this.options),i._defaulted&&!Oi(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&$h(this.#t,c,this.options,i)&&this.#y(),this.updateResult(),s&&(this.#t!==c||we(this.options.enabled,this.#t)!==we(i.enabled,this.#t)||Nn(this.options.staleTime,this.#t)!==Nn(i.staleTime,this.#t))&&this.#m();const f=this.#p();s&&(this.#t!==c||we(this.options.enabled,this.#t)!==we(i.enabled,this.#t)||f!==this.#c)&&this.#g(f)}getOptimisticResult(a){const i=this.#e.getQueryCache().build(this.#e,a),c=this.createResult(i,a);return b0(this,c)&&(this.#l=c,this.#u=this.options,this.#a=this.#t.state),c}getCurrentResult(){return this.#l}trackResult(a,i){return new Proxy(a,{get:(c,s)=>(this.trackProp(s),i?.(s),Reflect.get(c,s))})}trackProp(a){this.#v.add(a)}getCurrentQuery(){return this.#t}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#e.defaultQueryOptions(a),c=this.#e.getQueryCache().build(this.#e,i);return c.fetch().then(()=>this.createResult(c,i))}fetch(a){return this.#y({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#y(a){this.#_();let i=this.#t.fetch(this.options,a);return a?.throwOnError||(i=i.catch(le)),i}#m(){this.#S();const a=Nn(this.options.staleTime,this.#t);if(ul||this.#l.isStale||!ds(a))return;const c=by(this.#l.dataUpdatedAt,a)+1;this.#s=setTimeout(()=>{this.#l.isStale||this.updateResult()},c)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(a){this.#O(),this.#c=a,!(ul||we(this.options.enabled,this.#t)===!1||!ds(this.#c)||this.#c===0)&&(this.#o=setInterval(()=>{(this.options.refetchIntervalInBackground||xs.isFocused())&&this.#y()},this.#c))}#b(){this.#m(),this.#g(this.#p())}#S(){this.#s&&(clearTimeout(this.#s),this.#s=void 0)}#O(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}createResult(a,i){const c=this.#t,s=this.options,f=this.#l,d=this.#a,h=this.#u,m=a!==c?a.state:this.#n,{state:p}=a;let j={...p},_=!1,R;if(i._optimisticResults){const K=this.hasListeners(),L=!K&&Ph(a,i),et=K&&$h(a,c,i,s);(L||et)&&(j={...j,...Ay(p.data,a.options)}),i._optimisticResults==="isRestoring"&&(j.fetchStatus="idle")}let{error:Y,errorUpdatedAt:J,status:N}=j;R=j.data;let P=!1;if(i.placeholderData!==void 0&&R===void 0&&N==="pending"){let K;f?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(K=f.data,P=!0):K=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,K!==void 0&&(N="success",R=ys(f?.data,K,i),_=!0)}if(i.select&&R!==void 0&&!P)if(f&&R===d?.data&&i.select===this.#h)R=this.#f;else try{this.#h=i.select,R=i.select(R),R=ys(f?.data,R,i),this.#f=R,this.#i=null}catch(K){this.#i=K}this.#i&&(Y=this.#i,R=this.#f,J=Date.now(),N="error");const at=j.fetchStatus==="fetching",dt=N==="pending",Tt=N==="error",qt=dt&&at,F=R!==void 0,M={status:N,fetchStatus:j.fetchStatus,isPending:dt,isSuccess:N==="success",isError:Tt,isInitialLoading:qt,isLoading:qt,data:R,dataUpdatedAt:j.dataUpdatedAt,error:Y,errorUpdatedAt:J,failureCount:j.fetchFailureCount,failureReason:j.fetchFailureReason,errorUpdateCount:j.errorUpdateCount,isFetched:j.dataUpdateCount>0||j.errorUpdateCount>0,isFetchedAfterMount:j.dataUpdateCount>m.dataUpdateCount||j.errorUpdateCount>m.errorUpdateCount,isFetching:at,isRefetching:at&&!dt,isLoadingError:Tt&&!F,isPaused:j.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:Tt&&F,isStale:Es(a,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const K=I=>{M.status==="error"?I.reject(M.error):M.data!==void 0&&I.resolve(M.data)},L=()=>{const I=this.#r=M.promise=vs();K(I)},et=this.#r;switch(et.status){case"pending":a.queryHash===c.queryHash&&K(et);break;case"fulfilled":(M.status==="error"||M.data!==et.value)&&L();break;case"rejected":(M.status!=="error"||M.error!==et.reason)&&L();break}}return M}updateResult(){const a=this.#l,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),Oi(i,a))return;this.#l=i;const c=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,f=typeof s=="function"?s():s;if(f==="all"||!f&&!this.#v.size)return!0;const d=new Set(f??this.#v);return this.options.throwOnError&&d.add("error"),Object.keys(this.#l).some(h=>{const v=h;return this.#l[v]!==a[v]&&d.has(v)})};this.#x({listeners:c()})}#_(){const a=this.#e.getQueryCache().build(this.#e,this.options);if(a===this.#t)return;const i=this.#t;this.#t=a,this.#n=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(a){wt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function g0(a,i){return we(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function Ph(a,i){return g0(a,i)||a.state.data!==void 0&&ps(a,i,i.refetchOnMount)}function ps(a,i,c){if(we(i.enabled,a)!==!1&&Nn(i.staleTime,a)!=="static"){const s=typeof c=="function"?c(a):c;return s==="always"||s!==!1&&Es(a,i)}return!1}function $h(a,i,c,s){return(a!==i||we(s.enabled,a)===!1)&&(!c.suspense||a.state.status!=="error")&&Es(a,c)}function Es(a,i){return we(i.enabled,a)!==!1&&a.isStaleByTime(Nn(i.staleTime,a))}function b0(a,i){return!Oi(a.getCurrentResult(),i)}function Wh(a,i){const c=new Set(i);return a.filter(s=>!c.has(s))}function S0(a,i,c){const s=a.slice(0);return s[i]=c,s}var O0=class extends rl{#e;#t;#n;#l;#a;#u;#r;#i;#h=[];constructor(a,i,c){super(),this.#e=a,this.#l=c,this.#n=[],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.#n=a,this.#l=i,wt.batch(()=>{const c=this.#a,s=this.#s(this.#n);this.#h=s,s.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const f=s.map(v=>v.observer),d=f.map(v=>v.getCurrentResult()),h=f.some((v,m)=>v!==c[m]);c.length===f.length&&!h||(this.#a=f,this.#t=d,this.hasListeners()&&(Wh(c,f).forEach(v=>{v.destroy()}),Wh(f,c).forEach(v=>{v.subscribe(m=>{this.#o(v,m)})}),this.#c()))})}getCurrentResult(){return this.#t}getQueries(){return this.#a.map(a=>a.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(a,i){const c=this.#s(a),s=c.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions));return[s,f=>this.#d(f??s,i),()=>this.#f(s,c)]}#f(a,i){return i.map((c,s)=>{const f=a[s];return c.defaultedQueryOptions.notifyOnChangeProps?f:c.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=_s(this.#u,i(a))),this.#u):a}#s(a){const i=new Map(this.#a.map(s=>[s.options.queryHash,s])),c=[];return a.forEach(s=>{const f=this.#e.defaultQueryOptions(s),d=i.get(f.queryHash);d?c.push({defaultedQueryOptions:f,observer:d}):c.push({defaultedQueryOptions:f,observer:new Ja(this.#e,f)})}),c}#o(a,i){const c=this.#a.indexOf(a);c!==-1&&(this.#t=S0(this.#t,c,i),this.#c())}#c(){if(this.hasListeners()){const a=this.#u,i=this.#f(this.#t,this.#h),c=this.#d(i,this.#l?.combine);a!==c&&wt.batch(()=>{this.listeners.forEach(s=>{s(this.#t)})})}}},My=class extends Ja{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:xi()})}getOptimisticResult(a){return a.behavior=xi(),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:c}=a,s=super.createResult(a,i),{isFetching:f,isRefetching:d,isError:h,isRefetchError:v}=s,m=c.fetchMeta?.fetchMore?.direction,p=h&&m==="forward",j=f&&m==="forward",_=h&&m==="backward",R=f&&m==="backward";return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v0(i,c.data),hasPreviousPage:m0(i,c.data),isFetchNextPageError:p,isFetchingNextPage:j,isFetchPreviousPageError:_,isFetchingPreviousPage:R,isRefetchError:v&&!p&&!_,isRefetching:d&&!j&&!R}}},_0=class extends rl{#e;#t=void 0;#n;#l;constructor(i,c){super(),this.#e=i,this.setOptions(c),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const c=this.options;this.options=this.#e.defaultMutationOptions(i),Oi(this.options,c)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),c?.mutationKey&&this.options.mutationKey&&Hn(c.mutationKey)!==Hn(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#u(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#u()}mutate(i,c){return this.#l=c,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??jy();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){wt.batch(()=>{if(this.#l&&this.hasListeners()){const c=this.#t.variables,s=this.#t.context;i?.type==="success"?(this.#l.onSuccess?.(i.data,c,s),this.#l.onSettled?.(i.data,null,c,s)):i?.type==="error"&&(this.#l.onError?.(i.error,c,s),this.#l.onSettled?.(void 0,i.error,c,s))}this.listeners.forEach(c=>{c(this.#t)})})}},Cy=G.createContext(void 0),ka=a=>{const i=G.useContext(Cy);if(a)return a;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},x0=({client:a,children:i})=>(G.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),Q.jsx(Cy.Provider,{value:a,children:i})),Dy=G.createContext(!1),Ry=()=>G.useContext(Dy);Dy.Provider;function E0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var T0=G.createContext(E0()),Uy=()=>G.useContext(T0),qy=(a,i)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(i.isReset()||(a.retryOnMount=!1))},Qy=a=>{G.useEffect(()=>{a.clearReset()},[a])},Ny=({result:a,errorResetBoundary:i,throwOnError:c,query:s,suspense:f})=>a.isError&&!i.isReset()&&!a.isFetching&&s&&(f&&a.data===void 0||Oy(c,[a.error,s])),Ts=(a,i)=>i.state.data===void 0,Hy=a=>{if(a.suspense){const i=s=>s==="static"?s:Math.max(s??1e3,1e3),c=a.staleTime;a.staleTime=typeof c=="function"?(...s)=>i(c(...s)):i(c),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},wy=(a,i)=>a.isLoading&&a.isFetching&&!i,gs=(a,i)=>a?.suspense&&i.isPending,Ei=(a,i,c)=>i.fetchOptimistic(a).catch(()=>{c.clearReset()});function By({queries:a,...i},c){const s=ka(c),f=Ry(),d=Uy(),h=G.useMemo(()=>a.map(N=>{const P=s.defaultQueryOptions(N);return P._optimisticResults=f?"isRestoring":"optimistic",P}),[a,s,f]);h.forEach(N=>{Hy(N),qy(N,d)}),Qy(d);const[v]=G.useState(()=>new O0(s,h,i)),[m,p,j]=v.getOptimisticResult(h,i.combine),_=!f&&i.subscribed!==!1;G.useSyncExternalStore(G.useCallback(N=>_?v.subscribe(wt.batchCalls(N)):le,[v,_]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),G.useEffect(()=>{v.setQueries(h,i)},[h,i,v]);const Y=m.some((N,P)=>gs(h[P],N))?m.flatMap((N,P)=>{const at=h[P];if(at){const dt=new Ja(s,at);if(gs(at,N))return Ei(at,dt,d);wy(N,f)&&Ei(at,dt,d)}return[]}):[];if(Y.length>0)throw Promise.all(Y);const J=m.find((N,P)=>{const at=h[P];return at&&Ny({result:N,errorResetBoundary:d,throwOnError:at.throwOnError,query:s.getQueryCache().get(at.queryHash),suspense:at.suspense})});if(J?.error)throw J.error;return p(j())}function ji(a,i,c){const s=Ry(),f=Uy(),d=ka(c),h=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=s?"isRestoring":"optimistic",Hy(h),qy(h,f),Qy(f);const v=!d.getQueryCache().get(h.queryHash),[m]=G.useState(()=>new i(d,h)),p=m.getOptimisticResult(h),j=!s&&a.subscribed!==!1;if(G.useSyncExternalStore(G.useCallback(_=>{const R=j?m.subscribe(wt.batchCalls(_)):le;return m.updateResult(),R},[m,j]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),G.useEffect(()=>{m.setOptions(h)},[h,m]),gs(h,p))throw Ei(h,m,f);if(Ny({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&&!ul&&wy(p,s)&&(v?Ei(h,m,f):d.getQueryCache().get(h.queryHash)?.promise)?.catch(le).finally(()=>{m.updateResult()}),h.notifyOnChangeProps?p:m.trackResult(p)}function A0(a,i){return ji(a,Ja,i)}function j0(a,i){return ji({...a,enabled:!0,suspense:!0,throwOnError:Ts,placeholderData:void 0},Ja,i)}function z0(a,i){return ji({...a,enabled:!0,suspense:!0,throwOnError:Ts},My,i)}function M0(a,i){return By({...a,queries:a.queries.map(c=>({...c,suspense:!0,throwOnError:Ts,enabled:!0,placeholderData:void 0}))},i)}function C0(a,i){const c=ka(i);c.getQueryState(a.queryKey)||c.prefetchQuery(a)}function D0(a,i){const c=ka(i);c.getQueryState(a.queryKey)||c.prefetchInfiniteQuery(a)}function R0(a,i){const c=ka(i),[s]=G.useState(()=>new _0(c,a));G.useEffect(()=>{s.setOptions(a)},[s,a]);const f=G.useSyncExternalStore(G.useCallback(h=>s.subscribe(wt.batchCalls(h)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d=G.useCallback((h,v)=>{s.mutate(h,v).catch(le)},[s]);if(f.error&&Oy(s.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:d,mutateAsync:f.mutate}}function U0(a,i){return ji(a,My,i)}function q0(a,i){if(a instanceof RegExp)return{keys:!1,pattern:a};var c,s,f,d,h=[],v="",m=a.split("/");for(m[0]||m.shift();f=m.shift();)c=f[0],c==="*"?(h.push(c),v+=f[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(s=f.indexOf("?",1),d=f.indexOf(".",1),h.push(f.substring(1,~s?s:~d?d:f.length)),v+=~s&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(v+=(~s?"?":"")+"\\"+f.substring(d))):v+="/"+f;return{keys:h,pattern:new RegExp("^"+v+(i?"(?=$|/)":"/?$"),"i")}}var as={exports:{}},us={};/**
 * @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 Ih;function Q0(){if(Ih)return us;Ih=1;var a=Ai();function i(_,R){return _===R&&(_!==0||1/_===1/R)||_!==_&&R!==R}var c=typeof Object.is=="function"?Object.is:i,s=a.useState,f=a.useEffect,d=a.useLayoutEffect,h=a.useDebugValue;function v(_,R){var Y=R(),J=s({inst:{value:Y,getSnapshot:R}}),N=J[0].inst,P=J[1];return d(function(){N.value=Y,N.getSnapshot=R,m(N)&&P({inst:N})},[_,Y,R]),f(function(){return m(N)&&P({inst:N}),_(function(){m(N)&&P({inst:N})})},[_]),h(Y),Y}function m(_){var R=_.getSnapshot;_=_.value;try{var Y=R();return!c(_,Y)}catch{return!0}}function p(_,R){return R()}var j=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:v;return us.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:j,us}var ty;function N0(){return ty||(ty=1,as.exports=Q0()),as.exports}var H0=N0();const w0=gy.useInsertionEffect,B0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y0=B0?G.useLayoutEffect:G.useEffect,G0=w0||Y0,Yy=a=>{const i=G.useRef([a,(...c)=>i[0](...c)]).current;return G0(()=>{i[0]=a}),i[1]},L0="popstate",As="pushState",js="replaceState",X0="hashchange",ey=[L0,As,js,X0],K0=a=>{for(const i of ey)addEventListener(i,a);return()=>{for(const i of ey)removeEventListener(i,a)}},Gy=(a,i)=>H0.useSyncExternalStore(K0,a,i),Z0=()=>location.search,V0=({ssrSearch:a=""}={})=>Gy(Z0,()=>a),ny=()=>location.pathname,J0=({ssrPath:a}={})=>Gy(ny,a?()=>a:ny),k0=(a,{replace:i=!1,state:c=null}={})=>history[i?js:As](c,"",a),F0=(a={})=>[J0(a),k0],ly=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[ly]>"u"){for(const a of[As,js]){const i=history[a];history[a]=function(){const c=i.apply(this,arguments),s=new Event(a);return s.arguments=arguments,dispatchEvent(s),c}}Object.defineProperty(window,ly,{value:!0})}const P0=(a,i)=>i.toLowerCase().indexOf(a.toLowerCase())?"~"+i:i.slice(a.length)||"/",Ly=(a="")=>a==="/"?"":a,$0=(a,i)=>a[0]==="~"?a.slice(1):Ly(i)+a,W0=(a="",i)=>P0(ay(Ly(a)),ay(i)),ay=a=>{try{return decodeURI(a)}catch{return a}},Xy={hook:F0,searchHook:V0,parser:q0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:a=>a},Ky=G.createContext(Xy),zi=()=>G.useContext(Ky),Zy={},Vy=G.createContext(Zy),I0=()=>G.useContext(Vy),zs=a=>{const[i,c]=a.hook(a);return[W0(a.base,i),Yy((s,f)=>c($0(s,a.base),f))]},Jy=(a,i,c,s)=>{const{pattern:f,keys:d}=i instanceof RegExp?{keys:!1,pattern:i}:a(i||"*",s),h=f.exec(c)||[],[v,...m]=h;return v!==void 0?[!0,(()=>{const p=d!==!1?Object.fromEntries(d.map((_,R)=>[_,m[R]])):h.groups;let j={...m};return p&&Object.assign(j,p),j})(),...s?[v]:[]]:[!1,null]},tg=({children:a,...i})=>{const c=zi(),s=i.hook?Xy:c;let f=s;const[d,h]=i.ssrPath?.split("?")??[];h&&(i.ssrSearch=h,i.ssrPath=d),i.hrefs=i.hrefs??i.hook?.hrefs;let v=G.useRef({}),m=v.current,p=m;for(let j in s){const _=j==="base"?s[j]+(i[j]||""):i[j]||s[j];m===p&&_!==p[j]&&(v.current=p={...p}),p[j]=_,_!==s[j]&&(f=p)}return G.createElement(Ky.Provider,{value:f,children:a})},uy=({children:a,component:i},c)=>i?G.createElement(i,{params:c}):typeof a=="function"?a(c):a,eg=a=>{let i=G.useRef(Zy),c=i.current;for(const s in a)a[s]!==c[s]&&(c=a);return Object.keys(a).length===0&&(c=a),i.current=c},is=({path:a,nest:i,match:c,...s})=>{const f=zi(),[d]=zs(f),[h,v,m]=c??Jy(f.parser,a,d,i),p=eg({...I0(),...v});if(!h)return null;const j=m?G.createElement(tg,{base:m},uy(s,p)):uy(s,p);return G.createElement(Vy.Provider,{value:p,children:j})};G.forwardRef((a,i)=>{const c=zi(),[s,f]=zs(c),{to:d="",href:h=d,onClick:v,asChild:m,children:p,className:j,replace:_,state:R,...Y}=a,J=Yy(P=>{P.ctrlKey||P.metaKey||P.altKey||P.shiftKey||P.button!==0||(v?.(P),P.defaultPrevented||(P.preventDefault(),f(h,a)))}),N=c.hrefs(h[0]==="~"?h.slice(1):c.base+h,c);return m&&G.isValidElement(p)?G.cloneElement(p,{onClick:J,href:N}):G.createElement("a",{...Y,onClick:J,href:N,className:j?.call?j(s===h):j,children:p,ref:i})});const ky=a=>Array.isArray(a)?a.flatMap(i=>ky(i&&i.type===G.Fragment?i.props.children:i)):[a],ng=({children:a,location:i})=>{const c=zi(),[s]=zs(c);for(const f of ky(a)){let d=0;if(G.isValidElement(f)&&(d=Jy(c.parser,f.props.path,i||s,f.props.nest))[0])return G.cloneElement(f,{match:d})}return null};function il(a){return!!a&&!Array.isArray(a)&&typeof a=="object"}const lg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Fy(a){return lg&&il(a)&&Symbol.asyncIterator in a}var ag=Object.create,Py=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,$y=Object.getOwnPropertyNames,ig=Object.getPrototypeOf,rg=Object.prototype.hasOwnProperty,Fa=(a,i)=>function(){return i||(0,a[$y(a)[0]])((i={exports:{}}).exports,i),i.exports},cg=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=$y(i),d=0,h=f.length,v;d<h;d++)v=f[d],!rg.call(a,v)&&v!==c&&Py(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(s=ug(i,v))||s.enumerable});return a},Mi=(a,i,c)=>(c=a!=null?ag(ig(a)):{},cg(Py(c,"default",{value:a,enumerable:!0}),a));const Wy=()=>{},iy=a=>{Object.freeze&&Object.freeze(a)};function Iy(a,i,c){var s;const f=i.join(".");return(s=c[f])!==null&&s!==void 0||(c[f]=new Proxy(Wy,{get(d,h){if(!(typeof h!="string"||h==="then"))return Iy(a,[...i,h],c)},apply(d,h,v){const m=i[i.length-1];let p={args:v,path:i};return m==="call"?p={args:v.length>=2?[v[1]]:[],path:i.slice(0,-1)}:m==="apply"&&(p={args:v.length>=2?v[1]:[],path:i.slice(0,-1)}),iy(p.args),iy(p.path),a(p)}})),c[f]}const Ci=a=>Iy(a,[],Object.create(null)),Ms=a=>new Proxy(Wy,{get(i,c){if(c!=="then")return a(c)}});var tv=Fa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function c(s){"@babel/helpers - typeof";return i.exports=c=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,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),sg=Fa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var c=tv().default;function s(f,d){if(c(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var v=h.call(f,d||"default");if(c(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),og=Fa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var c=tv().default,s=sg();function f(d){var h=s(d,"string");return c(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),ev=Fa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var c=og();function s(f,d,h){return(d=c(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Cs=Fa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var c=ev();function s(d,h){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);h&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function f(d){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?s(Object(v),!0).forEach(function(m){c(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});Mi(Cs());Mi(ev());var mi=Mi(Cs());function fg(a,i){if("error"in a){const s=i.deserialize(a.error);return{ok:!1,error:(0,mi.default)((0,mi.default)({},a),{},{error:s})}}return{ok:!0,result:(0,mi.default)((0,mi.default)({},a.result),(!a.result.type||a.result.type==="data")&&{type:"data",data:i.deserialize(a.result.data)})}}var rs=class extends Error{constructor(){super("Unable to transform response from server")}};function dg(a,i){let c;try{c=fg(a,i)}catch{throw new rs}if(!c.ok&&(!il(c.error.error)||typeof c.error.error.code!="number"))throw new rs;if(c.ok&&!il(c.result))throw new rs;return c}Mi(Cs());function Di(a){const i={subscribe(c){let s=null,f=!1,d=!1,h=!1;function v(){if(s===null){h=!0;return}d||(d=!0,typeof s=="function"?s():s&&s.unsubscribe())}return s=a({next(m){var p;f||(p=c.next)===null||p===void 0||p.call(c,m)},error(m){var p;f||(f=!0,(p=c.error)===null||p===void 0||p.call(c,m),v())},complete(){var m;f||(f=!0,(m=c.complete)===null||m===void 0||m.call(c),v())}}),h&&v(),{unsubscribe:v}},pipe(...c){return c.reduce(hg,i)}};return i}function hg(a,i){return i(a)}function yg(a){const i=new AbortController;return new Promise((s,f)=>{let d=!1;function h(){d||(d=!0,v.unsubscribe())}i.signal.addEventListener("abort",()=>{f(i.signal.reason)});const v=a.subscribe({next(m){d=!0,s(m),h()},error(m){f(m)},complete(){i.abort(),h()}})})}var vg=Object.create,nv=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,lv=Object.getOwnPropertyNames,pg=Object.getPrototypeOf,gg=Object.prototype.hasOwnProperty,wn=(a,i)=>function(){return i||(0,a[lv(a)[0]])((i={exports:{}}).exports,i),i.exports},bg=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=lv(i),d=0,h=f.length,v;d<h;d++)v=f[d],!gg.call(a,v)&&v!==c&&nv(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(s=mg(i,v))||s.enumerable});return a},cl=(a,i,c)=>(c=a!=null?vg(pg(a)):{},bg(i||!a||!a.__esModule?nv(c,"default",{value:a,enumerable:!0}):c,a)),Sg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,i){function c(s,f){if(s==null)return{};var d={};for(var h in s)if({}.hasOwnProperty.call(s,h)){if(f.includes(h))continue;d[h]=s[h]}return d}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Og=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(a,i){var c=Sg();function s(f,d){if(f==null)return{};var h,v,m=c(f,d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);for(v=0;v<p.length;v++)h=p[v],d.includes(h)||{}.propertyIsEnumerable.call(f,h)&&(m[h]=f[h])}return m}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),av=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function c(s){"@babel/helpers - typeof";return i.exports=c=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,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),_g=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var c=av().default;function s(f,d){if(c(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var v=h.call(f,d||"default");if(c(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),xg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var c=av().default,s=_g();function f(d){var h=s(d,"string");return c(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Eg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var c=xg();function s(f,d,h){return(d=c(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Pa=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var c=Eg();function s(d,h){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);h&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function f(d){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?s(Object(v),!0).forEach(function(m){c(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Tg=cl(Og(),1),ry=cl(Pa(),1);const Ag=["cursor","direction"];function Ke(a,i,c){const s=a.flatMap(f=>f.split("."));if(!i&&(!c||c==="any"))return s.length?[s]:[];if(c==="infinite"&&il(i)&&("direction"in i||"cursor"in i)){const{cursor:f,direction:d}=i,h=(0,Tg.default)(i,Ag);return[s,{input:h,type:"infinite"}]}return[s,(0,ry.default)((0,ry.default)({},typeof i<"u"&&i!==Ee&&{input:i}),c&&c!=="any"&&{type:c})]}function bi(a){return Ke(a,void 0,"any")}var jg=Object.create,uv=Object.defineProperty,zg=Object.getOwnPropertyDescriptor,iv=Object.getOwnPropertyNames,Mg=Object.getPrototypeOf,Cg=Object.prototype.hasOwnProperty,Ze=(a,i)=>function(){return i||(0,a[iv(a)[0]])((i={exports:{}}).exports,i),i.exports},Dg=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=iv(i),d=0,h=f.length,v;d<h;d++)v=f[d],!Cg.call(a,v)&&v!==c&&uv(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(s=zg(i,v))||s.enumerable});return a},Lt=(a,i,c)=>(c=a!=null?jg(Mg(a)):{},Dg(i||!a||!a.__esModule?uv(c,"default",{value:a,enumerable:!0}):c,a)),rv=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function c(s){"@babel/helpers - typeof";return i.exports=c=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,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Rg=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var c=rv().default;function s(f,d){if(c(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var v=h.call(f,d||"default");if(c(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ug=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var c=rv().default,s=Rg();function f(d){var h=s(d,"string");return c(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),sl=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var c=Ug();function s(f,d,h){return(d=c(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Be=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var c=sl();function s(d,h){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);h&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function f(d){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?s(Object(v),!0).forEach(function(m){c(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});function qg(a){return i=>{let c=0,s=null;const f=[];function d(){s||(s=i.subscribe({next(v){for(const p of f){var m;(m=p.next)===null||m===void 0||m.call(p,v)}},error(v){for(const p of f){var m;(m=p.error)===null||m===void 0||m.call(p,v)}},complete(){for(const m of f){var v;(v=m.complete)===null||v===void 0||v.call(m)}}}))}function h(){if(c===0&&s){const v=s;s=null,v.unsubscribe()}}return Di(v=>(c++,f.push(v),d(),{unsubscribe(){c--,h();const m=f.findIndex(p=>p===v);m>-1&&f.splice(m,1)}}))}}function Qg(a){let i=a;const c=[],s=h=>{i!==void 0&&h.next(i),c.push(h)},f=h=>{c.splice(c.indexOf(h),1)},d=Di(h=>(s(h),()=>{f(h)}));return d.next=h=>{if(i!==h){i=h;for(const v of c)v.next(h)}},d.get=()=>i,d}function Ng(a){return Di(i=>{function c(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(m){return c(f+1,m)}})}return c().subscribe(i)})}var pi=Lt(sl(),1),kl=Lt(Be(),1);function Hg(a){return a instanceof Ti}function wg(a){return il(a)&&il(a.error)&&typeof a.error.code=="number"&&typeof a.error.message=="string"}function Bg(a,i){return typeof a=="string"?a:il(a)&&typeof a.message=="string"?a.message:i}var Ti=class Si extends Error{constructor(i,c){var s,f;const d=c?.cause;super(i,{cause:d}),(0,pi.default)(this,"cause",void 0),(0,pi.default)(this,"shape",void 0),(0,pi.default)(this,"data",void 0),(0,pi.default)(this,"meta",void 0),this.meta=c?.meta,this.cause=d,this.shape=c==null||(s=c.result)===null||s===void 0?void 0:s.error,this.data=c==null||(f=c.result)===null||f===void 0?void 0:f.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Si.prototype)}static from(i,c={}){const s=i;return Hg(s)?(c.meta&&(s.meta=(0,kl.default)((0,kl.default)({},s.meta),c.meta)),s):wg(s)?new Si(s.error.message,(0,kl.default)((0,kl.default)({},c),{},{result:s})):new Si(Bg(s,"Unknown error"),(0,kl.default)((0,kl.default)({},c),{},{cause:s}))}};function Yg(a){const i=a;return i?"input"in i?i:{input:i,output:i}:{input:{serialize:c=>c,deserialize:c=>c},output:{serialize:c=>c,deserialize:c=>c}}}const cy=a=>typeof a=="function";function Gg(a){if(a)return a;if(typeof window<"u"&&cy(window.fetch))return window.fetch;if(typeof globalThis<"u"&&cy(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Za=Lt(Be());function Lg(a){return{url:a.url.toString(),fetch:a.fetch,transformer:Yg(a.transformer),methodOverride:a.methodOverride}}function Xg(a){const i={};for(let c=0;c<a.length;c++){const s=a[c];i[c]=s}return i}const Kg={query:"GET",mutation:"POST",subscription:"PATCH"};function cv(a){return"input"in a?a.transformer.input.serialize(a.input):Xg(a.inputs.map(i=>a.transformer.input.serialize(i)))}const sv=a=>{const i=a.url.split("?");let s=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=cv(a);d!==void 0&&a.methodOverride!=="POST"&&f.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return f.length&&(s+="?"+f.join("&")),s},Zg=a=>{if(a.type==="query"&&a.methodOverride!=="POST")return;const i=cv(a);return i!==void 0?JSON.stringify(i):void 0},Vg=a=>Pg((0,Za.default)((0,Za.default)({},a),{},{contentTypeHeader:"application/json",getUrl:sv,getBody:Zg}));var Jg=class extends Error{constructor(){const a="AbortError";super(a),this.name=a,this.message=a}};const kg=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 Jg};async function Fg(a){var i;kg(a.signal);const c=a.getUrl(a),s=a.getBody(a),f=(i=a.methodOverride)!==null&&i!==void 0?i:Kg[a.type],d=await(async()=>{const v=await a.headers();return Symbol.iterator in v?Object.fromEntries(v):v})(),h=(0,Za.default)((0,Za.default)((0,Za.default)({},a.contentTypeHeader&&f!=="GET"?{"content-type":a.contentTypeHeader}:{}),a.trpcAcceptHeader?{"trpc-accept":a.trpcAcceptHeader}:void 0),d);return Gg(a.fetch)(c,{method:f,signal:a.signal,body:s,headers:h})}async function Pg(a){const i={},c=await Fg(a);i.response=c;const s=await c.json();return i.responseJSON=s,{json:s,meta:i}}Lt(Be(),1);const sy=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function oy(a){let i=null,c=null;const s=()=>{clearTimeout(c),c=null,i=null};function f(v){const m=[[]];let p=0;for(;;){const R=v[p];if(!R)break;const Y=m[m.length-1];if(R.aborted){var j;(j=R.reject)===null||j===void 0||j.call(R,new Error("Aborted")),p++;continue}if(a.validate(Y.concat(R).map(N=>N.key))){Y.push(R),p++;continue}if(Y.length===0){var _;(_=R.reject)===null||_===void 0||_.call(R,new Error("Input is too big for a single dispatch")),p++;continue}m.push([])}return m}function d(){const v=f(i);s();for(const m of v){if(!m.length)continue;const p={items:m};for(const _ of m)_.batch=p;a.fetch(p.items.map(_=>_.key)).then(async _=>{await Promise.all(_.map(async(Y,J)=>{const N=p.items[J];try{var P;const dt=await Promise.resolve(Y);(P=N.resolve)===null||P===void 0||P.call(N,dt)}catch(dt){var at;(at=N.reject)===null||at===void 0||at.call(N,dt)}N.batch=null,N.reject=null,N.resolve=null}));for(const Y of p.items){var R;(R=Y.reject)===null||R===void 0||R.call(Y,new Error("Missing result")),Y.batch=null}}).catch(_=>{for(const Y of p.items){var R;(R=Y.reject)===null||R===void 0||R.call(Y,_),Y.batch=null}})}}function h(v){var m;const p={aborted:!1,key:v,batch:null,resolve:sy,reject:sy},j=new Promise((_,R)=>{var Y;p.reject=R,p.resolve=_,(Y=i)!==null&&Y!==void 0||(i=[]),i.push(p)});return(m=c)!==null&&m!==void 0||(c=setTimeout(d)),j}return{load:h}}function $g(...a){const i=new AbortController,c=a.length;let s=0;const f=()=>{++s===c&&i.abort()};for(const d of a)d?.aborted?f():d?.addEventListener("abort",f,{once:!0});return i.signal}var gi=Lt(Be(),1);function Wg(a){var i,c;const s=Lg(a),f=(i=a.maxURLLength)!==null&&i!==void 0?i:1/0,d=(c=a.maxItems)!==null&&c!==void 0?c:1/0;return()=>{const h=j=>({validate(_){if(f===1/0&&d===1/0)return!0;if(_.length>d)return!1;const R=_.map(N=>N.path).join(","),Y=_.map(N=>N.input);return sv((0,gi.default)((0,gi.default)({},s),{},{type:j,path:R,inputs:Y,signal:null})).length<=f},async fetch(_){const R=_.map(dt=>dt.path).join(","),Y=_.map(dt=>dt.input),J=$g(..._.map(dt=>dt.signal)),N=await Vg((0,gi.default)((0,gi.default)({},s),{},{path:R,inputs:Y,type:j,headers(){return a.headers?typeof a.headers=="function"?a.headers({opList:_}):a.headers:{}},signal:J}));return(Array.isArray(N.json)?N.json:_.map(()=>N.json)).map(dt=>({meta:N.meta,json:dt}))}}),v=oy(h("query")),m=oy(h("mutation")),p={query:v,mutation:m};return({op:j})=>Di(_=>{/* istanbul ignore if -- @preserve */if(j.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const Y=p[j.type].load(j);let J;return Y.then(N=>{J=N;const P=dg(N.json,s.transformer.output);if(!P.ok){_.error(Ti.from(P.error,{meta:N.meta}));return}_.next({context:N.meta,result:P.result}),_.complete()}).catch(N=>{_.error(Ti.from(N,{meta:J?.meta}))}),()=>{}})}}Lt(Be(),1);const ov=(a,...i)=>typeof a=="function"?a(...i):a;Lt(sl(),1);function Ig(){let a,i;return{promise:new Promise((s,f)=>{a=s,i=f}),resolve:a,reject:i}}async function tb(a){const i=await ov(a.url);if(!a.connectionParams)return i;const s=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+s}async function eb(a){const i={method:"connectionParams",data:await ov(a)};return JSON.stringify(i)}Lt(sl(),1);var al=Lt(sl(),1);function nb(a){const{promise:i,resolve:c,reject:s}=Ig();return a.addEventListener("open",()=>{a.removeEventListener("error",s),c()}),a.addEventListener("error",s),i}function lb(a,{intervalMs:i,pongTimeoutMs:c}){let s,f;function d(){s=setTimeout(()=>{a.send("PING"),f=setTimeout(()=>{a.close()},c)},i)}function h(){clearTimeout(s),d()}function v(){clearTimeout(f),h()}a.addEventListener("open",d),a.addEventListener("message",({data:m})=>{clearTimeout(s),d(),m==="PONG"&&v()}),a.addEventListener("close",()=>{clearTimeout(s),clearTimeout(f)})}var ab=class bs{constructor(i){var c;if((0,al.default)(this,"id",++bs.connectCount),(0,al.default)(this,"WebSocketPonyfill",void 0),(0,al.default)(this,"urlOptions",void 0),(0,al.default)(this,"keepAliveOpts",void 0),(0,al.default)(this,"wsObservable",Qg(null)),(0,al.default)(this,"openPromise",null),this.WebSocketPonyfill=(c=i.WebSocketPonyfill)!==null&&c!==void 0?c: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=++bs.connectCount;const c=tb(i.urlOptions).then(s=>new i.WebSocketPonyfill(s));i.openPromise=c.then(async s=>{i.ws=s,s.addEventListener("message",function({data:f}){f==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&lb(s,i.keepAliveOpts),s.addEventListener("close",()=>{i.ws===s&&(i.ws=null)}),await nb(s),i.urlOptions.connectionParams&&s.send(await eb(i.urlOptions.connectionParams))});try{await i.openPromise}finally{i.openPromise=null}}async close(){var i=this;try{await i.openPromise}finally{var c;(c=i.ws)===null||c===void 0||c.close()}}};(0,al.default)(ab,"connectCount",0);Lt(sl(),1);Lt(Be(),1);var cs=Lt(sl(),1),fy=Lt(Be(),1),Ri=class{constructor(a){(0,cs.default)(this,"links",void 0),(0,cs.default)(this,"runtime",void 0),(0,cs.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=a.links.map(i=>i(this.runtime))}$request(a){var i;return Ng({links:this.links,op:(0,fy.default)((0,fy.default)({},a),{},{context:(i=a.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(qg())}async requestAsPromise(a){var i=this;try{const c=i.$request(a);return(await yg(c)).result.data}catch(c){throw Ti.from(c)}}query(a,i,c){return this.requestAsPromise({type:"query",path:a,input:i,context:c?.context,signal:c?.signal})}mutation(a,i,c){return this.requestAsPromise({type:"mutation",path:a,input:i,context:c?.context,signal:c?.signal})}subscription(a,i,c){return this.$request({type:"subscription",path:a,input:i,context:c.context,signal:c.signal}).subscribe({next(f){switch(f.result.type){case"state":{var d;(d=c.onConnectionStateChange)===null||d===void 0||d.call(c,f.result);break}case"started":{var h;(h=c.onStarted)===null||h===void 0||h.call(c,{context:f.context});break}case"stopped":{var v;(v=c.onStopped)===null||v===void 0||v.call(c);break}case"data":case void 0:{var m;(m=c.onData)===null||m===void 0||m.call(c,f.result.data);break}}},error(f){var d;(d=c.onError)===null||d===void 0||d.call(c,f)},complete(){var f;(f=c.onComplete)===null||f===void 0||f.call(c)}})}};const fv=Symbol.for("trpc_untypedClient"),ub={query:"query",mutate:"mutation",subscribe:"subscription"},ib=a=>ub[a];function dv(a){const i=Ci(({path:c,args:s})=>{const f=[...c],d=ib(f.pop()),h=f.join(".");return a[d](h,...s)});return Ms(c=>c===fv?a:i[c])}function rb(a){const i=new Ri(a);return dv(i)}function Ds(a){return a[fv]}Lt(Be(),1);Lt(Be(),1);var cb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function c(f){var d,h,v,m=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,v=Symbol.iterator);m--;){if(h&&(d=f[h])!=null)return d.call(f);if(v&&(d=f[v])!=null)return new s(d.call(f));h="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function s(f){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var v=h.done;return Promise.resolve(h.value).then(function(m){return{value:m,done:v}})}return s=function(v){this.s=v,this.n=v.next},s.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(v){var m=this.s.return;return m===void 0?Promise.resolve({value:v,done:!0}):d(m.apply(this.s,arguments))},throw:function(v){var m=this.s.return;return m===void 0?Promise.reject(v):d(m.apply(this.s,arguments))}},new s(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Lt(cb(),1);Lt(Be(),1);var sb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(a,i){function c(){var s=typeof SuppressedError=="function"?SuppressedError:function(v,m){var p=Error();return p.name="SuppressedError",p.error=v,p.suppressed=m,p},f={},d=[];function h(v,m){if(m!=null){if(Object(m)!==m)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(v)var p=m[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=m[Symbol.dispose||Symbol.for("Symbol.dispose")],v))var j=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");j&&(p=function(){try{j.call(m)}catch(R){return Promise.reject(R)}}),d.push({v:m,d:p,a:v})}else v&&d.push({d:m,a:v});return m}return{e:f,u:h.bind(null,!1),a:h.bind(null,!0),d:function(){var m,p=this.e,j=0;function _(){for(;m=d.pop();)try{if(!m.a&&j===1)return j=0,d.push(m),Promise.resolve().then(_);if(m.d){var Y=m.d.call(m.v);if(m.a)return j|=2,Promise.resolve(Y).then(_,R)}else j|=1}catch(J){return R(J)}if(j===1)return p!==f?Promise.reject(p):Promise.resolve();if(p!==f)throw p}function R(Y){return p=p!==f?new s(Y,p):Y,_()}return _()}}}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),hv=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(a,i){function c(s,f){this.v=s,this.k=f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),ob=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(a,i){var c=hv();function s(f){return new c(f,0)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),fb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(a,i){var c=hv();function s(d){return function(){return new f(d.apply(this,arguments))}}function f(d){var h,v;function m(j,_){try{var R=d[j](_),Y=R.value,J=Y instanceof c;Promise.resolve(J?Y.v:Y).then(function(N){if(J){var P=j==="return"?"return":"next";if(!Y.k||N.done)return m(P,N);N=d[P](N).value}p(R.done?"return":"normal",N)},function(N){m("throw",N)})}catch(N){p("throw",N)}}function p(j,_){switch(j){case"return":h.resolve({value:_,done:!0});break;case"throw":h.reject(_);break;default:h.resolve({value:_,done:!1})}(h=h.next)?m(h.key,h.arg):v=null}this._invoke=function(j,_){return new Promise(function(R,Y){var J={key:j,arg:_,resolve:R,reject:Y,next:null};v?v=v.next=J:(h=v=J,m(j,_))})},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=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Lt(sb(),1);Lt(ob(),1);Lt(fb(),1);Lt(Be(),1);function db(a){return Ci(({path:i,args:c})=>{var s;const f=[...i],d=f.pop();if(d==="useMutation")return a[d](f,...c);if(d==="_def")return{path:f};const[h,...v]=c,m=(s=v[0])!==null&&s!==void 0?s:{};return a[d](f,h,m)})}var ss;const hb=["client","ssrContext","ssrState","abortOnUnmount"],yb=(ss=G.createContext)===null||ss===void 0?void 0:ss.call(gy,null),vb=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 mb(a){return Ci(i=>{const c=[...i.path],s=c.pop(),f=[...i.args],d=f.shift(),h=vb(s),v=Ke(c,d,h);return{infiniteQueryOptions:()=>a.infiniteQueryOptions(c,v,f[0]),queryOptions:()=>a.queryOptions(c,v,...f),fetch:()=>a.fetchQuery(v,...f),fetchInfinite:()=>a.fetchInfiniteQuery(v,f[0]),prefetch:()=>a.prefetchQuery(v,...f),prefetchInfinite:()=>a.prefetchInfiniteQuery(v,f[0]),ensureData:()=>a.ensureQueryData(v,...f),invalidate:()=>a.invalidateQueries(v,...f),reset:()=>a.resetQueries(v,...f),refetch:()=>a.refetchQueries(v,...f),cancel:()=>a.cancelQuery(v,...f),setData:()=>{a.setQueryData(v,f[0],f[1])},setQueriesData:()=>a.setQueriesData(v,f[0],f[1],f[2]),setInfiniteData:()=>{a.setInfiniteQueryData(v,f[0],f[1])},getData:()=>a.getQueryData(v),getInfiniteData:()=>a.getInfiniteQueryData(v),setMutationDefaults:()=>a.setMutationDefaults(bi(c),d),getMutationDefaults:()=>a.getMutationDefaults(bi(c)),isMutating:()=>a.isMutating({mutationKey:bi(c)})}[s]()})}function pb(a){const i=dv(a.client),c=mb(a);return Ms(s=>{const f=s;return f==="client"?i:hb.includes(f)?a[f]:c[s]})}var gb=cl(Pa(),1);function dy(a){const i=a instanceof Ri?a:Ds(a);return Ci(c=>{const s=c.path,f=s.join("."),[d,h]=c.args;return(0,gb.default)({queryKey:Ke(s,d,"query"),queryFn:()=>i.query(f,d,h?.trpc)},h)})}var os=cl(Pa(),1);function ie(a,i,c){var s;const f=a[0];let d=(s=a[1])===null||s===void 0?void 0:s.input;if(c){var h;d=(0,os.default)((0,os.default)((0,os.default)({},(h=d)!==null&&h!==void 0?h:{}),c.pageParam?{cursor:c.pageParam}:{}),{},{direction:c.direction})}return[f.join("."),d,i?.trpc]}var bb=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function c(f){var d,h,v,m=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,v=Symbol.iterator);m--;){if(h&&(d=f[h])!=null)return d.call(f);if(v&&(d=f[v])!=null)return new s(d.call(f));h="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function s(f){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var v=h.done;return Promise.resolve(h.value).then(function(m){return{value:m,done:v}})}return s=function(v){this.s=v,this.n=v.next},s.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(v){var m=this.s.return;return m===void 0?Promise.resolve({value:v,done:!0}):d(m.apply(this.s,arguments))},throw:function(v){var m=this.s.return;return m===void 0?Promise.reject(v):d(m.apply(this.s,arguments))}},new s(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Sb=cl(bb(),1);function Ss(a){return{path:a.path.join(".")}}function Ka(a){const i=Ss(a);return G.useMemo(()=>i,[i])}async function yv(a,i,c){const f=i.getQueryCache().build(i,{queryKey:c});f.setState({data:[],status:"success"});const d=[];var h=!1,v=!1,m;try{for(var p=(0,Sb.default)(a),j;h=!(j=await p.next()).done;h=!1){const _=j.value;d.push(_),f.setState({data:[...d]})}}catch(_){v=!0,m=_}finally{try{h&&p.return!=null&&await p.return()}finally{if(v)throw m}}return d}var xt=cl(Pa(),1);function Ob(a){const{client:i,queryClient:c}=a,s=i instanceof Ri?i:Ds(i);return{infiniteQueryOptions:(f,d,h)=>{var v,m;const p=((v=d[1])===null||v===void 0?void 0:v.input)===Ee,j=async _=>{var R;const Y=(0,xt.default)((0,xt.default)({},h),{},{trpc:(0,xt.default)((0,xt.default)({},h?.trpc),!(h==null||(R=h.trpc)===null||R===void 0)&&R.abortOnUnmount?{signal:_.signal}:{signal:null})});return await s.query(...ie(d,Y,{direction:_.direction,pageParam:_.pageParam}))};return Object.assign((0,xt.default)((0,xt.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:p?Ee:j,initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}),{trpc:Ss({path:f})})},queryOptions:(f,d,h)=>{var v;const m=((v=d[1])===null||v===void 0?void 0:v.input)===Ee,p=async j=>{var _;const R=(0,xt.default)((0,xt.default)({},h),{},{trpc:(0,xt.default)((0,xt.default)({},h?.trpc),!(h==null||(_=h.trpc)===null||_===void 0)&&_.abortOnUnmount?{signal:j.signal}:{signal:null})}),Y=await s.query(...ie(d,R));return Fy(Y)?yv(Y,c,d):Y};return Object.assign((0,xt.default)((0,xt.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:m?Ee:p}),{trpc:Ss({path:f})})},fetchQuery:(f,d)=>c.fetchQuery((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:()=>s.query(...ie(f,d))})),fetchInfiniteQuery:(f,d)=>{var h;return c.fetchInfiniteQuery((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:({pageParam:v,direction:m})=>s.query(...ie(f,d,{pageParam:v,direction:m})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},prefetchQuery:(f,d)=>c.prefetchQuery((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:()=>s.query(...ie(f,d))})),prefetchInfiniteQuery:(f,d)=>{var h;return c.prefetchInfiniteQuery((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:({pageParam:v,direction:m})=>s.query(...ie(f,d,{pageParam:v,direction:m})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},ensureQueryData:(f,d)=>c.ensureQueryData((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:()=>s.query(...ie(f,d))})),invalidateQueries:(f,d,h)=>c.invalidateQueries((0,xt.default)((0,xt.default)({},d),{},{queryKey:f}),h),resetQueries:(f,d,h)=>c.resetQueries((0,xt.default)((0,xt.default)({},d),{},{queryKey:f}),h),refetchQueries:(f,d,h)=>c.refetchQueries((0,xt.default)((0,xt.default)({},d),{},{queryKey:f}),h),cancelQuery:(f,d)=>c.cancelQueries({queryKey:f},d),setQueryData:(f,d,h)=>c.setQueryData(f,d,h),setQueriesData:(f,d,h,v)=>c.setQueriesData((0,xt.default)((0,xt.default)({},d),{},{queryKey:f}),h,v),getQueryData:f=>c.getQueryData(f),setInfiniteQueryData:(f,d,h)=>c.setQueryData(f,d,h),getInfiniteQueryData:f=>c.getQueryData(f),setMutationDefaults:(f,d)=>{const h=f[0],v=m=>s.mutation(...ie([h,{input:m}],a));return c.setMutationDefaults(f,typeof d=="function"?d({canonicalMutationFn:v}):d)},getMutationDefaults:f=>c.getMutationDefaults(f),isMutating:f=>c.isMutating((0,xt.default)((0,xt.default)({},f),{},{exact:!0}))}}var V=cl(Pa());const hy=(a,i)=>new Proxy(a,{get(s,f){return i(f),s[f]}});function _b(a){var i,c;const s=(i=void 0)!==null&&i!==void 0?i:F=>F.originalFn(),f=(c=void 0)!==null&&c!==void 0?c:yb,d=rb,h=F=>{var X;const{abortOnUnmount:M=!1,queryClient:K,ssrContext:L}=F,[et,I]=G.useState((X=F.ssrState)!==null&&X!==void 0?X:!1),tt=F.client instanceof Ri?F.client:Ds(F.client),ht=G.useMemo(()=>Ob({client:tt,queryClient:K}),[tt,K]),it=G.useMemo(()=>(0,V.default)({abortOnUnmount:M,queryClient:K,client:tt,ssrContext:L??null,ssrState:et},ht),[M,tt,ht,K,L,et]);return G.useEffect(()=>{I(st=>st?"mounted":!1)},[]),Q.jsx(f.Provider,{value:it,children:F.children})};function v(){const F=G.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 m(F,X){var M;const{queryClient:K,ssrState:L}=v();return L&&L!=="mounted"&&((M=K.getQueryCache().find({queryKey:F}))===null||M===void 0?void 0:M.state.status)==="error"?(0,V.default)({retryOnMount:!1},X):X}function p(F,X,M){var K,L,et,I,tt;const ht=v(),{abortOnUnmount:it,client:st,ssrState:T,queryClient:H,prefetchQuery:Z}=ht,ut=Ke(F,X,"query"),yt=H.getQueryDefaults(ut),b=X===Ee;typeof window>"u"&&T==="prepass"&&(M==null||(K=M.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((L=M?.enabled)!==null&&L!==void 0?L:yt?.enabled)!==!1&&!b&&!H.getQueryCache().find({queryKey:ut})&&Z(ut,M);const D=m(ut,(0,V.default)((0,V.default)({},yt),M)),w=(et=(I=M==null||(tt=M.trpc)===null||tt===void 0?void 0:tt.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&et!==void 0?et:it,B=A0((0,V.default)((0,V.default)({},D),{},{queryKey:ut,queryFn:b?X:async $=>{const rt=(0,V.default)((0,V.default)({},D),{},{trpc:(0,V.default)((0,V.default)({},D?.trpc),w?{signal:$.signal}:{signal:null})}),St=await st.query(...ie(ut,rt));return Fy(St)?yv(St,H,ut):St}}),H);return B.trpc=Ka({path:F}),B}function j(F,X,M){var K,L,et;const I=v(),tt=Ke(F,X,"query"),ht=X===Ee,it=(K=(L=M==null||(et=M.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&L!==void 0?L:void 0)!==null&&K!==void 0?K:I.abortOnUnmount;C0((0,V.default)((0,V.default)({},M),{},{queryKey:tt,queryFn:ht?X:st=>{const T={trpc:(0,V.default)((0,V.default)({},M?.trpc),it?{signal:st.signal}:{})};return I.client.query(...ie(tt,T))}}))}function _(F,X,M){var K,L,et;const I=v(),tt=Ke(F,X,"query"),ht=(K=(L=M==null||(et=M.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&L!==void 0?L:void 0)!==null&&K!==void 0?K:I.abortOnUnmount,it=j0((0,V.default)((0,V.default)({},M),{},{queryKey:tt,queryFn:st=>{const T=(0,V.default)((0,V.default)({},M),{},{trpc:(0,V.default)((0,V.default)({},M?.trpc),ht?{signal:st.signal}:{signal:null})});return I.client.query(...ie(tt,T))}}),I.queryClient);return it.trpc=Ka({path:F}),[it.data,it]}function R(F,X){const{client:M,queryClient:K}=v(),L=bi(F),et=K.defaultMutationOptions(K.getMutationDefaults(L)),I=R0((0,V.default)((0,V.default)({},X),{},{mutationKey:L,mutationFn:tt=>M.mutation(...ie([F,{input:tt}],X)),onSuccess(...tt){var ht,it;return s({originalFn:()=>{var T,H,Z;return(T=X==null||(H=X.onSuccess)===null||H===void 0?void 0:H.call(X,...tt))!==null&&T!==void 0?T:et==null||(Z=et.onSuccess)===null||Z===void 0?void 0:Z.call(et,...tt)},queryClient:K,meta:(ht=(it=X?.meta)!==null&&it!==void 0?it:et?.meta)!==null&&ht!==void 0?ht:{}})}}),K);return I.trpc=Ka({path:F}),I}const Y={data:void 0,error:null,status:"idle"},J={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function N(F,X,M){var K;const L=(K=M?.enabled)!==null&&K!==void 0?K:X!==Ee,et=Hn(Ke(F,X,"any")),{client:I}=v(),tt=G.useRef(M);G.useEffect(()=>{tt.current=M});const[ht]=G.useState(new Set([])),it=G.useCallback(b=>{ht.add(b)},[ht]),st=G.useRef(null),T=G.useCallback(b=>{const D=Z.current,w=Z.current=b(D);let B=!1;for(const $ of ht)if(D[$]!==w[$]){B=!0;break}B&&yt(hy(w,it))},[it,ht]),H=G.useCallback(()=>{var b;if((b=st.current)===null||b===void 0||b.unsubscribe(),!L){T(()=>(0,V.default)((0,V.default)({},Y),{},{reset:H}));return}T(()=>(0,V.default)((0,V.default)({},J),{},{reset:H}));const D=I.subscription(F.join("."),X??void 0,{onStarted:()=>{var w,B;(w=(B=tt.current).onStarted)===null||w===void 0||w.call(B),T($=>(0,V.default)((0,V.default)({},$),{},{status:"pending",error:null}))},onData:w=>{var B,$;(B=($=tt.current).onData)===null||B===void 0||B.call($,w),T(rt=>(0,V.default)((0,V.default)({},rt),{},{status:"pending",data:w,error:null}))},onError:w=>{var B,$;(B=($=tt.current).onError)===null||B===void 0||B.call($,w),T(rt=>(0,V.default)((0,V.default)({},rt),{},{status:"error",error:w}))},onConnectionStateChange:w=>{T(B=>{switch(w.state){case"idle":return(0,V.default)((0,V.default)({},B),{},{status:w.state,error:null,data:void 0});case"connecting":return(0,V.default)((0,V.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($=>(0,V.default)((0,V.default)({},$),{},{status:"idle",error:null,data:void 0}))}});st.current=D},[I,et,L,T]);G.useEffect(()=>(H(),()=>{var b;(b=st.current)===null||b===void 0||b.unsubscribe()}),[H]);const Z=G.useRef(L?(0,V.default)((0,V.default)({},J),{},{reset:H}):(0,V.default)((0,V.default)({},Y),{},{reset:H})),[ut,yt]=G.useState(hy(Z.current,it));return ut}function P(F,X,M){var K,L,et,I,tt;const{client:ht,ssrState:it,prefetchInfiniteQuery:st,queryClient:T,abortOnUnmount:H}=v(),Z=Ke(F,X,"infinite"),ut=T.getQueryDefaults(Z),yt=X===Ee;typeof window>"u"&&it==="prepass"&&(M==null||(K=M.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((L=M?.enabled)!==null&&L!==void 0?L:ut?.enabled)!==!1&&!yt&&!T.getQueryCache().find({queryKey:Z})&&st(Z,(0,V.default)((0,V.default)({},ut),M));const b=m(Z,(0,V.default)((0,V.default)({},ut),M)),D=(et=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&et!==void 0?et:H,w=U0((0,V.default)((0,V.default)({},b),{},{initialPageParam:(tt=M.initialCursor)!==null&&tt!==void 0?tt:null,persister:M.persister,queryKey:Z,queryFn:yt?X:B=>{var $;const rt=(0,V.default)((0,V.default)({},b),{},{trpc:(0,V.default)((0,V.default)({},b?.trpc),D?{signal:B.signal}:{signal:null})});return ht.query(...ie(Z,rt,{pageParam:($=B.pageParam)!==null&&$!==void 0?$:M.initialCursor,direction:B.direction}))}}),T);return w.trpc=Ka({path:F}),w}function at(F,X,M){var K,L,et;const I=v(),tt=Ke(F,X,"infinite"),ht=I.queryClient.getQueryDefaults(tt),it=X===Ee,st=m(tt,(0,V.default)((0,V.default)({},ht),M)),T=(K=M==null||(L=M.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&K!==void 0?K:I.abortOnUnmount;D0((0,V.default)((0,V.default)({},M),{},{initialPageParam:(et=M.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:it?X:H=>{var Z;const ut=(0,V.default)((0,V.default)({},st),{},{trpc:(0,V.default)((0,V.default)({},st?.trpc),T?{signal:H.signal}:{})});return I.client.query(...ie(tt,ut,{pageParam:(Z=H.pageParam)!==null&&Z!==void 0?Z:M.initialCursor,direction:H.direction}))}}))}function dt(F,X,M){var K,L,et;const I=v(),tt=Ke(F,X,"infinite"),ht=I.queryClient.getQueryDefaults(tt),it=m(tt,(0,V.default)((0,V.default)({},ht),M)),st=(K=M==null||(L=M.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&K!==void 0?K:I.abortOnUnmount,T=z0((0,V.default)((0,V.default)({},M),{},{initialPageParam:(et=M.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:H=>{var Z;const ut=(0,V.default)((0,V.default)({},it),{},{trpc:(0,V.default)((0,V.default)({},it?.trpc),st?{signal:H.signal}:{})});return I.client.query(...ie(tt,ut,{pageParam:(Z=H.pageParam)!==null&&Z!==void 0?Z:M.initialCursor,direction:H.direction}))}}),I.queryClient);return T.trpc=Ka({path:F}),[T.data,T]}return{Provider:h,createClient:d,useContext:v,useUtils:v,useQuery:p,usePrefetchQuery:j,useSuspenseQuery:_,useQueries:(F,X)=>{const{ssrState:M,queryClient:K,prefetchQuery:L,client:et}=v(),I=dy(et),tt=F(I);if(typeof window>"u"&&M==="prepass")for(const it of tt){var ht;const st=it;((ht=st.trpc)===null||ht===void 0?void 0:ht.ssr)!==!1&&!K.getQueryCache().find({queryKey:st.queryKey})&&L(st.queryKey,st)}return By({queries:tt.map(it=>(0,V.default)((0,V.default)({},it),{},{queryKey:it.queryKey})),combine:X?.combine},K)},useSuspenseQueries:F=>{const{queryClient:X,client:M}=v(),K=dy(M),L=F(K),et=M0({queries:L.map(I=>(0,V.default)((0,V.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},X);return[et.map(I=>I.data),et]},useMutation:R,useSubscription:N,useInfiniteQuery:P,usePrefetchInfiniteQuery:at,useSuspenseInfiniteQuery:dt}}function xb(a){const i=db(a);return Ms(c=>c==="useContext"||c==="useUtils"?()=>{const s=a.useUtils();return G.useMemo(()=>pb(s),[s])}:a.hasOwnProperty(c)?a[c]:i[c])}function Eb(a){const i=_b();return xb(i)}const Pt=Eb(),Tb=Pt.createClient({links:[Wg({url:"/api/trpc"})]}),yy="/media/images/capas/capa-placeholder.svg",fs="biblioteca_modo_exibicao";function vy(){if(typeof window>"u")return"desktop";const a=window.innerWidth;return a<768?"mobile":a<1024?"tablet":"desktop"}function Ab(){const[a,i]=G.useState(vy);return G.useEffect(()=>{function c(){i(vy())}return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]),a}function jb({livros:a,titulo:i}){const{data:c}=Pt.config.obter.useQuery(),s=Ab(),[f,d]=G.useState(()=>typeof window>"u"?"grade":localStorage.getItem(fs)||"grade");G.useEffect(()=>{c&&!localStorage.getItem(fs)&&d(c.modoPadrao)},[c]);function h(m){d(m),localStorage.setItem(fs,m)}const v=s==="desktop"?c?.colunasDesktop??4:s==="tablet"?c?.colunasTablet??2:null;return Q.jsxs("section",{children:[Q.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem"},children:[Q.jsx("h2",{style:{fontFamily:"var(--font-ui)",fontSize:"0.75rem",letterSpacing:"var(--tracking-wider)",textTransform:"uppercase",color:"var(--color-text-on-dark-subtle)"},children:i}),Q.jsxs("div",{style:{display:"flex",gap:"0.4rem"},children:[Q.jsx("button",{"aria-label":"ver em grade","aria-pressed":f==="grade",onClick:()=>h("grade"),style:my(f==="grade"),children:Q.jsx(zb,{})}),Q.jsx("button",{"aria-label":"ver em lista","aria-pressed":f==="lista",onClick:()=>h("lista"),style:my(f==="lista"),children:Q.jsx(Mb,{})})]})]}),f==="grade"?Q.jsx("div",{style:{display:"grid",gridTemplateColumns:v?`repeat(${v}, 1fr)`:"repeat(auto-fill, minmax(110px, 1fr))",gap:"1.25rem"},children:a.map(m=>Q.jsxs("a",{href:`/livro/${m.id}`,style:{display:"block"},children:[Q.jsx("img",{src:m.capaUrl||yy,alt:m.titulo,style:{width:"100%",aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-sm)"}}),Q.jsx("p",{style:{fontSize:"0.8rem",marginTop:"0.5rem",color:"var(--clr-branco)"},children:m.titulo}),Q.jsx("p",{style:{fontSize:"0.7rem",color:"var(--color-text-on-dark-muted)"},children:m.autor})]},m.id))}):Q.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:a.map(m=>Q.jsxs("a",{href:`/livro/${m.id}`,style:{display:"flex",gap:"1rem",alignItems:"center",padding:"0.5rem",borderRadius:"var(--radius-md)",background:"var(--color-bg-card-dark)"},children:[Q.jsx("img",{src:m.capaUrl||yy,alt:m.titulo,style:{width:48,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"4px",flexShrink:0}}),Q.jsxs("div",{children:[Q.jsx("p",{style:{fontSize:"0.9rem",color:"var(--clr-branco)"},children:m.titulo}),Q.jsxs("p",{style:{fontSize:"0.75rem",color:"var(--color-text-on-dark-muted)"},children:[m.autor,m.serie?` · ${m.serie}`:""]})]})]},m.id))})]})}function my(a){return{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",background:a?"var(--clr-acento-alpha12)":"transparent",color:a?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)",border:"none",cursor:"pointer"}}function zb(){return Q.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[Q.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),Q.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),Q.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),Q.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Mb(){return Q.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[Q.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),Q.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),Q.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const py="/media/images/capas/capa-placeholder.svg";function Cb(){const{data:a,isLoading:i}=Pt.biblioteca.getCatalogo.useQuery(),{data:c}=Pt.auth.me.useQuery(),{data:s}=Pt.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!c}),f=a?.[0],d=a?.slice(1)??[];return Q.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[Q.jsxs("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:[Q.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:32}}),Q.jsx("a",{href:"/admin",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:c?"área do editor":"entrar"})]}),Q.jsxs("div",{style:{maxWidth:960,margin:"0 auto",padding:"1.5rem 1.25rem 4rem"},children:[i&&Q.jsx("p",{style:{color:"var(--color-text-on-dark-muted)",fontSize:"0.875rem"},children:"carregando..."}),!i&&(!a||a.length===0)&&Q.jsxs("div",{style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",borderRadius:"var(--radius-lg)",padding:"2.5rem",textAlign:"center",color:"var(--color-text-on-dark-muted)"},children:[Q.jsx("p",{style:{fontFamily:"var(--font-display)",fontSize:"1.25rem",color:"var(--clr-branco)",marginBottom:"0.5rem"},children:"A estante ainda está sendo montada"}),Q.jsx("p",{style:{fontSize:"0.875rem"},children:"Em breve os primeiros livros aparecem aqui."})]}),f&&Q.jsx("section",{style:{marginBottom:"3rem"},children:Q.jsxs("div",{style:{display:"flex",gap:"1.5rem",background:"var(--color-bg-card-dark)",border:"var(--border-thin)",borderRadius:"var(--radius-xl)",padding:"1.5rem",boxShadow:"var(--shadow-borgonha-md)"},children:[Q.jsx("img",{src:f.capaUrl||py,alt:f.titulo,style:{width:110,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)",flexShrink:0}}),Q.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",gap:"0.5rem"},children:[Q.jsx("span",{style:{fontFamily:"var(--font-ui)",fontSize:"0.7rem",letterSpacing:"var(--tracking-caps)",textTransform:"uppercase",color:"var(--clr-acento-400)",fontWeight:700},children:"destaque"}),Q.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.35rem",color:"var(--clr-branco)",fontWeight:600},children:f.titulo}),f.serie&&Q.jsxs("span",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:[f.serie,f.volumeNumero?` · volume ${f.volumeNumero}`:""]}),Q.jsx("a",{href:`/livro/${f.id}`,className:"btn btn-primary",style:{width:"fit-content",marginTop:"0.5rem"},children:"ler agora"})]})]})}),s&&s.length>0&&Q.jsxs("section",{style:{marginBottom:"3rem"},children:[Q.jsx("h2",{style:{fontFamily:"var(--font-ui)",fontSize:"0.75rem",letterSpacing:"var(--tracking-wider)",textTransform:"uppercase",color:"var(--color-text-on-dark-subtle)",marginBottom:"1rem"},children:"continuar lendo"}),Q.jsx("div",{style:{display:"flex",gap:"1rem",overflowX:"auto",paddingBottom:"0.25rem"},children:s.map(h=>Q.jsxs("a",{href:`/livro/${h.livroId}`,style:{display:"block",flexShrink:0,width:90},children:[Q.jsx("img",{src:h.capaUrl||py,alt:h.titulo,style:{width:"100%",aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)"}}),Q.jsx("p",{style:{fontSize:"0.75rem",marginTop:"0.4rem",color:"var(--clr-branco)"},children:h.titulo})]},h.livroId))})]}),d.length>0&&Q.jsx(jb,{livros:d,titulo:"todos os livros"})]})]})}function vv(){const a=Pt.useUtils(),{data:i,isLoading:c}=Pt.auth.me.useQuery(),s=Pt.auth.login.useMutation({onSuccess:()=>a.auth.me.invalidate()}),f=Pt.auth.logout.useMutation({onSuccess:()=>a.auth.me.invalidate()}),d=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:c,login:s,logout:f,podePublicar:d}}function Db(){const{login:a}=vv(),[i,c]=G.useState(""),[s,f]=G.useState("");return Q.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},className:"flex items-center justify-center px-6",children:Q.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[Q.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:32,marginBottom:"1.5rem"}}),Q.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-lg font-medium",children:"Entrar"}),Q.jsx("input",{className:"w-full rounded px-3 py-2",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},placeholder:"e-mail",value:i,onChange:d=>c(d.target.value)}),Q.jsx("input",{className:"w-full rounded px-3 py-2",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},placeholder:"senha",type:"password",value:s,onChange:d=>f(d.target.value)}),Q.jsx("button",{className:"btn btn-primary w-full",onClick:()=>a.mutate({email:i,senha:s}),disabled:a.isPending,children:a.isPending?"entrando...":"entrar"}),a.isError&&Q.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:a.error.message})]})})}function Rb(){const{data:a}=Pt.config.obter.useQuery(),i=Pt.useUtils(),c=Pt.config.atualizar.useMutation({onSuccess:()=>i.config.obter.invalidate()});return a?Q.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[Q.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Configurações de exibição"}),Q.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."}),Q.jsxs("div",{className:"flex gap-4 items-center",children:[Q.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",Q.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onBlur:s=>c.mutate({colunasDesktop:Number(s.target.value)})})]}),Q.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",Q.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onBlur:s=>c.mutate({colunasTablet:Number(s.target.value)})})]})]}),Q.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",Q.jsxs("select",{defaultValue:a.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onChange:s=>c.mutate({modoPadrao:s.target.value}),children:[Q.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),Q.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]})]}):null}function Ub(){const a=Pt.useUtils(),i=Pt.biblioteca.admin.criar.useMutation({onSuccess:()=>a.biblioteca.admin.listar.invalidate()}),[c,s]=G.useState(""),[f,d]=G.useState(""),[h,v]=G.useState(""),[m,p]=G.useState(""),[j,_]=G.useState(""),[R,Y]=G.useState(""),[J,N]=G.useState(null),[P,at]=G.useState(null),[dt,Tt]=G.useState(!1),[qt,F]=G.useState(null),X={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};async function M(L,et,I,tt={}){const ht=new FormData;ht.append(et,I);for(const[st,T]of Object.entries(tt))ht.append(st,T);const it=await fetch(L,{method:"POST",body:ht});if(!it.ok){const st=await it.json().catch(()=>({}));throw new Error(st.erro||"Falha no upload.")}return it.json()}async function K(){if(!J){F("Selecione o arquivo DOCX.");return}F(null),Tt(!0);try{const{docxOriginalUrl:L,epubUrl:et}=await M("/api/admin/upload-docx","arquivo",J,{titulo:c,autor:j});let I;P&&(I=(await M("/api/admin/upload-capa","imagem",P)).url),await i.mutateAsync({titulo:c,subtitulo:f||void 0,serie:h||void 0,volumeNumero:m?Number(m):void 0,autor:j,resumo:R||void 0,capaUrl:I,epubUrl:et,docxOriginalUrl:L}),s(""),d(""),v(""),p(""),_(""),Y(""),N(null),at(null)}catch(L){F(L instanceof Error?L.message:"Erro ao publicar.")}finally{Tt(!1)}}return Q.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[Q.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Novo livro"}),Q.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"título",value:c,onChange:L=>s(L.target.value)}),Q.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"subtítulo (opcional)",value:f,onChange:L=>d(L.target.value)}),Q.jsxs("div",{className:"flex gap-3",children:[Q.jsx("input",{className:"flex-1 rounded px-3 py-2",style:X,placeholder:"série (opcional)",value:h,onChange:L=>v(L.target.value)}),Q.jsx("input",{className:"w-28 rounded px-3 py-2",style:X,placeholder:"volume nº",value:m,onChange:L=>p(L.target.value)})]}),Q.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"autor",value:j,onChange:L=>_(L.target.value)}),Q.jsx("textarea",{className:"w-full rounded px-3 py-2",style:X,placeholder:"resumo (opcional)",value:R,onChange:L=>Y(L.target.value)}),Q.jsx("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"arquivo DOCX"}),Q.jsx("input",{type:"file",accept:".docx",onChange:L=>N(L.target.files?.[0]??null)}),Q.jsx("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"capa (opcional)"}),Q.jsx("input",{type:"file",accept:"image/*",onChange:L=>at(L.target.files?.[0]??null)}),qt&&Q.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:qt}),Q.jsx("button",{className:"btn btn-primary",onClick:K,disabled:dt||!c||!j,children:dt?"processando...":"salvar como rascunho"})]})}function qb(){const a=Pt.useUtils(),{data:i}=Pt.biblioteca.admin.listar.useQuery(),c=Pt.biblioteca.admin.atualizar.useMutation({onSuccess:()=>a.biblioteca.admin.listar.invalidate()});return Q.jsxs("div",{className:"mt-6 space-y-2",children:[Q.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Livros"}),i?.map(s=>Q.jsxs("div",{className:"flex items-center justify-between rounded px-3 py-2",style:{border:"var(--border-thin)"},children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-sm font-medium",children:s.titulo}),Q.jsxs("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[s.status," · ",s.epubUrl?"epub ok":"sem epub"]})]}),Q.jsx("button",{className:"btn btn-ghost text-sm",style:{padding:"0.4rem 0.9rem",fontSize:"0.75rem"},onClick:()=>c.mutate({id:s.id,status:s.status==="publicado"?"rascunho":"publicado"}),children:s.status==="publicado"?"despublicar":"publicar"})]},s.id))]})}function Qb(){const{usuario:a,isLoading:i,podePublicar:c,logout:s}=vv();return i?null:a?c?Q.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:Q.jsxs("div",{className:"max-w-xl mx-auto p-6 space-y-6",children:[Q.jsxs("div",{className:"flex justify-between items-center",children:[Q.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:28}}),Q.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>s.mutate(),children:"sair"})]}),Q.jsx(Ub,{}),Q.jsx(qb,{}),Q.jsx(Rb,{})]})}):Q.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},className:"p-6",children:"Sua conta não tem permissão de editor."}):Q.jsx(Db,{})}const Nb=G.lazy(()=>t0(()=>import("./Livro-bZTQdW6z.js"),[]).then(a=>({default:a.Livro})));function Hb(){const[a]=G.useState(()=>new p0);return Q.jsx(Pt.Provider,{client:Tb,queryClient:a,children:Q.jsx(x0,{client:a,children:Q.jsx(G.Suspense,{fallback:null,children:Q.jsxs(ng,{children:[Q.jsx(is,{path:"/admin",component:Qb}),Q.jsx(is,{path:"/livro/:id",component:Nb}),Q.jsx(is,{path:"/",component:Cb})]})})})})}$p.createRoot(document.getElementById("root")).render(Q.jsx(G.StrictMode,{children:Q.jsx(Hb,{})}));export{wb as c,Yp as g,Q as j,G as r,Pt as t,I0 as u};
