function Lp(a,i){for(var s=0;s<i.length;s++){const c=i[s];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(c,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();var Vb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Is={exports:{}},Ka={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Bh;function Xp(){if(Bh)return Ka;Bh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(c,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var v in f)v!=="key"&&(d[v]=f[v])}else d=f;return f=d.ref,{$$typeof:a,type:c,key:h,ref:f!==void 0?f:null,props:d}}return Ka.Fragment=i,Ka.jsx=s,Ka.jsxs=s,Ka}var Yh;function Kp(){return Yh||(Yh=1,Is.exports=Xp()),Is.exports}var _=Kp(),tc={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 Lh;function Zp(){if(Lh)return st;Lh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),C=Symbol.iterator;function Y(b){return b===null||typeof b!="object"?null:(b=C&&b[C]||b["@@iterator"],typeof b=="function"?b:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,$={};function at(b,U,w){this.props=b,this.context=U,this.refs=$,this.updater=w||J}at.prototype.isReactComponent={},at.prototype.setState=function(b,U){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,U,"setState")},at.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function dt(){}dt.prototype=at.prototype;function Tt(b,U,w){this.props=b,this.context=U,this.refs=$,this.updater=w||J}var Qt=Tt.prototype=new dt;Qt.constructor=Tt,N(Qt,at.prototype),Qt.isPureReactComponent=!0;var F=Array.isArray;function X(){}var D={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function G(b,U,w){var B=w.ref;return{$$typeof:a,type:b,key:U,ref:B!==void 0?B:null,props:w}}function et(b,U){return G(b.type,U,b.props)}function I(b){return typeof b=="object"&&b!==null&&b.$$typeof===a}function tt(b){var U={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(w){return U[w]})}var ht=/\/+/g;function it(b,U){return typeof b=="object"&&b!==null&&b.key!=null?tt(""+b.key):U.toString(36)}function ct(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(X,X):(b.status="pending",b.then(function(U){b.status==="pending"&&(b.status="fulfilled",b.value=U)},function(U){b.status==="pending"&&(b.status="rejected",b.reason=U)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function j(b,U,w,B,P){var rt=typeof b;(rt==="undefined"||rt==="boolean")&&(b=null);var St=!1;if(b===null)St=!0;else switch(rt){case"bigint":case"string":case"number":St=!0;break;case"object":switch(b.$$typeof){case a:case i:St=!0;break;case z:return St=b._init,j(St(b._payload),U,w,B,P)}}if(St)return P=P(b),St=B===""?"."+it(b,0):B,F(P)?(w="",St!=null&&(w=St.replace(ht,"$&/")+"/"),j(P,U,w,"",function(Pl){return Pl})):P!=null&&(I(P)&&(P=et(P,w+(P.key==null||b&&b.key===P.key?"":(""+P.key).replace(ht,"$&/")+"/")+St)),U.push(P)),1;St=0;var ae=B===""?".":B+":";if(F(b))for(var Yt=0;Yt<b.length;Yt++)B=b[Yt],rt=ae+it(B,Yt),St+=j(B,U,w,rt,P);else if(Yt=Y(b),typeof Yt=="function")for(b=Yt.call(b),Yt=0;!(B=b.next()).done;)B=B.value,rt=ae+it(B,Yt++),St+=j(B,U,w,rt,P);else if(rt==="object"){if(typeof b.then=="function")return j(ct(b),U,w,B,P);throw U=String(b),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return St}function H(b,U,w){if(b==null)return b;var B=[],P=0;return j(b,B,"","",function(rt){return U.call(w,rt,P++)}),B}function Z(b){if(b._status===-1){var U=b._result;U=U(),U.then(function(w){(b._status===0||b._status===-1)&&(b._status=1,b._result=w)},function(w){(b._status===0||b._status===-1)&&(b._status=2,b._result=w)}),b._status===-1&&(b._status=0,b._result=U)}if(b._status===1)return b._result.default;throw b._result}var ut=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},yt={map:H,forEach:function(b,U,w){H(b,function(){U.apply(this,arguments)},w)},count:function(b){var U=0;return H(b,function(){U++}),U},toArray:function(b){return H(b,function(U){return U})||[]},only:function(b){if(!I(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return st.Activity=O,st.Children=yt,st.Component=at,st.Fragment=s,st.Profiler=f,st.PureComponent=Tt,st.StrictMode=c,st.Suspense=m,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,st.__COMPILER_RUNTIME={__proto__:null,c:function(b){return D.H.useMemoCache(b)}},st.cache=function(b){return function(){return b.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(b,U,w){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var B=N({},b.props),P=b.key;if(U!=null)for(rt in U.key!==void 0&&(P=""+U.key),U)!K.call(U,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&U.ref===void 0||(B[rt]=U[rt]);var rt=arguments.length-2;if(rt===1)B.children=w;else if(1<rt){for(var St=Array(rt),ae=0;ae<rt;ae++)St[ae]=arguments[ae+2];B.children=St}return G(b.type,P,B)},st.createContext=function(b){return b={$$typeof:h,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:d,_context:b},b},st.createElement=function(b,U,w){var B,P={},rt=null;if(U!=null)for(B in U.key!==void 0&&(rt=""+U.key),U)K.call(U,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(P[B]=U[B]);var St=arguments.length-2;if(St===1)P.children=w;else if(1<St){for(var ae=Array(St),Yt=0;Yt<St;Yt++)ae[Yt]=arguments[Yt+2];P.children=ae}if(b&&b.defaultProps)for(B in St=b.defaultProps,St)P[B]===void 0&&(P[B]=St[B]);return G(b,rt,P)},st.createRef=function(){return{current:null}},st.forwardRef=function(b){return{$$typeof:v,render:b}},st.isValidElement=I,st.lazy=function(b){return{$$typeof:z,_payload:{_status:-1,_result:b},_init:Z}},st.memo=function(b,U){return{$$typeof:p,type:b,compare:U===void 0?null:U}},st.startTransition=function(b){var U=D.T,w={};D.T=w;try{var B=b(),P=D.S;P!==null&&P(w,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(X,ut)}catch(rt){ut(rt)}finally{U!==null&&w.types!==null&&(U.types=w.types),D.T=U}},st.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},st.use=function(b){return D.H.use(b)},st.useActionState=function(b,U,w){return D.H.useActionState(b,U,w)},st.useCallback=function(b,U){return D.H.useCallback(b,U)},st.useContext=function(b){return D.H.useContext(b)},st.useDebugValue=function(){},st.useDeferredValue=function(b,U){return D.H.useDeferredValue(b,U)},st.useEffect=function(b,U){return D.H.useEffect(b,U)},st.useEffectEvent=function(b){return D.H.useEffectEvent(b)},st.useId=function(){return D.H.useId()},st.useImperativeHandle=function(b,U,w){return D.H.useImperativeHandle(b,U,w)},st.useInsertionEffect=function(b,U){return D.H.useInsertionEffect(b,U)},st.useLayoutEffect=function(b,U){return D.H.useLayoutEffect(b,U)},st.useMemo=function(b,U){return D.H.useMemo(b,U)},st.useOptimistic=function(b,U){return D.H.useOptimistic(b,U)},st.useReducer=function(b,U,w){return D.H.useReducer(b,U,w)},st.useRef=function(b){return D.H.useRef(b)},st.useState=function(b){return D.H.useState(b)},st.useSyncExternalStore=function(b,U,w){return D.H.useSyncExternalStore(b,U,w)},st.useTransition=function(){return D.H.useTransition()},st.version="19.2.1",st}var Gh;function zi(){return Gh||(Gh=1,tc.exports=Zp()),tc.exports}var L=zi();const Vp=Gp(L),Sy=Lp({__proto__:null,default:Vp},[L]);var ec={exports:{}},Za={},nc={exports:{}},lc={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Xh;function Jp(){return Xh||(Xh=1,(function(a){function i(j,H){var Z=j.length;j.push(H);t:for(;0<Z;){var ut=Z-1>>>1,yt=j[ut];if(0<f(yt,H))j[ut]=H,j[Z]=yt,Z=ut;else break t}}function s(j){return j.length===0?null:j[0]}function c(j){if(j.length===0)return null;var H=j[0],Z=j.pop();if(Z!==H){j[0]=Z;t:for(var ut=0,yt=j.length,b=yt>>>1;ut<b;){var U=2*(ut+1)-1,w=j[U],B=U+1,P=j[B];if(0>f(w,Z))B<yt&&0>f(P,w)?(j[ut]=P,j[B]=Z,ut=B):(j[ut]=w,j[U]=Z,ut=U);else if(B<yt&&0>f(P,Z))j[ut]=P,j[B]=Z,ut=B;else break t}}return H}function f(j,H){var Z=j.sortIndex-H.sortIndex;return Z!==0?Z:j.id-H.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();a.unstable_now=function(){return h.now()-v}}var m=[],p=[],z=1,O=null,C=3,Y=!1,J=!1,N=!1,$=!1,at=typeof setTimeout=="function"?setTimeout:null,dt=typeof clearTimeout=="function"?clearTimeout:null,Tt=typeof setImmediate<"u"?setImmediate:null;function Qt(j){for(var H=s(p);H!==null;){if(H.callback===null)c(p);else if(H.startTime<=j)c(p),H.sortIndex=H.expirationTime,i(m,H);else break;H=s(p)}}function F(j){if(N=!1,Qt(j),!J)if(s(m)!==null)J=!0,X||(X=!0,tt());else{var H=s(p);H!==null&&ct(F,H.startTime-j)}}var X=!1,D=-1,K=5,G=-1;function et(){return $?!0:!(a.unstable_now()-G<K)}function I(){if($=!1,X){var j=a.unstable_now();G=j;var H=!0;try{t:{J=!1,N&&(N=!1,dt(D),D=-1),Y=!0;var Z=C;try{e:{for(Qt(j),O=s(m);O!==null&&!(O.expirationTime>j&&et());){var ut=O.callback;if(typeof ut=="function"){O.callback=null,C=O.priorityLevel;var yt=ut(O.expirationTime<=j);if(j=a.unstable_now(),typeof yt=="function"){O.callback=yt,Qt(j),H=!0;break e}O===s(m)&&c(m),Qt(j)}else c(m);O=s(m)}if(O!==null)H=!0;else{var b=s(p);b!==null&&ct(F,b.startTime-j),H=!1}}break t}finally{O=null,C=Z,Y=!1}H=void 0}}finally{H?tt():X=!1}}}var tt;if(typeof Tt=="function")tt=function(){Tt(I)};else if(typeof MessageChannel<"u"){var ht=new MessageChannel,it=ht.port2;ht.port1.onmessage=I,tt=function(){it.postMessage(null)}}else tt=function(){at(I,0)};function ct(j,H){D=at(function(){j(a.unstable_now())},H)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(j){j.callback=null},a.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<j?Math.floor(1e3/j):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(j){switch(C){case 1:case 2:case 3:var H=3;break;default:H=C}var Z=C;C=H;try{return j()}finally{C=Z}},a.unstable_requestPaint=function(){$=!0},a.unstable_runWithPriority=function(j,H){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var Z=C;C=j;try{return H()}finally{C=Z}},a.unstable_scheduleCallback=function(j,H,Z){var ut=a.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ut+Z:ut):Z=ut,j){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=Z+yt,j={id:z++,callback:H,priorityLevel:j,startTime:Z,expirationTime:yt,sortIndex:-1},Z>ut?(j.sortIndex=Z,i(p,j),s(m)===null&&j===s(p)&&(N?(dt(D),D=-1):N=!0,ct(F,Z-ut))):(j.sortIndex=yt,i(m,j),J||Y||(J=!0,X||(X=!0,tt()))),j},a.unstable_shouldYield=et,a.unstable_wrapCallback=function(j){var H=C;return function(){var Z=C;C=H;try{return j.apply(this,arguments)}finally{C=Z}}}})(lc)),lc}var Kh;function kp(){return Kh||(Kh=1,nc.exports=Jp()),nc.exports}var ac={exports:{}},ne={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zh;function Fp(){if(Zh)return ne;Zh=1;var a=zi();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)p+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(m,p,z){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:O==null?null:""+O,children:m,containerInfo:p,implementation:z}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ne.createPortal=function(m,p){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(m,p,null,z)},ne.flushSync=function(m){var p=h.T,z=c.p;try{if(h.T=null,c.p=2,m)return m()}finally{h.T=p,c.p=z,c.d.f()}},ne.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(m,p))},ne.prefetchDNS=function(m){typeof m=="string"&&c.d.D(m)},ne.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var z=p.as,O=v(z,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,Y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;z==="style"?c.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:O,integrity:C,fetchPriority:Y}):z==="script"&&c.d.X(m,{crossOrigin:O,integrity:C,fetchPriority:Y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ne.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var z=v(p.as,p.crossOrigin);c.d.M(m,{crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(m)},ne.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var z=p.as,O=v(z,p.crossOrigin);c.d.L(m,z,{crossOrigin:O,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ne.preloadModule=function(m,p){if(typeof m=="string")if(p){var z=v(p.as,p.crossOrigin);c.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(m)},ne.requestFormReset=function(m){c.d.r(m)},ne.unstable_batchedUpdates=function(m,p){return m(p)},ne.useFormState=function(m,p,z){return h.H.useFormState(m,p,z)},ne.useFormStatus=function(){return h.H.useHostTransitionStatus()},ne.version="19.2.1",ne}var Vh;function $p(){if(Vh)return ac.exports;Vh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ac.exports=Fp(),ac.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Jh;function Pp(){if(Jh)return Za;Jh=1;var a=kp(),i=zi(),s=$p();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(d(t)!==t)throw Error(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 n=t,l=e;;){var u=n.return;if(u===null)break;var r=u.alternate;if(r===null){if(l=u.return,l!==null){n=l;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===n)return m(u),t;if(r===l)return m(u),e;r=r.sibling}throw Error(c(188))}if(n.return!==l.return)n=u,l=r;else{for(var o=!1,y=u.child;y;){if(y===n){o=!0,n=u,l=r;break}if(y===l){o=!0,l=u,n=r;break}y=y.sibling}if(!o){for(y=r.child;y;){if(y===n){o=!0,n=r,l=u;break}if(y===l){o=!0,l=r,n=u;break}y=y.sibling}if(!o)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function z(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=z(t),e!==null)return e;t=t.sibling}return null}var O=Object.assign,C=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),at=Symbol.for("react.profiler"),dt=Symbol.for("react.consumer"),Tt=Symbol.for("react.context"),Qt=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var ht=Symbol.for("react.client.reference");function it(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ht?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case at:return"Profiler";case $:return"StrictMode";case F:return"Suspense";case X:return"SuspenseList";case G:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case J:return"Portal";case Tt:return t.displayName||"Context";case dt:return(t._context.displayName||"Context")+".Consumer";case Qt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case D:return e=t.displayName||null,e!==null?e:it(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return it(t(e))}catch{}}return null}var ct=Array.isArray,j=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ut=[],yt=-1;function b(t){return{current:t}}function U(t){0>yt||(t.current=ut[yt],ut[yt]=null,yt--)}function w(t,e){yt++,ut[yt]=t.current,t.current=e}var B=b(null),P=b(null),rt=b(null),St=b(null);function ae(t,e){switch(w(rt,e),w(P,t),w(B,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?sh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=sh(e),t=ch(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(B),w(B,t)}function Yt(){U(B),U(P),U(rt)}function Pl(t){t.memoizedState!==null&&w(St,t);var e=B.current,n=ch(e,t.type);e!==n&&(w(P,t),w(B,n))}function Ia(t){P.current===t&&(U(B),U(P)),St.current===t&&(U(St),Ya._currentValue=Z)}var Qi,Nc;function Bn(t){if(Qi===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Qi=e&&e[1]||"",Nc=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Qi+t+Nc}var Ni=!1;function Hi(t,e){if(!t||Ni)return"";Ni=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(M){var A=M}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(M){A=M}t.call(Q.prototype)}}else{try{throw Error()}catch(M){A=M}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(M){if(M&&A&&typeof M.stack=="string")return[M.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),o=r[0],y=r[1];if(o&&y){var g=o.split(`
`),T=y.split(`
`);for(u=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;if(l===g.length||u===T.length)for(l=g.length-1,u=T.length-1;1<=l&&0<=u&&g[l]!==T[u];)u--;for(;1<=l&&0<=u;l--,u--)if(g[l]!==T[u]){if(l!==1||u!==1)do if(l--,u--,0>u||g[l]!==T[u]){var R=`
`+g[l].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=l&&0<=u);break}}}finally{Ni=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Bn(n):""}function gv(t,e){switch(t.tag){case 26:case 27:case 5:return Bn(t.type);case 16:return Bn("Lazy");case 13:return t.child!==e&&e!==null?Bn("Suspense Fallback"):Bn("Suspense");case 19:return Bn("SuspenseList");case 0:case 15:return Hi(t.type,!1);case 11:return Hi(t.type.render,!1);case 1:return Hi(t.type,!0);case 31:return Bn("Activity");default:return""}}function Hc(t){try{var e="",n=null;do e+=gv(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var wi=Object.prototype.hasOwnProperty,Bi=a.unstable_scheduleCallback,Yi=a.unstable_cancelCallback,bv=a.unstable_shouldYield,Sv=a.unstable_requestPaint,ye=a.unstable_now,xv=a.unstable_getCurrentPriorityLevel,wc=a.unstable_ImmediatePriority,Bc=a.unstable_UserBlockingPriority,tu=a.unstable_NormalPriority,Ov=a.unstable_LowPriority,Yc=a.unstable_IdlePriority,_v=a.log,Ev=a.unstable_setDisableYieldValue,Wl=null,ve=null;function fn(t){if(typeof _v=="function"&&Ev(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(Wl,t)}catch{}}var me=Math.clz32?Math.clz32:Av,Tv=Math.log,jv=Math.LN2;function Av(t){return t>>>=0,t===0?32:31-(Tv(t)/jv|0)|0}var eu=256,nu=262144,lu=4194304;function Yn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function au(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var u=0,r=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var y=l&134217727;return y!==0?(l=y&~r,l!==0?u=Yn(l):(o&=y,o!==0?u=Yn(o):n||(n=y&~t,n!==0&&(u=Yn(n))))):(y=l&~r,y!==0?u=Yn(y):o!==0?u=Yn(o):n||(n=l&~t,n!==0&&(u=Yn(n)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:u}function Il(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function zv(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 Lc(){var t=lu;return lu<<=1,(lu&62914560)===0&&(lu=4194304),t}function Li(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ta(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Cv(t,e,n,l,u,r){var o=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,g=t.expirationTimes,T=t.hiddenUpdates;for(n=o&~n;0<n;){var R=31-me(n),Q=1<<R;y[R]=0,g[R]=-1;var A=T[R];if(A!==null)for(T[R]=null,R=0;R<A.length;R++){var M=A[R];M!==null&&(M.lane&=-536870913)}n&=~Q}l!==0&&Gc(t,l,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(o&~e))}function Gc(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-me(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Xc(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-me(n),u=1<<l;u&e|t[l]&e&&(t[l]|=e),n&=~u}}function Kc(t,e){var n=e&-e;return n=(n&42)!==0?1:Gi(n),(n&(t.suspendedLanes|e))!==0?0:n}function Gi(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 Xi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Zc(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Rh(t.type))}function Vc(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var dn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+dn,re="__reactProps$"+dn,ol="__reactContainer$"+dn,Ki="__reactEvents$"+dn,Mv="__reactListeners$"+dn,Dv="__reactHandles$"+dn,Jc="__reactResources$"+dn,ea="__reactMarker$"+dn;function Zi(t){delete t[Pt],delete t[re],delete t[Ki],delete t[Mv],delete t[Dv]}function fl(t){var e=t[Pt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ol]||n[Pt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=mh(t);t!==null;){if(n=t[Pt])return n;t=mh(t)}return e}t=n,n=t.parentNode}return null}function dl(t){if(t=t[Pt]||t[ol]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function na(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function hl(t){var e=t[Jc];return e||(e=t[Jc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[ea]=!0}var kc=new Set,Fc={};function Ln(t,e){yl(t,e),yl(t+"Capture",e)}function yl(t,e){for(Fc[t]=e,t=0;t<e.length;t++)kc.add(e[t])}var Rv=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$c={},Pc={};function Uv(t){return wi.call(Pc,t)?!0:wi.call($c,t)?!1:Rv.test(t)?Pc[t]=!0:($c[t]=!0,!1)}function uu(t,e,n){if(Uv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function iu(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Ve(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Wc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function qv(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,r=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(o){n=""+o,r.call(this,o)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vi(t){if(!t._valueTracker){var e=Wc(t)?"checked":"value";t._valueTracker=qv(t,e,""+t[e])}}function Ic(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Wc(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function ru(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 Qv=/[\n"\\]/g;function je(t){return t.replace(Qv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ji(t,e,n,l,u,r,o,y){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?ki(t,o,Te(e)):n!=null?ki(t,o,Te(n)):l!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Te(y):t.removeAttribute("name")}function to(t,e,n,l,u,r,o,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Vi(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=y?t.checked:!!l,t.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Vi(t)}function ki(t,e,n){e==="number"&&ru(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function vl(t,e,n,l){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Te(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function eo(t,e,n){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Te(n):""}function no(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(c(92));if(ct(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Vi(t)}function ml(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Nv=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 lo(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Nv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function ao(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&n[u]!==l&&lo(t,u,l)}else for(var r in e)e.hasOwnProperty(r)&&lo(t,r,e[r])}function Fi(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 Hv=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"]]),wv=/^[\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 su(t){return wv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Je(){}var $i=null;function Pi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var pl=null,gl=null;function uo(t){var e=dl(t);if(e&&(t=e.stateNode)){var n=t[re]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ji(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+je(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var u=l[re]||null;if(!u)throw Error(c(90));Ji(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Ic(l)}break t;case"textarea":eo(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&vl(t,!!n.multiple,e,!1)}}}var Wi=!1;function io(t,e,n){if(Wi)return t(e,n);Wi=!0;try{var l=t(e);return l}finally{if(Wi=!1,(pl!==null||gl!==null)&&(Fu(),pl&&(e=pl,t=gl,gl=pl=null,uo(e),t)))for(e=0;e<t.length;e++)uo(t[e])}}function la(t,e){var n=t.stateNode;if(n===null)return null;var l=n[re]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(c(231,e,typeof n));return n}var ke=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ii=!1;if(ke)try{var aa={};Object.defineProperty(aa,"passive",{get:function(){Ii=!0}}),window.addEventListener("test",aa,aa),window.removeEventListener("test",aa,aa)}catch{Ii=!1}var hn=null,tr=null,cu=null;function ro(){if(cu)return cu;var t,e=tr,n=e.length,l,u="value"in hn?hn.value:hn.textContent,r=u.length;for(t=0;t<n&&e[t]===u[t];t++);var o=n-t;for(l=1;l<=o&&e[n-l]===u[r-l];l++);return cu=u.slice(t,1<l?1-l:void 0)}function ou(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 fu(){return!0}function so(){return!1}function se(t){function e(n,l,u,r,o){this._reactName=n,this._targetInst=u,this.type=l,this.nativeEvent=r,this.target=o,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?fu:so,this.isPropagationStopped=so,this}return O(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fu)},persist:function(){},isPersistent:fu}),e}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=se(Gn),ua=O({},Gn,{view:0,detail:0}),Bv=se(ua),er,nr,ia,hu=O({},ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,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!==ia&&(ia&&t.type==="mousemove"?(er=t.screenX-ia.screenX,nr=t.screenY-ia.screenY):nr=er=0,ia=t),er)},movementY:function(t){return"movementY"in t?t.movementY:nr}}),co=se(hu),Yv=O({},hu,{dataTransfer:0}),Lv=se(Yv),Gv=O({},ua,{relatedTarget:0}),lr=se(Gv),Xv=O({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Kv=se(Xv),Zv=O({},Gn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Vv=se(Zv),Jv=O({},Gn,{data:0}),oo=se(Jv),kv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fv={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"},$v={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=$v[t])?!!e[t]:!1}function ar(){return Pv}var Wv=O({},ua,{key:function(t){if(t.key){var e=kv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ou(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Fv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,charCode:function(t){return t.type==="keypress"?ou(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ou(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Iv=se(Wv),tm=O({},hu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fo=se(tm),em=O({},ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar}),nm=se(em),lm=O({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),am=se(lm),um=O({},hu,{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}),im=se(um),rm=O({},Gn,{newState:0,oldState:0}),sm=se(rm),cm=[9,13,27,32],ur=ke&&"CompositionEvent"in window,ra=null;ke&&"documentMode"in document&&(ra=document.documentMode);var om=ke&&"TextEvent"in window&&!ra,ho=ke&&(!ur||ra&&8<ra&&11>=ra),yo=" ",vo=!1;function mo(t,e){switch(t){case"keyup":return cm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function po(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var bl=!1;function fm(t,e){switch(t){case"compositionend":return po(e);case"keypress":return e.which!==32?null:(vo=!0,yo);case"textInput":return t=e.data,t===yo&&vo?null:t;default:return null}}function dm(t,e){if(bl)return t==="compositionend"||!ur&&mo(t,e)?(t=ro(),cu=tr=hn=null,bl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ho&&e.locale!=="ko"?null:e.data;default:return null}}var hm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function go(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!hm[t.type]:e==="textarea"}function bo(t,e,n,l){pl?gl?gl.push(l):gl=[l]:pl=l,e=ni(e,"onChange"),0<e.length&&(n=new du("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var sa=null,ca=null;function ym(t){nh(t,0)}function yu(t){var e=na(t);if(Ic(e))return t}function So(t,e){if(t==="change")return e}var xo=!1;if(ke){var ir;if(ke){var rr="oninput"in document;if(!rr){var Oo=document.createElement("div");Oo.setAttribute("oninput","return;"),rr=typeof Oo.oninput=="function"}ir=rr}else ir=!1;xo=ir&&(!document.documentMode||9<document.documentMode)}function _o(){sa&&(sa.detachEvent("onpropertychange",Eo),ca=sa=null)}function Eo(t){if(t.propertyName==="value"&&yu(ca)){var e=[];bo(e,ca,t,Pi(t)),io(ym,e)}}function vm(t,e,n){t==="focusin"?(_o(),sa=e,ca=n,sa.attachEvent("onpropertychange",Eo)):t==="focusout"&&_o()}function mm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return yu(ca)}function pm(t,e){if(t==="click")return yu(e)}function gm(t,e){if(t==="input"||t==="change")return yu(e)}function bm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:bm;function oa(t,e){if(pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var u=n[l];if(!wi.call(e,u)||!pe(t[u],e[u]))return!1}return!0}function To(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function jo(t,e){var n=To(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=To(n)}}function Ao(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ao(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function zo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ru(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ru(t.document)}return e}function sr(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 Sm=ke&&"documentMode"in document&&11>=document.documentMode,Sl=null,cr=null,fa=null,or=!1;function Co(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;or||Sl==null||Sl!==ru(l)||(l=Sl,"selectionStart"in l&&sr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),fa&&oa(fa,l)||(fa=l,l=ni(cr,"onSelect"),0<l.length&&(e=new du("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Sl)))}function Xn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var xl={animationend:Xn("Animation","AnimationEnd"),animationiteration:Xn("Animation","AnimationIteration"),animationstart:Xn("Animation","AnimationStart"),transitionrun:Xn("Transition","TransitionRun"),transitionstart:Xn("Transition","TransitionStart"),transitioncancel:Xn("Transition","TransitionCancel"),transitionend:Xn("Transition","TransitionEnd")},fr={},Mo={};ke&&(Mo=document.createElement("div").style,"AnimationEvent"in window||(delete xl.animationend.animation,delete xl.animationiteration.animation,delete xl.animationstart.animation),"TransitionEvent"in window||delete xl.transitionend.transition);function Kn(t){if(fr[t])return fr[t];if(!xl[t])return t;var e=xl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Mo)return fr[t]=e[n];return t}var Do=Kn("animationend"),Ro=Kn("animationiteration"),Uo=Kn("animationstart"),xm=Kn("transitionrun"),Om=Kn("transitionstart"),_m=Kn("transitioncancel"),qo=Kn("transitionend"),Qo=new Map,dr="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(" ");dr.push("scrollEnd");function Qe(t,e){Qo.set(t,e),Ln(e,[t])}var vu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],Ol=0,hr=0;function mu(){for(var t=Ol,e=hr=Ol=0;e<t;){var n=Ae[e];Ae[e++]=null;var l=Ae[e];Ae[e++]=null;var u=Ae[e];Ae[e++]=null;var r=Ae[e];if(Ae[e++]=null,l!==null&&u!==null){var o=l.pending;o===null?u.next=u:(u.next=o.next,o.next=u),l.pending=u}r!==0&&No(n,u,r)}}function pu(t,e,n,l){Ae[Ol++]=t,Ae[Ol++]=e,Ae[Ol++]=n,Ae[Ol++]=l,hr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function yr(t,e,n,l){return pu(t,e,n,l),gu(t)}function Zn(t,e){return pu(t,null,null,e),gu(t)}function No(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var u=!1,r=t.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(u=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,u&&e!==null&&(u=31-me(n),t=r.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=n|536870912),r):null}function gu(t){if(50<Ua)throw Ua=0,_s=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var _l={};function Em(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ge(t,e,n,l){return new Em(t,e,n,l)}function vr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Fe(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Ho(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function bu(t,e,n,l,u,r){var o=0;if(l=t,typeof t=="function")vr(t)&&(o=1);else if(typeof t=="string")o=Cp(t,n,B.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case G:return t=ge(31,n,e,u),t.elementType=G,t.lanes=r,t;case N:return Vn(n.children,u,r,e);case $:o=8,u|=24;break;case at:return t=ge(12,n,e,u|2),t.elementType=at,t.lanes=r,t;case F:return t=ge(13,n,e,u),t.elementType=F,t.lanes=r,t;case X:return t=ge(19,n,e,u),t.elementType=X,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Tt:o=10;break t;case dt:o=9;break t;case Qt:o=11;break t;case D:o=14;break t;case K:o=16,l=null;break t}o=29,n=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=ge(o,n,e,u),e.elementType=t,e.type=l,e.lanes=r,e}function Vn(t,e,n,l){return t=ge(7,t,l,e),t.lanes=n,t}function mr(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function wo(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function pr(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Bo=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var n=Bo.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Hc(e)},Bo.set(t,e),e)}return{value:t,source:e,stack:Hc(e)}}var El=[],Tl=0,Su=null,da=0,Ce=[],Me=0,yn=null,Ye=1,Le="";function $e(t,e){El[Tl++]=da,El[Tl++]=Su,Su=t,da=e}function Yo(t,e,n){Ce[Me++]=Ye,Ce[Me++]=Le,Ce[Me++]=yn,yn=t;var l=Ye;t=Le;var u=32-me(l)-1;l&=~(1<<u),n+=1;var r=32-me(e)+u;if(30<r){var o=u-u%5;r=(l&(1<<o)-1).toString(32),l>>=o,u-=o,Ye=1<<32-me(e)+u|n<<u|l,Le=r+t}else Ye=1<<r|n<<u|l,Le=t}function gr(t){t.return!==null&&($e(t,1),Yo(t,1,0))}function br(t){for(;t===Su;)Su=El[--Tl],El[Tl]=null,da=El[--Tl],El[Tl]=null;for(;t===yn;)yn=Ce[--Me],Ce[Me]=null,Le=Ce[--Me],Ce[Me]=null,Ye=Ce[--Me],Ce[Me]=null}function Lo(t,e){Ce[Me++]=Ye,Ce[Me++]=Le,Ce[Me++]=yn,Ye=e.id,Le=e.overflow,yn=t}var Wt=null,Ut=null,bt=!1,vn=null,De=!1,Sr=Error(c(519));function mn(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ha(ze(e,t)),Sr}function Go(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Pt]=t,e[re]=l,n){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(n=0;n<Qa.length;n++)mt(Qa[n],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),to(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),no(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||ih(e.textContent,n)?(l.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),l.onScroll!=null&&mt("scroll",e),l.onScrollEnd!=null&&mt("scrollend",e),l.onClick!=null&&(e.onclick=Je),e=!0):e=!1,e||mn(t,!0)}function Xo(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:Wt=Wt.return}}function jl(t){if(t!==Wt)return!1;if(!bt)return Xo(t),bt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ws(t.type,t.memoizedProps)),n=!n),n&&Ut&&mn(t),Xo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ut=vh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ut=vh(t)}else e===27?(e=Ut,Mn(t.type)?(t=Xs,Xs=null,Ut=t):Ut=e):Ut=Wt?Ue(t.stateNode.nextSibling):null;return!0}function Jn(){Ut=Wt=null,bt=!1}function xr(){var t=vn;return t!==null&&(de===null?de=t:de.push.apply(de,t),vn=null),t}function ha(t){vn===null?vn=[t]:vn.push(t)}var Or=b(null),kn=null,Pe=null;function pn(t,e,n){w(Or,e._currentValue),e._currentValue=n}function We(t){t._currentValue=Or.current,U(Or)}function _r(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function Er(t,e,n,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var r=u.dependencies;if(r!==null){var o=u.child;r=r.firstContext;t:for(;r!==null;){var y=r;r=u;for(var g=0;g<e.length;g++)if(y.context===e[g]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),_r(r.return,n,t),l||(o=null);break t}r=y.next}}else if(u.tag===18){if(o=u.return,o===null)throw Error(c(341));o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),_r(o,n,t),o=null}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}}function Al(t,e,n,l){t=null;for(var u=e,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var o=u.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var y=u.type;pe(u.pendingProps.value,o.value)||(t!==null?t.push(y):t=[y])}}else if(u===St.current){if(o=u.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Ya):t=[Ya])}u=u.return}t!==null&&Er(e,t,n,l),e.flags|=262144}function xu(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Fn(t){kn=t,Pe=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Ko(kn,t)}function Ou(t,e){return kn===null&&Fn(t),Ko(t,e)}function Ko(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Pe===null){if(t===null)throw Error(c(308));Pe=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Pe=Pe.next=e;return n}var Tm=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},jm=a.unstable_scheduleCallback,Am=a.unstable_NormalPriority,Kt={$$typeof:Tt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tr(){return{controller:new Tm,data:new Map,refCount:0}}function ya(t){t.refCount--,t.refCount===0&&jm(Am,function(){t.controller.abort()})}var va=null,jr=0,zl=0,Cl=null;function zm(t,e){if(va===null){var n=va=[];jr=0,zl=Cs(),Cl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return jr++,e.then(Zo,Zo),e}function Zo(){if(--jr===0&&va!==null){Cl!==null&&(Cl.status="fulfilled");var t=va;va=null,zl=0,Cl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Cm(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),l}var Vo=j.S;j.S=function(t,e){Md=ye(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&zm(t,e),Vo!==null&&Vo(t,e)};var $n=b(null);function Ar(){var t=$n.current;return t!==null?t:Dt.pooledCache}function _u(t,e){e===null?w($n,$n.current):w($n,e.pool)}function Jo(){var t=Ar();return t===null?null:{parent:Kt._currentValue,pool:t}}var Ml=Error(c(460)),zr=Error(c(474)),Eu=Error(c(542)),Tu={then:function(){}};function ko(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Fo(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Je,Je),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Po(t),t;default:if(typeof e.status=="string")e.then(Je,Je);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Po(t),t}throw Wn=e,Ml}}function Pn(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Wn=n,Ml):n}}var Wn=null;function $o(){if(Wn===null)throw Error(c(459));var t=Wn;return Wn=null,t}function Po(t){if(t===Ml||t===Eu)throw Error(c(483))}var Dl=null,ma=0;function ju(t){var e=ma;return ma+=1,Dl===null&&(Dl=[]),Fo(Dl,t,e)}function pa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Au(t,e){throw e.$$typeof===C?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Wo(t){function e(x,S){if(t){var E=x.deletions;E===null?(x.deletions=[S],x.flags|=16):E.push(S)}}function n(x,S){if(!t)return null;for(;S!==null;)e(x,S),S=S.sibling;return null}function l(x){for(var S=new Map;x!==null;)x.key!==null?S.set(x.key,x):S.set(x.index,x),x=x.sibling;return S}function u(x,S){return x=Fe(x,S),x.index=0,x.sibling=null,x}function r(x,S,E){return x.index=E,t?(E=x.alternate,E!==null?(E=E.index,E<S?(x.flags|=67108866,S):E):(x.flags|=67108866,S)):(x.flags|=1048576,S)}function o(x){return t&&x.alternate===null&&(x.flags|=67108866),x}function y(x,S,E,q){return S===null||S.tag!==6?(S=mr(E,x.mode,q),S.return=x,S):(S=u(S,E),S.return=x,S)}function g(x,S,E,q){var nt=E.type;return nt===N?R(x,S,E.props.children,q,E.key):S!==null&&(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===K&&Pn(nt)===S.type)?(S=u(S,E.props),pa(S,E),S.return=x,S):(S=bu(E.type,E.key,E.props,null,x.mode,q),pa(S,E),S.return=x,S)}function T(x,S,E,q){return S===null||S.tag!==4||S.stateNode.containerInfo!==E.containerInfo||S.stateNode.implementation!==E.implementation?(S=pr(E,x.mode,q),S.return=x,S):(S=u(S,E.children||[]),S.return=x,S)}function R(x,S,E,q,nt){return S===null||S.tag!==7?(S=Vn(E,x.mode,q,nt),S.return=x,S):(S=u(S,E),S.return=x,S)}function Q(x,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=mr(""+S,x.mode,E),S.return=x,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Y:return E=bu(S.type,S.key,S.props,null,x.mode,E),pa(E,S),E.return=x,E;case J:return S=pr(S,x.mode,E),S.return=x,S;case K:return S=Pn(S),Q(x,S,E)}if(ct(S)||tt(S))return S=Vn(S,x.mode,E,null),S.return=x,S;if(typeof S.then=="function")return Q(x,ju(S),E);if(S.$$typeof===Tt)return Q(x,Ou(x,S),E);Au(x,S)}return null}function A(x,S,E,q){var nt=S!==null?S.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return nt!==null?null:y(x,S,""+E,q);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:return E.key===nt?g(x,S,E,q):null;case J:return E.key===nt?T(x,S,E,q):null;case K:return E=Pn(E),A(x,S,E,q)}if(ct(E)||tt(E))return nt!==null?null:R(x,S,E,q,null);if(typeof E.then=="function")return A(x,S,ju(E),q);if(E.$$typeof===Tt)return A(x,S,Ou(x,E),q);Au(x,E)}return null}function M(x,S,E,q,nt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return x=x.get(E)||null,y(S,x,""+q,nt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Y:return x=x.get(q.key===null?E:q.key)||null,g(S,x,q,nt);case J:return x=x.get(q.key===null?E:q.key)||null,T(S,x,q,nt);case K:return q=Pn(q),M(x,S,E,q,nt)}if(ct(q)||tt(q))return x=x.get(E)||null,R(S,x,q,nt,null);if(typeof q.then=="function")return M(x,S,E,ju(q),nt);if(q.$$typeof===Tt)return M(x,S,E,Ou(S,q),nt);Au(S,q)}return null}function k(x,S,E,q){for(var nt=null,xt=null,W=S,ft=S=0,gt=null;W!==null&&ft<E.length;ft++){W.index>ft?(gt=W,W=null):gt=W.sibling;var Ot=A(x,W,E[ft],q);if(Ot===null){W===null&&(W=gt);break}t&&W&&Ot.alternate===null&&e(x,W),S=r(Ot,S,ft),xt===null?nt=Ot:xt.sibling=Ot,xt=Ot,W=gt}if(ft===E.length)return n(x,W),bt&&$e(x,ft),nt;if(W===null){for(;ft<E.length;ft++)W=Q(x,E[ft],q),W!==null&&(S=r(W,S,ft),xt===null?nt=W:xt.sibling=W,xt=W);return bt&&$e(x,ft),nt}for(W=l(W);ft<E.length;ft++)gt=M(W,x,ft,E[ft],q),gt!==null&&(t&&gt.alternate!==null&&W.delete(gt.key===null?ft:gt.key),S=r(gt,S,ft),xt===null?nt=gt:xt.sibling=gt,xt=gt);return t&&W.forEach(function(Qn){return e(x,Qn)}),bt&&$e(x,ft),nt}function lt(x,S,E,q){if(E==null)throw Error(c(151));for(var nt=null,xt=null,W=S,ft=S=0,gt=null,Ot=E.next();W!==null&&!Ot.done;ft++,Ot=E.next()){W.index>ft?(gt=W,W=null):gt=W.sibling;var Qn=A(x,W,Ot.value,q);if(Qn===null){W===null&&(W=gt);break}t&&W&&Qn.alternate===null&&e(x,W),S=r(Qn,S,ft),xt===null?nt=Qn:xt.sibling=Qn,xt=Qn,W=gt}if(Ot.done)return n(x,W),bt&&$e(x,ft),nt;if(W===null){for(;!Ot.done;ft++,Ot=E.next())Ot=Q(x,Ot.value,q),Ot!==null&&(S=r(Ot,S,ft),xt===null?nt=Ot:xt.sibling=Ot,xt=Ot);return bt&&$e(x,ft),nt}for(W=l(W);!Ot.done;ft++,Ot=E.next())Ot=M(W,x,ft,Ot.value,q),Ot!==null&&(t&&Ot.alternate!==null&&W.delete(Ot.key===null?ft:Ot.key),S=r(Ot,S,ft),xt===null?nt=Ot:xt.sibling=Ot,xt=Ot);return t&&W.forEach(function(Yp){return e(x,Yp)}),bt&&$e(x,ft),nt}function Mt(x,S,E,q){if(typeof E=="object"&&E!==null&&E.type===N&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:t:{for(var nt=E.key;S!==null;){if(S.key===nt){if(nt=E.type,nt===N){if(S.tag===7){n(x,S.sibling),q=u(S,E.props.children),q.return=x,x=q;break t}}else if(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===K&&Pn(nt)===S.type){n(x,S.sibling),q=u(S,E.props),pa(q,E),q.return=x,x=q;break t}n(x,S);break}else e(x,S);S=S.sibling}E.type===N?(q=Vn(E.props.children,x.mode,q,E.key),q.return=x,x=q):(q=bu(E.type,E.key,E.props,null,x.mode,q),pa(q,E),q.return=x,x=q)}return o(x);case J:t:{for(nt=E.key;S!==null;){if(S.key===nt)if(S.tag===4&&S.stateNode.containerInfo===E.containerInfo&&S.stateNode.implementation===E.implementation){n(x,S.sibling),q=u(S,E.children||[]),q.return=x,x=q;break t}else{n(x,S);break}else e(x,S);S=S.sibling}q=pr(E,x.mode,q),q.return=x,x=q}return o(x);case K:return E=Pn(E),Mt(x,S,E,q)}if(ct(E))return k(x,S,E,q);if(tt(E)){if(nt=tt(E),typeof nt!="function")throw Error(c(150));return E=nt.call(E),lt(x,S,E,q)}if(typeof E.then=="function")return Mt(x,S,ju(E),q);if(E.$$typeof===Tt)return Mt(x,S,Ou(x,E),q);Au(x,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,S!==null&&S.tag===6?(n(x,S.sibling),q=u(S,E),q.return=x,x=q):(n(x,S),q=mr(E,x.mode,q),q.return=x,x=q),o(x)):n(x,S)}return function(x,S,E,q){try{ma=0;var nt=Mt(x,S,E,q);return Dl=null,nt}catch(W){if(W===Ml||W===Eu)throw W;var xt=ge(29,W,null,x.mode);return xt.lanes=q,xt.return=x,xt}finally{}}}var In=Wo(!0),Io=Wo(!1),gn=!1;function Cr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function bn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=gu(t),No(t,null,n),e}return pu(t,l,e,n),gu(t)}function ga(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Xc(t,n)}}function Dr(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var u=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=o:r=r.next=o,n=n.next}while(n!==null);r===null?u=r=e:r=r.next=e}else u=r=e;n={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Rr=!1;function ba(){if(Rr){var t=Cl;if(t!==null)throw t}}function Sa(t,e,n,l){Rr=!1;var u=t.updateQueue;gn=!1;var r=u.firstBaseUpdate,o=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var g=y,T=g.next;g.next=null,o===null?r=T:o.next=T,o=g;var R=t.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==o&&(y===null?R.firstBaseUpdate=T:y.next=T,R.lastBaseUpdate=g))}if(r!==null){var Q=u.baseState;o=0,R=T=g=null,y=r;do{var A=y.lane&-536870913,M=A!==y.lane;if(M?(pt&A)===A:(l&A)===A){A!==0&&A===zl&&(Rr=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var k=t,lt=y;A=e;var Mt=n;switch(lt.tag){case 1:if(k=lt.payload,typeof k=="function"){Q=k.call(Mt,Q,A);break t}Q=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=lt.payload,A=typeof k=="function"?k.call(Mt,Q,A):k,A==null)break t;Q=O({},Q,A);break t;case 2:gn=!0}}A=y.callback,A!==null&&(t.flags|=64,M&&(t.flags|=8192),M=u.callbacks,M===null?u.callbacks=[A]:M.push(A))}else M={lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(T=R=M,g=Q):R=R.next=M,o|=A;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;M=y,y=M.next,M.next=null,u.lastBaseUpdate=M,u.shared.pending=null}}while(!0);R===null&&(g=Q),u.baseState=g,u.firstBaseUpdate=T,u.lastBaseUpdate=R,r===null&&(u.shared.lanes=0),Tn|=o,t.lanes=o,t.memoizedState=Q}}function tf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function ef(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)tf(n[t],e)}var Rl=b(null),zu=b(0);function nf(t,e){t=sn,w(zu,t),w(Rl,e),sn=t|e.baseLanes}function Ur(){w(zu,sn),w(Rl,Rl.current)}function qr(){sn=zu.current,U(Rl),U(zu)}var be=b(null),Re=null;function xn(t){var e=t.alternate;w(Lt,Lt.current&1),w(be,t),Re===null&&(e===null||Rl.current!==null||e.memoizedState!==null)&&(Re=t)}function Qr(t){w(Lt,Lt.current),w(be,t),Re===null&&(Re=t)}function lf(t){t.tag===22?(w(Lt,Lt.current),w(be,t),Re===null&&(Re=t)):On()}function On(){w(Lt,Lt.current),w(be,be.current)}function Se(t){U(be),Re===t&&(Re=null),U(Lt)}var Lt=b(0);function Cu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ls(n)||Gs(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ie=0,ot=null,zt=null,Zt=null,Mu=!1,Ul=!1,tl=!1,Du=0,xa=0,ql=null,Mm=0;function Ht(){throw Error(c(321))}function Nr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pe(t[n],e[n]))return!1;return!0}function Hr(t,e,n,l,u,r){return Ie=r,ot=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,j.H=t===null||t.memoizedState===null?Lf:Wr,tl=!1,r=n(l,u),tl=!1,Ul&&(r=uf(e,n,l,u)),af(t),r}function af(t){j.H=Ea;var e=zt!==null&&zt.next!==null;if(Ie=0,Zt=zt=ot=null,Mu=!1,xa=0,ql=null,e)throw Error(c(300));t===null||Vt||(t=t.dependencies,t!==null&&xu(t)&&(Vt=!0))}function uf(t,e,n,l){ot=t;var u=0;do{if(Ul&&(ql=null),xa=0,Ul=!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)}j.H=Gf,r=e(n,l)}while(Ul);return r}function Dm(){var t=j.H,e=t.useState()[0];return e=typeof e.then=="function"?Oa(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(ot.flags|=1024),e}function wr(){var t=Du!==0;return Du=0,t}function Br(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Yr(t){if(Mu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Mu=!1}Ie=0,Zt=zt=ot=null,Ul=!1,xa=Du=0,ql=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ot.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Gt(){if(zt===null){var t=ot.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Zt===null?ot.memoizedState:Zt.next;if(e!==null)Zt=e,zt=t;else{if(t===null)throw ot.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?ot.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Ru(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oa(t){var e=xa;return xa+=1,ql===null&&(ql=[]),t=Fo(ql,t,e),e=ot,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,j.H=e===null||e.memoizedState===null?Lf:Wr),t}function Uu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Oa(t);if(t.$$typeof===Tt)return It(t)}throw Error(c(438,String(t)))}function Lr(t){var e=null,n=ot.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ot.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ru(),ot.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=et;return e.index++,n}function tn(t,e){return typeof e=="function"?e(t):e}function qu(t){var e=Gt();return Gr(e,zt,t)}function Gr(t,e,n){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var u=t.baseQueue,r=l.pending;if(r!==null){if(u!==null){var o=u.next;u.next=r.next,r.next=o}e.baseQueue=u=r,l.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var y=o=null,g=null,T=e,R=!1;do{var Q=T.lane&-536870913;if(Q!==T.lane?(pt&Q)===Q:(Ie&Q)===Q){var A=T.revertLane;if(A===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),Q===zl&&(R=!0);else if((Ie&A)===A){T=T.next,A===zl&&(R=!0);continue}else Q={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},g===null?(y=g=Q,o=r):g=g.next=Q,ot.lanes|=A,Tn|=A;Q=T.action,tl&&n(r,Q),r=T.hasEagerState?T.eagerState:n(r,Q)}else A={lane:Q,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},g===null?(y=g=A,o=r):g=g.next=A,ot.lanes|=Q,Tn|=Q;T=T.next}while(T!==null&&T!==e);if(g===null?o=r:g.next=y,!pe(r,t.memoizedState)&&(Vt=!0,R&&(n=Cl,n!==null)))throw n;t.memoizedState=r,t.baseState=o,t.baseQueue=g,l.lastRenderedState=r}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Xr(t){var e=Gt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var l=n.dispatch,u=n.pending,r=e.memoizedState;if(u!==null){n.pending=null;var o=u=u.next;do r=t(r,o.action),o=o.next;while(o!==u);pe(r,e.memoizedState)||(Vt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,l]}function rf(t,e,n){var l=ot,u=Gt(),r=bt;if(r){if(n===void 0)throw Error(c(407));n=n()}else n=e();var o=!pe((zt||u).memoizedState,n);if(o&&(u.memoizedState=n,Vt=!0),u=u.queue,Vr(of.bind(null,l,u,t),[t]),u.getSnapshot!==e||o||Zt!==null&&Zt.memoizedState.tag&1){if(l.flags|=2048,Ql(9,{destroy:void 0},cf.bind(null,l,u,n,e),null),Dt===null)throw Error(c(349));r||(Ie&127)!==0||sf(l,e,n)}return n}function sf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ot.updateQueue,e===null?(e=Ru(),ot.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function cf(t,e,n,l){e.value=n,e.getSnapshot=l,ff(e)&&df(t)}function of(t,e,n){return n(function(){ff(e)&&df(t)})}function ff(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function df(t){var e=Zn(t,2);e!==null&&he(e,t,2)}function Kr(t){var e=ue();if(typeof t=="function"){var n=t;if(t=n(),tl){fn(!0);try{n()}finally{fn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:t},e}function hf(t,e,n,l){return t.baseState=n,Gr(t,zt,typeof l=="function"?l:tn)}function Rm(t,e,n,l,u){if(Hu(t))throw Error(c(485));if(t=e.action,t!==null){var r={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){r.listeners.push(o)}};j.T!==null?n(!0):r.isTransition=!1,l(r),n=e.pending,n===null?(r.next=e.pending=r,yf(e,r)):(r.next=n.next,e.pending=n.next=r)}}function yf(t,e){var n=e.action,l=e.payload,u=t.state;if(e.isTransition){var r=j.T,o={};j.T=o;try{var y=n(u,l),g=j.S;g!==null&&g(o,y),vf(t,e,y)}catch(T){Zr(t,e,T)}finally{r!==null&&o.types!==null&&(r.types=o.types),j.T=r}}else try{r=n(u,l),vf(t,e,r)}catch(T){Zr(t,e,T)}}function vf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){mf(t,e,l)},function(l){return Zr(t,e,l)}):mf(t,e,n)}function mf(t,e,n){e.status="fulfilled",e.value=n,pf(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,yf(t,n)))}function Zr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,pf(e),e=e.next;while(e!==l)}t.action=null}function pf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function gf(t,e){return e}function bf(t,e){if(bt){var n=Dt.formState;if(n!==null){t:{var l=ot;if(bt){if(Ut){e:{for(var u=Ut,r=De;u.nodeType!==8;){if(!r){u=null;break e}if(u=Ue(u.nextSibling),u===null){u=null;break e}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){Ut=Ue(u.nextSibling),l=u.data==="F!";break t}}mn(l)}l=!1}l&&(e=n[0])}}return n=ue(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gf,lastRenderedState:e},n.queue=l,n=wf.bind(null,ot,l),l.dispatch=n,l=Kr(!1),r=Pr.bind(null,ot,!1,l.queue),l=ue(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,n=Rm.bind(null,ot,u,r,n),u.dispatch=n,l.memoizedState=t,[e,n,!1]}function Sf(t){var e=Gt();return xf(e,zt,t)}function xf(t,e,n){if(e=Gr(t,e,gf)[0],t=qu(tn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Oa(e)}catch(o){throw o===Ml?Eu:o}else l=e;e=Gt();var u=e.queue,r=u.dispatch;return n!==e.memoizedState&&(ot.flags|=2048,Ql(9,{destroy:void 0},Um.bind(null,u,n),null)),[l,r,t]}function Um(t,e){t.action=e}function Of(t){var e=Gt(),n=zt;if(n!==null)return xf(e,n,t);Gt(),e=e.memoizedState,n=Gt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ql(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ot.updateQueue,e===null&&(e=Ru(),ot.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function _f(){return Gt().memoizedState}function Qu(t,e,n,l){var u=ue();ot.flags|=t,u.memoizedState=Ql(1|e,{destroy:void 0},n,l===void 0?null:l)}function Nu(t,e,n,l){var u=Gt();l=l===void 0?null:l;var r=u.memoizedState.inst;zt!==null&&l!==null&&Nr(l,zt.memoizedState.deps)?u.memoizedState=Ql(e,r,n,l):(ot.flags|=t,u.memoizedState=Ql(1|e,r,n,l))}function Ef(t,e){Qu(8390656,8,t,e)}function Vr(t,e){Nu(2048,8,t,e)}function qm(t){ot.flags|=4;var e=ot.updateQueue;if(e===null)e=Ru(),ot.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Tf(t){var e=Gt().memoizedState;return qm({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function jf(t,e){return Nu(4,2,t,e)}function Af(t,e){return Nu(4,4,t,e)}function zf(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Cf(t,e,n){n=n!=null?n.concat([t]):null,Nu(4,4,zf.bind(null,e,t),n)}function Jr(){}function Mf(t,e){var n=Gt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Nr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Df(t,e){var n=Gt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Nr(e,l[1]))return l[0];if(l=t(),tl){fn(!0);try{t()}finally{fn(!1)}}return n.memoizedState=[l,e],l}function kr(t,e,n){return n===void 0||(Ie&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Rd(),ot.lanes|=t,Tn|=t,n)}function Rf(t,e,n,l){return pe(n,e)?n:Rl.current!==null?(t=kr(t,n,l),pe(t,e)||(Vt=!0),t):(Ie&42)===0||(Ie&1073741824)!==0&&(pt&261930)===0?(Vt=!0,t.memoizedState=n):(t=Rd(),ot.lanes|=t,Tn|=t,e)}function Uf(t,e,n,l,u){var r=H.p;H.p=r!==0&&8>r?r:8;var o=j.T,y={};j.T=y,Pr(t,!1,e,n);try{var g=u(),T=j.S;if(T!==null&&T(y,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var R=Cm(g,l);_a(t,e,R,_e(t))}else _a(t,e,l,_e(t))}catch(Q){_a(t,e,{then:function(){},status:"rejected",reason:Q},_e())}finally{H.p=r,o!==null&&y.types!==null&&(o.types=y.types),j.T=o}}function Qm(){}function Fr(t,e,n,l){if(t.tag!==5)throw Error(c(476));var u=qf(t).queue;Uf(t,u,e,Z,n===null?Qm:function(){return Qf(t),n(l)})}function qf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:Z},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Qf(t){var e=qf(t);e.next===null&&(e=t.alternate.memoizedState),_a(t,e.next.queue,{},_e())}function $r(){return It(Ya)}function Nf(){return Gt().memoizedState}function Hf(){return Gt().memoizedState}function Nm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=_e();t=bn(n);var l=Sn(e,t,n);l!==null&&(he(l,e,n),ga(l,e,n)),e={cache:Tr()},t.payload=e;return}e=e.return}}function Hm(t,e,n){var l=_e();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hu(t)?Bf(e,n):(n=yr(t,e,n,l),n!==null&&(he(n,t,l),Yf(n,e,l)))}function wf(t,e,n){var l=_e();_a(t,e,n,l)}function _a(t,e,n,l){var u={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hu(t))Bf(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var o=e.lastRenderedState,y=r(o,n);if(u.hasEagerState=!0,u.eagerState=y,pe(y,o))return pu(t,e,u,0),Dt===null&&mu(),!1}catch{}finally{}if(n=yr(t,e,u,l),n!==null)return he(n,t,l),Yf(n,e,l),!0}return!1}function Pr(t,e,n,l){if(l={lane:2,revertLane:Cs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Hu(t)){if(e)throw Error(c(479))}else e=yr(t,n,l,2),e!==null&&he(e,t,2)}function Hu(t){var e=t.alternate;return t===ot||e!==null&&e===ot}function Bf(t,e){Ul=Mu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Yf(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Xc(t,n)}}var Ea={readContext:It,use:Uu,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Ea.useEffectEvent=Ht;var Lf={readContext:It,use:Uu,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:Ef,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Qu(4194308,4,zf.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Qu(4194308,4,t,e)},useInsertionEffect:function(t,e){Qu(4,2,t,e)},useMemo:function(t,e){var n=ue();e=e===void 0?null:e;var l=t();if(tl){fn(!0);try{t()}finally{fn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ue();if(n!==void 0){var u=n(e);if(tl){fn(!0);try{n(e)}finally{fn(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=Hm.bind(null,ot,t),[l.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=Kr(t);var e=t.queue,n=wf.bind(null,ot,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Jr,useDeferredValue:function(t,e){var n=ue();return kr(n,t,e)},useTransition:function(){var t=Kr(!1);return t=Uf.bind(null,ot,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ot,u=ue();if(bt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Dt===null)throw Error(c(349));(pt&127)!==0||sf(l,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,Ef(of.bind(null,l,r,t),[t]),l.flags|=2048,Ql(9,{destroy:void 0},cf.bind(null,l,r,n,e),null),n},useId:function(){var t=ue(),e=Dt.identifierPrefix;if(bt){var n=Le,l=Ye;n=(l&~(1<<32-me(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Du++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Mm++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:$r,useFormState:bf,useActionState:bf,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Pr.bind(null,ot,!0,n),n.dispatch=e,[t,e]},useMemoCache:Lr,useCacheRefresh:function(){return ue().memoizedState=Nm.bind(null,ot)},useEffectEvent:function(t){var e=ue(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Wr={readContext:It,use:Uu,useCallback:Mf,useContext:It,useEffect:Vr,useImperativeHandle:Cf,useInsertionEffect:jf,useLayoutEffect:Af,useMemo:Df,useReducer:qu,useRef:_f,useState:function(){return qu(tn)},useDebugValue:Jr,useDeferredValue:function(t,e){var n=Gt();return Rf(n,zt.memoizedState,t,e)},useTransition:function(){var t=qu(tn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Oa(t),e]},useSyncExternalStore:rf,useId:Nf,useHostTransitionStatus:$r,useFormState:Sf,useActionState:Sf,useOptimistic:function(t,e){var n=Gt();return hf(n,zt,t,e)},useMemoCache:Lr,useCacheRefresh:Hf};Wr.useEffectEvent=Tf;var Gf={readContext:It,use:Uu,useCallback:Mf,useContext:It,useEffect:Vr,useImperativeHandle:Cf,useInsertionEffect:jf,useLayoutEffect:Af,useMemo:Df,useReducer:Xr,useRef:_f,useState:function(){return Xr(tn)},useDebugValue:Jr,useDeferredValue:function(t,e){var n=Gt();return zt===null?kr(n,t,e):Rf(n,zt.memoizedState,t,e)},useTransition:function(){var t=Xr(tn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Oa(t),e]},useSyncExternalStore:rf,useId:Nf,useHostTransitionStatus:$r,useFormState:Of,useActionState:Of,useOptimistic:function(t,e){var n=Gt();return zt!==null?hf(n,zt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Lr,useCacheRefresh:Hf};Gf.useEffectEvent=Tf;function Ir(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:O({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ts={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=_e(),u=bn(l);u.payload=e,n!=null&&(u.callback=n),e=Sn(t,u,l),e!==null&&(he(e,t,l),ga(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=_e(),u=bn(l);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=Sn(t,u,l),e!==null&&(he(e,t,l),ga(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=_e(),l=bn(n);l.tag=2,e!=null&&(l.callback=e),e=Sn(t,l,n),e!==null&&(he(e,t,n),ga(e,t,n))}};function Xf(t,e,n,l,u,r,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,r,o):e.prototype&&e.prototype.isPureReactComponent?!oa(n,l)||!oa(u,r):!0}function Kf(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&ts.enqueueReplaceState(e,e.state,null)}function el(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=O({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function Zf(t){vu(t)}function Vf(t){console.error(t)}function Jf(t){vu(t)}function wu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function kf(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function es(t,e,n){return n=bn(n),n.tag=3,n.payload={element:null},n.callback=function(){wu(t,e)},n}function Ff(t){return t=bn(t),t.tag=3,t}function $f(t,e,n,l){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var r=l.value;t.payload=function(){return u(r)},t.callback=function(){kf(e,n,l)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){kf(e,n,l),typeof u!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function wm(t,e,n,l,u){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Al(e,n,u,!0),n=be.current,n!==null){switch(n.tag){case 31:case 13:return Re===null?$u():n.alternate===null&&wt===0&&(wt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,l===Tu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),js(t,l,u)),!1;case 22:return n.flags|=65536,l===Tu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),js(t,l,u)),!1}throw Error(c(435,n.tag))}return js(t,l,u),$u(),!1}if(bt)return e=be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==Sr&&(t=Error(c(422),{cause:l}),ha(ze(t,n)))):(l!==Sr&&(e=Error(c(423),{cause:l}),ha(ze(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=ze(l,n),u=es(t.stateNode,l,u),Dr(t,u),wt!==4&&(wt=2)),!1;var r=Error(c(520),{cause:l});if(r=ze(r,n),Ra===null?Ra=[r]:Ra.push(r),wt!==4&&(wt=2),e===null)return!0;l=ze(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=es(n.stateNode,l,t),Dr(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(jn===null||!jn.has(r))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Ff(u),$f(u,t,n,l),Dr(n,u),!1}n=n.return}while(n!==null);return!1}var ns=Error(c(461)),Vt=!1;function te(t,e,n,l){e.child=t===null?Io(e,null,n,l):In(e,t.child,n,l)}function Pf(t,e,n,l,u){n=n.render;var r=e.ref;if("ref"in l){var o={};for(var y in l)y!=="ref"&&(o[y]=l[y])}else o=l;return Fn(e),l=Hr(t,e,n,o,r,u),y=wr(),t!==null&&!Vt?(Br(t,e,u),en(t,e,u)):(bt&&y&&gr(e),e.flags|=1,te(t,e,l,u),e.child)}function Wf(t,e,n,l,u){if(t===null){var r=n.type;return typeof r=="function"&&!vr(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,If(t,e,r,l,u)):(t=bu(n.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!os(t,u)){var o=r.memoizedProps;if(n=n.compare,n=n!==null?n:oa,n(o,l)&&t.ref===e.ref)return en(t,e,u)}return e.flags|=1,t=Fe(r,l),t.ref=e.ref,t.return=e,e.child=t}function If(t,e,n,l,u){if(t!==null){var r=t.memoizedProps;if(oa(r,l)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=l=r,os(t,u))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,en(t,e,u)}return ls(t,e,n,l,u)}function td(t,e,n,l){var u=l.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~r}else l=0,e.child=null;return ed(t,e,r,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&_u(e,r!==null?r.cachePool:null),r!==null?nf(e,r):Ur(),lf(e);else return l=e.lanes=536870912,ed(t,e,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(_u(e,r.cachePool),nf(e,r),On(),e.memoizedState=null):(t!==null&&_u(e,null),Ur(),On());return te(t,e,u,n),e.child}function Ta(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ed(t,e,n,l,u){var r=Ar();return r=r===null?null:{parent:Kt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&_u(e,null),Ur(),lf(e),t!==null&&Al(t,e,l,!0),e.childLanes=u,null}function Bu(t,e){return e=Lu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function nd(t,e,n){return In(e,t.child,null,n),t=Bu(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function Bm(t,e,n){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(l.mode==="hidden")return t=Bu(e,l),e.lanes=536870912,Ta(null,t);if(Qr(e),(t=Ut)?(t=yh(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:yn!==null?{id:Ye,overflow:Le}:null,retryLane:536870912,hydrationErrors:null},n=wo(t),n.return=e,e.child=n,Wt=e,Ut=null)):t=null,t===null)throw mn(e);return e.lanes=536870912,null}return Bu(e,l)}var r=t.memoizedState;if(r!==null){var o=r.dehydrated;if(Qr(e),u)if(e.flags&256)e.flags&=-257,e=nd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Vt||Al(t,e,n,!1),u=(n&t.childLanes)!==0,Vt||u){if(l=Dt,l!==null&&(o=Kc(l,n),o!==0&&o!==r.retryLane))throw r.retryLane=o,Zn(t,o),he(l,t,o),ns;$u(),e=nd(t,e,n)}else t=r.treeContext,Ut=Ue(o.nextSibling),Wt=e,bt=!0,vn=null,De=!1,t!==null&&Lo(e,t),e=Bu(e,l),e.flags|=4096;return e}return t=Fe(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Yu(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ls(t,e,n,l,u){return Fn(e),n=Hr(t,e,n,l,void 0,u),l=wr(),t!==null&&!Vt?(Br(t,e,u),en(t,e,u)):(bt&&l&&gr(e),e.flags|=1,te(t,e,n,u),e.child)}function ld(t,e,n,l,u,r){return Fn(e),e.updateQueue=null,n=uf(e,l,n,u),af(t),l=wr(),t!==null&&!Vt?(Br(t,e,r),en(t,e,r)):(bt&&l&&gr(e),e.flags|=1,te(t,e,n,r),e.child)}function ad(t,e,n,l,u){if(Fn(e),e.stateNode===null){var r=_l,o=n.contextType;typeof o=="object"&&o!==null&&(r=It(o)),r=new n(l,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=ts,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=l,r.state=e.memoizedState,r.refs={},Cr(e),o=n.contextType,r.context=typeof o=="object"&&o!==null?It(o):_l,r.state=e.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Ir(e,n,o,l),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(o=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),o!==r.state&&ts.enqueueReplaceState(r,r.state,null),Sa(e,l,r,u),ba(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,g=el(n,y);r.props=g;var T=r.context,R=n.contextType;o=_l,typeof R=="object"&&R!==null&&(o=It(R));var Q=n.getDerivedStateFromProps;R=typeof Q=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||T!==o)&&Kf(e,r,l,o),gn=!1;var A=e.memoizedState;r.state=A,Sa(e,l,r,u),ba(),T=e.memoizedState,y||A!==T||gn?(typeof Q=="function"&&(Ir(e,n,Q,l),T=e.memoizedState),(g=gn||Xf(e,n,g,l,A,T,o))?(R||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=T),r.props=l,r.state=T,r.context=o,l=g):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{r=e.stateNode,Mr(t,e),o=e.memoizedProps,R=el(n,o),r.props=R,Q=e.pendingProps,A=r.context,T=n.contextType,g=_l,typeof T=="object"&&T!==null&&(g=It(T)),y=n.getDerivedStateFromProps,(T=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o!==Q||A!==g)&&Kf(e,r,l,g),gn=!1,A=e.memoizedState,r.state=A,Sa(e,l,r,u),ba();var M=e.memoizedState;o!==Q||A!==M||gn||t!==null&&t.dependencies!==null&&xu(t.dependencies)?(typeof y=="function"&&(Ir(e,n,y,l),M=e.memoizedState),(R=gn||Xf(e,n,R,l,A,M,g)||t!==null&&t.dependencies!==null&&xu(t.dependencies))?(T||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,M,g),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,M,g)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=M),r.props=l,r.state=M,r.context=g,l=R):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),l=!1)}return r=l,Yu(t,e),l=(e.flags&128)!==0,r||l?(r=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&l?(e.child=In(e,t.child,null,u),e.child=In(e,null,n,u)):te(t,e,n,u),e.memoizedState=r.state,t=e.child):t=en(t,e,u),t}function ud(t,e,n,l){return Jn(),e.flags|=256,te(t,e,n,l),e.child}var as={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function us(t){return{baseLanes:t,cachePool:Jo()}}function is(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function id(t,e,n){var l=e.pendingProps,u=!1,r=(e.flags&128)!==0,o;if((o=r)||(o=t!==null&&t.memoizedState===null?!1:(Lt.current&2)!==0),o&&(u=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(u?xn(e):On(),(t=Ut)?(t=yh(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:yn!==null?{id:Ye,overflow:Le}:null,retryLane:536870912,hydrationErrors:null},n=wo(t),n.return=e,e.child=n,Wt=e,Ut=null)):t=null,t===null)throw mn(e);return Gs(t)?e.lanes=32:e.lanes=536870912,null}var y=l.children;return l=l.fallback,u?(On(),u=e.mode,y=Lu({mode:"hidden",children:y},u),l=Vn(l,u,n,null),y.return=e,l.return=e,y.sibling=l,e.child=y,l=e.child,l.memoizedState=us(n),l.childLanes=is(t,o,n),e.memoizedState=as,Ta(null,l)):(xn(e),rs(e,y))}var g=t.memoizedState;if(g!==null&&(y=g.dehydrated,y!==null)){if(r)e.flags&256?(xn(e),e.flags&=-257,e=ss(t,e,n)):e.memoizedState!==null?(On(),e.child=t.child,e.flags|=128,e=null):(On(),y=l.fallback,u=e.mode,l=Lu({mode:"visible",children:l.children},u),y=Vn(y,u,n,null),y.flags|=2,l.return=e,y.return=e,l.sibling=y,e.child=l,In(e,t.child,null,n),l=e.child,l.memoizedState=us(n),l.childLanes=is(t,o,n),e.memoizedState=as,e=Ta(null,l));else if(xn(e),Gs(y)){if(o=y.nextSibling&&y.nextSibling.dataset,o)var T=o.dgst;o=T,l=Error(c(419)),l.stack="",l.digest=o,ha({value:l,source:null,stack:null}),e=ss(t,e,n)}else if(Vt||Al(t,e,n,!1),o=(n&t.childLanes)!==0,Vt||o){if(o=Dt,o!==null&&(l=Kc(o,n),l!==0&&l!==g.retryLane))throw g.retryLane=l,Zn(t,l),he(o,t,l),ns;Ls(y)||$u(),e=ss(t,e,n)}else Ls(y)?(e.flags|=192,e.child=t.child,e=null):(t=g.treeContext,Ut=Ue(y.nextSibling),Wt=e,bt=!0,vn=null,De=!1,t!==null&&Lo(e,t),e=rs(e,l.children),e.flags|=4096);return e}return u?(On(),y=l.fallback,u=e.mode,g=t.child,T=g.sibling,l=Fe(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&65011712,T!==null?y=Fe(T,y):(y=Vn(y,u,n,null),y.flags|=2),y.return=e,l.return=e,l.sibling=y,e.child=l,Ta(null,l),l=e.child,y=t.child.memoizedState,y===null?y=us(n):(u=y.cachePool,u!==null?(g=Kt._currentValue,u=u.parent!==g?{parent:g,pool:g}:u):u=Jo(),y={baseLanes:y.baseLanes|n,cachePool:u}),l.memoizedState=y,l.childLanes=is(t,o,n),e.memoizedState=as,Ta(t.child,l)):(xn(e),n=t.child,t=n.sibling,n=Fe(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=n,e.memoizedState=null,n)}function rs(t,e){return e=Lu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Lu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function ss(t,e,n){return In(e,t.child,null,n),t=rs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function rd(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),_r(t.return,e,n)}function cs(t,e,n,l,u,r){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:u,treeForkCount:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=n,o.tailMode=u,o.treeForkCount=r)}function sd(t,e,n){var l=e.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var o=Lt.current,y=(o&2)!==0;if(y?(o=o&1|2,e.flags|=128):o&=1,w(Lt,o),te(t,e,l,n),l=bt?da:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rd(t,n,e);else if(t.tag===19)rd(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&Cu(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),cs(e,!1,u,n,r,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Cu(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}cs(e,!0,n,null,r,l);break;case"together":cs(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function en(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Tn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Al(t,e,n,!1),(n&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,n=Fe(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Fe(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function os(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&xu(t)))}function Ym(t,e,n){switch(e.tag){case 3:ae(e,e.stateNode.containerInfo),pn(e,Kt,t.memoizedState.cache),Jn();break;case 27:case 5:Pl(e);break;case 4:ae(e,e.stateNode.containerInfo);break;case 10:pn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Qr(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(xn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?id(t,e,n):(xn(e),t=en(t,e,n),t!==null?t.sibling:null);xn(e);break;case 19:var u=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Al(t,e,n,!1),l=(n&e.childLanes)!==0),u){if(l)return sd(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),w(Lt,Lt.current),l)break;return null;case 22:return e.lanes=0,td(t,e,n,e.pendingProps);case 24:pn(e,Kt,t.memoizedState.cache)}return en(t,e,n)}function cd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!os(t,n)&&(e.flags&128)===0)return Vt=!1,Ym(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,bt&&(e.flags&1048576)!==0&&Yo(e,da,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Pn(e.elementType),e.type=t,typeof t=="function")vr(t)?(l=el(t,l),e.tag=1,e=ad(null,e,t,l,n)):(e.tag=0,e=ls(null,e,t,l,n));else{if(t!=null){var u=t.$$typeof;if(u===Qt){e.tag=11,e=Pf(null,e,t,l,n);break t}else if(u===D){e.tag=14,e=Wf(null,e,t,l,n);break t}}throw e=it(t)||t,Error(c(306,e,""))}}return e;case 0:return ls(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,u=el(l,e.pendingProps),ad(t,e,l,u,n);case 3:t:{if(ae(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var r=e.memoizedState;u=r.element,Mr(t,e),Sa(e,l,null,n);var o=e.memoizedState;if(l=o.cache,pn(e,Kt,l),l!==r.cache&&Er(e,[Kt],n,!0),ba(),l=o.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=ud(t,e,l,n);break t}else if(l!==u){u=ze(Error(c(424)),e),ha(u),e=ud(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ut=Ue(t.firstChild),Wt=e,bt=!0,vn=null,De=!0,n=Io(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Jn(),l===u){e=en(t,e,n);break t}te(t,e,l,n)}e=e.child}return e;case 26:return Yu(t,e),t===null?(n=Sh(e.type,null,e.pendingProps,null))?e.memoizedState=n:bt||(n=e.type,t=e.pendingProps,l=li(rt.current).createElement(n),l[Pt]=e,l[re]=t,ee(l,n,t),Ft(l),e.stateNode=l):e.memoizedState=Sh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pl(e),t===null&&bt&&(l=e.stateNode=ph(e.type,e.pendingProps,rt.current),Wt=e,De=!0,u=Ut,Mn(e.type)?(Xs=u,Ut=Ue(l.firstChild)):Ut=u),te(t,e,e.pendingProps.children,n),Yu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((u=l=Ut)&&(l=mp(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,Wt=e,Ut=Ue(l.firstChild),De=!1,u=!0):u=!1),u||mn(e)),Pl(e),u=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,l=r.children,ws(u,r)?l=null:o!==null&&ws(u,o)&&(e.flags|=32),e.memoizedState!==null&&(u=Hr(t,e,Dm,null,null,n),Ya._currentValue=u),Yu(t,e),te(t,e,l,n),e.child;case 6:return t===null&&bt&&((t=n=Ut)&&(n=pp(n,e.pendingProps,De),n!==null?(e.stateNode=n,Wt=e,Ut=null,t=!0):t=!1),t||mn(e)),null;case 13:return id(t,e,n);case 4:return ae(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=In(e,null,l,n):te(t,e,l,n),e.child;case 11:return Pf(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,pn(e,e.type,l.value),te(t,e,l.children,n),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,Fn(e),u=It(u),l=l(u),e.flags|=1,te(t,e,l,n),e.child;case 14:return Wf(t,e,e.type,e.pendingProps,n);case 15:return If(t,e,e.type,e.pendingProps,n);case 19:return sd(t,e,n);case 31:return Bm(t,e,n);case 22:return td(t,e,n,e.pendingProps);case 24:return Fn(e),l=It(Kt),t===null?(u=Ar(),u===null&&(u=Dt,r=Tr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=n),u=r),e.memoizedState={parent:l,cache:u},Cr(e),pn(e,Kt,u)):((t.lanes&n)!==0&&(Mr(t,e),Sa(e,null,null,n),ba()),u=t.memoizedState,r=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),pn(e,Kt,l)):(l=r.cache,pn(e,Kt,l),l!==u.cache&&Er(e,[Kt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function nn(t){t.flags|=4}function fs(t,e,n,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Nd())t.flags|=8192;else throw Wn=Tu,zr}else t.flags&=-16777217}function od(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Th(e))if(Nd())t.flags|=8192;else throw Wn=Tu,zr}function Gu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Lc():536870912,t.lanes|=e,Bl|=e)}function ja(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function Lm(t,e,n){var l=e.pendingProps;switch(br(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(e),null;case 1:return qt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),We(Kt),Yt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(jl(e)?nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,xr())),qt(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(nn(e),r!==null?(qt(e),od(e,r)):(qt(e),fs(e,u,null,l,n))):r?r!==t.memoizedState?(nn(e),qt(e),od(e,r)):(qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&nn(e),qt(e),fs(e,u,t,l,n)),null;case 27:if(Ia(e),n=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return qt(e),null}t=B.current,jl(e)?Go(e):(t=ph(u,l,n),e.stateNode=t,nn(e))}return qt(e),null;case 5:if(Ia(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return qt(e),null}if(r=B.current,jl(e))Go(e);else{var o=li(rt.current);switch(r){case 1:r=o.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=o.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=o.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?o.createElement(u,{is:l.is}):o.createElement(u)}}r[Pt]=e,r[re]=l;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=r;t:switch(ee(r,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&nn(e)}}return qt(e),fs(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=rt.current,jl(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,u=Wt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ih(t.nodeValue,n)),t||mn(e,!0)}else t=li(t).createTextNode(l),t[Pt]=e,e.stateNode=t}return qt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=jl(e),n!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Pt]=e}else Jn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),t=!1}else n=xr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Se(e),e):(Se(e),null);if((e.flags&128)!==0)throw Error(c(558))}return qt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=jl(e),l!==null&&l.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 Jn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),u=!1}else u=xr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Se(e),e):(Se(e),null)}return Se(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Gu(e,e.updateQueue),qt(e),null);case 4:return Yt(),t===null&&Us(e.stateNode.containerInfo),qt(e),null;case 10:return We(e.type),qt(e),null;case 19:if(U(Lt),l=e.memoizedState,l===null)return qt(e),null;if(u=(e.flags&128)!==0,r=l.rendering,r===null)if(u)ja(l,!1);else{if(wt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Cu(t),r!==null){for(e.flags|=128,ja(l,!1),t=r.updateQueue,e.updateQueue=t,Gu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Ho(n,t),n=n.sibling;return w(Lt,Lt.current&1|2),bt&&$e(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ye()>Ju&&(e.flags|=128,u=!0,ja(l,!1),e.lanes=4194304)}else{if(!u)if(t=Cu(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Gu(e,t),ja(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!bt)return qt(e),null}else 2*ye()-l.renderingStartTime>Ju&&n!==536870912&&(e.flags|=128,u=!0,ja(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(t=l.last,t!==null?t.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ye(),t.sibling=null,n=Lt.current,w(Lt,u?n&1|2:n&1),bt&&$e(e,l.treeForkCount),t):(qt(e),null);case 22:case 23:return Se(e),qr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(qt(e),e.subtreeFlags&6&&(e.flags|=8192)):qt(e),n=e.updateQueue,n!==null&&Gu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&U($n),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),We(Kt),qt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Gm(t,e){switch(br(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return We(Kt),Yt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ia(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(c(340));Jn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Se(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Jn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Lt),null;case 4:return Yt(),null;case 10:return We(e.type),null;case 22:case 23:return Se(e),qr(),t!==null&&U($n),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return We(Kt),null;case 25:return null;default:return null}}function fd(t,e){switch(br(e),e.tag){case 3:We(Kt),Yt();break;case 26:case 27:case 5:Ia(e);break;case 4:Yt();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:U(Lt);break;case 10:We(e.type);break;case 22:case 23:Se(e),qr(),t!==null&&U($n);break;case 24:We(Kt)}}function Aa(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){l=void 0;var r=n.create,o=n.inst;l=r(),o.destroy=l}n=n.next}while(n!==u)}}catch(y){At(e,e.return,y)}}function _n(t,e,n){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var r=u.next;l=r;do{if((l.tag&t)===t){var o=l.inst,y=o.destroy;if(y!==void 0){o.destroy=void 0,u=e;var g=n,T=y;try{T()}catch(R){At(u,g,R)}}}l=l.next}while(l!==r)}}catch(R){At(e,e.return,R)}}function dd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{ef(e,n)}catch(l){At(t,t.return,l)}}}function hd(t,e,n){n.props=el(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){At(t,e,l)}}function za(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(u){At(t,e,u)}}function Ge(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(u){At(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){At(t,e,u)}else n.current=null}function yd(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(u){At(t,t.return,u)}}function ds(t,e,n){try{var l=t.stateNode;op(l,t.type,n,e),l[re]=e}catch(u){At(t,t.return,u)}}function vd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Mn(t.type)||t.tag===4}function hs(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||vd(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&&Mn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ys(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Je));else if(l!==4&&(l===27&&Mn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(ys(t,e,n),t=t.sibling;t!==null;)ys(t,e,n),t=t.sibling}function Xu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Mn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Xu(t,e,n),t=t.sibling;t!==null;)Xu(t,e,n),t=t.sibling}function md(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,l,n),e[Pt]=t,e[re]=n}catch(r){At(t,t.return,r)}}var ln=!1,Jt=!1,vs=!1,pd=typeof WeakSet=="function"?WeakSet:Set,$t=null;function Xm(t,e){if(t=t.containerInfo,Ns=oi,t=zo(t),sr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var o=0,y=-1,g=-1,T=0,R=0,Q=t,A=null;e:for(;;){for(var M;Q!==n||u!==0&&Q.nodeType!==3||(y=o+u),Q!==r||l!==0&&Q.nodeType!==3||(g=o+l),Q.nodeType===3&&(o+=Q.nodeValue.length),(M=Q.firstChild)!==null;)A=Q,Q=M;for(;;){if(Q===t)break e;if(A===n&&++T===u&&(y=o),A===r&&++R===l&&(g=o),(M=Q.nextSibling)!==null)break;Q=A,A=Q.parentNode}Q=M}n=y===-1||g===-1?null:{start:y,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hs={focusedElem:t,selectionRange:n},oi=!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(n=0;n<t.length;n++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,u=r.memoizedProps,r=r.memoizedState,l=n.stateNode;try{var k=el(n.type,u);t=l.getSnapshotBeforeUpdate(k,r),l.__reactInternalSnapshotBeforeUpdate=t}catch(lt){At(n,n.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Ys(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ys(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function gd(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:un(t,n),l&4&&Aa(5,n);break;case 1:if(un(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(o){At(n,n.return,o)}else{var u=el(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){At(n,n.return,o)}}l&64&&dd(n),l&512&&za(n,n.return);break;case 3:if(un(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{ef(t,e)}catch(o){At(n,n.return,o)}}break;case 27:e===null&&l&4&&md(n);case 26:case 5:un(t,n),e===null&&l&4&&yd(n),l&512&&za(n,n.return);break;case 12:un(t,n);break;case 31:un(t,n),l&4&&xd(t,n);break;case 13:un(t,n),l&4&&Od(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Wm.bind(null,n),gp(t,n))));break;case 22:if(l=n.memoizedState!==null||ln,!l){e=e!==null&&e.memoizedState!==null||Jt,u=ln;var r=Jt;ln=l,(Jt=e)&&!r?rn(t,n,(n.subtreeFlags&8772)!==0):un(t,n),ln=u,Jt=r}break;case 30:break;default:un(t,n)}}function bd(t){var e=t.alternate;e!==null&&(t.alternate=null,bd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Zi(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 Nt=null,ce=!1;function an(t,e,n){for(n=n.child;n!==null;)Sd(t,e,n),n=n.sibling}function Sd(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(Wl,n)}catch{}switch(n.tag){case 26:Jt||Ge(n,e),an(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||Ge(n,e);var l=Nt,u=ce;Mn(n.type)&&(Nt=n.stateNode,ce=!1),an(t,e,n),Ha(n.stateNode),Nt=l,ce=u;break;case 5:Jt||Ge(n,e);case 6:if(l=Nt,u=ce,Nt=null,an(t,e,n),Nt=l,ce=u,Nt!==null)if(ce)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(n.stateNode)}catch(r){At(n,e,r)}else try{Nt.removeChild(n.stateNode)}catch(r){At(n,e,r)}break;case 18:Nt!==null&&(ce?(t=Nt,dh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Jl(t)):dh(Nt,n.stateNode));break;case 4:l=Nt,u=ce,Nt=n.stateNode.containerInfo,ce=!0,an(t,e,n),Nt=l,ce=u;break;case 0:case 11:case 14:case 15:_n(2,n,e),Jt||_n(4,n,e),an(t,e,n);break;case 1:Jt||(Ge(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&hd(n,e,l)),an(t,e,n);break;case 21:an(t,e,n);break;case 22:Jt=(l=Jt)||n.memoizedState!==null,an(t,e,n),Jt=l;break;default:an(t,e,n)}}function xd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Jl(t)}catch(n){At(e,e.return,n)}}}function Od(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Jl(t)}catch(n){At(e,e.return,n)}}function Km(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new pd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new pd),e;default:throw Error(c(435,t.tag))}}function Ku(t,e){var n=Km(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var u=Im.bind(null,t,l);l.then(u,u)}})}function oe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l],r=t,o=e,y=o;t:for(;y!==null;){switch(y.tag){case 27:if(Mn(y.type)){Nt=y.stateNode,ce=!1;break t}break;case 5:Nt=y.stateNode,ce=!1;break t;case 3:case 4:Nt=y.stateNode.containerInfo,ce=!0;break t}y=y.return}if(Nt===null)throw Error(c(160));Sd(r,o,u),Nt=null,ce=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)_d(e,t),e=e.sibling}var Ne=null;function _d(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oe(e,t),fe(t),l&4&&(_n(3,t,t.return),Aa(3,t),_n(5,t,t.return));break;case 1:oe(e,t),fe(t),l&512&&(Jt||n===null||Ge(n,n.return)),l&64&&ln&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var u=Ne;if(oe(e,t),fe(t),l&512&&(Jt||n===null||Ge(n,n.return)),l&4){var r=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":r=u.getElementsByTagName("title")[0],(!r||r[ea]||r[Pt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(l),u.head.insertBefore(r,u.querySelector("head > title"))),ee(r,l,n),r[Pt]=t,Ft(r),l=r;break t;case"link":var o=_h("link","href",u).get(l+(n.href||""));if(o){for(var y=0;y<o.length;y++)if(r=o[y],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(y,1);break e}}r=u.createElement(l),ee(r,l,n),u.head.appendChild(r);break;case"meta":if(o=_h("meta","content",u).get(l+(n.content||""))){for(y=0;y<o.length;y++)if(r=o[y],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(y,1);break e}}r=u.createElement(l),ee(r,l,n),u.head.appendChild(r);break;default:throw Error(c(468,l))}r[Pt]=t,Ft(r),l=r}t.stateNode=l}else Eh(u,t.type,t.stateNode);else t.stateNode=Oh(u,l,t.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?Eh(u,t.type,t.stateNode):Oh(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ds(t,t.memoizedProps,n.memoizedProps)}break;case 27:oe(e,t),fe(t),l&512&&(Jt||n===null||Ge(n,n.return)),n!==null&&l&4&&ds(t,t.memoizedProps,n.memoizedProps);break;case 5:if(oe(e,t),fe(t),l&512&&(Jt||n===null||Ge(n,n.return)),t.flags&32){u=t.stateNode;try{ml(u,"")}catch(k){At(t,t.return,k)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,ds(t,u,n!==null?n.memoizedProps:u)),l&1024&&(vs=!0);break;case 6:if(oe(e,t),fe(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(k){At(t,t.return,k)}}break;case 3:if(ii=null,u=Ne,Ne=ai(e.containerInfo),oe(e,t),Ne=u,fe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(e.containerInfo)}catch(k){At(t,t.return,k)}vs&&(vs=!1,Ed(t));break;case 4:l=Ne,Ne=ai(t.stateNode.containerInfo),oe(e,t),fe(t),Ne=l;break;case 12:oe(e,t),fe(t);break;case 31:oe(e,t),fe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ku(t,l)));break;case 13:oe(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Vu=ye()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ku(t,l)));break;case 22:u=t.memoizedState!==null;var g=n!==null&&n.memoizedState!==null,T=ln,R=Jt;if(ln=T||u,Jt=R||g,oe(e,t),Jt=R,ln=T,fe(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||g||ln||Jt||nl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){g=n=e;try{if(r=g.stateNode,u)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{y=g.stateNode;var Q=g.memoizedProps.style,A=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;y.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(k){At(g,g.return,k)}}}else if(e.tag===6){if(n===null){g=e;try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch(k){At(g,g.return,k)}}}else if(e.tag===18){if(n===null){g=e;try{var M=g.stateNode;u?hh(M,!0):hh(g.stateNode,!1)}catch(k){At(g,g.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Ku(t,n))));break;case 19:oe(e,t),fe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ku(t,l)));break;case 30:break;case 21:break;default:oe(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(vd(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var u=n.stateNode,r=hs(t);Xu(t,r,u);break;case 5:var o=n.stateNode;n.flags&32&&(ml(o,""),n.flags&=-33);var y=hs(t);Xu(t,y,o);break;case 3:case 4:var g=n.stateNode.containerInfo,T=hs(t);ys(t,T,g);break;default:throw Error(c(161))}}catch(R){At(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ed(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ed(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function un(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)gd(t,e.alternate,e),e=e.sibling}function nl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:_n(4,e,e.return),nl(e);break;case 1:Ge(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&hd(e,e.return,n),nl(e);break;case 27:Ha(e.stateNode);case 26:case 5:Ge(e,e.return),nl(e);break;case 22:e.memoizedState===null&&nl(e);break;case 30:nl(e);break;default:nl(e)}t=t.sibling}}function rn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,r=e,o=r.flags;switch(r.tag){case 0:case 11:case 15:rn(u,r,n),Aa(4,r);break;case 1:if(rn(u,r,n),l=r,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(T){At(l,l.return,T)}if(l=r,u=l.updateQueue,u!==null){var y=l.stateNode;try{var g=u.shared.hiddenCallbacks;if(g!==null)for(u.shared.hiddenCallbacks=null,u=0;u<g.length;u++)tf(g[u],y)}catch(T){At(l,l.return,T)}}n&&o&64&&dd(r),za(r,r.return);break;case 27:md(r);case 26:case 5:rn(u,r,n),n&&l===null&&o&4&&yd(r),za(r,r.return);break;case 12:rn(u,r,n);break;case 31:rn(u,r,n),n&&o&4&&xd(u,r);break;case 13:rn(u,r,n),n&&o&4&&Od(u,r);break;case 22:r.memoizedState===null&&rn(u,r,n),za(r,r.return);break;case 30:break;default:rn(u,r,n)}e=e.sibling}}function ms(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ya(n))}function ps(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ya(t))}function He(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Td(t,e,n,l),e=e.sibling}function Td(t,e,n,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:He(t,e,n,l),u&2048&&Aa(9,e);break;case 1:He(t,e,n,l);break;case 3:He(t,e,n,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ya(t)));break;case 12:if(u&2048){He(t,e,n,l),t=e.stateNode;try{var r=e.memoizedProps,o=r.id,y=r.onPostCommit;typeof y=="function"&&y(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){At(e,e.return,g)}}else He(t,e,n,l);break;case 31:He(t,e,n,l);break;case 13:He(t,e,n,l);break;case 23:break;case 22:r=e.stateNode,o=e.alternate,e.memoizedState!==null?r._visibility&2?He(t,e,n,l):Ca(t,e):r._visibility&2?He(t,e,n,l):(r._visibility|=2,Nl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&ms(o,e);break;case 24:He(t,e,n,l),u&2048&&ps(e.alternate,e);break;default:He(t,e,n,l)}}function Nl(t,e,n,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,o=e,y=n,g=l,T=o.flags;switch(o.tag){case 0:case 11:case 15:Nl(r,o,y,g,u),Aa(8,o);break;case 23:break;case 22:var R=o.stateNode;o.memoizedState!==null?R._visibility&2?Nl(r,o,y,g,u):Ca(r,o):(R._visibility|=2,Nl(r,o,y,g,u)),u&&T&2048&&ms(o.alternate,o);break;case 24:Nl(r,o,y,g,u),u&&T&2048&&ps(o.alternate,o);break;default:Nl(r,o,y,g,u)}e=e.sibling}}function Ca(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,u=l.flags;switch(l.tag){case 22:Ca(n,l),u&2048&&ms(l.alternate,l);break;case 24:Ca(n,l),u&2048&&ps(l.alternate,l);break;default:Ca(n,l)}e=e.sibling}}var Ma=8192;function Hl(t,e,n){if(t.subtreeFlags&Ma)for(t=t.child;t!==null;)jd(t,e,n),t=t.sibling}function jd(t,e,n){switch(t.tag){case 26:Hl(t,e,n),t.flags&Ma&&t.memoizedState!==null&&Mp(n,Ne,t.memoizedState,t.memoizedProps);break;case 5:Hl(t,e,n);break;case 3:case 4:var l=Ne;Ne=ai(t.stateNode.containerInfo),Hl(t,e,n),Ne=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Ma,Ma=16777216,Hl(t,e,n),Ma=l):Hl(t,e,n));break;default:Hl(t,e,n)}}function Ad(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Da(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];$t=l,Cd(l,t)}Ad(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zd(t),t=t.sibling}function zd(t){switch(t.tag){case 0:case 11:case 15:Da(t),t.flags&2048&&_n(9,t,t.return);break;case 3:Da(t);break;case 12:Da(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Zu(t)):Da(t);break;default:Da(t)}}function Zu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];$t=l,Cd(l,t)}Ad(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:_n(8,e,e.return),Zu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(e));break;default:Zu(e)}t=t.sibling}}function Cd(t,e){for(;$t!==null;){var n=$t;switch(n.tag){case 0:case 11:case 15:_n(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ya(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,$t=l;else t:for(n=t;$t!==null;){l=$t;var u=l.sibling,r=l.return;if(bd(l),l===n){$t=null;break t}if(u!==null){u.return=r,$t=u;break t}$t=r}}}var Zm={getCacheForType:function(t){var e=It(Kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return It(Kt).controller.signal}},Vm=typeof WeakMap=="function"?WeakMap:Map,Et=0,Dt=null,vt=null,pt=0,jt=0,xe=null,En=!1,wl=!1,gs=!1,sn=0,wt=0,Tn=0,ll=0,bs=0,Oe=0,Bl=0,Ra=null,de=null,Ss=!1,Vu=0,Md=0,Ju=1/0,ku=null,jn=null,kt=0,An=null,Yl=null,cn=0,xs=0,Os=null,Dd=null,Ua=0,_s=null;function _e(){return(Et&2)!==0&&pt!==0?pt&-pt:j.T!==null?Cs():Zc()}function Rd(){if(Oe===0)if((pt&536870912)===0||bt){var t=nu;nu<<=1,(nu&3932160)===0&&(nu=262144),Oe=t}else Oe=536870912;return t=be.current,t!==null&&(t.flags|=32),Oe}function he(t,e,n){(t===Dt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(Ll(t,0),zn(t,pt,Oe,!1)),ta(t,n),((Et&2)===0||t!==Dt)&&(t===Dt&&((Et&2)===0&&(ll|=n),wt===4&&zn(t,pt,Oe,!1)),Xe(t))}function Ud(t,e,n){if((Et&6)!==0)throw Error(c(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Il(t,e),u=l?Fm(t,e):Ts(t,e,!0),r=l;do{if(u===0){wl&&!l&&zn(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Jm(n)){u=Ts(t,e,!1),r=!1;continue}if(u===2){if(r=e,t.errorRecoveryDisabledLanes&r)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var y=t;u=Ra;var g=y.current.memoizedState.isDehydrated;if(g&&(Ll(y,o).flags|=256),o=Ts(y,o,!1),o!==2){if(gs&&!g){y.errorRecoveryDisabledLanes|=r,ll|=r,u=4;break t}r=de,de=u,r!==null&&(de===null?de=r:de.push.apply(de,r))}u=o}if(r=!1,u!==2)continue}}if(u===1){Ll(t,0),zn(t,e,0,!0);break}t:{switch(l=t,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:zn(l,e,Oe,!En);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(u=Vu+300-ye(),10<u)){if(zn(l,e,Oe,!En),au(l,0,!0)!==0)break t;cn=e,l.timeoutHandle=oh(qd.bind(null,l,n,de,ku,Ss,e,Oe,ll,Bl,En,r,"Throttled",-0,0),u);break t}qd(l,n,de,ku,Ss,e,Oe,ll,Bl,En,r,null,-0,0)}}break}while(!0);Xe(t)}function qd(t,e,n,l,u,r,o,y,g,T,R,Q,A,M){if(t.timeoutHandle=-1,Q=e.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Je},jd(e,r,Q);var k=(r&62914560)===r?Vu-ye():(r&4194048)===r?Md-ye():0;if(k=Dp(Q,k),k!==null){cn=r,t.cancelPendingCommit=k(Gd.bind(null,t,e,r,n,l,u,o,y,g,R,Q,null,A,M)),zn(t,r,o,!T);return}}Gd(t,e,r,n,l,u,o,y,g)}function Jm(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var u=n[l],r=u.getSnapshot;u=u.value;try{if(!pe(r(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function zn(t,e,n,l){e&=~bs,e&=~ll,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var r=31-me(u),o=1<<r;l[r]=-1,u&=~o}n!==0&&Gc(t,n,e)}function Fu(){return(Et&6)===0?(qa(0),!1):!0}function Es(){if(vt!==null){if(jt===0)var t=vt.return;else t=vt,Pe=kn=null,Yr(t),Dl=null,ma=0,t=vt;for(;t!==null;)fd(t.alternate,t),t=t.return;vt=null}}function Ll(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,hp(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),cn=0,Es(),Dt=t,vt=n=Fe(t.current,null),pt=e,jt=0,xe=null,En=!1,wl=Il(t,e),gs=!1,Bl=Oe=bs=ll=Tn=wt=0,de=Ra=null,Ss=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-me(l),r=1<<u;e|=t[u],l&=~r}return sn=e,mu(),n}function Qd(t,e){ot=null,j.H=Ea,e===Ml||e===Eu?(e=$o(),jt=3):e===zr?(e=$o(),jt=4):jt=e===ns?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,xe=e,vt===null&&(wt=1,wu(t,ze(e,t.current)))}function Nd(){var t=be.current;return t===null?!0:(pt&4194048)===pt?Re===null:(pt&62914560)===pt||(pt&536870912)!==0?t===Re:!1}function Hd(){var t=j.H;return j.H=Ea,t===null?Ea:t}function wd(){var t=j.A;return j.A=Zm,t}function $u(){wt=4,En||(pt&4194048)!==pt&&be.current!==null||(wl=!0),(Tn&134217727)===0&&(ll&134217727)===0||Dt===null||zn(Dt,pt,Oe,!1)}function Ts(t,e,n){var l=Et;Et|=2;var u=Hd(),r=wd();(Dt!==t||pt!==e)&&(ku=null,Ll(t,e)),e=!1;var o=wt;t:do try{if(jt!==0&&vt!==null){var y=vt,g=xe;switch(jt){case 8:Es(),o=6;break t;case 3:case 2:case 9:case 6:be.current===null&&(e=!0);var T=jt;if(jt=0,xe=null,Gl(t,y,g,T),n&&wl){o=0;break t}break;default:T=jt,jt=0,xe=null,Gl(t,y,g,T)}}km(),o=wt;break}catch(R){Qd(t,R)}while(!0);return e&&t.shellSuspendCounter++,Pe=kn=null,Et=l,j.H=u,j.A=r,vt===null&&(Dt=null,pt=0,mu()),o}function km(){for(;vt!==null;)Bd(vt)}function Fm(t,e){var n=Et;Et|=2;var l=Hd(),u=wd();Dt!==t||pt!==e?(ku=null,Ju=ye()+500,Ll(t,e)):wl=Il(t,e);t:do try{if(jt!==0&&vt!==null){e=vt;var r=xe;e:switch(jt){case 1:jt=0,xe=null,Gl(t,e,r,1);break;case 2:case 9:if(ko(r)){jt=0,xe=null,Yd(e);break}e=function(){jt!==2&&jt!==9||Dt!==t||(jt=7),Xe(t)},r.then(e,e);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:ko(r)?(jt=0,xe=null,Yd(e)):(jt=0,xe=null,Gl(t,e,r,7));break;case 5:var o=null;switch(vt.tag){case 26:o=vt.memoizedState;case 5:case 27:var y=vt;if(o?Th(o):y.stateNode.complete){jt=0,xe=null;var g=y.sibling;if(g!==null)vt=g;else{var T=y.return;T!==null?(vt=T,Pu(T)):vt=null}break e}}jt=0,xe=null,Gl(t,e,r,5);break;case 6:jt=0,xe=null,Gl(t,e,r,6);break;case 8:Es(),wt=6;break t;default:throw Error(c(462))}}$m();break}catch(R){Qd(t,R)}while(!0);return Pe=kn=null,j.H=l,j.A=u,Et=n,vt!==null?0:(Dt=null,pt=0,mu(),wt)}function $m(){for(;vt!==null&&!bv();)Bd(vt)}function Bd(t){var e=cd(t.alternate,t,sn);t.memoizedProps=t.pendingProps,e===null?Pu(t):vt=e}function Yd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=ld(n,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=ld(n,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:Yr(e);default:fd(n,e),e=vt=Ho(e,sn),e=cd(n,e,sn)}t.memoizedProps=t.pendingProps,e===null?Pu(t):vt=e}function Gl(t,e,n,l){Pe=kn=null,Yr(e),Dl=null,ma=0;var u=e.return;try{if(wm(t,u,e,n,pt)){wt=1,wu(t,ze(n,t.current)),vt=null;return}}catch(r){if(u!==null)throw vt=u,r;wt=1,wu(t,ze(n,t.current)),vt=null;return}e.flags&32768?(bt||l===1?t=!0:wl||(pt&536870912)!==0?t=!1:(En=t=!0,(l===2||l===9||l===3||l===6)&&(l=be.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ld(e,t)):Pu(e)}function Pu(t){var e=t;do{if((e.flags&32768)!==0){Ld(e,En);return}t=e.return;var n=Lm(e.alternate,e,sn);if(n!==null){vt=n;return}if(e=e.sibling,e!==null){vt=e;return}vt=e=t}while(e!==null);wt===0&&(wt=5)}function Ld(t,e){do{var n=Gm(t.alternate,t);if(n!==null){n.flags&=32767,vt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){vt=t;return}vt=t=n}while(t!==null);wt=6,vt=null}function Gd(t,e,n,l,u,r,o,y,g){t.cancelPendingCommit=null;do Wu();while(kt!==0);if((Et&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(r=e.lanes|e.childLanes,r|=hr,Cv(t,n,r,o,y,g),t===Dt&&(vt=Dt=null,pt=0),Yl=e,An=t,cn=n,xs=r,Os=u,Dd=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,tp(tu,function(){return Jd(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,u=H.p,H.p=2,o=Et,Et|=4;try{Xm(t,e,n)}finally{Et=o,H.p=u,j.T=l}}kt=1,Xd(),Kd(),Zd()}}function Xd(){if(kt===1){kt=0;var t=An,e=Yl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var l=H.p;H.p=2;var u=Et;Et|=4;try{_d(e,t);var r=Hs,o=zo(t.containerInfo),y=r.focusedElem,g=r.selectionRange;if(o!==y&&y&&y.ownerDocument&&Ao(y.ownerDocument.documentElement,y)){if(g!==null&&sr(y)){var T=g.start,R=g.end;if(R===void 0&&(R=T),"selectionStart"in y)y.selectionStart=T,y.selectionEnd=Math.min(R,y.value.length);else{var Q=y.ownerDocument||document,A=Q&&Q.defaultView||window;if(A.getSelection){var M=A.getSelection(),k=y.textContent.length,lt=Math.min(g.start,k),Mt=g.end===void 0?lt:Math.min(g.end,k);!M.extend&&lt>Mt&&(o=Mt,Mt=lt,lt=o);var x=jo(y,lt),S=jo(y,Mt);if(x&&S&&(M.rangeCount!==1||M.anchorNode!==x.node||M.anchorOffset!==x.offset||M.focusNode!==S.node||M.focusOffset!==S.offset)){var E=Q.createRange();E.setStart(x.node,x.offset),M.removeAllRanges(),lt>Mt?(M.addRange(E),M.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),M.addRange(E))}}}}for(Q=[],M=y;M=M.parentNode;)M.nodeType===1&&Q.push({element:M,left:M.scrollLeft,top:M.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}}oi=!!Ns,Hs=Ns=null}finally{Et=u,H.p=l,j.T=n}}t.current=e,kt=2}}function Kd(){if(kt===2){kt=0;var t=An,e=Yl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var l=H.p;H.p=2;var u=Et;Et|=4;try{gd(t,e.alternate,e)}finally{Et=u,H.p=l,j.T=n}}kt=3}}function Zd(){if(kt===4||kt===3){kt=0,Sv();var t=An,e=Yl,n=cn,l=Dd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?kt=5:(kt=0,Yl=An=null,Vd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(jn=null),Xi(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(Wl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=j.T,u=H.p,H.p=2,j.T=null;try{for(var r=t.onRecoverableError,o=0;o<l.length;o++){var y=l[o];r(y.value,{componentStack:y.stack})}}finally{j.T=e,H.p=u}}(cn&3)!==0&&Wu(),Xe(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===_s?Ua++:(Ua=0,_s=t):Ua=0,qa(0)}}function Vd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ya(e)))}function Wu(){return Xd(),Kd(),Zd(),Jd()}function Jd(){if(kt!==5)return!1;var t=An,e=xs;xs=0;var n=Xi(cn),l=j.T,u=H.p;try{H.p=32>n?32:n,j.T=null,n=Os,Os=null;var r=An,o=cn;if(kt=0,Yl=An=null,cn=0,(Et&6)!==0)throw Error(c(331));var y=Et;if(Et|=4,zd(r.current),Td(r,r.current,o,n),Et=y,qa(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(Wl,r)}catch{}return!0}finally{H.p=u,j.T=l,Vd(t,e)}}function kd(t,e,n){e=ze(n,e),e=es(t.stateNode,e,2),t=Sn(t,e,2),t!==null&&(ta(t,2),Xe(t))}function At(t,e,n){if(t.tag===3)kd(t,t,n);else for(;e!==null;){if(e.tag===3){kd(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(jn===null||!jn.has(l))){t=ze(n,t),n=Ff(2),l=Sn(e,n,2),l!==null&&($f(n,l,e,t),ta(l,2),Xe(l));break}}e=e.return}}function js(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Vm;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(n)||(gs=!0,u.add(n),t=Pm.bind(null,t,e,n),e.then(t,t))}function Pm(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Dt===t&&(pt&n)===n&&(wt===4||wt===3&&(pt&62914560)===pt&&300>ye()-Vu?(Et&2)===0&&Ll(t,0):bs|=n,Bl===pt&&(Bl=0)),Xe(t)}function Fd(t,e){e===0&&(e=Lc()),t=Zn(t,e),t!==null&&(ta(t,e),Xe(t))}function Wm(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Fd(t,n)}function Im(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),Fd(t,n)}function tp(t,e){return Bi(t,e)}var Iu=null,Xl=null,As=!1,ti=!1,zs=!1,Cn=0;function Xe(t){t!==Xl&&t.next===null&&(Xl===null?Iu=Xl=t:Xl=Xl.next=t),ti=!0,As||(As=!0,np())}function qa(t,e){if(!zs&&ti){zs=!0;do for(var n=!1,l=Iu;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var o=l.suspendedLanes,y=l.pingedLanes;r=(1<<31-me(42|t)+1)-1,r&=u&~(o&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Id(l,r))}else r=pt,r=au(l,l===Dt?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||Il(l,r)||(n=!0,Id(l,r));l=l.next}while(n);zs=!1}}function ep(){$d()}function $d(){ti=As=!1;var t=0;Cn!==0&&dp()&&(t=Cn);for(var e=ye(),n=null,l=Iu;l!==null;){var u=l.next,r=Pd(l,e);r===0?(l.next=null,n===null?Iu=u:n.next=u,u===null&&(Xl=n)):(n=l,(t!==0||(r&3)!==0)&&(ti=!0)),l=u}kt!==0&&kt!==5||qa(t),Cn!==0&&(Cn=0)}function Pd(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var o=31-me(r),y=1<<o,g=u[o];g===-1?((y&n)===0||(y&l)!==0)&&(u[o]=zv(y,e)):g<=e&&(t.expiredLanes|=y),r&=~y}if(e=Dt,n=pt,n=au(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Yi(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Il(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Yi(l),Xi(n)){case 2:case 8:n=Bc;break;case 32:n=tu;break;case 268435456:n=Yc;break;default:n=tu}return l=Wd.bind(null,t),n=Bi(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Yi(l),t.callbackPriority=2,t.callbackNode=null,2}function Wd(t,e){if(kt!==0&&kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Wu()&&t.callbackNode!==n)return null;var l=pt;return l=au(t,t===Dt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Ud(t,l,e),Pd(t,ye()),t.callbackNode!=null&&t.callbackNode===n?Wd.bind(null,t):null)}function Id(t,e){if(Wu())return null;Ud(t,e,!0)}function np(){yp(function(){(Et&6)!==0?Bi(wc,ep):$d()})}function Cs(){if(Cn===0){var t=zl;t===0&&(t=eu,eu<<=1,(eu&261888)===0&&(eu=256)),Cn=t}return Cn}function th(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:su(""+t)}function eh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function lp(t,e,n,l,u){if(e==="submit"&&n&&n.stateNode===u){var r=th((u[re]||null).action),o=l.submitter;o&&(e=(e=o[re]||null)?th(e.formAction):o.getAttribute("formAction"),e!==null&&(r=e,o=null));var y=new du("action","action",null,l,u);t.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Cn!==0){var g=o?eh(u,o):new FormData(u);Fr(n,{pending:!0,data:g,method:u.method,action:r},null,g)}}else typeof r=="function"&&(y.preventDefault(),g=o?eh(u,o):new FormData(u),Fr(n,{pending:!0,data:g,method:u.method,action:r},r,g))},currentTarget:u}]})}}for(var Ms=0;Ms<dr.length;Ms++){var Ds=dr[Ms],ap=Ds.toLowerCase(),up=Ds[0].toUpperCase()+Ds.slice(1);Qe(ap,"on"+up)}Qe(Do,"onAnimationEnd"),Qe(Ro,"onAnimationIteration"),Qe(Uo,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(xm,"onTransitionRun"),Qe(Om,"onTransitionStart"),Qe(_m,"onTransitionCancel"),Qe(qo,"onTransitionEnd"),yl("onMouseEnter",["mouseout","mouseover"]),yl("onMouseLeave",["mouseout","mouseover"]),yl("onPointerEnter",["pointerout","pointerover"]),yl("onPointerLeave",["pointerout","pointerover"]),Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ip=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qa));function nh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],u=l.event;l=l.listeners;t:{var r=void 0;if(e)for(var o=l.length-1;0<=o;o--){var y=l[o],g=y.instance,T=y.currentTarget;if(y=y.listener,g!==r&&u.isPropagationStopped())break t;r=y,u.currentTarget=T;try{r(u)}catch(R){vu(R)}u.currentTarget=null,r=g}else for(o=0;o<l.length;o++){if(y=l[o],g=y.instance,T=y.currentTarget,y=y.listener,g!==r&&u.isPropagationStopped())break t;r=y,u.currentTarget=T;try{r(u)}catch(R){vu(R)}u.currentTarget=null,r=g}}}}function mt(t,e){var n=e[Ki];n===void 0&&(n=e[Ki]=new Set);var l=t+"__bubble";n.has(l)||(lh(e,t,2,!1),n.add(l))}function Rs(t,e,n){var l=0;e&&(l|=4),lh(n,t,l,e)}var ei="_reactListening"+Math.random().toString(36).slice(2);function Us(t){if(!t[ei]){t[ei]=!0,kc.forEach(function(n){n!=="selectionchange"&&(ip.has(n)||Rs(n,!1,t),Rs(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ei]||(e[ei]=!0,Rs("selectionchange",!1,e))}}function lh(t,e,n,l){switch(Rh(e)){case 2:var u=qp;break;case 8:u=Qp;break;default:u=ks}n=u.bind(null,e,n,t),u=void 0,!Ii||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function qs(t,e,n,l,u){var r=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var y=l.stateNode.containerInfo;if(y===u)break;if(o===4)for(o=l.return;o!==null;){var g=o.tag;if((g===3||g===4)&&o.stateNode.containerInfo===u)return;o=o.return}for(;y!==null;){if(o=fl(y),o===null)return;if(g=o.tag,g===5||g===6||g===26||g===27){l=r=o;continue t}y=y.parentNode}}l=l.return}io(function(){var T=r,R=Pi(n),Q=[];t:{var A=Qo.get(t);if(A!==void 0){var M=du,k=t;switch(t){case"keypress":if(ou(n)===0)break t;case"keydown":case"keyup":M=Iv;break;case"focusin":k="focus",M=lr;break;case"focusout":k="blur",M=lr;break;case"beforeblur":case"afterblur":M=lr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=co;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Lv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=nm;break;case Do:case Ro:case Uo:M=Kv;break;case qo:M=am;break;case"scroll":case"scrollend":M=Bv;break;case"wheel":M=im;break;case"copy":case"cut":case"paste":M=Vv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=fo;break;case"toggle":case"beforetoggle":M=sm}var lt=(e&4)!==0,Mt=!lt&&(t==="scroll"||t==="scrollend"),x=lt?A!==null?A+"Capture":null:A;lt=[];for(var S=T,E;S!==null;){var q=S;if(E=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||E===null||x===null||(q=la(S,x),q!=null&&lt.push(Na(S,q,E))),Mt)break;S=S.return}0<lt.length&&(A=new M(A,k,null,n,R),Q.push({event:A,listeners:lt}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",M=t==="mouseout"||t==="pointerout",A&&n!==$i&&(k=n.relatedTarget||n.fromElement)&&(fl(k)||k[ol]))break t;if((M||A)&&(A=R.window===R?R:(A=R.ownerDocument)?A.defaultView||A.parentWindow:window,M?(k=n.relatedTarget||n.toElement,M=T,k=k?fl(k):null,k!==null&&(Mt=d(k),lt=k.tag,k!==Mt||lt!==5&&lt!==27&&lt!==6)&&(k=null)):(M=null,k=T),M!==k)){if(lt=co,q="onMouseLeave",x="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(lt=fo,q="onPointerLeave",x="onPointerEnter",S="pointer"),Mt=M==null?A:na(M),E=k==null?A:na(k),A=new lt(q,S+"leave",M,n,R),A.target=Mt,A.relatedTarget=E,q=null,fl(R)===T&&(lt=new lt(x,S+"enter",k,n,R),lt.target=E,lt.relatedTarget=Mt,q=lt),Mt=q,M&&k)e:{for(lt=rp,x=M,S=k,E=0,q=x;q;q=lt(q))E++;q=0;for(var nt=S;nt;nt=lt(nt))q++;for(;0<E-q;)x=lt(x),E--;for(;0<q-E;)S=lt(S),q--;for(;E--;){if(x===S||S!==null&&x===S.alternate){lt=x;break e}x=lt(x),S=lt(S)}lt=null}else lt=null;M!==null&&ah(Q,A,M,lt,!1),k!==null&&Mt!==null&&ah(Q,Mt,k,lt,!0)}}t:{if(A=T?na(T):window,M=A.nodeName&&A.nodeName.toLowerCase(),M==="select"||M==="input"&&A.type==="file")var xt=So;else if(go(A))if(xo)xt=gm;else{xt=mm;var W=vm}else M=A.nodeName,!M||M.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?T&&Fi(T.elementType)&&(xt=So):xt=pm;if(xt&&(xt=xt(t,T))){bo(Q,xt,n,R);break t}W&&W(t,A,T),t==="focusout"&&T&&A.type==="number"&&T.memoizedProps.value!=null&&ki(A,"number",A.value)}switch(W=T?na(T):window,t){case"focusin":(go(W)||W.contentEditable==="true")&&(Sl=W,cr=T,fa=null);break;case"focusout":fa=cr=Sl=null;break;case"mousedown":or=!0;break;case"contextmenu":case"mouseup":case"dragend":or=!1,Co(Q,n,R);break;case"selectionchange":if(Sm)break;case"keydown":case"keyup":Co(Q,n,R)}var ft;if(ur)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else bl?mo(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(ho&&n.locale!=="ko"&&(bl||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&bl&&(ft=ro()):(hn=R,tr="value"in hn?hn.value:hn.textContent,bl=!0)),W=ni(T,gt),0<W.length&&(gt=new oo(gt,t,null,n,R),Q.push({event:gt,listeners:W}),ft?gt.data=ft:(ft=po(n),ft!==null&&(gt.data=ft)))),(ft=om?fm(t,n):dm(t,n))&&(gt=ni(T,"onBeforeInput"),0<gt.length&&(W=new oo("onBeforeInput","beforeinput",null,n,R),Q.push({event:W,listeners:gt}),W.data=ft)),lp(Q,t,T,n,R)}nh(Q,e)})}function Na(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ni(t,e){for(var n=e+"Capture",l=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=la(t,n),u!=null&&l.unshift(Na(t,u,r)),u=la(t,e),u!=null&&l.push(Na(t,u,r))),t.tag===3)return l;t=t.return}return[]}function rp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ah(t,e,n,l,u){for(var r=e._reactName,o=[];n!==null&&n!==l;){var y=n,g=y.alternate,T=y.stateNode;if(y=y.tag,g!==null&&g===l)break;y!==5&&y!==26&&y!==27||T===null||(g=T,u?(T=la(n,r),T!=null&&o.unshift(Na(n,T,g))):u||(T=la(n,r),T!=null&&o.push(Na(n,T,g)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var sp=/\r\n?/g,cp=/\u0000|\uFFFD/g;function uh(t){return(typeof t=="string"?t:""+t).replace(sp,`
`).replace(cp,"")}function ih(t,e){return e=uh(e),uh(t)===e}function Ct(t,e,n,l,u,r){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ml(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ml(t,""+l);break;case"className":iu(t,"class",l);break;case"tabIndex":iu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":iu(t,n,l);break;case"style":ao(t,l,r);break;case"data":if(e!=="object"){iu(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=su(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(e!=="input"&&Ct(t,e,"name",u.name,u,null),Ct(t,e,"formEncType",u.formEncType,u,null),Ct(t,e,"formMethod",u.formMethod,u,null),Ct(t,e,"formTarget",u.formTarget,u,null)):(Ct(t,e,"encType",u.encType,u,null),Ct(t,e,"method",u.method,u,null),Ct(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=su(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Je);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=su(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":mt("beforetoggle",t),mt("toggle",t),uu(t,"popover",l);break;case"xlinkActuate":Ve(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ve(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ve(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ve(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ve(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ve(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":uu(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Hv.get(n)||n,uu(t,n,l))}}function Qs(t,e,n,l,u,r){switch(n){case"style":ao(t,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ml(t,l):(typeof l=="number"||typeof l=="bigint")&&ml(t,""+l);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fc.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),r=t[re]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof l=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,u);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):uu(t,n,l)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var l=!1,u=!1,r;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];if(o!=null)switch(r){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ct(t,e,r,o,n,null)}}u&&Ct(t,e,"srcSet",n.srcSet,n,null),l&&Ct(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var y=r=o=u=null,g=null,T=null;for(l in n)if(n.hasOwnProperty(l)){var R=n[l];if(R!=null)switch(l){case"name":u=R;break;case"type":o=R;break;case"checked":g=R;break;case"defaultChecked":T=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:Ct(t,e,l,R,n,null)}}to(t,r,y,g,T,o,u,!1);return;case"select":mt("invalid",t),l=o=r=null;for(u in n)if(n.hasOwnProperty(u)&&(y=n[u],y!=null))switch(u){case"value":r=y;break;case"defaultValue":o=y;break;case"multiple":l=y;default:Ct(t,e,u,y,n,null)}e=r,n=o,t.multiple=!!l,e!=null?vl(t,!!l,e,!1):n!=null&&vl(t,!!l,n,!0);return;case"textarea":mt("invalid",t),r=u=l=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":l=y;break;case"defaultValue":u=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(c(91));break;default:Ct(t,e,o,y,n,null)}no(t,l,u,r);return;case"option":for(g in n)if(n.hasOwnProperty(g)&&(l=n[g],l!=null))switch(g){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ct(t,e,g,l,n,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(l=0;l<Qa.length;l++)mt(Qa[l],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ct(t,e,T,l,n,null)}return;default:if(Fi(e)){for(R in n)n.hasOwnProperty(R)&&(l=n[R],l!==void 0&&Qs(t,e,R,l,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(l=n[y],l!=null&&Ct(t,e,y,l,n,null))}function op(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,o=null,y=null,g=null,T=null,R=null;for(M in n){var Q=n[M];if(n.hasOwnProperty(M)&&Q!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":g=Q;default:l.hasOwnProperty(M)||Ct(t,e,M,null,l,Q)}}for(var A in l){var M=l[A];if(Q=n[A],l.hasOwnProperty(A)&&(M!=null||Q!=null))switch(A){case"type":r=M;break;case"name":u=M;break;case"checked":T=M;break;case"defaultChecked":R=M;break;case"value":o=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,e));break;default:M!==Q&&Ct(t,e,A,M,l,Q)}}Ji(t,o,y,g,T,R,r,u);return;case"select":M=o=y=A=null;for(r in n)if(g=n[r],n.hasOwnProperty(r)&&g!=null)switch(r){case"value":break;case"multiple":M=g;default:l.hasOwnProperty(r)||Ct(t,e,r,null,l,g)}for(u in l)if(r=l[u],g=n[u],l.hasOwnProperty(u)&&(r!=null||g!=null))switch(u){case"value":A=r;break;case"defaultValue":y=r;break;case"multiple":o=r;default:r!==g&&Ct(t,e,u,r,l,g)}e=y,n=o,l=M,A!=null?vl(t,!!n,A,!1):!!l!=!!n&&(e!=null?vl(t,!!n,e,!0):vl(t,!!n,n?[]:"",!1));return;case"textarea":M=A=null;for(y in n)if(u=n[y],n.hasOwnProperty(y)&&u!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ct(t,e,y,null,l,u)}for(o in l)if(u=l[o],r=n[o],l.hasOwnProperty(o)&&(u!=null||r!=null))switch(o){case"value":A=u;break;case"defaultValue":M=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&Ct(t,e,o,u,l,r)}eo(t,A,M);return;case"option":for(var k in n)if(A=n[k],n.hasOwnProperty(k)&&A!=null&&!l.hasOwnProperty(k))switch(k){case"selected":t.selected=!1;break;default:Ct(t,e,k,null,l,A)}for(g in l)if(A=l[g],M=n[g],l.hasOwnProperty(g)&&A!==M&&(A!=null||M!=null))switch(g){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Ct(t,e,g,A,l,M)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var lt in n)A=n[lt],n.hasOwnProperty(lt)&&A!=null&&!l.hasOwnProperty(lt)&&Ct(t,e,lt,null,l,A);for(T in l)if(A=l[T],M=n[T],l.hasOwnProperty(T)&&A!==M&&(A!=null||M!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,e));break;default:Ct(t,e,T,A,l,M)}return;default:if(Fi(e)){for(var Mt in n)A=n[Mt],n.hasOwnProperty(Mt)&&A!==void 0&&!l.hasOwnProperty(Mt)&&Qs(t,e,Mt,void 0,l,A);for(R in l)A=l[R],M=n[R],!l.hasOwnProperty(R)||A===M||A===void 0&&M===void 0||Qs(t,e,R,A,l,M);return}}for(var x in n)A=n[x],n.hasOwnProperty(x)&&A!=null&&!l.hasOwnProperty(x)&&Ct(t,e,x,null,l,A);for(Q in l)A=l[Q],M=n[Q],!l.hasOwnProperty(Q)||A===M||A==null&&M==null||Ct(t,e,Q,A,l,M)}function rh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var u=n[l],r=u.transferSize,o=u.initiatorType,y=u.duration;if(r&&y&&rh(o)){for(o=0,y=u.responseEnd,l+=1;l<n.length;l++){var g=n[l],T=g.startTime;if(T>y)break;var R=g.transferSize,Q=g.initiatorType;R&&rh(Q)&&(g=g.responseEnd,o+=R*(g<y?1:(y-T)/(g-T)))}if(--l,e+=8*(r+o)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ns=null,Hs=null;function li(t){return t.nodeType===9?t:t.ownerDocument}function sh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ch(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ws(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 Bs=null;function dp(){var t=window.event;return t&&t.type==="popstate"?t===Bs?!1:(Bs=t,!0):(Bs=null,!1)}var oh=typeof setTimeout=="function"?setTimeout:void 0,hp=typeof clearTimeout=="function"?clearTimeout:void 0,fh=typeof Promise=="function"?Promise:void 0,yp=typeof queueMicrotask=="function"?queueMicrotask:typeof fh<"u"?function(t){return fh.resolve(null).then(t).catch(vp)}:oh;function vp(t){setTimeout(function(){throw t})}function Mn(t){return t==="head"}function dh(t,e){var n=e,l=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(u),Jl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ha(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ha(n);for(var r=n.firstChild;r;){var o=r.nextSibling,y=r.nodeName;r[ea]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=o}}else n==="body"&&Ha(t.ownerDocument.body);n=u}while(n);Jl(e)}function hh(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Ys(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ys(n),Zi(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function mp(t,e,n,l){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[ea])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 pp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ue(t.nextSibling),t===null))return null;return t}function yh(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 Ls(t){return t.data==="$?"||t.data==="$~"}function Gs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function gp(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ue(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Xs=null;function vh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ue(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function mh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function ph(t,e,n){switch(e=li(n),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 Ha(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Zi(t)}var qe=new Map,gh=new Set;function ai(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var on=H.d;H.d={f:bp,r:Sp,D:xp,C:Op,L:_p,m:Ep,X:jp,S:Tp,M:Ap};function bp(){var t=on.f(),e=Fu();return t||e}function Sp(t){var e=dl(t);e!==null&&e.tag===5&&e.type==="form"?Qf(e):on.r(t)}var Kl=typeof document>"u"?null:document;function bh(t,e,n){var l=Kl;if(l&&typeof e=="string"&&e){var u=je(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),gh.has(u)||(gh.add(u),t={rel:t,crossOrigin:n,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),ee(e,"link",t),Ft(e),l.head.appendChild(e)))}}function xp(t){on.D(t),bh("dns-prefetch",t,null)}function Op(t,e){on.C(t,e),bh("preconnect",t,e)}function _p(t,e,n){on.L(t,e,n);var l=Kl;if(l&&t&&e){var u='link[rel="preload"][as="'+je(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+je(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+je(n.imageSizes)+'"]')):u+='[href="'+je(t)+'"]';var r=u;switch(e){case"style":r=Zl(t);break;case"script":r=Vl(t)}qe.has(r)||(t=O({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),qe.set(r,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(wa(r))||e==="script"&&l.querySelector(Ba(r))||(e=l.createElement("link"),ee(e,"link",t),Ft(e),l.head.appendChild(e)))}}function Ep(t,e){on.m(t,e);var n=Kl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+je(l)+'"][href="'+je(t)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Vl(t)}if(!qe.has(r)&&(t=O({rel:"modulepreload",href:t},e),qe.set(r,t),n.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ba(r)))return}l=n.createElement("link"),ee(l,"link",t),Ft(l),n.head.appendChild(l)}}}function Tp(t,e,n){on.S(t,e,n);var l=Kl;if(l&&t){var u=hl(l).hoistableStyles,r=Zl(t);e=e||"default";var o=u.get(r);if(!o){var y={loading:0,preload:null};if(o=l.querySelector(wa(r)))y.loading=5;else{t=O({rel:"stylesheet",href:t,"data-precedence":e},n),(n=qe.get(r))&&Ks(t,n);var g=o=l.createElement("link");Ft(g),ee(g,"link",t),g._p=new Promise(function(T,R){g.onload=T,g.onerror=R}),g.addEventListener("load",function(){y.loading|=1}),g.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ui(o,e,l)}o={type:"stylesheet",instance:o,count:1,state:y},u.set(r,o)}}}function jp(t,e){on.X(t,e);var n=Kl;if(n&&t){var l=hl(n).hoistableScripts,u=Vl(t),r=l.get(u);r||(r=n.querySelector(Ba(u)),r||(t=O({src:t,async:!0},e),(e=qe.get(u))&&Zs(t,e),r=n.createElement("script"),Ft(r),ee(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Ap(t,e){on.M(t,e);var n=Kl;if(n&&t){var l=hl(n).hoistableScripts,u=Vl(t),r=l.get(u);r||(r=n.querySelector(Ba(u)),r||(t=O({src:t,async:!0,type:"module"},e),(e=qe.get(u))&&Zs(t,e),r=n.createElement("script"),Ft(r),ee(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Sh(t,e,n,l){var u=(u=rt.current)?ai(u):null;if(!u)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Zl(n.href),n=hl(u).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Zl(n.href);var r=hl(u).hoistableStyles,o=r.get(t);if(o||(u=u.ownerDocument||u,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,o),(r=u.querySelector(wa(t)))&&!r._p&&(o.instance=r,o.state.loading=5),qe.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qe.set(t,n),r||zp(u,t,n,o.state))),e&&l===null)throw Error(c(528,""));return o}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Vl(n),n=hl(u).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Zl(t){return'href="'+je(t)+'"'}function wa(t){return'link[rel="stylesheet"]['+t+"]"}function xh(t){return O({},t,{"data-precedence":t.precedence,precedence:null})}function zp(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ee(e,"link",n),Ft(e),t.head.appendChild(e))}function Vl(t){return'[src="'+je(t)+'"]'}function Ba(t){return"script[async]"+t}function Oh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+je(n.href)+'"]');if(l)return e.instance=l,Ft(l),l;var u=O({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Ft(l),ee(l,"style",u),ui(l,n.precedence,t),e.instance=l;case"stylesheet":u=Zl(n.href);var r=t.querySelector(wa(u));if(r)return e.state.loading|=4,e.instance=r,Ft(r),r;l=xh(n),(u=qe.get(u))&&Ks(l,u),r=(t.ownerDocument||t).createElement("link"),Ft(r);var o=r;return o._p=new Promise(function(y,g){o.onload=y,o.onerror=g}),ee(r,"link",l),e.state.loading|=4,ui(r,n.precedence,t),e.instance=r;case"script":return r=Vl(n.src),(u=t.querySelector(Ba(r)))?(e.instance=u,Ft(u),u):(l=n,(u=qe.get(r))&&(l=O({},n),Zs(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ft(u),ee(u,"link",l),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&&(l=e.instance,e.state.loading|=4,ui(l,n.precedence,t));return e.instance}function ui(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,r=u,o=0;o<l.length;o++){var y=l[o];if(y.dataset.precedence===e)r=y;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ks(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Zs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ii=null;function _h(t,e,n){if(ii===null){var l=new Map,u=ii=new Map;u.set(n,l)}else u=ii,l=u.get(n),l||(l=new Map,u.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var r=n[u];if(!(r[ea]||r[Pt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var o=r.getAttribute(e)||"";o=t+o;var y=l.get(o);y?y.push(r):l.set(o,[r])}}return l}function Eh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Cp(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Th(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Mp(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Zl(l.href),r=e.querySelector(wa(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ri.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Ft(r);return}r=e.ownerDocument||e,l=xh(l),(u=qe.get(u))&&Ks(l,u),r=r.createElement("link"),Ft(r);var o=r;o._p=new Promise(function(y,g){o.onload=y,o.onerror=g}),ee(r,"link",l),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=ri.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Vs=0;function Dp(t,e){return t.stylesheets&&t.count===0&&ci(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&ci(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Vs===0&&(Vs=62500*fp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ci(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Vs?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function ri(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ci(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var si=null;function ci(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,si=new Map,e.forEach(Rp,t),si=null,ri.call(t))}function Rp(t,e){if(!(e.state.loading&4)){var n=si.get(t);if(n)var l=n.get(null);else{n=new Map,si.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var o=u[r];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),l=o)}l&&n.set(null,l)}u=e.instance,o=u.getAttribute("data-precedence"),r=n.get(o)||l,r===l&&n.set(null,u),n.set(o,u),this.count++,l=ri.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),r?r.parentNode.insertBefore(u,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Ya={$$typeof:Tt,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Up(t,e,n,l,u,r,o,y,g){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Li(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Li(0),this.hiddenUpdates=Li(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function jh(t,e,n,l,u,r,o,y,g,T,R,Q){return t=new Up(t,e,n,o,g,T,R,Q,y),e=1,r===!0&&(e|=24),r=ge(3,null,null,e),t.current=r,r.stateNode=t,e=Tr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:e},Cr(r),t}function Ah(t){return t?(t=_l,t):_l}function zh(t,e,n,l,u,r){u=Ah(u),l.context===null?l.context=u:l.pendingContext=u,l=bn(e),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=Sn(t,l,e),n!==null&&(he(n,t,e),ga(n,t,e))}function Ch(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Js(t,e){Ch(t,e),(t=t.alternate)&&Ch(t,e)}function Mh(t){if(t.tag===13||t.tag===31){var e=Zn(t,67108864);e!==null&&he(e,t,67108864),Js(t,67108864)}}function Dh(t){if(t.tag===13||t.tag===31){var e=_e();e=Gi(e);var n=Zn(t,e);n!==null&&he(n,t,e),Js(t,e)}}var oi=!0;function qp(t,e,n,l){var u=j.T;j.T=null;var r=H.p;try{H.p=2,ks(t,e,n,l)}finally{H.p=r,j.T=u}}function Qp(t,e,n,l){var u=j.T;j.T=null;var r=H.p;try{H.p=8,ks(t,e,n,l)}finally{H.p=r,j.T=u}}function ks(t,e,n,l){if(oi){var u=Fs(l);if(u===null)qs(t,e,l,fi,n),Uh(t,l);else if(Hp(u,t,e,n,l))l.stopPropagation();else if(Uh(t,l),e&4&&-1<Np.indexOf(t)){for(;u!==null;){var r=dl(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var o=Yn(r.pendingLanes);if(o!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;o;){var g=1<<31-me(o);y.entanglements[1]|=g,o&=~g}Xe(r),(Et&6)===0&&(Ju=ye()+500,qa(0))}}break;case 31:case 13:y=Zn(r,2),y!==null&&he(y,r,2),Fu(),Js(r,2)}if(r=Fs(l),r===null&&qs(t,e,l,fi,n),r===u)break;u=r}u!==null&&l.stopPropagation()}else qs(t,e,l,null,n)}}function Fs(t){return t=Pi(t),$s(t)}var fi=null;function $s(t){if(fi=null,t=fl(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===31){if(t=v(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return fi=t,null}function Rh(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xv()){case wc:return 2;case Bc:return 8;case tu:case Ov:return 32;case Yc:return 268435456;default:return 32}default:return 32}}var Ps=!1,Dn=null,Rn=null,Un=null,La=new Map,Ga=new Map,qn=[],Np="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Uh(t,e){switch(t){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":La.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ga.delete(e.pointerId)}}function Xa(t,e,n,l,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[u]},e!==null&&(e=dl(e),e!==null&&Mh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Hp(t,e,n,l,u){switch(e){case"focusin":return Dn=Xa(Dn,t,e,n,l,u),!0;case"dragenter":return Rn=Xa(Rn,t,e,n,l,u),!0;case"mouseover":return Un=Xa(Un,t,e,n,l,u),!0;case"pointerover":var r=u.pointerId;return La.set(r,Xa(La.get(r)||null,t,e,n,l,u)),!0;case"gotpointercapture":return r=u.pointerId,Ga.set(r,Xa(Ga.get(r)||null,t,e,n,l,u)),!0}return!1}function qh(t){var e=fl(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,Vc(t.priority,function(){Dh(n)});return}}else if(e===31){if(e=v(n),e!==null){t.blockedOn=e,Vc(t.priority,function(){Dh(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function di(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Fs(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);$i=l,n.target.dispatchEvent(l),$i=null}else return e=dl(n),e!==null&&Mh(e),t.blockedOn=n,!1;e.shift()}return!0}function Qh(t,e,n){di(t)&&n.delete(e)}function wp(){Ps=!1,Dn!==null&&di(Dn)&&(Dn=null),Rn!==null&&di(Rn)&&(Rn=null),Un!==null&&di(Un)&&(Un=null),La.forEach(Qh),Ga.forEach(Qh)}function hi(t,e){t.blockedOn===e&&(t.blockedOn=null,Ps||(Ps=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,wp)))}var yi=null;function Nh(t){yi!==t&&(yi=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){yi===t&&(yi=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if($s(l||n)===null)continue;break}var r=dl(n);r!==null&&(t.splice(e,3),e-=3,Fr(r,{pending:!0,data:u,method:n.method,action:l},l,u))}}))}function Jl(t){function e(g){return hi(g,t)}Dn!==null&&hi(Dn,t),Rn!==null&&hi(Rn,t),Un!==null&&hi(Un,t),La.forEach(e),Ga.forEach(e);for(var n=0;n<qn.length;n++){var l=qn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)qh(n),n.blockedOn===null&&qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var u=n[l],r=n[l+1],o=u[re]||null;if(typeof r=="function")o||Nh(n);else if(o){var y=null;if(r&&r.hasAttribute("formAction")){if(u=r,o=r[re]||null)y=o.formAction;else if($s(u)!==null)continue}else y=o.action;typeof y=="function"?n[l+1]=y:(n.splice(l,3),l-=3),Nh(n)}}}function Hh(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(o){return u=o})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Ws(t){this._internalRoot=t}vi.prototype.render=Ws.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,l=_e();zh(n,l,t,e,null,null)},vi.prototype.unmount=Ws.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zh(t.current,2,null,t,null,null),Fu(),e[ol]=null}};function vi(t){this._internalRoot=t}vi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Zc();t={blockedOn:null,target:t,priority:e};for(var n=0;n<qn.length&&e!==0&&e<qn[n].priority;n++);qn.splice(n,0,t),n===0&&qh(t)}};var wh=i.version;if(wh!=="19.2.1")throw Error(c(527,wh,"19.2.1"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=p(e),t=t!==null?z(t):null,t=t===null?null:t.stateNode,t};var Bp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{Wl=mi.inject(Bp),ve=mi}catch{}}return Za.createRoot=function(t,e){if(!f(t))throw Error(c(299));var n=!1,l="",u=Zf,r=Vf,o=Jf;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=jh(t,1,!1,null,null,n,l,null,u,r,o,Hh),t[ol]=e.current,Us(t),new Ws(e)},Za.hydrateRoot=function(t,e,n){if(!f(t))throw Error(c(299));var l=!1,u="",r=Zf,o=Vf,y=Jf,g=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(g=n.formState)),e=jh(t,1,!0,e,n??null,l,u,g,r,o,y,Hh),e.context=Ah(null),n=e.current,l=_e(),l=Gi(l),u=bn(l),u.callback=null,Sn(n,u,l),n=l,e.current.lanes=n,ta(e,n),Xe(e),t[ol]=e.current,Us(t),new vi(e)},Za.version="19.2.1",Za}var kh;function Wp(){if(kh)return ec.exports;kh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ec.exports=Pp(),ec.exports}var Ip=Wp();const t0="modulepreload",e0=function(a){return"/"+a},Fh={},n0=function(i,s,c){let f=Promise.resolve();if(s&&s.length>0){let m=function(p){return Promise.all(p.map(z=>Promise.resolve(z).then(O=>({status:"fulfilled",value:O}),O=>({status:"rejected",reason:O}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=h?.nonce||h?.getAttribute("nonce");f=m(s.map(p=>{if(p=e0(p),p in Fh)return;Fh[p]=!0;const z=p.endsWith(".css"),O=z?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${O}`))return;const C=document.createElement("link");if(C.rel=z?"stylesheet":t0,z||(C.as="script"),C.crossOrigin="",C.href=p,v&&C.setAttribute("nonce",v),document.head.appendChild(C),z)return new Promise((Y,J)=>{C.addEventListener("load",Y),C.addEventListener("error",()=>J(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(h){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=h,window.dispatchEvent(v),!v.defaultPrevented)throw h}return f.then(h=>{for(const v of h||[])v.status==="rejected"&&d(v.reason);return i().catch(d)})};var rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ul=typeof window>"u"||"Deno"in globalThis;function le(){}function l0(a,i){return typeof a=="function"?a(i):a}function yc(a){return typeof a=="number"&&a>=0&&a!==1/0}function xy(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Nn(a,i){return typeof a=="function"?a(i):a}function we(a,i){return typeof a=="function"?a(i):a}function $h(a,i){const{type:s="all",exact:c,fetchStatus:f,predicate:d,queryKey:h,stale:v}=a;if(h){if(c){if(i.queryHash!==Ec(h,i.options))return!1}else if(!ka(i.queryKey,h))return!1}if(s!=="all"){const m=i.isActive();if(s==="active"&&!m||s==="inactive"&&m)return!1}return!(typeof v=="boolean"&&i.isStale()!==v||f&&f!==i.state.fetchStatus||d&&!d(i))}function Ph(a,i){const{exact:s,status:c,predicate:f,mutationKey:d}=a;if(d){if(!i.options.mutationKey)return!1;if(s){if(Hn(i.options.mutationKey)!==Hn(d))return!1}else if(!ka(i.options.mutationKey,d))return!1}return!(c&&i.state.status!==c||f&&!f(i))}function Ec(a,i){return(i?.queryKeyHashFn||Hn)(a)}function Hn(a){return JSON.stringify(a,(i,s)=>vc(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function ka(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(s=>ka(a[s],i[s])):!1}function Tc(a,i){if(a===i)return a;const s=Wh(a)&&Wh(i);if(s||vc(a)&&vc(i)){const c=s?a:Object.keys(a),f=c.length,d=s?i:Object.keys(i),h=d.length,v=s?[]:{},m=new Set(c);let p=0;for(let z=0;z<h;z++){const O=s?z:d[z];(!s&&m.has(O)||s)&&a[O]===void 0&&i[O]===void 0?(v[O]=void 0,p++):(v[O]=Tc(a[O],i[O]),v[O]===a[O]&&a[O]!==void 0&&p++)}return f===h&&p===f?a:v}return i}function _i(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const s in a)if(a[s]!==i[s])return!1;return!0}function Wh(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function vc(a){if(!Ih(a))return!1;const i=a.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Ih(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Ih(a){return Object.prototype.toString.call(a)==="[object Object]"}function a0(a){return new Promise(i=>{setTimeout(i,a)})}function mc(a,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,i):s.structuralSharing!==!1?Tc(a,i):i}function u0(a,i,s=0){const c=[...a,i];return s&&c.length>s?c.slice(1):c}function i0(a,i,s=0){const c=[i,...a];return s&&c.length>s?c.slice(0,-1):c}var Ee=Symbol();function Oy(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===Ee?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function _y(a,i){return typeof a=="function"?a(...i):!!a}var r0=class extends rl{#e;#t;#n;constructor(){super(),this.#n=a=>{if(!ul&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#n=a,this.#t?.(),this.#t=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#e!==a&&(this.#e=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},jc=new r0,s0=class extends rl{#e=!0;#t;#n;constructor(){super(),this.#n=a=>{if(!ul&&window.addEventListener){const i=()=>a(!0),s=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#n=a,this.#t?.(),this.#t=a(this.setOnline.bind(this))}setOnline(a){this.#e!==a&&(this.#e=a,this.listeners.forEach(s=>{s(a)}))}isOnline(){return this.#e}},Ei=new s0;function pc(){let a,i;const s=new Promise((f,d)=>{a=f,i=d});s.status="pending",s.catch(()=>{});function c(f){Object.assign(s,f),delete s.resolve,delete s.reject}return s.resolve=f=>{c({status:"fulfilled",value:f}),a(f)},s.reject=f=>{c({status:"rejected",reason:f}),i(f)},s}function c0(a){return Math.min(1e3*2**a,3e4)}function Ey(a){return(a??"online")==="online"?Ei.isOnline():!0}var Ty=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function uc(a){return a instanceof Ty}function jy(a){let i=!1,s=0,c=!1,f;const d=pc(),h=N=>{c||(C(new Ty(N)),a.abort?.())},v=()=>{i=!0},m=()=>{i=!1},p=()=>jc.isFocused()&&(a.networkMode==="always"||Ei.isOnline())&&a.canRun(),z=()=>Ey(a.networkMode)&&a.canRun(),O=N=>{c||(c=!0,a.onSuccess?.(N),f?.(),d.resolve(N))},C=N=>{c||(c=!0,a.onError?.(N),f?.(),d.reject(N))},Y=()=>new Promise(N=>{f=$=>{(c||p())&&N($)},a.onPause?.()}).then(()=>{f=void 0,c||a.onContinue?.()}),J=()=>{if(c)return;let N;const $=s===0?a.initialPromise:void 0;try{N=$??a.fn()}catch(at){N=Promise.reject(at)}Promise.resolve(N).then(O).catch(at=>{if(c)return;const dt=a.retry??(ul?0:3),Tt=a.retryDelay??c0,Qt=typeof Tt=="function"?Tt(s,at):Tt,F=dt===!0||typeof dt=="number"&&s<dt||typeof dt=="function"&&dt(s,at);if(i||!F){C(at);return}s++,a.onFail?.(s,at),a0(Qt).then(()=>p()?void 0:Y()).then(()=>{i?C(at):J()})})};return{promise:d,cancel:h,continue:()=>(f?.(),d),cancelRetry:v,continueRetry:m,canStart:z,start:()=>(z()?J():Y().then(J),d)}}var o0=a=>setTimeout(a,0);function f0(){let a=[],i=0,s=v=>{v()},c=v=>{v()},f=o0;const d=v=>{i?a.push(v):f(()=>{s(v)})},h=()=>{const v=a;a=[],v.length&&f(()=>{c(()=>{v.forEach(m=>{s(m)})})})};return{batch:v=>{let m;i++;try{m=v()}finally{i--,i||h()}return m},batchCalls:v=>(...m)=>{d(()=>{v(...m)})},schedule:d,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{c=v},setScheduler:v=>{f=v}}}var Bt=f0(),Ay=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yc(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(ul?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},d0=class extends Ay{#e;#t;#n;#l;#a;#u;#r;constructor(a){super(),this.#r=!1,this.#u=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#n=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=h0(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){this.options={...this.#u,...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(a,i){const s=mc(this.state.data,a,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(le).catch(le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(a=>we(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ee||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Nn(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!xy(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#r?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(a,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const s=new AbortController,c=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)})},f=()=>{const m=Oy(this.options,i),z=(()=>{const O={client:this.#l,queryKey:this.queryKey,meta:this.meta};return c(O),O})();return this.#r=!1,this.options.persister?this.options.persister(m,z,this):m(z)},h=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:f};return c(m),m})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta});const v=m=>{uc(m)&&m.silent||this.#i({type:"error",error:m}),uc(m)||(this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this)),this.scheduleGc()};return this.#a=jy({initialPromise:i?.initialPromise,fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:m=>{if(m===void 0){v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(p){v(p);return}this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),this.scheduleGc()},onError:v,onFail:(m,p)=>{this.#i({type:"failed",failureCount:m,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(a){const i=s=>{switch(a.type){case"failed":return{...s,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...zy(s.data,this.options),fetchMeta:a.meta??null};case"success":return this.#t=void 0,{...s,data:a.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const c=a.error;return uc(c)&&c.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...a.state}}};this.state=i(this.state),Bt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:a})})}};function zy(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ey(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function h0(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,s=i!==void 0,c=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var y0=class extends rl{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,s){const c=i.queryKey,f=i.queryHash??Ec(c,i);let d=this.get(f);return d||(d=new d0({client:a,queryKey:c,queryHash:f,options:a.defaultQueryOptions(i),state:s,defaultOptions:a.getQueryDefaults(c)}),this.add(d)),d}add(a){this.#e.has(a.queryHash)||(this.#e.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#e.get(a.queryHash);i&&(a.destroy(),i===a&&this.#e.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Bt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#e.get(a)}getAll(){return[...this.#e.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(s=>$h(i,s))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(s=>$h(a,s)):i}notify(a){Bt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},v0=class extends Ay{#e;#t;#n;constructor(a){super(),this.mutationId=a.mutationId,this.#t=a.mutationCache,this.#e=[],this.state=a.state||Cy(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#l({type:"continue"})};this.#n=jy({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#l({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#l({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",c=!this.#n.canStart();try{if(s)i();else{this.#l({type:"pending",variables:a,isPaused:c}),await this.#t.config.onMutate?.(a,this);const d=await this.options.onMutate?.(a);d!==this.state.context&&this.#l({type:"pending",context:d,variables:a,isPaused:c})}const f=await this.#n.start();return await this.#t.config.onSuccess?.(f,a,this.state.context,this),await this.options.onSuccess?.(f,a,this.state.context),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(f,null,a,this.state.context),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#t.config.onError?.(f,a,this.state.context,this),await this.options.onError?.(f,a,this.state.context),await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,f,a,this.state.context),f}finally{this.#l({type:"error",error:f})}}finally{this.#t.runNext(this)}}#l(a){const i=s=>{switch(a.type){case"failed":return{...s,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...s,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:a.error,failureCount:s.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Bt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(a)}),this.#t.notify({mutation:this,type:"updated",action:a})})}};function Cy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var m0=class extends rl{constructor(a={}){super(),this.config=a,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(a,i,s){const c=new v0({mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:s});return this.add(c),c}add(a){this.#e.add(a);const i=pi(a);if(typeof i=="string"){const s=this.#t.get(i);s?s.push(a):this.#t.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#e.delete(a)){const i=pi(a);if(typeof i=="string"){const s=this.#t.get(i);if(s)if(s.length>1){const c=s.indexOf(a);c!==-1&&s.splice(c,1)}else s[0]===a&&this.#t.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=pi(a);if(typeof i=="string"){const c=this.#t.get(i)?.find(f=>f.state.status==="pending");return!c||c===a}else return!0}runNext(a){const i=pi(a);return typeof i=="string"?this.#t.get(i)?.find(c=>c!==a&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Bt.batch(()=>{this.#e.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Ph(i,s))}findAll(a={}){return this.getAll().filter(i=>Ph(a,i))}notify(a){Bt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Bt.batch(()=>Promise.all(a.map(i=>i.continue().catch(le))))}};function pi(a){return a.options.scope?.id}function Ti(a){return{onFetch:(i,s)=>{const c=i.options,f=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let v={pages:[],pageParams:[]},m=0;const p=async()=>{let z=!1;const O=J=>{Object.defineProperty(J,"signal",{enumerable:!0,get:()=>(i.signal.aborted?z=!0:i.signal.addEventListener("abort",()=>{z=!0}),i.signal)})},C=Oy(i.options,i.fetchOptions),Y=async(J,N,$)=>{if(z)return Promise.reject();if(N==null&&J.pages.length)return Promise.resolve(J);const dt=(()=>{const X={client:i.client,queryKey:i.queryKey,pageParam:N,direction:$?"backward":"forward",meta:i.options.meta};return O(X),X})(),Tt=await C(dt),{maxPages:Qt}=i.options,F=$?i0:u0;return{pages:F(J.pages,Tt,Qt),pageParams:F(J.pageParams,N,Qt)}};if(f&&d.length){const J=f==="backward",N=J?My:gc,$={pages:d,pageParams:h},at=N(c,$);v=await Y($,at,J)}else{const J=a??d.length;do{const N=m===0?h[0]??c.initialPageParam:gc(c,v);if(m>0&&N==null)break;v=await Y(v,N),m++}while(m<J)}return v};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=p}}}function gc(a,{pages:i,pageParams:s}){const c=i.length-1;return i.length>0?a.getNextPageParam(i[c],i,s[c],s):void 0}function My(a,{pages:i,pageParams:s}){return i.length>0?a.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function p0(a,i){return i?gc(a,i)!=null:!1}function g0(a,i){return!i||!a.getPreviousPageParam?!1:My(a,i)!=null}var b0=class{#e;#t;#n;#l;#a;#u;#r;#i;constructor(a={}){this.#e=a.queryCache||new y0,this.#t=a.mutationCache||new m0,this.#n=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=jc.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Ei.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#e.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#t.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),s=this.#e.build(this,i),c=s.state.data;return c===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(Nn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(a){return this.#e.findAll(a).map(({queryKey:i,state:s})=>{const c=s.data;return[i,c]})}setQueryData(a,i,s){const c=this.defaultQueryOptions({queryKey:a}),d=this.#e.get(c.queryHash)?.state.data,h=l0(i,d);if(h!==void 0)return this.#e.build(this,c).setData(h,{...s,manual:!0})}setQueriesData(a,i,s){return Bt.batch(()=>this.#e.findAll(a).map(({queryKey:c})=>[c,this.setQueryData(c,i,s)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state}removeQueries(a){const i=this.#e;Bt.batch(()=>{i.findAll(a).forEach(s=>{i.remove(s)})})}resetQueries(a,i){const s=this.#e;return Bt.batch(()=>(s.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const s={revert:!0,...i},c=Bt.batch(()=>this.#e.findAll(a).map(f=>f.cancel(s)));return Promise.all(c).then(le).catch(le)}invalidateQueries(a,i={}){return Bt.batch(()=>(this.#e.findAll(a).forEach(s=>{s.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},c=Bt.batch(()=>this.#e.findAll(a).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let d=f.fetch(void 0,s);return s.throwOnError||(d=d.catch(le)),f.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(le)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const s=this.#e.build(this,i);return s.isStaleByTime(Nn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(le).catch(le)}fetchInfiniteQuery(a){return a.behavior=Ti(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(le).catch(le)}ensureInfiniteQueryData(a){return a.behavior=Ti(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Ei.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#l.set(Hn(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],s={};return i.forEach(c=>{ka(a,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(a,i){this.#a.set(Hn(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],s={};return i.forEach(c=>{ka(a,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Ec(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Ee&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Fa=class extends rl{constructor(a,i){super(),this.options=i,this.#e=a,this.#i=null,this.#r=pc(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#l=void 0;#a;#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),ty(this.#t,this.options)?this.#y():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#x(),this.#t.removeObserver(this)}setOptions(a){const i=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof we(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&&!_i(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const c=this.hasListeners();c&&ey(this.#t,s,this.options,i)&&this.#y(),this.updateResult(),c&&(this.#t!==s||we(this.options.enabled,this.#t)!==we(i.enabled,this.#t)||Nn(this.options.staleTime,this.#t)!==Nn(i.staleTime,this.#t))&&this.#m();const f=this.#p();c&&(this.#t!==s||we(this.options.enabled,this.#t)!==we(i.enabled,this.#t)||f!==this.#s)&&this.#g(f)}getOptimisticResult(a){const i=this.#e.getQueryCache().build(this.#e,a),s=this.createResult(i,a);return x0(this,s)&&(this.#l=s,this.#u=this.options,this.#a=this.#t.state),s}getCurrentResult(){return this.#l}trackResult(a,i){return new Proxy(a,{get:(s,c)=>(this.trackProp(c),i?.(c),Reflect.get(s,c))})}trackProp(a){this.#v.add(a)}getCurrentQuery(){return this.#t}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#e.defaultQueryOptions(a),s=this.#e.getQueryCache().build(this.#e,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(a){return this.#y({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#y(a){this.#O();let i=this.#t.fetch(this.options,a);return a?.throwOnError||(i=i.catch(le)),i}#m(){this.#S();const a=Nn(this.options.staleTime,this.#t);if(ul||this.#l.isStale||!yc(a))return;const s=xy(this.#l.dataUpdatedAt,a)+1;this.#c=setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(a){this.#x(),this.#s=a,!(ul||we(this.options.enabled,this.#t)===!1||!yc(this.#s)||this.#s===0)&&(this.#o=setInterval(()=>{(this.options.refetchIntervalInBackground||jc.isFocused())&&this.#y()},this.#s))}#b(){this.#m(),this.#g(this.#p())}#S(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#x(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}createResult(a,i){const s=this.#t,c=this.options,f=this.#l,d=this.#a,h=this.#u,m=a!==s?a.state:this.#n,{state:p}=a;let z={...p},O=!1,C;if(i._optimisticResults){const K=this.hasListeners(),G=!K&&ty(a,i),et=K&&ey(a,s,i,c);(G||et)&&(z={...z,...zy(p.data,a.options)}),i._optimisticResults==="isRestoring"&&(z.fetchStatus="idle")}let{error:Y,errorUpdatedAt:J,status:N}=z;C=z.data;let $=!1;if(i.placeholderData!==void 0&&C===void 0&&N==="pending"){let K;f?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(K=f.data,$=!0):K=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,K!==void 0&&(N="success",C=mc(f?.data,K,i),O=!0)}if(i.select&&C!==void 0&&!$)if(f&&C===d?.data&&i.select===this.#h)C=this.#f;else try{this.#h=i.select,C=i.select(C),C=mc(f?.data,C,i),this.#f=C,this.#i=null}catch(K){this.#i=K}this.#i&&(Y=this.#i,C=this.#f,J=Date.now(),N="error");const at=z.fetchStatus==="fetching",dt=N==="pending",Tt=N==="error",Qt=dt&&at,F=C!==void 0,D={status:N,fetchStatus:z.fetchStatus,isPending:dt,isSuccess:N==="success",isError:Tt,isInitialLoading:Qt,isLoading:Qt,data:C,dataUpdatedAt:z.dataUpdatedAt,error:Y,errorUpdatedAt:J,failureCount:z.fetchFailureCount,failureReason:z.fetchFailureReason,errorUpdateCount:z.errorUpdateCount,isFetched:z.dataUpdateCount>0||z.errorUpdateCount>0,isFetchedAfterMount:z.dataUpdateCount>m.dataUpdateCount||z.errorUpdateCount>m.errorUpdateCount,isFetching:at,isRefetching:at&&!dt,isLoadingError:Tt&&!F,isPaused:z.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:Tt&&F,isStale:Ac(a,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const K=I=>{D.status==="error"?I.reject(D.error):D.data!==void 0&&I.resolve(D.data)},G=()=>{const I=this.#r=D.promise=pc();K(I)},et=this.#r;switch(et.status){case"pending":a.queryHash===s.queryHash&&K(et);break;case"fulfilled":(D.status==="error"||D.data!==et.value)&&G();break;case"rejected":(D.status!=="error"||D.error!==et.reason)&&G();break}}return D}updateResult(){const a=this.#l,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#u=this.options,this.#a.data!==void 0&&(this.#d=this.#t),_i(i,a))return;this.#l=i;const s=()=>{if(!a)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!this.#v.size)return!0;const d=new Set(f??this.#v);return this.options.throwOnError&&d.add("error"),Object.keys(this.#l).some(h=>{const v=h;return this.#l[v]!==a[v]&&d.has(v)})};this.#_({listeners:s()})}#O(){const a=this.#e.getQueryCache().build(this.#e,this.options);if(a===this.#t)return;const i=this.#t;this.#t=a,this.#n=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(a){Bt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function S0(a,i){return we(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function ty(a,i){return S0(a,i)||a.state.data!==void 0&&bc(a,i,i.refetchOnMount)}function bc(a,i,s){if(we(i.enabled,a)!==!1&&Nn(i.staleTime,a)!=="static"){const c=typeof s=="function"?s(a):s;return c==="always"||c!==!1&&Ac(a,i)}return!1}function ey(a,i,s,c){return(a!==i||we(c.enabled,a)===!1)&&(!s.suspense||a.state.status!=="error")&&Ac(a,s)}function Ac(a,i){return we(i.enabled,a)!==!1&&a.isStaleByTime(Nn(i.staleTime,a))}function x0(a,i){return!_i(a.getCurrentResult(),i)}function ny(a,i){const s=new Set(i);return a.filter(c=>!s.has(c))}function O0(a,i,s){const c=a.slice(0);return c[i]=s,c}var _0=class extends rl{#e;#t;#n;#l;#a;#u;#r;#i;#h=[];constructor(a,i,s){super(),this.#e=a,this.#l=s,this.#n=[],this.#a=[],this.#t=[],this.setQueries(i)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(a=>{a.subscribe(i=>{this.#o(a,i)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(a=>{a.destroy()})}setQueries(a,i){this.#n=a,this.#l=i,Bt.batch(()=>{const s=this.#a,c=this.#c(this.#n);this.#h=c,c.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const f=c.map(v=>v.observer),d=f.map(v=>v.getCurrentResult()),h=f.some((v,m)=>v!==s[m]);s.length===f.length&&!h||(this.#a=f,this.#t=d,this.hasListeners()&&(ny(s,f).forEach(v=>{v.destroy()}),ny(f,s).forEach(v=>{v.subscribe(m=>{this.#o(v,m)})}),this.#s()))})}getCurrentResult(){return this.#t}getQueries(){return this.#a.map(a=>a.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(a,i){const s=this.#c(a),c=s.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions));return[c,f=>this.#d(f??c,i),()=>this.#f(c,s)]}#f(a,i){return i.map((s,c)=>{const f=a[c];return s.defaultedQueryOptions.notifyOnChangeProps?f:s.observer.trackResult(f,d=>{i.forEach(h=>{h.observer.trackProp(d)})})})}#d(a,i){return i?((!this.#u||this.#t!==this.#i||i!==this.#r)&&(this.#r=i,this.#i=this.#t,this.#u=Tc(this.#u,i(a))),this.#u):a}#c(a){const i=new Map(this.#a.map(c=>[c.options.queryHash,c])),s=[];return a.forEach(c=>{const f=this.#e.defaultQueryOptions(c),d=i.get(f.queryHash);d?s.push({defaultedQueryOptions:f,observer:d}):s.push({defaultedQueryOptions:f,observer:new Fa(this.#e,f)})}),s}#o(a,i){const s=this.#a.indexOf(a);s!==-1&&(this.#t=O0(this.#t,s,i),this.#s())}#s(){if(this.hasListeners()){const a=this.#u,i=this.#f(this.#t,this.#h),s=this.#d(i,this.#l?.combine);a!==s&&Bt.batch(()=>{this.listeners.forEach(c=>{c(this.#t)})})}}},Dy=class extends Fa{constructor(a,i){super(a,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){super.setOptions({...a,behavior:Ti()})}getOptimisticResult(a){return a.behavior=Ti(),super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,i){const{state:s}=a,c=super.createResult(a,i),{isFetching:f,isRefetching:d,isError:h,isRefetchError:v}=c,m=s.fetchMeta?.fetchMore?.direction,p=h&&m==="forward",z=f&&m==="forward",O=h&&m==="backward",C=f&&m==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:p0(i,s.data),hasPreviousPage:g0(i,s.data),isFetchNextPageError:p,isFetchingNextPage:z,isFetchPreviousPageError:O,isFetchingPreviousPage:C,isRefetchError:v&&!p&&!O,isRefetching:d&&!z&&!C}}},E0=class extends rl{#e;#t=void 0;#n;#l;constructor(i,s){super(),this.#e=i,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const s=this.options;this.options=this.#e.defaultMutationOptions(i),_i(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&Hn(s.mutationKey)!==Hn(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#u(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#u()}mutate(i,s){return this.#l=s,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??Cy();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.#l&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context;i?.type==="success"?(this.#l.onSuccess?.(i.data,s,c),this.#l.onSettled?.(i.data,null,s,c)):i?.type==="error"&&(this.#l.onError?.(i.error,s,c),this.#l.onSettled?.(void 0,i.error,s,c))}this.listeners.forEach(s=>{s(this.#t)})})}},Ry=L.createContext(void 0),$a=a=>{const i=L.useContext(Ry);if(a)return a;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},T0=({client:a,children:i})=>(L.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),_.jsx(Ry.Provider,{value:a,children:i})),Uy=L.createContext(!1),qy=()=>L.useContext(Uy);Uy.Provider;function j0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var A0=L.createContext(j0()),Qy=()=>L.useContext(A0),Ny=(a,i)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(i.isReset()||(a.retryOnMount=!1))},Hy=a=>{L.useEffect(()=>{a.clearReset()},[a])},wy=({result:a,errorResetBoundary:i,throwOnError:s,query:c,suspense:f})=>a.isError&&!i.isReset()&&!a.isFetching&&c&&(f&&a.data===void 0||_y(s,[a.error,c])),zc=(a,i)=>i.state.data===void 0,By=a=>{if(a.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=a.staleTime;a.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},Yy=(a,i)=>a.isLoading&&a.isFetching&&!i,Sc=(a,i)=>a?.suspense&&i.isPending,ji=(a,i,s)=>i.fetchOptimistic(a).catch(()=>{s.clearReset()});function Ly({queries:a,...i},s){const c=$a(s),f=qy(),d=Qy(),h=L.useMemo(()=>a.map(N=>{const $=c.defaultQueryOptions(N);return $._optimisticResults=f?"isRestoring":"optimistic",$}),[a,c,f]);h.forEach(N=>{By(N),Ny(N,d)}),Hy(d);const[v]=L.useState(()=>new _0(c,h,i)),[m,p,z]=v.getOptimisticResult(h,i.combine),O=!f&&i.subscribed!==!1;L.useSyncExternalStore(L.useCallback(N=>O?v.subscribe(Bt.batchCalls(N)):le,[v,O]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),L.useEffect(()=>{v.setQueries(h,i)},[h,i,v]);const Y=m.some((N,$)=>Sc(h[$],N))?m.flatMap((N,$)=>{const at=h[$];if(at){const dt=new Fa(c,at);if(Sc(at,N))return ji(at,dt,d);Yy(N,f)&&ji(at,dt,d)}return[]}):[];if(Y.length>0)throw Promise.all(Y);const J=m.find((N,$)=>{const at=h[$];return at&&wy({result:N,errorResetBoundary:d,throwOnError:at.throwOnError,query:c.getQueryCache().get(at.queryHash),suspense:at.suspense})});if(J?.error)throw J.error;return p(z())}function Ci(a,i,s){const c=qy(),f=Qy(),d=$a(s),h=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=c?"isRestoring":"optimistic",By(h),Ny(h,f),Hy(f);const v=!d.getQueryCache().get(h.queryHash),[m]=L.useState(()=>new i(d,h)),p=m.getOptimisticResult(h),z=!c&&a.subscribed!==!1;if(L.useSyncExternalStore(L.useCallback(O=>{const C=z?m.subscribe(Bt.batchCalls(O)):le;return m.updateResult(),C},[m,z]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),L.useEffect(()=>{m.setOptions(h)},[h,m]),Sc(h,p))throw ji(h,m,f);if(wy({result:p,errorResetBoundary:f,throwOnError:h.throwOnError,query:d.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw p.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(h,p),h.experimental_prefetchInRender&&!ul&&Yy(p,c)&&(v?ji(h,m,f):d.getQueryCache().get(h.queryHash)?.promise)?.catch(le).finally(()=>{m.updateResult()}),h.notifyOnChangeProps?p:m.trackResult(p)}function z0(a,i){return Ci(a,Fa,i)}function C0(a,i){return Ci({...a,enabled:!0,suspense:!0,throwOnError:zc,placeholderData:void 0},Fa,i)}function M0(a,i){return Ci({...a,enabled:!0,suspense:!0,throwOnError:zc},Dy,i)}function D0(a,i){return Ly({...a,queries:a.queries.map(s=>({...s,suspense:!0,throwOnError:zc,enabled:!0,placeholderData:void 0}))},i)}function R0(a,i){const s=$a(i);s.getQueryState(a.queryKey)||s.prefetchQuery(a)}function U0(a,i){const s=$a(i);s.getQueryState(a.queryKey)||s.prefetchInfiniteQuery(a)}function q0(a,i){const s=$a(i),[c]=L.useState(()=>new E0(s,a));L.useEffect(()=>{c.setOptions(a)},[c,a]);const f=L.useSyncExternalStore(L.useCallback(h=>c.subscribe(Bt.batchCalls(h)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=L.useCallback((h,v)=>{c.mutate(h,v).catch(le)},[c]);if(f.error&&_y(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:d,mutateAsync:f.mutate}}function Q0(a,i){return Ci(a,Dy,i)}function N0(a,i){if(a instanceof RegExp)return{keys:!1,pattern:a};var s,c,f,d,h=[],v="",m=a.split("/");for(m[0]||m.shift();f=m.shift();)s=f[0],s==="*"?(h.push(s),v+=f[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(c=f.indexOf("?",1),d=f.indexOf(".",1),h.push(f.substring(1,~c?c:~d?d:f.length)),v+=~c&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(v+=(~c?"?":"")+"\\"+f.substring(d))):v+="/"+f;return{keys:h,pattern:new RegExp("^"+v+(i?"(?=$|/)":"/?$"),"i")}}var ic={exports:{}},rc={};/**
 * @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 ly;function H0(){if(ly)return rc;ly=1;var a=zi();function i(O,C){return O===C&&(O!==0||1/O===1/C)||O!==O&&C!==C}var s=typeof Object.is=="function"?Object.is:i,c=a.useState,f=a.useEffect,d=a.useLayoutEffect,h=a.useDebugValue;function v(O,C){var Y=C(),J=c({inst:{value:Y,getSnapshot:C}}),N=J[0].inst,$=J[1];return d(function(){N.value=Y,N.getSnapshot=C,m(N)&&$({inst:N})},[O,Y,C]),f(function(){return m(N)&&$({inst:N}),O(function(){m(N)&&$({inst:N})})},[O]),h(Y),Y}function m(O){var C=O.getSnapshot;O=O.value;try{var Y=C();return!s(O,Y)}catch{return!0}}function p(O,C){return C()}var z=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:v;return rc.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:z,rc}var ay;function w0(){return ay||(ay=1,ic.exports=H0()),ic.exports}var B0=w0();const Y0=Sy.useInsertionEffect,L0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",G0=L0?L.useLayoutEffect:L.useEffect,X0=Y0||G0,Gy=a=>{const i=L.useRef([a,(...s)=>i[0](...s)]).current;return X0(()=>{i[0]=a}),i[1]},K0="popstate",Cc="pushState",Mc="replaceState",Z0="hashchange",uy=[K0,Cc,Mc,Z0],V0=a=>{for(const i of uy)addEventListener(i,a);return()=>{for(const i of uy)removeEventListener(i,a)}},Xy=(a,i)=>B0.useSyncExternalStore(V0,a,i),J0=()=>location.search,k0=({ssrSearch:a=""}={})=>Xy(J0,()=>a),iy=()=>location.pathname,F0=({ssrPath:a}={})=>Xy(iy,a?()=>a:iy),$0=(a,{replace:i=!1,state:s=null}={})=>history[i?Mc:Cc](s,"",a),P0=(a={})=>[F0(a),$0],ry=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[ry]>"u"){for(const a of[Cc,Mc]){const i=history[a];history[a]=function(){const s=i.apply(this,arguments),c=new Event(a);return c.arguments=arguments,dispatchEvent(c),s}}Object.defineProperty(window,ry,{value:!0})}const W0=(a,i)=>i.toLowerCase().indexOf(a.toLowerCase())?"~"+i:i.slice(a.length)||"/",Ky=(a="")=>a==="/"?"":a,I0=(a,i)=>a[0]==="~"?a.slice(1):Ky(i)+a,tg=(a="",i)=>W0(xc(Ky(a)),xc(i)),eg=a=>a[0]==="?"?a.slice(1):a,xc=a=>{try{return decodeURI(a)}catch{return a}},ng=a=>xc(eg(a)),Zy={hook:P0,searchHook:k0,parser:N0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:a=>a},Vy=L.createContext(Zy),$l=()=>L.useContext(Vy),Jy={},ky=L.createContext(Jy),Dc=()=>L.useContext(ky),Mi=a=>{const[i,s]=a.hook(a);return[tg(a.base,i),Gy((c,f)=>s(I0(c,a.base),f))]},lg=()=>Mi($l()),ag=()=>{const a=$l();return ng(a.searchHook(a))},Fy=(a,i,s,c)=>{const{pattern:f,keys:d}=i instanceof RegExp?{keys:!1,pattern:i}:a(i||"*",c),h=f.exec(s)||[],[v,...m]=h;return v!==void 0?[!0,(()=>{const p=d!==!1?Object.fromEntries(d.map((O,C)=>[O,m[C]])):h.groups;let z={...m};return p&&Object.assign(z,p),z})(),...c?[v]:[]]:[!1,null]},ug=({children:a,...i})=>{const s=$l(),c=i.hook?Zy:s;let f=c;const[d,h]=i.ssrPath?.split("?")??[];h&&(i.ssrSearch=h,i.ssrPath=d),i.hrefs=i.hrefs??i.hook?.hrefs;let v=L.useRef({}),m=v.current,p=m;for(let z in c){const O=z==="base"?c[z]+(i[z]||""):i[z]||c[z];m===p&&O!==p[z]&&(v.current=p={...p}),p[z]=O,O!==c[z]&&(f=p)}return L.createElement(Vy.Provider,{value:f,children:a})},sy=({children:a,component:i},s)=>i?L.createElement(i,{params:s}):typeof a=="function"?a(s):a,ig=a=>{let i=L.useRef(Jy),s=i.current;for(const c in a)a[c]!==s[c]&&(s=a);return Object.keys(a).length===0&&(s=a),i.current=s},kl=({path:a,nest:i,match:s,...c})=>{const f=$l(),[d]=Mi(f),[h,v,m]=s??Fy(f.parser,a,d,i),p=ig({...Dc(),...v});if(!h)return null;const z=m?L.createElement(ug,{base:m},sy(c,p)):sy(c,p);return L.createElement(ky.Provider,{value:p,children:z})};L.forwardRef((a,i)=>{const s=$l(),[c,f]=Mi(s),{to:d="",href:h=d,onClick:v,asChild:m,children:p,className:z,replace:O,state:C,...Y}=a,J=Gy($=>{$.ctrlKey||$.metaKey||$.altKey||$.shiftKey||$.button!==0||(v?.($),$.defaultPrevented||($.preventDefault(),f(h,a)))}),N=s.hrefs(h[0]==="~"?h.slice(1):s.base+h,s);return m&&L.isValidElement(p)?L.cloneElement(p,{onClick:J,href:N}):L.createElement("a",{...Y,onClick:J,href:N,className:z?.call?z(c===h):z,children:p,ref:i})});const $y=a=>Array.isArray(a)?a.flatMap(i=>$y(i&&i.type===L.Fragment?i.props.children:i)):[a],rg=({children:a,location:i})=>{const s=$l(),[c]=Mi(s);for(const f of $y(a)){let d=0;if(L.isValidElement(f)&&(d=Fy(s.parser,f.props.path,i||c,f.props.nest))[0])return L.cloneElement(f,{match:d})}return null};function il(a){return!!a&&!Array.isArray(a)&&typeof a=="object"}const sg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Py(a){return sg&&il(a)&&Symbol.asyncIterator in a}var cg=Object.create,Wy=Object.defineProperty,og=Object.getOwnPropertyDescriptor,Iy=Object.getOwnPropertyNames,fg=Object.getPrototypeOf,dg=Object.prototype.hasOwnProperty,Pa=(a,i)=>function(){return i||(0,a[Iy(a)[0]])((i={exports:{}}).exports,i),i.exports},hg=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=Iy(i),d=0,h=f.length,v;d<h;d++)v=f[d],!dg.call(a,v)&&v!==s&&Wy(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(c=og(i,v))||c.enumerable});return a},Di=(a,i,s)=>(s=a!=null?cg(fg(a)):{},hg(Wy(s,"default",{value:a,enumerable:!0}),a));const tv=()=>{},cy=a=>{Object.freeze&&Object.freeze(a)};function ev(a,i,s){var c;const f=i.join(".");return(c=s[f])!==null&&c!==void 0||(s[f]=new Proxy(tv,{get(d,h){if(!(typeof h!="string"||h==="then"))return ev(a,[...i,h],s)},apply(d,h,v){const m=i[i.length-1];let p={args:v,path:i};return m==="call"?p={args:v.length>=2?[v[1]]:[],path:i.slice(0,-1)}:m==="apply"&&(p={args:v.length>=2?v[1]:[],path:i.slice(0,-1)}),cy(p.args),cy(p.path),a(p)}})),s[f]}const Ri=a=>ev(a,[],Object.create(null)),Rc=a=>new Proxy(tv,{get(i,s){if(s!=="then")return a(s)}});var nv=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),yg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=nv().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var v=h.call(f,d||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),vg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=nv().default,c=yg();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),lv=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=vg();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Uc=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=lv();function c(d,h){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);h&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function f(d){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?c(Object(v),!0).forEach(function(m){s(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):c(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});Di(Uc());Di(lv());var gi=Di(Uc());function mg(a,i){if("error"in a){const c=i.deserialize(a.error);return{ok:!1,error:(0,gi.default)((0,gi.default)({},a),{},{error:c})}}return{ok:!0,result:(0,gi.default)((0,gi.default)({},a.result),(!a.result.type||a.result.type==="data")&&{type:"data",data:i.deserialize(a.result.data)})}}var sc=class extends Error{constructor(){super("Unable to transform response from server")}};function pg(a,i){let s;try{s=mg(a,i)}catch{throw new sc}if(!s.ok&&(!il(s.error.error)||typeof s.error.error.code!="number"))throw new sc;if(s.ok&&!il(s.result))throw new sc;return s}Di(Uc());function Ui(a){const i={subscribe(s){let c=null,f=!1,d=!1,h=!1;function v(){if(c===null){h=!0;return}d||(d=!0,typeof c=="function"?c():c&&c.unsubscribe())}return c=a({next(m){var p;f||(p=s.next)===null||p===void 0||p.call(s,m)},error(m){var p;f||(f=!0,(p=s.error)===null||p===void 0||p.call(s,m),v())},complete(){var m;f||(f=!0,(m=s.complete)===null||m===void 0||m.call(s),v())}}),h&&v(),{unsubscribe:v}},pipe(...s){return s.reduce(gg,i)}};return i}function gg(a,i){return i(a)}function bg(a){const i=new AbortController;return new Promise((c,f)=>{let d=!1;function h(){d||(d=!0,v.unsubscribe())}i.signal.addEventListener("abort",()=>{f(i.signal.reason)});const v=a.subscribe({next(m){d=!0,c(m),h()},error(m){f(m)},complete(){i.abort(),h()}})})}var Sg=Object.create,av=Object.defineProperty,xg=Object.getOwnPropertyDescriptor,uv=Object.getOwnPropertyNames,Og=Object.getPrototypeOf,_g=Object.prototype.hasOwnProperty,wn=(a,i)=>function(){return i||(0,a[uv(a)[0]])((i={exports:{}}).exports,i),i.exports},Eg=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=uv(i),d=0,h=f.length,v;d<h;d++)v=f[d],!_g.call(a,v)&&v!==s&&av(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(c=xg(i,v))||c.enumerable});return a},sl=(a,i,s)=>(s=a!=null?Sg(Og(a)):{},Eg(i||!a||!a.__esModule?av(s,"default",{value:a,enumerable:!0}):s,a)),Tg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,i){function s(c,f){if(c==null)return{};var d={};for(var h in c)if({}.hasOwnProperty.call(c,h)){if(f.includes(h))continue;d[h]=c[h]}return d}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),jg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(a,i){var s=Tg();function c(f,d){if(f==null)return{};var h,v,m=s(f,d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);for(v=0;v<p.length;v++)h=p[v],d.includes(h)||{}.propertyIsEnumerable.call(f,h)&&(m[h]=f[h])}return m}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),iv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ag=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=iv().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var v=h.call(f,d||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),zg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=iv().default,c=Ag();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Cg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=zg();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Wa=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=Cg();function c(d,h){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);h&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function f(d){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?c(Object(v),!0).forEach(function(m){s(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):c(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Mg=sl(jg(),1),oy=sl(Wa(),1);const Dg=["cursor","direction"];function Ke(a,i,s){const c=a.flatMap(f=>f.split("."));if(!i&&(!s||s==="any"))return c.length?[c]:[];if(s==="infinite"&&il(i)&&("direction"in i||"cursor"in i)){const{cursor:f,direction:d}=i,h=(0,Mg.default)(i,Dg);return[c,{input:h,type:"infinite"}]}return[c,(0,oy.default)((0,oy.default)({},typeof i<"u"&&i!==Ee&&{input:i}),s&&s!=="any"&&{type:s})]}function xi(a){return Ke(a,void 0,"any")}var Rg=Object.create,rv=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,sv=Object.getOwnPropertyNames,qg=Object.getPrototypeOf,Qg=Object.prototype.hasOwnProperty,Ze=(a,i)=>function(){return i||(0,a[sv(a)[0]])((i={exports:{}}).exports,i),i.exports},Ng=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=sv(i),d=0,h=f.length,v;d<h;d++)v=f[d],!Qg.call(a,v)&&v!==s&&rv(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(c=Ug(i,v))||c.enumerable});return a},Xt=(a,i,s)=>(s=a!=null?Rg(qg(a)):{},Ng(i||!a||!a.__esModule?rv(s,"default",{value:a,enumerable:!0}):s,a)),cv=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Hg=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=cv().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var v=h.call(f,d||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),wg=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=cv().default,c=Hg();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),cl=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=wg();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Be=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=cl();function c(d,h){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);h&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function f(d){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?c(Object(v),!0).forEach(function(m){s(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):c(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});function Bg(a){return i=>{let s=0,c=null;const f=[];function d(){c||(c=i.subscribe({next(v){for(const p of f){var m;(m=p.next)===null||m===void 0||m.call(p,v)}},error(v){for(const p of f){var m;(m=p.error)===null||m===void 0||m.call(p,v)}},complete(){for(const m of f){var v;(v=m.complete)===null||v===void 0||v.call(m)}}}))}function h(){if(s===0&&c){const v=c;c=null,v.unsubscribe()}}return Ui(v=>(s++,f.push(v),d(),{unsubscribe(){s--,h();const m=f.findIndex(p=>p===v);m>-1&&f.splice(m,1)}}))}}function Yg(a){let i=a;const s=[],c=h=>{i!==void 0&&h.next(i),s.push(h)},f=h=>{s.splice(s.indexOf(h),1)},d=Ui(h=>(c(h),()=>{f(h)}));return d.next=h=>{if(i!==h){i=h;for(const v of s)v.next(h)}},d.get=()=>i,d}function Lg(a){return Ui(i=>{function s(f=0,d=a.op){const h=a.links[f];if(!h)throw new Error("No more links to execute - did you forget to add an ending link?");return h({op:d,next(m){return s(f+1,m)}})}return s().subscribe(i)})}var bi=Xt(cl(),1),Fl=Xt(Be(),1);function Gg(a){return a instanceof Ai}function Xg(a){return il(a)&&il(a.error)&&typeof a.error.code=="number"&&typeof a.error.message=="string"}function Kg(a,i){return typeof a=="string"?a:il(a)&&typeof a.message=="string"?a.message:i}var Ai=class Oi extends Error{constructor(i,s){var c,f;const d=s?.cause;super(i,{cause:d}),(0,bi.default)(this,"cause",void 0),(0,bi.default)(this,"shape",void 0),(0,bi.default)(this,"data",void 0),(0,bi.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=d,this.shape=s==null||(c=s.result)===null||c===void 0?void 0:c.error,this.data=s==null||(f=s.result)===null||f===void 0?void 0:f.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Oi.prototype)}static from(i,s={}){const c=i;return Gg(c)?(s.meta&&(c.meta=(0,Fl.default)((0,Fl.default)({},c.meta),s.meta)),c):Xg(c)?new Oi(c.error.message,(0,Fl.default)((0,Fl.default)({},s),{},{result:c})):new Oi(Kg(c,"Unknown error"),(0,Fl.default)((0,Fl.default)({},s),{},{cause:c}))}};function Zg(a){const i=a;return i?"input"in i?i:{input:i,output:i}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const fy=a=>typeof a=="function";function Vg(a){if(a)return a;if(typeof window<"u"&&fy(window.fetch))return window.fetch;if(typeof globalThis<"u"&&fy(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Ja=Xt(Be());function Jg(a){return{url:a.url.toString(),fetch:a.fetch,transformer:Zg(a.transformer),methodOverride:a.methodOverride}}function kg(a){const i={};for(let s=0;s<a.length;s++){const c=a[s];i[s]=c}return i}const Fg={query:"GET",mutation:"POST",subscription:"PATCH"};function ov(a){return"input"in a?a.transformer.input.serialize(a.input):kg(a.inputs.map(i=>a.transformer.input.serialize(i)))}const fv=a=>{const i=a.url.split("?");let c=i[0].replace(/\/$/,"")+"/"+a.path;const f=[];if(i[1]&&f.push(i[1]),"inputs"in a&&f.push("batch=1"),a.type==="query"||a.type==="subscription"){const d=ov(a);d!==void 0&&a.methodOverride!=="POST"&&f.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return f.length&&(c+="?"+f.join("&")),c},$g=a=>{if(a.type==="query"&&a.methodOverride!=="POST")return;const i=ov(a);return i!==void 0?JSON.stringify(i):void 0},Pg=a=>eb((0,Ja.default)((0,Ja.default)({},a),{},{contentTypeHeader:"application/json",getUrl:fv,getBody:$g}));var Wg=class extends Error{constructor(){const a="AbortError";super(a),this.name=a,this.message=a}};const Ig=a=>{var i;if(a?.aborted)throw(i=a.throwIfAborted)===null||i===void 0||i.call(a),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new Wg};async function tb(a){var i;Ig(a.signal);const s=a.getUrl(a),c=a.getBody(a),f=(i=a.methodOverride)!==null&&i!==void 0?i:Fg[a.type],d=await(async()=>{const v=await a.headers();return Symbol.iterator in v?Object.fromEntries(v):v})(),h=(0,Ja.default)((0,Ja.default)((0,Ja.default)({},a.contentTypeHeader&&f!=="GET"?{"content-type":a.contentTypeHeader}:{}),a.trpcAcceptHeader?{"trpc-accept":a.trpcAcceptHeader}:void 0),d);return Vg(a.fetch)(s,{method:f,signal:a.signal,body:c,headers:h})}async function eb(a){const i={},s=await tb(a);i.response=s;const c=await s.json();return i.responseJSON=c,{json:c,meta:i}}Xt(Be(),1);const dy=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function hy(a){let i=null,s=null;const c=()=>{clearTimeout(s),s=null,i=null};function f(v){const m=[[]];let p=0;for(;;){const C=v[p];if(!C)break;const Y=m[m.length-1];if(C.aborted){var z;(z=C.reject)===null||z===void 0||z.call(C,new Error("Aborted")),p++;continue}if(a.validate(Y.concat(C).map(N=>N.key))){Y.push(C),p++;continue}if(Y.length===0){var O;(O=C.reject)===null||O===void 0||O.call(C,new Error("Input is too big for a single dispatch")),p++;continue}m.push([])}return m}function d(){const v=f(i);c();for(const m of v){if(!m.length)continue;const p={items:m};for(const O of m)O.batch=p;a.fetch(p.items.map(O=>O.key)).then(async O=>{await Promise.all(O.map(async(Y,J)=>{const N=p.items[J];try{var $;const dt=await Promise.resolve(Y);($=N.resolve)===null||$===void 0||$.call(N,dt)}catch(dt){var at;(at=N.reject)===null||at===void 0||at.call(N,dt)}N.batch=null,N.reject=null,N.resolve=null}));for(const Y of p.items){var C;(C=Y.reject)===null||C===void 0||C.call(Y,new Error("Missing result")),Y.batch=null}}).catch(O=>{for(const Y of p.items){var C;(C=Y.reject)===null||C===void 0||C.call(Y,O),Y.batch=null}})}}function h(v){var m;const p={aborted:!1,key:v,batch:null,resolve:dy,reject:dy},z=new Promise((O,C)=>{var Y;p.reject=C,p.resolve=O,(Y=i)!==null&&Y!==void 0||(i=[]),i.push(p)});return(m=s)!==null&&m!==void 0||(s=setTimeout(d)),z}return{load:h}}function nb(...a){const i=new AbortController,s=a.length;let c=0;const f=()=>{++c===s&&i.abort()};for(const d of a)d?.aborted?f():d?.addEventListener("abort",f,{once:!0});return i.signal}var Si=Xt(Be(),1);function lb(a){var i,s;const c=Jg(a),f=(i=a.maxURLLength)!==null&&i!==void 0?i:1/0,d=(s=a.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const h=z=>({validate(O){if(f===1/0&&d===1/0)return!0;if(O.length>d)return!1;const C=O.map(N=>N.path).join(","),Y=O.map(N=>N.input);return fv((0,Si.default)((0,Si.default)({},c),{},{type:z,path:C,inputs:Y,signal:null})).length<=f},async fetch(O){const C=O.map(dt=>dt.path).join(","),Y=O.map(dt=>dt.input),J=nb(...O.map(dt=>dt.signal)),N=await Pg((0,Si.default)((0,Si.default)({},c),{},{path:C,inputs:Y,type:z,headers(){return a.headers?typeof a.headers=="function"?a.headers({opList:O}):a.headers:{}},signal:J}));return(Array.isArray(N.json)?N.json:O.map(()=>N.json)).map(dt=>({meta:N.meta,json:dt}))}}),v=hy(h("query")),m=hy(h("mutation")),p={query:v,mutation:m};return({op:z})=>Ui(O=>{/* istanbul ignore if -- @preserve */if(z.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const Y=p[z.type].load(z);let J;return Y.then(N=>{J=N;const $=pg(N.json,c.transformer.output);if(!$.ok){O.error(Ai.from($.error,{meta:N.meta}));return}O.next({context:N.meta,result:$.result}),O.complete()}).catch(N=>{O.error(Ai.from(N,{meta:J?.meta}))}),()=>{}})}}Xt(Be(),1);const dv=(a,...i)=>typeof a=="function"?a(...i):a;Xt(cl(),1);function ab(){let a,i;return{promise:new Promise((c,f)=>{a=c,i=f}),resolve:a,reject:i}}async function ub(a){const i=await dv(a.url);if(!a.connectionParams)return i;const c=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+c}async function ib(a){const i={method:"connectionParams",data:await dv(a)};return JSON.stringify(i)}Xt(cl(),1);var al=Xt(cl(),1);function rb(a){const{promise:i,resolve:s,reject:c}=ab();return a.addEventListener("open",()=>{a.removeEventListener("error",c),s()}),a.addEventListener("error",c),i}function sb(a,{intervalMs:i,pongTimeoutMs:s}){let c,f;function d(){c=setTimeout(()=>{a.send("PING"),f=setTimeout(()=>{a.close()},s)},i)}function h(){clearTimeout(c),d()}function v(){clearTimeout(f),h()}a.addEventListener("open",d),a.addEventListener("message",({data:m})=>{clearTimeout(c),d(),m==="PONG"&&v()}),a.addEventListener("close",()=>{clearTimeout(c),clearTimeout(f)})}var cb=class Oc{constructor(i){var s;if((0,al.default)(this,"id",++Oc.connectCount),(0,al.default)(this,"WebSocketPonyfill",void 0),(0,al.default)(this,"urlOptions",void 0),(0,al.default)(this,"keepAliveOpts",void 0),(0,al.default)(this,"wsObservable",Yg(null)),(0,al.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=i.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=i.urlOptions,this.keepAliveOpts=i.keepAlive}get ws(){return this.wsObservable.get()}set ws(i){this.wsObservable.next(i)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var i=this;if(i.openPromise)return i.openPromise;i.id=++Oc.connectCount;const s=ub(i.urlOptions).then(c=>new i.WebSocketPonyfill(c));i.openPromise=s.then(async c=>{i.ws=c,c.addEventListener("message",function({data:f}){f==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&sb(c,i.keepAliveOpts),c.addEventListener("close",()=>{i.ws===c&&(i.ws=null)}),await rb(c),i.urlOptions.connectionParams&&c.send(await ib(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,al.default)(cb,"connectCount",0);Xt(cl(),1);Xt(Be(),1);var cc=Xt(cl(),1),yy=Xt(Be(),1),qi=class{constructor(a){(0,cc.default)(this,"links",void 0),(0,cc.default)(this,"runtime",void 0),(0,cc.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=a.links.map(i=>i(this.runtime))}$request(a){var i;return Lg({links:this.links,op:(0,yy.default)((0,yy.default)({},a),{},{context:(i=a.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(Bg())}async requestAsPromise(a){var i=this;try{const s=i.$request(a);return(await bg(s)).result.data}catch(s){throw Ai.from(s)}}query(a,i,s){return this.requestAsPromise({type:"query",path:a,input:i,context:s?.context,signal:s?.signal})}mutation(a,i,s){return this.requestAsPromise({type:"mutation",path:a,input:i,context:s?.context,signal:s?.signal})}subscription(a,i,s){return this.$request({type:"subscription",path:a,input:i,context:s.context,signal:s.signal}).subscribe({next(f){switch(f.result.type){case"state":{var d;(d=s.onConnectionStateChange)===null||d===void 0||d.call(s,f.result);break}case"started":{var h;(h=s.onStarted)===null||h===void 0||h.call(s,{context:f.context});break}case"stopped":{var v;(v=s.onStopped)===null||v===void 0||v.call(s);break}case"data":case void 0:{var m;(m=s.onData)===null||m===void 0||m.call(s,f.result.data);break}}},error(f){var d;(d=s.onError)===null||d===void 0||d.call(s,f)},complete(){var f;(f=s.onComplete)===null||f===void 0||f.call(s)}})}};const hv=Symbol.for("trpc_untypedClient"),ob={query:"query",mutate:"mutation",subscribe:"subscription"},fb=a=>ob[a];function yv(a){const i=Ri(({path:s,args:c})=>{const f=[...s],d=fb(f.pop()),h=f.join(".");return a[d](h,...c)});return Rc(s=>s===hv?a:i[s])}function db(a){const i=new qi(a);return yv(i)}function qc(a){return a[hv]}Xt(Be(),1);Xt(Be(),1);var hb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function s(f){var d,h,v,m=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,v=Symbol.iterator);m--;){if(h&&(d=f[h])!=null)return d.call(f);if(v&&(d=f[v])!=null)return new c(d.call(f));h="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function c(f){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var v=h.done;return Promise.resolve(h.value).then(function(m){return{value:m,done:v}})}return c=function(v){this.s=v,this.n=v.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(v){var m=this.s.return;return m===void 0?Promise.resolve({value:v,done:!0}):d(m.apply(this.s,arguments))},throw:function(v){var m=this.s.return;return m===void 0?Promise.reject(v):d(m.apply(this.s,arguments))}},new c(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Xt(hb(),1);Xt(Be(),1);var yb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(a,i){function s(){var c=typeof SuppressedError=="function"?SuppressedError:function(v,m){var p=Error();return p.name="SuppressedError",p.error=v,p.suppressed=m,p},f={},d=[];function h(v,m){if(m!=null){if(Object(m)!==m)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(v)var p=m[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=m[Symbol.dispose||Symbol.for("Symbol.dispose")],v))var z=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");z&&(p=function(){try{z.call(m)}catch(C){return Promise.reject(C)}}),d.push({v:m,d:p,a:v})}else v&&d.push({d:m,a:v});return m}return{e:f,u:h.bind(null,!1),a:h.bind(null,!0),d:function(){var m,p=this.e,z=0;function O(){for(;m=d.pop();)try{if(!m.a&&z===1)return z=0,d.push(m),Promise.resolve().then(O);if(m.d){var Y=m.d.call(m.v);if(m.a)return z|=2,Promise.resolve(Y).then(O,C)}else z|=1}catch(J){return C(J)}if(z===1)return p!==f?Promise.reject(p):Promise.resolve();if(p!==f)throw p}function C(Y){return p=p!==f?new c(Y,p):Y,O()}return O()}}}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),vv=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(a,i){function s(c,f){this.v=c,this.k=f}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),vb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(a,i){var s=vv();function c(f){return new s(f,0)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),mb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(a,i){var s=vv();function c(d){return function(){return new f(d.apply(this,arguments))}}function f(d){var h,v;function m(z,O){try{var C=d[z](O),Y=C.value,J=Y instanceof s;Promise.resolve(J?Y.v:Y).then(function(N){if(J){var $=z==="return"?"return":"next";if(!Y.k||N.done)return m($,N);N=d[$](N).value}p(C.done?"return":"normal",N)},function(N){m("throw",N)})}catch(N){p("throw",N)}}function p(z,O){switch(z){case"return":h.resolve({value:O,done:!0});break;case"throw":h.reject(O);break;default:h.resolve({value:O,done:!1})}(h=h.next)?m(h.key,h.arg):v=null}this._invoke=function(z,O){return new Promise(function(C,Y){var J={key:z,arg:O,resolve:C,reject:Y,next:null};v?v=v.next=J:(h=v=J,m(z,O))})},typeof d.return!="function"&&(this.return=void 0)}f.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},f.prototype.next=function(d){return this._invoke("next",d)},f.prototype.throw=function(d){return this._invoke("throw",d)},f.prototype.return=function(d){return this._invoke("return",d)},i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Xt(yb(),1);Xt(vb(),1);Xt(mb(),1);Xt(Be(),1);function pb(a){return Ri(({path:i,args:s})=>{var c;const f=[...i],d=f.pop();if(d==="useMutation")return a[d](f,...s);if(d==="_def")return{path:f};const[h,...v]=s,m=(c=v[0])!==null&&c!==void 0?c:{};return a[d](f,h,m)})}var oc;const gb=["client","ssrContext","ssrState","abortOnUnmount"],bb=(oc=L.createContext)===null||oc===void 0?void 0:oc.call(Sy,null),Sb=a=>{switch(a){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function xb(a){return Ri(i=>{const s=[...i.path],c=s.pop(),f=[...i.args],d=f.shift(),h=Sb(c),v=Ke(s,d,h);return{infiniteQueryOptions:()=>a.infiniteQueryOptions(s,v,f[0]),queryOptions:()=>a.queryOptions(s,v,...f),fetch:()=>a.fetchQuery(v,...f),fetchInfinite:()=>a.fetchInfiniteQuery(v,f[0]),prefetch:()=>a.prefetchQuery(v,...f),prefetchInfinite:()=>a.prefetchInfiniteQuery(v,f[0]),ensureData:()=>a.ensureQueryData(v,...f),invalidate:()=>a.invalidateQueries(v,...f),reset:()=>a.resetQueries(v,...f),refetch:()=>a.refetchQueries(v,...f),cancel:()=>a.cancelQuery(v,...f),setData:()=>{a.setQueryData(v,f[0],f[1])},setQueriesData:()=>a.setQueriesData(v,f[0],f[1],f[2]),setInfiniteData:()=>{a.setInfiniteQueryData(v,f[0],f[1])},getData:()=>a.getQueryData(v),getInfiniteData:()=>a.getInfiniteQueryData(v),setMutationDefaults:()=>a.setMutationDefaults(xi(s),d),getMutationDefaults:()=>a.getMutationDefaults(xi(s)),isMutating:()=>a.isMutating({mutationKey:xi(s)})}[c]()})}function Ob(a){const i=yv(a.client),s=xb(a);return Rc(c=>{const f=c;return f==="client"?i:gb.includes(f)?a[f]:s[c]})}var _b=sl(Wa(),1);function vy(a){const i=a instanceof qi?a:qc(a);return Ri(s=>{const c=s.path,f=c.join("."),[d,h]=s.args;return(0,_b.default)({queryKey:Ke(c,d,"query"),queryFn:()=>i.query(f,d,h?.trpc)},h)})}var fc=sl(Wa(),1);function ie(a,i,s){var c;const f=a[0];let d=(c=a[1])===null||c===void 0?void 0:c.input;if(s){var h;d=(0,fc.default)((0,fc.default)((0,fc.default)({},(h=d)!==null&&h!==void 0?h:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[f.join("."),d,i?.trpc]}var Eb=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function s(f){var d,h,v,m=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,v=Symbol.iterator);m--;){if(h&&(d=f[h])!=null)return d.call(f);if(v&&(d=f[v])!=null)return new c(d.call(f));h="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function c(f){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var v=h.done;return Promise.resolve(h.value).then(function(m){return{value:m,done:v}})}return c=function(v){this.s=v,this.n=v.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(v){var m=this.s.return;return m===void 0?Promise.resolve({value:v,done:!0}):d(m.apply(this.s,arguments))},throw:function(v){var m=this.s.return;return m===void 0?Promise.reject(v):d(m.apply(this.s,arguments))}},new c(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Tb=sl(Eb(),1);function _c(a){return{path:a.path.join(".")}}function Va(a){const i=_c(a);return L.useMemo(()=>i,[i])}async function mv(a,i,s){const f=i.getQueryCache().build(i,{queryKey:s});f.setState({data:[],status:"success"});const d=[];var h=!1,v=!1,m;try{for(var p=(0,Tb.default)(a),z;h=!(z=await p.next()).done;h=!1){const O=z.value;d.push(O),f.setState({data:[...d]})}}catch(O){v=!0,m=O}finally{try{h&&p.return!=null&&await p.return()}finally{if(v)throw m}}return d}var _t=sl(Wa(),1);function jb(a){const{client:i,queryClient:s}=a,c=i instanceof qi?i:qc(i);return{infiniteQueryOptions:(f,d,h)=>{var v,m;const p=((v=d[1])===null||v===void 0?void 0:v.input)===Ee,z=async O=>{var C;const Y=(0,_t.default)((0,_t.default)({},h),{},{trpc:(0,_t.default)((0,_t.default)({},h?.trpc),!(h==null||(C=h.trpc)===null||C===void 0)&&C.abortOnUnmount?{signal:O.signal}:{signal:null})});return await c.query(...ie(d,Y,{direction:O.direction,pageParam:O.pageParam}))};return Object.assign((0,_t.default)((0,_t.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:p?Ee:z,initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}),{trpc:_c({path:f})})},queryOptions:(f,d,h)=>{var v;const m=((v=d[1])===null||v===void 0?void 0:v.input)===Ee,p=async z=>{var O;const C=(0,_t.default)((0,_t.default)({},h),{},{trpc:(0,_t.default)((0,_t.default)({},h?.trpc),!(h==null||(O=h.trpc)===null||O===void 0)&&O.abortOnUnmount?{signal:z.signal}:{signal:null})}),Y=await c.query(...ie(d,C));return Py(Y)?mv(Y,s,d):Y};return Object.assign((0,_t.default)((0,_t.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:m?Ee:p}),{trpc:_c({path:f})})},fetchQuery:(f,d)=>s.fetchQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...ie(f,d))})),fetchInfiniteQuery:(f,d)=>{var h;return s.fetchInfiniteQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:({pageParam:v,direction:m})=>c.query(...ie(f,d,{pageParam:v,direction:m})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},prefetchQuery:(f,d)=>s.prefetchQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...ie(f,d))})),prefetchInfiniteQuery:(f,d)=>{var h;return s.prefetchInfiniteQuery((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:({pageParam:v,direction:m})=>c.query(...ie(f,d,{pageParam:v,direction:m})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},ensureQueryData:(f,d)=>s.ensureQueryData((0,_t.default)((0,_t.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...ie(f,d))})),invalidateQueries:(f,d,h)=>s.invalidateQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:f}),h),resetQueries:(f,d,h)=>s.resetQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:f}),h),refetchQueries:(f,d,h)=>s.refetchQueries((0,_t.default)((0,_t.default)({},d),{},{queryKey:f}),h),cancelQuery:(f,d)=>s.cancelQueries({queryKey:f},d),setQueryData:(f,d,h)=>s.setQueryData(f,d,h),setQueriesData:(f,d,h,v)=>s.setQueriesData((0,_t.default)((0,_t.default)({},d),{},{queryKey:f}),h,v),getQueryData:f=>s.getQueryData(f),setInfiniteQueryData:(f,d,h)=>s.setQueryData(f,d,h),getInfiniteQueryData:f=>s.getQueryData(f),setMutationDefaults:(f,d)=>{const h=f[0],v=m=>c.mutation(...ie([h,{input:m}],a));return s.setMutationDefaults(f,typeof d=="function"?d({canonicalMutationFn:v}):d)},getMutationDefaults:f=>s.getMutationDefaults(f),isMutating:f=>s.isMutating((0,_t.default)((0,_t.default)({},f),{},{exact:!0}))}}var V=sl(Wa());const my=(a,i)=>new Proxy(a,{get(c,f){return i(f),c[f]}});function Ab(a){var i,s;const c=(i=void 0)!==null&&i!==void 0?i:F=>F.originalFn(),f=(s=void 0)!==null&&s!==void 0?s:bb,d=db,h=F=>{var X;const{abortOnUnmount:D=!1,queryClient:K,ssrContext:G}=F,[et,I]=L.useState((X=F.ssrState)!==null&&X!==void 0?X:!1),tt=F.client instanceof qi?F.client:qc(F.client),ht=L.useMemo(()=>jb({client:tt,queryClient:K}),[tt,K]),it=L.useMemo(()=>(0,V.default)({abortOnUnmount:D,queryClient:K,client:tt,ssrContext:G??null,ssrState:et},ht),[D,tt,ht,K,G,et]);return L.useEffect(()=>{I(ct=>ct?"mounted":!1)},[]),_.jsx(f.Provider,{value:it,children:F.children})};function v(){const F=L.useContext(f);if(!F)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return F}function m(F,X){var D;const{queryClient:K,ssrState:G}=v();return G&&G!=="mounted"&&((D=K.getQueryCache().find({queryKey:F}))===null||D===void 0?void 0:D.state.status)==="error"?(0,V.default)({retryOnMount:!1},X):X}function p(F,X,D){var K,G,et,I,tt;const ht=v(),{abortOnUnmount:it,client:ct,ssrState:j,queryClient:H,prefetchQuery:Z}=ht,ut=Ke(F,X,"query"),yt=H.getQueryDefaults(ut),b=X===Ee;typeof window>"u"&&j==="prepass"&&(D==null||(K=D.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((G=D?.enabled)!==null&&G!==void 0?G:yt?.enabled)!==!1&&!b&&!H.getQueryCache().find({queryKey:ut})&&Z(ut,D);const U=m(ut,(0,V.default)((0,V.default)({},yt),D)),w=(et=(I=D==null||(tt=D.trpc)===null||tt===void 0?void 0:tt.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&et!==void 0?et:it,B=z0((0,V.default)((0,V.default)({},U),{},{queryKey:ut,queryFn:b?X:async P=>{const rt=(0,V.default)((0,V.default)({},U),{},{trpc:(0,V.default)((0,V.default)({},U?.trpc),w?{signal:P.signal}:{signal:null})}),St=await ct.query(...ie(ut,rt));return Py(St)?mv(St,H,ut):St}}),H);return B.trpc=Va({path:F}),B}function z(F,X,D){var K,G,et;const I=v(),tt=Ke(F,X,"query"),ht=X===Ee,it=(K=(G=D==null||(et=D.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&G!==void 0?G:void 0)!==null&&K!==void 0?K:I.abortOnUnmount;R0((0,V.default)((0,V.default)({},D),{},{queryKey:tt,queryFn:ht?X:ct=>{const j={trpc:(0,V.default)((0,V.default)({},D?.trpc),it?{signal:ct.signal}:{})};return I.client.query(...ie(tt,j))}}))}function O(F,X,D){var K,G,et;const I=v(),tt=Ke(F,X,"query"),ht=(K=(G=D==null||(et=D.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&G!==void 0?G:void 0)!==null&&K!==void 0?K:I.abortOnUnmount,it=C0((0,V.default)((0,V.default)({},D),{},{queryKey:tt,queryFn:ct=>{const j=(0,V.default)((0,V.default)({},D),{},{trpc:(0,V.default)((0,V.default)({},D?.trpc),ht?{signal:ct.signal}:{signal:null})});return I.client.query(...ie(tt,j))}}),I.queryClient);return it.trpc=Va({path:F}),[it.data,it]}function C(F,X){const{client:D,queryClient:K}=v(),G=xi(F),et=K.defaultMutationOptions(K.getMutationDefaults(G)),I=q0((0,V.default)((0,V.default)({},X),{},{mutationKey:G,mutationFn:tt=>D.mutation(...ie([F,{input:tt}],X)),onSuccess(...tt){var ht,it;return c({originalFn:()=>{var j,H,Z;return(j=X==null||(H=X.onSuccess)===null||H===void 0?void 0:H.call(X,...tt))!==null&&j!==void 0?j:et==null||(Z=et.onSuccess)===null||Z===void 0?void 0:Z.call(et,...tt)},queryClient:K,meta:(ht=(it=X?.meta)!==null&&it!==void 0?it:et?.meta)!==null&&ht!==void 0?ht:{}})}}),K);return I.trpc=Va({path:F}),I}const Y={data:void 0,error:null,status:"idle"},J={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function N(F,X,D){var K;const G=(K=D?.enabled)!==null&&K!==void 0?K:X!==Ee,et=Hn(Ke(F,X,"any")),{client:I}=v(),tt=L.useRef(D);L.useEffect(()=>{tt.current=D});const[ht]=L.useState(new Set([])),it=L.useCallback(b=>{ht.add(b)},[ht]),ct=L.useRef(null),j=L.useCallback(b=>{const U=Z.current,w=Z.current=b(U);let B=!1;for(const P of ht)if(U[P]!==w[P]){B=!0;break}B&&yt(my(w,it))},[it,ht]),H=L.useCallback(()=>{var b;if((b=ct.current)===null||b===void 0||b.unsubscribe(),!G){j(()=>(0,V.default)((0,V.default)({},Y),{},{reset:H}));return}j(()=>(0,V.default)((0,V.default)({},J),{},{reset:H}));const U=I.subscription(F.join("."),X??void 0,{onStarted:()=>{var w,B;(w=(B=tt.current).onStarted)===null||w===void 0||w.call(B),j(P=>(0,V.default)((0,V.default)({},P),{},{status:"pending",error:null}))},onData:w=>{var B,P;(B=(P=tt.current).onData)===null||B===void 0||B.call(P,w),j(rt=>(0,V.default)((0,V.default)({},rt),{},{status:"pending",data:w,error:null}))},onError:w=>{var B,P;(B=(P=tt.current).onError)===null||B===void 0||B.call(P,w),j(rt=>(0,V.default)((0,V.default)({},rt),{},{status:"error",error:w}))},onConnectionStateChange:w=>{j(B=>{switch(w.state){case"idle":return(0,V.default)((0,V.default)({},B),{},{status:w.state,error:null,data:void 0});case"connecting":return(0,V.default)((0,V.default)({},B),{},{error:w.error,status:w.state});case"pending":return B}})},onComplete:()=>{var w,B;(w=(B=tt.current).onComplete)===null||w===void 0||w.call(B),j(P=>(0,V.default)((0,V.default)({},P),{},{status:"idle",error:null,data:void 0}))}});ct.current=U},[I,et,G,j]);L.useEffect(()=>(H(),()=>{var b;(b=ct.current)===null||b===void 0||b.unsubscribe()}),[H]);const Z=L.useRef(G?(0,V.default)((0,V.default)({},J),{},{reset:H}):(0,V.default)((0,V.default)({},Y),{},{reset:H})),[ut,yt]=L.useState(my(Z.current,it));return ut}function $(F,X,D){var K,G,et,I,tt;const{client:ht,ssrState:it,prefetchInfiniteQuery:ct,queryClient:j,abortOnUnmount:H}=v(),Z=Ke(F,X,"infinite"),ut=j.getQueryDefaults(Z),yt=X===Ee;typeof window>"u"&&it==="prepass"&&(D==null||(K=D.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((G=D?.enabled)!==null&&G!==void 0?G:ut?.enabled)!==!1&&!yt&&!j.getQueryCache().find({queryKey:Z})&&ct(Z,(0,V.default)((0,V.default)({},ut),D));const b=m(Z,(0,V.default)((0,V.default)({},ut),D)),U=(et=D==null||(I=D.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&et!==void 0?et:H,w=Q0((0,V.default)((0,V.default)({},b),{},{initialPageParam:(tt=D.initialCursor)!==null&&tt!==void 0?tt:null,persister:D.persister,queryKey:Z,queryFn:yt?X:B=>{var P;const rt=(0,V.default)((0,V.default)({},b),{},{trpc:(0,V.default)((0,V.default)({},b?.trpc),U?{signal:B.signal}:{signal:null})});return ht.query(...ie(Z,rt,{pageParam:(P=B.pageParam)!==null&&P!==void 0?P:D.initialCursor,direction:B.direction}))}}),j);return w.trpc=Va({path:F}),w}function at(F,X,D){var K,G,et;const I=v(),tt=Ke(F,X,"infinite"),ht=I.queryClient.getQueryDefaults(tt),it=X===Ee,ct=m(tt,(0,V.default)((0,V.default)({},ht),D)),j=(K=D==null||(G=D.trpc)===null||G===void 0?void 0:G.abortOnUnmount)!==null&&K!==void 0?K:I.abortOnUnmount;U0((0,V.default)((0,V.default)({},D),{},{initialPageParam:(et=D.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:it?X:H=>{var Z;const ut=(0,V.default)((0,V.default)({},ct),{},{trpc:(0,V.default)((0,V.default)({},ct?.trpc),j?{signal:H.signal}:{})});return I.client.query(...ie(tt,ut,{pageParam:(Z=H.pageParam)!==null&&Z!==void 0?Z:D.initialCursor,direction:H.direction}))}}))}function dt(F,X,D){var K,G,et;const I=v(),tt=Ke(F,X,"infinite"),ht=I.queryClient.getQueryDefaults(tt),it=m(tt,(0,V.default)((0,V.default)({},ht),D)),ct=(K=D==null||(G=D.trpc)===null||G===void 0?void 0:G.abortOnUnmount)!==null&&K!==void 0?K:I.abortOnUnmount,j=M0((0,V.default)((0,V.default)({},D),{},{initialPageParam:(et=D.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:H=>{var Z;const ut=(0,V.default)((0,V.default)({},it),{},{trpc:(0,V.default)((0,V.default)({},it?.trpc),ct?{signal:H.signal}:{})});return I.client.query(...ie(tt,ut,{pageParam:(Z=H.pageParam)!==null&&Z!==void 0?Z:D.initialCursor,direction:H.direction}))}}),I.queryClient);return j.trpc=Va({path:F}),[j.data,j]}return{Provider:h,createClient:d,useContext:v,useUtils:v,useQuery:p,usePrefetchQuery:z,useSuspenseQuery:O,useQueries:(F,X)=>{const{ssrState:D,queryClient:K,prefetchQuery:G,client:et}=v(),I=vy(et),tt=F(I);if(typeof window>"u"&&D==="prepass")for(const it of tt){var ht;const ct=it;((ht=ct.trpc)===null||ht===void 0?void 0:ht.ssr)!==!1&&!K.getQueryCache().find({queryKey:ct.queryKey})&&G(ct.queryKey,ct)}return Ly({queries:tt.map(it=>(0,V.default)((0,V.default)({},it),{},{queryKey:it.queryKey})),combine:X?.combine},K)},useSuspenseQueries:F=>{const{queryClient:X,client:D}=v(),K=vy(D),G=F(K),et=D0({queries:G.map(I=>(0,V.default)((0,V.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},X);return[et.map(I=>I.data),et]},useMutation:C,useSubscription:N,useInfiniteQuery:$,usePrefetchInfiniteQuery:at,useSuspenseInfiniteQuery:dt}}function zb(a){const i=pb(a);return Rc(s=>s==="useContext"||s==="useUtils"?()=>{const c=a.useUtils();return L.useMemo(()=>Ob(c),[c])}:a.hasOwnProperty(s)?a[s]:i[s])}function Cb(a){const i=Ab();return zb(i)}const Rt=Cb(),Mb=Rt.createClient({links:[lb({url:"/api/trpc"})]}),py="/media/images/capas/capa-placeholder.svg",dc="biblioteca_modo_exibicao";function gy(){if(typeof window>"u")return"desktop";const a=window.innerWidth;return a<768?"mobile":a<1024?"tablet":"desktop"}function Db(){const[a,i]=L.useState(gy);return L.useEffect(()=>{function s(){i(gy())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),a}function Qc({livros:a,titulo:i}){const{data:s}=Rt.config.obter.useQuery(),c=Db(),[f,d]=L.useState(()=>typeof window>"u"?"grade":localStorage.getItem(dc)||"grade");L.useEffect(()=>{s&&!localStorage.getItem(dc)&&d(s.modoPadrao)},[s]);function h(m){d(m),localStorage.setItem(dc,m)}const v=c==="desktop"?s?.colunasDesktop??4:c==="tablet"?s?.colunasTablet??2:null;return _.jsxs("section",{children:[_.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem"},children:[_.jsx("h2",{style:{fontFamily:"var(--font-ui)",fontSize:"0.75rem",letterSpacing:"var(--tracking-wider)",textTransform:"uppercase",color:"var(--color-text-on-dark-subtle)"},children:i}),_.jsxs("div",{style:{display:"flex",gap:"0.4rem"},children:[_.jsx("button",{"aria-label":"ver em grade","aria-pressed":f==="grade",onClick:()=>h("grade"),style:by(f==="grade"),children:_.jsx(Rb,{})}),_.jsx("button",{"aria-label":"ver em lista","aria-pressed":f==="lista",onClick:()=>h("lista"),style:by(f==="lista"),children:_.jsx(Ub,{})})]})]}),f==="grade"?_.jsx("div",{style:{display:"grid",gridTemplateColumns:v?`repeat(${v}, 1fr)`:"repeat(auto-fill, minmax(110px, 1fr))",gap:"1.25rem"},children:a.map(m=>_.jsxs("a",{href:`/livro/${m.id}`,style:{display:"block"},children:[_.jsx("img",{src:m.capaUrl||py,alt:m.titulo,style:{width:"100%",aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-sm)"}}),_.jsx("p",{style:{fontSize:"0.8rem",marginTop:"0.5rem",color:"var(--clr-branco)"},children:m.titulo}),_.jsx("p",{style:{fontSize:"0.7rem",color:"var(--color-text-on-dark-muted)"},children:m.autor})]},m.id))}):_.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:a.map(m=>_.jsxs("a",{href:`/livro/${m.id}`,style:{display:"flex",gap:"1rem",alignItems:"center",padding:"0.5rem",borderRadius:"var(--radius-md)",background:"var(--color-bg-card-dark)"},children:[_.jsx("img",{src:m.capaUrl||py,alt:m.titulo,style:{width:48,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"4px",flexShrink:0}}),_.jsxs("div",{children:[_.jsx("p",{style:{fontSize:"0.9rem",color:"var(--clr-branco)"},children:m.titulo}),_.jsxs("p",{style:{fontSize:"0.75rem",color:"var(--color-text-on-dark-muted)"},children:[m.autor,m.serie?` · ${m.serie}`:""]})]})]},m.id))})]})}function by(a){return{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",background:a?"var(--clr-acento-alpha12)":"transparent",color:a?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)",border:"none",cursor:"pointer"}}function Rb(){return _.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[_.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),_.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),_.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),_.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Ub(){return _.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[_.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),_.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),_.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const hc="/media/images/capas/capa-placeholder.svg";function qb(){const[,a]=lg(),[i,s]=L.useState(""),{data:c,isLoading:f}=Rt.biblioteca.getCatalogo.useQuery(),{data:d}=Rt.auth.me.useQuery(),{data:h}=Rt.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!d}),{data:v}=Rt.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!d}),{data:m}=Rt.biblioteca.listarSeries.useQuery(),p=c?.[0],z=c?.slice(1)??[];function O(C){C.preventDefault(),i.trim()&&a(`/buscar?q=${encodeURIComponent(i.trim())}`)}return _.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[_.jsxs("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.75rem",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:[_.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:32,flexShrink:0}}),_.jsx("form",{onSubmit:O,style:{flex:1,maxWidth:280},children:_.jsx("input",{value:i,onChange:C=>s(C.target.value),placeholder:"buscar...",style:{width:"100%",padding:"0.4rem 0.8rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",background:"rgba(255,255,255,0.06)",color:"var(--clr-branco)",fontSize:"0.8rem"}})}),_.jsx("a",{href:"/admin",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem",flexShrink:0},children:d?"área do editor":"entrar"})]}),_.jsxs("div",{style:{maxWidth:960,margin:"0 auto",padding:"1.5rem 1.25rem 4rem"},children:[f&&_.jsx("p",{style:{color:"var(--color-text-on-dark-muted)",fontSize:"0.875rem"},children:"carregando..."}),!f&&(!c||c.length===0)&&_.jsxs("div",{style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",borderRadius:"var(--radius-lg)",padding:"2.5rem",textAlign:"center",color:"var(--color-text-on-dark-muted)"},children:[_.jsx("p",{style:{fontFamily:"var(--font-display)",fontSize:"1.25rem",color:"var(--clr-branco)",marginBottom:"0.5rem"},children:"A estante ainda está sendo montada"}),_.jsx("p",{style:{fontSize:"0.875rem"},children:"Em breve os primeiros livros aparecem aqui."})]}),p&&_.jsx("section",{style:{marginBottom:"3rem"},children:_.jsxs("div",{style:{display:"flex",gap:"1.5rem",background:"var(--color-bg-card-dark)",border:"var(--border-thin)",borderRadius:"var(--radius-xl)",padding:"1.5rem",boxShadow:"var(--shadow-borgonha-md)"},children:[_.jsx("a",{href:`/livro/${p.id}`,style:{flexShrink:0},children:_.jsx("img",{src:p.capaUrl||hc,alt:p.titulo,style:{width:110,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)"}})}),_.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",gap:"0.5rem"},children:[_.jsx("span",{style:{fontFamily:"var(--font-ui)",fontSize:"0.7rem",letterSpacing:"var(--tracking-caps)",textTransform:"uppercase",color:"var(--clr-acento-400)",fontWeight:700},children:"destaque"}),_.jsx("a",{href:`/livro/${p.id}`,style:{fontFamily:"var(--font-display)",fontSize:"1.35rem",color:"var(--clr-branco)",fontWeight:600},children:p.titulo}),p.serie&&_.jsxs("a",{href:`/serie/${encodeURIComponent(p.serie)}`,style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:[p.serie,p.volumeNumero?` · volume ${p.volumeNumero}`:""]}),_.jsx("a",{href:`/leitor/${p.id}`,className:"btn btn-primary",style:{width:"fit-content",marginTop:"0.5rem"},children:"ler agora"})]})]})}),h&&h.length>0&&_.jsxs("section",{style:{marginBottom:"3rem"},children:[_.jsx("h2",{style:{fontFamily:"var(--font-ui)",fontSize:"0.75rem",letterSpacing:"var(--tracking-wider)",textTransform:"uppercase",color:"var(--color-text-on-dark-subtle)",marginBottom:"1rem"},children:"continuar lendo"}),_.jsx("div",{style:{display:"flex",gap:"1rem",overflowX:"auto",paddingBottom:"0.25rem"},children:h.map(C=>_.jsxs("a",{href:`/leitor/${C.livroId}`,style:{display:"block",flexShrink:0,width:90},children:[_.jsx("img",{src:C.capaUrl||hc,alt:C.titulo,style:{width:"100%",aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)"}}),_.jsx("p",{style:{fontSize:"0.75rem",marginTop:"0.4rem",color:"var(--clr-branco)"},children:C.titulo})]},C.livroId))})]}),v&&v.length>0&&_.jsxs("section",{style:{marginBottom:"3rem"},children:[_.jsx("h2",{style:{fontFamily:"var(--font-ui)",fontSize:"0.75rem",letterSpacing:"var(--tracking-wider)",textTransform:"uppercase",color:"var(--color-text-on-dark-subtle)",marginBottom:"1rem"},children:"meus favoritos"}),_.jsx("div",{style:{display:"flex",gap:"1rem",overflowX:"auto",paddingBottom:"0.25rem"},children:v.map(C=>_.jsxs("a",{href:`/livro/${C.livroId}`,style:{display:"block",flexShrink:0,width:90},children:[_.jsx("img",{src:C.capaUrl||hc,alt:C.titulo,style:{width:"100%",aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)"}}),_.jsx("p",{style:{fontSize:"0.75rem",marginTop:"0.4rem",color:"var(--clr-branco)"},children:C.titulo})]},C.livroId))})]}),m&&m.length>0&&_.jsxs("section",{style:{marginBottom:"3rem"},children:[_.jsx("h2",{style:{fontFamily:"var(--font-ui)",fontSize:"0.75rem",letterSpacing:"var(--tracking-wider)",textTransform:"uppercase",color:"var(--color-text-on-dark-subtle)",marginBottom:"1rem"},children:"coleções"}),_.jsx("div",{style:{display:"flex",gap:"0.6rem",flexWrap:"wrap"},children:m.map(C=>_.jsx("a",{href:`/serie/${encodeURIComponent(C)}`,style:{fontSize:"0.8rem",padding:"0.5rem 1.1rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",color:"var(--clr-branco)"},children:C},C))})]}),z.length>0&&_.jsx(Qc,{livros:z,titulo:"todos os livros"})]})]})}function pv(){const a=Rt.useUtils(),{data:i,isLoading:s}=Rt.auth.me.useQuery(),c=Rt.auth.login.useMutation({onSuccess:()=>a.auth.me.invalidate()}),f=Rt.auth.logout.useMutation({onSuccess:()=>a.auth.me.invalidate()}),d=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:s,login:c,logout:f,podePublicar:d}}function Qb(){const{login:a}=pv(),[i,s]=L.useState(""),[c,f]=L.useState("");return _.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},className:"flex items-center justify-center px-6",children:_.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[_.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:32,marginBottom:"1.5rem"}}),_.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-lg font-medium",children:"Entrar"}),_.jsx("input",{className:"w-full rounded px-3 py-2",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},placeholder:"e-mail",value:i,onChange:d=>s(d.target.value)}),_.jsx("input",{className:"w-full rounded px-3 py-2",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},placeholder:"senha",type:"password",value:c,onChange:d=>f(d.target.value)}),_.jsx("button",{className:"btn btn-primary w-full",onClick:()=>a.mutate({email:i,senha:c}),disabled:a.isPending,children:a.isPending?"entrando...":"entrar"}),a.isError&&_.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:a.error.message})]})})}function Nb(){const{data:a}=Rt.config.obter.useQuery(),i=Rt.useUtils(),s=Rt.config.atualizar.useMutation({onSuccess:()=>i.config.obter.invalidate()});return a?_.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[_.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Configurações de exibição"}),_.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."}),_.jsxs("div",{className:"flex gap-4 items-center",children:[_.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",_.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onBlur:c=>s.mutate({colunasDesktop:Number(c.target.value)})})]}),_.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",_.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onBlur:c=>s.mutate({colunasTablet:Number(c.target.value)})})]})]}),_.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",_.jsxs("select",{defaultValue:a.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onChange:c=>s.mutate({modoPadrao:c.target.value}),children:[_.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),_.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]})]}):null}function Hb(){const a=Rt.useUtils(),i=Rt.biblioteca.admin.criar.useMutation({onSuccess:()=>a.biblioteca.admin.listar.invalidate()}),[s,c]=L.useState(""),[f,d]=L.useState(""),[h,v]=L.useState(""),[m,p]=L.useState(""),[z,O]=L.useState(""),[C,Y]=L.useState(""),[J,N]=L.useState(null),[$,at]=L.useState(null),[dt,Tt]=L.useState(!1),[Qt,F]=L.useState(null),X={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};async function D(G,et,I,tt={}){const ht=new FormData;ht.append(et,I);for(const[ct,j]of Object.entries(tt))ht.append(ct,j);const it=await fetch(G,{method:"POST",body:ht});if(!it.ok){const ct=await it.json().catch(()=>({}));throw new Error(ct.erro||"Falha no upload.")}return it.json()}async function K(){if(!J){F("Selecione o arquivo DOCX.");return}F(null),Tt(!0);try{const{docxOriginalUrl:G,epubUrl:et}=await D("/api/admin/upload-docx","arquivo",J,{titulo:s,autor:z});let I;$&&(I=(await D("/api/admin/upload-capa","imagem",$)).url),await i.mutateAsync({titulo:s,subtitulo:f||void 0,serie:h||void 0,volumeNumero:m?Number(m):void 0,autor:z,resumo:C||void 0,capaUrl:I,epubUrl:et,docxOriginalUrl:G}),c(""),d(""),v(""),p(""),O(""),Y(""),N(null),at(null)}catch(G){F(G instanceof Error?G.message:"Erro ao publicar.")}finally{Tt(!1)}}return _.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[_.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Novo livro"}),_.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"título",value:s,onChange:G=>c(G.target.value)}),_.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"subtítulo (opcional)",value:f,onChange:G=>d(G.target.value)}),_.jsxs("div",{className:"flex gap-3",children:[_.jsx("input",{className:"flex-1 rounded px-3 py-2",style:X,placeholder:"série (opcional)",value:h,onChange:G=>v(G.target.value)}),_.jsx("input",{className:"w-28 rounded px-3 py-2",style:X,placeholder:"volume nº",value:m,onChange:G=>p(G.target.value)})]}),_.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"autor",value:z,onChange:G=>O(G.target.value)}),_.jsx("textarea",{className:"w-full rounded px-3 py-2",style:X,placeholder:"resumo (opcional)",value:C,onChange:G=>Y(G.target.value)}),_.jsx("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"arquivo DOCX"}),_.jsx("input",{type:"file",accept:".docx",onChange:G=>N(G.target.files?.[0]??null)}),_.jsx("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"capa (opcional)"}),_.jsx("input",{type:"file",accept:"image/*",onChange:G=>at(G.target.files?.[0]??null)}),Qt&&_.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:Qt}),_.jsx("button",{className:"btn btn-primary",onClick:K,disabled:dt||!s||!z,children:dt?"processando...":"salvar como rascunho"})]})}function wb(){const a=Rt.useUtils(),{data:i}=Rt.biblioteca.admin.listar.useQuery(),s=Rt.biblioteca.admin.atualizar.useMutation({onSuccess:()=>a.biblioteca.admin.listar.invalidate()});return _.jsxs("div",{className:"mt-6 space-y-2",children:[_.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Livros"}),i?.map(c=>_.jsxs("div",{className:"flex items-center justify-between rounded px-3 py-2",style:{border:"var(--border-thin)"},children:[_.jsxs("div",{children:[_.jsx("p",{className:"text-sm font-medium",children:c.titulo}),_.jsxs("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[c.status," · ",c.epubUrl?"epub ok":"sem epub"]})]}),_.jsx("button",{className:"btn btn-ghost text-sm",style:{padding:"0.4rem 0.9rem",fontSize:"0.75rem"},onClick:()=>s.mutate({id:c.id,status:c.status==="publicado"?"rascunho":"publicado"}),children:c.status==="publicado"?"despublicar":"publicar"})]},c.id))]})}function Bb(){const{usuario:a,isLoading:i,podePublicar:s,logout:c}=pv();return i?null:a?s?_.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:_.jsxs("div",{className:"max-w-xl mx-auto p-6 space-y-6",children:[_.jsxs("div",{className:"flex justify-between items-center",children:[_.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:28}}),_.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>c.mutate(),children:"sair"})]}),_.jsx(Hb,{}),_.jsx(wb,{}),_.jsx(Nb,{})]})}):_.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},className:"p-6",children:"Sua conta não tem permissão de editor."}):_.jsx(Qb,{})}const Yb="/media/images/capas/capa-placeholder.svg";function Lb(){const{id:a}=Dc(),i=Number(a),{data:s,isLoading:c}=Rt.biblioteca.getLivro.useQuery({id:i}),{data:f}=Rt.auth.me.useQuery(),{data:d}=Rt.biblioteca.favoritos.status.useQuery({livroId:i},{enabled:!!f&&!Number.isNaN(i)}),h=Rt.useUtils(),v=Rt.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>h.biblioteca.favoritos.status.invalidate({livroId:i})});return c?_.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:_.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?_.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[_.jsxs("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:[_.jsx("a",{href:"/",style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:"← voltar"}),f&&_.jsx("button",{"aria-label":"favoritar",onClick:()=>v.mutate({livroId:i}),style:{background:"none",border:"none",fontSize:"1.1rem",color:d?.favorito?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:d?.favorito?"★":"☆"})]}),_.jsxs("div",{style:{maxWidth:640,margin:"0 auto",padding:"2rem 1.25rem 4rem",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[_.jsx("img",{src:s.capaUrl||Yb,alt:s.titulo,style:{width:180,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-borgonha-md)",marginBottom:"1.5rem"}}),_.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",fontWeight:600,color:"var(--clr-branco)",marginBottom:"0.4rem"},children:s.titulo}),s.subtitulo&&_.jsx("p",{style:{fontSize:"0.95rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),_.jsx("p",{style:{fontSize:"0.85rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),s.serie&&_.jsxs("a",{href:`/serie/${encodeURIComponent(s.serie)}`,style:{display:"inline-block",marginTop:"0.4rem",marginBottom:"1.5rem",fontSize:"0.75rem",padding:"0.35rem 0.9rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",color:"var(--clr-acento-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&_.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?_.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):_.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."})]})]}):_.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"1rem"},children:[_.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),_.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]})}function Gb(){const i=new URLSearchParams(ag()).get("q")||"",[s,c]=L.useState(i),[f,d]=L.useState(i),{data:h,isLoading:v}=Rt.biblioteca.buscar.useQuery({q:f},{enabled:f.length>0});function m(p){p.preventDefault(),d(s.trim()),window.history.replaceState(null,"",`/buscar?q=${encodeURIComponent(s.trim())}`)}return _.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[_.jsxs("header",{style:{display:"flex",alignItems:"center",gap:"1rem",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:[_.jsx("a",{href:"/",style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:"← voltar"}),_.jsx("form",{onSubmit:m,style:{flex:1},children:_.jsx("input",{autoFocus:!0,value:s,onChange:p=>c(p.target.value),placeholder:"buscar por título, autor ou série...",style:{width:"100%",padding:"0.5rem 0.9rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",background:"rgba(255,255,255,0.06)",color:"var(--clr-branco)",fontSize:"0.85rem"}})})]}),_.jsxs("div",{style:{maxWidth:960,margin:"0 auto",padding:"1.5rem 1.25rem 4rem"},children:[f.length===0&&_.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),v&&_.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),f.length>0&&!v&&h&&h.length===0&&_.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',f,'".']}),h&&h.length>0&&_.jsx(Qc,{livros:h,titulo:`resultados pra "${f}"`})]})]})}function Xb(){const{nome:a}=Dc(),i=decodeURIComponent(a),{data:s,isLoading:c}=Rt.biblioteca.getSerie.useQuery({nome:i});return _.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[_.jsx("header",{style:{display:"flex",alignItems:"center",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:_.jsx("a",{href:"/",style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:"← voltar"})}),_.jsxs("div",{style:{maxWidth:960,margin:"0 auto",padding:"1.5rem 1.25rem 4rem"},children:[_.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:i}),c&&_.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?_.jsx(Qc,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!c&&_.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]})]})}const Kb=L.lazy(()=>n0(()=>import("./Leitor-ClTsbRkF.js"),[]).then(a=>({default:a.Leitor})));function Zb(){const[a]=L.useState(()=>new b0);return _.jsx(Rt.Provider,{client:Mb,queryClient:a,children:_.jsx(T0,{client:a,children:_.jsx(L.Suspense,{fallback:null,children:_.jsxs(rg,{children:[_.jsx(kl,{path:"/admin",component:Bb}),_.jsx(kl,{path:"/leitor/:id",component:Kb}),_.jsx(kl,{path:"/livro/:id",component:Lb}),_.jsx(kl,{path:"/serie/:nome",component:Xb}),_.jsx(kl,{path:"/buscar",component:Gb}),_.jsx(kl,{path:"/",component:qb})]})})})})}Ip.createRoot(document.getElementById("root")).render(_.jsx(L.StrictMode,{children:_.jsx(Zb,{})}));export{ag as a,Vb as c,Gp as g,_ as j,L as r,Rt as t,Dc as u};
