function kp(n,i){for(var s=0;s<i.length;s++){const c=i[s];if(typeof c!="string"&&!Array.isArray(c)){for(const o in c)if(o!=="default"&&!(o in n)){const d=Object.getOwnPropertyDescriptor(c,o);d&&Object.defineProperty(n,o,d.get?d:{enumerable:!0,get:()=>c[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function s(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(o){if(o.ep)return;o.ep=!0;const d=s(o);fetch(o.href,d)}})();var rx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var uc={exports:{}},kn={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Kh;function $p(){if(Kh)return kn;Kh=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(c,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var m in o)m!=="key"&&(d[m]=o[m])}else d=o;return o=d.ref,{$$typeof:n,type:c,key:h,ref:o!==void 0?o:null,props:d}}return kn.Fragment=i,kn.jsx=s,kn.jsxs=s,kn}var Zh;function Pp(){return Zh||(Zh=1,uc.exports=$p()),uc.exports}var g=Pp(),ic={exports:{}},st={};/**
 * @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 Vh;function Wp(){if(Vh)return st;Vh=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),N=Symbol.iterator;function L(x){return x===null||typeof x!="object"?null:(x=N&&x[N]||x["@@iterator"],typeof x=="function"?x:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,P={};function it(x,D,H){this.props=x,this.context=D,this.refs=P,this.updater=H||K}it.prototype.isReactComponent={},it.prototype.setState=function(x,D){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,D,"setState")},it.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function mt(){}mt.prototype=it.prototype;function Et(x,D,H){this.props=x,this.context=D,this.refs=P,this.updater=H||K}var qt=Et.prototype=new mt;qt.constructor=Et,U(qt,it.prototype),qt.isPureReactComponent=!0;var $=Array.isArray;function V(){}var M={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function W(x,D,H){var Y=H.ref;return{$$typeof:n,type:x,key:D,ref:Y!==void 0?Y:null,props:H}}function lt(x,D){return W(x.type,D,x.props)}function F(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function et(x){var D={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(H){return D[H]})}var vt=/\/+/g;function ct(x,D){return typeof x=="object"&&x!==null&&x.key!=null?et(""+x.key):D.toString(36)}function J(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(V,V):(x.status="pending",x.then(function(D){x.status==="pending"&&(x.status="fulfilled",x.value=D)},function(D){x.status==="pending"&&(x.status="rejected",x.reason=D)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function A(x,D,H,Y,I){var rt=typeof x;(rt==="undefined"||rt==="boolean")&&(x=null);var St=!1;if(x===null)St=!0;else switch(rt){case"bigint":case"string":case"number":St=!0;break;case"object":switch(x.$$typeof){case n:case i:St=!0;break;case T:return St=x._init,A(St(x._payload),D,H,Y,I)}}if(St)return I=I(x),St=Y===""?"."+ct(x,0):Y,$(I)?(H="",St!=null&&(H=St.replace(vt,"$&/")+"/"),A(I,D,H,"",function(tn){return tn})):I!=null&&(F(I)&&(I=lt(I,H+(I.key==null||x&&x.key===I.key?"":(""+I.key).replace(vt,"$&/")+"/")+St)),D.push(I)),1;St=0;var ne=Y===""?".":Y+":";if($(x))for(var Lt=0;Lt<x.length;Lt++)Y=x[Lt],rt=ne+ct(Y,Lt),St+=A(Y,D,H,rt,I);else if(Lt=L(x),typeof Lt=="function")for(x=Lt.call(x),Lt=0;!(Y=x.next()).done;)Y=Y.value,rt=ne+ct(Y,Lt++),St+=A(Y,D,H,rt,I);else if(rt==="object"){if(typeof x.then=="function")return A(J(x),D,H,Y,I);throw D=String(x),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return St}function w(x,D,H){if(x==null)return x;var Y=[],I=0;return A(x,Y,"","",function(rt){return D.call(H,rt,I++)}),Y}function G(x){if(x._status===-1){var D=x._result;D=D(),D.then(function(H){(x._status===0||x._status===-1)&&(x._status=1,x._result=H)},function(H){(x._status===0||x._status===-1)&&(x._status=2,x._result=H)}),x._status===-1&&(x._status=0,x._result=D)}if(x._status===1)return x._result.default;throw x._result}var at=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},dt={map:w,forEach:function(x,D,H){w(x,function(){D.apply(this,arguments)},H)},count:function(x){var D=0;return w(x,function(){D++}),D},toArray:function(x){return w(x,function(D){return D})||[]},only:function(x){if(!F(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return st.Activity=j,st.Children=dt,st.Component=it,st.Fragment=s,st.Profiler=o,st.PureComponent=Et,st.StrictMode=c,st.Suspense=v,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,st.__COMPILER_RUNTIME={__proto__:null,c:function(x){return M.H.useMemoCache(x)}},st.cache=function(x){return function(){return x.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(x,D,H){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Y=U({},x.props),I=x.key;if(D!=null)for(rt in D.key!==void 0&&(I=""+D.key),D)!X.call(D,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&D.ref===void 0||(Y[rt]=D[rt]);var rt=arguments.length-2;if(rt===1)Y.children=H;else if(1<rt){for(var St=Array(rt),ne=0;ne<rt;ne++)St[ne]=arguments[ne+2];Y.children=St}return W(x.type,I,Y)},st.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},st.createElement=function(x,D,H){var Y,I={},rt=null;if(D!=null)for(Y in D.key!==void 0&&(rt=""+D.key),D)X.call(D,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(I[Y]=D[Y]);var St=arguments.length-2;if(St===1)I.children=H;else if(1<St){for(var ne=Array(St),Lt=0;Lt<St;Lt++)ne[Lt]=arguments[Lt+2];I.children=ne}if(x&&x.defaultProps)for(Y in St=x.defaultProps,St)I[Y]===void 0&&(I[Y]=St[Y]);return W(x,rt,I)},st.createRef=function(){return{current:null}},st.forwardRef=function(x){return{$$typeof:m,render:x}},st.isValidElement=F,st.lazy=function(x){return{$$typeof:T,_payload:{_status:-1,_result:x},_init:G}},st.memo=function(x,D){return{$$typeof:p,type:x,compare:D===void 0?null:D}},st.startTransition=function(x){var D=M.T,H={};M.T=H;try{var Y=x(),I=M.S;I!==null&&I(H,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(V,at)}catch(rt){at(rt)}finally{D!==null&&H.types!==null&&(D.types=H.types),M.T=D}},st.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},st.use=function(x){return M.H.use(x)},st.useActionState=function(x,D,H){return M.H.useActionState(x,D,H)},st.useCallback=function(x,D){return M.H.useCallback(x,D)},st.useContext=function(x){return M.H.useContext(x)},st.useDebugValue=function(){},st.useDeferredValue=function(x,D){return M.H.useDeferredValue(x,D)},st.useEffect=function(x,D){return M.H.useEffect(x,D)},st.useEffectEvent=function(x){return M.H.useEffectEvent(x)},st.useId=function(){return M.H.useId()},st.useImperativeHandle=function(x,D,H){return M.H.useImperativeHandle(x,D,H)},st.useInsertionEffect=function(x,D){return M.H.useInsertionEffect(x,D)},st.useLayoutEffect=function(x,D){return M.H.useLayoutEffect(x,D)},st.useMemo=function(x,D){return M.H.useMemo(x,D)},st.useOptimistic=function(x,D){return M.H.useOptimistic(x,D)},st.useReducer=function(x,D,H){return M.H.useReducer(x,D,H)},st.useRef=function(x){return M.H.useRef(x)},st.useState=function(x){return M.H.useState(x)},st.useSyncExternalStore=function(x,D,H){return M.H.useSyncExternalStore(x,D,H)},st.useTransition=function(){return M.H.useTransition()},st.version="19.2.1",st}var Jh;function Ri(){return Jh||(Jh=1,ic.exports=Wp()),ic.exports}var B=Ri();const Ip=Fp(B),Cm=kp({__proto__:null,default:Ip},[B]);var rc={exports:{}},Fn={},sc={exports:{}},cc={};/**
 * @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 kh;function t0(){return kh||(kh=1,(function(n){function i(A,w){var G=A.length;A.push(w);t:for(;0<G;){var at=G-1>>>1,dt=A[at];if(0<o(dt,w))A[at]=w,A[G]=dt,G=at;else break t}}function s(A){return A.length===0?null:A[0]}function c(A){if(A.length===0)return null;var w=A[0],G=A.pop();if(G!==w){A[0]=G;t:for(var at=0,dt=A.length,x=dt>>>1;at<x;){var D=2*(at+1)-1,H=A[D],Y=D+1,I=A[Y];if(0>o(H,G))Y<dt&&0>o(I,H)?(A[at]=I,A[Y]=G,at=Y):(A[at]=H,A[D]=G,at=D);else if(Y<dt&&0>o(I,G))A[at]=I,A[Y]=G,at=Y;else break t}}return w}function o(A,w){var G=A.sortIndex-w.sortIndex;return G!==0?G:A.id-w.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var v=[],p=[],T=1,j=null,N=3,L=!1,K=!1,U=!1,P=!1,it=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,Et=typeof setImmediate<"u"?setImmediate:null;function qt(A){for(var w=s(p);w!==null;){if(w.callback===null)c(p);else if(w.startTime<=A)c(p),w.sortIndex=w.expirationTime,i(v,w);else break;w=s(p)}}function $(A){if(U=!1,qt(A),!K)if(s(v)!==null)K=!0,V||(V=!0,et());else{var w=s(p);w!==null&&J($,w.startTime-A)}}var V=!1,M=-1,X=5,W=-1;function lt(){return P?!0:!(n.unstable_now()-W<X)}function F(){if(P=!1,V){var A=n.unstable_now();W=A;var w=!0;try{t:{K=!1,U&&(U=!1,mt(M),M=-1),L=!0;var G=N;try{e:{for(qt(A),j=s(v);j!==null&&!(j.expirationTime>A&&lt());){var at=j.callback;if(typeof at=="function"){j.callback=null,N=j.priorityLevel;var dt=at(j.expirationTime<=A);if(A=n.unstable_now(),typeof dt=="function"){j.callback=dt,qt(A),w=!0;break e}j===s(v)&&c(v),qt(A)}else c(v);j=s(v)}if(j!==null)w=!0;else{var x=s(p);x!==null&&J($,x.startTime-A),w=!1}}break t}finally{j=null,N=G,L=!1}w=void 0}}finally{w?et():V=!1}}}var et;if(typeof Et=="function")et=function(){Et(F)};else if(typeof MessageChannel<"u"){var vt=new MessageChannel,ct=vt.port2;vt.port1.onmessage=F,et=function(){ct.postMessage(null)}}else et=function(){it(F,0)};function J(A,w){M=it(function(){A(n.unstable_now())},w)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return N},n.unstable_next=function(A){switch(N){case 1:case 2:case 3:var w=3;break;default:w=N}var G=N;N=w;try{return A()}finally{N=G}},n.unstable_requestPaint=function(){P=!0},n.unstable_runWithPriority=function(A,w){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var G=N;N=A;try{return w()}finally{N=G}},n.unstable_scheduleCallback=function(A,w,G){var at=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?at+G:at):G=at,A){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=G+dt,A={id:T++,callback:w,priorityLevel:A,startTime:G,expirationTime:dt,sortIndex:-1},G>at?(A.sortIndex=G,i(p,A),s(v)===null&&A===s(p)&&(U?(mt(M),M=-1):U=!0,J($,G-at))):(A.sortIndex=dt,i(v,A),K||L||(K=!0,V||(V=!0,et()))),A},n.unstable_shouldYield=lt,n.unstable_wrapCallback=function(A){var w=N;return function(){var G=N;N=w;try{return A.apply(this,arguments)}finally{N=G}}}})(cc)),cc}var Fh;function e0(){return Fh||(Fh=1,sc.exports=t0()),sc.exports}var oc={exports:{}},le={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $h;function l0(){if($h)return le;$h=1;var n=Ri();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)p+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(v,p,T){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:j==null?null:""+j,children:v,containerInfo:p,implementation:T}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,le.createPortal=function(v,p){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(v,p,null,T)},le.flushSync=function(v){var p=h.T,T=c.p;try{if(h.T=null,c.p=2,v)return v()}finally{h.T=p,c.p=T,c.d.f()}},le.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(v,p))},le.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},le.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var T=p.as,j=m(T,p.crossOrigin),N=typeof p.integrity=="string"?p.integrity:void 0,L=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;T==="style"?c.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:j,integrity:N,fetchPriority:L}):T==="script"&&c.d.X(v,{crossOrigin:j,integrity:N,fetchPriority:L,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},le.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var T=m(p.as,p.crossOrigin);c.d.M(v,{crossOrigin:T,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(v)},le.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var T=p.as,j=m(T,p.crossOrigin);c.d.L(v,T,{crossOrigin:j,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},le.preloadModule=function(v,p){if(typeof v=="string")if(p){var T=m(p.as,p.crossOrigin);c.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:T,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(v)},le.requestFormReset=function(v){c.d.r(v)},le.unstable_batchedUpdates=function(v,p){return v(p)},le.useFormState=function(v,p,T){return h.H.useFormState(v,p,T)},le.useFormStatus=function(){return h.H.useHostTransitionStatus()},le.version="19.2.1",le}var Ph;function a0(){if(Ph)return oc.exports;Ph=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),oc.exports=l0(),oc.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 Wh;function n0(){if(Wh)return Fn;Wh=1;var n=e0(),i=Ri(),s=a0();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(d(t)!==t)throw Error(c(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var l=t,a=e;;){var u=l.return;if(u===null)break;var r=u.alternate;if(r===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===l)return v(u),t;if(r===a)return v(u),e;r=r.sibling}throw Error(c(188))}if(l.return!==a.return)l=u,a=r;else{for(var f=!1,y=u.child;y;){if(y===l){f=!0,l=u,a=r;break}if(y===a){f=!0,a=u,l=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===l){f=!0,l=r,a=u;break}if(y===a){f=!0,a=r,l=u;break}y=y.sibling}if(!f)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function T(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=T(t),e!==null)return e;t=t.sibling}return null}var j=Object.assign,N=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),it=Symbol.for("react.profiler"),mt=Symbol.for("react.consumer"),Et=Symbol.for("react.context"),qt=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),lt=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function et(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var vt=Symbol.for("react.client.reference");function ct(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===vt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case it:return"Profiler";case P:return"StrictMode";case $:return"Suspense";case V:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case K:return"Portal";case Et:return t.displayName||"Context";case mt: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:ct(t.type)||"Memo";case X:e=t._payload,t=t._init;try{return ct(t(e))}catch{}}return null}var J=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},at=[],dt=-1;function x(t){return{current:t}}function D(t){0>dt||(t.current=at[dt],at[dt]=null,dt--)}function H(t,e){dt++,at[dt]=t.current,t.current=e}var Y=x(null),I=x(null),rt=x(null),St=x(null);function ne(t,e){switch(H(rt,e),H(I,t),H(Y,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?hh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=hh(e),t=mh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(Y),H(Y,t)}function Lt(){D(Y),D(I),D(rt)}function tn(t){t.memoizedState!==null&&H(St,t);var e=Y.current,l=mh(e,t.type);e!==l&&(H(I,t),H(Y,l))}function au(t){I.current===t&&(D(Y),D(I)),St.current===t&&(D(St),Kn._currentValue=G)}var Yi,Yc;function Gl(t){if(Yi===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Yi=e&&e[1]||"",Yc=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Yi+t+Yc}var Gi=!1;function Xi(t,e){if(!t||Gi)return"";Gi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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 C=z}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(z){C=z}t.call(Q.prototype)}}else{try{throw Error()}catch(z){C=z}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var b=f.split(`
`),E=y.split(`
`);for(u=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;u<E.length&&!E[u].includes("DetermineComponentFrameRoot");)u++;if(a===b.length||u===E.length)for(a=b.length-1,u=E.length-1;1<=a&&0<=u&&b[a]!==E[u];)u--;for(;1<=a&&0<=u;a--,u--)if(b[a]!==E[u]){if(a!==1||u!==1)do if(a--,u--,0>u||b[a]!==E[u]){var R=`
`+b[a].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=a&&0<=u);break}}}finally{Gi=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Gl(l):""}function Ev(t,e){switch(t.tag){case 26:case 27:case 5:return Gl(t.type);case 16:return Gl("Lazy");case 13:return t.child!==e&&e!==null?Gl("Suspense Fallback"):Gl("Suspense");case 19:return Gl("SuspenseList");case 0:case 15:return Xi(t.type,!1);case 11:return Xi(t.type.render,!1);case 1:return Xi(t.type,!0);case 31:return Gl("Activity");default:return""}}function Gc(t){try{var e="",l=null;do e+=Ev(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ki=Object.prototype.hasOwnProperty,Zi=n.unstable_scheduleCallback,Vi=n.unstable_cancelCallback,Tv=n.unstable_shouldYield,Av=n.unstable_requestPaint,ve=n.unstable_now,Cv=n.unstable_getCurrentPriorityLevel,Xc=n.unstable_ImmediatePriority,Kc=n.unstable_UserBlockingPriority,nu=n.unstable_NormalPriority,zv=n.unstable_LowPriority,Zc=n.unstable_IdlePriority,Mv=n.log,Nv=n.unstable_setDisableYieldValue,en=null,ye=null;function ml(t){if(typeof Mv=="function"&&Nv(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(en,t)}catch{}}var pe=Math.clz32?Math.clz32:Uv,Dv=Math.log,Rv=Math.LN2;function Uv(t){return t>>>=0,t===0?32:31-(Dv(t)/Rv|0)|0}var uu=256,iu=262144,ru=4194304;function Xl(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 su(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var u=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var y=a&134217727;return y!==0?(a=y&~r,a!==0?u=Xl(a):(f&=y,f!==0?u=Xl(f):l||(l=y&~t,l!==0&&(u=Xl(l))))):(y=a&~r,y!==0?u=Xl(y):f!==0?u=Xl(f):l||(l=a&~t,l!==0&&(u=Xl(l)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,l=e&-e,r>=l||r===32&&(l&4194048)!==0)?e:u}function ln(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function qv(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 Vc(){var t=ru;return ru<<=1,(ru&62914560)===0&&(ru=4194304),t}function Ji(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function an(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Qv(t,e,l,a,u,r){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var y=t.entanglements,b=t.expirationTimes,E=t.hiddenUpdates;for(l=f&~l;0<l;){var R=31-pe(l),Q=1<<R;y[R]=0,b[R]=-1;var C=E[R];if(C!==null)for(E[R]=null,R=0;R<C.length;R++){var z=C[R];z!==null&&(z.lane&=-536870913)}l&=~Q}a!==0&&Jc(t,a,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function Jc(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-pe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function kc(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-pe(l),u=1<<a;u&e|t[a]&e&&(t[a]|=e),l&=~u}}function Fc(t,e){var l=e&-e;return l=(l&42)!==0?1:ki(l),(l&(t.suspendedLanes|e))!==0?0:l}function ki(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 Fi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function $c(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:wh(t.type))}function Pc(t,e){var l=w.p;try{return w.p=t,e()}finally{w.p=l}}var vl=Math.random().toString(36).slice(2),Pt="__reactFiber$"+vl,se="__reactProps$"+vl,ha="__reactContainer$"+vl,$i="__reactEvents$"+vl,wv="__reactListeners$"+vl,Hv="__reactHandles$"+vl,Wc="__reactResources$"+vl,nn="__reactMarker$"+vl;function Pi(t){delete t[Pt],delete t[se],delete t[$i],delete t[wv],delete t[Hv]}function ma(t){var e=t[Pt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[ha]||l[Pt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Sh(t);t!==null;){if(l=t[Pt])return l;t=Sh(t)}return e}t=l,l=t.parentNode}return null}function va(t){if(t=t[Pt]||t[ha]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function un(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function ya(t){var e=t[Wc];return e||(e=t[Wc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[nn]=!0}var Ic=new Set,to={};function Kl(t,e){pa(t,e),pa(t+"Capture",e)}function pa(t,e){for(to[t]=e,t=0;t<e.length;t++)Ic.add(e[t])}var Bv=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]*$"),eo={},lo={};function Lv(t){return Ki.call(lo,t)?!0:Ki.call(eo,t)?!1:Bv.test(t)?lo[t]=!0:(eo[t]=!0,!1)}function cu(t,e,l){if(Lv(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function ou(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function ke(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}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 ao(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Yv(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(f){l=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wi(t){if(!t._valueTracker){var e=ao(t)?"checked":"value";t._valueTracker=Yv(t,e,""+t[e])}}function no(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=ao(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function fu(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 Gv=/[\n"\\]/g;function Ae(t){return t.replace(Gv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ii(t,e,l,a,u,r,f,y){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?tr(t,f,Te(e)):l!=null?tr(t,f,Te(l)):a!=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 uo(t,e,l,a,u,r,f,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||l!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Wi(t);return}l=l!=null?""+Te(l):"",e=e!=null?""+Te(e):l,y||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=y?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Wi(t)}function tr(t,e,l){e==="number"&&fu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function ga(t,e,l,a){if(t=t.options,e){e={};for(var u=0;u<l.length;u++)e["$"+l[u]]=!0;for(l=0;l<t.length;l++)u=e.hasOwnProperty("$"+t[l].value),t[l].selected!==u&&(t[l].selected=u),u&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Te(l),e=null,u=0;u<t.length;u++){if(t[u].value===l){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function io(t,e,l){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Te(l):""}function ro(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(c(92));if(J(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Te(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Wi(t)}function ba(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Xv=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 so(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Xv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function co(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var u in e)a=e[u],e.hasOwnProperty(u)&&l[u]!==a&&so(t,u,a)}else for(var r in e)e.hasOwnProperty(r)&&so(t,r,e[r])}function er(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 Kv=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"]]),Zv=/^[\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 du(t){return Zv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Fe(){}var lr=null;function ar(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xa=null,Sa=null;function oo(t){var e=va(t);if(e&&(t=e.stateNode)){var l=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ii(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ae(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var u=a[se]||null;if(!u)throw Error(c(90));Ii(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&no(a)}break t;case"textarea":io(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&ga(t,!!l.multiple,e,!1)}}}var nr=!1;function fo(t,e,l){if(nr)return t(e,l);nr=!0;try{var a=t(e);return a}finally{if(nr=!1,(xa!==null||Sa!==null)&&(Iu(),xa&&(e=xa,t=Sa,Sa=xa=null,oo(e),t)))for(e=0;e<t.length;e++)oo(t[e])}}function rn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[se]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(c(231,e,typeof l));return l}var $e=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ur=!1;if($e)try{var sn={};Object.defineProperty(sn,"passive",{get:function(){ur=!0}}),window.addEventListener("test",sn,sn),window.removeEventListener("test",sn,sn)}catch{ur=!1}var yl=null,ir=null,hu=null;function ho(){if(hu)return hu;var t,e=ir,l=e.length,a,u="value"in yl?yl.value:yl.textContent,r=u.length;for(t=0;t<l&&e[t]===u[t];t++);var f=l-t;for(a=1;a<=f&&e[l-a]===u[r-a];a++);return hu=u.slice(t,1<a?1-a:void 0)}function mu(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 vu(){return!0}function mo(){return!1}function ce(t){function e(l,a,u,r,f){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(l=t[y],this[y]=l?l(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?vu:mo,this.isPropagationStopped=mo,this}return j(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=vu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=vu)},persist:function(){},isPersistent:vu}),e}var Zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yu=ce(Zl),cn=j({},Zl,{view:0,detail:0}),Vv=ce(cn),rr,sr,on,pu=j({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:or,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!==on&&(on&&t.type==="mousemove"?(rr=t.screenX-on.screenX,sr=t.screenY-on.screenY):sr=rr=0,on=t),rr)},movementY:function(t){return"movementY"in t?t.movementY:sr}}),vo=ce(pu),Jv=j({},pu,{dataTransfer:0}),kv=ce(Jv),Fv=j({},cn,{relatedTarget:0}),cr=ce(Fv),$v=j({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),Pv=ce($v),Wv=j({},Zl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Iv=ce(Wv),ty=j({},Zl,{data:0}),yo=ce(ty),ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ly={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"},ay={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ny(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ay[t])?!!e[t]:!1}function or(){return ny}var uy=j({},cn,{key:function(t){if(t.key){var e=ey[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=mu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ly[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:or,charCode:function(t){return t.type==="keypress"?mu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?mu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),iy=ce(uy),ry=j({},pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),po=ce(ry),sy=j({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:or}),cy=ce(sy),oy=j({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),fy=ce(oy),dy=j({},pu,{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}),hy=ce(dy),my=j({},Zl,{newState:0,oldState:0}),vy=ce(my),yy=[9,13,27,32],fr=$e&&"CompositionEvent"in window,fn=null;$e&&"documentMode"in document&&(fn=document.documentMode);var py=$e&&"TextEvent"in window&&!fn,go=$e&&(!fr||fn&&8<fn&&11>=fn),bo=" ",xo=!1;function So(t,e){switch(t){case"keyup":return yy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Oa=!1;function gy(t,e){switch(t){case"compositionend":return Oo(e);case"keypress":return e.which!==32?null:(xo=!0,bo);case"textInput":return t=e.data,t===bo&&xo?null:t;default:return null}}function by(t,e){if(Oa)return t==="compositionend"||!fr&&So(t,e)?(t=ho(),hu=ir=yl=null,Oa=!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 go&&e.locale!=="ko"?null:e.data;default:return null}}var xy={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 jo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!xy[t.type]:e==="textarea"}function _o(t,e,l,a){xa?Sa?Sa.push(a):Sa=[a]:xa=a,e=ii(e,"onChange"),0<e.length&&(l=new yu("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var dn=null,hn=null;function Sy(t){rh(t,0)}function gu(t){var e=un(t);if(no(e))return t}function Eo(t,e){if(t==="change")return e}var To=!1;if($e){var dr;if($e){var hr="oninput"in document;if(!hr){var Ao=document.createElement("div");Ao.setAttribute("oninput","return;"),hr=typeof Ao.oninput=="function"}dr=hr}else dr=!1;To=dr&&(!document.documentMode||9<document.documentMode)}function Co(){dn&&(dn.detachEvent("onpropertychange",zo),hn=dn=null)}function zo(t){if(t.propertyName==="value"&&gu(hn)){var e=[];_o(e,hn,t,ar(t)),fo(Sy,e)}}function Oy(t,e,l){t==="focusin"?(Co(),dn=e,hn=l,dn.attachEvent("onpropertychange",zo)):t==="focusout"&&Co()}function jy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return gu(hn)}function _y(t,e){if(t==="click")return gu(e)}function Ey(t,e){if(t==="input"||t==="change")return gu(e)}function Ty(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ge=typeof Object.is=="function"?Object.is:Ty;function mn(t,e){if(ge(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var u=l[a];if(!Ki.call(e,u)||!ge(t[u],e[u]))return!1}return!0}function Mo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function No(t,e){var l=Mo(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Mo(l)}}function Do(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Do(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ro(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=fu(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=fu(t.document)}return e}function mr(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 Ay=$e&&"documentMode"in document&&11>=document.documentMode,ja=null,vr=null,vn=null,yr=!1;function Uo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;yr||ja==null||ja!==fu(a)||(a=ja,"selectionStart"in a&&mr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),vn&&mn(vn,a)||(vn=a,a=ii(vr,"onSelect"),0<a.length&&(e=new yu("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=ja)))}function Vl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var _a={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},pr={},qo={};$e&&(qo=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function Jl(t){if(pr[t])return pr[t];if(!_a[t])return t;var e=_a[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in qo)return pr[t]=e[l];return t}var Qo=Jl("animationend"),wo=Jl("animationiteration"),Ho=Jl("animationstart"),Cy=Jl("transitionrun"),zy=Jl("transitionstart"),My=Jl("transitioncancel"),Bo=Jl("transitionend"),Lo=new Map,gr="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(" ");gr.push("scrollEnd");function Qe(t,e){Lo.set(t,e),Kl(e,[t])}var bu=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)},Ce=[],Ea=0,br=0;function xu(){for(var t=Ea,e=br=Ea=0;e<t;){var l=Ce[e];Ce[e++]=null;var a=Ce[e];Ce[e++]=null;var u=Ce[e];Ce[e++]=null;var r=Ce[e];if(Ce[e++]=null,a!==null&&u!==null){var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}r!==0&&Yo(l,u,r)}}function Su(t,e,l,a){Ce[Ea++]=t,Ce[Ea++]=e,Ce[Ea++]=l,Ce[Ea++]=a,br|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function xr(t,e,l,a){return Su(t,e,l,a),Ou(t)}function kl(t,e){return Su(t,null,null,e),Ou(t)}function Yo(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var u=!1,r=t.return;r!==null;)r.childLanes|=l,a=r.alternate,a!==null&&(a.childLanes|=l),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(u=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,u&&e!==null&&(u=31-pe(l),t=r.hiddenUpdates,a=t[u],a===null?t[u]=[e]:a.push(e),e.lane=l|536870912),r):null}function Ou(t){if(50<wn)throw wn=0,zs=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ta={};function Ny(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function be(t,e,l,a){return new Ny(t,e,l,a)}function Sr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Pe(t,e){var l=t.alternate;return l===null?(l=be(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Go(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ju(t,e,l,a,u,r){var f=0;if(a=t,typeof t=="function")Sr(t)&&(f=1);else if(typeof t=="string")f=Qp(t,l,Y.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=be(31,l,e,u),t.elementType=W,t.lanes=r,t;case U:return Fl(l.children,u,r,e);case P:f=8,u|=24;break;case it:return t=be(12,l,e,u|2),t.elementType=it,t.lanes=r,t;case $:return t=be(13,l,e,u),t.elementType=$,t.lanes=r,t;case V:return t=be(19,l,e,u),t.elementType=V,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Et:f=10;break t;case mt:f=9;break t;case qt:f=11;break t;case M:f=14;break t;case X:f=16,a=null;break t}f=29,l=Error(c(130,t===null?"null":typeof t,"")),a=null}return e=be(f,l,e,u),e.elementType=t,e.type=a,e.lanes=r,e}function Fl(t,e,l,a){return t=be(7,t,a,e),t.lanes=l,t}function Or(t,e,l){return t=be(6,t,null,e),t.lanes=l,t}function Xo(t){var e=be(18,null,null,0);return e.stateNode=t,e}function jr(t,e,l){return e=be(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ko=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var l=Ko.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Gc(e)},Ko.set(t,e),e)}return{value:t,source:e,stack:Gc(e)}}var Aa=[],Ca=0,_u=null,yn=0,Me=[],Ne=0,pl=null,Ye=1,Ge="";function We(t,e){Aa[Ca++]=yn,Aa[Ca++]=_u,_u=t,yn=e}function Zo(t,e,l){Me[Ne++]=Ye,Me[Ne++]=Ge,Me[Ne++]=pl,pl=t;var a=Ye;t=Ge;var u=32-pe(a)-1;a&=~(1<<u),l+=1;var r=32-pe(e)+u;if(30<r){var f=u-u%5;r=(a&(1<<f)-1).toString(32),a>>=f,u-=f,Ye=1<<32-pe(e)+u|l<<u|a,Ge=r+t}else Ye=1<<r|l<<u|a,Ge=t}function _r(t){t.return!==null&&(We(t,1),Zo(t,1,0))}function Er(t){for(;t===_u;)_u=Aa[--Ca],Aa[Ca]=null,yn=Aa[--Ca],Aa[Ca]=null;for(;t===pl;)pl=Me[--Ne],Me[Ne]=null,Ge=Me[--Ne],Me[Ne]=null,Ye=Me[--Ne],Me[Ne]=null}function Vo(t,e){Me[Ne++]=Ye,Me[Ne++]=Ge,Me[Ne++]=pl,Ye=e.id,Ge=e.overflow,pl=t}var Wt=null,Rt=null,xt=!1,gl=null,De=!1,Tr=Error(c(519));function bl(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pn(ze(e,t)),Tr}function Jo(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Pt]=t,e[se]=a,l){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(l=0;l<Bn.length;l++)pt(Bn[l],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),uo(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),ro(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||fh(e.textContent,l)?(a.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),a.onScroll!=null&&pt("scroll",e),a.onScrollEnd!=null&&pt("scrollend",e),a.onClick!=null&&(e.onclick=Fe),e=!0):e=!1,e||bl(t,!0)}function ko(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 za(t){if(t!==Wt)return!1;if(!xt)return ko(t),xt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Ks(t.type,t.memoizedProps)),l=!l),l&&Rt&&bl(t),ko(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Rt=xh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Rt=xh(t)}else e===27?(e=Rt,Rl(t.type)?(t=Fs,Fs=null,Rt=t):Rt=e):Rt=Wt?Ue(t.stateNode.nextSibling):null;return!0}function $l(){Rt=Wt=null,xt=!1}function Ar(){var t=gl;return t!==null&&(he===null?he=t:he.push.apply(he,t),gl=null),t}function pn(t){gl===null?gl=[t]:gl.push(t)}var Cr=x(null),Pl=null,Ie=null;function xl(t,e,l){H(Cr,e._currentValue),e._currentValue=l}function tl(t){t._currentValue=Cr.current,D(Cr)}function zr(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Mr(t,e,l,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var r=u.dependencies;if(r!==null){var f=u.child;r=r.firstContext;t:for(;r!==null;){var y=r;r=u;for(var b=0;b<e.length;b++)if(y.context===e[b]){r.lanes|=l,y=r.alternate,y!==null&&(y.lanes|=l),zr(r.return,l,t),a||(f=null);break t}r=y.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(c(341));f.lanes|=l,r=f.alternate,r!==null&&(r.lanes|=l),zr(f,l,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Ma(t,e,l,a){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 f=u.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var y=u.type;ge(u.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(u===St.current){if(f=u.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Kn):t=[Kn])}u=u.return}t!==null&&Mr(e,t,l,a),e.flags|=262144}function Eu(t){for(t=t.firstContext;t!==null;){if(!ge(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wl(t){Pl=t,Ie=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Fo(Pl,t)}function Tu(t,e){return Pl===null&&Wl(t),Fo(t,e)}function Fo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ie===null){if(t===null)throw Error(c(308));Ie=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ie=Ie.next=e;return l}var Dy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Ry=n.unstable_scheduleCallback,Uy=n.unstable_NormalPriority,Kt={$$typeof:Et,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nr(){return{controller:new Dy,data:new Map,refCount:0}}function gn(t){t.refCount--,t.refCount===0&&Ry(Uy,function(){t.controller.abort()})}var bn=null,Dr=0,Na=0,Da=null;function qy(t,e){if(bn===null){var l=bn=[];Dr=0,Na=qs(),Da={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Dr++,e.then($o,$o),e}function $o(){if(--Dr===0&&bn!==null){Da!==null&&(Da.status="fulfilled");var t=bn;bn=null,Na=0,Da=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Qy(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var u=0;u<l.length;u++)(0,l[u])(e)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var Po=A.S;A.S=function(t,e){qd=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&qy(t,e),Po!==null&&Po(t,e)};var Il=x(null);function Rr(){var t=Il.current;return t!==null?t:Dt.pooledCache}function Au(t,e){e===null?H(Il,Il.current):H(Il,e.pool)}function Wo(){var t=Rr();return t===null?null:{parent:Kt._currentValue,pool:t}}var Ra=Error(c(460)),Ur=Error(c(474)),Cu=Error(c(542)),zu={then:function(){}};function Io(t){return t=t.status,t==="fulfilled"||t==="rejected"}function tf(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Fe,Fe),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,lf(t),t;default:if(typeof e.status=="string")e.then(Fe,Fe);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=a}},function(a){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,lf(t),t}throw ea=e,Ra}}function ta(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ea=l,Ra):l}}var ea=null;function ef(){if(ea===null)throw Error(c(459));var t=ea;return ea=null,t}function lf(t){if(t===Ra||t===Cu)throw Error(c(483))}var Ua=null,xn=0;function Mu(t){var e=xn;return xn+=1,Ua===null&&(Ua=[]),tf(Ua,t,e)}function Sn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Nu(t,e){throw e.$$typeof===N?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function af(t){function e(O,S){if(t){var _=O.deletions;_===null?(O.deletions=[S],O.flags|=16):_.push(S)}}function l(O,S){if(!t)return null;for(;S!==null;)e(O,S),S=S.sibling;return null}function a(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=Pe(O,S),O.index=0,O.sibling=null,O}function r(O,S,_){return O.index=_,t?(_=O.alternate,_!==null?(_=_.index,_<S?(O.flags|=67108866,S):_):(O.flags|=67108866,S)):(O.flags|=1048576,S)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function y(O,S,_,q){return S===null||S.tag!==6?(S=Or(_,O.mode,q),S.return=O,S):(S=u(S,_),S.return=O,S)}function b(O,S,_,q){var nt=_.type;return nt===U?R(O,S,_.props.children,q,_.key):S!==null&&(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&ta(nt)===S.type)?(S=u(S,_.props),Sn(S,_),S.return=O,S):(S=ju(_.type,_.key,_.props,null,O.mode,q),Sn(S,_),S.return=O,S)}function E(O,S,_,q){return S===null||S.tag!==4||S.stateNode.containerInfo!==_.containerInfo||S.stateNode.implementation!==_.implementation?(S=jr(_,O.mode,q),S.return=O,S):(S=u(S,_.children||[]),S.return=O,S)}function R(O,S,_,q,nt){return S===null||S.tag!==7?(S=Fl(_,O.mode,q,nt),S.return=O,S):(S=u(S,_),S.return=O,S)}function Q(O,S,_){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=Or(""+S,O.mode,_),S.return=O,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case L:return _=ju(S.type,S.key,S.props,null,O.mode,_),Sn(_,S),_.return=O,_;case K:return S=jr(S,O.mode,_),S.return=O,S;case X:return S=ta(S),Q(O,S,_)}if(J(S)||et(S))return S=Fl(S,O.mode,_,null),S.return=O,S;if(typeof S.then=="function")return Q(O,Mu(S),_);if(S.$$typeof===Et)return Q(O,Tu(O,S),_);Nu(O,S)}return null}function C(O,S,_,q){var nt=S!==null?S.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return nt!==null?null:y(O,S,""+_,q);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case L:return _.key===nt?b(O,S,_,q):null;case K:return _.key===nt?E(O,S,_,q):null;case X:return _=ta(_),C(O,S,_,q)}if(J(_)||et(_))return nt!==null?null:R(O,S,_,q,null);if(typeof _.then=="function")return C(O,S,Mu(_),q);if(_.$$typeof===Et)return C(O,S,Tu(O,_),q);Nu(O,_)}return null}function z(O,S,_,q,nt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return O=O.get(_)||null,y(S,O,""+q,nt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case L:return O=O.get(q.key===null?_:q.key)||null,b(S,O,q,nt);case K:return O=O.get(q.key===null?_:q.key)||null,E(S,O,q,nt);case X:return q=ta(q),z(O,S,_,q,nt)}if(J(q)||et(q))return O=O.get(_)||null,R(S,O,q,nt,null);if(typeof q.then=="function")return z(O,S,_,Mu(q),nt);if(q.$$typeof===Et)return z(O,S,_,Tu(S,q),nt);Nu(S,q)}return null}function k(O,S,_,q){for(var nt=null,Ot=null,tt=S,ht=S=0,bt=null;tt!==null&&ht<_.length;ht++){tt.index>ht?(bt=tt,tt=null):bt=tt.sibling;var jt=C(O,tt,_[ht],q);if(jt===null){tt===null&&(tt=bt);break}t&&tt&&jt.alternate===null&&e(O,tt),S=r(jt,S,ht),Ot===null?nt=jt:Ot.sibling=jt,Ot=jt,tt=bt}if(ht===_.length)return l(O,tt),xt&&We(O,ht),nt;if(tt===null){for(;ht<_.length;ht++)tt=Q(O,_[ht],q),tt!==null&&(S=r(tt,S,ht),Ot===null?nt=tt:Ot.sibling=tt,Ot=tt);return xt&&We(O,ht),nt}for(tt=a(tt);ht<_.length;ht++)bt=z(tt,O,ht,_[ht],q),bt!==null&&(t&&bt.alternate!==null&&tt.delete(bt.key===null?ht:bt.key),S=r(bt,S,ht),Ot===null?nt=bt:Ot.sibling=bt,Ot=bt);return t&&tt.forEach(function(Hl){return e(O,Hl)}),xt&&We(O,ht),nt}function ut(O,S,_,q){if(_==null)throw Error(c(151));for(var nt=null,Ot=null,tt=S,ht=S=0,bt=null,jt=_.next();tt!==null&&!jt.done;ht++,jt=_.next()){tt.index>ht?(bt=tt,tt=null):bt=tt.sibling;var Hl=C(O,tt,jt.value,q);if(Hl===null){tt===null&&(tt=bt);break}t&&tt&&Hl.alternate===null&&e(O,tt),S=r(Hl,S,ht),Ot===null?nt=Hl:Ot.sibling=Hl,Ot=Hl,tt=bt}if(jt.done)return l(O,tt),xt&&We(O,ht),nt;if(tt===null){for(;!jt.done;ht++,jt=_.next())jt=Q(O,jt.value,q),jt!==null&&(S=r(jt,S,ht),Ot===null?nt=jt:Ot.sibling=jt,Ot=jt);return xt&&We(O,ht),nt}for(tt=a(tt);!jt.done;ht++,jt=_.next())jt=z(tt,O,ht,jt.value,q),jt!==null&&(t&&jt.alternate!==null&&tt.delete(jt.key===null?ht:jt.key),S=r(jt,S,ht),Ot===null?nt=jt:Ot.sibling=jt,Ot=jt);return t&&tt.forEach(function(Jp){return e(O,Jp)}),xt&&We(O,ht),nt}function Nt(O,S,_,q){if(typeof _=="object"&&_!==null&&_.type===U&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case L:t:{for(var nt=_.key;S!==null;){if(S.key===nt){if(nt=_.type,nt===U){if(S.tag===7){l(O,S.sibling),q=u(S,_.props.children),q.return=O,O=q;break t}}else if(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&ta(nt)===S.type){l(O,S.sibling),q=u(S,_.props),Sn(q,_),q.return=O,O=q;break t}l(O,S);break}else e(O,S);S=S.sibling}_.type===U?(q=Fl(_.props.children,O.mode,q,_.key),q.return=O,O=q):(q=ju(_.type,_.key,_.props,null,O.mode,q),Sn(q,_),q.return=O,O=q)}return f(O);case K:t:{for(nt=_.key;S!==null;){if(S.key===nt)if(S.tag===4&&S.stateNode.containerInfo===_.containerInfo&&S.stateNode.implementation===_.implementation){l(O,S.sibling),q=u(S,_.children||[]),q.return=O,O=q;break t}else{l(O,S);break}else e(O,S);S=S.sibling}q=jr(_,O.mode,q),q.return=O,O=q}return f(O);case X:return _=ta(_),Nt(O,S,_,q)}if(J(_))return k(O,S,_,q);if(et(_)){if(nt=et(_),typeof nt!="function")throw Error(c(150));return _=nt.call(_),ut(O,S,_,q)}if(typeof _.then=="function")return Nt(O,S,Mu(_),q);if(_.$$typeof===Et)return Nt(O,S,Tu(O,_),q);Nu(O,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,S!==null&&S.tag===6?(l(O,S.sibling),q=u(S,_),q.return=O,O=q):(l(O,S),q=Or(_,O.mode,q),q.return=O,O=q),f(O)):l(O,S)}return function(O,S,_,q){try{xn=0;var nt=Nt(O,S,_,q);return Ua=null,nt}catch(tt){if(tt===Ra||tt===Cu)throw tt;var Ot=be(29,tt,null,O.mode);return Ot.lanes=q,Ot.return=O,Ot}finally{}}}var la=af(!0),nf=af(!1),Sl=!1;function qr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qr(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 Ol(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function jl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Tt&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=Ou(t),Yo(t,null,l),e}return Su(t,a,e,l),Ou(t)}function On(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,kc(t,l)}}function wr(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,r=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,l=l.next}while(l!==null);r===null?u=r=e:r=r.next=e}else u=r=e;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Hr=!1;function jn(){if(Hr){var t=Da;if(t!==null)throw t}}function _n(t,e,l,a){Hr=!1;var u=t.updateQueue;Sl=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var b=y,E=b.next;b.next=null,f===null?r=E:f.next=E,f=b;var R=t.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==f&&(y===null?R.firstBaseUpdate=E:y.next=E,R.lastBaseUpdate=b))}if(r!==null){var Q=u.baseState;f=0,R=E=b=null,y=r;do{var C=y.lane&-536870913,z=C!==y.lane;if(z?(gt&C)===C:(a&C)===C){C!==0&&C===Na&&(Hr=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var k=t,ut=y;C=e;var Nt=l;switch(ut.tag){case 1:if(k=ut.payload,typeof k=="function"){Q=k.call(Nt,Q,C);break t}Q=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=ut.payload,C=typeof k=="function"?k.call(Nt,Q,C):k,C==null)break t;Q=j({},Q,C);break t;case 2:Sl=!0}}C=y.callback,C!==null&&(t.flags|=64,z&&(t.flags|=8192),z=u.callbacks,z===null?u.callbacks=[C]:z.push(C))}else z={lane:C,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(E=R=z,b=Q):R=R.next=z,f|=C;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);R===null&&(b=Q),u.baseState=b,u.firstBaseUpdate=E,u.lastBaseUpdate=R,r===null&&(u.shared.lanes=0),Cl|=f,t.lanes=f,t.memoizedState=Q}}function uf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function rf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)uf(l[t],e)}var qa=x(null),Du=x(0);function sf(t,e){t=cl,H(Du,t),H(qa,e),cl=t|e.baseLanes}function Br(){H(Du,cl),H(qa,qa.current)}function Lr(){cl=Du.current,D(qa),D(Du)}var xe=x(null),Re=null;function _l(t){var e=t.alternate;H(Yt,Yt.current&1),H(xe,t),Re===null&&(e===null||qa.current!==null||e.memoizedState!==null)&&(Re=t)}function Yr(t){H(Yt,Yt.current),H(xe,t),Re===null&&(Re=t)}function cf(t){t.tag===22?(H(Yt,Yt.current),H(xe,t),Re===null&&(Re=t)):El()}function El(){H(Yt,Yt.current),H(xe,xe.current)}function Se(t){D(xe),Re===t&&(Re=null),D(Yt)}var Yt=x(0);function Ru(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Js(l)||ks(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var el=0,ft=null,zt=null,Zt=null,Uu=!1,Qa=!1,aa=!1,qu=0,En=0,wa=null,wy=0;function wt(){throw Error(c(321))}function Gr(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ge(t[l],e[l]))return!1;return!0}function Xr(t,e,l,a,u,r){return el=r,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?Vf:ns,aa=!1,r=l(a,u),aa=!1,Qa&&(r=ff(e,l,a,u)),of(t),r}function of(t){A.H=Cn;var e=zt!==null&&zt.next!==null;if(el=0,Zt=zt=ft=null,Uu=!1,En=0,wa=null,e)throw Error(c(300));t===null||Vt||(t=t.dependencies,t!==null&&Eu(t)&&(Vt=!0))}function ff(t,e,l,a){ft=t;var u=0;do{if(Qa&&(wa=null),En=0,Qa=!1,25<=u)throw Error(c(301));if(u+=1,Zt=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)}A.H=Jf,r=e(l,a)}while(Qa);return r}function Hy(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?Tn(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(ft.flags|=1024),e}function Kr(){var t=qu!==0;return qu=0,t}function Zr(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Vr(t){if(Uu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Uu=!1}el=0,Zt=zt=ft=null,Qa=!1,En=qu=0,wa=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ft.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Gt(){if(zt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Zt===null?ft.memoizedState:Zt.next;if(e!==null)Zt=e,zt=t;else{if(t===null)throw ft.alternate===null?Error(c(467)):Error(c(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Zt===null?ft.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tn(t){var e=En;return En+=1,wa===null&&(wa=[]),t=tf(wa,t,e),e=ft,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?Vf:ns),t}function wu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Tn(t);if(t.$$typeof===Et)return It(t)}throw Error(c(438,String(t)))}function Jr(t){var e=null,l=ft.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=ft.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Qu(),ft.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=lt;return e.index++,l}function ll(t,e){return typeof e=="function"?e(t):e}function Hu(t){var e=Gt();return kr(e,zt,t)}function kr(t,e,l){var a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var u=t.baseQueue,r=a.pending;if(r!==null){if(u!==null){var f=u.next;u.next=r.next,r.next=f}e.baseQueue=u=r,a.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var y=f=null,b=null,E=e,R=!1;do{var Q=E.lane&-536870913;if(Q!==E.lane?(gt&Q)===Q:(el&Q)===Q){var C=E.revertLane;if(C===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),Q===Na&&(R=!0);else if((el&C)===C){E=E.next,C===Na&&(R=!0);continue}else Q={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},b===null?(y=b=Q,f=r):b=b.next=Q,ft.lanes|=C,Cl|=C;Q=E.action,aa&&l(r,Q),r=E.hasEagerState?E.eagerState:l(r,Q)}else C={lane:Q,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},b===null?(y=b=C,f=r):b=b.next=C,ft.lanes|=Q,Cl|=Q;E=E.next}while(E!==null&&E!==e);if(b===null?f=r:b.next=y,!ge(r,t.memoizedState)&&(Vt=!0,R&&(l=Da,l!==null)))throw l;t.memoizedState=r,t.baseState=f,t.baseQueue=b,a.lastRenderedState=r}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Fr(t){var e=Gt(),l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=t;var a=l.dispatch,u=l.pending,r=e.memoizedState;if(u!==null){l.pending=null;var f=u=u.next;do r=t(r,f.action),f=f.next;while(f!==u);ge(r,e.memoizedState)||(Vt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),l.lastRenderedState=r}return[r,a]}function df(t,e,l){var a=ft,u=Gt(),r=xt;if(r){if(l===void 0)throw Error(c(407));l=l()}else l=e();var f=!ge((zt||u).memoizedState,l);if(f&&(u.memoizedState=l,Vt=!0),u=u.queue,Wr(vf.bind(null,a,u,t),[t]),u.getSnapshot!==e||f||Zt!==null&&Zt.memoizedState.tag&1){if(a.flags|=2048,Ha(9,{destroy:void 0},mf.bind(null,a,u,l,e),null),Dt===null)throw Error(c(349));r||(el&127)!==0||hf(a,e,l)}return l}function hf(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ft.updateQueue,e===null?(e=Qu(),ft.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function mf(t,e,l,a){e.value=l,e.getSnapshot=a,yf(e)&&pf(t)}function vf(t,e,l){return l(function(){yf(e)&&pf(t)})}function yf(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ge(t,l)}catch{return!0}}function pf(t){var e=kl(t,2);e!==null&&me(e,t,2)}function $r(t){var e=ue();if(typeof t=="function"){var l=t;if(t=l(),aa){ml(!0);try{l()}finally{ml(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:t},e}function gf(t,e,l,a){return t.baseState=l,kr(t,zt,typeof a=="function"?a:ll)}function By(t,e,l,a,u){if(Yu(t))throw Error(c(485));if(t=e.action,t!==null){var r={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};A.T!==null?l(!0):r.isTransition=!1,a(r),l=e.pending,l===null?(r.next=e.pending=r,bf(e,r)):(r.next=l.next,e.pending=l.next=r)}}function bf(t,e){var l=e.action,a=e.payload,u=t.state;if(e.isTransition){var r=A.T,f={};A.T=f;try{var y=l(u,a),b=A.S;b!==null&&b(f,y),xf(t,e,y)}catch(E){Pr(t,e,E)}finally{r!==null&&f.types!==null&&(r.types=f.types),A.T=r}}else try{r=l(u,a),xf(t,e,r)}catch(E){Pr(t,e,E)}}function xf(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Sf(t,e,a)},function(a){return Pr(t,e,a)}):Sf(t,e,l)}function Sf(t,e,l){e.status="fulfilled",e.value=l,Of(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,bf(t,l)))}function Pr(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Of(e),e=e.next;while(e!==a)}t.action=null}function Of(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function jf(t,e){return e}function _f(t,e){if(xt){var l=Dt.formState;if(l!==null){t:{var a=ft;if(xt){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),a=u.data==="F!";break t}}bl(a)}a=!1}a&&(e=l[0])}}return l=ue(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jf,lastRenderedState:e},l.queue=a,l=Xf.bind(null,ft,a),a.dispatch=l,a=$r(!1),r=as.bind(null,ft,!1,a.queue),a=ue(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,l=By.bind(null,ft,u,r,l),u.dispatch=l,a.memoizedState=t,[e,l,!1]}function Ef(t){var e=Gt();return Tf(e,zt,t)}function Tf(t,e,l){if(e=kr(t,e,jf)[0],t=Hu(ll)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Tn(e)}catch(f){throw f===Ra?Cu:f}else a=e;e=Gt();var u=e.queue,r=u.dispatch;return l!==e.memoizedState&&(ft.flags|=2048,Ha(9,{destroy:void 0},Ly.bind(null,u,l),null)),[a,r,t]}function Ly(t,e){t.action=e}function Af(t){var e=Gt(),l=zt;if(l!==null)return Tf(e,l,t);Gt(),e=e.memoizedState,l=Gt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Ha(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=ft.updateQueue,e===null&&(e=Qu(),ft.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Cf(){return Gt().memoizedState}function Bu(t,e,l,a){var u=ue();ft.flags|=t,u.memoizedState=Ha(1|e,{destroy:void 0},l,a===void 0?null:a)}function Lu(t,e,l,a){var u=Gt();a=a===void 0?null:a;var r=u.memoizedState.inst;zt!==null&&a!==null&&Gr(a,zt.memoizedState.deps)?u.memoizedState=Ha(e,r,l,a):(ft.flags|=t,u.memoizedState=Ha(1|e,r,l,a))}function zf(t,e){Bu(8390656,8,t,e)}function Wr(t,e){Lu(2048,8,t,e)}function Yy(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=Qu(),ft.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Mf(t){var e=Gt().memoizedState;return Yy({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Nf(t,e){return Lu(4,2,t,e)}function Df(t,e){return Lu(4,4,t,e)}function Rf(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Uf(t,e,l){l=l!=null?l.concat([t]):null,Lu(4,4,Rf.bind(null,e,t),l)}function Ir(){}function qf(t,e){var l=Gt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&Gr(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Qf(t,e){var l=Gt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&Gr(e,a[1]))return a[0];if(a=t(),aa){ml(!0);try{t()}finally{ml(!1)}}return l.memoizedState=[a,e],a}function ts(t,e,l){return l===void 0||(el&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=wd(),ft.lanes|=t,Cl|=t,l)}function wf(t,e,l,a){return ge(l,e)?l:qa.current!==null?(t=ts(t,l,a),ge(t,e)||(Vt=!0),t):(el&42)===0||(el&1073741824)!==0&&(gt&261930)===0?(Vt=!0,t.memoizedState=l):(t=wd(),ft.lanes|=t,Cl|=t,e)}function Hf(t,e,l,a,u){var r=w.p;w.p=r!==0&&8>r?r:8;var f=A.T,y={};A.T=y,as(t,!1,e,l);try{var b=u(),E=A.S;if(E!==null&&E(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=Qy(b,a);An(t,e,R,_e(t))}else An(t,e,a,_e(t))}catch(Q){An(t,e,{then:function(){},status:"rejected",reason:Q},_e())}finally{w.p=r,f!==null&&y.types!==null&&(f.types=y.types),A.T=f}}function Gy(){}function es(t,e,l,a){if(t.tag!==5)throw Error(c(476));var u=Bf(t).queue;Hf(t,u,e,G,l===null?Gy:function(){return Lf(t),l(a)})}function Bf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:G},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Lf(t){var e=Bf(t);e.next===null&&(e=t.alternate.memoizedState),An(t,e.next.queue,{},_e())}function ls(){return It(Kn)}function Yf(){return Gt().memoizedState}function Gf(){return Gt().memoizedState}function Xy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=_e();t=Ol(l);var a=jl(e,t,l);a!==null&&(me(a,e,l),On(a,e,l)),e={cache:Nr()},t.payload=e;return}e=e.return}}function Ky(t,e,l){var a=_e();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Yu(t)?Kf(e,l):(l=xr(t,e,l,a),l!==null&&(me(l,t,a),Zf(l,e,a)))}function Xf(t,e,l){var a=_e();An(t,e,l,a)}function An(t,e,l,a){var u={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Yu(t))Kf(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,y=r(f,l);if(u.hasEagerState=!0,u.eagerState=y,ge(y,f))return Su(t,e,u,0),Dt===null&&xu(),!1}catch{}finally{}if(l=xr(t,e,u,a),l!==null)return me(l,t,a),Zf(l,e,a),!0}return!1}function as(t,e,l,a){if(a={lane:2,revertLane:qs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Yu(t)){if(e)throw Error(c(479))}else e=xr(t,l,a,2),e!==null&&me(e,t,2)}function Yu(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Kf(t,e){Qa=Uu=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Zf(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,kc(t,l)}}var Cn={readContext:It,use:wu,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};Cn.useEffectEvent=wt;var Vf={readContext:It,use:wu,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:zf,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Bu(4194308,4,Rf.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Bu(4194308,4,t,e)},useInsertionEffect:function(t,e){Bu(4,2,t,e)},useMemo:function(t,e){var l=ue();e=e===void 0?null:e;var a=t();if(aa){ml(!0);try{t()}finally{ml(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=ue();if(l!==void 0){var u=l(e);if(aa){ml(!0);try{l(e)}finally{ml(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=Ky.bind(null,ft,t),[a.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=$r(t);var e=t.queue,l=Xf.bind(null,ft,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Ir,useDeferredValue:function(t,e){var l=ue();return ts(l,t,e)},useTransition:function(){var t=$r(!1);return t=Hf.bind(null,ft,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=ft,u=ue();if(xt){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),Dt===null)throw Error(c(349));(gt&127)!==0||hf(a,e,l)}u.memoizedState=l;var r={value:l,getSnapshot:e};return u.queue=r,zf(vf.bind(null,a,r,t),[t]),a.flags|=2048,Ha(9,{destroy:void 0},mf.bind(null,a,r,l,e),null),l},useId:function(){var t=ue(),e=Dt.identifierPrefix;if(xt){var l=Ge,a=Ye;l=(a&~(1<<32-pe(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=qu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=wy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:ls,useFormState:_f,useActionState:_f,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=as.bind(null,ft,!0,l),l.dispatch=e,[t,e]},useMemoCache:Jr,useCacheRefresh:function(){return ue().memoizedState=Xy.bind(null,ft)},useEffectEvent:function(t){var e=ue(),l={impl:t};return e.memoizedState=l,function(){if((Tt&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},ns={readContext:It,use:wu,useCallback:qf,useContext:It,useEffect:Wr,useImperativeHandle:Uf,useInsertionEffect:Nf,useLayoutEffect:Df,useMemo:Qf,useReducer:Hu,useRef:Cf,useState:function(){return Hu(ll)},useDebugValue:Ir,useDeferredValue:function(t,e){var l=Gt();return wf(l,zt.memoizedState,t,e)},useTransition:function(){var t=Hu(ll)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Tn(t),e]},useSyncExternalStore:df,useId:Yf,useHostTransitionStatus:ls,useFormState:Ef,useActionState:Ef,useOptimistic:function(t,e){var l=Gt();return gf(l,zt,t,e)},useMemoCache:Jr,useCacheRefresh:Gf};ns.useEffectEvent=Mf;var Jf={readContext:It,use:wu,useCallback:qf,useContext:It,useEffect:Wr,useImperativeHandle:Uf,useInsertionEffect:Nf,useLayoutEffect:Df,useMemo:Qf,useReducer:Fr,useRef:Cf,useState:function(){return Fr(ll)},useDebugValue:Ir,useDeferredValue:function(t,e){var l=Gt();return zt===null?ts(l,t,e):wf(l,zt.memoizedState,t,e)},useTransition:function(){var t=Fr(ll)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Tn(t),e]},useSyncExternalStore:df,useId:Yf,useHostTransitionStatus:ls,useFormState:Af,useActionState:Af,useOptimistic:function(t,e){var l=Gt();return zt!==null?gf(l,zt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Jr,useCacheRefresh:Gf};Jf.useEffectEvent=Mf;function us(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:j({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var is={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=_e(),u=Ol(a);u.payload=e,l!=null&&(u.callback=l),e=jl(t,u,a),e!==null&&(me(e,t,a),On(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=_e(),u=Ol(a);u.tag=1,u.payload=e,l!=null&&(u.callback=l),e=jl(t,u,a),e!==null&&(me(e,t,a),On(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=_e(),a=Ol(l);a.tag=2,e!=null&&(a.callback=e),e=jl(t,a,l),e!==null&&(me(e,t,l),On(e,t,l))}};function kf(t,e,l,a,u,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,r,f):e.prototype&&e.prototype.isPureReactComponent?!mn(l,a)||!mn(u,r):!0}function Ff(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&is.enqueueReplaceState(e,e.state,null)}function na(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=j({},l));for(var u in t)l[u]===void 0&&(l[u]=t[u])}return l}function $f(t){bu(t)}function Pf(t){console.error(t)}function Wf(t){bu(t)}function Gu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function If(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function rs(t,e,l){return l=Ol(l),l.tag=3,l.payload={element:null},l.callback=function(){Gu(t,e)},l}function td(t){return t=Ol(t),t.tag=3,t}function ed(t,e,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var r=a.value;t.payload=function(){return u(r)},t.callback=function(){If(e,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){If(e,l,a),typeof u!="function"&&(zl===null?zl=new Set([this]):zl.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Zy(t,e,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Ma(e,l,u,!0),l=xe.current,l!==null){switch(l.tag){case 31:case 13:return Re===null?ti():l.alternate===null&&Ht===0&&(Ht=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===zu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),Ds(t,a,u)),!1;case 22:return l.flags|=65536,a===zu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),Ds(t,a,u)),!1}throw Error(c(435,l.tag))}return Ds(t,a,u),ti(),!1}if(xt)return e=xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Tr&&(t=Error(c(422),{cause:a}),pn(ze(t,l)))):(a!==Tr&&(e=Error(c(423),{cause:a}),pn(ze(e,l))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=ze(a,l),u=rs(t.stateNode,a,u),wr(t,u),Ht!==4&&(Ht=2)),!1;var r=Error(c(520),{cause:a});if(r=ze(r,l),Qn===null?Qn=[r]:Qn.push(r),Ht!==4&&(Ht=2),e===null)return!0;a=ze(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=u&-u,l.lanes|=t,t=rs(l.stateNode,a,t),wr(l,t),!1;case 1:if(e=l.type,r=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(zl===null||!zl.has(r))))return l.flags|=65536,u&=-u,l.lanes|=u,u=td(u),ed(u,t,l,a),wr(l,u),!1}l=l.return}while(l!==null);return!1}var ss=Error(c(461)),Vt=!1;function te(t,e,l,a){e.child=t===null?nf(e,null,l,a):la(e,t.child,l,a)}function ld(t,e,l,a,u){l=l.render;var r=e.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return Wl(e),a=Xr(t,e,l,f,r,u),y=Kr(),t!==null&&!Vt?(Zr(t,e,u),al(t,e,u)):(xt&&y&&_r(e),e.flags|=1,te(t,e,a,u),e.child)}function ad(t,e,l,a,u){if(t===null){var r=l.type;return typeof r=="function"&&!Sr(r)&&r.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=r,nd(t,e,r,a,u)):(t=ju(l.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!ys(t,u)){var f=r.memoizedProps;if(l=l.compare,l=l!==null?l:mn,l(f,a)&&t.ref===e.ref)return al(t,e,u)}return e.flags|=1,t=Pe(r,a),t.ref=e.ref,t.return=e,e.child=t}function nd(t,e,l,a,u){if(t!==null){var r=t.memoizedProps;if(mn(r,a)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=a=r,ys(t,u))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,al(t,e,u)}return cs(t,e,l,a,u)}function ud(t,e,l,a){var u=a.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|l:l,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~r}else a=0,e.child=null;return id(t,e,r,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Au(e,r!==null?r.cachePool:null),r!==null?sf(e,r):Br(),cf(e);else return a=e.lanes=536870912,id(t,e,r!==null?r.baseLanes|l:l,l,a)}else r!==null?(Au(e,r.cachePool),sf(e,r),El(),e.memoizedState=null):(t!==null&&Au(e,null),Br(),El());return te(t,e,u,l),e.child}function zn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function id(t,e,l,a,u){var r=Rr();return r=r===null?null:{parent:Kt._currentValue,pool:r},e.memoizedState={baseLanes:l,cachePool:r},t!==null&&Au(e,null),Br(),cf(e),t!==null&&Ma(t,e,a,!0),e.childLanes=u,null}function Xu(t,e){return e=Zu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function rd(t,e,l){return la(e,t.child,null,l),t=Xu(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function Vy(t,e,l){var a=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(a.mode==="hidden")return t=Xu(e,a),e.lanes=536870912,zn(null,t);if(Yr(e),(t=Rt)?(t=bh(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:pl!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},l=Xo(t),l.return=e,e.child=l,Wt=e,Rt=null)):t=null,t===null)throw bl(e);return e.lanes=536870912,null}return Xu(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(Yr(e),u)if(e.flags&256)e.flags&=-257,e=rd(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Vt||Ma(t,e,l,!1),u=(l&t.childLanes)!==0,Vt||u){if(a=Dt,a!==null&&(f=Fc(a,l),f!==0&&f!==r.retryLane))throw r.retryLane=f,kl(t,f),me(a,t,f),ss;ti(),e=rd(t,e,l)}else t=r.treeContext,Rt=Ue(f.nextSibling),Wt=e,xt=!0,gl=null,De=!1,t!==null&&Vo(e,t),e=Xu(e,a),e.flags|=4096;return e}return t=Pe(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ku(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function cs(t,e,l,a,u){return Wl(e),l=Xr(t,e,l,a,void 0,u),a=Kr(),t!==null&&!Vt?(Zr(t,e,u),al(t,e,u)):(xt&&a&&_r(e),e.flags|=1,te(t,e,l,u),e.child)}function sd(t,e,l,a,u,r){return Wl(e),e.updateQueue=null,l=ff(e,a,l,u),of(t),a=Kr(),t!==null&&!Vt?(Zr(t,e,r),al(t,e,r)):(xt&&a&&_r(e),e.flags|=1,te(t,e,l,r),e.child)}function cd(t,e,l,a,u){if(Wl(e),e.stateNode===null){var r=Ta,f=l.contextType;typeof f=="object"&&f!==null&&(r=It(f)),r=new l(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=is,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},qr(e),f=l.contextType,r.context=typeof f=="object"&&f!==null?It(f):Ta,r.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(us(e,l,f,a),r.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&is.enqueueReplaceState(r,r.state,null),_n(e,a,r,u),jn(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,b=na(l,y);r.props=b;var E=r.context,R=l.contextType;f=Ta,typeof R=="object"&&R!==null&&(f=It(R));var Q=l.getDerivedStateFromProps;R=typeof Q=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||E!==f)&&Ff(e,r,a,f),Sl=!1;var C=e.memoizedState;r.state=C,_n(e,a,r,u),jn(),E=e.memoizedState,y||C!==E||Sl?(typeof Q=="function"&&(us(e,l,Q,a),E=e.memoizedState),(b=Sl||kf(e,l,b,a,C,E,f))?(R||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=E),r.props=a,r.state=E,r.context=f,a=b):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,Qr(t,e),f=e.memoizedProps,R=na(l,f),r.props=R,Q=e.pendingProps,C=r.context,E=l.contextType,b=Ta,typeof E=="object"&&E!==null&&(b=It(E)),y=l.getDerivedStateFromProps,(E=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==Q||C!==b)&&Ff(e,r,a,b),Sl=!1,C=e.memoizedState,r.state=C,_n(e,a,r,u),jn();var z=e.memoizedState;f!==Q||C!==z||Sl||t!==null&&t.dependencies!==null&&Eu(t.dependencies)?(typeof y=="function"&&(us(e,l,y,a),z=e.memoizedState),(R=Sl||kf(e,l,R,a,C,z,b)||t!==null&&t.dependencies!==null&&Eu(t.dependencies))?(E||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,z,b),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,z,b)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=z),r.props=a,r.state=z,r.context=b,a=R):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,Ku(t,e),a=(e.flags&128)!==0,r||a?(r=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&a?(e.child=la(e,t.child,null,u),e.child=la(e,null,l,u)):te(t,e,l,u),e.memoizedState=r.state,t=e.child):t=al(t,e,u),t}function od(t,e,l,a){return $l(),e.flags|=256,te(t,e,l,a),e.child}var os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fs(t){return{baseLanes:t,cachePool:Wo()}}function ds(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=je),t}function fd(t,e,l){var a=e.pendingProps,u=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(u?_l(e):El(),(t=Rt)?(t=bh(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:pl!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},l=Xo(t),l.return=e,e.child=l,Wt=e,Rt=null)):t=null,t===null)throw bl(e);return ks(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,u?(El(),u=e.mode,y=Zu({mode:"hidden",children:y},u),a=Fl(a,u,l,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=fs(l),a.childLanes=ds(t,f,l),e.memoizedState=os,zn(null,a)):(_l(e),hs(e,y))}var b=t.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(r)e.flags&256?(_l(e),e.flags&=-257,e=ms(t,e,l)):e.memoizedState!==null?(El(),e.child=t.child,e.flags|=128,e=null):(El(),y=a.fallback,u=e.mode,a=Zu({mode:"visible",children:a.children},u),y=Fl(y,u,l,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,la(e,t.child,null,l),a=e.child,a.memoizedState=fs(l),a.childLanes=ds(t,f,l),e.memoizedState=os,e=zn(null,a));else if(_l(e),ks(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var E=f.dgst;f=E,a=Error(c(419)),a.stack="",a.digest=f,pn({value:a,source:null,stack:null}),e=ms(t,e,l)}else if(Vt||Ma(t,e,l,!1),f=(l&t.childLanes)!==0,Vt||f){if(f=Dt,f!==null&&(a=Fc(f,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,kl(t,a),me(f,t,a),ss;Js(y)||ti(),e=ms(t,e,l)}else Js(y)?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,Rt=Ue(y.nextSibling),Wt=e,xt=!0,gl=null,De=!1,t!==null&&Vo(e,t),e=hs(e,a.children),e.flags|=4096);return e}return u?(El(),y=a.fallback,u=e.mode,b=t.child,E=b.sibling,a=Pe(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,E!==null?y=Pe(E,y):(y=Fl(y,u,l,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,zn(null,a),a=e.child,y=t.child.memoizedState,y===null?y=fs(l):(u=y.cachePool,u!==null?(b=Kt._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=Wo(),y={baseLanes:y.baseLanes|l,cachePool:u}),a.memoizedState=y,a.childLanes=ds(t,f,l),e.memoizedState=os,zn(t.child,a)):(_l(e),l=t.child,t=l.sibling,l=Pe(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function hs(t,e){return e=Zu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Zu(t,e){return t=be(22,t,null,e),t.lanes=0,t}function ms(t,e,l){return la(e,t.child,null,l),t=hs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function dd(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),zr(t.return,e,l)}function vs(t,e,l,a,u,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=u,f.treeForkCount=r)}function hd(t,e,l){var a=e.pendingProps,u=a.revealOrder,r=a.tail;a=a.children;var f=Yt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,H(Yt,f),te(t,e,a,l),a=xt?yn:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&dd(t,l,e);else if(t.tag===19)dd(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(l=e.child,u=null;l!==null;)t=l.alternate,t!==null&&Ru(t)===null&&(u=l),l=l.sibling;l=u,l===null?(u=e.child,e.child=null):(u=l.sibling,l.sibling=null),vs(e,!1,u,l,r,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Ru(t)===null){e.child=u;break}t=u.sibling,u.sibling=l,l=u,u=t}vs(e,!0,l,null,r,a);break;case"together":vs(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function al(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Cl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ma(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=Pe(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Pe(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function ys(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Eu(t)))}function Jy(t,e,l){switch(e.tag){case 3:ne(e,e.stateNode.containerInfo),xl(e,Kt,t.memoizedState.cache),$l();break;case 27:case 5:tn(e);break;case 4:ne(e,e.stateNode.containerInfo);break;case 10:xl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Yr(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(_l(e),e.flags|=128,null):(l&e.child.childLanes)!==0?fd(t,e,l):(_l(e),t=al(t,e,l),t!==null?t.sibling:null);_l(e);break;case 19:var u=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Ma(t,e,l,!1),a=(l&e.childLanes)!==0),u){if(a)return hd(t,e,l);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),H(Yt,Yt.current),a)break;return null;case 22:return e.lanes=0,ud(t,e,l,e.pendingProps);case 24:xl(e,Kt,t.memoizedState.cache)}return al(t,e,l)}function md(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!ys(t,l)&&(e.flags&128)===0)return Vt=!1,Jy(t,e,l);Vt=(t.flags&131072)!==0}else Vt=!1,xt&&(e.flags&1048576)!==0&&Zo(e,yn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ta(e.elementType),e.type=t,typeof t=="function")Sr(t)?(a=na(t,a),e.tag=1,e=cd(null,e,t,a,l)):(e.tag=0,e=cs(null,e,t,a,l));else{if(t!=null){var u=t.$$typeof;if(u===qt){e.tag=11,e=ld(null,e,t,a,l);break t}else if(u===M){e.tag=14,e=ad(null,e,t,a,l);break t}}throw e=ct(t)||t,Error(c(306,e,""))}}return e;case 0:return cs(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,u=na(a,e.pendingProps),cd(t,e,a,u,l);case 3:t:{if(ne(e,e.stateNode.containerInfo),t===null)throw Error(c(387));a=e.pendingProps;var r=e.memoizedState;u=r.element,Qr(t,e),_n(e,a,null,l);var f=e.memoizedState;if(a=f.cache,xl(e,Kt,a),a!==r.cache&&Mr(e,[Kt],l,!0),jn(),a=f.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=od(t,e,a,l);break t}else if(a!==u){u=ze(Error(c(424)),e),pn(u),e=od(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Rt=Ue(t.firstChild),Wt=e,xt=!0,gl=null,De=!0,l=nf(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if($l(),a===u){e=al(t,e,l);break t}te(t,e,a,l)}e=e.child}return e;case 26:return Ku(t,e),t===null?(l=Eh(e.type,null,e.pendingProps,null))?e.memoizedState=l:xt||(l=e.type,t=e.pendingProps,a=ri(rt.current).createElement(l),a[Pt]=e,a[se]=t,ee(a,l,t),Ft(a),e.stateNode=a):e.memoizedState=Eh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return tn(e),t===null&&xt&&(a=e.stateNode=Oh(e.type,e.pendingProps,rt.current),Wt=e,De=!0,u=Rt,Rl(e.type)?(Fs=u,Rt=Ue(a.firstChild)):Rt=u),te(t,e,e.pendingProps.children,l),Ku(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((u=a=Rt)&&(a=jp(a,e.type,e.pendingProps,De),a!==null?(e.stateNode=a,Wt=e,Rt=Ue(a.firstChild),De=!1,u=!0):u=!1),u||bl(e)),tn(e),u=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,Ks(u,r)?a=null:f!==null&&Ks(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=Xr(t,e,Hy,null,null,l),Kn._currentValue=u),Ku(t,e),te(t,e,a,l),e.child;case 6:return t===null&&xt&&((t=l=Rt)&&(l=_p(l,e.pendingProps,De),l!==null?(e.stateNode=l,Wt=e,Rt=null,t=!0):t=!1),t||bl(e)),null;case 13:return fd(t,e,l);case 4:return ne(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=la(e,null,a,l):te(t,e,a,l),e.child;case 11:return ld(t,e,e.type,e.pendingProps,l);case 7:return te(t,e,e.pendingProps,l),e.child;case 8:return te(t,e,e.pendingProps.children,l),e.child;case 12:return te(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,xl(e,e.type,a.value),te(t,e,a.children,l),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,Wl(e),u=It(u),a=a(u),e.flags|=1,te(t,e,a,l),e.child;case 14:return ad(t,e,e.type,e.pendingProps,l);case 15:return nd(t,e,e.type,e.pendingProps,l);case 19:return hd(t,e,l);case 31:return Vy(t,e,l);case 22:return ud(t,e,l,e.pendingProps);case 24:return Wl(e),a=It(Kt),t===null?(u=Rr(),u===null&&(u=Dt,r=Nr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=l),u=r),e.memoizedState={parent:a,cache:u},qr(e),xl(e,Kt,u)):((t.lanes&l)!==0&&(Qr(t,e),_n(e,null,null,l),jn()),u=t.memoizedState,r=e.memoizedState,u.parent!==a?(u={parent:a,cache:a},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),xl(e,Kt,a)):(a=r.cache,xl(e,Kt,a),a!==u.cache&&Mr(e,[Kt],l,!0))),te(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function nl(t){t.flags|=4}function ps(t,e,l,a,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(Yd())t.flags|=8192;else throw ea=zu,Ur}else t.flags&=-16777217}function vd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Mh(e))if(Yd())t.flags|=8192;else throw ea=zu,Ur}function Vu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Vc():536870912,t.lanes|=e,Ga|=e)}function Mn(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var u=t.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function ky(t,e,l){var a=e.pendingProps;switch(Er(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 l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),tl(Kt),Lt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(za(e)?nl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ar())),Ut(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(nl(e),r!==null?(Ut(e),vd(e,r)):(Ut(e),ps(e,u,null,a,l))):r?r!==t.memoizedState?(nl(e),Ut(e),vd(e,r)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&nl(e),Ut(e),ps(e,u,t,a,l)),null;case 27:if(au(e),l=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&nl(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return Ut(e),null}t=Y.current,za(e)?Jo(e):(t=Oh(u,a,l),e.stateNode=t,nl(e))}return Ut(e),null;case 5:if(au(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&nl(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return Ut(e),null}if(r=Y.current,za(e))Jo(e);else{var f=ri(rt.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(u,{is:a.is}):f.createElement(u)}}r[Pt]=e,r[se]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(ee(r,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&nl(e)}}return Ut(e),ps(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&nl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(c(166));if(t=rt.current,za(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,u=Wt,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||fh(t.nodeValue,l)),t||bl(e,!0)}else t=ri(t).createTextNode(a),t[Pt]=e,e.stateNode=t}return Ut(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=za(e),l!==null){if(t===null){if(!a)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Pt]=e}else $l(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else l=Ar(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Se(e),e):(Se(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Ut(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=za(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(c(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[Pt]=e}else $l(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),u=!1}else u=Ar(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Se(e),e):(Se(e),null)}return Se(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==u&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Vu(e,e.updateQueue),Ut(e),null);case 4:return Lt(),t===null&&Bs(e.stateNode.containerInfo),Ut(e),null;case 10:return tl(e.type),Ut(e),null;case 19:if(D(Yt),a=e.memoizedState,a===null)return Ut(e),null;if(u=(e.flags&128)!==0,r=a.rendering,r===null)if(u)Mn(a,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Ru(t),r!==null){for(e.flags|=128,Mn(a,!1),t=r.updateQueue,e.updateQueue=t,Vu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Go(l,t),l=l.sibling;return H(Yt,Yt.current&1|2),xt&&We(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ve()>Pu&&(e.flags|=128,u=!0,Mn(a,!1),e.lanes=4194304)}else{if(!u)if(t=Ru(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Vu(e,t),Mn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!xt)return Ut(e),null}else 2*ve()-a.renderingStartTime>Pu&&l!==536870912&&(e.flags|=128,u=!0,Mn(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ve(),t.sibling=null,l=Yt.current,H(Yt,u?l&1|2:l&1),xt&&We(e,a.treeForkCount),t):(Ut(e),null);case 22:case 23:return Se(e),Lr(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),l=e.updateQueue,l!==null&&Vu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&D(Il),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),tl(Kt),Ut(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Fy(t,e){switch(Er(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return tl(Kt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return au(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(c(340));$l()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Se(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));$l()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return D(Yt),null;case 4:return Lt(),null;case 10:return tl(e.type),null;case 22:case 23:return Se(e),Lr(),t!==null&&D(Il),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return tl(Kt),null;case 25:return null;default:return null}}function yd(t,e){switch(Er(e),e.tag){case 3:tl(Kt),Lt();break;case 26:case 27:case 5:au(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:D(Yt);break;case 10:tl(e.type);break;case 22:case 23:Se(e),Lr(),t!==null&&D(Il);break;case 24:tl(Kt)}}function Nn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&t)===t){a=void 0;var r=l.create,f=l.inst;a=r(),f.destroy=a}l=l.next}while(l!==u)}}catch(y){Ct(e,e.return,y)}}function Tl(t,e,l){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var r=u.next;a=r;do{if((a.tag&t)===t){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,u=e;var b=l,E=y;try{E()}catch(R){Ct(u,b,R)}}}a=a.next}while(a!==r)}}catch(R){Ct(e,e.return,R)}}function pd(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{rf(e,l)}catch(a){Ct(t,t.return,a)}}}function gd(t,e,l){l.props=na(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Ct(t,e,a)}}function Dn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(u){Ct(t,e,u)}}function Xe(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){Ct(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){Ct(t,e,u)}else l.current=null}function bd(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(u){Ct(t,t.return,u)}}function gs(t,e,l){try{var a=t.stateNode;pp(a,t.type,l,e),a[se]=e}catch(u){Ct(t,t.return,u)}}function xd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Rl(t.type)||t.tag===4}function bs(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||xd(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&&Rl(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 xs(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Fe));else if(a!==4&&(a===27&&Rl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(xs(t,e,l),t=t.sibling;t!==null;)xs(t,e,l),t=t.sibling}function Ju(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Rl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ju(t,e,l),t=t.sibling;t!==null;)Ju(t,e,l),t=t.sibling}function Sd(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,a,l),e[Pt]=t,e[se]=l}catch(r){Ct(t,t.return,r)}}var ul=!1,Jt=!1,Ss=!1,Od=typeof WeakSet=="function"?WeakSet:Set,$t=null;function $y(t,e){if(t=t.containerInfo,Gs=mi,t=Ro(t),mr(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{l.nodeType,r.nodeType}catch{l=null;break t}var f=0,y=-1,b=-1,E=0,R=0,Q=t,C=null;e:for(;;){for(var z;Q!==l||u!==0&&Q.nodeType!==3||(y=f+u),Q!==r||a!==0&&Q.nodeType!==3||(b=f+a),Q.nodeType===3&&(f+=Q.nodeValue.length),(z=Q.firstChild)!==null;)C=Q,Q=z;for(;;){if(Q===t)break e;if(C===l&&++E===u&&(y=f),C===r&&++R===a&&(b=f),(z=Q.nextSibling)!==null)break;Q=C,C=Q.parentNode}Q=z}l=y===-1||b===-1?null:{start:y,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Xs={focusedElem:t,selectionRange:l},mi=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)u=t[l],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,l=e,u=r.memoizedProps,r=r.memoizedState,a=l.stateNode;try{var k=na(l.type,u);t=a.getSnapshotBeforeUpdate(k,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Ct(l,l.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Vs(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Vs(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function jd(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:rl(t,l),a&4&&Nn(5,l);break;case 1:if(rl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){Ct(l,l.return,f)}else{var u=na(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ct(l,l.return,f)}}a&64&&pd(l),a&512&&Dn(l,l.return);break;case 3:if(rl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{rf(t,e)}catch(f){Ct(l,l.return,f)}}break;case 27:e===null&&a&4&&Sd(l);case 26:case 5:rl(t,l),e===null&&a&4&&bd(l),a&512&&Dn(l,l.return);break;case 12:rl(t,l);break;case 31:rl(t,l),a&4&&Td(t,l);break;case 13:rl(t,l),a&4&&Ad(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=up.bind(null,l),Ep(t,l))));break;case 22:if(a=l.memoizedState!==null||ul,!a){e=e!==null&&e.memoizedState!==null||Jt,u=ul;var r=Jt;ul=a,(Jt=e)&&!r?sl(t,l,(l.subtreeFlags&8772)!==0):rl(t,l),ul=u,Jt=r}break;case 30:break;default:rl(t,l)}}function _d(t){var e=t.alternate;e!==null&&(t.alternate=null,_d(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Pi(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,oe=!1;function il(t,e,l){for(l=l.child;l!==null;)Ed(t,e,l),l=l.sibling}function Ed(t,e,l){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(en,l)}catch{}switch(l.tag){case 26:Jt||Xe(l,e),il(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Jt||Xe(l,e);var a=Qt,u=oe;Rl(l.type)&&(Qt=l.stateNode,oe=!1),il(t,e,l),Yn(l.stateNode),Qt=a,oe=u;break;case 5:Jt||Xe(l,e);case 6:if(a=Qt,u=oe,Qt=null,il(t,e,l),Qt=a,oe=u,Qt!==null)if(oe)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(l.stateNode)}catch(r){Ct(l,e,r)}else try{Qt.removeChild(l.stateNode)}catch(r){Ct(l,e,r)}break;case 18:Qt!==null&&(oe?(t=Qt,ph(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),$a(t)):ph(Qt,l.stateNode));break;case 4:a=Qt,u=oe,Qt=l.stateNode.containerInfo,oe=!0,il(t,e,l),Qt=a,oe=u;break;case 0:case 11:case 14:case 15:Tl(2,l,e),Jt||Tl(4,l,e),il(t,e,l);break;case 1:Jt||(Xe(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&gd(l,e,a)),il(t,e,l);break;case 21:il(t,e,l);break;case 22:Jt=(a=Jt)||l.memoizedState!==null,il(t,e,l),Jt=a;break;default:il(t,e,l)}}function Td(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{$a(t)}catch(l){Ct(e,e.return,l)}}}function Ad(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{$a(t)}catch(l){Ct(e,e.return,l)}}function Py(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Od),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Od),e;default:throw Error(c(435,t.tag))}}function ku(t,e){var l=Py(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var u=ip.bind(null,t,a);a.then(u,u)}})}function fe(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],r=t,f=e,y=f;t:for(;y!==null;){switch(y.tag){case 27:if(Rl(y.type)){Qt=y.stateNode,oe=!1;break t}break;case 5:Qt=y.stateNode,oe=!1;break t;case 3:case 4:Qt=y.stateNode.containerInfo,oe=!0;break t}y=y.return}if(Qt===null)throw Error(c(160));Ed(r,f,u),Qt=null,oe=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Cd(e,t),e=e.sibling}var we=null;function Cd(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:fe(e,t),de(t),a&4&&(Tl(3,t,t.return),Nn(3,t),Tl(5,t,t.return));break;case 1:fe(e,t),de(t),a&512&&(Jt||l===null||Xe(l,l.return)),a&64&&ul&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var u=we;if(fe(e,t),de(t),a&512&&(Jt||l===null||Xe(l,l.return)),a&4){var r=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,u=u.ownerDocument||u;e:switch(a){case"title":r=u.getElementsByTagName("title")[0],(!r||r[nn]||r[Pt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(a),u.head.insertBefore(r,u.querySelector("head > title"))),ee(r,a,l),r[Pt]=t,Ft(r),a=r;break t;case"link":var f=Ch("link","href",u).get(a+(l.href||""));if(f){for(var y=0;y<f.length;y++)if(r=f[y],r.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&r.getAttribute("rel")===(l.rel==null?null:l.rel)&&r.getAttribute("title")===(l.title==null?null:l.title)&&r.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(y,1);break e}}r=u.createElement(a),ee(r,a,l),u.head.appendChild(r);break;case"meta":if(f=Ch("meta","content",u).get(a+(l.content||""))){for(y=0;y<f.length;y++)if(r=f[y],r.getAttribute("content")===(l.content==null?null:""+l.content)&&r.getAttribute("name")===(l.name==null?null:l.name)&&r.getAttribute("property")===(l.property==null?null:l.property)&&r.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&r.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(y,1);break e}}r=u.createElement(a),ee(r,a,l),u.head.appendChild(r);break;default:throw Error(c(468,a))}r[Pt]=t,Ft(r),a=r}t.stateNode=a}else zh(u,t.type,t.stateNode);else t.stateNode=Ah(u,a,t.memoizedProps);else r!==a?(r===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):r.count--,a===null?zh(u,t.type,t.stateNode):Ah(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&gs(t,t.memoizedProps,l.memoizedProps)}break;case 27:fe(e,t),de(t),a&512&&(Jt||l===null||Xe(l,l.return)),l!==null&&a&4&&gs(t,t.memoizedProps,l.memoizedProps);break;case 5:if(fe(e,t),de(t),a&512&&(Jt||l===null||Xe(l,l.return)),t.flags&32){u=t.stateNode;try{ba(u,"")}catch(k){Ct(t,t.return,k)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,gs(t,u,l!==null?l.memoizedProps:u)),a&1024&&(Ss=!0);break;case 6:if(fe(e,t),de(t),a&4){if(t.stateNode===null)throw Error(c(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(k){Ct(t,t.return,k)}}break;case 3:if(oi=null,u=we,we=si(e.containerInfo),fe(e,t),we=u,de(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{$a(e.containerInfo)}catch(k){Ct(t,t.return,k)}Ss&&(Ss=!1,zd(t));break;case 4:a=we,we=si(t.stateNode.containerInfo),fe(e,t),de(t),we=a;break;case 12:fe(e,t),de(t);break;case 31:fe(e,t),de(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ku(t,a)));break;case 13:fe(e,t),de(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&($u=ve()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ku(t,a)));break;case 22:u=t.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,E=ul,R=Jt;if(ul=E||u,Jt=R||b,fe(e,t),Jt=R,ul=E,de(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(l===null||b||ul||Jt||ua(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){b=l=e;try{if(r=b.stateNode,u)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=b.stateNode;var Q=b.memoizedProps.style,C=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;y.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(k){Ct(b,b.return,k)}}}else if(e.tag===6){if(l===null){b=e;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(k){Ct(b,b.return,k)}}}else if(e.tag===18){if(l===null){b=e;try{var z=b.stateNode;u?gh(z,!0):gh(b.stateNode,!1)}catch(k){Ct(b,b.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ku(t,l))));break;case 19:fe(e,t),de(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ku(t,a)));break;case 30:break;case 21:break;default:fe(e,t),de(t)}}function de(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(xd(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var u=l.stateNode,r=bs(t);Ju(t,r,u);break;case 5:var f=l.stateNode;l.flags&32&&(ba(f,""),l.flags&=-33);var y=bs(t);Ju(t,y,f);break;case 3:case 4:var b=l.stateNode.containerInfo,E=bs(t);xs(t,E,b);break;default:throw Error(c(161))}}catch(R){Ct(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function zd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;zd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function rl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)jd(t,e.alternate,e),e=e.sibling}function ua(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Tl(4,e,e.return),ua(e);break;case 1:Xe(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&gd(e,e.return,l),ua(e);break;case 27:Yn(e.stateNode);case 26:case 5:Xe(e,e.return),ua(e);break;case 22:e.memoizedState===null&&ua(e);break;case 30:ua(e);break;default:ua(e)}t=t.sibling}}function sl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,u=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:sl(u,r,l),Nn(4,r);break;case 1:if(sl(u,r,l),a=r,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(E){Ct(a,a.return,E)}if(a=r,u=a.updateQueue,u!==null){var y=a.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)uf(b[u],y)}catch(E){Ct(a,a.return,E)}}l&&f&64&&pd(r),Dn(r,r.return);break;case 27:Sd(r);case 26:case 5:sl(u,r,l),l&&a===null&&f&4&&bd(r),Dn(r,r.return);break;case 12:sl(u,r,l);break;case 31:sl(u,r,l),l&&f&4&&Td(u,r);break;case 13:sl(u,r,l),l&&f&4&&Ad(u,r);break;case 22:r.memoizedState===null&&sl(u,r,l),Dn(r,r.return);break;case 30:break;default:sl(u,r,l)}e=e.sibling}}function Os(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&gn(l))}function js(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&gn(t))}function He(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Md(t,e,l,a),e=e.sibling}function Md(t,e,l,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:He(t,e,l,a),u&2048&&Nn(9,e);break;case 1:He(t,e,l,a);break;case 3:He(t,e,l,a),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&gn(t)));break;case 12:if(u&2048){He(t,e,l,a),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,y=r.onPostCommit;typeof y=="function"&&y(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(b){Ct(e,e.return,b)}}else He(t,e,l,a);break;case 31:He(t,e,l,a);break;case 13:He(t,e,l,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?He(t,e,l,a):Rn(t,e):r._visibility&2?He(t,e,l,a):(r._visibility|=2,Ba(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Os(f,e);break;case 24:He(t,e,l,a),u&2048&&js(e.alternate,e);break;default:He(t,e,l,a)}}function Ba(t,e,l,a,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,y=l,b=a,E=f.flags;switch(f.tag){case 0:case 11:case 15:Ba(r,f,y,b,u),Nn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Ba(r,f,y,b,u):Rn(r,f):(R._visibility|=2,Ba(r,f,y,b,u)),u&&E&2048&&Os(f.alternate,f);break;case 24:Ba(r,f,y,b,u),u&&E&2048&&js(f.alternate,f);break;default:Ba(r,f,y,b,u)}e=e.sibling}}function Rn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,u=a.flags;switch(a.tag){case 22:Rn(l,a),u&2048&&Os(a.alternate,a);break;case 24:Rn(l,a),u&2048&&js(a.alternate,a);break;default:Rn(l,a)}e=e.sibling}}var Un=8192;function La(t,e,l){if(t.subtreeFlags&Un)for(t=t.child;t!==null;)Nd(t,e,l),t=t.sibling}function Nd(t,e,l){switch(t.tag){case 26:La(t,e,l),t.flags&Un&&t.memoizedState!==null&&wp(l,we,t.memoizedState,t.memoizedProps);break;case 5:La(t,e,l);break;case 3:case 4:var a=we;we=si(t.stateNode.containerInfo),La(t,e,l),we=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Un,Un=16777216,La(t,e,l),Un=a):La(t,e,l));break;default:La(t,e,l)}}function Dd(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 qn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];$t=a,Ud(a,t)}Dd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rd(t),t=t.sibling}function Rd(t){switch(t.tag){case 0:case 11:case 15:qn(t),t.flags&2048&&Tl(9,t,t.return);break;case 3:qn(t);break;case 12:qn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Fu(t)):qn(t);break;default:qn(t)}}function Fu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];$t=a,Ud(a,t)}Dd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Tl(8,e,e.return),Fu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Fu(e));break;default:Fu(e)}t=t.sibling}}function Ud(t,e){for(;$t!==null;){var l=$t;switch(l.tag){case 0:case 11:case 15:Tl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:gn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,$t=a;else t:for(l=t;$t!==null;){a=$t;var u=a.sibling,r=a.return;if(_d(a),a===l){$t=null;break t}if(u!==null){u.return=r,$t=u;break t}$t=r}}}var Wy={getCacheForType:function(t){var e=It(Kt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return It(Kt).controller.signal}},Iy=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Dt=null,yt=null,gt=0,At=0,Oe=null,Al=!1,Ya=!1,_s=!1,cl=0,Ht=0,Cl=0,ia=0,Es=0,je=0,Ga=0,Qn=null,he=null,Ts=!1,$u=0,qd=0,Pu=1/0,Wu=null,zl=null,kt=0,Ml=null,Xa=null,ol=0,As=0,Cs=null,Qd=null,wn=0,zs=null;function _e(){return(Tt&2)!==0&&gt!==0?gt&-gt:A.T!==null?qs():$c()}function wd(){if(je===0)if((gt&536870912)===0||xt){var t=iu;iu<<=1,(iu&3932160)===0&&(iu=262144),je=t}else je=536870912;return t=xe.current,t!==null&&(t.flags|=32),je}function me(t,e,l){(t===Dt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Ka(t,0),Nl(t,gt,je,!1)),an(t,l),((Tt&2)===0||t!==Dt)&&(t===Dt&&((Tt&2)===0&&(ia|=l),Ht===4&&Nl(t,gt,je,!1)),Ke(t))}function Hd(t,e,l){if((Tt&6)!==0)throw Error(c(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||ln(t,e),u=a?lp(t,e):Ns(t,e,!0),r=a;do{if(u===0){Ya&&!a&&Nl(t,e,0,!1);break}else{if(l=t.current.alternate,r&&!tp(l)){u=Ns(t,e,!1),r=!1;continue}if(u===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var y=t;u=Qn;var b=y.current.memoizedState.isDehydrated;if(b&&(Ka(y,f).flags|=256),f=Ns(y,f,!1),f!==2){if(_s&&!b){y.errorRecoveryDisabledLanes|=r,ia|=r,u=4;break t}r=he,he=u,r!==null&&(he===null?he=r:he.push.apply(he,r))}u=f}if(r=!1,u!==2)continue}}if(u===1){Ka(t,0),Nl(t,e,0,!0);break}t:{switch(a=t,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Nl(a,e,je,!Al);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(u=$u+300-ve(),10<u)){if(Nl(a,e,je,!Al),su(a,0,!0)!==0)break t;ol=e,a.timeoutHandle=vh(Bd.bind(null,a,l,he,Wu,Ts,e,je,ia,Ga,Al,r,"Throttled",-0,0),u);break t}Bd(a,l,he,Wu,Ts,e,je,ia,Ga,Al,r,null,-0,0)}}break}while(!0);Ke(t)}function Bd(t,e,l,a,u,r,f,y,b,E,R,Q,C,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:Fe},Nd(e,r,Q);var k=(r&62914560)===r?$u-ve():(r&4194048)===r?qd-ve():0;if(k=Hp(Q,k),k!==null){ol=r,t.cancelPendingCommit=k(Jd.bind(null,t,e,r,l,a,u,f,y,b,R,Q,null,C,z)),Nl(t,r,f,!E);return}}Jd(t,e,r,l,a,u,f,y,b)}function tp(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var u=l[a],r=u.getSnapshot;u=u.value;try{if(!ge(r(),u))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Nl(t,e,l,a){e&=~Es,e&=~ia,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var u=e;0<u;){var r=31-pe(u),f=1<<r;a[r]=-1,u&=~f}l!==0&&Jc(t,l,e)}function Iu(){return(Tt&6)===0?(Hn(0),!1):!0}function Ms(){if(yt!==null){if(At===0)var t=yt.return;else t=yt,Ie=Pl=null,Vr(t),Ua=null,xn=0,t=yt;for(;t!==null;)yd(t.alternate,t),t=t.return;yt=null}}function Ka(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,xp(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ol=0,Ms(),Dt=t,yt=l=Pe(t.current,null),gt=e,At=0,Oe=null,Al=!1,Ya=ln(t,e),_s=!1,Ga=je=Es=ia=Cl=Ht=0,he=Qn=null,Ts=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var u=31-pe(a),r=1<<u;e|=t[u],a&=~r}return cl=e,xu(),l}function Ld(t,e){ft=null,A.H=Cn,e===Ra||e===Cu?(e=ef(),At=3):e===Ur?(e=ef(),At=4):At=e===ss?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Oe=e,yt===null&&(Ht=1,Gu(t,ze(e,t.current)))}function Yd(){var t=xe.current;return t===null?!0:(gt&4194048)===gt?Re===null:(gt&62914560)===gt||(gt&536870912)!==0?t===Re:!1}function Gd(){var t=A.H;return A.H=Cn,t===null?Cn:t}function Xd(){var t=A.A;return A.A=Wy,t}function ti(){Ht=4,Al||(gt&4194048)!==gt&&xe.current!==null||(Ya=!0),(Cl&134217727)===0&&(ia&134217727)===0||Dt===null||Nl(Dt,gt,je,!1)}function Ns(t,e,l){var a=Tt;Tt|=2;var u=Gd(),r=Xd();(Dt!==t||gt!==e)&&(Wu=null,Ka(t,e)),e=!1;var f=Ht;t:do try{if(At!==0&&yt!==null){var y=yt,b=Oe;switch(At){case 8:Ms(),f=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var E=At;if(At=0,Oe=null,Za(t,y,b,E),l&&Ya){f=0;break t}break;default:E=At,At=0,Oe=null,Za(t,y,b,E)}}ep(),f=Ht;break}catch(R){Ld(t,R)}while(!0);return e&&t.shellSuspendCounter++,Ie=Pl=null,Tt=a,A.H=u,A.A=r,yt===null&&(Dt=null,gt=0,xu()),f}function ep(){for(;yt!==null;)Kd(yt)}function lp(t,e){var l=Tt;Tt|=2;var a=Gd(),u=Xd();Dt!==t||gt!==e?(Wu=null,Pu=ve()+500,Ka(t,e)):Ya=ln(t,e);t:do try{if(At!==0&&yt!==null){e=yt;var r=Oe;e:switch(At){case 1:At=0,Oe=null,Za(t,e,r,1);break;case 2:case 9:if(Io(r)){At=0,Oe=null,Zd(e);break}e=function(){At!==2&&At!==9||Dt!==t||(At=7),Ke(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Io(r)?(At=0,Oe=null,Zd(e)):(At=0,Oe=null,Za(t,e,r,7));break;case 5:var f=null;switch(yt.tag){case 26:f=yt.memoizedState;case 5:case 27:var y=yt;if(f?Mh(f):y.stateNode.complete){At=0,Oe=null;var b=y.sibling;if(b!==null)yt=b;else{var E=y.return;E!==null?(yt=E,ei(E)):yt=null}break e}}At=0,Oe=null,Za(t,e,r,5);break;case 6:At=0,Oe=null,Za(t,e,r,6);break;case 8:Ms(),Ht=6;break t;default:throw Error(c(462))}}ap();break}catch(R){Ld(t,R)}while(!0);return Ie=Pl=null,A.H=a,A.A=u,Tt=l,yt!==null?0:(Dt=null,gt=0,xu(),Ht)}function ap(){for(;yt!==null&&!Tv();)Kd(yt)}function Kd(t){var e=md(t.alternate,t,cl);t.memoizedProps=t.pendingProps,e===null?ei(t):yt=e}function Zd(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=sd(l,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=sd(l,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:Vr(e);default:yd(l,e),e=yt=Go(e,cl),e=md(l,e,cl)}t.memoizedProps=t.pendingProps,e===null?ei(t):yt=e}function Za(t,e,l,a){Ie=Pl=null,Vr(e),Ua=null,xn=0;var u=e.return;try{if(Zy(t,u,e,l,gt)){Ht=1,Gu(t,ze(l,t.current)),yt=null;return}}catch(r){if(u!==null)throw yt=u,r;Ht=1,Gu(t,ze(l,t.current)),yt=null;return}e.flags&32768?(xt||a===1?t=!0:Ya||(gt&536870912)!==0?t=!1:(Al=t=!0,(a===2||a===9||a===3||a===6)&&(a=xe.current,a!==null&&a.tag===13&&(a.flags|=16384))),Vd(e,t)):ei(e)}function ei(t){var e=t;do{if((e.flags&32768)!==0){Vd(e,Al);return}t=e.return;var l=ky(e.alternate,e,cl);if(l!==null){yt=l;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Ht===0&&(Ht=5)}function Vd(t,e){do{var l=Fy(t.alternate,t);if(l!==null){l.flags&=32767,yt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=l}while(t!==null);Ht=6,yt=null}function Jd(t,e,l,a,u,r,f,y,b){t.cancelPendingCommit=null;do li();while(kt!==0);if((Tt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(r=e.lanes|e.childLanes,r|=br,Qv(t,l,r,f,y,b),t===Dt&&(yt=Dt=null,gt=0),Xa=e,Ml=t,ol=l,As=r,Cs=u,Qd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,rp(nu,function(){return Wd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,u=w.p,w.p=2,f=Tt,Tt|=4;try{$y(t,e,l)}finally{Tt=f,w.p=u,A.T=a}}kt=1,kd(),Fd(),$d()}}function kd(){if(kt===1){kt=0;var t=Ml,e=Xa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=w.p;w.p=2;var u=Tt;Tt|=4;try{Cd(e,t);var r=Xs,f=Ro(t.containerInfo),y=r.focusedElem,b=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&Do(y.ownerDocument.documentElement,y)){if(b!==null&&mr(y)){var E=b.start,R=b.end;if(R===void 0&&(R=E),"selectionStart"in y)y.selectionStart=E,y.selectionEnd=Math.min(R,y.value.length);else{var Q=y.ownerDocument||document,C=Q&&Q.defaultView||window;if(C.getSelection){var z=C.getSelection(),k=y.textContent.length,ut=Math.min(b.start,k),Nt=b.end===void 0?ut:Math.min(b.end,k);!z.extend&&ut>Nt&&(f=Nt,Nt=ut,ut=f);var O=No(y,ut),S=No(y,Nt);if(O&&S&&(z.rangeCount!==1||z.anchorNode!==O.node||z.anchorOffset!==O.offset||z.focusNode!==S.node||z.focusOffset!==S.offset)){var _=Q.createRange();_.setStart(O.node,O.offset),z.removeAllRanges(),ut>Nt?(z.addRange(_),z.extend(S.node,S.offset)):(_.setEnd(S.node,S.offset),z.addRange(_))}}}}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 q=Q[y];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}mi=!!Gs,Xs=Gs=null}finally{Tt=u,w.p=a,A.T=l}}t.current=e,kt=2}}function Fd(){if(kt===2){kt=0;var t=Ml,e=Xa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=w.p;w.p=2;var u=Tt;Tt|=4;try{jd(t,e.alternate,e)}finally{Tt=u,w.p=a,A.T=l}}kt=3}}function $d(){if(kt===4||kt===3){kt=0,Av();var t=Ml,e=Xa,l=ol,a=Qd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?kt=5:(kt=0,Xa=Ml=null,Pd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(zl=null),Fi(l),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(en,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=A.T,u=w.p,w.p=2,A.T=null;try{for(var r=t.onRecoverableError,f=0;f<a.length;f++){var y=a[f];r(y.value,{componentStack:y.stack})}}finally{A.T=e,w.p=u}}(ol&3)!==0&&li(),Ke(t),u=t.pendingLanes,(l&261930)!==0&&(u&42)!==0?t===zs?wn++:(wn=0,zs=t):wn=0,Hn(0)}}function Pd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,gn(e)))}function li(){return kd(),Fd(),$d(),Wd()}function Wd(){if(kt!==5)return!1;var t=Ml,e=As;As=0;var l=Fi(ol),a=A.T,u=w.p;try{w.p=32>l?32:l,A.T=null,l=Cs,Cs=null;var r=Ml,f=ol;if(kt=0,Xa=Ml=null,ol=0,(Tt&6)!==0)throw Error(c(331));var y=Tt;if(Tt|=4,Rd(r.current),Md(r,r.current,f,l),Tt=y,Hn(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(en,r)}catch{}return!0}finally{w.p=u,A.T=a,Pd(t,e)}}function Id(t,e,l){e=ze(l,e),e=rs(t.stateNode,e,2),t=jl(t,e,2),t!==null&&(an(t,2),Ke(t))}function Ct(t,e,l){if(t.tag===3)Id(t,t,l);else for(;e!==null;){if(e.tag===3){Id(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zl===null||!zl.has(a))){t=ze(l,t),l=td(2),a=jl(e,l,2),a!==null&&(ed(l,a,e,t),an(a,2),Ke(a));break}}e=e.return}}function Ds(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Iy;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(l)||(_s=!0,u.add(l),t=np.bind(null,t,e,l),e.then(t,t))}function np(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Dt===t&&(gt&l)===l&&(Ht===4||Ht===3&&(gt&62914560)===gt&&300>ve()-$u?(Tt&2)===0&&Ka(t,0):Es|=l,Ga===gt&&(Ga=0)),Ke(t)}function th(t,e){e===0&&(e=Vc()),t=kl(t,e),t!==null&&(an(t,e),Ke(t))}function up(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),th(t,l)}function ip(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(e),th(t,l)}function rp(t,e){return Zi(t,e)}var ai=null,Va=null,Rs=!1,ni=!1,Us=!1,Dl=0;function Ke(t){t!==Va&&t.next===null&&(Va===null?ai=Va=t:Va=Va.next=t),ni=!0,Rs||(Rs=!0,cp())}function Hn(t,e){if(!Us&&ni){Us=!0;do for(var l=!1,a=ai;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var r=0;else{var f=a.suspendedLanes,y=a.pingedLanes;r=(1<<31-pe(42|t)+1)-1,r&=u&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(l=!0,nh(a,r))}else r=gt,r=su(a,a===Dt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||ln(a,r)||(l=!0,nh(a,r));a=a.next}while(l);Us=!1}}function sp(){eh()}function eh(){ni=Rs=!1;var t=0;Dl!==0&&bp()&&(t=Dl);for(var e=ve(),l=null,a=ai;a!==null;){var u=a.next,r=lh(a,e);r===0?(a.next=null,l===null?ai=u:l.next=u,u===null&&(Va=l)):(l=a,(t!==0||(r&3)!==0)&&(ni=!0)),a=u}kt!==0&&kt!==5||Hn(t),Dl!==0&&(Dl=0)}function lh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-pe(r),y=1<<f,b=u[f];b===-1?((y&l)===0||(y&a)!==0)&&(u[f]=qv(y,e)):b<=e&&(t.expiredLanes|=y),r&=~y}if(e=Dt,l=gt,l=su(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Vi(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ln(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Vi(a),Fi(l)){case 2:case 8:l=Kc;break;case 32:l=nu;break;case 268435456:l=Zc;break;default:l=nu}return a=ah.bind(null,t),l=Zi(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Vi(a),t.callbackPriority=2,t.callbackNode=null,2}function ah(t,e){if(kt!==0&&kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(li()&&t.callbackNode!==l)return null;var a=gt;return a=su(t,t===Dt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Hd(t,a,e),lh(t,ve()),t.callbackNode!=null&&t.callbackNode===l?ah.bind(null,t):null)}function nh(t,e){if(li())return null;Hd(t,e,!0)}function cp(){Sp(function(){(Tt&6)!==0?Zi(Xc,sp):eh()})}function qs(){if(Dl===0){var t=Na;t===0&&(t=uu,uu<<=1,(uu&261888)===0&&(uu=256)),Dl=t}return Dl}function uh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:du(""+t)}function ih(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function op(t,e,l,a,u){if(e==="submit"&&l&&l.stateNode===u){var r=uh((u[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?uh(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new yu("action","action",null,a,u);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Dl!==0){var b=f?ih(u,f):new FormData(u);es(l,{pending:!0,data:b,method:u.method,action:r},null,b)}}else typeof r=="function"&&(y.preventDefault(),b=f?ih(u,f):new FormData(u),es(l,{pending:!0,data:b,method:u.method,action:r},r,b))},currentTarget:u}]})}}for(var Qs=0;Qs<gr.length;Qs++){var ws=gr[Qs],fp=ws.toLowerCase(),dp=ws[0].toUpperCase()+ws.slice(1);Qe(fp,"on"+dp)}Qe(Qo,"onAnimationEnd"),Qe(wo,"onAnimationIteration"),Qe(Ho,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(Cy,"onTransitionRun"),Qe(zy,"onTransitionStart"),Qe(My,"onTransitionCancel"),Qe(Bo,"onTransitionEnd"),pa("onMouseEnter",["mouseout","mouseover"]),pa("onMouseLeave",["mouseout","mouseover"]),pa("onPointerEnter",["pointerout","pointerover"]),pa("onPointerLeave",["pointerout","pointerover"]),Kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bn="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(" "),hp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bn));function rh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],u=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var f=a.length-1;0<=f;f--){var y=a[f],b=y.instance,E=y.currentTarget;if(y=y.listener,b!==r&&u.isPropagationStopped())break t;r=y,u.currentTarget=E;try{r(u)}catch(R){bu(R)}u.currentTarget=null,r=b}else for(f=0;f<a.length;f++){if(y=a[f],b=y.instance,E=y.currentTarget,y=y.listener,b!==r&&u.isPropagationStopped())break t;r=y,u.currentTarget=E;try{r(u)}catch(R){bu(R)}u.currentTarget=null,r=b}}}}function pt(t,e){var l=e[$i];l===void 0&&(l=e[$i]=new Set);var a=t+"__bubble";l.has(a)||(sh(e,t,2,!1),l.add(a))}function Hs(t,e,l){var a=0;e&&(a|=4),sh(l,t,a,e)}var ui="_reactListening"+Math.random().toString(36).slice(2);function Bs(t){if(!t[ui]){t[ui]=!0,Ic.forEach(function(l){l!=="selectionchange"&&(hp.has(l)||Hs(l,!1,t),Hs(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ui]||(e[ui]=!0,Hs("selectionchange",!1,e))}}function sh(t,e,l,a){switch(wh(e)){case 2:var u=Yp;break;case 8:u=Gp;break;default:u=tc}l=u.bind(null,e,l,t),u=void 0,!ur||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(e,l,{capture:!0,passive:u}):t.addEventListener(e,l,!0):u!==void 0?t.addEventListener(e,l,{passive:u}):t.addEventListener(e,l,!1)}function Ls(t,e,l,a,u){var r=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===u)break;if(f===4)for(f=a.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;y!==null;){if(f=ma(y),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){a=r=f;continue t}y=y.parentNode}}a=a.return}fo(function(){var E=r,R=ar(l),Q=[];t:{var C=Lo.get(t);if(C!==void 0){var z=yu,k=t;switch(t){case"keypress":if(mu(l)===0)break t;case"keydown":case"keyup":z=iy;break;case"focusin":k="focus",z=cr;break;case"focusout":k="blur",z=cr;break;case"beforeblur":case"afterblur":z=cr;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=vo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=kv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=cy;break;case Qo:case wo:case Ho:z=Pv;break;case Bo:z=fy;break;case"scroll":case"scrollend":z=Vv;break;case"wheel":z=hy;break;case"copy":case"cut":case"paste":z=Iv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=po;break;case"toggle":case"beforetoggle":z=vy}var ut=(e&4)!==0,Nt=!ut&&(t==="scroll"||t==="scrollend"),O=ut?C!==null?C+"Capture":null:C;ut=[];for(var S=E,_;S!==null;){var q=S;if(_=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||_===null||O===null||(q=rn(S,O),q!=null&&ut.push(Ln(S,q,_))),Nt)break;S=S.return}0<ut.length&&(C=new z(C,k,null,l,R),Q.push({event:C,listeners:ut}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&l!==lr&&(k=l.relatedTarget||l.fromElement)&&(ma(k)||k[ha]))break t;if((z||C)&&(C=R.window===R?R:(C=R.ownerDocument)?C.defaultView||C.parentWindow:window,z?(k=l.relatedTarget||l.toElement,z=E,k=k?ma(k):null,k!==null&&(Nt=d(k),ut=k.tag,k!==Nt||ut!==5&&ut!==27&&ut!==6)&&(k=null)):(z=null,k=E),z!==k)){if(ut=vo,q="onMouseLeave",O="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(ut=po,q="onPointerLeave",O="onPointerEnter",S="pointer"),Nt=z==null?C:un(z),_=k==null?C:un(k),C=new ut(q,S+"leave",z,l,R),C.target=Nt,C.relatedTarget=_,q=null,ma(R)===E&&(ut=new ut(O,S+"enter",k,l,R),ut.target=_,ut.relatedTarget=Nt,q=ut),Nt=q,z&&k)e:{for(ut=mp,O=z,S=k,_=0,q=O;q;q=ut(q))_++;q=0;for(var nt=S;nt;nt=ut(nt))q++;for(;0<_-q;)O=ut(O),_--;for(;0<q-_;)S=ut(S),q--;for(;_--;){if(O===S||S!==null&&O===S.alternate){ut=O;break e}O=ut(O),S=ut(S)}ut=null}else ut=null;z!==null&&ch(Q,C,z,ut,!1),k!==null&&Nt!==null&&ch(Q,Nt,k,ut,!0)}}t:{if(C=E?un(E):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var Ot=Eo;else if(jo(C))if(To)Ot=Ey;else{Ot=jy;var tt=Oy}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?E&&er(E.elementType)&&(Ot=Eo):Ot=_y;if(Ot&&(Ot=Ot(t,E))){_o(Q,Ot,l,R);break t}tt&&tt(t,C,E),t==="focusout"&&E&&C.type==="number"&&E.memoizedProps.value!=null&&tr(C,"number",C.value)}switch(tt=E?un(E):window,t){case"focusin":(jo(tt)||tt.contentEditable==="true")&&(ja=tt,vr=E,vn=null);break;case"focusout":vn=vr=ja=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,Uo(Q,l,R);break;case"selectionchange":if(Ay)break;case"keydown":case"keyup":Uo(Q,l,R)}var ht;if(fr)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else Oa?So(t,l)&&(bt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(bt="onCompositionStart");bt&&(go&&l.locale!=="ko"&&(Oa||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&Oa&&(ht=ho()):(yl=R,ir="value"in yl?yl.value:yl.textContent,Oa=!0)),tt=ii(E,bt),0<tt.length&&(bt=new yo(bt,t,null,l,R),Q.push({event:bt,listeners:tt}),ht?bt.data=ht:(ht=Oo(l),ht!==null&&(bt.data=ht)))),(ht=py?gy(t,l):by(t,l))&&(bt=ii(E,"onBeforeInput"),0<bt.length&&(tt=new yo("onBeforeInput","beforeinput",null,l,R),Q.push({event:tt,listeners:bt}),tt.data=ht)),op(Q,t,E,l,R)}rh(Q,e)})}function Ln(t,e,l){return{instance:t,listener:e,currentTarget:l}}function ii(t,e){for(var l=e+"Capture",a=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=rn(t,l),u!=null&&a.unshift(Ln(t,u,r)),u=rn(t,e),u!=null&&a.push(Ln(t,u,r))),t.tag===3)return a;t=t.return}return[]}function mp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ch(t,e,l,a,u){for(var r=e._reactName,f=[];l!==null&&l!==a;){var y=l,b=y.alternate,E=y.stateNode;if(y=y.tag,b!==null&&b===a)break;y!==5&&y!==26&&y!==27||E===null||(b=E,u?(E=rn(l,r),E!=null&&f.unshift(Ln(l,E,b))):u||(E=rn(l,r),E!=null&&f.push(Ln(l,E,b)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var vp=/\r\n?/g,yp=/\u0000|\uFFFD/g;function oh(t){return(typeof t=="string"?t:""+t).replace(vp,`
`).replace(yp,"")}function fh(t,e){return e=oh(e),oh(t)===e}function Mt(t,e,l,a,u,r){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ba(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ba(t,""+a);break;case"className":ou(t,"class",a);break;case"tabIndex":ou(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ou(t,l,a);break;case"style":co(t,a,r);break;case"data":if(e!=="object"){ou(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=du(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(l==="formAction"?(e!=="input"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=du(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Fe);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=du(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":pt("beforetoggle",t),pt("toggle",t),cu(t,"popover",a);break;case"xlinkActuate":ke(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ke(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ke(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ke(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ke(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ke(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ke(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ke(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ke(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":cu(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Kv.get(l)||l,cu(t,l,a))}}function Ys(t,e,l,a,u,r){switch(l){case"style":co(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof a=="string"?ba(t,a):(typeof a=="number"||typeof a=="bigint")&&ba(t,""+a);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Fe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!to.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),e=l.slice(2,u?l.length-7:void 0),r=t[se]||null,r=r!=null?r[l]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof a=="function")){typeof r!="function"&&r!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,u);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):cu(t,l,a)}}}function ee(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var a=!1,u=!1,r;for(r in l)if(l.hasOwnProperty(r)){var f=l[r];if(f!=null)switch(r){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Mt(t,e,r,f,l,null)}}u&&Mt(t,e,"srcSet",l.srcSet,l,null),a&&Mt(t,e,"src",l.src,l,null);return;case"input":pt("invalid",t);var y=r=f=u=null,b=null,E=null;for(a in l)if(l.hasOwnProperty(a)){var R=l[a];if(R!=null)switch(a){case"name":u=R;break;case"type":f=R;break;case"checked":b=R;break;case"defaultChecked":E=R;break;case"value":r=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:Mt(t,e,a,R,l,null)}}uo(t,r,y,b,E,f,u,!1);return;case"select":pt("invalid",t),a=f=r=null;for(u in l)if(l.hasOwnProperty(u)&&(y=l[u],y!=null))switch(u){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:Mt(t,e,u,y,l,null)}e=r,l=f,t.multiple=!!a,e!=null?ga(t,!!a,e,!1):l!=null&&ga(t,!!a,l,!0);return;case"textarea":pt("invalid",t),r=u=a=null;for(f in l)if(l.hasOwnProperty(f)&&(y=l[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":u=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(c(91));break;default:Mt(t,e,f,y,l,null)}ro(t,a,u,r);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Mt(t,e,b,a,l,null)}return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(a=0;a<Bn.length;a++)pt(Bn[a],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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 l)if(l.hasOwnProperty(E)&&(a=l[E],a!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Mt(t,e,E,a,l,null)}return;default:if(er(e)){for(R in l)l.hasOwnProperty(R)&&(a=l[R],a!==void 0&&Ys(t,e,R,a,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null&&Mt(t,e,y,a,l,null))}function pp(t,e,l,a){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,f=null,y=null,b=null,E=null,R=null;for(z in l){var Q=l[z];if(l.hasOwnProperty(z)&&Q!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":b=Q;default:a.hasOwnProperty(z)||Mt(t,e,z,null,a,Q)}}for(var C in a){var z=a[C];if(Q=l[C],a.hasOwnProperty(C)&&(z!=null||Q!=null))switch(C){case"type":r=z;break;case"name":u=z;break;case"checked":E=z;break;case"defaultChecked":R=z;break;case"value":f=z;break;case"defaultValue":y=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,e));break;default:z!==Q&&Mt(t,e,C,z,a,Q)}}Ii(t,f,y,b,E,R,r,u);return;case"select":z=f=y=C=null;for(r in l)if(b=l[r],l.hasOwnProperty(r)&&b!=null)switch(r){case"value":break;case"multiple":z=b;default:a.hasOwnProperty(r)||Mt(t,e,r,null,a,b)}for(u in a)if(r=a[u],b=l[u],a.hasOwnProperty(u)&&(r!=null||b!=null))switch(u){case"value":C=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==b&&Mt(t,e,u,r,a,b)}e=y,l=f,a=z,C!=null?ga(t,!!l,C,!1):!!a!=!!l&&(e!=null?ga(t,!!l,e,!0):ga(t,!!l,l?[]:"",!1));return;case"textarea":z=C=null;for(y in l)if(u=l[y],l.hasOwnProperty(y)&&u!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Mt(t,e,y,null,a,u)}for(f in a)if(u=a[f],r=l[f],a.hasOwnProperty(f)&&(u!=null||r!=null))switch(f){case"value":C=u;break;case"defaultValue":z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&Mt(t,e,f,u,a,r)}io(t,C,z);return;case"option":for(var k in l)if(C=l[k],l.hasOwnProperty(k)&&C!=null&&!a.hasOwnProperty(k))switch(k){case"selected":t.selected=!1;break;default:Mt(t,e,k,null,a,C)}for(b in a)if(C=a[b],z=l[b],a.hasOwnProperty(b)&&C!==z&&(C!=null||z!=null))switch(b){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Mt(t,e,b,C,a,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 ut in l)C=l[ut],l.hasOwnProperty(ut)&&C!=null&&!a.hasOwnProperty(ut)&&Mt(t,e,ut,null,a,C);for(E in a)if(C=a[E],z=l[E],a.hasOwnProperty(E)&&C!==z&&(C!=null||z!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,e));break;default:Mt(t,e,E,C,a,z)}return;default:if(er(e)){for(var Nt in l)C=l[Nt],l.hasOwnProperty(Nt)&&C!==void 0&&!a.hasOwnProperty(Nt)&&Ys(t,e,Nt,void 0,a,C);for(R in a)C=a[R],z=l[R],!a.hasOwnProperty(R)||C===z||C===void 0&&z===void 0||Ys(t,e,R,C,a,z);return}}for(var O in l)C=l[O],l.hasOwnProperty(O)&&C!=null&&!a.hasOwnProperty(O)&&Mt(t,e,O,null,a,C);for(Q in a)C=a[Q],z=l[Q],!a.hasOwnProperty(Q)||C===z||C==null&&z==null||Mt(t,e,Q,C,a,z)}function dh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function gp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var u=l[a],r=u.transferSize,f=u.initiatorType,y=u.duration;if(r&&y&&dh(f)){for(f=0,y=u.responseEnd,a+=1;a<l.length;a++){var b=l[a],E=b.startTime;if(E>y)break;var R=b.transferSize,Q=b.initiatorType;R&&dh(Q)&&(b=b.responseEnd,f+=R*(b<y?1:(y-E)/(b-E)))}if(--a,e+=8*(r+f)/(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 Gs=null,Xs=null;function ri(t){return t.nodeType===9?t:t.ownerDocument}function hh(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 mh(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 Ks(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 Zs=null;function bp(){var t=window.event;return t&&t.type==="popstate"?t===Zs?!1:(Zs=t,!0):(Zs=null,!1)}var vh=typeof setTimeout=="function"?setTimeout:void 0,xp=typeof clearTimeout=="function"?clearTimeout:void 0,yh=typeof Promise=="function"?Promise:void 0,Sp=typeof queueMicrotask=="function"?queueMicrotask:typeof yh<"u"?function(t){return yh.resolve(null).then(t).catch(Op)}:vh;function Op(t){setTimeout(function(){throw t})}function Rl(t){return t==="head"}function ph(t,e){var l=e,a=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(u),$a(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Yn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Yn(l);for(var r=l.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[nn]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||l.removeChild(r),r=f}}else l==="body"&&Yn(t.ownerDocument.body);l=u}while(l);$a(e)}function gh(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Vs(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Vs(l),Pi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function jp(t,e,l,a){for(;t.nodeType===1;){var u=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[nn])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 _p(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ue(t.nextSibling),t===null))return null;return t}function bh(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 Js(t){return t.data==="$?"||t.data==="$~"}function ks(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Ep(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}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 Fs=null;function xh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ue(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Sh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Oh(t,e,l){switch(e=ri(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function Yn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Pi(t)}var qe=new Map,jh=new Set;function si(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var fl=w.d;w.d={f:Tp,r:Ap,D:Cp,C:zp,L:Mp,m:Np,X:Rp,S:Dp,M:Up};function Tp(){var t=fl.f(),e=Iu();return t||e}function Ap(t){var e=va(t);e!==null&&e.tag===5&&e.type==="form"?Lf(e):fl.r(t)}var Ja=typeof document>"u"?null:document;function _h(t,e,l){var a=Ja;if(a&&typeof e=="string"&&e){var u=Ae(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),jh.has(u)||(jh.add(u),t={rel:t,crossOrigin:l,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ee(e,"link",t),Ft(e),a.head.appendChild(e)))}}function Cp(t){fl.D(t),_h("dns-prefetch",t,null)}function zp(t,e){fl.C(t,e),_h("preconnect",t,e)}function Mp(t,e,l){fl.L(t,e,l);var a=Ja;if(a&&t&&e){var u='link[rel="preload"][as="'+Ae(e)+'"]';e==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+Ae(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+Ae(l.imageSizes)+'"]')):u+='[href="'+Ae(t)+'"]';var r=u;switch(e){case"style":r=ka(t);break;case"script":r=Fa(t)}qe.has(r)||(t=j({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),qe.set(r,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(Gn(r))||e==="script"&&a.querySelector(Xn(r))||(e=a.createElement("link"),ee(e,"link",t),Ft(e),a.head.appendChild(e)))}}function Np(t,e){fl.m(t,e);var l=Ja;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ae(a)+'"][href="'+Ae(t)+'"]',r=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Fa(t)}if(!qe.has(r)&&(t=j({rel:"modulepreload",href:t},e),qe.set(r,t),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Xn(r)))return}a=l.createElement("link"),ee(a,"link",t),Ft(a),l.head.appendChild(a)}}}function Dp(t,e,l){fl.S(t,e,l);var a=Ja;if(a&&t){var u=ya(a).hoistableStyles,r=ka(t);e=e||"default";var f=u.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(Gn(r)))y.loading=5;else{t=j({rel:"stylesheet",href:t,"data-precedence":e},l),(l=qe.get(r))&&$s(t,l);var b=f=a.createElement("link");Ft(b),ee(b,"link",t),b._p=new Promise(function(E,R){b.onload=E,b.onerror=R}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ci(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},u.set(r,f)}}}function Rp(t,e){fl.X(t,e);var l=Ja;if(l&&t){var a=ya(l).hoistableScripts,u=Fa(t),r=a.get(u);r||(r=l.querySelector(Xn(u)),r||(t=j({src:t,async:!0},e),(e=qe.get(u))&&Ps(t,e),r=l.createElement("script"),Ft(r),ee(r,"link",t),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function Up(t,e){fl.M(t,e);var l=Ja;if(l&&t){var a=ya(l).hoistableScripts,u=Fa(t),r=a.get(u);r||(r=l.querySelector(Xn(u)),r||(t=j({src:t,async:!0,type:"module"},e),(e=qe.get(u))&&Ps(t,e),r=l.createElement("script"),Ft(r),ee(r,"link",t),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(u,r))}}function Eh(t,e,l,a){var u=(u=rt.current)?si(u):null;if(!u)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=ka(l.href),l=ya(u).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ka(l.href);var r=ya(u).hoistableStyles,f=r.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=u.querySelector(Gn(t)))&&!r._p&&(f.instance=r,f.state.loading=5),qe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},qe.set(t,l),r||qp(u,t,l,f.state))),e&&a===null)throw Error(c(528,""));return f}if(e&&a!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Fa(l),l=ya(u).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function ka(t){return'href="'+Ae(t)+'"'}function Gn(t){return'link[rel="stylesheet"]['+t+"]"}function Th(t){return j({},t,{"data-precedence":t.precedence,precedence:null})}function qp(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ee(e,"link",l),Ft(e),t.head.appendChild(e))}function Fa(t){return'[src="'+Ae(t)+'"]'}function Xn(t){return"script[async]"+t}function Ah(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ae(l.href)+'"]');if(a)return e.instance=a,Ft(a),a;var u=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ft(a),ee(a,"style",u),ci(a,l.precedence,t),e.instance=a;case"stylesheet":u=ka(l.href);var r=t.querySelector(Gn(u));if(r)return e.state.loading|=4,e.instance=r,Ft(r),r;a=Th(l),(u=qe.get(u))&&$s(a,u),r=(t.ownerDocument||t).createElement("link"),Ft(r);var f=r;return f._p=new Promise(function(y,b){f.onload=y,f.onerror=b}),ee(r,"link",a),e.state.loading|=4,ci(r,l.precedence,t),e.instance=r;case"script":return r=Fa(l.src),(u=t.querySelector(Xn(r)))?(e.instance=u,Ft(u),u):(a=l,(u=qe.get(r))&&(a=j({},l),Ps(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ft(u),ee(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,ci(a,l.precedence,t));return e.instance}function ci(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,r=u,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===e)r=y;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function $s(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ps(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var oi=null;function Ch(t,e,l){if(oi===null){var a=new Map,u=oi=new Map;u.set(l,a)}else u=oi,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),u=0;u<l.length;u++){var r=l[u];if(!(r[nn]||r[Pt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var y=a.get(f);y?y.push(r):a.set(f,[r])}}return a}function zh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Qp(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Mh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function wp(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=ka(a.href),r=e.querySelector(Gn(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=fi.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=r,Ft(r);return}r=e.ownerDocument||e,a=Th(a),(u=qe.get(u))&&$s(a,u),r=r.createElement("link"),Ft(r);var f=r;f._p=new Promise(function(y,b){f.onload=y,f.onerror=b}),ee(r,"link",a),l.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=fi.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Ws=0;function Hp(t,e){return t.stylesheets&&t.count===0&&hi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&hi(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Ws===0&&(Ws=62500*gp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&hi(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Ws?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function fi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var di=null;function hi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,di=new Map,e.forEach(Bp,t),di=null,fi.call(t))}function Bp(t,e){if(!(e.state.loading&4)){var l=di.get(t);if(l)var a=l.get(null);else{l=new Map,di.set(t,l);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var f=u[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}u=e.instance,f=u.getAttribute("data-precedence"),r=l.get(f)||a,r===a&&l.set(null,u),l.set(f,u),this.count++,a=fi.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),r?r.parentNode.insertBefore(u,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Kn={$$typeof:Et,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function Lp(t,e,l,a,u,r,f,y,b){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=Ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ji(0),this.hiddenUpdates=Ji(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Nh(t,e,l,a,u,r,f,y,b,E,R,Q){return t=new Lp(t,e,l,f,b,E,R,Q,y),e=1,r===!0&&(e|=24),r=be(3,null,null,e),t.current=r,r.stateNode=t,e=Nr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:l,cache:e},qr(r),t}function Dh(t){return t?(t=Ta,t):Ta}function Rh(t,e,l,a,u,r){u=Dh(u),a.context===null?a.context=u:a.pendingContext=u,a=Ol(e),a.payload={element:l},r=r===void 0?null:r,r!==null&&(a.callback=r),l=jl(t,a,e),l!==null&&(me(l,t,e),On(l,t,e))}function Uh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Is(t,e){Uh(t,e),(t=t.alternate)&&Uh(t,e)}function qh(t){if(t.tag===13||t.tag===31){var e=kl(t,67108864);e!==null&&me(e,t,67108864),Is(t,67108864)}}function Qh(t){if(t.tag===13||t.tag===31){var e=_e();e=ki(e);var l=kl(t,e);l!==null&&me(l,t,e),Is(t,e)}}var mi=!0;function Yp(t,e,l,a){var u=A.T;A.T=null;var r=w.p;try{w.p=2,tc(t,e,l,a)}finally{w.p=r,A.T=u}}function Gp(t,e,l,a){var u=A.T;A.T=null;var r=w.p;try{w.p=8,tc(t,e,l,a)}finally{w.p=r,A.T=u}}function tc(t,e,l,a){if(mi){var u=ec(a);if(u===null)Ls(t,e,a,vi,l),Hh(t,a);else if(Kp(u,t,e,l,a))a.stopPropagation();else if(Hh(t,a),e&4&&-1<Xp.indexOf(t)){for(;u!==null;){var r=va(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Xl(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var b=1<<31-pe(f);y.entanglements[1]|=b,f&=~b}Ke(r),(Tt&6)===0&&(Pu=ve()+500,Hn(0))}}break;case 31:case 13:y=kl(r,2),y!==null&&me(y,r,2),Iu(),Is(r,2)}if(r=ec(a),r===null&&Ls(t,e,a,vi,l),r===u)break;u=r}u!==null&&a.stopPropagation()}else Ls(t,e,a,null,l)}}function ec(t){return t=ar(t),lc(t)}var vi=null;function lc(t){if(vi=null,t=ma(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=h(e),t!==null)return t;t=null}else if(l===31){if(t=m(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return vi=t,null}function wh(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(Cv()){case Xc:return 2;case Kc:return 8;case nu:case zv:return 32;case Zc:return 268435456;default:return 32}default:return 32}}var ac=!1,Ul=null,ql=null,Ql=null,Zn=new Map,Vn=new Map,wl=[],Xp="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 Hh(t,e){switch(t){case"focusin":case"focusout":Ul=null;break;case"dragenter":case"dragleave":ql=null;break;case"mouseover":case"mouseout":Ql=null;break;case"pointerover":case"pointerout":Zn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vn.delete(e.pointerId)}}function Jn(t,e,l,a,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:r,targetContainers:[u]},e!==null&&(e=va(e),e!==null&&qh(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Kp(t,e,l,a,u){switch(e){case"focusin":return Ul=Jn(Ul,t,e,l,a,u),!0;case"dragenter":return ql=Jn(ql,t,e,l,a,u),!0;case"mouseover":return Ql=Jn(Ql,t,e,l,a,u),!0;case"pointerover":var r=u.pointerId;return Zn.set(r,Jn(Zn.get(r)||null,t,e,l,a,u)),!0;case"gotpointercapture":return r=u.pointerId,Vn.set(r,Jn(Vn.get(r)||null,t,e,l,a,u)),!0}return!1}function Bh(t){var e=ma(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=h(l),e!==null){t.blockedOn=e,Pc(t.priority,function(){Qh(l)});return}}else if(e===31){if(e=m(l),e!==null){t.blockedOn=e,Pc(t.priority,function(){Qh(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function yi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=ec(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);lr=a,l.target.dispatchEvent(a),lr=null}else return e=va(l),e!==null&&qh(e),t.blockedOn=l,!1;e.shift()}return!0}function Lh(t,e,l){yi(t)&&l.delete(e)}function Zp(){ac=!1,Ul!==null&&yi(Ul)&&(Ul=null),ql!==null&&yi(ql)&&(ql=null),Ql!==null&&yi(Ql)&&(Ql=null),Zn.forEach(Lh),Vn.forEach(Lh)}function pi(t,e){t.blockedOn===e&&(t.blockedOn=null,ac||(ac=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Zp)))}var gi=null;function Yh(t){gi!==t&&(gi=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){gi===t&&(gi=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(lc(a||l)===null)continue;break}var r=va(l);r!==null&&(t.splice(e,3),e-=3,es(r,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function $a(t){function e(b){return pi(b,t)}Ul!==null&&pi(Ul,t),ql!==null&&pi(ql,t),Ql!==null&&pi(Ql,t),Zn.forEach(e),Vn.forEach(e);for(var l=0;l<wl.length;l++){var a=wl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<wl.length&&(l=wl[0],l.blockedOn===null);)Bh(l),l.blockedOn===null&&wl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],r=l[a+1],f=u[se]||null;if(typeof r=="function")f||Yh(l);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(u=r,f=r[se]||null)y=f.formAction;else if(lc(u)!==null)continue}else y=f.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),Yh(l)}}}function Gh(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),a||setTimeout(l,20)}function l(){if(!a&&!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 a=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function nc(t){this._internalRoot=t}bi.prototype.render=nc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,a=_e();Rh(l,a,t,e,null,null)},bi.prototype.unmount=nc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Rh(t.current,2,null,t,null,null),Iu(),e[ha]=null}};function bi(t){this._internalRoot=t}bi.prototype.unstable_scheduleHydration=function(t){if(t){var e=$c();t={blockedOn:null,target:t,priority:e};for(var l=0;l<wl.length&&e!==0&&e<wl[l].priority;l++);wl.splice(l,0,t),l===0&&Bh(t)}};var Xh=i.version;if(Xh!=="19.2.1")throw Error(c(527,Xh,"19.2.1"));w.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=p(e),t=t!==null?T(t):null,t=t===null?null:t.stateNode,t};var Vp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xi.isDisabled&&xi.supportsFiber)try{en=xi.inject(Vp),ye=xi}catch{}}return Fn.createRoot=function(t,e){if(!o(t))throw Error(c(299));var l=!1,a="",u=$f,r=Pf,f=Wf;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Nh(t,1,!1,null,null,l,a,null,u,r,f,Gh),t[ha]=e.current,Bs(t),new nc(e)},Fn.hydrateRoot=function(t,e,l){if(!o(t))throw Error(c(299));var a=!1,u="",r=$f,f=Pf,y=Wf,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(r=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),e=Nh(t,1,!0,e,l??null,a,u,b,r,f,y,Gh),e.context=Dh(null),l=e.current,a=_e(),a=ki(a),u=Ol(a),u.callback=null,jl(l,u,a),l=a,e.current.lanes=l,an(e,l),Ke(e),t[ha]=e.current,Bs(t),new bi(e)},Fn.version="19.2.1",Fn}var Ih;function u0(){if(Ih)return rc.exports;Ih=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),rc.exports=n0(),rc.exports}var i0=u0();const r0="modulepreload",s0=function(n){return"/"+n},tm={},c0=function(i,s,c){let o=Promise.resolve();if(s&&s.length>0){let v=function(p){return Promise.all(p.map(T=>Promise.resolve(T).then(j=>({status:"fulfilled",value:j}),j=>({status:"rejected",reason:j}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");o=v(s.map(p=>{if(p=s0(p),p in tm)return;tm[p]=!0;const T=p.endsWith(".css"),j=T?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${j}`))return;const N=document.createElement("link");if(N.rel=T?"stylesheet":r0,T||(N.as="script"),N.crossOrigin="",N.href=p,m&&N.setAttribute("nonce",m),document.head.appendChild(N),T)return new Promise((L,K)=>{N.addEventListener("load",L),N.addEventListener("error",()=>K(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return o.then(h=>{for(const m of h||[])m.status==="rejected"&&d(m.reason);return i().catch(d)})};var oa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},sa=typeof window>"u"||"Deno"in globalThis;function ae(){}function o0(n,i){return typeof n=="function"?n(i):n}function xc(n){return typeof n=="number"&&n>=0&&n!==1/0}function zm(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Bl(n,i){return typeof n=="function"?n(i):n}function Be(n,i){return typeof n=="function"?n(i):n}function em(n,i){const{type:s="all",exact:c,fetchStatus:o,predicate:d,queryKey:h,stale:m}=n;if(h){if(c){if(i.queryHash!==Mc(h,i.options))return!1}else if(!Wn(i.queryKey,h))return!1}if(s!=="all"){const v=i.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||o&&o!==i.state.fetchStatus||d&&!d(i))}function lm(n,i){const{exact:s,status:c,predicate:o,mutationKey:d}=n;if(d){if(!i.options.mutationKey)return!1;if(s){if(Ll(i.options.mutationKey)!==Ll(d))return!1}else if(!Wn(i.options.mutationKey,d))return!1}return!(c&&i.state.status!==c||o&&!o(i))}function Mc(n,i){return(i?.queryKeyHashFn||Ll)(n)}function Ll(n){return JSON.stringify(n,(i,s)=>Sc(s)?Object.keys(s).sort().reduce((c,o)=>(c[o]=s[o],c),{}):s)}function Wn(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(s=>Wn(n[s],i[s])):!1}function Nc(n,i){if(n===i)return n;const s=am(n)&&am(i);if(s||Sc(n)&&Sc(i)){const c=s?n:Object.keys(n),o=c.length,d=s?i:Object.keys(i),h=d.length,m=s?[]:{},v=new Set(c);let p=0;for(let T=0;T<h;T++){const j=s?T:d[T];(!s&&v.has(j)||s)&&n[j]===void 0&&i[j]===void 0?(m[j]=void 0,p++):(m[j]=Nc(n[j],i[j]),m[j]===n[j]&&n[j]!==void 0&&p++)}return o===h&&p===o?n:m}return i}function Ci(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const s in n)if(n[s]!==i[s])return!1;return!0}function am(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Sc(n){if(!nm(n))return!1;const i=n.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!nm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function nm(n){return Object.prototype.toString.call(n)==="[object Object]"}function f0(n){return new Promise(i=>{setTimeout(i,n)})}function Oc(n,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,i):s.structuralSharing!==!1?Nc(n,i):i}function d0(n,i,s=0){const c=[...n,i];return s&&c.length>s?c.slice(1):c}function h0(n,i,s=0){const c=[i,...n];return s&&c.length>s?c.slice(0,-1):c}var Ee=Symbol();function Mm(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Ee?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Nm(n,i){return typeof n=="function"?n(...i):!!n}var m0=class extends oa{#e;#t;#l;constructor(){super(),this.#l=n=>{if(!sa&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Dc=new m0,v0=class extends oa{#e=!0;#t;#l;constructor(){super(),this.#l=n=>{if(!sa&&window.addEventListener){const i=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},zi=new v0;function jc(){let n,i;const s=new Promise((o,d)=>{n=o,i=d});s.status="pending",s.catch(()=>{});function c(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{c({status:"fulfilled",value:o}),n(o)},s.reject=o=>{c({status:"rejected",reason:o}),i(o)},s}function y0(n){return Math.min(1e3*2**n,3e4)}function Dm(n){return(n??"online")==="online"?zi.isOnline():!0}var Rm=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function fc(n){return n instanceof Rm}function Um(n){let i=!1,s=0,c=!1,o;const d=jc(),h=U=>{c||(N(new Rm(U)),n.abort?.())},m=()=>{i=!0},v=()=>{i=!1},p=()=>Dc.isFocused()&&(n.networkMode==="always"||zi.isOnline())&&n.canRun(),T=()=>Dm(n.networkMode)&&n.canRun(),j=U=>{c||(c=!0,n.onSuccess?.(U),o?.(),d.resolve(U))},N=U=>{c||(c=!0,n.onError?.(U),o?.(),d.reject(U))},L=()=>new Promise(U=>{o=P=>{(c||p())&&U(P)},n.onPause?.()}).then(()=>{o=void 0,c||n.onContinue?.()}),K=()=>{if(c)return;let U;const P=s===0?n.initialPromise:void 0;try{U=P??n.fn()}catch(it){U=Promise.reject(it)}Promise.resolve(U).then(j).catch(it=>{if(c)return;const mt=n.retry??(sa?0:3),Et=n.retryDelay??y0,qt=typeof Et=="function"?Et(s,it):Et,$=mt===!0||typeof mt=="number"&&s<mt||typeof mt=="function"&&mt(s,it);if(i||!$){N(it);return}s++,n.onFail?.(s,it),f0(qt).then(()=>p()?void 0:L()).then(()=>{i?N(it):K()})})};return{promise:d,cancel:h,continue:()=>(o?.(),d),cancelRetry:m,continueRetry:v,canStart:T,start:()=>(T()?K():L().then(K),d)}}var p0=n=>setTimeout(n,0);function g0(){let n=[],i=0,s=m=>{m()},c=m=>{m()},o=p0;const d=m=>{i?n.push(m):o(()=>{s(m)})},h=()=>{const m=n;n=[],m.length&&o(()=>{c(()=>{m.forEach(v=>{s(v)})})})};return{batch:m=>{let v;i++;try{v=m()}finally{i--,i||h()}return v},batchCalls:m=>(...v)=>{d(()=>{m(...v)})},schedule:d,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{c=m},setScheduler:m=>{o=m}}}var Bt=g0(),qm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xc(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(sa?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},b0=class extends qm{#e;#t;#l;#a;#n;#u;#r;constructor(n){super(),this.#r=!1,this.#u=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#l=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=x0(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){this.options={...this.#u,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(n,i){const s=Oc(this.state.data,n,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(n,i){this.#i({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#n?.promise;return this.#n?.cancel(n),i?i.then(ae).catch(ae):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Be(n.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(n=>Bl(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!zm(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#n&&(this.#r?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(n,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(n&&this.setOptions(n),!this.options.queryFn){const v=this.observers.find(p=>p.options.queryFn);v&&this.setOptions(v.options)}const s=new AbortController,c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)})},o=()=>{const v=Mm(this.options,i),T=(()=>{const j={client:this.#a,queryKey:this.queryKey,meta:this.meta};return c(j),j})();return this.#r=!1,this.options.persister?this.options.persister(v,T,this):v(T)},h=(()=>{const v={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return c(v),v})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta});const m=v=>{fc(v)&&v.silent||this.#i({type:"error",error:v}),fc(v)||(this.#l.config.onError?.(v,this),this.#l.config.onSettled?.(this.state.data,v,this)),this.scheduleGc()};return this.#n=Um({initialPromise:i?.initialPromise,fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:v=>{if(v===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(p){m(p);return}this.#l.config.onSuccess?.(v,this),this.#l.config.onSettled?.(v,this.state.error,this),this.scheduleGc()},onError:m,onFail:(v,p)=>{this.#i({type:"failed",failureCount:v,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}),this.#n.start()}#i(n){const i=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Qm(s.data,this.options),fetchMeta:n.meta??null};case"success":return this.#t=void 0,{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const c=n.error;return fc(c)&&c.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),Bt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:n})})}};function Qm(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Dm(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function x0(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,s=i!==void 0,c=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var S0=class extends oa{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,s){const c=i.queryKey,o=i.queryHash??Mc(c,i);let d=this.get(o);return d||(d=new b0({client:n,queryKey:c,queryHash:o,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(c)}),this.add(d)),d}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Bt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>em(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>em(n,s)):i}notify(n){Bt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},O0=class extends qm{#e;#t;#l;constructor(n){super(),this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#e=[],this.state=n.state||wm(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(i=>i!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})};this.#l=Um({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,d)=>{this.#a({type:"failed",failureCount:o,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",c=!this.#l.canStart();try{if(s)i();else{this.#a({type:"pending",variables:n,isPaused:c}),await this.#t.config.onMutate?.(n,this);const d=await this.options.onMutate?.(n);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:c})}const o=await this.#l.start();return await this.#t.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#a({type:"error",error:o})}}finally{this.#t.runNext(this)}}#a(n){const i=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Bt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function wm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var j0=class extends oa{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#l=0}#e;#t;#l;build(n,i,s){const c=new O0({mutationCache:this,mutationId:++this.#l,options:n.defaultMutationOptions(i),state:s});return this.add(c),c}add(n){this.#e.add(n);const i=Si(n);if(typeof i=="string"){const s=this.#t.get(i);s?s.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=Si(n);if(typeof i=="string"){const s=this.#t.get(i);if(s)if(s.length>1){const c=s.indexOf(n);c!==-1&&s.splice(c,1)}else s[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Si(n);if(typeof i=="string"){const c=this.#t.get(i)?.find(o=>o.state.status==="pending");return!c||c===n}else return!0}runNext(n){const i=Si(n);return typeof i=="string"?this.#t.get(i)?.find(c=>c!==n&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Bt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(s=>lm(i,s))}findAll(n={}){return this.getAll().filter(i=>lm(n,i))}notify(n){Bt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Bt.batch(()=>Promise.all(n.map(i=>i.continue().catch(ae))))}};function Si(n){return n.options.scope?.id}function Mi(n){return{onFetch:(i,s)=>{const c=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const p=async()=>{let T=!1;const j=K=>{Object.defineProperty(K,"signal",{enumerable:!0,get:()=>(i.signal.aborted?T=!0:i.signal.addEventListener("abort",()=>{T=!0}),i.signal)})},N=Mm(i.options,i.fetchOptions),L=async(K,U,P)=>{if(T)return Promise.reject();if(U==null&&K.pages.length)return Promise.resolve(K);const mt=(()=>{const V={client:i.client,queryKey:i.queryKey,pageParam:U,direction:P?"backward":"forward",meta:i.options.meta};return j(V),V})(),Et=await N(mt),{maxPages:qt}=i.options,$=P?h0:d0;return{pages:$(K.pages,Et,qt),pageParams:$(K.pageParams,U,qt)}};if(o&&d.length){const K=o==="backward",U=K?Hm:_c,P={pages:d,pageParams:h},it=U(c,P);m=await L(P,it,K)}else{const K=n??d.length;do{const U=v===0?h[0]??c.initialPageParam:_c(c,m);if(v>0&&U==null)break;m=await L(m,U),v++}while(v<K)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=p}}}function _c(n,{pages:i,pageParams:s}){const c=i.length-1;return i.length>0?n.getNextPageParam(i[c],i,s[c],s):void 0}function Hm(n,{pages:i,pageParams:s}){return i.length>0?n.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function _0(n,i){return i?_c(n,i)!=null:!1}function E0(n,i){return!i||!n.getPreviousPageParam?!1:Hm(n,i)!=null}var T0=class{#e;#t;#l;#a;#n;#u;#r;#i;constructor(n={}){this.#e=n.queryCache||new S0,this.#t=n.mutationCache||new j0,this.#l=n.defaultOptions||{},this.#a=new Map,this.#n=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=Dc.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=zi.subscribe(async n=>{n&&(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(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),s=this.#e.build(this,i),c=s.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Bl(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:s})=>{const c=s.data;return[i,c]})}setQueryData(n,i,s){const c=this.defaultQueryOptions({queryKey:n}),d=this.#e.get(c.queryHash)?.state.data,h=o0(i,d);if(h!==void 0)return this.#e.build(this,c).setData(h,{...s,manual:!0})}setQueriesData(n,i,s){return Bt.batch(()=>this.#e.findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,i,s)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;Bt.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(n,i){const s=this.#e;return Bt.batch(()=>(s.findAll(n).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const s={revert:!0,...i},c=Bt.batch(()=>this.#e.findAll(n).map(o=>o.cancel(s)));return Promise.all(c).then(ae).catch(ae)}invalidateQueries(n,i={}){return Bt.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},c=Bt.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,s);return s.throwOnError||(d=d.catch(ae)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(ae)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const s=this.#e.build(this,i);return s.isStaleByTime(Bl(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ae).catch(ae)}fetchInfiniteQuery(n){return n.behavior=Mi(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ae).catch(ae)}ensureInfiniteQueryData(n){return n.behavior=Mi(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return zi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#l}setDefaultOptions(n){this.#l=n}setQueryDefaults(n,i){this.#a.set(Ll(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#a.values()],s={};return i.forEach(c=>{Wn(n,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(n,i){this.#n.set(Ll(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#n.values()],s={};return i.forEach(c=>{Wn(n,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#l.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Mc(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(n){return n?._defaulted?n:{...this.#l.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},In=class extends oa{constructor(n,i){super(),this.options=i,this.#e=n,this.#i=null,this.#r=jc(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#l=void 0;#a=void 0;#n;#u;#r;#i;#h;#f;#d;#c;#o;#s;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),um(this.#t,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ec(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ec(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Be(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),i._defaulted&&!Ci(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const c=this.hasListeners();c&&im(this.#t,s,this.options,i)&&this.#m(),this.updateResult(),c&&(this.#t!==s||Be(this.options.enabled,this.#t)!==Be(i.enabled,this.#t)||Bl(this.options.staleTime,this.#t)!==Bl(i.staleTime,this.#t))&&this.#y();const o=this.#p();c&&(this.#t!==s||Be(this.options.enabled,this.#t)!==Be(i.enabled,this.#t)||o!==this.#s)&&this.#g(o)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),s=this.createResult(i,n);return C0(this,s)&&(this.#a=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#a}trackResult(n,i){return new Proxy(n,{get:(s,c)=>(this.trackProp(c),i?.(c),Reflect.get(s,c))})}trackProp(n){this.#v.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),s=this.#e.getQueryCache().build(this.#e,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(n){return this.#m({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#m(n){this.#O();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(ae)),i}#y(){this.#x();const n=Bl(this.options.staleTime,this.#t);if(sa||this.#a.isStale||!xc(n))return;const s=zm(this.#a.dataUpdatedAt,n)+1;this.#c=setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#s=n,!(sa||Be(this.options.enabled,this.#t)===!1||!xc(this.#s)||this.#s===0)&&(this.#o=setInterval(()=>{(this.options.refetchIntervalInBackground||Dc.isFocused())&&this.#m()},this.#s))}#b(){this.#y(),this.#g(this.#p())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}createResult(n,i){const s=this.#t,c=this.options,o=this.#a,d=this.#n,h=this.#u,v=n!==s?n.state:this.#l,{state:p}=n;let T={...p},j=!1,N;if(i._optimisticResults){const X=this.hasListeners(),W=!X&&um(n,i),lt=X&&im(n,s,i,c);(W||lt)&&(T={...T,...Qm(p.data,n.options)}),i._optimisticResults==="isRestoring"&&(T.fetchStatus="idle")}let{error:L,errorUpdatedAt:K,status:U}=T;N=T.data;let P=!1;if(i.placeholderData!==void 0&&N===void 0&&U==="pending"){let X;o?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(X=o.data,P=!0):X=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,X!==void 0&&(U="success",N=Oc(o?.data,X,i),j=!0)}if(i.select&&N!==void 0&&!P)if(o&&N===d?.data&&i.select===this.#h)N=this.#f;else try{this.#h=i.select,N=i.select(N),N=Oc(o?.data,N,i),this.#f=N,this.#i=null}catch(X){this.#i=X}this.#i&&(L=this.#i,N=this.#f,K=Date.now(),U="error");const it=T.fetchStatus==="fetching",mt=U==="pending",Et=U==="error",qt=mt&&it,$=N!==void 0,M={status:U,fetchStatus:T.fetchStatus,isPending:mt,isSuccess:U==="success",isError:Et,isInitialLoading:qt,isLoading:qt,data:N,dataUpdatedAt:T.dataUpdatedAt,error:L,errorUpdatedAt:K,failureCount:T.fetchFailureCount,failureReason:T.fetchFailureReason,errorUpdateCount:T.errorUpdateCount,isFetched:T.dataUpdateCount>0||T.errorUpdateCount>0,isFetchedAfterMount:T.dataUpdateCount>v.dataUpdateCount||T.errorUpdateCount>v.errorUpdateCount,isFetching:it,isRefetching:it&&!mt,isLoadingError:Et&&!$,isPaused:T.fetchStatus==="paused",isPlaceholderData:j,isRefetchError:Et&&$,isStale:Rc(n,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const X=F=>{M.status==="error"?F.reject(M.error):M.data!==void 0&&F.resolve(M.data)},W=()=>{const F=this.#r=M.promise=jc();X(F)},lt=this.#r;switch(lt.status){case"pending":n.queryHash===s.queryHash&&X(lt);break;case"fulfilled":(M.status==="error"||M.data!==lt.value)&&W();break;case"rejected":(M.status!=="error"||M.error!==lt.reason)&&W();break}}return M}updateResult(){const n=this.#a,i=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#t),Ci(i,n))return;this.#a=i;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:c}=this.options,o=typeof c=="function"?c():c;if(o==="all"||!o&&!this.#v.size)return!0;const d=new Set(o??this.#v);return this.options.throwOnError&&d.add("error"),Object.keys(this.#a).some(h=>{const m=h;return this.#a[m]!==n[m]&&d.has(m)})};this.#j({listeners:s()})}#O(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#l=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#j(n){Bt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function A0(n,i){return Be(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function um(n,i){return A0(n,i)||n.state.data!==void 0&&Ec(n,i,i.refetchOnMount)}function Ec(n,i,s){if(Be(i.enabled,n)!==!1&&Bl(i.staleTime,n)!=="static"){const c=typeof s=="function"?s(n):s;return c==="always"||c!==!1&&Rc(n,i)}return!1}function im(n,i,s,c){return(n!==i||Be(c.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Rc(n,s)}function Rc(n,i){return Be(i.enabled,n)!==!1&&n.isStaleByTime(Bl(i.staleTime,n))}function C0(n,i){return!Ci(n.getCurrentResult(),i)}function rm(n,i){const s=new Set(i);return n.filter(c=>!s.has(c))}function z0(n,i,s){const c=n.slice(0);return c[i]=s,c}var M0=class extends oa{#e;#t;#l;#a;#n;#u;#r;#i;#h=[];constructor(n,i,s){super(),this.#e=n,this.#a=s,this.#l=[],this.#n=[],this.#t=[],this.setQueries(i)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(n=>{n.subscribe(i=>{this.#o(n,i)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(n=>{n.destroy()})}setQueries(n,i){this.#l=n,this.#a=i,Bt.batch(()=>{const s=this.#n,c=this.#c(this.#l);this.#h=c,c.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const o=c.map(m=>m.observer),d=o.map(m=>m.getCurrentResult()),h=o.some((m,v)=>m!==s[v]);s.length===o.length&&!h||(this.#n=o,this.#t=d,this.hasListeners()&&(rm(s,o).forEach(m=>{m.destroy()}),rm(o,s).forEach(m=>{m.subscribe(v=>{this.#o(m,v)})}),this.#s()))})}getCurrentResult(){return this.#t}getQueries(){return this.#n.map(n=>n.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(n,i){const s=this.#c(n),c=s.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>this.#d(o??c,i),()=>this.#f(c,s)]}#f(n,i){return i.map((s,c)=>{const o=n[c];return s.defaultedQueryOptions.notifyOnChangeProps?o:s.observer.trackResult(o,d=>{i.forEach(h=>{h.observer.trackProp(d)})})})}#d(n,i){return i?((!this.#u||this.#t!==this.#i||i!==this.#r)&&(this.#r=i,this.#i=this.#t,this.#u=Nc(this.#u,i(n))),this.#u):n}#c(n){const i=new Map(this.#n.map(c=>[c.options.queryHash,c])),s=[];return n.forEach(c=>{const o=this.#e.defaultQueryOptions(c),d=i.get(o.queryHash);d?s.push({defaultedQueryOptions:o,observer:d}):s.push({defaultedQueryOptions:o,observer:new In(this.#e,o)})}),s}#o(n,i){const s=this.#n.indexOf(n);s!==-1&&(this.#t=z0(this.#t,s,i),this.#s())}#s(){if(this.hasListeners()){const n=this.#u,i=this.#f(this.#t,this.#h),s=this.#d(i,this.#a?.combine);n!==s&&Bt.batch(()=>{this.listeners.forEach(c=>{c(this.#t)})})}}},Bm=class extends In{constructor(n,i){super(n,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:Mi()})}getOptimisticResult(n){return n.behavior=Mi(),super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,i){const{state:s}=n,c=super.createResult(n,i),{isFetching:o,isRefetching:d,isError:h,isRefetchError:m}=c,v=s.fetchMeta?.fetchMore?.direction,p=h&&v==="forward",T=o&&v==="forward",j=h&&v==="backward",N=o&&v==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:_0(i,s.data),hasPreviousPage:E0(i,s.data),isFetchNextPageError:p,isFetchingNextPage:T,isFetchPreviousPageError:j,isFetchingPreviousPage:N,isRefetchError:m&&!p&&!j,isRefetching:d&&!T&&!N}}},N0=class extends oa{#e;#t=void 0;#l;#a;constructor(i,s){super(),this.#e=i,this.setOptions(s),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const s=this.options;this.options=this.#e.defaultMutationOptions(i),Ci(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#l,observer:this}),s?.mutationKey&&this.options.mutationKey&&Ll(s.mutationKey)!==Ll(this.options.mutationKey)?this.reset():this.#l?.state.status==="pending"&&this.#l.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#l?.removeObserver(this)}onMutationUpdate(i){this.#n(),this.#u(i)}getCurrentResult(){return this.#t}reset(){this.#l?.removeObserver(this),this.#l=void 0,this.#n(),this.#u()}mutate(i,s){return this.#a=s,this.#l?.removeObserver(this),this.#l=this.#e.getMutationCache().build(this.#e,this.options),this.#l.addObserver(this),this.#l.execute(i)}#n(){const i=this.#l?.state??wm();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#u(i){Bt.batch(()=>{if(this.#a&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context;i?.type==="success"?(this.#a.onSuccess?.(i.data,s,c),this.#a.onSettled?.(i.data,null,s,c)):i?.type==="error"&&(this.#a.onError?.(i.error,s,c),this.#a.onSettled?.(void 0,i.error,s,c))}this.listeners.forEach(s=>{s(this.#t)})})}},Lm=B.createContext(void 0),tu=n=>{const i=B.useContext(Lm);if(n)return n;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},D0=({client:n,children:i})=>(B.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),g.jsx(Lm.Provider,{value:n,children:i})),Ym=B.createContext(!1),Gm=()=>B.useContext(Ym);Ym.Provider;function R0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var U0=B.createContext(R0()),Xm=()=>B.useContext(U0),Km=(n,i)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(i.isReset()||(n.retryOnMount=!1))},Zm=n=>{B.useEffect(()=>{n.clearReset()},[n])},Vm=({result:n,errorResetBoundary:i,throwOnError:s,query:c,suspense:o})=>n.isError&&!i.isReset()&&!n.isFetching&&c&&(o&&n.data===void 0||Nm(s,[n.error,c])),Uc=(n,i)=>i.state.data===void 0,Jm=n=>{if(n.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},km=(n,i)=>n.isLoading&&n.isFetching&&!i,Tc=(n,i)=>n?.suspense&&i.isPending,Ni=(n,i,s)=>i.fetchOptimistic(n).catch(()=>{s.clearReset()});function Fm({queries:n,...i},s){const c=tu(s),o=Gm(),d=Xm(),h=B.useMemo(()=>n.map(U=>{const P=c.defaultQueryOptions(U);return P._optimisticResults=o?"isRestoring":"optimistic",P}),[n,c,o]);h.forEach(U=>{Jm(U),Km(U,d)}),Zm(d);const[m]=B.useState(()=>new M0(c,h,i)),[v,p,T]=m.getOptimisticResult(h,i.combine),j=!o&&i.subscribed!==!1;B.useSyncExternalStore(B.useCallback(U=>j?m.subscribe(Bt.batchCalls(U)):ae,[m,j]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),B.useEffect(()=>{m.setQueries(h,i)},[h,i,m]);const L=v.some((U,P)=>Tc(h[P],U))?v.flatMap((U,P)=>{const it=h[P];if(it){const mt=new In(c,it);if(Tc(it,U))return Ni(it,mt,d);km(U,o)&&Ni(it,mt,d)}return[]}):[];if(L.length>0)throw Promise.all(L);const K=v.find((U,P)=>{const it=h[P];return it&&Vm({result:U,errorResetBoundary:d,throwOnError:it.throwOnError,query:c.getQueryCache().get(it.queryHash),suspense:it.suspense})});if(K?.error)throw K.error;return p(T())}function Ui(n,i,s){const c=Gm(),o=Xm(),d=tu(s),h=d.defaultQueryOptions(n);d.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=c?"isRestoring":"optimistic",Jm(h),Km(h,o),Zm(o);const m=!d.getQueryCache().get(h.queryHash),[v]=B.useState(()=>new i(d,h)),p=v.getOptimisticResult(h),T=!c&&n.subscribed!==!1;if(B.useSyncExternalStore(B.useCallback(j=>{const N=T?v.subscribe(Bt.batchCalls(j)):ae;return v.updateResult(),N},[v,T]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),B.useEffect(()=>{v.setOptions(h)},[h,v]),Tc(h,p))throw Ni(h,v,o);if(Vm({result:p,errorResetBoundary:o,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&&!sa&&km(p,c)&&(m?Ni(h,v,o):d.getQueryCache().get(h.queryHash)?.promise)?.catch(ae).finally(()=>{v.updateResult()}),h.notifyOnChangeProps?p:v.trackResult(p)}function q0(n,i){return Ui(n,In,i)}function Q0(n,i){return Ui({...n,enabled:!0,suspense:!0,throwOnError:Uc,placeholderData:void 0},In,i)}function w0(n,i){return Ui({...n,enabled:!0,suspense:!0,throwOnError:Uc},Bm,i)}function H0(n,i){return Fm({...n,queries:n.queries.map(s=>({...s,suspense:!0,throwOnError:Uc,enabled:!0,placeholderData:void 0}))},i)}function B0(n,i){const s=tu(i);s.getQueryState(n.queryKey)||s.prefetchQuery(n)}function L0(n,i){const s=tu(i);s.getQueryState(n.queryKey)||s.prefetchInfiniteQuery(n)}function Y0(n,i){const s=tu(i),[c]=B.useState(()=>new N0(s,n));B.useEffect(()=>{c.setOptions(n)},[c,n]);const o=B.useSyncExternalStore(B.useCallback(h=>c.subscribe(Bt.batchCalls(h)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=B.useCallback((h,m)=>{c.mutate(h,m).catch(ae)},[c]);if(o.error&&Nm(c.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}function G0(n,i){return Ui(n,Bm,i)}function X0(n,i){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,c,o,d,h=[],m="",v=n.split("/");for(v[0]||v.shift();o=v.shift();)s=o[0],s==="*"?(h.push(s),m+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(c=o.indexOf("?",1),d=o.indexOf(".",1),h.push(o.substring(1,~c?c:~d?d:o.length)),m+=~c&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(m+=(~c?"?":"")+"\\"+o.substring(d))):m+="/"+o;return{keys:h,pattern:new RegExp("^"+m+(i?"(?=$|/)":"/?$"),"i")}}var dc={exports:{}},hc={};/**
 * @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 sm;function K0(){if(sm)return hc;sm=1;var n=Ri();function i(j,N){return j===N&&(j!==0||1/j===1/N)||j!==j&&N!==N}var s=typeof Object.is=="function"?Object.is:i,c=n.useState,o=n.useEffect,d=n.useLayoutEffect,h=n.useDebugValue;function m(j,N){var L=N(),K=c({inst:{value:L,getSnapshot:N}}),U=K[0].inst,P=K[1];return d(function(){U.value=L,U.getSnapshot=N,v(U)&&P({inst:U})},[j,L,N]),o(function(){return v(U)&&P({inst:U}),j(function(){v(U)&&P({inst:U})})},[j]),h(L),L}function v(j){var N=j.getSnapshot;j=j.value;try{var L=N();return!s(j,L)}catch{return!0}}function p(j,N){return N()}var T=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return hc.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:T,hc}var cm;function Z0(){return cm||(cm=1,dc.exports=K0()),dc.exports}var V0=Z0();const J0=Cm.useInsertionEffect,k0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F0=k0?B.useLayoutEffect:B.useEffect,$0=J0||F0,$m=n=>{const i=B.useRef([n,(...s)=>i[0](...s)]).current;return $0(()=>{i[0]=n}),i[1]},P0="popstate",qc="pushState",Qc="replaceState",W0="hashchange",om=[P0,qc,Qc,W0],I0=n=>{for(const i of om)addEventListener(i,n);return()=>{for(const i of om)removeEventListener(i,n)}},Pm=(n,i)=>V0.useSyncExternalStore(I0,n,i),tg=()=>location.search,eg=({ssrSearch:n=""}={})=>Pm(tg,()=>n),fm=()=>location.pathname,lg=({ssrPath:n}={})=>Pm(fm,n?()=>n:fm),ag=(n,{replace:i=!1,state:s=null}={})=>history[i?Qc:qc](s,"",n),ng=(n={})=>[lg(n),ag],dm=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[dm]>"u"){for(const n of[qc,Qc]){const i=history[n];history[n]=function(){const s=i.apply(this,arguments),c=new Event(n);return c.arguments=arguments,dispatchEvent(c),s}}Object.defineProperty(window,dm,{value:!0})}const ug=(n,i)=>i.toLowerCase().indexOf(n.toLowerCase())?"~"+i:i.slice(n.length)||"/",Wm=(n="")=>n==="/"?"":n,ig=(n,i)=>n[0]==="~"?n.slice(1):Wm(i)+n,rg=(n="",i)=>ug(Ac(Wm(n)),Ac(i)),sg=n=>n[0]==="?"?n.slice(1):n,Ac=n=>{try{return decodeURI(n)}catch{return n}},cg=n=>Ac(sg(n)),Im={hook:ng,searchHook:eg,parser:X0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:n=>n},tv=B.createContext(Im),Wa=()=>B.useContext(tv),ev={},lv=B.createContext(ev),wc=()=>B.useContext(lv),qi=n=>{const[i,s]=n.hook(n);return[rg(n.base,i),$m((c,o)=>s(ig(c,n.base),o))]},og=()=>qi(Wa()),fg=()=>{const n=Wa();return cg(n.searchHook(n))},av=(n,i,s,c)=>{const{pattern:o,keys:d}=i instanceof RegExp?{keys:!1,pattern:i}:n(i||"*",c),h=o.exec(s)||[],[m,...v]=h;return m!==void 0?[!0,(()=>{const p=d!==!1?Object.fromEntries(d.map((j,N)=>[j,v[N]])):h.groups;let T={...v};return p&&Object.assign(T,p),T})(),...c?[m]:[]]:[!1,null]},dg=({children:n,...i})=>{const s=Wa(),c=i.hook?Im:s;let o=c;const[d,h]=i.ssrPath?.split("?")??[];h&&(i.ssrSearch=h,i.ssrPath=d),i.hrefs=i.hrefs??i.hook?.hrefs;let m=B.useRef({}),v=m.current,p=v;for(let T in c){const j=T==="base"?c[T]+(i[T]||""):i[T]||c[T];v===p&&j!==p[T]&&(m.current=p={...p}),p[T]=j,j!==c[T]&&(o=p)}return B.createElement(tv.Provider,{value:o,children:n})},hm=({children:n,component:i},s)=>i?B.createElement(i,{params:s}):typeof n=="function"?n(s):n,hg=n=>{let i=B.useRef(ev),s=i.current;for(const c in n)n[c]!==s[c]&&(s=n);return Object.keys(n).length===0&&(s=n),i.current=s},Ze=({path:n,nest:i,match:s,...c})=>{const o=Wa(),[d]=qi(o),[h,m,v]=s??av(o.parser,n,d,i),p=hg({...wc(),...m});if(!h)return null;const T=v?B.createElement(dg,{base:v},hm(c,p)):hm(c,p);return B.createElement(lv.Provider,{value:p,children:T})};B.forwardRef((n,i)=>{const s=Wa(),[c,o]=qi(s),{to:d="",href:h=d,onClick:m,asChild:v,children:p,className:T,replace:j,state:N,...L}=n,K=$m(P=>{P.ctrlKey||P.metaKey||P.altKey||P.shiftKey||P.button!==0||(m?.(P),P.defaultPrevented||(P.preventDefault(),o(h,n)))}),U=s.hrefs(h[0]==="~"?h.slice(1):s.base+h,s);return v&&B.isValidElement(p)?B.cloneElement(p,{onClick:K,href:U}):B.createElement("a",{...L,onClick:K,href:U,className:T?.call?T(c===h):T,children:p,ref:i})});const nv=n=>Array.isArray(n)?n.flatMap(i=>nv(i&&i.type===B.Fragment?i.props.children:i)):[n],mg=({children:n,location:i})=>{const s=Wa(),[c]=qi(s);for(const o of nv(n)){let d=0;if(B.isValidElement(o)&&(d=av(s.parser,o.props.path,i||c,o.props.nest))[0])return B.cloneElement(o,{match:d})}return null};function ca(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}const vg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function uv(n){return vg&&ca(n)&&Symbol.asyncIterator in n}var yg=Object.create,iv=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,rv=Object.getOwnPropertyNames,gg=Object.getPrototypeOf,bg=Object.prototype.hasOwnProperty,eu=(n,i)=>function(){return i||(0,n[rv(n)[0]])((i={exports:{}}).exports,i),i.exports},xg=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=rv(i),d=0,h=o.length,m;d<h;d++)m=o[d],!bg.call(n,m)&&m!==s&&iv(n,m,{get:(v=>i[v]).bind(null,m),enumerable:!(c=pg(i,m))||c.enumerable});return n},Qi=(n,i,s)=>(s=n!=null?yg(gg(n)):{},xg(iv(s,"default",{value:n,enumerable:!0}),n));const sv=()=>{},mm=n=>{Object.freeze&&Object.freeze(n)};function cv(n,i,s){var c;const o=i.join(".");return(c=s[o])!==null&&c!==void 0||(s[o]=new Proxy(sv,{get(d,h){if(!(typeof h!="string"||h==="then"))return cv(n,[...i,h],s)},apply(d,h,m){const v=i[i.length-1];let p={args:m,path:i};return v==="call"?p={args:m.length>=2?[m[1]]:[],path:i.slice(0,-1)}:v==="apply"&&(p={args:m.length>=2?m[1]:[],path:i.slice(0,-1)}),mm(p.args),mm(p.path),n(p)}})),s[o]}const wi=n=>cv(n,[],Object.create(null)),Hc=n=>new Proxy(sv,{get(i,s){if(s!=="then")return n(s)}});var ov=eu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Sg=eu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=ov().default;function c(o,d){if(s(o)!="object"||!o)return o;var h=o[Symbol.toPrimitive];if(h!==void 0){var m=h.call(o,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Og=eu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=ov().default,c=Sg();function o(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),fv=eu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=Og();function c(o,d,h){return(d=s(d))in o?Object.defineProperty(o,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):o[d]=h,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Bc=eu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=fv();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,v)}return m}function o(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(v){s(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});Qi(Bc());Qi(fv());var Oi=Qi(Bc());function jg(n,i){if("error"in n){const c=i.deserialize(n.error);return{ok:!1,error:(0,Oi.default)((0,Oi.default)({},n),{},{error:c})}}return{ok:!0,result:(0,Oi.default)((0,Oi.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:i.deserialize(n.result.data)})}}var mc=class extends Error{constructor(){super("Unable to transform response from server")}};function _g(n,i){let s;try{s=jg(n,i)}catch{throw new mc}if(!s.ok&&(!ca(s.error.error)||typeof s.error.error.code!="number"))throw new mc;if(s.ok&&!ca(s.result))throw new mc;return s}Qi(Bc());function Hi(n){const i={subscribe(s){let c=null,o=!1,d=!1,h=!1;function m(){if(c===null){h=!0;return}d||(d=!0,typeof c=="function"?c():c&&c.unsubscribe())}return c=n({next(v){var p;o||(p=s.next)===null||p===void 0||p.call(s,v)},error(v){var p;o||(o=!0,(p=s.error)===null||p===void 0||p.call(s,v),m())},complete(){var v;o||(o=!0,(v=s.complete)===null||v===void 0||v.call(s),m())}}),h&&m(),{unsubscribe:m}},pipe(...s){return s.reduce(Eg,i)}};return i}function Eg(n,i){return i(n)}function Tg(n){const i=new AbortController;return new Promise((c,o)=>{let d=!1;function h(){d||(d=!0,m.unsubscribe())}i.signal.addEventListener("abort",()=>{o(i.signal.reason)});const m=n.subscribe({next(v){d=!0,c(v),h()},error(v){o(v)},complete(){i.abort(),h()}})})}var Ag=Object.create,dv=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,hv=Object.getOwnPropertyNames,zg=Object.getPrototypeOf,Mg=Object.prototype.hasOwnProperty,Yl=(n,i)=>function(){return i||(0,n[hv(n)[0]])((i={exports:{}}).exports,i),i.exports},Ng=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=hv(i),d=0,h=o.length,m;d<h;d++)m=o[d],!Mg.call(n,m)&&m!==s&&dv(n,m,{get:(v=>i[v]).bind(null,m),enumerable:!(c=Cg(i,m))||c.enumerable});return n},fa=(n,i,s)=>(s=n!=null?Ag(zg(n)):{},Ng(i||!n||!n.__esModule?dv(s,"default",{value:n,enumerable:!0}):s,n)),Dg=Yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,i){function s(c,o){if(c==null)return{};var d={};for(var h in c)if({}.hasOwnProperty.call(c,h)){if(o.includes(h))continue;d[h]=c[h]}return d}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Rg=Yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,i){var s=Dg();function c(o,d){if(o==null)return{};var h,m,v=s(o,d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(o);for(m=0;m<p.length;m++)h=p[m],d.includes(h)||{}.propertyIsEnumerable.call(o,h)&&(v[h]=o[h])}return v}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),mv=Yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ug=Yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=mv().default;function c(o,d){if(s(o)!="object"||!o)return o;var h=o[Symbol.toPrimitive];if(h!==void 0){var m=h.call(o,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),qg=Yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=mv().default,c=Ug();function o(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Qg=Yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=qg();function c(o,d,h){return(d=s(d))in o?Object.defineProperty(o,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):o[d]=h,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),lu=Yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=Qg();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,v)}return m}function o(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(v){s(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),wg=fa(Rg(),1),vm=fa(lu(),1);const Hg=["cursor","direction"];function Ve(n,i,s){const c=n.flatMap(o=>o.split("."));if(!i&&(!s||s==="any"))return c.length?[c]:[];if(s==="infinite"&&ca(i)&&("direction"in i||"cursor"in i)){const{cursor:o,direction:d}=i,h=(0,wg.default)(i,Hg);return[c,{input:h,type:"infinite"}]}return[c,(0,vm.default)((0,vm.default)({},typeof i<"u"&&i!==Ee&&{input:i}),s&&s!=="any"&&{type:s})]}function Ti(n){return Ve(n,void 0,"any")}var Bg=Object.create,vv=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,yv=Object.getOwnPropertyNames,Yg=Object.getPrototypeOf,Gg=Object.prototype.hasOwnProperty,Je=(n,i)=>function(){return i||(0,n[yv(n)[0]])((i={exports:{}}).exports,i),i.exports},Xg=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=yv(i),d=0,h=o.length,m;d<h;d++)m=o[d],!Gg.call(n,m)&&m!==s&&vv(n,m,{get:(v=>i[v]).bind(null,m),enumerable:!(c=Lg(i,m))||c.enumerable});return n},Xt=(n,i,s)=>(s=n!=null?Bg(Yg(n)):{},Xg(i||!n||!n.__esModule?vv(s,"default",{value:n,enumerable:!0}):s,n)),pv=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Kg=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=pv().default;function c(o,d){if(s(o)!="object"||!o)return o;var h=o[Symbol.toPrimitive];if(h!==void 0){var m=h.call(o,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Zg=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=pv().default,c=Kg();function o(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),da=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=Zg();function c(o,d,h){return(d=s(d))in o?Object.defineProperty(o,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):o[d]=h,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Le=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=da();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);h&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,v)}return m}function o(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(v){s(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});function Vg(n){return i=>{let s=0,c=null;const o=[];function d(){c||(c=i.subscribe({next(m){for(const p of o){var v;(v=p.next)===null||v===void 0||v.call(p,m)}},error(m){for(const p of o){var v;(v=p.error)===null||v===void 0||v.call(p,m)}},complete(){for(const v of o){var m;(m=v.complete)===null||m===void 0||m.call(v)}}}))}function h(){if(s===0&&c){const m=c;c=null,m.unsubscribe()}}return Hi(m=>(s++,o.push(m),d(),{unsubscribe(){s--,h();const v=o.findIndex(p=>p===m);v>-1&&o.splice(v,1)}}))}}function Jg(n){let i=n;const s=[],c=h=>{i!==void 0&&h.next(i),s.push(h)},o=h=>{s.splice(s.indexOf(h),1)},d=Hi(h=>(c(h),()=>{o(h)}));return d.next=h=>{if(i!==h){i=h;for(const m of s)m.next(h)}},d.get=()=>i,d}function kg(n){return Hi(i=>{function s(o=0,d=n.op){const h=n.links[o];if(!h)throw new Error("No more links to execute - did you forget to add an ending link?");return h({op:d,next(v){return s(o+1,v)}})}return s().subscribe(i)})}var ji=Xt(da(),1),Pa=Xt(Le(),1);function Fg(n){return n instanceof Di}function $g(n){return ca(n)&&ca(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function Pg(n,i){return typeof n=="string"?n:ca(n)&&typeof n.message=="string"?n.message:i}var Di=class Ai extends Error{constructor(i,s){var c,o;const d=s?.cause;super(i,{cause:d}),(0,ji.default)(this,"cause",void 0),(0,ji.default)(this,"shape",void 0),(0,ji.default)(this,"data",void 0),(0,ji.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=d,this.shape=s==null||(c=s.result)===null||c===void 0?void 0:c.error,this.data=s==null||(o=s.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Ai.prototype)}static from(i,s={}){const c=i;return Fg(c)?(s.meta&&(c.meta=(0,Pa.default)((0,Pa.default)({},c.meta),s.meta)),c):$g(c)?new Ai(c.error.message,(0,Pa.default)((0,Pa.default)({},s),{},{result:c})):new Ai(Pg(c,"Unknown error"),(0,Pa.default)((0,Pa.default)({},s),{},{cause:c}))}};function Wg(n){const i=n;return i?"input"in i?i:{input:i,output:i}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const ym=n=>typeof n=="function";function Ig(n){if(n)return n;if(typeof window<"u"&&ym(window.fetch))return window.fetch;if(typeof globalThis<"u"&&ym(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Pn=Xt(Le());function tb(n){return{url:n.url.toString(),fetch:n.fetch,transformer:Wg(n.transformer),methodOverride:n.methodOverride}}function eb(n){const i={};for(let s=0;s<n.length;s++){const c=n[s];i[s]=c}return i}const lb={query:"GET",mutation:"POST",subscription:"PATCH"};function gv(n){return"input"in n?n.transformer.input.serialize(n.input):eb(n.inputs.map(i=>n.transformer.input.serialize(i)))}const bv=n=>{const i=n.url.split("?");let c=i[0].replace(/\/$/,"")+"/"+n.path;const o=[];if(i[1]&&o.push(i[1]),"inputs"in n&&o.push("batch=1"),n.type==="query"||n.type==="subscription"){const d=gv(n);d!==void 0&&n.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return o.length&&(c+="?"+o.join("&")),c},ab=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const i=gv(n);return i!==void 0?JSON.stringify(i):void 0},nb=n=>sb((0,Pn.default)((0,Pn.default)({},n),{},{contentTypeHeader:"application/json",getUrl:bv,getBody:ab}));var ub=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const ib=n=>{var i;if(n?.aborted)throw(i=n.throwIfAborted)===null||i===void 0||i.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new ub};async function rb(n){var i;ib(n.signal);const s=n.getUrl(n),c=n.getBody(n),o=(i=n.methodOverride)!==null&&i!==void 0?i:lb[n.type],d=await(async()=>{const m=await n.headers();return Symbol.iterator in m?Object.fromEntries(m):m})(),h=(0,Pn.default)((0,Pn.default)((0,Pn.default)({},n.contentTypeHeader&&o!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{"trpc-accept":n.trpcAcceptHeader}:void 0),d);return Ig(n.fetch)(s,{method:o,signal:n.signal,body:c,headers:h})}async function sb(n){const i={},s=await rb(n);i.response=s;const c=await s.json();return i.responseJSON=c,{json:c,meta:i}}Xt(Le(),1);const pm=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function gm(n){let i=null,s=null;const c=()=>{clearTimeout(s),s=null,i=null};function o(m){const v=[[]];let p=0;for(;;){const N=m[p];if(!N)break;const L=v[v.length-1];if(N.aborted){var T;(T=N.reject)===null||T===void 0||T.call(N,new Error("Aborted")),p++;continue}if(n.validate(L.concat(N).map(U=>U.key))){L.push(N),p++;continue}if(L.length===0){var j;(j=N.reject)===null||j===void 0||j.call(N,new Error("Input is too big for a single dispatch")),p++;continue}v.push([])}return v}function d(){const m=o(i);c();for(const v of m){if(!v.length)continue;const p={items:v};for(const j of v)j.batch=p;n.fetch(p.items.map(j=>j.key)).then(async j=>{await Promise.all(j.map(async(L,K)=>{const U=p.items[K];try{var P;const mt=await Promise.resolve(L);(P=U.resolve)===null||P===void 0||P.call(U,mt)}catch(mt){var it;(it=U.reject)===null||it===void 0||it.call(U,mt)}U.batch=null,U.reject=null,U.resolve=null}));for(const L of p.items){var N;(N=L.reject)===null||N===void 0||N.call(L,new Error("Missing result")),L.batch=null}}).catch(j=>{for(const L of p.items){var N;(N=L.reject)===null||N===void 0||N.call(L,j),L.batch=null}})}}function h(m){var v;const p={aborted:!1,key:m,batch:null,resolve:pm,reject:pm},T=new Promise((j,N)=>{var L;p.reject=N,p.resolve=j,(L=i)!==null&&L!==void 0||(i=[]),i.push(p)});return(v=s)!==null&&v!==void 0||(s=setTimeout(d)),T}return{load:h}}function cb(...n){const i=new AbortController,s=n.length;let c=0;const o=()=>{++c===s&&i.abort()};for(const d of n)d?.aborted?o():d?.addEventListener("abort",o,{once:!0});return i.signal}var _i=Xt(Le(),1);function ob(n){var i,s;const c=tb(n),o=(i=n.maxURLLength)!==null&&i!==void 0?i:1/0,d=(s=n.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const h=T=>({validate(j){if(o===1/0&&d===1/0)return!0;if(j.length>d)return!1;const N=j.map(U=>U.path).join(","),L=j.map(U=>U.input);return bv((0,_i.default)((0,_i.default)({},c),{},{type:T,path:N,inputs:L,signal:null})).length<=o},async fetch(j){const N=j.map(mt=>mt.path).join(","),L=j.map(mt=>mt.input),K=cb(...j.map(mt=>mt.signal)),U=await nb((0,_i.default)((0,_i.default)({},c),{},{path:N,inputs:L,type:T,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:j}):n.headers:{}},signal:K}));return(Array.isArray(U.json)?U.json:j.map(()=>U.json)).map(mt=>({meta:U.meta,json:mt}))}}),m=gm(h("query")),v=gm(h("mutation")),p={query:m,mutation:v};return({op:T})=>Hi(j=>{/* istanbul ignore if -- @preserve */if(T.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const L=p[T.type].load(T);let K;return L.then(U=>{K=U;const P=_g(U.json,c.transformer.output);if(!P.ok){j.error(Di.from(P.error,{meta:U.meta}));return}j.next({context:U.meta,result:P.result}),j.complete()}).catch(U=>{j.error(Di.from(U,{meta:K?.meta}))}),()=>{}})}}Xt(Le(),1);const xv=(n,...i)=>typeof n=="function"?n(...i):n;Xt(da(),1);function fb(){let n,i;return{promise:new Promise((c,o)=>{n=c,i=o}),resolve:n,reject:i}}async function db(n){const i=await xv(n.url);if(!n.connectionParams)return i;const c=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+c}async function hb(n){const i={method:"connectionParams",data:await xv(n)};return JSON.stringify(i)}Xt(da(),1);var ra=Xt(da(),1);function mb(n){const{promise:i,resolve:s,reject:c}=fb();return n.addEventListener("open",()=>{n.removeEventListener("error",c),s()}),n.addEventListener("error",c),i}function vb(n,{intervalMs:i,pongTimeoutMs:s}){let c,o;function d(){c=setTimeout(()=>{n.send("PING"),o=setTimeout(()=>{n.close()},s)},i)}function h(){clearTimeout(c),d()}function m(){clearTimeout(o),h()}n.addEventListener("open",d),n.addEventListener("message",({data:v})=>{clearTimeout(c),d(),v==="PONG"&&m()}),n.addEventListener("close",()=>{clearTimeout(c),clearTimeout(o)})}var yb=class Cc{constructor(i){var s;if((0,ra.default)(this,"id",++Cc.connectCount),(0,ra.default)(this,"WebSocketPonyfill",void 0),(0,ra.default)(this,"urlOptions",void 0),(0,ra.default)(this,"keepAliveOpts",void 0),(0,ra.default)(this,"wsObservable",Jg(null)),(0,ra.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=i.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=i.urlOptions,this.keepAliveOpts=i.keepAlive}get ws(){return this.wsObservable.get()}set ws(i){this.wsObservable.next(i)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var i=this;if(i.openPromise)return i.openPromise;i.id=++Cc.connectCount;const s=db(i.urlOptions).then(c=>new i.WebSocketPonyfill(c));i.openPromise=s.then(async c=>{i.ws=c,c.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&vb(c,i.keepAliveOpts),c.addEventListener("close",()=>{i.ws===c&&(i.ws=null)}),await mb(c),i.urlOptions.connectionParams&&c.send(await hb(i.urlOptions.connectionParams))});try{await i.openPromise}finally{i.openPromise=null}}async close(){var i=this;try{await i.openPromise}finally{var s;(s=i.ws)===null||s===void 0||s.close()}}};(0,ra.default)(yb,"connectCount",0);Xt(da(),1);Xt(Le(),1);var vc=Xt(da(),1),bm=Xt(Le(),1),Bi=class{constructor(n){(0,vc.default)(this,"links",void 0),(0,vc.default)(this,"runtime",void 0),(0,vc.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(i=>i(this.runtime))}$request(n){var i;return kg({links:this.links,op:(0,bm.default)((0,bm.default)({},n),{},{context:(i=n.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(Vg())}async requestAsPromise(n){var i=this;try{const s=i.$request(n);return(await Tg(s)).result.data}catch(s){throw Di.from(s)}}query(n,i,s){return this.requestAsPromise({type:"query",path:n,input:i,context:s?.context,signal:s?.signal})}mutation(n,i,s){return this.requestAsPromise({type:"mutation",path:n,input:i,context:s?.context,signal:s?.signal})}subscription(n,i,s){return this.$request({type:"subscription",path:n,input:i,context:s.context,signal:s.signal}).subscribe({next(o){switch(o.result.type){case"state":{var d;(d=s.onConnectionStateChange)===null||d===void 0||d.call(s,o.result);break}case"started":{var h;(h=s.onStarted)===null||h===void 0||h.call(s,{context:o.context});break}case"stopped":{var m;(m=s.onStopped)===null||m===void 0||m.call(s);break}case"data":case void 0:{var v;(v=s.onData)===null||v===void 0||v.call(s,o.result.data);break}}},error(o){var d;(d=s.onError)===null||d===void 0||d.call(s,o)},complete(){var o;(o=s.onComplete)===null||o===void 0||o.call(s)}})}};const Sv=Symbol.for("trpc_untypedClient"),pb={query:"query",mutate:"mutation",subscribe:"subscription"},gb=n=>pb[n];function Ov(n){const i=wi(({path:s,args:c})=>{const o=[...s],d=gb(o.pop()),h=o.join(".");return n[d](h,...c)});return Hc(s=>s===Sv?n:i[s])}function bb(n){const i=new Bi(n);return Ov(i)}function Lc(n){return n[Sv]}Xt(Le(),1);Xt(Le(),1);var xb=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,i){function s(o){var d,h,m,v=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,m=Symbol.iterator);v--;){if(h&&(d=o[h])!=null)return d.call(o);if(m&&(d=o[m])!=null)return new c(d.call(o));h="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function c(o){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var m=h.done;return Promise.resolve(h.value).then(function(v){return{value:v,done:m}})}return c=function(m){this.s=m,this.n=m.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var v=this.s.return;return v===void 0?Promise.resolve({value:m,done:!0}):d(v.apply(this.s,arguments))},throw:function(m){var v=this.s.return;return v===void 0?Promise.reject(m):d(v.apply(this.s,arguments))}},new c(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Xt(xb(),1);Xt(Le(),1);var Sb=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,i){function s(){var c=typeof SuppressedError=="function"?SuppressedError:function(m,v){var p=Error();return p.name="SuppressedError",p.error=m,p.suppressed=v,p},o={},d=[];function h(m,v){if(v!=null){if(Object(v)!==v)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(m)var p=v[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=v[Symbol.dispose||Symbol.for("Symbol.dispose")],m))var T=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");T&&(p=function(){try{T.call(v)}catch(N){return Promise.reject(N)}}),d.push({v,d:p,a:m})}else m&&d.push({d:v,a:m});return v}return{e:o,u:h.bind(null,!1),a:h.bind(null,!0),d:function(){var v,p=this.e,T=0;function j(){for(;v=d.pop();)try{if(!v.a&&T===1)return T=0,d.push(v),Promise.resolve().then(j);if(v.d){var L=v.d.call(v.v);if(v.a)return T|=2,Promise.resolve(L).then(j,N)}else T|=1}catch(K){return N(K)}if(T===1)return p!==o?Promise.reject(p):Promise.resolve();if(p!==o)throw p}function N(L){return p=p!==o?new c(L,p):L,j()}return j()}}}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),jv=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,i){function s(c,o){this.v=c,this.k=o}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ob=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,i){var s=jv();function c(o){return new s(o,0)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),jb=Je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,i){var s=jv();function c(d){return function(){return new o(d.apply(this,arguments))}}function o(d){var h,m;function v(T,j){try{var N=d[T](j),L=N.value,K=L instanceof s;Promise.resolve(K?L.v:L).then(function(U){if(K){var P=T==="return"?"return":"next";if(!L.k||U.done)return v(P,U);U=d[P](U).value}p(N.done?"return":"normal",U)},function(U){v("throw",U)})}catch(U){p("throw",U)}}function p(T,j){switch(T){case"return":h.resolve({value:j,done:!0});break;case"throw":h.reject(j);break;default:h.resolve({value:j,done:!1})}(h=h.next)?v(h.key,h.arg):m=null}this._invoke=function(T,j){return new Promise(function(N,L){var K={key:T,arg:j,resolve:N,reject:L,next:null};m?m=m.next=K:(h=m=K,v(T,j))})},typeof d.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(d){return this._invoke("next",d)},o.prototype.throw=function(d){return this._invoke("throw",d)},o.prototype.return=function(d){return this._invoke("return",d)},i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Xt(Sb(),1);Xt(Ob(),1);Xt(jb(),1);Xt(Le(),1);function _b(n){return wi(({path:i,args:s})=>{var c;const o=[...i],d=o.pop();if(d==="useMutation")return n[d](o,...s);if(d==="_def")return{path:o};const[h,...m]=s,v=(c=m[0])!==null&&c!==void 0?c:{};return n[d](o,h,v)})}var yc;const Eb=["client","ssrContext","ssrState","abortOnUnmount"],Tb=(yc=B.createContext)===null||yc===void 0?void 0:yc.call(Cm,null),Ab=n=>{switch(n){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 Cb(n){return wi(i=>{const s=[...i.path],c=s.pop(),o=[...i.args],d=o.shift(),h=Ab(c),m=Ve(s,d,h);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(s,m,o[0]),queryOptions:()=>n.queryOptions(s,m,...o),fetch:()=>n.fetchQuery(m,...o),fetchInfinite:()=>n.fetchInfiniteQuery(m,o[0]),prefetch:()=>n.prefetchQuery(m,...o),prefetchInfinite:()=>n.prefetchInfiniteQuery(m,o[0]),ensureData:()=>n.ensureQueryData(m,...o),invalidate:()=>n.invalidateQueries(m,...o),reset:()=>n.resetQueries(m,...o),refetch:()=>n.refetchQueries(m,...o),cancel:()=>n.cancelQuery(m,...o),setData:()=>{n.setQueryData(m,o[0],o[1])},setQueriesData:()=>n.setQueriesData(m,o[0],o[1],o[2]),setInfiniteData:()=>{n.setInfiniteQueryData(m,o[0],o[1])},getData:()=>n.getQueryData(m),getInfiniteData:()=>n.getInfiniteQueryData(m),setMutationDefaults:()=>n.setMutationDefaults(Ti(s),d),getMutationDefaults:()=>n.getMutationDefaults(Ti(s)),isMutating:()=>n.isMutating({mutationKey:Ti(s)})}[c]()})}function zb(n){const i=Ov(n.client),s=Cb(n);return Hc(c=>{const o=c;return o==="client"?i:Eb.includes(o)?n[o]:s[c]})}var Mb=fa(lu(),1);function xm(n){const i=n instanceof Bi?n:Lc(n);return wi(s=>{const c=s.path,o=c.join("."),[d,h]=s.args;return(0,Mb.default)({queryKey:Ve(c,d,"query"),queryFn:()=>i.query(o,d,h?.trpc)},h)})}var pc=fa(lu(),1);function ie(n,i,s){var c;const o=n[0];let d=(c=n[1])===null||c===void 0?void 0:c.input;if(s){var h;d=(0,pc.default)((0,pc.default)((0,pc.default)({},(h=d)!==null&&h!==void 0?h:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[o.join("."),d,i?.trpc]}var Nb=Yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,i){function s(o){var d,h,m,v=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,m=Symbol.iterator);v--;){if(h&&(d=o[h])!=null)return d.call(o);if(m&&(d=o[m])!=null)return new c(d.call(o));h="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function c(o){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var m=h.done;return Promise.resolve(h.value).then(function(v){return{value:v,done:m}})}return c=function(m){this.s=m,this.n=m.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var v=this.s.return;return v===void 0?Promise.resolve({value:m,done:!0}):d(v.apply(this.s,arguments))},throw:function(m){var v=this.s.return;return v===void 0?Promise.reject(m):d(v.apply(this.s,arguments))}},new c(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Db=fa(Nb(),1);function zc(n){return{path:n.path.join(".")}}function $n(n){const i=zc(n);return B.useMemo(()=>i,[i])}async function _v(n,i,s){const o=i.getQueryCache().build(i,{queryKey:s});o.setState({data:[],status:"success"});const d=[];var h=!1,m=!1,v;try{for(var p=(0,Db.default)(n),T;h=!(T=await p.next()).done;h=!1){const j=T.value;d.push(j),o.setState({data:[...d]})}}catch(j){m=!0,v=j}finally{try{h&&p.return!=null&&await p.return()}finally{if(m)throw v}}return d}var _t=fa(lu(),1);function Rb(n){const{client:i,queryClient:s}=n,c=i instanceof Bi?i:Lc(i);return{infiniteQueryOptions:(o,d,h)=>{var m,v;const p=((m=d[1])===null||m===void 0?void 0:m.input)===Ee,T=async j=>{var N;const L=(0,_t.default)((0,_t.default)({},h),{},{trpc:(0,_t.default)((0,_t.default)({},h?.trpc),!(h==null||(N=h.trpc)===null||N===void 0)&&N.abortOnUnmount?{signal:j.signal}:{signal:null})});return await c.query(...ie(d,L,{direction:j.direction,pageParam:j.pageParam}))};return Object.assign((0,_t.default)((0,_t.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:p?Ee:T,initialPageParam:(v=h?.initialCursor)!==null&&v!==void 0?v:null}),{trpc:zc({path:o})})},queryOptions:(o,d,h)=>{var m;const v=((m=d[1])===null||m===void 0?void 0:m.input)===Ee,p=async T=>{var j;const N=(0,_t.default)((0,_t.default)({},h),{},{trpc:(0,_t.default)((0,_t.default)({},h?.trpc),!(h==null||(j=h.trpc)===null||j===void 0)&&j.abortOnUnmount?{signal:T.signal}:{signal:null})}),L=await c.query(...ie(d,N));return uv(L)?_v(L,s,d):L};return Object.assign((0,_t.default)((0,_t.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:v?Ee:p}),{trpc:zc({path:o})})},fetchQuery:(o,d)=>s.fetchQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:o,queryFn:()=>c.query(...ie(o,d))})),fetchInfiniteQuery:(o,d)=>{var h;return s.fetchInfiniteQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:o,queryFn:({pageParam:m,direction:v})=>c.query(...ie(o,d,{pageParam:m,direction:v})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},prefetchQuery:(o,d)=>s.prefetchQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:o,queryFn:()=>c.query(...ie(o,d))})),prefetchInfiniteQuery:(o,d)=>{var h;return s.prefetchInfiniteQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:o,queryFn:({pageParam:m,direction:v})=>c.query(...ie(o,d,{pageParam:m,direction:v})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},ensureQueryData:(o,d)=>s.ensureQueryData((0,_t.default)((0,_t.default)({},d),{},{queryKey:o,queryFn:()=>c.query(...ie(o,d))})),invalidateQueries:(o,d,h)=>s.invalidateQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:o}),h),resetQueries:(o,d,h)=>s.resetQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:o}),h),refetchQueries:(o,d,h)=>s.refetchQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:o}),h),cancelQuery:(o,d)=>s.cancelQueries({queryKey:o},d),setQueryData:(o,d,h)=>s.setQueryData(o,d,h),setQueriesData:(o,d,h,m)=>s.setQueriesData((0,_t.default)((0,_t.default)({},d),{},{queryKey:o}),h,m),getQueryData:o=>s.getQueryData(o),setInfiniteQueryData:(o,d,h)=>s.setQueryData(o,d,h),getInfiniteQueryData:o=>s.getQueryData(o),setMutationDefaults:(o,d)=>{const h=o[0],m=v=>c.mutation(...ie([h,{input:v}],n));return s.setMutationDefaults(o,typeof d=="function"?d({canonicalMutationFn:m}):d)},getMutationDefaults:o=>s.getMutationDefaults(o),isMutating:o=>s.isMutating((0,_t.default)((0,_t.default)({},o),{},{exact:!0}))}}var Z=fa(lu());const Sm=(n,i)=>new Proxy(n,{get(c,o){return i(o),c[o]}});function Ub(n){var i,s;const c=(i=void 0)!==null&&i!==void 0?i:$=>$.originalFn(),o=(s=void 0)!==null&&s!==void 0?s:Tb,d=bb,h=$=>{var V;const{abortOnUnmount:M=!1,queryClient:X,ssrContext:W}=$,[lt,F]=B.useState((V=$.ssrState)!==null&&V!==void 0?V:!1),et=$.client instanceof Bi?$.client:Lc($.client),vt=B.useMemo(()=>Rb({client:et,queryClient:X}),[et,X]),ct=B.useMemo(()=>(0,Z.default)({abortOnUnmount:M,queryClient:X,client:et,ssrContext:W??null,ssrState:lt},vt),[M,et,vt,X,W,lt]);return B.useEffect(()=>{F(J=>J?"mounted":!1)},[]),g.jsx(o.Provider,{value:ct,children:$.children})};function m(){const $=B.useContext(o);if(!$)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return $}function v($,V){var M;const{queryClient:X,ssrState:W}=m();return W&&W!=="mounted"&&((M=X.getQueryCache().find({queryKey:$}))===null||M===void 0?void 0:M.state.status)==="error"?(0,Z.default)({retryOnMount:!1},V):V}function p($,V,M){var X,W,lt,F,et;const vt=m(),{abortOnUnmount:ct,client:J,ssrState:A,queryClient:w,prefetchQuery:G}=vt,at=Ve($,V,"query"),dt=w.getQueryDefaults(at),x=V===Ee;typeof window>"u"&&A==="prepass"&&(M==null||(X=M.trpc)===null||X===void 0?void 0:X.ssr)!==!1&&((W=M?.enabled)!==null&&W!==void 0?W:dt?.enabled)!==!1&&!x&&!w.getQueryCache().find({queryKey:at})&&G(at,M);const D=v(at,(0,Z.default)((0,Z.default)({},dt),M)),H=(lt=(F=M==null||(et=M.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&F!==void 0?F:void 0)!==null&&lt!==void 0?lt:ct,Y=q0((0,Z.default)((0,Z.default)({},D),{},{queryKey:at,queryFn:x?V:async I=>{const rt=(0,Z.default)((0,Z.default)({},D),{},{trpc:(0,Z.default)((0,Z.default)({},D?.trpc),H?{signal:I.signal}:{signal:null})}),St=await J.query(...ie(at,rt));return uv(St)?_v(St,w,at):St}}),w);return Y.trpc=$n({path:$}),Y}function T($,V,M){var X,W,lt;const F=m(),et=Ve($,V,"query"),vt=V===Ee,ct=(X=(W=M==null||(lt=M.trpc)===null||lt===void 0?void 0:lt.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&X!==void 0?X:F.abortOnUnmount;B0((0,Z.default)((0,Z.default)({},M),{},{queryKey:et,queryFn:vt?V:J=>{const A={trpc:(0,Z.default)((0,Z.default)({},M?.trpc),ct?{signal:J.signal}:{})};return F.client.query(...ie(et,A))}}))}function j($,V,M){var X,W,lt;const F=m(),et=Ve($,V,"query"),vt=(X=(W=M==null||(lt=M.trpc)===null||lt===void 0?void 0:lt.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&X!==void 0?X:F.abortOnUnmount,ct=Q0((0,Z.default)((0,Z.default)({},M),{},{queryKey:et,queryFn:J=>{const A=(0,Z.default)((0,Z.default)({},M),{},{trpc:(0,Z.default)((0,Z.default)({},M?.trpc),vt?{signal:J.signal}:{signal:null})});return F.client.query(...ie(et,A))}}),F.queryClient);return ct.trpc=$n({path:$}),[ct.data,ct]}function N($,V){const{client:M,queryClient:X}=m(),W=Ti($),lt=X.defaultMutationOptions(X.getMutationDefaults(W)),F=Y0((0,Z.default)((0,Z.default)({},V),{},{mutationKey:W,mutationFn:et=>M.mutation(...ie([$,{input:et}],V)),onSuccess(...et){var vt,ct;return c({originalFn:()=>{var A,w,G;return(A=V==null||(w=V.onSuccess)===null||w===void 0?void 0:w.call(V,...et))!==null&&A!==void 0?A:lt==null||(G=lt.onSuccess)===null||G===void 0?void 0:G.call(lt,...et)},queryClient:X,meta:(vt=(ct=V?.meta)!==null&&ct!==void 0?ct:lt?.meta)!==null&&vt!==void 0?vt:{}})}}),X);return F.trpc=$n({path:$}),F}const L={data:void 0,error:null,status:"idle"},K={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function U($,V,M){var X;const W=(X=M?.enabled)!==null&&X!==void 0?X:V!==Ee,lt=Ll(Ve($,V,"any")),{client:F}=m(),et=B.useRef(M);B.useEffect(()=>{et.current=M});const[vt]=B.useState(new Set([])),ct=B.useCallback(x=>{vt.add(x)},[vt]),J=B.useRef(null),A=B.useCallback(x=>{const D=G.current,H=G.current=x(D);let Y=!1;for(const I of vt)if(D[I]!==H[I]){Y=!0;break}Y&&dt(Sm(H,ct))},[ct,vt]),w=B.useCallback(()=>{var x;if((x=J.current)===null||x===void 0||x.unsubscribe(),!W){A(()=>(0,Z.default)((0,Z.default)({},L),{},{reset:w}));return}A(()=>(0,Z.default)((0,Z.default)({},K),{},{reset:w}));const D=F.subscription($.join("."),V??void 0,{onStarted:()=>{var H,Y;(H=(Y=et.current).onStarted)===null||H===void 0||H.call(Y),A(I=>(0,Z.default)((0,Z.default)({},I),{},{status:"pending",error:null}))},onData:H=>{var Y,I;(Y=(I=et.current).onData)===null||Y===void 0||Y.call(I,H),A(rt=>(0,Z.default)((0,Z.default)({},rt),{},{status:"pending",data:H,error:null}))},onError:H=>{var Y,I;(Y=(I=et.current).onError)===null||Y===void 0||Y.call(I,H),A(rt=>(0,Z.default)((0,Z.default)({},rt),{},{status:"error",error:H}))},onConnectionStateChange:H=>{A(Y=>{switch(H.state){case"idle":return(0,Z.default)((0,Z.default)({},Y),{},{status:H.state,error:null,data:void 0});case"connecting":return(0,Z.default)((0,Z.default)({},Y),{},{error:H.error,status:H.state});case"pending":return Y}})},onComplete:()=>{var H,Y;(H=(Y=et.current).onComplete)===null||H===void 0||H.call(Y),A(I=>(0,Z.default)((0,Z.default)({},I),{},{status:"idle",error:null,data:void 0}))}});J.current=D},[F,lt,W,A]);B.useEffect(()=>(w(),()=>{var x;(x=J.current)===null||x===void 0||x.unsubscribe()}),[w]);const G=B.useRef(W?(0,Z.default)((0,Z.default)({},K),{},{reset:w}):(0,Z.default)((0,Z.default)({},L),{},{reset:w})),[at,dt]=B.useState(Sm(G.current,ct));return at}function P($,V,M){var X,W,lt,F,et;const{client:vt,ssrState:ct,prefetchInfiniteQuery:J,queryClient:A,abortOnUnmount:w}=m(),G=Ve($,V,"infinite"),at=A.getQueryDefaults(G),dt=V===Ee;typeof window>"u"&&ct==="prepass"&&(M==null||(X=M.trpc)===null||X===void 0?void 0:X.ssr)!==!1&&((W=M?.enabled)!==null&&W!==void 0?W:at?.enabled)!==!1&&!dt&&!A.getQueryCache().find({queryKey:G})&&J(G,(0,Z.default)((0,Z.default)({},at),M));const x=v(G,(0,Z.default)((0,Z.default)({},at),M)),D=(lt=M==null||(F=M.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&lt!==void 0?lt:w,H=G0((0,Z.default)((0,Z.default)({},x),{},{initialPageParam:(et=M.initialCursor)!==null&&et!==void 0?et:null,persister:M.persister,queryKey:G,queryFn:dt?V:Y=>{var I;const rt=(0,Z.default)((0,Z.default)({},x),{},{trpc:(0,Z.default)((0,Z.default)({},x?.trpc),D?{signal:Y.signal}:{signal:null})});return vt.query(...ie(G,rt,{pageParam:(I=Y.pageParam)!==null&&I!==void 0?I:M.initialCursor,direction:Y.direction}))}}),A);return H.trpc=$n({path:$}),H}function it($,V,M){var X,W,lt;const F=m(),et=Ve($,V,"infinite"),vt=F.queryClient.getQueryDefaults(et),ct=V===Ee,J=v(et,(0,Z.default)((0,Z.default)({},vt),M)),A=(X=M==null||(W=M.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&X!==void 0?X:F.abortOnUnmount;L0((0,Z.default)((0,Z.default)({},M),{},{initialPageParam:(lt=M.initialCursor)!==null&&lt!==void 0?lt:null,queryKey:et,queryFn:ct?V:w=>{var G;const at=(0,Z.default)((0,Z.default)({},J),{},{trpc:(0,Z.default)((0,Z.default)({},J?.trpc),A?{signal:w.signal}:{})});return F.client.query(...ie(et,at,{pageParam:(G=w.pageParam)!==null&&G!==void 0?G:M.initialCursor,direction:w.direction}))}}))}function mt($,V,M){var X,W,lt;const F=m(),et=Ve($,V,"infinite"),vt=F.queryClient.getQueryDefaults(et),ct=v(et,(0,Z.default)((0,Z.default)({},vt),M)),J=(X=M==null||(W=M.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&X!==void 0?X:F.abortOnUnmount,A=w0((0,Z.default)((0,Z.default)({},M),{},{initialPageParam:(lt=M.initialCursor)!==null&&lt!==void 0?lt:null,queryKey:et,queryFn:w=>{var G;const at=(0,Z.default)((0,Z.default)({},ct),{},{trpc:(0,Z.default)((0,Z.default)({},ct?.trpc),J?{signal:w.signal}:{})});return F.client.query(...ie(et,at,{pageParam:(G=w.pageParam)!==null&&G!==void 0?G:M.initialCursor,direction:w.direction}))}}),F.queryClient);return A.trpc=$n({path:$}),[A.data,A]}return{Provider:h,createClient:d,useContext:m,useUtils:m,useQuery:p,usePrefetchQuery:T,useSuspenseQuery:j,useQueries:($,V)=>{const{ssrState:M,queryClient:X,prefetchQuery:W,client:lt}=m(),F=xm(lt),et=$(F);if(typeof window>"u"&&M==="prepass")for(const ct of et){var vt;const J=ct;((vt=J.trpc)===null||vt===void 0?void 0:vt.ssr)!==!1&&!X.getQueryCache().find({queryKey:J.queryKey})&&W(J.queryKey,J)}return Fm({queries:et.map(ct=>(0,Z.default)((0,Z.default)({},ct),{},{queryKey:ct.queryKey})),combine:V?.combine},X)},useSuspenseQueries:$=>{const{queryClient:V,client:M}=m(),X=xm(M),W=$(X),lt=H0({queries:W.map(F=>(0,Z.default)((0,Z.default)({},F),{},{queryFn:F.queryFn,queryKey:F.queryKey}))},V);return[lt.map(F=>F.data),lt]},useMutation:N,useSubscription:U,useInfiniteQuery:P,usePrefetchInfiniteQuery:it,useSuspenseInfiniteQuery:mt}}function qb(n){const i=_b(n);return Hc(s=>s==="useContext"||s==="useUtils"?()=>{const c=n.useUtils();return B.useMemo(()=>zb(c),[c])}:n.hasOwnProperty(s)?n[s]:i[s])}function Qb(n){const i=Ub();return qb(i)}const ot=Qb(),wb=ot.createClient({links:[ob({url:"/api/trpc"})]}),Om="/media/images/capas/capa-placeholder.svg",gc="biblioteca_modo_exibicao";function jm(){if(typeof window>"u")return"desktop";const n=window.innerWidth;return n<768?"mobile":n<1024?"tablet":"desktop"}function Hb(){const[n,i]=B.useState(jm);return B.useEffect(()=>{function s(){i(jm())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),n}function Li({livros:n,titulo:i}){const{data:s}=ot.config.obter.useQuery(),c=Hb(),[o,d]=B.useState(()=>typeof window>"u"?"grade":localStorage.getItem(gc)||"grade");B.useEffect(()=>{s&&!localStorage.getItem(gc)&&d(s.modoPadrao)},[s]);function h(v){d(v),localStorage.setItem(gc,v)}const m=c==="desktop"?s?.colunasDesktop??4:c==="tablet"?s?.colunasTablet??2:null;return g.jsxs("section",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h2",{className:"font-medium uppercase text-xs",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:i}),g.jsxs("div",{className:"flex gap-1",children:[g.jsx("button",{"aria-label":"ver em grade","aria-pressed":o==="grade",onClick:()=>h("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:_m(o==="grade"),children:g.jsx(Bb,{})}),g.jsx("button",{"aria-label":"ver em lista","aria-pressed":o==="lista",onClick:()=>h("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:_m(o==="lista"),children:g.jsx(Lb,{})})]})]}),o==="grade"?g.jsx("div",{className:"grid gap-x-5 gap-y-8",style:{gridTemplateColumns:m?`repeat(${m}, 1fr)`:"repeat(auto-fill, minmax(120px, 1fr))"},children:n.map(v=>g.jsxs("a",{href:`/livro/${v.id}`,className:"group block",children:[g.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 ease-out group-hover:-translate-y-1 group-hover:shadow-2xl",children:g.jsx("img",{src:v.capaUrl||Om,alt:v.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),g.jsx("p",{className:"text-sm mt-2 leading-snug line-clamp-2 transition-colors group-hover:text-[var(--clr-acento-400)]",style:{color:"var(--clr-branco)"},children:v.titulo}),g.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:v.autor})]},v.id))}):g.jsx("div",{className:"flex flex-col gap-2",children:n.map(v=>g.jsxs("a",{href:`/livro/${v.id}`,className:"flex gap-4 items-center p-2 rounded-md transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)"},children:[g.jsx("img",{src:v.capaUrl||Om,alt:v.titulo,className:"w-12 aspect-[2/3] object-cover rounded flex-shrink-0 shadow"}),g.jsxs("div",{className:"min-w-0",children:[g.jsx("p",{className:"text-sm truncate",style:{color:"var(--clr-branco)"},children:v.titulo}),g.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[v.autor,v.serie?` · ${v.serie}`:""]})]})]},v.id))})]})}function _m(n){return{background:n?"var(--clr-acento-alpha12)":"transparent",color:n?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"}}function Bb(){return g.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[g.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),g.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),g.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),g.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Lb(){return g.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[g.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),g.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),g.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const Yb="/media/images/capas/capa-placeholder.svg",Em=6e3;function Gb({livros:n}){const[i,s]=B.useState(0),c=B.useRef(null);B.useEffect(()=>{if(!(n.length<=1))return c.current=setInterval(()=>{s(h=>(h+1)%n.length)},Em),()=>{c.current&&clearInterval(c.current)}},[n.length]);function o(h){s(h),c.current&&clearInterval(c.current),n.length>1&&(c.current=setInterval(()=>s(m=>(m+1)%n.length),Em))}if(n.length===0)return null;const d=n[i];return g.jsxs("section",{className:"mb-14 relative","aria-roledescription":"carrossel","aria-label":"livros em destaque",children:[g.jsx("div",{className:"absolute -top-16 left-1/2 -translate-x-1/2 w-72 h-72 rounded-full pointer-events-none",style:{background:"var(--gradient-accent-glow)",filter:"blur(10px)"}}),g.jsxs("div",{className:"relative rounded-2xl p-6 sm:p-8 overflow-hidden",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",boxShadow:"var(--shadow-borgonha-md)"},children:[g.jsxs("div",{className:"flex flex-col sm:flex-row gap-8",children:[g.jsx("a",{href:`/livro/${d.id}`,className:"flex-shrink-0 mx-auto sm:mx-0 group",children:g.jsx("img",{src:d.capaUrl||Yb,alt:d.titulo,className:"w-36 sm:w-44 aspect-[2/3] object-cover rounded-lg shadow-2xl transition-transform duration-300 group-hover:scale-[1.03]"},d.id)}),g.jsxs("div",{className:"flex flex-col justify-center gap-2 text-center sm:text-left min-w-0",children:[g.jsx("span",{className:"text-xs font-bold uppercase",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-acento-400)"},children:"destaque"}),g.jsx("a",{href:`/livro/${d.id}`,className:"text-2xl sm:text-3xl font-semibold leading-tight transition-colors hover:text-[var(--clr-acento-400)]",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:d.titulo}),g.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:d.autor}),d.serie&&g.jsxs("a",{href:`/serie/${encodeURIComponent(d.serie)}`,className:"text-sm w-fit mx-auto sm:mx-0 transition-colors hover:opacity-80",style:{color:"var(--color-text-on-dark-muted)"},children:[d.serie,d.volumeNumero?` · volume ${d.volumeNumero}`:""]}),d.resumo&&g.jsx("p",{className:"text-sm mt-1 max-w-md line-clamp-3",style:{color:"var(--color-text-on-dark-muted)",lineHeight:"var(--leading-relaxed)"},children:d.resumo}),g.jsx("a",{href:`/leitor/${d.id}`,className:"btn btn-primary w-fit mx-auto sm:mx-0 mt-3",children:"ler agora"})]})]}),n.length>1&&g.jsx("div",{className:"flex justify-center gap-2 mt-6 relative z-10",children:n.map((h,m)=>g.jsx("button",{"aria-label":`ir pro destaque ${m+1}`,"aria-current":m===i,onClick:()=>o(m),className:"h-1.5 rounded-full transition-all duration-300",style:{width:m===i?"24px":"8px",background:m===i?"var(--clr-acento-400)":"rgba(255,255,255,0.25)"}},h.id))})]})]})}function Ia(){const n=ot.useUtils(),{data:i,isLoading:s}=ot.auth.me.useQuery(),c=ot.auth.login.useMutation({onSuccess:()=>n.auth.me.invalidate()}),o=ot.auth.register.useMutation({onSuccess:()=>n.auth.me.invalidate()}),d=ot.auth.logout.useMutation({onSuccess:()=>n.auth.me.invalidate()}),h=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:s,login:c,registrar:o,logout:d,podePublicar:h}}function dl({buscaInicial:n=""}){const[,i]=og(),[s,c]=B.useState(n),{usuario:o,podePublicar:d}=Ia(),{data:h}=ot.menu.listar.useQuery();function m(v){v.preventDefault(),s.trim()&&i(`/buscar?q=${encodeURIComponent(s.trim())}`)}return g.jsx("header",{className:"sticky top-0 z-10 backdrop-blur-sm",style:{borderBottom:"var(--border-thin)",background:"rgba(26,2,9,0.75)"},children:g.jsxs("div",{className:"flex items-center justify-between gap-3 px-5 py-4 max-w-6xl mx-auto",children:[g.jsx("a",{href:"/",className:"flex-shrink-0",children:g.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-8"})}),h&&h.length>0&&g.jsx("nav",{className:"hidden md:flex items-center gap-5 flex-shrink-0",children:h.map(v=>g.jsx("a",{href:v.url,className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:v.rotulo},v.id))}),g.jsx("form",{onSubmit:m,className:"flex-1 max-w-xs",children:g.jsx("input",{value:s,onChange:v=>c(v.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm px-3 py-1.5 rounded-full transition-colors focus:outline-none",style:{border:"var(--border-medium)",background:"rgba(255,255,255,0.06)",color:"var(--clr-branco)"}})}),g.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:o?g.jsxs(g.Fragment,{children:[g.jsx("a",{href:"/minha-biblioteca",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"minha biblioteca"}),d&&g.jsx("a",{href:"/admin",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"área do editor"})]}):g.jsx("a",{href:"/entrar",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"entrar"})})]})})}function hl(){const{data:n}=ot.menu.listar.useQuery(),i=new Date().getFullYear();return g.jsx("footer",{className:"mt-16",style:{background:"var(--clr-borgonha-900)",borderTop:"var(--border-thin)"},children:g.jsxs("div",{className:"max-w-6xl mx-auto px-5 py-12",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between gap-8",children:[g.jsxs("div",{children:[g.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7 mb-3"}),g.jsx("p",{className:"text-sm max-w-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Parte do ecossistema ONFIDE — literatura cristã pensada com o mesmo cuidado hermenêutico de tudo que produzimos."})]}),n&&n.length>0&&g.jsxs("nav",{className:"flex flex-col gap-2",children:[g.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"navegação"}),n.map(s=>g.jsx("a",{href:s.url,className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:s.rotulo},s.id))]}),g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"ecossistema"}),g.jsx("a",{href:"https://spot.onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:"SpotOnFide"}),g.jsx("a",{href:"https://onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:"ONFIDE"})]})]}),g.jsxs("div",{className:"mt-10 pt-6 text-xs",style:{borderTop:"var(--border-thin)",color:"var(--color-text-on-dark-subtle)"},children:["© ",i," Biblioteca OnFide. Todos os direitos reservados."]})]})})}const Xb="/media/images/capas/capa-placeholder.svg";function Tm({titulo:n,itens:i}){return g.jsxs("section",{className:"mb-14",children:[g.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:n}),g.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2 -mx-1 px-1",children:i.map(s=>g.jsxs("a",{href:s.href,className:"group block flex-shrink-0 w-24",children:[g.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:g.jsx("img",{src:s.capaUrl||Xb,alt:s.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),g.jsx("p",{className:"text-xs mt-2 leading-snug line-clamp-2",style:{color:"var(--clr-branco)"},children:s.titulo})]},s.id))})]})}function Kb(){const{data:n,isLoading:i}=ot.biblioteca.getCatalogo.useQuery(),{data:s}=ot.biblioteca.getDestaques.useQuery(),{data:c}=ot.auth.me.useQuery(),{data:o}=ot.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!c}),{data:d}=ot.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!c}),{data:h}=ot.biblioteca.listarSeries.useQuery(),m=new Set((s??[]).map(p=>p.id)),v=(n??[]).filter(p=>!m.has(p.id));return g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[g.jsx(dl,{}),g.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[i&&g.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),!i&&(!n||n.length===0)&&g.jsxs("div",{className:"rounded-lg p-10 text-center",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[g.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"A estante ainda está sendo montada"}),g.jsx("p",{className:"text-sm",children:"Em breve os primeiros livros aparecem aqui."})]}),s&&s.length>0&&g.jsx(Gb,{livros:s}),o&&o.length>0&&g.jsx(Tm,{titulo:"continuar lendo",itens:o.map(p=>({id:p.livroId,titulo:p.titulo,capaUrl:p.capaUrl,href:`/leitor/${p.livroId}`}))}),d&&d.length>0&&g.jsx(Tm,{titulo:"meus favoritos",itens:d.map(p=>({id:p.livroId,titulo:p.titulo,capaUrl:p.capaUrl,href:`/livro/${p.livroId}`}))}),h&&h.length>0&&g.jsxs("section",{className:"mb-14",children:[g.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"coleções"}),g.jsx("div",{className:"flex gap-2 flex-wrap",children:h.map(p=>g.jsx("a",{href:`/serie/${encodeURIComponent(p)}`,className:"text-sm px-4 py-2 rounded-full transition-colors hover:bg-white/[0.08]",style:{border:"var(--border-medium)",color:"var(--clr-branco)"},children:p},p))})]}),v.length>0&&g.jsx(Li,{livros:v,titulo:"todos os livros"})]}),g.jsx(hl,{})]})}const Zb="/media/images/capas/capa-placeholder.svg",re={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function Vb({livroExistente:n,aoTerminar:i}){const s=ot.useUtils(),c=ot.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),o=ot.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),[d,h]=B.useState(n?.titulo??""),[m,v]=B.useState(n?.destaque??!1),[p,T]=B.useState(n?.subtitulo??""),[j,N]=B.useState(n?.serie??""),[L,K]=B.useState(n?.volumeNumero?.toString()??""),[U,P]=B.useState(n?.autor??""),[it,mt]=B.useState(n?.resumo??""),[Et,qt]=B.useState(null),[$,V]=B.useState(null),[M,X]=B.useState(!1),[W,lt]=B.useState(null),F=!!n;async function et(J,A,w,G={}){const at=new FormData;at.append(A,w);for(const[x,D]of Object.entries(G))at.append(x,D);const dt=await fetch(J,{method:"POST",body:at});if(!dt.ok){const x=await dt.json().catch(()=>({}));throw new Error(x.erro||"Falha no upload.")}return dt.json()}function vt(){h(""),T(""),N(""),K(""),P(""),mt(""),qt(null),V(null)}async function ct(){if(!F&&!Et){lt("Selecione o arquivo DOCX.");return}lt(null),X(!0);try{let J,A,w;if(Et){const at=await et("/api/admin/upload-docx","arquivo",Et,{titulo:d,autor:U});J=at.docxOriginalUrl,A=at.epubUrl}$&&(w=(await et("/api/admin/upload-capa","imagem",$)).url);const G={titulo:d,subtitulo:p||void 0,serie:j||void 0,volumeNumero:L?Number(L):void 0,autor:U,resumo:it||void 0,destaque:m,...w&&{capaUrl:w},...A&&{epubUrl:A},...J&&{docxOriginalUrl:J}};F?await o.mutateAsync({id:n.id,...G}):(await c.mutateAsync(G),vt()),i()}catch(J){lt(J instanceof Error?J.message:"Erro ao salvar.")}finally{X(!1)}}return g.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:F?`Editando: ${n.titulo}`:"Novo livro"}),F&&g.jsx("button",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},onClick:i,children:"cancelar edição"})]}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:re,placeholder:"título",value:d,onChange:J=>h(J.target.value)}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:re,placeholder:"subtítulo (opcional)",value:p,onChange:J=>T(J.target.value)}),g.jsxs("div",{className:"flex gap-3",children:[g.jsx("input",{className:"flex-1 rounded px-3 py-2",style:re,placeholder:"série (opcional)",value:j,onChange:J=>N(J.target.value)}),g.jsx("input",{className:"w-28 rounded px-3 py-2",style:re,placeholder:"volume nº",value:L,onChange:J=>K(J.target.value)})]}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:re,placeholder:"autor",value:U,onChange:J=>P(J.target.value)}),g.jsx("textarea",{className:"w-full rounded px-3 py-2",style:re,placeholder:"resumo (opcional)",value:it,onChange:J=>mt(J.target.value)}),g.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[g.jsx("input",{type:"checkbox",checked:m,onChange:J=>v(J.target.checked)}),"exibir no carrossel de destaque da Home"]}),g.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",F&&"(deixe em branco pra manter o atual)"]}),g.jsx("input",{type:"file",accept:".docx",onChange:J=>qt(J.target.files?.[0]??null)}),g.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",F&&"(deixe em branco pra manter a atual)"]}),g.jsx("input",{type:"file",accept:"image/*",onChange:J=>V(J.target.files?.[0]??null)}),W&&g.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:W}),g.jsx("button",{className:"btn btn-primary",onClick:ct,disabled:M||!d||!U,children:M?"processando...":F?"salvar alterações":"salvar como rascunho"})]})}function Jb({aoEditar:n}){const i=ot.useUtils(),{data:s}=ot.biblioteca.admin.listar.useQuery(),[c,o]=B.useState(""),d=ot.biblioteca.admin.atualizar.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),h=ot.biblioteca.admin.excluir.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),m=s?.filter(p=>p.titulo.toLowerCase().includes(c.toLowerCase())||p.autor.toLowerCase().includes(c.toLowerCase()));function v(p,T){window.confirm(`Excluir "${T}" permanentemente? Essa ação não pode ser desfeita.`)&&h.mutate({id:p})}return g.jsxs("div",{className:"mt-8 space-y-3",children:[g.jsxs("div",{className:"flex items-center justify-between gap-3",children:[g.jsxs("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:["Livros ",s?`(${s.length})`:""]}),g.jsx("input",{value:c,onChange:p=>o(p.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...re,maxWidth:240}})]}),g.jsxs("div",{className:"space-y-2",children:[m?.map(p=>g.jsxs("div",{className:"flex items-center gap-3 rounded-md p-2",style:{border:"var(--border-thin)"},children:[g.jsx("img",{src:p.capaUrl||Zb,alt:"",className:"w-10 aspect-[2/3] object-cover rounded flex-shrink-0"}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("p",{className:"text-sm truncate",children:p.titulo}),g.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"var(--color-text-on-dark-muted)"},children:[g.jsx("span",{className:"px-1.5 py-0.5 rounded",style:{background:p.status==="publicado"?"var(--clr-acento-alpha12)":"rgba(255,255,255,0.06)",color:p.status==="publicado"?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:p.status}),p.epubUrl?"epub ok":"sem epub",p.serie?` · ${p.serie}`:""]})]}),g.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[g.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>n(p),children:"editar"}),g.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>d.mutate({id:p.id,status:p.status==="publicado"?"rascunho":"publicado"}),children:p.status==="publicado"?"despublicar":"publicar"}),g.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem",color:"#ff8080"},onClick:()=>v(p.id,p.titulo),children:"excluir"})]})]},p.id)),m?.length===0&&g.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum livro encontrado."})]})]})}function kb(){const{data:n}=ot.config.obter.useQuery(),i=ot.useUtils(),s=ot.config.atualizar.useMutation({onSuccess:()=>i.config.obter.invalidate()});return n?g.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[g.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Configurações de exibição"}),g.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."}),g.jsxs("div",{className:"flex gap-4 items-center",children:[g.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",g.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:re,onBlur:c=>s.mutate({colunasDesktop:Number(c.target.value)})})]}),g.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",g.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:re,onBlur:c=>s.mutate({colunasTablet:Number(c.target.value)})})]})]}),g.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",g.jsxs("select",{defaultValue:n.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:re,onChange:c=>s.mutate({modoPadrao:c.target.value}),children:[g.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),g.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]}),g.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["quantidade de slides no carrossel de destaque",g.jsx("input",{type:"number",min:1,max:10,defaultValue:n.qtdSlidesHero,className:"w-full rounded px-3 py-2 mt-1",style:re,onBlur:c=>s.mutate({qtdSlidesHero:Number(c.target.value)})}),g.jsx("span",{className:"block text-xs mt-1",style:{color:"var(--color-text-on-dark-subtle)"},children:'se faltar livro marcado como "destaque", completa com os mais recentes.'})]})]}):null}function Fb(){const{data:n}=ot.menu.listar.useQuery(),i=ot.useUtils(),s=ot.menu.criar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),c=ot.menu.atualizar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),o=ot.menu.excluir.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),[d,h]=B.useState(""),[m,v]=B.useState("");function p(){!d||!m||(s.mutate({rotulo:d,url:m,ordem:(n?.length??0)+1}),h(""),v(""))}return g.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[g.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Menu de navegação"}),g.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Aparece no topo e no rodapé do site. Deixe vazio pra não mostrar menu nenhum."}),g.jsxs("div",{className:"space-y-2",children:[n?.map(T=>g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("input",{defaultValue:T.rotulo,className:"flex-1 rounded px-3 py-1.5 text-sm",style:re,onBlur:j=>c.mutate({id:T.id,rotulo:j.target.value})}),g.jsx("input",{defaultValue:T.url,className:"flex-1 rounded px-3 py-1.5 text-sm",style:re,onBlur:j=>c.mutate({id:T.id,url:j.target.value})}),g.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>o.mutate({id:T.id}),children:"remover"})]},T.id)),n?.length===0&&g.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),g.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[g.jsx("input",{placeholder:"rótulo (ex: Sobre)",value:d,onChange:T=>h(T.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:re}),g.jsx("input",{placeholder:"url (ex: /serie/Quatro Cavalos)",value:m,onChange:T=>v(T.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:re}),g.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:p,children:"+ adicionar"})]})]})}function $b(){const{usuario:n,isLoading:i,podePublicar:s,logout:c}=Ia(),[o,d]=B.useState(null);return i?null:n?s?g.jsx("div",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:g.jsxs("div",{className:"max-w-2xl mx-auto p-6",children:[g.jsxs("div",{className:"flex justify-between items-center mb-6",children:[g.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7"}),g.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>c.mutate(),children:"sair"})]}),g.jsx(Vb,{livroExistente:o,aoTerminar:()=>d(null)},o?.id??"novo"),g.jsx(Jb,{aoEditar:d}),g.jsx(kb,{}),g.jsx(Fb,{})]})}):g.jsx("div",{className:"min-h-dvh p-6",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:"Sua conta não tem permissão de editor."}):(window.location.href="/entrar",null)}const Pb="/media/images/capas/capa-placeholder.svg";function Wb(){const{id:n}=wc(),i=Number(n),{data:s,isLoading:c}=ot.biblioteca.getLivro.useQuery({id:i}),{data:o}=ot.auth.me.useQuery(),{data:d}=ot.biblioteca.favoritos.status.useQuery({livroId:i},{enabled:!!o&&!Number.isNaN(i)}),h=ot.useUtils(),m=ot.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>h.biblioteca.favoritos.status.invalidate({livroId:i})});return c?g.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[g.jsx(dl,{}),g.jsxs("div",{className:"max-w-xl mx-auto px-5 pt-10 pb-16 flex-1 w-full flex flex-col items-center text-center",children:[g.jsxs("div",{className:"relative",children:[g.jsx("img",{src:s.capaUrl||Pb,alt:s.titulo,style:{width:180,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-borgonha-md)"}}),o&&g.jsx("button",{"aria-label":"favoritar",onClick:()=>m.mutate({livroId:i}),className:"absolute -top-2 -right-2 w-9 h-9 rounded-full flex items-center justify-center",style:{background:"var(--clr-borgonha-900)",border:"var(--border-medium)",color:d?.favorito?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:d?.favorito?"★":"☆"})]}),g.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",fontWeight:600,color:"var(--clr-branco)",marginTop:"1.5rem",marginBottom:"0.4rem"},children:s.titulo}),s.subtitulo&&g.jsx("p",{style:{fontSize:"0.95rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),g.jsx("p",{style:{fontSize:"0.85rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),s.serie&&g.jsxs("a",{href:`/serie/${encodeURIComponent(s.serie)}`,className:"inline-block transition-opacity hover:opacity-80",style:{marginTop:"0.4rem",marginBottom:"1.5rem",fontSize:"0.75rem",padding:"0.35rem 0.9rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",color:"var(--clr-acento-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&g.jsx("p",{style:{fontSize:"0.9rem",lineHeight:"var(--leading-relaxed)",color:"var(--color-text-on-dark-muted)",marginBottom:"2rem",maxWidth:"50ch"},children:s.resumo}),s.epubUrl?g.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):g.jsx("p",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-subtle)"},children:"este livro ainda não tem um arquivo de leitura disponível."})]}),g.jsx(hl,{})]}):g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[g.jsx(dl,{}),g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[g.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),g.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]}),g.jsx(hl,{})]})}function Ib(){const i=new URLSearchParams(fg()).get("q")||"",[s]=B.useState(i),{data:c,isLoading:o}=ot.biblioteca.buscar.useQuery({q:s},{enabled:s.length>0});return g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[g.jsx(dl,{buscaInicial:s}),g.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s.length===0&&g.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),o&&g.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),s.length>0&&!o&&c&&c.length===0&&g.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',s,'".']}),c&&c.length>0&&g.jsx(Li,{livros:c,titulo:`resultados pra "${s}"`})]}),g.jsx(hl,{})]})}function tx(){const{nome:n}=wc(),i=decodeURIComponent(n),{data:s,isLoading:c}=ot.biblioteca.getSerie.useQuery({nome:i});return g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[g.jsx(dl,{}),g.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[g.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:i}),c&&g.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?g.jsx(Li,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!c&&g.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]}),g.jsx(hl,{})]})}const Am={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function ex(){const{usuario:n,isLoading:i,login:s}=Ia(),[c,o]=B.useState(""),[d,h]=B.useState("");return i?null:n?(window.location.href="/minha-biblioteca",null):g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[g.jsx(dl,{}),g.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:g.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[g.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Entrar"}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:Am,placeholder:"e-mail",value:c,onChange:m=>o(m.target.value)}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:Am,placeholder:"senha",type:"password",value:d,onChange:m=>h(m.target.value)}),g.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({email:c,senha:d}),disabled:s.isPending,children:s.isPending?"entrando...":"entrar"}),s.isError&&g.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),g.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["ainda não tem conta? ",g.jsx("a",{href:"/cadastro",style:{color:"var(--clr-acento-400)"},children:"criar conta"})]})]})}),g.jsx(hl,{})]})}const bc={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function lx(){const{usuario:n,isLoading:i,registrar:s}=Ia(),[c,o]=B.useState(""),[d,h]=B.useState(""),[m,v]=B.useState("");return i?null:n?(window.location.href="/minha-biblioteca",null):g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[g.jsx(dl,{}),g.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:g.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[g.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Criar conta"}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:bc,placeholder:"nome",value:c,onChange:p=>o(p.target.value)}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:bc,placeholder:"e-mail",value:d,onChange:p=>h(p.target.value)}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:bc,placeholder:"senha (mínimo 8 caracteres)",type:"password",value:m,onChange:p=>v(p.target.value)}),g.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({nome:c,email:d,senha:m}),disabled:s.isPending||!c||!d||m.length<8,children:s.isPending?"criando...":"criar conta"}),s.isError&&g.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),g.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["já tem conta? ",g.jsx("a",{href:"/entrar",style:{color:"var(--clr-acento-400)"},children:"entrar"})]})]})}),g.jsx(hl,{})]})}const Ei={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function ax(){const{usuario:n,isLoading:i,logout:s}=Ia(),c=ot.useUtils(),o=ot.auth.atualizarPerfil.useMutation({onSuccess:()=>c.auth.me.invalidate()}),d=ot.auth.trocarSenha.useMutation(),[h,m]=B.useState(n?.nome??""),[v,p]=B.useState(""),[T,j]=B.useState(""),[N,L]=B.useState(null);if(i)return null;if(!n)return window.location.href="/entrar",null;function K(){L(null),d.mutate({senhaAtual:v,senhaNova:T},{onSuccess:()=>{L("Senha atualizada."),p(""),j("")},onError:U=>L(U.message)})}return g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[g.jsx(dl,{}),g.jsxs("div",{className:"max-w-md mx-auto px-5 pt-10 pb-16 flex-1 w-full space-y-8",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Meu perfil"}),g.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[g.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["nome",g.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:Ei,value:h,onChange:U=>m(U.target.value)})]}),g.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["e-mail",g.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:{...Ei,opacity:.6},value:n.email,disabled:!0})]}),g.jsx("button",{className:"btn btn-primary",onClick:()=>o.mutate({nome:h}),disabled:o.isPending||!h,children:o.isPending?"salvando...":"salvar nome"}),o.isSuccess&&g.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-400)"},children:"Nome atualizado."})]})]}),g.jsxs("div",{children:[g.jsx("h2",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Trocar senha"}),g.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[g.jsx("input",{className:"w-full rounded px-3 py-2",style:Ei,placeholder:"senha atual",type:"password",value:v,onChange:U=>p(U.target.value)}),g.jsx("input",{className:"w-full rounded px-3 py-2",style:Ei,placeholder:"nova senha (mínimo 8 caracteres)",type:"password",value:T,onChange:U=>j(U.target.value)}),g.jsx("button",{className:"btn btn-primary",onClick:K,disabled:d.isPending||!v||T.length<8,children:d.isPending?"salvando...":"trocar senha"}),N&&g.jsx("p",{className:"text-sm",style:{color:N==="Senha atualizada."?"var(--clr-acento-400)":"#ff8080"},children:N})]})]}),g.jsx("button",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},onClick:()=>s.mutate(),children:"sair da conta"})]}),g.jsx(hl,{})]})}function nx(){const{usuario:n,isLoading:i}=Ia(),{data:s}=ot.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!n}),{data:c}=ot.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!n});return i?null:n?g.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[g.jsx(dl,{}),g.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-10 pb-16 flex-1 w-full",children:[g.jsxs("div",{className:"flex items-center justify-between mb-8",children:[g.jsxs("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl",children:["Olá, ",n.nome.split(" ")[0]]}),g.jsx("a",{href:"/perfil",className:"btn btn-ghost text-sm",style:{padding:"0.5rem 1rem"},children:"meu perfil"})]}),s&&s.length>0&&g.jsxs("section",{className:"mb-14",children:[g.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"continuar lendo"}),g.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2",children:s.map(o=>g.jsxs("a",{href:`/leitor/${o.livroId}`,className:"group block flex-shrink-0 w-28",children:[g.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:g.jsx("img",{src:o.capaUrl||"/media/images/capas/capa-placeholder.svg",alt:o.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),g.jsx("p",{className:"text-xs mt-2 line-clamp-2",style:{color:"var(--clr-branco)"},children:o.titulo})]},o.livroId))})]}),c&&c.length>0?g.jsx(Li,{livros:c.map(o=>({id:o.livroId,titulo:o.titulo,autor:o.autor,capaUrl:o.capaUrl})),titulo:"meus favoritos"}):!s?.length&&g.jsxs("div",{className:"rounded-lg p-10 text-center",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[g.jsx("p",{className:"text-lg mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"Sua estante está vazia por enquanto"}),g.jsx("p",{className:"text-sm mb-4",children:"Favorite um livro ou comece a ler algo pra ele aparecer aqui."}),g.jsx("a",{href:"/",className:"btn btn-primary",style:{padding:"0.6rem 1.5rem"},children:"explorar o catálogo"})]})]}),g.jsx(hl,{})]}):(window.location.href="/entrar",null)}const ux=B.lazy(()=>c0(()=>import("./Leitor-D4PhSI8Y.js"),[]).then(n=>({default:n.Leitor})));function ix(){const[n]=B.useState(()=>new T0);return g.jsx(ot.Provider,{client:wb,queryClient:n,children:g.jsx(D0,{client:n,children:g.jsx(B.Suspense,{fallback:null,children:g.jsxs(mg,{children:[g.jsx(Ze,{path:"/admin",component:$b}),g.jsx(Ze,{path:"/leitor/:id",component:ux}),g.jsx(Ze,{path:"/livro/:id",component:Wb}),g.jsx(Ze,{path:"/serie/:nome",component:tx}),g.jsx(Ze,{path:"/buscar",component:Ib}),g.jsx(Ze,{path:"/entrar",component:ex}),g.jsx(Ze,{path:"/cadastro",component:lx}),g.jsx(Ze,{path:"/perfil",component:ax}),g.jsx(Ze,{path:"/minha-biblioteca",component:nx}),g.jsx(Ze,{path:"/",component:Kb})]})})})})}i0.createRoot(document.getElementById("root")).render(g.jsx(B.StrictMode,{children:g.jsx(ix,{})}));export{fg as a,rx as c,Fp as g,g as j,B as r,ot as t,wc as u};
