@ottocode/web-ui 0.1.225 → 0.1.227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ var ab=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function lb(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var u=l.default;if(typeof u=="function"){var s=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};s.prototype=u.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(l).forEach(function(o){var r=Object.getOwnPropertyDescriptor(l,o);Object.defineProperty(s,o,r.get?r:{enumerable:!0,get:function(){return l[o]}})}),s}var Do={exports:{}},mi={};var Rm;function mg(){if(Rm)return mi;Rm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,r,h){var m=null;if(h!==void 0&&(m=""+h),r.key!==void 0&&(m=""+r.key),"key"in r){h={};for(var y in r)y!=="key"&&(h[y]=r[y])}else h=r;return r=h.ref,{$$typeof:l,type:o,key:m,ref:r!==void 0?r:null,props:h}}return mi.Fragment=u,mi.jsx=s,mi.jsxs=s,mi}var Em;function yg(){return Em||(Em=1,Do.exports=mg()),Do.exports}var at=yg(),Uo={exports:{}},st={};var Tm;function pg(){if(Tm)return st;Tm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),g=Symbol.iterator;function _(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,L={};function N(M,H,K){this.props=M,this.context=H,this.refs=L,this.updater=K||E}N.prototype.isReactComponent={},N.prototype.setState=function(M,H){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,H,"setState")},N.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function Q(){}Q.prototype=N.prototype;function X(M,H,K){this.props=M,this.context=H,this.refs=L,this.updater=K||E}var G=X.prototype=new Q;G.constructor=X,C(G,N.prototype),G.isPureReactComponent=!0;var P=Array.isArray;function I(){}var Y={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function Z(M,H,K){var J=K.ref;return{$$typeof:l,type:M,key:H,ref:J!==void 0?J:null,props:K}}function ut(M,H){return Z(M.type,H,M.props)}function tt(M){return typeof M=="object"&&M!==null&&M.$$typeof===l}function W(M){var H={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(K){return H[K]})}var Rt=/\/+/g;function bt(M,H){return typeof M=="object"&&M!==null&&M.key!=null?W(""+M.key):H.toString(36)}function Yt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(I,I):(M.status="pending",M.then(function(H){M.status==="pending"&&(M.status="fulfilled",M.value=H)},function(H){M.status==="pending"&&(M.status="rejected",M.reason=H)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function U(M,H,K,J,et){var rt=typeof M;(rt==="undefined"||rt==="boolean")&&(M=null);var pt=!1;if(M===null)pt=!0;else switch(rt){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(M.$$typeof){case l:case u:pt=!0;break;case b:return pt=M._init,U(pt(M._payload),H,K,J,et)}}if(pt)return et=et(M),pt=J===""?"."+bt(M,0):J,P(et)?(K="",pt!=null&&(K=pt.replace(Rt,"$&/")+"/"),U(et,H,K,"",function(We){return We})):et!=null&&(tt(et)&&(et=ut(et,K+(et.key==null||M&&M.key===et.key?"":(""+et.key).replace(Rt,"$&/")+"/")+pt)),H.push(et)),1;pt=0;var Ht=J===""?".":J+":";if(P(M))for(var Dt=0;Dt<M.length;Dt++)J=M[Dt],rt=Ht+bt(J,Dt),pt+=U(J,H,K,rt,et);else if(Dt=_(M),typeof Dt=="function")for(M=Dt.call(M),Dt=0;!(J=M.next()).done;)J=J.value,rt=Ht+bt(J,Dt++),pt+=U(J,H,K,rt,et);else if(rt==="object"){if(typeof M.then=="function")return U(Yt(M),H,K,J,et);throw H=String(M),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return pt}function V(M,H,K){if(M==null)return M;var J=[],et=0;return U(M,J,"","",function(rt){return H.call(K,rt,et++)}),J}function it(M){if(M._status===-1){var H=M._result;H=H(),H.then(function(K){(M._status===0||M._status===-1)&&(M._status=1,M._result=K)},function(K){(M._status===0||M._status===-1)&&(M._status=2,M._result=K)}),M._status===-1&&(M._status=0,M._result=H)}if(M._status===1)return M._result.default;throw M._result}var Et=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},_t={map:V,forEach:function(M,H,K){V(M,function(){H.apply(this,arguments)},K)},count:function(M){var H=0;return V(M,function(){H++}),H},toArray:function(M){return V(M,function(H){return H})||[]},only:function(M){if(!tt(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return st.Activity=S,st.Children=_t,st.Component=N,st.Fragment=s,st.Profiler=r,st.PureComponent=X,st.StrictMode=o,st.Suspense=v,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,st.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Y.H.useMemoCache(M)}},st.cache=function(M){return function(){return M.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(M,H,K){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var J=C({},M.props),et=M.key;if(H!=null)for(rt in H.key!==void 0&&(et=""+H.key),H)!q.call(H,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&H.ref===void 0||(J[rt]=H[rt]);var rt=arguments.length-2;if(rt===1)J.children=K;else if(1<rt){for(var pt=Array(rt),Ht=0;Ht<rt;Ht++)pt[Ht]=arguments[Ht+2];J.children=pt}return Z(M.type,et,J)},st.createContext=function(M){return M={$$typeof:m,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:h,_context:M},M},st.createElement=function(M,H,K){var J,et={},rt=null;if(H!=null)for(J in H.key!==void 0&&(rt=""+H.key),H)q.call(H,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(et[J]=H[J]);var pt=arguments.length-2;if(pt===1)et.children=K;else if(1<pt){for(var Ht=Array(pt),Dt=0;Dt<pt;Dt++)Ht[Dt]=arguments[Dt+2];et.children=Ht}if(M&&M.defaultProps)for(J in pt=M.defaultProps,pt)et[J]===void 0&&(et[J]=pt[J]);return Z(M,rt,et)},st.createRef=function(){return{current:null}},st.forwardRef=function(M){return{$$typeof:y,render:M}},st.isValidElement=tt,st.lazy=function(M){return{$$typeof:b,_payload:{_status:-1,_result:M},_init:it}},st.memo=function(M,H){return{$$typeof:d,type:M,compare:H===void 0?null:H}},st.startTransition=function(M){var H=Y.T,K={};Y.T=K;try{var J=M(),et=Y.S;et!==null&&et(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,Et)}catch(rt){Et(rt)}finally{H!==null&&K.types!==null&&(H.types=K.types),Y.T=H}},st.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},st.use=function(M){return Y.H.use(M)},st.useActionState=function(M,H,K){return Y.H.useActionState(M,H,K)},st.useCallback=function(M,H){return Y.H.useCallback(M,H)},st.useContext=function(M){return Y.H.useContext(M)},st.useDebugValue=function(){},st.useDeferredValue=function(M,H){return Y.H.useDeferredValue(M,H)},st.useEffect=function(M,H){return Y.H.useEffect(M,H)},st.useEffectEvent=function(M){return Y.H.useEffectEvent(M)},st.useId=function(){return Y.H.useId()},st.useImperativeHandle=function(M,H,K){return Y.H.useImperativeHandle(M,H,K)},st.useInsertionEffect=function(M,H){return Y.H.useInsertionEffect(M,H)},st.useLayoutEffect=function(M,H){return Y.H.useLayoutEffect(M,H)},st.useMemo=function(M,H){return Y.H.useMemo(M,H)},st.useOptimistic=function(M,H){return Y.H.useOptimistic(M,H)},st.useReducer=function(M,H,K){return Y.H.useReducer(M,H,K)},st.useRef=function(M){return Y.H.useRef(M)},st.useState=function(M){return Y.H.useState(M)},st.useSyncExternalStore=function(M,H,K){return Y.H.useSyncExternalStore(M,H,K)},st.useTransition=function(){return Y.H.useTransition()},st.version="19.2.4",st}var Mm;function Ci(){return Mm||(Mm=1,Uo.exports=pg()),Uo.exports}var F=Ci();const Ri=dg(F);var Lo={exports:{}},yi={},wo={exports:{}},No={};var Om;function vg(){return Om||(Om=1,(function(l){function u(U,V){var it=U.length;U.push(V);t:for(;0<it;){var Et=it-1>>>1,_t=U[Et];if(0<r(_t,V))U[Et]=V,U[it]=_t,it=Et;else break t}}function s(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var V=U[0],it=U.pop();if(it!==V){U[0]=it;t:for(var Et=0,_t=U.length,M=_t>>>1;Et<M;){var H=2*(Et+1)-1,K=U[H],J=H+1,et=U[J];if(0>r(K,it))J<_t&&0>r(et,K)?(U[Et]=et,U[J]=it,Et=J):(U[Et]=K,U[H]=it,Et=H);else if(J<_t&&0>r(et,it))U[Et]=et,U[J]=it,Et=J;else break t}}return V}function r(U,V){var it=U.sortIndex-V.sortIndex;return it!==0?it:U.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var m=Date,y=m.now();l.unstable_now=function(){return m.now()-y}}var v=[],d=[],b=1,S=null,g=3,_=!1,E=!1,C=!1,L=!1,N=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function G(U){for(var V=s(d);V!==null;){if(V.callback===null)o(d);else if(V.startTime<=U)o(d),V.sortIndex=V.expirationTime,u(v,V);else break;V=s(d)}}function P(U){if(C=!1,G(U),!E)if(s(v)!==null)E=!0,I||(I=!0,W());else{var V=s(d);V!==null&&Yt(P,V.startTime-U)}}var I=!1,Y=-1,q=5,Z=-1;function ut(){return L?!0:!(l.unstable_now()-Z<q)}function tt(){if(L=!1,I){var U=l.unstable_now();Z=U;var V=!0;try{t:{E=!1,C&&(C=!1,Q(Y),Y=-1),_=!0;var it=g;try{e:{for(G(U),S=s(v);S!==null&&!(S.expirationTime>U&&ut());){var Et=S.callback;if(typeof Et=="function"){S.callback=null,g=S.priorityLevel;var _t=Et(S.expirationTime<=U);if(U=l.unstable_now(),typeof _t=="function"){S.callback=_t,G(U),V=!0;break e}S===s(v)&&o(v),G(U)}else o(v);S=s(v)}if(S!==null)V=!0;else{var M=s(d);M!==null&&Yt(P,M.startTime-U),V=!1}}break t}finally{S=null,g=it,_=!1}V=void 0}}finally{V?W():I=!1}}}var W;if(typeof X=="function")W=function(){X(tt)};else if(typeof MessageChannel<"u"){var Rt=new MessageChannel,bt=Rt.port2;Rt.port1.onmessage=tt,W=function(){bt.postMessage(null)}}else W=function(){N(tt,0)};function Yt(U,V){Y=N(function(){U(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(U){U.callback=null},l.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return g},l.unstable_next=function(U){switch(g){case 1:case 2:case 3:var V=3;break;default:V=g}var it=g;g=V;try{return U()}finally{g=it}},l.unstable_requestPaint=function(){L=!0},l.unstable_runWithPriority=function(U,V){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var it=g;g=U;try{return V()}finally{g=it}},l.unstable_scheduleCallback=function(U,V,it){var Et=l.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?Et+it:Et):it=Et,U){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=it+_t,U={id:b++,callback:V,priorityLevel:U,startTime:it,expirationTime:_t,sortIndex:-1},it>Et?(U.sortIndex=it,u(d,U),s(v)===null&&U===s(d)&&(C?(Q(Y),Y=-1):C=!0,Yt(P,it-Et))):(U.sortIndex=_t,u(v,U),E||_||(E=!0,I||(I=!0,W()))),U},l.unstable_shouldYield=ut,l.unstable_wrapCallback=function(U){var V=g;return function(){var it=g;g=V;try{return U.apply(this,arguments)}finally{g=it}}}})(No)),No}var Cm;function gg(){return Cm||(Cm=1,wo.exports=vg()),wo.exports}var Bo={exports:{}},ae={};var Am;function Sg(){if(Am)return ae;Am=1;var l=Ci();function u(v){var d="https://react.dev/errors/"+v;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)d+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function h(v,d,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:S==null?null:""+S,children:v,containerInfo:d,implementation:b}}var m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,d){if(v==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(v,d){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(u(299));return h(v,d,null,b)},ae.flushSync=function(v){var d=m.T,b=o.p;try{if(m.T=null,o.p=2,v)return v()}finally{m.T=d,o.p=b,o.d.f()}},ae.preconnect=function(v,d){typeof v=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,o.d.C(v,d))},ae.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},ae.preinit=function(v,d){if(typeof v=="string"&&d&&typeof d.as=="string"){var b=d.as,S=y(b,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;b==="style"?o.d.S(v,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:g,fetchPriority:_}):b==="script"&&o.d.X(v,{crossOrigin:S,integrity:g,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ae.preinitModule=function(v,d){if(typeof v=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var b=y(d.as,d.crossOrigin);o.d.M(v,{crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&o.d.M(v)},ae.preload=function(v,d){if(typeof v=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var b=d.as,S=y(b,d.crossOrigin);o.d.L(v,b,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ae.preloadModule=function(v,d){if(typeof v=="string")if(d){var b=y(d.as,d.crossOrigin);o.d.m(v,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else o.d.m(v)},ae.requestFormReset=function(v){o.d.r(v)},ae.unstable_batchedUpdates=function(v,d){return v(d)},ae.useFormState=function(v,d,b){return m.H.useFormState(v,d,b)},ae.useFormStatus=function(){return m.H.useHostTransitionStatus()},ae.version="19.2.4",ae}var xm;function dy(){if(xm)return Bo.exports;xm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Bo.exports=Sg(),Bo.exports}var zm;function bg(){if(zm)return yi;zm=1;var l=gg(),u=Ci(),s=dy();function o(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 r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(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 m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(h(t)!==t)throw Error(o(188))}function d(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,a=e;;){var i=n.return;if(i===null)break;var c=i.alternate;if(c===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===c.child){for(c=i.child;c;){if(c===n)return v(i),t;if(c===a)return v(i),e;c=c.sibling}throw Error(o(188))}if(n.return!==a.return)n=i,a=c;else{for(var f=!1,p=i.child;p;){if(p===n){f=!0,n=i,a=c;break}if(p===a){f=!0,a=i,n=c;break}p=p.sibling}if(!f){for(p=c.child;p;){if(p===n){f=!0,n=c,a=i;break}if(p===a){f=!0,a=c,n=i;break}p=p.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,g=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),ut=Symbol.for("react.memo_cache_sentinel"),tt=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=tt&&t[tt]||t["@@iterator"],typeof t=="function"?t:null)}var Rt=Symbol.for("react.client.reference");function bt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case N:return"Profiler";case L:return"StrictMode";case P:return"Suspense";case I:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case X:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Y:return e=t.displayName||null,e!==null?e:bt(t.type)||"Memo";case q:e=t._payload,t=t._init;try{return bt(t(e))}catch{}}return null}var Yt=Array.isArray,U=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},Et=[],_t=-1;function M(t){return{current:t}}function H(t){0>_t||(t.current=Et[_t],Et[_t]=null,_t--)}function K(t,e){_t++,Et[_t]=t.current,t.current=e}var J=M(null),et=M(null),rt=M(null),pt=M(null);function Ht(t,e){switch(K(rt,e),K(et,t),K(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Kd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Kd(e),t=Zd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(J),K(J,t)}function Dt(){H(J),H(et),H(rt)}function We(t){t.memoizedState!==null&&K(pt,t);var e=J.current,n=Zd(e,t.type);e!==n&&(K(et,t),K(J,n))}function $e(t){et.current===t&&(H(J),H(et)),pt.current===t&&(H(pt),ri._currentValue=it)}var bn,Sl;function Ve(t){if(bn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);bn=e&&e[1]||"",Sl=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+bn+t+Sl}var bl=!1;function Aa(t,e){if(!t||bl)return"";bl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(D){var z=D}Reflect.construct(t,[],j)}else{try{j.call()}catch(D){z=D}t.call(j.prototype)}}else{try{throw Error()}catch(D){z=D}(j=t())&&typeof j.catch=="function"&&j.catch(function(){})}}catch(D){if(D&&z&&typeof D.stack=="string")return[D.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],p=c[1];if(f&&p){var R=f.split(`
4
+ `),x=p.split(`
5
+ `);for(i=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;i<x.length&&!x[i].includes("DetermineComponentFrameRoot");)i++;if(a===R.length||i===x.length)for(a=R.length-1,i=x.length-1;1<=a&&0<=i&&R[a]!==x[i];)i--;for(;1<=a&&0<=i;a--,i--)if(R[a]!==x[i]){if(a!==1||i!==1)do if(a--,i--,0>i||R[a]!==x[i]){var w=`
6
+ `+R[a].replace(" at new "," at ");return t.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",t.displayName)),w}while(1<=a&&0<=i);break}}}finally{bl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ve(n):""}function Ai(t,e){switch(t.tag){case 26:case 27:case 5:return Ve(t.type);case 16:return Ve("Lazy");case 13:return t.child!==e&&e!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return Aa(t.type,!1);case 11:return Aa(t.type.render,!1);case 1:return Aa(t.type,!0);case 31:return Ve("Activity");default:return""}}function Ie(t){try{var e="",n=null;do e+=Ai(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
+ Error generating stack: `+a.message+`
8
+ `+a.stack}}var In=Object.prototype.hasOwnProperty,Qe=l.unstable_scheduleCallback,_l=l.unstable_cancelCallback,vs=l.unstable_shouldYield,xi=l.unstable_requestPaint,le=l.unstable_now,zi=l.unstable_getCurrentPriorityLevel,xt=l.unstable_ImmediatePriority,Gt=l.unstable_UserBlockingPriority,ne=l.unstable_NormalPriority,Di=l.unstable_LowPriority,Tr=l.unstable_IdlePriority,ky=l.log,Fy=l.unstable_setDisableYieldValue,Rl=null,ye=null;function _n(t){if(typeof ky=="function"&&Fy(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(Rl,t)}catch{}}var pe=Math.clz32?Math.clz32:Iy,Wy=Math.log,$y=Math.LN2;function Iy(t){return t>>>=0,t===0?32:31-(Wy(t)/$y|0)|0}var Ui=256,Li=262144,wi=4194304;function ta(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 Ni(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var i=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=a&134217727;return p!==0?(a=p&~c,a!==0?i=ta(a):(f&=p,f!==0?i=ta(f):n||(n=p&~t,n!==0&&(i=ta(n))))):(p=a&~c,p!==0?i=ta(p):f!==0?i=ta(f):n||(n=a&~t,n!==0&&(i=ta(n)))),i===0?0:e!==0&&e!==i&&(e&c)===0&&(c=i&-i,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:i}function El(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function tp(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 Mr(){var t=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),t}function gs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Tl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ep(t,e,n,a,i,c){var f=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 p=t.entanglements,R=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var w=31-pe(n),j=1<<w;p[w]=0,R[w]=-1;var z=x[w];if(z!==null)for(x[w]=null,w=0;w<z.length;w++){var D=z[w];D!==null&&(D.lane&=-536870913)}n&=~j}a!==0&&Or(t,a,0),c!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function Or(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-pe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Cr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-pe(n),i=1<<a;i&e|t[a]&e&&(t[a]|=e),n&=~i}}function Ar(t,e){var n=e&-e;return n=(n&42)!==0?1:Ss(n),(n&(t.suspendedLanes|e))!==0?0:n}function Ss(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 bs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function xr(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:ym(t.type))}function zr(t,e){var n=V.p;try{return V.p=t,e()}finally{V.p=n}}var Rn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Rn,se="__reactProps$"+Rn,xa="__reactContainer$"+Rn,_s="__reactEvents$"+Rn,np="__reactListeners$"+Rn,ap="__reactHandles$"+Rn,Dr="__reactResources$"+Rn,Ml="__reactMarker$"+Rn;function Rs(t){delete t[Wt],delete t[se],delete t[_s],delete t[np],delete t[ap]}function za(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[xa]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Id(t);t!==null;){if(n=t[Wt])return n;t=Id(t)}return e}t=n,n=t.parentNode}return null}function Da(t){if(t=t[Wt]||t[xa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ol(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Ua(t){var e=t[Dr];return e||(e=t[Dr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Ml]=!0}var Ur=new Set,Lr={};function ea(t,e){La(t,e),La(t+"Capture",e)}function La(t,e){for(Lr[t]=e,t=0;t<e.length;t++)Ur.add(e[t])}var lp=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]*$"),wr={},Nr={};function ip(t){return In.call(Nr,t)?!0:In.call(wr,t)?!1:lp.test(t)?Nr[t]=!0:(wr[t]=!0,!1)}function Bi(t,e,n){if(ip(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ji(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 tn(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Br(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function up(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Es(t){if(!t._valueTracker){var e=Br(t)?"checked":"value";t._valueTracker=up(t,e,""+t[e])}}function jr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Br(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Hi(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 sp=/[\n"\\]/g;function Ce(t){return t.replace(sp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ts(t,e,n,a,i,c,f,p){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Ms(t,f,Oe(e)):n!=null?Ms(t,f,Oe(n)):a!=null&&t.removeAttribute("value"),i==null&&c!=null&&(t.defaultChecked=!!c),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+Oe(p):t.removeAttribute("name")}function Hr(t,e,n,a,i,c,f,p){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Es(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,p||e===t.value||(t.value=e),t.defaultValue=e}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=p?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Es(t)}function Ms(t,e,n){e==="number"&&Hi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function wa(t,e,n,a){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Oe(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,a&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function qr(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function Qr(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Yt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Es(t)}function Na(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var cp=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 Yr(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||cp.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Gr(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var i in e)a=e[i],e.hasOwnProperty(i)&&n[i]!==a&&Yr(t,i,a)}else for(var c in e)e.hasOwnProperty(c)&&Yr(t,c,e[c])}function Os(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 op=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"]]),rp=/^[\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 qi(t){return rp.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function en(){}var Cs=null;function As(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ba=null,ja=null;function Xr(t){var e=Da(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ts(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="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var i=a[se]||null;if(!i)throw Error(o(90));Ts(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&jr(a)}break t;case"textarea":qr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&wa(t,!!n.multiple,e,!1)}}}var xs=!1;function Vr(t,e,n){if(xs)return t(e,n);xs=!0;try{var a=t(e);return a}finally{if(xs=!1,(Ba!==null||ja!==null)&&(Ou(),Ba&&(e=Ba,t=ja,ja=Ba=null,Xr(e),t)))for(e=0;e<t.length;e++)Xr(t[e])}}function Cl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[se]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zs=!1;if(nn)try{var Al={};Object.defineProperty(Al,"passive",{get:function(){zs=!0}}),window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{zs=!1}var En=null,Ds=null,Qi=null;function Kr(){if(Qi)return Qi;var t,e=Ds,n=e.length,a,i="value"in En?En.value:En.textContent,c=i.length;for(t=0;t<n&&e[t]===i[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===i[c-a];a++);return Qi=i.slice(t,1<a?1-a:void 0)}function Yi(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 Gi(){return!0}function Zr(){return!1}function ce(t){function e(n,a,i,c,f){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var p in t)t.hasOwnProperty(p)&&(n=t[p],this[p]=n?n(c):c[p]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Gi:Zr,this.isPropagationStopped=Zr,this}return S(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=Gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),e}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xi=ce(na),xl=S({},na,{view:0,detail:0}),fp=ce(xl),Us,Ls,zl,Vi=S({},xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ns,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!==zl&&(zl&&t.type==="mousemove"?(Us=t.screenX-zl.screenX,Ls=t.screenY-zl.screenY):Ls=Us=0,zl=t),Us)},movementY:function(t){return"movementY"in t?t.movementY:Ls}}),Jr=ce(Vi),hp=S({},Vi,{dataTransfer:0}),dp=ce(hp),mp=S({},xl,{relatedTarget:0}),ws=ce(mp),yp=S({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),pp=ce(yp),vp=S({},na,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gp=ce(vp),Sp=S({},na,{data:0}),Pr=ce(Sp),bp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_p={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"},Rp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ep(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Rp[t])?!!e[t]:!1}function Ns(){return Ep}var Tp=S({},xl,{key:function(t){if(t.key){var e=bp[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Yi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_p[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ns,charCode:function(t){return t.type==="keypress"?Yi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Yi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Mp=ce(Tp),Op=S({},Vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kr=ce(Op),Cp=S({},xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ns}),Ap=ce(Cp),xp=S({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),zp=ce(xp),Dp=S({},Vi,{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}),Up=ce(Dp),Lp=S({},na,{newState:0,oldState:0}),wp=ce(Lp),Np=[9,13,27,32],Bs=nn&&"CompositionEvent"in window,Dl=null;nn&&"documentMode"in document&&(Dl=document.documentMode);var Bp=nn&&"TextEvent"in window&&!Dl,Fr=nn&&(!Bs||Dl&&8<Dl&&11>=Dl),Wr=" ",$r=!1;function Ir(t,e){switch(t){case"keyup":return Np.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ha=!1;function jp(t,e){switch(t){case"compositionend":return tf(e);case"keypress":return e.which!==32?null:($r=!0,Wr);case"textInput":return t=e.data,t===Wr&&$r?null:t;default:return null}}function Hp(t,e){if(Ha)return t==="compositionend"||!Bs&&Ir(t,e)?(t=Kr(),Qi=Ds=En=null,Ha=!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 Fr&&e.locale!=="ko"?null:e.data;default:return null}}var qp={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 ef(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!qp[t.type]:e==="textarea"}function nf(t,e,n,a){Ba?ja?ja.push(a):ja=[a]:Ba=a,e=Lu(e,"onChange"),0<e.length&&(n=new Xi("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Ul=null,Ll=null;function Qp(t){qd(t,0)}function Ki(t){var e=Ol(t);if(jr(e))return t}function af(t,e){if(t==="change")return e}var lf=!1;if(nn){var js;if(nn){var Hs="oninput"in document;if(!Hs){var uf=document.createElement("div");uf.setAttribute("oninput","return;"),Hs=typeof uf.oninput=="function"}js=Hs}else js=!1;lf=js&&(!document.documentMode||9<document.documentMode)}function sf(){Ul&&(Ul.detachEvent("onpropertychange",cf),Ll=Ul=null)}function cf(t){if(t.propertyName==="value"&&Ki(Ll)){var e=[];nf(e,Ll,t,As(t)),Vr(Qp,e)}}function Yp(t,e,n){t==="focusin"?(sf(),Ul=e,Ll=n,Ul.attachEvent("onpropertychange",cf)):t==="focusout"&&sf()}function Gp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ki(Ll)}function Xp(t,e){if(t==="click")return Ki(e)}function Vp(t,e){if(t==="input"||t==="change")return Ki(e)}function Kp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ve=typeof Object.is=="function"?Object.is:Kp;function wl(t,e){if(ve(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!In.call(e,i)||!ve(t[i],e[i]))return!1}return!0}function of(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function rf(t,e){var n=of(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=of(n)}}function ff(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ff(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function hf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Hi(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=Hi(t.document)}return e}function qs(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 Zp=nn&&"documentMode"in document&&11>=document.documentMode,qa=null,Qs=null,Nl=null,Ys=!1;function df(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ys||qa==null||qa!==Hi(a)||(a=qa,"selectionStart"in a&&qs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Nl&&wl(Nl,a)||(Nl=a,a=Lu(Qs,"onSelect"),0<a.length&&(e=new Xi("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=qa)))}function aa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Qa={animationend:aa("Animation","AnimationEnd"),animationiteration:aa("Animation","AnimationIteration"),animationstart:aa("Animation","AnimationStart"),transitionrun:aa("Transition","TransitionRun"),transitionstart:aa("Transition","TransitionStart"),transitioncancel:aa("Transition","TransitionCancel"),transitionend:aa("Transition","TransitionEnd")},Gs={},mf={};nn&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete Qa.animationend.animation,delete Qa.animationiteration.animation,delete Qa.animationstart.animation),"TransitionEvent"in window||delete Qa.transitionend.transition);function la(t){if(Gs[t])return Gs[t];if(!Qa[t])return t;var e=Qa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in mf)return Gs[t]=e[n];return t}var yf=la("animationend"),pf=la("animationiteration"),vf=la("animationstart"),Jp=la("transitionrun"),Pp=la("transitionstart"),kp=la("transitioncancel"),gf=la("transitionend"),Sf=new Map,Xs="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(" ");Xs.push("scrollEnd");function Ye(t,e){Sf.set(t,e),ea(e,[t])}var Zi=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=[],Ya=0,Vs=0;function Ji(){for(var t=Ya,e=Vs=Ya=0;e<t;){var n=Ae[e];Ae[e++]=null;var a=Ae[e];Ae[e++]=null;var i=Ae[e];Ae[e++]=null;var c=Ae[e];if(Ae[e++]=null,a!==null&&i!==null){var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}c!==0&&bf(n,i,c)}}function Pi(t,e,n,a){Ae[Ya++]=t,Ae[Ya++]=e,Ae[Ya++]=n,Ae[Ya++]=a,Vs|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ks(t,e,n,a){return Pi(t,e,n,a),ki(t)}function ia(t,e){return Pi(t,null,null,e),ki(t)}function bf(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var i=!1,c=t.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(i=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,i&&e!==null&&(i=31-pe(n),t=c.hiddenUpdates,a=t[i],a===null?t[i]=[e]:a.push(e),e.lane=n|536870912),c):null}function ki(t){if(50<ai)throw ai=0,to=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ga={};function Fp(t,e,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ge(t,e,n,a){return new Fp(t,e,n,a)}function Zs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function an(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 _f(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 Fi(t,e,n,a,i,c){var f=0;if(a=t,typeof t=="function")Zs(t)&&(f=1);else if(typeof t=="string")f=eg(t,n,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=ge(31,n,e,i),t.elementType=Z,t.lanes=c,t;case C:return ua(n.children,i,c,e);case L:f=8,i|=24;break;case N:return t=ge(12,n,e,i|2),t.elementType=N,t.lanes=c,t;case P:return t=ge(13,n,e,i),t.elementType=P,t.lanes=c,t;case I:return t=ge(19,n,e,i),t.elementType=I,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case Q:f=9;break t;case G:f=11;break t;case Y:f=14;break t;case q:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ge(f,n,e,i),e.elementType=t,e.type=a,e.lanes=c,e}function ua(t,e,n,a){return t=ge(7,t,a,e),t.lanes=n,t}function Js(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function Rf(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function Ps(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 Ef=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=Ef.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ie(e)},Ef.set(t,e),e)}return{value:t,source:e,stack:Ie(e)}}var Xa=[],Va=0,Wi=null,Bl=0,ze=[],De=0,Tn=null,Ke=1,Ze="";function ln(t,e){Xa[Va++]=Bl,Xa[Va++]=Wi,Wi=t,Bl=e}function Tf(t,e,n){ze[De++]=Ke,ze[De++]=Ze,ze[De++]=Tn,Tn=t;var a=Ke;t=Ze;var i=32-pe(a)-1;a&=~(1<<i),n+=1;var c=32-pe(e)+i;if(30<c){var f=i-i%5;c=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Ke=1<<32-pe(e)+i|n<<i|a,Ze=c+t}else Ke=1<<c|n<<i|a,Ze=t}function ks(t){t.return!==null&&(ln(t,1),Tf(t,1,0))}function Fs(t){for(;t===Wi;)Wi=Xa[--Va],Xa[Va]=null,Bl=Xa[--Va],Xa[Va]=null;for(;t===Tn;)Tn=ze[--De],ze[De]=null,Ze=ze[--De],ze[De]=null,Ke=ze[--De],ze[De]=null}function Mf(t,e){ze[De++]=Ke,ze[De++]=Ze,ze[De++]=Tn,Ke=e.id,Ze=e.overflow,Tn=t}var $t=null,Ut=null,yt=!1,Mn=null,Ue=!1,Ws=Error(o(519));function On(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jl(xe(e,t)),Ws}function Of(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[se]=a,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<ii.length;n++)ht(ii[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),Hr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),Qr(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Xd(e.textContent,n)?(a.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),a.onScroll!=null&&ht("scroll",e),a.onScrollEnd!=null&&ht("scrollend",e),a.onClick!=null&&(e.onclick=en),e=!0):e=!1,e||On(t,!0)}function Cf(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:$t=$t.return}}function Ka(t){if(t!==$t)return!1;if(!yt)return Cf(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||po(t.type,t.memoizedProps)),n=!n),n&&Ut&&On(t),Cf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=$d(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=$d(t)}else e===27?(e=Ut,Qn(t.type)?(t=_o,_o=null,Ut=t):Ut=e):Ut=$t?we(t.stateNode.nextSibling):null;return!0}function sa(){Ut=$t=null,yt=!1}function $s(){var t=Mn;return t!==null&&(he===null?he=t:he.push.apply(he,t),Mn=null),t}function jl(t){Mn===null?Mn=[t]:Mn.push(t)}var Is=M(null),ca=null,un=null;function Cn(t,e,n){K(Is,e._currentValue),e._currentValue=n}function sn(t){t._currentValue=Is.current,H(Is)}function tc(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function ec(t,e,n,a){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){var f=i.child;c=c.firstContext;t:for(;c!==null;){var p=c;c=i;for(var R=0;R<e.length;R++)if(p.context===e[R]){c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),tc(c.return,n,t),a||(f=null);break t}c=p.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),tc(f,n,t),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===t){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Za(t,e,n,a){t=null;for(var i=e,c=!1;i!==null;){if(!c){if((i.flags&524288)!==0)c=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=i.type;ve(i.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(i===pt.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(ri):t=[ri])}i=i.return}t!==null&&ec(e,t,n,a),e.flags|=262144}function $i(t){for(t=t.firstContext;t!==null;){if(!ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function oa(t){ca=t,un=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Af(ca,t)}function Ii(t,e){return ca===null&&oa(t),Af(t,e)}function Af(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},un===null){if(t===null)throw Error(o(308));un=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else un=un.next=e;return n}var Wp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},$p=l.unstable_scheduleCallback,Ip=l.unstable_NormalPriority,Xt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nc(){return{controller:new Wp,data:new Map,refCount:0}}function Hl(t){t.refCount--,t.refCount===0&&$p(Ip,function(){t.controller.abort()})}var ql=null,ac=0,Ja=0,Pa=null;function tv(t,e){if(ql===null){var n=ql=[];ac=0,Ja=uo(),Pa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ac++,e.then(xf,xf),e}function xf(){if(--ac===0&&ql!==null){Pa!==null&&(Pa.status="fulfilled");var t=ql;ql=null,Ja=0,Pa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function ev(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var zf=U.S;U.S=function(t,e){dd=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&tv(t,e),zf!==null&&zf(t,e)};var ra=M(null);function lc(){var t=ra.current;return t!==null?t:zt.pooledCache}function tu(t,e){e===null?K(ra,ra.current):K(ra,e.pool)}function Df(){var t=lc();return t===null?null:{parent:Xt._currentValue,pool:t}}var ka=Error(o(460)),ic=Error(o(474)),eu=Error(o(542)),nu={then:function(){}};function Uf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Lf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(en,en),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Nf(t),t;default:if(typeof e.status=="string")e.then(en,en);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=a}},function(a){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Nf(t),t}throw ha=e,ka}}function fa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ha=n,ka):n}}var ha=null;function wf(){if(ha===null)throw Error(o(459));var t=ha;return ha=null,t}function Nf(t){if(t===ka||t===eu)throw Error(o(483))}var Fa=null,Ql=0;function au(t){var e=Ql;return Ql+=1,Fa===null&&(Fa=[]),Lf(Fa,t,e)}function Yl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function lu(t,e){throw e.$$typeof===g?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Bf(t){function e(O,T){if(t){var A=O.deletions;A===null?(O.deletions=[T],O.flags|=16):A.push(T)}}function n(O,T){if(!t)return null;for(;T!==null;)e(O,T),T=T.sibling;return null}function a(O){for(var T=new Map;O!==null;)O.key!==null?T.set(O.key,O):T.set(O.index,O),O=O.sibling;return T}function i(O,T){return O=an(O,T),O.index=0,O.sibling=null,O}function c(O,T,A){return O.index=A,t?(A=O.alternate,A!==null?(A=A.index,A<T?(O.flags|=67108866,T):A):(O.flags|=67108866,T)):(O.flags|=1048576,T)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function p(O,T,A,B){return T===null||T.tag!==6?(T=Js(A,O.mode,B),T.return=O,T):(T=i(T,A),T.return=O,T)}function R(O,T,A,B){var nt=A.type;return nt===C?w(O,T,A.props.children,B,A.key):T!==null&&(T.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===q&&fa(nt)===T.type)?(T=i(T,A.props),Yl(T,A),T.return=O,T):(T=Fi(A.type,A.key,A.props,null,O.mode,B),Yl(T,A),T.return=O,T)}function x(O,T,A,B){return T===null||T.tag!==4||T.stateNode.containerInfo!==A.containerInfo||T.stateNode.implementation!==A.implementation?(T=Ps(A,O.mode,B),T.return=O,T):(T=i(T,A.children||[]),T.return=O,T)}function w(O,T,A,B,nt){return T===null||T.tag!==7?(T=ua(A,O.mode,B,nt),T.return=O,T):(T=i(T,A),T.return=O,T)}function j(O,T,A){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Js(""+T,O.mode,A),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case _:return A=Fi(T.type,T.key,T.props,null,O.mode,A),Yl(A,T),A.return=O,A;case E:return T=Ps(T,O.mode,A),T.return=O,T;case q:return T=fa(T),j(O,T,A)}if(Yt(T)||W(T))return T=ua(T,O.mode,A,null),T.return=O,T;if(typeof T.then=="function")return j(O,au(T),A);if(T.$$typeof===X)return j(O,Ii(O,T),A);lu(O,T)}return null}function z(O,T,A,B){var nt=T!==null?T.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:p(O,T,""+A,B);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?R(O,T,A,B):null;case E:return A.key===nt?x(O,T,A,B):null;case q:return A=fa(A),z(O,T,A,B)}if(Yt(A)||W(A))return nt!==null?null:w(O,T,A,B,null);if(typeof A.then=="function")return z(O,T,au(A),B);if(A.$$typeof===X)return z(O,T,Ii(O,A),B);lu(O,A)}return null}function D(O,T,A,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return O=O.get(A)||null,p(T,O,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case _:return O=O.get(B.key===null?A:B.key)||null,R(T,O,B,nt);case E:return O=O.get(B.key===null?A:B.key)||null,x(T,O,B,nt);case q:return B=fa(B),D(O,T,A,B,nt)}if(Yt(B)||W(B))return O=O.get(A)||null,w(T,O,B,nt,null);if(typeof B.then=="function")return D(O,T,A,au(B),nt);if(B.$$typeof===X)return D(O,T,A,Ii(T,B),nt);lu(T,B)}return null}function k(O,T,A,B){for(var nt=null,vt=null,$=T,ot=T=0,mt=null;$!==null&&ot<A.length;ot++){$.index>ot?(mt=$,$=null):mt=$.sibling;var gt=z(O,$,A[ot],B);if(gt===null){$===null&&($=mt);break}t&&$&&gt.alternate===null&&e(O,$),T=c(gt,T,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt,$=mt}if(ot===A.length)return n(O,$),yt&&ln(O,ot),nt;if($===null){for(;ot<A.length;ot++)$=j(O,A[ot],B),$!==null&&(T=c($,T,ot),vt===null?nt=$:vt.sibling=$,vt=$);return yt&&ln(O,ot),nt}for($=a($);ot<A.length;ot++)mt=D($,O,ot,A[ot],B),mt!==null&&(t&&mt.alternate!==null&&$.delete(mt.key===null?ot:mt.key),T=c(mt,T,ot),vt===null?nt=mt:vt.sibling=mt,vt=mt);return t&&$.forEach(function(Kn){return e(O,Kn)}),yt&&ln(O,ot),nt}function lt(O,T,A,B){if(A==null)throw Error(o(151));for(var nt=null,vt=null,$=T,ot=T=0,mt=null,gt=A.next();$!==null&&!gt.done;ot++,gt=A.next()){$.index>ot?(mt=$,$=null):mt=$.sibling;var Kn=z(O,$,gt.value,B);if(Kn===null){$===null&&($=mt);break}t&&$&&Kn.alternate===null&&e(O,$),T=c(Kn,T,ot),vt===null?nt=Kn:vt.sibling=Kn,vt=Kn,$=mt}if(gt.done)return n(O,$),yt&&ln(O,ot),nt;if($===null){for(;!gt.done;ot++,gt=A.next())gt=j(O,gt.value,B),gt!==null&&(T=c(gt,T,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return yt&&ln(O,ot),nt}for($=a($);!gt.done;ot++,gt=A.next())gt=D($,O,ot,gt.value,B),gt!==null&&(t&&gt.alternate!==null&&$.delete(gt.key===null?ot:gt.key),T=c(gt,T,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return t&&$.forEach(function(hg){return e(O,hg)}),yt&&ln(O,ot),nt}function At(O,T,A,B){if(typeof A=="object"&&A!==null&&A.type===C&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var nt=A.key;T!==null;){if(T.key===nt){if(nt=A.type,nt===C){if(T.tag===7){n(O,T.sibling),B=i(T,A.props.children),B.return=O,O=B;break t}}else if(T.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===q&&fa(nt)===T.type){n(O,T.sibling),B=i(T,A.props),Yl(B,A),B.return=O,O=B;break t}n(O,T);break}else e(O,T);T=T.sibling}A.type===C?(B=ua(A.props.children,O.mode,B,A.key),B.return=O,O=B):(B=Fi(A.type,A.key,A.props,null,O.mode,B),Yl(B,A),B.return=O,O=B)}return f(O);case E:t:{for(nt=A.key;T!==null;){if(T.key===nt)if(T.tag===4&&T.stateNode.containerInfo===A.containerInfo&&T.stateNode.implementation===A.implementation){n(O,T.sibling),B=i(T,A.children||[]),B.return=O,O=B;break t}else{n(O,T);break}else e(O,T);T=T.sibling}B=Ps(A,O.mode,B),B.return=O,O=B}return f(O);case q:return A=fa(A),At(O,T,A,B)}if(Yt(A))return k(O,T,A,B);if(W(A)){if(nt=W(A),typeof nt!="function")throw Error(o(150));return A=nt.call(A),lt(O,T,A,B)}if(typeof A.then=="function")return At(O,T,au(A),B);if(A.$$typeof===X)return At(O,T,Ii(O,A),B);lu(O,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,T!==null&&T.tag===6?(n(O,T.sibling),B=i(T,A),B.return=O,O=B):(n(O,T),B=Js(A,O.mode,B),B.return=O,O=B),f(O)):n(O,T)}return function(O,T,A,B){try{Ql=0;var nt=At(O,T,A,B);return Fa=null,nt}catch($){if($===ka||$===eu)throw $;var vt=ge(29,$,null,O.mode);return vt.lanes=B,vt.return=O,vt}}}var da=Bf(!0),jf=Bf(!1),An=!1;function uc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(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 xn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function zn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(St&2)!==0){var i=a.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),a.pending=e,e=ki(t),bf(t,null,n),e}return Pi(t,a,e,n),ki(t)}function Gl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Cr(t,n)}}function cc(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?i=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?i=c=e:c=c.next=e}else i=c=e;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var oc=!1;function Xl(){if(oc){var t=Pa;if(t!==null)throw t}}function Vl(t,e,n,a){oc=!1;var i=t.updateQueue;An=!1;var c=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var R=p,x=R.next;R.next=null,f===null?c=x:f.next=x,f=R;var w=t.alternate;w!==null&&(w=w.updateQueue,p=w.lastBaseUpdate,p!==f&&(p===null?w.firstBaseUpdate=x:p.next=x,w.lastBaseUpdate=R))}if(c!==null){var j=i.baseState;f=0,w=x=R=null,p=c;do{var z=p.lane&-536870913,D=z!==p.lane;if(D?(dt&z)===z:(a&z)===z){z!==0&&z===Ja&&(oc=!0),w!==null&&(w=w.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var k=t,lt=p;z=e;var At=n;switch(lt.tag){case 1:if(k=lt.payload,typeof k=="function"){j=k.call(At,j,z);break t}j=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=lt.payload,z=typeof k=="function"?k.call(At,j,z):k,z==null)break t;j=S({},j,z);break t;case 2:An=!0}}z=p.callback,z!==null&&(t.flags|=64,D&&(t.flags|=8192),D=i.callbacks,D===null?i.callbacks=[z]:D.push(z))}else D={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},w===null?(x=w=D,R=j):w=w.next=D,f|=z;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;D=p,p=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);w===null&&(R=j),i.baseState=R,i.firstBaseUpdate=x,i.lastBaseUpdate=w,c===null&&(i.shared.lanes=0),Nn|=f,t.lanes=f,t.memoizedState=j}}function Hf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function qf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Hf(n[t],e)}var Wa=M(null),iu=M(0);function Qf(t,e){t=pn,K(iu,t),K(Wa,e),pn=t|e.baseLanes}function rc(){K(iu,pn),K(Wa,Wa.current)}function fc(){pn=iu.current,H(Wa),H(iu)}var Se=M(null),Le=null;function Dn(t){var e=t.alternate;K(qt,qt.current&1),K(Se,t),Le===null&&(e===null||Wa.current!==null||e.memoizedState!==null)&&(Le=t)}function hc(t){K(qt,qt.current),K(Se,t),Le===null&&(Le=t)}function Yf(t){t.tag===22?(K(qt,qt.current),K(Se,t),Le===null&&(Le=t)):Un()}function Un(){K(qt,qt.current),K(Se,Se.current)}function be(t){H(Se),Le===t&&(Le=null),H(qt)}var qt=M(0);function uu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||So(n)||bo(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 cn=0,ct=null,Ot=null,Vt=null,su=!1,$a=!1,ma=!1,cu=0,Kl=0,Ia=null,nv=0;function Bt(){throw Error(o(321))}function dc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ve(t[n],e[n]))return!1;return!0}function mc(t,e,n,a,i,c){return cn=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Th:xc,ma=!1,c=n(a,i),ma=!1,$a&&(c=Xf(e,n,a,i)),Gf(t),c}function Gf(t){U.H=Pl;var e=Ot!==null&&Ot.next!==null;if(cn=0,Vt=Ot=ct=null,su=!1,Kl=0,Ia=null,e)throw Error(o(300));t===null||Kt||(t=t.dependencies,t!==null&&$i(t)&&(Kt=!0))}function Xf(t,e,n,a){ct=t;var i=0;do{if($a&&(Ia=null),Kl=0,$a=!1,25<=i)throw Error(o(301));if(i+=1,Vt=Ot=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Mh,c=e(n,a)}while($a);return c}function av(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Zl(e):e,t=t.useState()[0],(Ot!==null?Ot.memoizedState:null)!==t&&(ct.flags|=1024),e}function yc(){var t=cu!==0;return cu=0,t}function pc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function vc(t){if(su){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}su=!1}cn=0,Vt=Ot=ct=null,$a=!1,Kl=cu=0,Ia=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?ct.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Qt(){if(Ot===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Ot.next;var e=Vt===null?ct.memoizedState:Vt.next;if(e!==null)Vt=e,Ot=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Ot=t,t={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Vt===null?ct.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function ou(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zl(t){var e=Kl;return Kl+=1,Ia===null&&(Ia=[]),t=Lf(Ia,t,e),e=ct,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Th:xc),t}function ru(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Zl(t);if(t.$$typeof===X)return It(t)}throw Error(o(438,String(t)))}function gc(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ou(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=ut;return e.index++,n}function on(t,e){return typeof e=="function"?e(t):e}function fu(t){var e=Qt();return Sc(e,Ot,t)}function Sc(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var i=t.baseQueue,c=a.pending;if(c!==null){if(i!==null){var f=i.next;i.next=c.next,c.next=f}e.baseQueue=i=c,a.pending=null}if(c=t.baseState,i===null)t.memoizedState=c;else{e=i.next;var p=f=null,R=null,x=e,w=!1;do{var j=x.lane&-536870913;if(j!==x.lane?(dt&j)===j:(cn&j)===j){var z=x.revertLane;if(z===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),j===Ja&&(w=!0);else if((cn&z)===z){x=x.next,z===Ja&&(w=!0);continue}else j={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(p=R=j,f=c):R=R.next=j,ct.lanes|=z,Nn|=z;j=x.action,ma&&n(c,j),c=x.hasEagerState?x.eagerState:n(c,j)}else z={lane:j,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(p=R=z,f=c):R=R.next=z,ct.lanes|=j,Nn|=j;x=x.next}while(x!==null&&x!==e);if(R===null?f=c:R.next=p,!ve(c,t.memoizedState)&&(Kt=!0,w&&(n=Pa,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=R,a.lastRenderedState=c}return i===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function bc(t){var e=Qt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,i=n.pending,c=e.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do c=t(c,f.action),f=f.next;while(f!==i);ve(c,e.memoizedState)||(Kt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function Vf(t,e,n){var a=ct,i=Qt(),c=yt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ve((Ot||i).memoizedState,n);if(f&&(i.memoizedState=n,Kt=!0),i=i.queue,Ec(Jf.bind(null,a,i,t),[t]),i.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(a.flags|=2048,tl(9,{destroy:void 0},Zf.bind(null,a,i,n,e),null),zt===null)throw Error(o(349));c||(cn&127)!==0||Kf(a,e,n)}return n}function Kf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=ou(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Zf(t,e,n,a){e.value=n,e.getSnapshot=a,Pf(e)&&kf(t)}function Jf(t,e,n){return n(function(){Pf(e)&&kf(t)})}function Pf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ve(t,n)}catch{return!0}}function kf(t){var e=ia(t,2);e!==null&&de(e,t,2)}function _c(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ma){_n(!0);try{n()}finally{_n(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:t},e}function Ff(t,e,n,a){return t.baseState=n,Sc(t,Ot,typeof a=="function"?a:on)}function lv(t,e,n,a,i){if(mu(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};U.T!==null?n(!0):c.isTransition=!1,a(c),n=e.pending,n===null?(c.next=e.pending=c,Wf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function Wf(t,e){var n=e.action,a=e.payload,i=t.state;if(e.isTransition){var c=U.T,f={};U.T=f;try{var p=n(i,a),R=U.S;R!==null&&R(f,p),$f(t,e,p)}catch(x){Rc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),U.T=c}}else try{c=n(i,a),$f(t,e,c)}catch(x){Rc(t,e,x)}}function $f(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){If(t,e,a)},function(a){return Rc(t,e,a)}):If(t,e,n)}function If(t,e,n){e.status="fulfilled",e.value=n,th(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Wf(t,n)))}function Rc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,th(e),e=e.next;while(e!==a)}t.action=null}function th(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function eh(t,e){return e}function nh(t,e){if(yt){var n=zt.formState;if(n!==null){t:{var a=ct;if(yt){if(Ut){e:{for(var i=Ut,c=Ue;i.nodeType!==8;){if(!c){i=null;break e}if(i=we(i.nextSibling),i===null){i=null;break e}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){Ut=we(i.nextSibling),a=i.data==="F!";break t}}On(a)}a=!1}a&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eh,lastRenderedState:e},n.queue=a,n=_h.bind(null,ct,a),a.dispatch=n,a=_c(!1),c=Ac.bind(null,ct,!1,a.queue),a=ie(),i={state:e,dispatch:null,action:t,pending:null},a.queue=i,n=lv.bind(null,ct,i,c,n),i.dispatch=n,a.memoizedState=t,[e,n,!1]}function ah(t){var e=Qt();return lh(e,Ot,t)}function lh(t,e,n){if(e=Sc(t,e,eh)[0],t=fu(on)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Zl(e)}catch(f){throw f===ka?eu:f}else a=e;e=Qt();var i=e.queue,c=i.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,tl(9,{destroy:void 0},iv.bind(null,i,n),null)),[a,c,t]}function iv(t,e){t.action=e}function ih(t){var e=Qt(),n=Ot;if(n!==null)return lh(e,n,t);Qt(),e=e.memoizedState,n=Qt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function tl(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=ou(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function uh(){return Qt().memoizedState}function hu(t,e,n,a){var i=ie();ct.flags|=t,i.memoizedState=tl(1|e,{destroy:void 0},n,a===void 0?null:a)}function du(t,e,n,a){var i=Qt();a=a===void 0?null:a;var c=i.memoizedState.inst;Ot!==null&&a!==null&&dc(a,Ot.memoizedState.deps)?i.memoizedState=tl(e,c,n,a):(ct.flags|=t,i.memoizedState=tl(1|e,c,n,a))}function sh(t,e){hu(8390656,8,t,e)}function Ec(t,e){du(2048,8,t,e)}function uv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=ou(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ch(t){var e=Qt().memoizedState;return uv({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function oh(t,e){return du(4,2,t,e)}function rh(t,e){return du(4,4,t,e)}function fh(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 hh(t,e,n){n=n!=null?n.concat([t]):null,du(4,4,fh.bind(null,e,t),n)}function Tc(){}function dh(t,e){var n=Qt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&dc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function mh(t,e){var n=Qt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&dc(e,a[1]))return a[0];if(a=t(),ma){_n(!0);try{t()}finally{_n(!1)}}return n.memoizedState=[a,e],a}function Mc(t,e,n){return n===void 0||(cn&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=yd(),ct.lanes|=t,Nn|=t,n)}function yh(t,e,n,a){return ve(n,e)?n:Wa.current!==null?(t=Mc(t,n,a),ve(t,e)||(Kt=!0),t):(cn&42)===0||(cn&1073741824)!==0&&(dt&261930)===0?(Kt=!0,t.memoizedState=n):(t=yd(),ct.lanes|=t,Nn|=t,e)}function ph(t,e,n,a,i){var c=V.p;V.p=c!==0&&8>c?c:8;var f=U.T,p={};U.T=p,Ac(t,!1,e,n);try{var R=i(),x=U.S;if(x!==null&&x(p,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var w=ev(R,a);Jl(t,e,w,Ee(t))}else Jl(t,e,a,Ee(t))}catch(j){Jl(t,e,{then:function(){},status:"rejected",reason:j},Ee())}finally{V.p=c,f!==null&&p.types!==null&&(f.types=p.types),U.T=f}}function sv(){}function Oc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var i=vh(t).queue;ph(t,i,e,it,n===null?sv:function(){return gh(t),n(a)})}function vh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:it},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function gh(t){var e=vh(t);e.next===null&&(e=t.alternate.memoizedState),Jl(t,e.next.queue,{},Ee())}function Cc(){return It(ri)}function Sh(){return Qt().memoizedState}function bh(){return Qt().memoizedState}function cv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ee();t=xn(n);var a=zn(e,t,n);a!==null&&(de(a,e,n),Gl(a,e,n)),e={cache:nc()},t.payload=e;return}e=e.return}}function ov(t,e,n){var a=Ee();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mu(t)?Rh(e,n):(n=Ks(t,e,n,a),n!==null&&(de(n,t,a),Eh(n,e,a)))}function _h(t,e,n){var a=Ee();Jl(t,e,n,a)}function Jl(t,e,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mu(t))Rh(e,i);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,p=c(f,n);if(i.hasEagerState=!0,i.eagerState=p,ve(p,f))return Pi(t,e,i,0),zt===null&&Ji(),!1}catch{}if(n=Ks(t,e,i,a),n!==null)return de(n,t,a),Eh(n,e,a),!0}return!1}function Ac(t,e,n,a){if(a={lane:2,revertLane:uo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mu(t)){if(e)throw Error(o(479))}else e=Ks(t,n,a,2),e!==null&&de(e,t,2)}function mu(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Rh(t,e){$a=su=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Eh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Cr(t,n)}}var Pl={readContext:It,use:ru,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Pl.useEffectEvent=Bt;var Th={readContext:It,use:ru,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:sh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,hu(4194308,4,fh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return hu(4194308,4,t,e)},useInsertionEffect:function(t,e){hu(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var a=t();if(ma){_n(!0);try{t()}finally{_n(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ie();if(n!==void 0){var i=n(e);if(ma){_n(!0);try{n(e)}finally{_n(!1)}}}else i=e;return a.memoizedState=a.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},a.queue=t,t=t.dispatch=ov.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=_c(t);var e=t.queue,n=_h.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Tc,useDeferredValue:function(t,e){var n=ie();return Mc(n,t,e)},useTransition:function(){var t=_c(!1);return t=ph.bind(null,ct,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,i=ie();if(yt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(dt&127)!==0||Kf(a,e,n)}i.memoizedState=n;var c={value:n,getSnapshot:e};return i.queue=c,sh(Jf.bind(null,a,c,t),[t]),a.flags|=2048,tl(9,{destroy:void 0},Zf.bind(null,a,c,n,e),null),n},useId:function(){var t=ie(),e=zt.identifierPrefix;if(yt){var n=Ze,a=Ke;n=(a&~(1<<32-pe(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=cu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=nv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cc,useFormState:nh,useActionState:nh,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ac.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:gc,useCacheRefresh:function(){return ie().memoizedState=cv.bind(null,ct)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((St&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},xc={readContext:It,use:ru,useCallback:dh,useContext:It,useEffect:Ec,useImperativeHandle:hh,useInsertionEffect:oh,useLayoutEffect:rh,useMemo:mh,useReducer:fu,useRef:uh,useState:function(){return fu(on)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=Qt();return yh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=fu(on)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Zl(t),e]},useSyncExternalStore:Vf,useId:Sh,useHostTransitionStatus:Cc,useFormState:ah,useActionState:ah,useOptimistic:function(t,e){var n=Qt();return Ff(n,Ot,t,e)},useMemoCache:gc,useCacheRefresh:bh};xc.useEffectEvent=ch;var Mh={readContext:It,use:ru,useCallback:dh,useContext:It,useEffect:Ec,useImperativeHandle:hh,useInsertionEffect:oh,useLayoutEffect:rh,useMemo:mh,useReducer:bc,useRef:uh,useState:function(){return bc(on)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=Qt();return Ot===null?Mc(n,t,e):yh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=bc(on)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Zl(t),e]},useSyncExternalStore:Vf,useId:Sh,useHostTransitionStatus:Cc,useFormState:ih,useActionState:ih,useOptimistic:function(t,e){var n=Qt();return Ot!==null?Ff(n,Ot,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:gc,useCacheRefresh:bh};Mh.useEffectEvent=ch;function zc(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:S({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Dc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ee(),i=xn(a);i.payload=e,n!=null&&(i.callback=n),e=zn(t,i,a),e!==null&&(de(e,t,a),Gl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ee(),i=xn(a);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=zn(t,i,a),e!==null&&(de(e,t,a),Gl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ee(),a=xn(n);a.tag=2,e!=null&&(a.callback=e),e=zn(t,a,n),e!==null&&(de(e,t,n),Gl(e,t,n))}};function Oh(t,e,n,a,i,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!wl(n,a)||!wl(i,c):!0}function Ch(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&Dc.enqueueReplaceState(e,e.state,null)}function ya(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=S({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function Ah(t){Zi(t)}function xh(t){console.error(t)}function zh(t){Zi(t)}function yu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Dh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Uc(t,e,n){return n=xn(n),n.tag=3,n.payload={element:null},n.callback=function(){yu(t,e)},n}function Uh(t){return t=xn(t),t.tag=3,t}function Lh(t,e,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var c=a.value;t.payload=function(){return i(c)},t.callback=function(){Dh(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Dh(e,n,a),typeof i!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var p=a.stack;this.componentDidCatch(a.value,{componentStack:p!==null?p:""})})}function rv(t,e,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Za(e,n,i,!0),n=Se.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Cu():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===nu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),ao(t,a,i)),!1;case 22:return n.flags|=65536,a===nu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),ao(t,a,i)),!1}throw Error(o(435,n.tag))}return ao(t,a,i),Cu(),!1}if(yt)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,a!==Ws&&(t=Error(o(422),{cause:a}),jl(xe(t,n)))):(a!==Ws&&(e=Error(o(423),{cause:a}),jl(xe(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,a=xe(a,n),i=Uc(t.stateNode,a,i),cc(t,i),jt!==4&&(jt=2)),!1;var c=Error(o(520),{cause:a});if(c=xe(c,n),ni===null?ni=[c]:ni.push(c),jt!==4&&(jt=2),e===null)return!0;a=xe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=Uc(n.stateNode,a,t),cc(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Bn===null||!Bn.has(c))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Uh(i),Lh(i,t,n,a),cc(n,i),!1}n=n.return}while(n!==null);return!1}var Lc=Error(o(461)),Kt=!1;function te(t,e,n,a){e.child=t===null?jf(e,null,n,a):da(e,t.child,n,a)}function wh(t,e,n,a,i){n=n.render;var c=e.ref;if("ref"in a){var f={};for(var p in a)p!=="ref"&&(f[p]=a[p])}else f=a;return oa(e),a=mc(t,e,n,f,c,i),p=yc(),t!==null&&!Kt?(pc(t,e,i),rn(t,e,i)):(yt&&p&&ks(e),e.flags|=1,te(t,e,a,i),e.child)}function Nh(t,e,n,a,i){if(t===null){var c=n.type;return typeof c=="function"&&!Zs(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Bh(t,e,c,a,i)):(t=Fi(n.type,null,a,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Yc(t,i)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:wl,n(f,a)&&t.ref===e.ref)return rn(t,e,i)}return e.flags|=1,t=an(c,a),t.ref=e.ref,t.return=e,e.child=t}function Bh(t,e,n,a,i){if(t!==null){var c=t.memoizedProps;if(wl(c,a)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=a=c,Yc(t,i))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,rn(t,e,i)}return wc(t,e,n,a,i)}function jh(t,e,n,a){var i=a.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(a=e.child=t.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~c}else a=0,e.child=null;return Hh(t,e,c,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&tu(e,c!==null?c.cachePool:null),c!==null?Qf(e,c):rc(),Yf(e);else return a=e.lanes=536870912,Hh(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(tu(e,c.cachePool),Qf(e,c),Un(),e.memoizedState=null):(t!==null&&tu(e,null),rc(),Un());return te(t,e,i,n),e.child}function kl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Hh(t,e,n,a,i){var c=lc();return c=c===null?null:{parent:Xt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&tu(e,null),rc(),Yf(e),t!==null&&Za(t,e,a,!0),e.childLanes=i,null}function pu(t,e){return e=gu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function qh(t,e,n){return da(e,t.child,null,n),t=pu(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function fv(t,e,n){var a=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(a.mode==="hidden")return t=pu(e,a),e.lanes=536870912,kl(null,t);if(hc(e),(t=Ut)?(t=Wd(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Rf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw On(e);return e.lanes=536870912,null}return pu(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(hc(e),i)if(e.flags&256)e.flags&=-257,e=qh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Kt||Za(t,e,n,!1),i=(n&t.childLanes)!==0,Kt||i){if(a=zt,a!==null&&(f=Ar(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,ia(t,f),de(a,t,f),Lc;Cu(),e=qh(t,e,n)}else t=c.treeContext,Ut=we(f.nextSibling),$t=e,yt=!0,Mn=null,Ue=!1,t!==null&&Mf(e,t),e=pu(e,a),e.flags|=4096;return e}return t=an(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function vu(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(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function wc(t,e,n,a,i){return oa(e),n=mc(t,e,n,a,void 0,i),a=yc(),t!==null&&!Kt?(pc(t,e,i),rn(t,e,i)):(yt&&a&&ks(e),e.flags|=1,te(t,e,n,i),e.child)}function Qh(t,e,n,a,i,c){return oa(e),e.updateQueue=null,n=Xf(e,a,n,i),Gf(t),a=yc(),t!==null&&!Kt?(pc(t,e,c),rn(t,e,c)):(yt&&a&&ks(e),e.flags|=1,te(t,e,n,c),e.child)}function Yh(t,e,n,a,i){if(oa(e),e.stateNode===null){var c=Ga,f=n.contextType;typeof f=="object"&&f!==null&&(c=It(f)),c=new n(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Dc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},uc(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?It(f):Ga,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(zc(e,n,f,a),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Dc.enqueueReplaceState(c,c.state,null),Vl(e,a,c,i),Xl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var p=e.memoizedProps,R=ya(n,p);c.props=R;var x=c.context,w=n.contextType;f=Ga,typeof w=="object"&&w!==null&&(f=It(w));var j=n.getDerivedStateFromProps;w=typeof j=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,w||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||x!==f)&&Ch(e,c,a,f),An=!1;var z=e.memoizedState;c.state=z,Vl(e,a,c,i),Xl(),x=e.memoizedState,p||z!==x||An?(typeof j=="function"&&(zc(e,n,j,a),x=e.memoizedState),(R=An||Oh(e,n,R,a,z,x,f))?(w||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=x),c.props=a,c.state=x,c.context=f,a=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,sc(t,e),f=e.memoizedProps,w=ya(n,f),c.props=w,j=e.pendingProps,z=c.context,x=n.contextType,R=Ga,typeof x=="object"&&x!==null&&(R=It(x)),p=n.getDerivedStateFromProps,(x=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==j||z!==R)&&Ch(e,c,a,R),An=!1,z=e.memoizedState,c.state=z,Vl(e,a,c,i),Xl();var D=e.memoizedState;f!==j||z!==D||An||t!==null&&t.dependencies!==null&&$i(t.dependencies)?(typeof p=="function"&&(zc(e,n,p,a),D=e.memoizedState),(w=An||Oh(e,n,w,a,z,D,R)||t!==null&&t.dependencies!==null&&$i(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,D,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,D,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=D),c.props=a,c.state=D,c.context=R,a=w):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return c=a,vu(t,e),a=(e.flags&128)!==0,c||a?(c=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&a?(e.child=da(e,t.child,null,i),e.child=da(e,null,n,i)):te(t,e,n,i),e.memoizedState=c.state,t=e.child):t=rn(t,e,i),t}function Gh(t,e,n,a){return sa(),e.flags|=256,te(t,e,n,a),e.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(t){return{baseLanes:t,cachePool:Df()}}function jc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function Xh(t,e,n){var a=e.pendingProps,i=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),f&&(i=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(i?Dn(e):Un(),(t=Ut)?(t=Wd(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Tn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Rf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw On(e);return bo(t)?e.lanes=32:e.lanes=536870912,null}var p=a.children;return a=a.fallback,i?(Un(),i=e.mode,p=gu({mode:"hidden",children:p},i),a=ua(a,i,n,null),p.return=e,a.return=e,p.sibling=a,e.child=p,a=e.child,a.memoizedState=Bc(n),a.childLanes=jc(t,f,n),e.memoizedState=Nc,kl(null,a)):(Dn(e),Hc(e,p))}var R=t.memoizedState;if(R!==null&&(p=R.dehydrated,p!==null)){if(c)e.flags&256?(Dn(e),e.flags&=-257,e=qc(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),p=a.fallback,i=e.mode,a=gu({mode:"visible",children:a.children},i),p=ua(p,i,n,null),p.flags|=2,a.return=e,p.return=e,a.sibling=p,e.child=a,da(e,t.child,null,n),a=e.child,a.memoizedState=Bc(n),a.childLanes=jc(t,f,n),e.memoizedState=Nc,e=kl(null,a));else if(Dn(e),bo(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var x=f.dgst;f=x,a=Error(o(419)),a.stack="",a.digest=f,jl({value:a,source:null,stack:null}),e=qc(t,e,n)}else if(Kt||Za(t,e,n,!1),f=(n&t.childLanes)!==0,Kt||f){if(f=zt,f!==null&&(a=Ar(f,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,ia(t,a),de(f,t,a),Lc;So(p)||Cu(),e=qc(t,e,n)}else So(p)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Ut=we(p.nextSibling),$t=e,yt=!0,Mn=null,Ue=!1,t!==null&&Mf(e,t),e=Hc(e,a.children),e.flags|=4096);return e}return i?(Un(),p=a.fallback,i=e.mode,R=t.child,x=R.sibling,a=an(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,x!==null?p=an(x,p):(p=ua(p,i,n,null),p.flags|=2),p.return=e,a.return=e,a.sibling=p,e.child=a,kl(null,a),a=e.child,p=t.child.memoizedState,p===null?p=Bc(n):(i=p.cachePool,i!==null?(R=Xt._currentValue,i=i.parent!==R?{parent:R,pool:R}:i):i=Df(),p={baseLanes:p.baseLanes|n,cachePool:i}),a.memoizedState=p,a.childLanes=jc(t,f,n),e.memoizedState=Nc,kl(t.child,a)):(Dn(e),n=t.child,t=n.sibling,n=an(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Hc(t,e){return e=gu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function gu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function qc(t,e,n){return da(e,t.child,null,n),t=Hc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Vh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),tc(t.return,e,n)}function Qc(t,e,n,a,i,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=i,f.treeForkCount=c)}function Kh(t,e,n){var a=e.pendingProps,i=a.revealOrder,c=a.tail;a=a.children;var f=qt.current,p=(f&2)!==0;if(p?(f=f&1|2,e.flags|=128):f&=1,K(qt,f),te(t,e,a,n),a=yt?Bl:0,!p&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Vh(t,n,e);else if(t.tag===19)Vh(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(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&uu(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Qc(e,!1,i,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&uu(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Qc(e,!0,n,null,c,a);break;case"together":Qc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function rn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Nn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Za(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=an(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=an(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Yc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&$i(t)))}function hv(t,e,n){switch(e.tag){case 3:Ht(e,e.stateNode.containerInfo),Cn(e,Xt,t.memoizedState.cache),sa();break;case 27:case 5:We(e);break;case 4:Ht(e,e.stateNode.containerInfo);break;case 10:Cn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,hc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Dn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Xh(t,e,n):(Dn(e),t=rn(t,e,n),t!==null?t.sibling:null);Dn(e);break;case 19:var i=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Za(t,e,n,!1),a=(n&e.childLanes)!==0),i){if(a)return Kh(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(qt,qt.current),a)break;return null;case 22:return e.lanes=0,jh(t,e,n,e.pendingProps);case 24:Cn(e,Xt,t.memoizedState.cache)}return rn(t,e,n)}function Zh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Yc(t,n)&&(e.flags&128)===0)return Kt=!1,hv(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,yt&&(e.flags&1048576)!==0&&Tf(e,Bl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=fa(e.elementType),e.type=t,typeof t=="function")Zs(t)?(a=ya(t,a),e.tag=1,e=Yh(null,e,t,a,n)):(e.tag=0,e=wc(null,e,t,a,n));else{if(t!=null){var i=t.$$typeof;if(i===G){e.tag=11,e=wh(null,e,t,a,n);break t}else if(i===Y){e.tag=14,e=Nh(null,e,t,a,n);break t}}throw e=bt(t)||t,Error(o(306,e,""))}}return e;case 0:return wc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,i=ya(a,e.pendingProps),Yh(t,e,a,i,n);case 3:t:{if(Ht(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;i=c.element,sc(t,e),Vl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Cn(e,Xt,a),a!==c.cache&&ec(e,[Xt],n,!0),Xl(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Gh(t,e,a,n);break t}else if(a!==i){i=xe(Error(o(424)),e),jl(i),e=Gh(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ut=we(t.firstChild),$t=e,yt=!0,Mn=null,Ue=!0,n=jf(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sa(),a===i){e=rn(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return vu(t,e),t===null?(n=am(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,a=wu(rt.current).createElement(n),a[Wt]=e,a[se]=t,ee(a,n,t),kt(a),e.stateNode=a):e.memoizedState=am(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return We(e),t===null&&yt&&(a=e.stateNode=tm(e.type,e.pendingProps,rt.current),$t=e,Ue=!0,i=Ut,Qn(e.type)?(_o=i,Ut=we(a.firstChild)):Ut=i),te(t,e,e.pendingProps.children,n),vu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((i=a=Ut)&&(a=Gv(a,e.type,e.pendingProps,Ue),a!==null?(e.stateNode=a,$t=e,Ut=we(a.firstChild),Ue=!1,i=!0):i=!1),i||On(e)),We(e),i=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,po(i,c)?a=null:f!==null&&po(i,f)&&(e.flags|=32),e.memoizedState!==null&&(i=mc(t,e,av,null,null,n),ri._currentValue=i),vu(t,e),te(t,e,a,n),e.child;case 6:return t===null&&yt&&((t=n=Ut)&&(n=Xv(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,$t=e,Ut=null,t=!0):t=!1),t||On(e)),null;case 13:return Xh(t,e,n);case 4:return Ht(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=da(e,null,a,n):te(t,e,a,n),e.child;case 11:return wh(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 a=e.pendingProps,Cn(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return i=e.type._context,a=e.pendingProps.children,oa(e),i=It(i),a=a(i),e.flags|=1,te(t,e,a,n),e.child;case 14:return Nh(t,e,e.type,e.pendingProps,n);case 15:return Bh(t,e,e.type,e.pendingProps,n);case 19:return Kh(t,e,n);case 31:return fv(t,e,n);case 22:return jh(t,e,n,e.pendingProps);case 24:return oa(e),a=It(Xt),t===null?(i=lc(),i===null&&(i=zt,c=nc(),i.pooledCache=c,c.refCount++,c!==null&&(i.pooledCacheLanes|=n),i=c),e.memoizedState={parent:a,cache:i},uc(e),Cn(e,Xt,i)):((t.lanes&n)!==0&&(sc(t,e),Vl(e,null,null,n),Xl()),i=t.memoizedState,c=e.memoizedState,i.parent!==a?(i={parent:a,cache:a},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),Cn(e,Xt,a)):(a=c.cache,Cn(e,Xt,a),a!==i.cache&&ec(e,[Xt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function fn(t){t.flags|=4}function Gc(t,e,n,a,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(Sd())t.flags|=8192;else throw ha=nu,ic}else t.flags&=-16777217}function Jh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!cm(e))if(Sd())t.flags|=8192;else throw ha=nu,ic}function Su(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Mr():536870912,t.lanes|=e,ll|=e)}function Fl(t,e){if(!yt)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function dv(t,e,n){var a=e.pendingProps;switch(Fs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),sn(Xt),Dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ka(e)?fn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,$s())),Lt(e),null;case 26:var i=e.type,c=e.memoizedState;return t===null?(fn(e),c!==null?(Lt(e),Jh(e,c)):(Lt(e),Gc(e,i,null,a,n))):c?c!==t.memoizedState?(fn(e),Lt(e),Jh(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&fn(e),Lt(e),Gc(e,i,t,a,n)),null;case 27:if($e(e),n=rt.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=J.current,Ka(e)?Of(e):(t=tm(i,a,n),e.stateNode=t,fn(e))}return Lt(e),null;case 5:if($e(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=J.current,Ka(e))Of(e);else{var f=wu(rt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(i,{is:a.is}):f.createElement(i)}}c[Wt]=e,c[se]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(ee(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&fn(e)}}return Lt(e),Gc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,Ka(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,i=$t,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Xd(t.nodeValue,n)),t||On(e,!0)}else t=wu(t).createTextNode(a),t[Wt]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ka(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Wt]=e}else sa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=$s(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Lt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Ka(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(o(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Wt]=e}else sa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),i=!1}else i=$s(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Su(e,e.updateQueue),Lt(e),null);case 4:return Dt(),t===null&&ro(e.stateNode.containerInfo),Lt(e),null;case 10:return sn(e.type),Lt(e),null;case 19:if(H(qt),a=e.memoizedState,a===null)return Lt(e),null;if(i=(e.flags&128)!==0,c=a.rendering,c===null)if(i)Fl(a,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=uu(t),c!==null){for(e.flags|=128,Fl(a,!1),t=c.updateQueue,e.updateQueue=t,Su(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)_f(n,t),n=n.sibling;return K(qt,qt.current&1|2),yt&&ln(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&le()>Tu&&(e.flags|=128,i=!0,Fl(a,!1),e.lanes=4194304)}else{if(!i)if(t=uu(c),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,Su(e,t),Fl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!yt)return Lt(e),null}else 2*le()-a.renderingStartTime>Tu&&n!==536870912&&(e.flags|=128,i=!0,Fl(a,!1),e.lanes=4194304);a.isBackwards?(c.sibling=e.child,e.child=c):(t=a.last,t!==null?t.sibling=c:e.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=le(),t.sibling=null,n=qt.current,K(qt,i?n&1|2:n&1),yt&&ln(e,a.treeForkCount),t):(Lt(e),null);case 22:case 23:return be(e),fc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&Su(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&H(ra),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),sn(Xt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function mv(t,e){switch(Fs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return sn(Xt),Dt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $e(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(o(340));sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(qt),null;case 4:return Dt(),null;case 10:return sn(e.type),null;case 22:case 23:return be(e),fc(),t!==null&&H(ra),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return sn(Xt),null;case 25:return null;default:return null}}function Ph(t,e){switch(Fs(e),e.tag){case 3:sn(Xt),Dt();break;case 26:case 27:case 5:$e(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:H(qt);break;case 10:sn(e.type);break;case 22:case 23:be(e),fc(),t!==null&&H(ra);break;case 24:sn(Xt)}}function Wl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==i)}}catch(p){Mt(e,e.return,p)}}function Ln(t,e,n){try{var a=e.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&t)===t){var f=a.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,i=e;var R=n,x=p;try{x()}catch(w){Mt(i,R,w)}}}a=a.next}while(a!==c)}}catch(w){Mt(e,e.return,w)}}function kh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{qf(e,n)}catch(a){Mt(t,t.return,a)}}}function Fh(t,e,n){n.props=ya(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Mt(t,e,a)}}function $l(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(i){Mt(t,e,i)}}function Je(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Mt(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Mt(t,e,i)}else n.current=null}function Wh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Mt(t,t.return,i)}}function Xc(t,e,n){try{var a=t.stateNode;Bv(a,t.type,n,e),a[se]=e}catch(i){Mt(t,t.return,i)}}function $h(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Qn(t.type)||t.tag===4}function Vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$h(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&&Qn(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 Kc(t,e,n){var a=t.tag;if(a===5||a===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=en));else if(a!==4&&(a===27&&Qn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Kc(t,e,n),t=t.sibling;t!==null;)Kc(t,e,n),t=t.sibling}function bu(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&Qn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(bu(t,e,n),t=t.sibling;t!==null;)bu(t,e,n),t=t.sibling}function Ih(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);ee(e,a,n),e[Wt]=t,e[se]=n}catch(c){Mt(t,t.return,c)}}var hn=!1,Zt=!1,Zc=!1,td=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function yv(t,e){if(t=t.containerInfo,mo=Yu,t=hf(t),qs(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,p=-1,R=-1,x=0,w=0,j=t,z=null;e:for(;;){for(var D;j!==n||i!==0&&j.nodeType!==3||(p=f+i),j!==c||a!==0&&j.nodeType!==3||(R=f+a),j.nodeType===3&&(f+=j.nodeValue.length),(D=j.firstChild)!==null;)z=j,j=D;for(;;){if(j===t)break e;if(z===n&&++x===i&&(p=f),z===c&&++w===a&&(R=f),(D=j.nextSibling)!==null)break;j=z,z=j.parentNode}j=D}n=p===-1||R===-1?null:{start:p,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(yo={focusedElem:t,selectionRange:n},Yu=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,c=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++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,i=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var k=ya(n.type,i);t=a.getSnapshotBeforeUpdate(k,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(lt){Mt(n,n.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)go(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":go(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(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function ed(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:mn(t,n),a&4&&Wl(5,n);break;case 1:if(mn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(n,n.return,f)}else{var i=ya(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(n,n.return,f)}}a&64&&kh(n),a&512&&$l(n,n.return);break;case 3:if(mn(t,n),a&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{qf(t,e)}catch(f){Mt(n,n.return,f)}}break;case 27:e===null&&a&4&&Ih(n);case 26:case 5:mn(t,n),e===null&&a&4&&Wh(n),a&512&&$l(n,n.return);break;case 12:mn(t,n);break;case 31:mn(t,n),a&4&&ld(t,n);break;case 13:mn(t,n),a&4&&id(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Tv.bind(null,n),Vv(t,n))));break;case 22:if(a=n.memoizedState!==null||hn,!a){e=e!==null&&e.memoizedState!==null||Zt,i=hn;var c=Zt;hn=a,(Zt=e)&&!c?yn(t,n,(n.subtreeFlags&8772)!==0):mn(t,n),hn=i,Zt=c}break;case 30:break;default:mn(t,n)}}function nd(t){var e=t.alternate;e!==null&&(t.alternate=null,nd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Rs(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 wt=null,oe=!1;function dn(t,e,n){for(n=n.child;n!==null;)ad(t,e,n),n=n.sibling}function ad(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(Rl,n)}catch{}switch(n.tag){case 26:Zt||Je(n,e),dn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Je(n,e);var a=wt,i=oe;Qn(n.type)&&(wt=n.stateNode,oe=!1),dn(t,e,n),si(n.stateNode),wt=a,oe=i;break;case 5:Zt||Je(n,e);case 6:if(a=wt,i=oe,wt=null,dn(t,e,n),wt=a,oe=i,wt!==null)if(oe)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(c){Mt(n,e,c)}else try{wt.removeChild(n.stateNode)}catch(c){Mt(n,e,c)}break;case 18:wt!==null&&(oe?(t=wt,kd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),hl(t)):kd(wt,n.stateNode));break;case 4:a=wt,i=oe,wt=n.stateNode.containerInfo,oe=!0,dn(t,e,n),wt=a,oe=i;break;case 0:case 11:case 14:case 15:Ln(2,n,e),Zt||Ln(4,n,e),dn(t,e,n);break;case 1:Zt||(Je(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Fh(n,e,a)),dn(t,e,n);break;case 21:dn(t,e,n);break;case 22:Zt=(a=Zt)||n.memoizedState!==null,dn(t,e,n),Zt=a;break;default:dn(t,e,n)}}function ld(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{hl(t)}catch(n){Mt(e,e.return,n)}}}function id(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{hl(t)}catch(n){Mt(e,e.return,n)}}function pv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new td),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new td),e;default:throw Error(o(435,t.tag))}}function _u(t,e){var n=pv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var i=Mv.bind(null,t,a);a.then(i,i)}})}function re(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],c=t,f=e,p=f;t:for(;p!==null;){switch(p.tag){case 27:if(Qn(p.type)){wt=p.stateNode,oe=!1;break t}break;case 5:wt=p.stateNode,oe=!1;break t;case 3:case 4:wt=p.stateNode.containerInfo,oe=!0;break t}p=p.return}if(wt===null)throw Error(o(160));ad(c,f,i),wt=null,oe=!1,c=i.alternate,c!==null&&(c.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)ud(e,t),e=e.sibling}var Ge=null;function ud(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:re(e,t),fe(t),a&4&&(Ln(3,t,t.return),Wl(3,t),Ln(5,t,t.return));break;case 1:re(e,t),fe(t),a&512&&(Zt||n===null||Je(n,n.return)),a&64&&hn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Ge;if(re(e,t),fe(t),a&512&&(Zt||n===null||Je(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,i=i.ownerDocument||i;e:switch(a){case"title":c=i.getElementsByTagName("title")[0],(!c||c[Ml]||c[Wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=i.createElement(a),i.head.insertBefore(c,i.querySelector("head > title"))),ee(c,a,n),c[Wt]=t,kt(c),a=c;break t;case"link":var f=um("link","href",i).get(a+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(c=f[p],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(p,1);break e}}c=i.createElement(a),ee(c,a,n),i.head.appendChild(c);break;case"meta":if(f=um("meta","content",i).get(a+(n.content||""))){for(p=0;p<f.length;p++)if(c=f[p],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(p,1);break e}}c=i.createElement(a),ee(c,a,n),i.head.appendChild(c);break;default:throw Error(o(468,a))}c[Wt]=t,kt(c),a=c}t.stateNode=a}else sm(i,t.type,t.stateNode);else t.stateNode=im(i,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?sm(i,t.type,t.stateNode):im(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Xc(t,t.memoizedProps,n.memoizedProps)}break;case 27:re(e,t),fe(t),a&512&&(Zt||n===null||Je(n,n.return)),n!==null&&a&4&&Xc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(re(e,t),fe(t),a&512&&(Zt||n===null||Je(n,n.return)),t.flags&32){i=t.stateNode;try{Na(i,"")}catch(k){Mt(t,t.return,k)}}a&4&&t.stateNode!=null&&(i=t.memoizedProps,Xc(t,i,n!==null?n.memoizedProps:i)),a&1024&&(Zc=!0);break;case 6:if(re(e,t),fe(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(k){Mt(t,t.return,k)}}break;case 3:if(ju=null,i=Ge,Ge=Nu(e.containerInfo),re(e,t),Ge=i,fe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{hl(e.containerInfo)}catch(k){Mt(t,t.return,k)}Zc&&(Zc=!1,sd(t));break;case 4:a=Ge,Ge=Nu(t.stateNode.containerInfo),re(e,t),fe(t),Ge=a;break;case 12:re(e,t),fe(t);break;case 31:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 13:re(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Eu=le()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 22:i=t.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,x=hn,w=Zt;if(hn=x||i,Zt=w||R,re(e,t),Zt=w,hn=x,fe(t),a&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||R||hn||Zt||pa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){R=n=e;try{if(c=R.stateNode,i)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=R.stateNode;var j=R.memoizedProps.style,z=j!=null&&j.hasOwnProperty("display")?j.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(k){Mt(R,R.return,k)}}}else if(e.tag===6){if(n===null){R=e;try{R.stateNode.nodeValue=i?"":R.memoizedProps}catch(k){Mt(R,R.return,k)}}}else if(e.tag===18){if(n===null){R=e;try{var D=R.stateNode;i?Fd(D,!0):Fd(R.stateNode,!1)}catch(k){Mt(R,R.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}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,_u(t,n))));break;case 19:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 30:break;case 21:break;default:re(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if($h(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode,c=Vc(t);bu(t,c,i);break;case 5:var f=n.stateNode;n.flags&32&&(Na(f,""),n.flags&=-33);var p=Vc(t);bu(t,p,f);break;case 3:case 4:var R=n.stateNode.containerInfo,x=Vc(t);Kc(t,x,R);break;default:throw Error(o(161))}}catch(w){Mt(t,t.return,w)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function sd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;sd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ed(t,e.alternate,e),e=e.sibling}function pa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ln(4,e,e.return),pa(e);break;case 1:Je(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Fh(e,e.return,n),pa(e);break;case 27:si(e.stateNode);case 26:case 5:Je(e,e.return),pa(e);break;case 22:e.memoizedState===null&&pa(e);break;case 30:pa(e);break;default:pa(e)}t=t.sibling}}function yn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,i=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:yn(i,c,n),Wl(4,c);break;case 1:if(yn(i,c,n),a=c,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(x){Mt(a,a.return,x)}if(a=c,i=a.updateQueue,i!==null){var p=a.stateNode;try{var R=i.shared.hiddenCallbacks;if(R!==null)for(i.shared.hiddenCallbacks=null,i=0;i<R.length;i++)Hf(R[i],p)}catch(x){Mt(a,a.return,x)}}n&&f&64&&kh(c),$l(c,c.return);break;case 27:Ih(c);case 26:case 5:yn(i,c,n),n&&a===null&&f&4&&Wh(c),$l(c,c.return);break;case 12:yn(i,c,n);break;case 31:yn(i,c,n),n&&f&4&&ld(i,c);break;case 13:yn(i,c,n),n&&f&4&&id(i,c);break;case 22:c.memoizedState===null&&yn(i,c,n),$l(c,c.return);break;case 30:break;default:yn(i,c,n)}e=e.sibling}}function Jc(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&&Hl(n))}function Pc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Hl(t))}function Xe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cd(t,e,n,a),e=e.sibling}function cd(t,e,n,a){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,n,a),i&2048&&Wl(9,e);break;case 1:Xe(t,e,n,a);break;case 3:Xe(t,e,n,a),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Hl(t)));break;case 12:if(i&2048){Xe(t,e,n,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,p=c.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Mt(e,e.return,R)}}else Xe(t,e,n,a);break;case 31:Xe(t,e,n,a);break;case 13:Xe(t,e,n,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Xe(t,e,n,a):Il(t,e):c._visibility&2?Xe(t,e,n,a):(c._visibility|=2,el(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),i&2048&&Jc(f,e);break;case 24:Xe(t,e,n,a),i&2048&&Pc(e.alternate,e);break;default:Xe(t,e,n,a)}}function el(t,e,n,a,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,p=n,R=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:el(c,f,p,R,i),Wl(8,f);break;case 23:break;case 22:var w=f.stateNode;f.memoizedState!==null?w._visibility&2?el(c,f,p,R,i):Il(c,f):(w._visibility|=2,el(c,f,p,R,i)),i&&x&2048&&Jc(f.alternate,f);break;case 24:el(c,f,p,R,i),i&&x&2048&&Pc(f.alternate,f);break;default:el(c,f,p,R,i)}e=e.sibling}}function Il(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,i=a.flags;switch(a.tag){case 22:Il(n,a),i&2048&&Jc(a.alternate,a);break;case 24:Il(n,a),i&2048&&Pc(a.alternate,a);break;default:Il(n,a)}e=e.sibling}}var ti=8192;function nl(t,e,n){if(t.subtreeFlags&ti)for(t=t.child;t!==null;)od(t,e,n),t=t.sibling}function od(t,e,n){switch(t.tag){case 26:nl(t,e,n),t.flags&ti&&t.memoizedState!==null&&ng(n,Ge,t.memoizedState,t.memoizedProps);break;case 5:nl(t,e,n);break;case 3:case 4:var a=Ge;Ge=Nu(t.stateNode.containerInfo),nl(t,e,n),Ge=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ti,ti=16777216,nl(t,e,n),ti=a):nl(t,e,n));break;default:nl(t,e,n)}}function rd(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 ei(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Ft=a,hd(a,t)}rd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fd(t),t=t.sibling}function fd(t){switch(t.tag){case 0:case 11:case 15:ei(t),t.flags&2048&&Ln(9,t,t.return);break;case 3:ei(t);break;case 12:ei(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ru(t)):ei(t);break;default:ei(t)}}function Ru(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Ft=a,hd(a,t)}rd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ln(8,e,e.return),Ru(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ru(e));break;default:Ru(e)}t=t.sibling}}function hd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Ln(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Hl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ft=a;else t:for(n=t;Ft!==null;){a=Ft;var i=a.sibling,c=a.return;if(nd(a),a===n){Ft=null;break t}if(i!==null){i.return=c,Ft=i;break t}Ft=c}}}var vv={getCacheForType:function(t){var e=It(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return It(Xt).controller.signal}},gv=typeof WeakMap=="function"?WeakMap:Map,St=0,zt=null,ft=null,dt=0,Tt=0,_e=null,wn=!1,al=!1,kc=!1,pn=0,jt=0,Nn=0,va=0,Fc=0,Re=0,ll=0,ni=null,he=null,Wc=!1,Eu=0,dd=0,Tu=1/0,Mu=null,Bn=null,Jt=0,jn=null,il=null,vn=0,$c=0,Ic=null,md=null,ai=0,to=null;function Ee(){return(St&2)!==0&&dt!==0?dt&-dt:U.T!==null?uo():xr()}function yd(){if(Re===0)if((dt&536870912)===0||yt){var t=Li;Li<<=1,(Li&3932160)===0&&(Li=262144),Re=t}else Re=536870912;return t=Se.current,t!==null&&(t.flags|=32),Re}function de(t,e,n){(t===zt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(ul(t,0),Hn(t,dt,Re,!1)),Tl(t,n),((St&2)===0||t!==zt)&&(t===zt&&((St&2)===0&&(va|=n),jt===4&&Hn(t,dt,Re,!1)),Pe(t))}function pd(t,e,n){if((St&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||El(t,e),i=a?_v(t,e):no(t,e,!0),c=a;do{if(i===0){al&&!a&&Hn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!Sv(n)){i=no(t,e,!1),c=!1;continue}if(i===2){if(c=e,t.errorRecoveryDisabledLanes&c)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var p=t;i=ni;var R=p.current.memoizedState.isDehydrated;if(R&&(ul(p,f).flags|=256),f=no(p,f,!1),f!==2){if(kc&&!R){p.errorRecoveryDisabledLanes|=c,va|=c,i=4;break t}c=he,he=i,c!==null&&(he===null?he=c:he.push.apply(he,c))}i=f}if(c=!1,i!==2)continue}}if(i===1){ul(t,0),Hn(t,e,0,!0);break}t:{switch(a=t,c=i,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Hn(a,e,Re,!wn);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(i=Eu+300-le(),10<i)){if(Hn(a,e,Re,!wn),Ni(a,0,!0)!==0)break t;vn=e,a.timeoutHandle=Jd(vd.bind(null,a,n,he,Mu,Wc,e,Re,va,ll,wn,c,"Throttled",-0,0),i);break t}vd(a,n,he,Mu,Wc,e,Re,va,ll,wn,c,null,-0,0)}}break}while(!0);Pe(t)}function vd(t,e,n,a,i,c,f,p,R,x,w,j,z,D){if(t.timeoutHandle=-1,j=e.subtreeFlags,j&8192||(j&16785408)===16785408){j={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},od(e,c,j);var k=(c&62914560)===c?Eu-le():(c&4194048)===c?dd-le():0;if(k=ag(j,k),k!==null){vn=c,t.cancelPendingCommit=k(Md.bind(null,t,e,c,n,a,i,f,p,R,w,j,null,z,D)),Hn(t,c,f,!x);return}}Md(t,e,c,n,a,i,f,p,R)}function Sv(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 a=0;a<n.length;a++){var i=n[a],c=i.getSnapshot;i=i.value;try{if(!ve(c(),i))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 Hn(t,e,n,a){e&=~Fc,e&=~va,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var i=e;0<i;){var c=31-pe(i),f=1<<c;a[c]=-1,i&=~f}n!==0&&Or(t,n,e)}function Ou(){return(St&6)===0?(li(0),!1):!0}function eo(){if(ft!==null){if(Tt===0)var t=ft.return;else t=ft,un=ca=null,vc(t),Fa=null,Ql=0,t=ft;for(;t!==null;)Ph(t.alternate,t),t=t.return;ft=null}}function ul(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,qv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),vn=0,eo(),zt=t,ft=n=an(t.current,null),dt=e,Tt=0,_e=null,wn=!1,al=El(t,e),kc=!1,ll=Re=Fc=va=Nn=jt=0,he=ni=null,Wc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var i=31-pe(a),c=1<<i;e|=t[i],a&=~c}return pn=e,Ji(),n}function gd(t,e){ct=null,U.H=Pl,e===ka||e===eu?(e=wf(),Tt=3):e===ic?(e=wf(),Tt=4):Tt=e===Lc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,ft===null&&(jt=1,yu(t,xe(e,t.current)))}function Sd(){var t=Se.current;return t===null?!0:(dt&4194048)===dt?Le===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Le:!1}function bd(){var t=U.H;return U.H=Pl,t===null?Pl:t}function _d(){var t=U.A;return U.A=vv,t}function Cu(){jt=4,wn||(dt&4194048)!==dt&&Se.current!==null||(al=!0),(Nn&134217727)===0&&(va&134217727)===0||zt===null||Hn(zt,dt,Re,!1)}function no(t,e,n){var a=St;St|=2;var i=bd(),c=_d();(zt!==t||dt!==e)&&(Mu=null,ul(t,e)),e=!1;var f=jt;t:do try{if(Tt!==0&&ft!==null){var p=ft,R=_e;switch(Tt){case 8:eo(),f=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var x=Tt;if(Tt=0,_e=null,sl(t,p,R,x),n&&al){f=0;break t}break;default:x=Tt,Tt=0,_e=null,sl(t,p,R,x)}}bv(),f=jt;break}catch(w){gd(t,w)}while(!0);return e&&t.shellSuspendCounter++,un=ca=null,St=a,U.H=i,U.A=c,ft===null&&(zt=null,dt=0,Ji()),f}function bv(){for(;ft!==null;)Rd(ft)}function _v(t,e){var n=St;St|=2;var a=bd(),i=_d();zt!==t||dt!==e?(Mu=null,Tu=le()+500,ul(t,e)):al=El(t,e);t:do try{if(Tt!==0&&ft!==null){e=ft;var c=_e;e:switch(Tt){case 1:Tt=0,_e=null,sl(t,e,c,1);break;case 2:case 9:if(Uf(c)){Tt=0,_e=null,Ed(e);break}e=function(){Tt!==2&&Tt!==9||zt!==t||(Tt=7),Pe(t)},c.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:Uf(c)?(Tt=0,_e=null,Ed(e)):(Tt=0,_e=null,sl(t,e,c,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var p=ft;if(f?cm(f):p.stateNode.complete){Tt=0,_e=null;var R=p.sibling;if(R!==null)ft=R;else{var x=p.return;x!==null?(ft=x,Au(x)):ft=null}break e}}Tt=0,_e=null,sl(t,e,c,5);break;case 6:Tt=0,_e=null,sl(t,e,c,6);break;case 8:eo(),jt=6;break t;default:throw Error(o(462))}}Rv();break}catch(w){gd(t,w)}while(!0);return un=ca=null,U.H=a,U.A=i,St=n,ft!==null?0:(zt=null,dt=0,Ji(),jt)}function Rv(){for(;ft!==null&&!vs();)Rd(ft)}function Rd(t){var e=Zh(t.alternate,t,pn);t.memoizedProps=t.pendingProps,e===null?Au(t):ft=e}function Ed(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Qh(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Qh(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:vc(e);default:Ph(n,e),e=ft=_f(e,pn),e=Zh(n,e,pn)}t.memoizedProps=t.pendingProps,e===null?Au(t):ft=e}function sl(t,e,n,a){un=ca=null,vc(e),Fa=null,Ql=0;var i=e.return;try{if(rv(t,i,e,n,dt)){jt=1,yu(t,xe(n,t.current)),ft=null;return}}catch(c){if(i!==null)throw ft=i,c;jt=1,yu(t,xe(n,t.current)),ft=null;return}e.flags&32768?(yt||a===1?t=!0:al||(dt&536870912)!==0?t=!1:(wn=t=!0,(a===2||a===9||a===3||a===6)&&(a=Se.current,a!==null&&a.tag===13&&(a.flags|=16384))),Td(e,t)):Au(e)}function Au(t){var e=t;do{if((e.flags&32768)!==0){Td(e,wn);return}t=e.return;var n=dv(e.alternate,e,pn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);jt===0&&(jt=5)}function Td(t,e){do{var n=mv(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);jt=6,ft=null}function Md(t,e,n,a,i,c,f,p,R){t.cancelPendingCommit=null;do xu();while(Jt!==0);if((St&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Vs,ep(t,n,c,f,p,R),t===zt&&(ft=zt=null,dt=0),il=e,jn=t,vn=n,$c=c,Ic=i,md=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ov(ne,function(){return zd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,i=V.p,V.p=2,f=St,St|=4;try{yv(t,e,n)}finally{St=f,V.p=i,U.T=a}}Jt=1,Od(),Cd(),Ad()}}function Od(){if(Jt===1){Jt=0;var t=jn,e=il,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var a=V.p;V.p=2;var i=St;St|=4;try{ud(e,t);var c=yo,f=hf(t.containerInfo),p=c.focusedElem,R=c.selectionRange;if(f!==p&&p&&p.ownerDocument&&ff(p.ownerDocument.documentElement,p)){if(R!==null&&qs(p)){var x=R.start,w=R.end;if(w===void 0&&(w=x),"selectionStart"in p)p.selectionStart=x,p.selectionEnd=Math.min(w,p.value.length);else{var j=p.ownerDocument||document,z=j&&j.defaultView||window;if(z.getSelection){var D=z.getSelection(),k=p.textContent.length,lt=Math.min(R.start,k),At=R.end===void 0?lt:Math.min(R.end,k);!D.extend&&lt>At&&(f=At,At=lt,lt=f);var O=rf(p,lt),T=rf(p,At);if(O&&T&&(D.rangeCount!==1||D.anchorNode!==O.node||D.anchorOffset!==O.offset||D.focusNode!==T.node||D.focusOffset!==T.offset)){var A=j.createRange();A.setStart(O.node,O.offset),D.removeAllRanges(),lt>At?(D.addRange(A),D.extend(T.node,T.offset)):(A.setEnd(T.node,T.offset),D.addRange(A))}}}}for(j=[],D=p;D=D.parentNode;)D.nodeType===1&&j.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<j.length;p++){var B=j[p];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Yu=!!mo,yo=mo=null}finally{St=i,V.p=a,U.T=n}}t.current=e,Jt=2}}function Cd(){if(Jt===2){Jt=0;var t=jn,e=il,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var a=V.p;V.p=2;var i=St;St|=4;try{ed(t,e.alternate,e)}finally{St=i,V.p=a,U.T=n}}Jt=3}}function Ad(){if(Jt===4||Jt===3){Jt=0,xi();var t=jn,e=il,n=vn,a=md;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,il=jn=null,xd(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(Bn=null),bs(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(Rl,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=U.T,i=V.p,V.p=2,U.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var p=a[f];c(p.value,{componentStack:p.stack})}}finally{U.T=e,V.p=i}}(vn&3)!==0&&xu(),Pe(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===to?ai++:(ai=0,to=t):ai=0,li(0)}}function xd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Hl(e)))}function xu(){return Od(),Cd(),Ad(),zd()}function zd(){if(Jt!==5)return!1;var t=jn,e=$c;$c=0;var n=bs(vn),a=U.T,i=V.p;try{V.p=32>n?32:n,U.T=null,n=Ic,Ic=null;var c=jn,f=vn;if(Jt=0,il=jn=null,vn=0,(St&6)!==0)throw Error(o(331));var p=St;if(St|=4,fd(c.current),cd(c,c.current,f,n),St=p,li(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(Rl,c)}catch{}return!0}finally{V.p=i,U.T=a,xd(t,e)}}function Dd(t,e,n){e=xe(n,e),e=Uc(t.stateNode,e,2),t=zn(t,e,2),t!==null&&(Tl(t,2),Pe(t))}function Mt(t,e,n){if(t.tag===3)Dd(t,t,n);else for(;e!==null;){if(e.tag===3){Dd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Bn===null||!Bn.has(a))){t=xe(n,t),n=Uh(2),a=zn(e,n,2),a!==null&&(Lh(n,a,e,t),Tl(a,2),Pe(a));break}}e=e.return}}function ao(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new gv;var i=new Set;a.set(e,i)}else i=a.get(e),i===void 0&&(i=new Set,a.set(e,i));i.has(n)||(kc=!0,i.add(n),t=Ev.bind(null,t,e,n),e.then(t,t))}function Ev(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(dt&n)===n&&(jt===4||jt===3&&(dt&62914560)===dt&&300>le()-Eu?(St&2)===0&&ul(t,0):Fc|=n,ll===dt&&(ll=0)),Pe(t)}function Ud(t,e){e===0&&(e=Mr()),t=ia(t,e),t!==null&&(Tl(t,e),Pe(t))}function Tv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Ud(t,n)}function Mv(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),Ud(t,n)}function Ov(t,e){return Qe(t,e)}var zu=null,cl=null,lo=!1,Du=!1,io=!1,qn=0;function Pe(t){t!==cl&&t.next===null&&(cl===null?zu=cl=t:cl=cl.next=t),Du=!0,lo||(lo=!0,Av())}function li(t,e){if(!io&&Du){io=!0;do for(var n=!1,a=zu;a!==null;){if(t!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var f=a.suspendedLanes,p=a.pingedLanes;c=(1<<31-pe(42|t)+1)-1,c&=i&~(f&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Bd(a,c))}else c=dt,c=Ni(a,a===zt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||El(a,c)||(n=!0,Bd(a,c));a=a.next}while(n);io=!1}}function Cv(){Ld()}function Ld(){Du=lo=!1;var t=0;qn!==0&&Hv()&&(t=qn);for(var e=le(),n=null,a=zu;a!==null;){var i=a.next,c=wd(a,e);c===0?(a.next=null,n===null?zu=i:n.next=i,i===null&&(cl=n)):(n=a,(t!==0||(c&3)!==0)&&(Du=!0)),a=i}Jt!==0&&Jt!==5||li(t),qn!==0&&(qn=0)}function wd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,i=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-pe(c),p=1<<f,R=i[f];R===-1?((p&n)===0||(p&a)!==0)&&(i[f]=tp(p,e)):R<=e&&(t.expiredLanes|=p),c&=~p}if(e=zt,n=dt,n=Ni(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&_l(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||El(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&_l(a),bs(n)){case 2:case 8:n=Gt;break;case 32:n=ne;break;case 268435456:n=Tr;break;default:n=ne}return a=Nd.bind(null,t),n=Qe(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&_l(a),t.callbackPriority=2,t.callbackNode=null,2}function Nd(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(xu()&&t.callbackNode!==n)return null;var a=dt;return a=Ni(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(pd(t,a,e),wd(t,le()),t.callbackNode!=null&&t.callbackNode===n?Nd.bind(null,t):null)}function Bd(t,e){if(xu())return null;pd(t,e,!0)}function Av(){Qv(function(){(St&6)!==0?Qe(xt,Cv):Ld()})}function uo(){if(qn===0){var t=Ja;t===0&&(t=Ui,Ui<<=1,(Ui&261888)===0&&(Ui=256)),qn=t}return qn}function jd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:qi(""+t)}function Hd(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 xv(t,e,n,a,i){if(e==="submit"&&n&&n.stateNode===i){var c=jd((i[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?jd(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var p=new Xi("action","action",null,a,i);t.push({event:p,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(qn!==0){var R=f?Hd(i,f):new FormData(i);Oc(n,{pending:!0,data:R,method:i.method,action:c},null,R)}}else typeof c=="function"&&(p.preventDefault(),R=f?Hd(i,f):new FormData(i),Oc(n,{pending:!0,data:R,method:i.method,action:c},c,R))},currentTarget:i}]})}}for(var so=0;so<Xs.length;so++){var co=Xs[so],zv=co.toLowerCase(),Dv=co[0].toUpperCase()+co.slice(1);Ye(zv,"on"+Dv)}Ye(yf,"onAnimationEnd"),Ye(pf,"onAnimationIteration"),Ye(vf,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(Jp,"onTransitionRun"),Ye(Pp,"onTransitionStart"),Ye(kp,"onTransitionCancel"),Ye(gf,"onTransitionEnd"),La("onMouseEnter",["mouseout","mouseover"]),La("onMouseLeave",["mouseout","mouseover"]),La("onPointerEnter",["pointerout","pointerover"]),La("onPointerLeave",["pointerout","pointerover"]),ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ii="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(" "),Uv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ii));function qd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],i=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var p=a[f],R=p.instance,x=p.currentTarget;if(p=p.listener,R!==c&&i.isPropagationStopped())break t;c=p,i.currentTarget=x;try{c(i)}catch(w){Zi(w)}i.currentTarget=null,c=R}else for(f=0;f<a.length;f++){if(p=a[f],R=p.instance,x=p.currentTarget,p=p.listener,R!==c&&i.isPropagationStopped())break t;c=p,i.currentTarget=x;try{c(i)}catch(w){Zi(w)}i.currentTarget=null,c=R}}}}function ht(t,e){var n=e[_s];n===void 0&&(n=e[_s]=new Set);var a=t+"__bubble";n.has(a)||(Qd(e,t,2,!1),n.add(a))}function oo(t,e,n){var a=0;e&&(a|=4),Qd(n,t,a,e)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function ro(t){if(!t[Uu]){t[Uu]=!0,Ur.forEach(function(n){n!=="selectionchange"&&(Uv.has(n)||oo(n,!1,t),oo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Uu]||(e[Uu]=!0,oo("selectionchange",!1,e))}}function Qd(t,e,n,a){switch(ym(e)){case 2:var i=ug;break;case 8:i=sg;break;default:i=Oo}n=i.bind(null,e,n,t),i=void 0,!zs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),a?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function fo(t,e,n,a,i){var c=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var p=a.stateNode.containerInfo;if(p===i)break;if(f===4)for(f=a.return;f!==null;){var R=f.tag;if((R===3||R===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=za(p),f===null)return;if(R=f.tag,R===5||R===6||R===26||R===27){a=c=f;continue t}p=p.parentNode}}a=a.return}Vr(function(){var x=c,w=As(n),j=[];t:{var z=Sf.get(t);if(z!==void 0){var D=Xi,k=t;switch(t){case"keypress":if(Yi(n)===0)break t;case"keydown":case"keyup":D=Mp;break;case"focusin":k="focus",D=ws;break;case"focusout":k="blur",D=ws;break;case"beforeblur":case"afterblur":D=ws;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":D=Jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=dp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=Ap;break;case yf:case pf:case vf:D=pp;break;case gf:D=zp;break;case"scroll":case"scrollend":D=fp;break;case"wheel":D=Up;break;case"copy":case"cut":case"paste":D=gp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=kr;break;case"toggle":case"beforetoggle":D=wp}var lt=(e&4)!==0,At=!lt&&(t==="scroll"||t==="scrollend"),O=lt?z!==null?z+"Capture":null:z;lt=[];for(var T=x,A;T!==null;){var B=T;if(A=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||A===null||O===null||(B=Cl(T,O),B!=null&&lt.push(ui(T,B,A))),At)break;T=T.return}0<lt.length&&(z=new D(z,k,null,n,w),j.push({event:z,listeners:lt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",z&&n!==Cs&&(k=n.relatedTarget||n.fromElement)&&(za(k)||k[xa]))break t;if((D||z)&&(z=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,D?(k=n.relatedTarget||n.toElement,D=x,k=k?za(k):null,k!==null&&(At=h(k),lt=k.tag,k!==At||lt!==5&&lt!==27&&lt!==6)&&(k=null)):(D=null,k=x),D!==k)){if(lt=Jr,B="onMouseLeave",O="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(lt=kr,B="onPointerLeave",O="onPointerEnter",T="pointer"),At=D==null?z:Ol(D),A=k==null?z:Ol(k),z=new lt(B,T+"leave",D,n,w),z.target=At,z.relatedTarget=A,B=null,za(w)===x&&(lt=new lt(O,T+"enter",k,n,w),lt.target=A,lt.relatedTarget=At,B=lt),At=B,D&&k)e:{for(lt=Lv,O=D,T=k,A=0,B=O;B;B=lt(B))A++;B=0;for(var nt=T;nt;nt=lt(nt))B++;for(;0<A-B;)O=lt(O),A--;for(;0<B-A;)T=lt(T),B--;for(;A--;){if(O===T||T!==null&&O===T.alternate){lt=O;break e}O=lt(O),T=lt(T)}lt=null}else lt=null;D!==null&&Yd(j,z,D,lt,!1),k!==null&&At!==null&&Yd(j,At,k,lt,!0)}}t:{if(z=x?Ol(x):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var vt=af;else if(ef(z))if(lf)vt=Vp;else{vt=Gp;var $=Yp}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&Os(x.elementType)&&(vt=af):vt=Xp;if(vt&&(vt=vt(t,x))){nf(j,vt,n,w);break t}$&&$(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&Ms(z,"number",z.value)}switch($=x?Ol(x):window,t){case"focusin":(ef($)||$.contentEditable==="true")&&(qa=$,Qs=x,Nl=null);break;case"focusout":Nl=Qs=qa=null;break;case"mousedown":Ys=!0;break;case"contextmenu":case"mouseup":case"dragend":Ys=!1,df(j,n,w);break;case"selectionchange":if(Zp)break;case"keydown":case"keyup":df(j,n,w)}var ot;if(Bs)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else Ha?Ir(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Fr&&n.locale!=="ko"&&(Ha||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Ha&&(ot=Kr()):(En=w,Ds="value"in En?En.value:En.textContent,Ha=!0)),$=Lu(x,mt),0<$.length&&(mt=new Pr(mt,t,null,n,w),j.push({event:mt,listeners:$}),ot?mt.data=ot:(ot=tf(n),ot!==null&&(mt.data=ot)))),(ot=Bp?jp(t,n):Hp(t,n))&&(mt=Lu(x,"onBeforeInput"),0<mt.length&&($=new Pr("onBeforeInput","beforeinput",null,n,w),j.push({event:$,listeners:mt}),$.data=ot)),xv(j,t,x,n,w)}qd(j,e)})}function ui(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Lu(t,e){for(var n=e+"Capture",a=[];t!==null;){var i=t,c=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||c===null||(i=Cl(t,n),i!=null&&a.unshift(ui(t,i,c)),i=Cl(t,e),i!=null&&a.push(ui(t,i,c))),t.tag===3)return a;t=t.return}return[]}function Lv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Yd(t,e,n,a,i){for(var c=e._reactName,f=[];n!==null&&n!==a;){var p=n,R=p.alternate,x=p.stateNode;if(p=p.tag,R!==null&&R===a)break;p!==5&&p!==26&&p!==27||x===null||(R=x,i?(x=Cl(n,c),x!=null&&f.unshift(ui(n,x,R))):i||(x=Cl(n,c),x!=null&&f.push(ui(n,x,R)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var wv=/\r\n?/g,Nv=/\u0000|\uFFFD/g;function Gd(t){return(typeof t=="string"?t:""+t).replace(wv,`
9
+ `).replace(Nv,"")}function Xd(t,e){return e=Gd(e),Gd(t)===e}function Ct(t,e,n,a,i,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Na(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Na(t,""+a);break;case"className":ji(t,"class",a);break;case"tabIndex":ji(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ji(t,n,a);break;case"style":Gr(t,a,c);break;case"data":if(e!=="object"){ji(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=qi(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 c=="function"&&(n==="formAction"?(e!=="input"&&Ct(t,e,"name",i.name,i,null),Ct(t,e,"formEncType",i.formEncType,i,null),Ct(t,e,"formMethod",i.formMethod,i,null),Ct(t,e,"formTarget",i.formTarget,i,null)):(Ct(t,e,"encType",i.encType,i,null),Ct(t,e,"method",i.method,i,null),Ct(t,e,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=qi(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=en);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=qi(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":ht("beforetoggle",t),ht("toggle",t),Bi(t,"popover",a);break;case"xlinkActuate":tn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":tn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":tn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":tn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":tn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":tn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":tn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":tn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":tn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Bi(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=op.get(n)||n,Bi(t,n,a))}}function ho(t,e,n,a,i,c){switch(n){case"style":Gr(t,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Na(t,a):(typeof a=="number"||typeof a=="bigint")&&Na(t,""+a);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"onClick":a!=null&&(t.onclick=en);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),c=t[se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,i),typeof a=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,i);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Bi(t,n,a)}}}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":ht("error",t),ht("load",t);var a=!1,i=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,c,f,n,null)}}i&&Ct(t,e,"srcSet",n.srcSet,n,null),a&&Ct(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var p=c=f=i=null,R=null,x=null;for(a in n)if(n.hasOwnProperty(a)){var w=n[a];if(w!=null)switch(a){case"name":i=w;break;case"type":f=w;break;case"checked":R=w;break;case"defaultChecked":x=w;break;case"value":c=w;break;case"defaultValue":p=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:Ct(t,e,a,w,n,null)}}Hr(t,c,p,R,x,f,i,!1);return;case"select":ht("invalid",t),a=f=c=null;for(i in n)if(n.hasOwnProperty(i)&&(p=n[i],p!=null))switch(i){case"value":c=p;break;case"defaultValue":f=p;break;case"multiple":a=p;default:Ct(t,e,i,p,n,null)}e=c,n=f,t.multiple=!!a,e!=null?wa(t,!!a,e,!1):n!=null&&wa(t,!!a,n,!0);return;case"textarea":ht("invalid",t),c=i=a=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":a=p;break;case"defaultValue":i=p;break;case"children":c=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Ct(t,e,f,p,n,null)}Qr(t,a,i,c);return;case"option":for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!=null)&&(R==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ct(t,e,R,a,n,null));return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<ii.length;a++)ht(ii[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("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(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,x,a,n,null)}return;default:if(Os(e)){for(w in n)n.hasOwnProperty(w)&&(a=n[w],a!==void 0&&ho(t,e,w,a,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(a=n[p],a!=null&&Ct(t,e,p,a,n,null))}function Bv(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,c=null,f=null,p=null,R=null,x=null,w=null;for(D in n){var j=n[D];if(n.hasOwnProperty(D)&&j!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":R=j;default:a.hasOwnProperty(D)||Ct(t,e,D,null,a,j)}}for(var z in a){var D=a[z];if(j=n[z],a.hasOwnProperty(z)&&(D!=null||j!=null))switch(z){case"type":c=D;break;case"name":i=D;break;case"checked":x=D;break;case"defaultChecked":w=D;break;case"value":f=D;break;case"defaultValue":p=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:D!==j&&Ct(t,e,z,D,a,j)}}Ts(t,f,p,R,x,w,c,i);return;case"select":D=f=p=z=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":D=R;default:a.hasOwnProperty(c)||Ct(t,e,c,null,a,R)}for(i in a)if(c=a[i],R=n[i],a.hasOwnProperty(i)&&(c!=null||R!=null))switch(i){case"value":z=c;break;case"defaultValue":p=c;break;case"multiple":f=c;default:c!==R&&Ct(t,e,i,c,a,R)}e=p,n=f,a=D,z!=null?wa(t,!!n,z,!1):!!a!=!!n&&(e!=null?wa(t,!!n,e,!0):wa(t,!!n,n?[]:"",!1));return;case"textarea":D=z=null;for(p in n)if(i=n[p],n.hasOwnProperty(p)&&i!=null&&!a.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Ct(t,e,p,null,a,i)}for(f in a)if(i=a[f],c=n[f],a.hasOwnProperty(f)&&(i!=null||c!=null))switch(f){case"value":z=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==c&&Ct(t,e,f,i,a,c)}qr(t,z,D);return;case"option":for(var k in n)z=n[k],n.hasOwnProperty(k)&&z!=null&&!a.hasOwnProperty(k)&&(k==="selected"?t.selected=!1:Ct(t,e,k,null,a,z));for(R in a)z=a[R],D=n[R],a.hasOwnProperty(R)&&z!==D&&(z!=null||D!=null)&&(R==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Ct(t,e,R,z,a,D));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)z=n[lt],n.hasOwnProperty(lt)&&z!=null&&!a.hasOwnProperty(lt)&&Ct(t,e,lt,null,a,z);for(x in a)if(z=a[x],D=n[x],a.hasOwnProperty(x)&&z!==D&&(z!=null||D!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Ct(t,e,x,z,a,D)}return;default:if(Os(e)){for(var At in n)z=n[At],n.hasOwnProperty(At)&&z!==void 0&&!a.hasOwnProperty(At)&&ho(t,e,At,void 0,a,z);for(w in a)z=a[w],D=n[w],!a.hasOwnProperty(w)||z===D||z===void 0&&D===void 0||ho(t,e,w,z,a,D);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!a.hasOwnProperty(O)&&Ct(t,e,O,null,a,z);for(j in a)z=a[j],D=n[j],!a.hasOwnProperty(j)||z===D||z==null&&D==null||Ct(t,e,j,z,a,D)}function Vd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],c=i.transferSize,f=i.initiatorType,p=i.duration;if(c&&p&&Vd(f)){for(f=0,p=i.responseEnd,a+=1;a<n.length;a++){var R=n[a],x=R.startTime;if(x>p)break;var w=R.transferSize,j=R.initiatorType;w&&Vd(j)&&(R=R.responseEnd,f+=w*(R<p?1:(p-x)/(R-x)))}if(--a,e+=8*(c+f)/(i.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 mo=null,yo=null;function wu(t){return t.nodeType===9?t:t.ownerDocument}function Kd(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 Zd(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 po(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 vo=null;function Hv(){var t=window.event;return t&&t.type==="popstate"?t===vo?!1:(vo=t,!0):(vo=null,!1)}var Jd=typeof setTimeout=="function"?setTimeout:void 0,qv=typeof clearTimeout=="function"?clearTimeout:void 0,Pd=typeof Promise=="function"?Promise:void 0,Qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Pd<"u"?function(t){return Pd.resolve(null).then(t).catch(Yv)}:Jd;function Yv(t){setTimeout(function(){throw t})}function Qn(t){return t==="head"}function kd(t,e){var n=e,a=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(i),hl(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")si(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,si(n);for(var c=n.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[Ml]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&si(t.ownerDocument.body);n=i}while(n);hl(e)}function Fd(t,e){var n=t;t=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function go(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":go(n),Rs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Gv(t,e,n,a){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ml])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=we(t.nextSibling),t===null)break}return null}function Xv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=we(t.nextSibling),t===null))return null;return t}function Wd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function So(t){return t.data==="$?"||t.data==="$~"}function bo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function we(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 _o=null;function $d(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return we(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Id(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 tm(t,e,n){switch(e=wu(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function si(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Rs(t)}var Ne=new Map,em=new Set;function Nu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gn=V.d;V.d={f:Kv,r:Zv,D:Jv,C:Pv,L:kv,m:Fv,X:$v,S:Wv,M:Iv};function Kv(){var t=gn.f(),e=Ou();return t||e}function Zv(t){var e=Da(t);e!==null&&e.tag===5&&e.type==="form"?gh(e):gn.r(t)}var ol=typeof document>"u"?null:document;function nm(t,e,n){var a=ol;if(a&&typeof e=="string"&&e){var i=Ce(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),em.has(i)||(em.add(i),t={rel:t,crossOrigin:n,href:e},a.querySelector(i)===null&&(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Jv(t){gn.D(t),nm("dns-prefetch",t,null)}function Pv(t,e){gn.C(t,e),nm("preconnect",t,e)}function kv(t,e,n){gn.L(t,e,n);var a=ol;if(a&&t&&e){var i='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ce(n.imageSizes)+'"]')):i+='[href="'+Ce(t)+'"]';var c=i;switch(e){case"style":c=rl(t);break;case"script":c=fl(t)}Ne.has(c)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ne.set(c,t),a.querySelector(i)!==null||e==="style"&&a.querySelector(ci(c))||e==="script"&&a.querySelector(oi(c))||(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Fv(t,e){gn.m(t,e);var n=ol;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Ce(a)+'"][href="'+Ce(t)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=fl(t)}if(!Ne.has(c)&&(t=S({rel:"modulepreload",href:t},e),Ne.set(c,t),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(oi(c)))return}a=n.createElement("link"),ee(a,"link",t),kt(a),n.head.appendChild(a)}}}function Wv(t,e,n){gn.S(t,e,n);var a=ol;if(a&&t){var i=Ua(a).hoistableStyles,c=rl(t);e=e||"default";var f=i.get(c);if(!f){var p={loading:0,preload:null};if(f=a.querySelector(ci(c)))p.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ne.get(c))&&Ro(t,n);var R=f=a.createElement("link");kt(R),ee(R,"link",t),R._p=new Promise(function(x,w){R.onload=x,R.onerror=w}),R.addEventListener("load",function(){p.loading|=1}),R.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Bu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:p},i.set(c,f)}}}function $v(t,e){gn.X(t,e);var n=ol;if(n&&t){var a=Ua(n).hoistableScripts,i=fl(t),c=a.get(i);c||(c=n.querySelector(oi(i)),c||(t=S({src:t,async:!0},e),(e=Ne.get(i))&&Eo(t,e),c=n.createElement("script"),kt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function Iv(t,e){gn.M(t,e);var n=ol;if(n&&t){var a=Ua(n).hoistableScripts,i=fl(t),c=a.get(i);c||(c=n.querySelector(oi(i)),c||(t=S({src:t,async:!0,type:"module"},e),(e=Ne.get(i))&&Eo(t,e),c=n.createElement("script"),kt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function am(t,e,n,a){var i=(i=rt.current)?Nu(i):null;if(!i)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=rl(n.href),n=Ua(i).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=rl(n.href);var c=Ua(i).hoistableStyles,f=c.get(t);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=i.querySelector(ci(t)))&&!c._p&&(f.instance=c,f.state.loading=5),Ne.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},Ne.set(t,n),c||tg(i,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=fl(n),n=Ua(i).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function rl(t){return'href="'+Ce(t)+'"'}function ci(t){return'link[rel="stylesheet"]['+t+"]"}function lm(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function tg(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ee(e,"link",n),kt(e),t.head.appendChild(e))}function fl(t){return'[src="'+Ce(t)+'"]'}function oi(t){return"script[async]"+t}function im(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(a)return e.instance=a,kt(a),a;var i=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),kt(a),ee(a,"style",i),Bu(a,n.precedence,t),e.instance=a;case"stylesheet":i=rl(n.href);var c=t.querySelector(ci(i));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;a=lm(n),(i=Ne.get(i))&&Ro(a,i),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(p,R){f.onload=p,f.onerror=R}),ee(c,"link",a),e.state.loading|=4,Bu(c,n.precedence,t),e.instance=c;case"script":return c=fl(n.src),(i=t.querySelector(oi(c)))?(e.instance=i,kt(i),i):(a=n,(i=Ne.get(c))&&(a=S({},n),Eo(a,i)),t=t.ownerDocument||t,i=t.createElement("script"),kt(i),ee(i,"link",a),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Bu(a,n.precedence,t));return e.instance}function Bu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,f=0;f<a.length;f++){var p=a[f];if(p.dataset.precedence===e)c=p;else if(c!==i)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ro(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Eo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ju=null;function um(t,e,n){if(ju===null){var a=new Map,i=ju=new Map;i.set(n,a)}else i=ju,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var c=n[i];if(!(c[Ml]||c[Wt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var p=a.get(f);p?p.push(c):a.set(f,[c])}}return a}function sm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function eg(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;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!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 cm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ng(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=rl(a.href),c=e.querySelector(ci(i));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Hu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,kt(c);return}c=e.ownerDocument||e,a=lm(a),(i=Ne.get(i))&&Ro(a,i),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(p,R){f.onload=p,f.onerror=R}),ee(c,"link",a),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Hu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var To=0;function ag(t,e){return t.stylesheets&&t.count===0&&Qu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Qu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&To===0&&(To=62500*jv());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Qu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>To?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var qu=null;function Qu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,qu=new Map,e.forEach(lg,t),qu=null,Hu.call(t))}function lg(t,e){if(!(e.state.loading&4)){var n=qu.get(t);if(n)var a=n.get(null);else{n=new Map,qu.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var f=i[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}i=e.instance,f=i.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,i),n.set(f,i),this.count++,a=Hu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),c?c.parentNode.insertBefore(i,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var ri={$$typeof:X,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function ig(t,e,n,a,i,c,f,p,R){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=gs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gs(0),this.hiddenUpdates=gs(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function om(t,e,n,a,i,c,f,p,R,x,w,j){return t=new ig(t,e,n,f,R,x,w,j,p),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=nc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},uc(c),t}function rm(t){return t?(t=Ga,t):Ga}function fm(t,e,n,a,i,c){i=rm(i),a.context===null?a.context=i:a.pendingContext=i,a=xn(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=zn(t,a,e),n!==null&&(de(n,t,e),Gl(n,t,e))}function hm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Mo(t,e){hm(t,e),(t=t.alternate)&&hm(t,e)}function dm(t){if(t.tag===13||t.tag===31){var e=ia(t,67108864);e!==null&&de(e,t,67108864),Mo(t,67108864)}}function mm(t){if(t.tag===13||t.tag===31){var e=Ee();e=Ss(e);var n=ia(t,e);n!==null&&de(n,t,e),Mo(t,e)}}var Yu=!0;function ug(t,e,n,a){var i=U.T;U.T=null;var c=V.p;try{V.p=2,Oo(t,e,n,a)}finally{V.p=c,U.T=i}}function sg(t,e,n,a){var i=U.T;U.T=null;var c=V.p;try{V.p=8,Oo(t,e,n,a)}finally{V.p=c,U.T=i}}function Oo(t,e,n,a){if(Yu){var i=Co(a);if(i===null)fo(t,e,a,Gu,n),pm(t,a);else if(og(i,t,e,n,a))a.stopPropagation();else if(pm(t,a),e&4&&-1<cg.indexOf(t)){for(;i!==null;){var c=Da(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=ta(c.pendingLanes);if(f!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var R=1<<31-pe(f);p.entanglements[1]|=R,f&=~R}Pe(c),(St&6)===0&&(Tu=le()+500,li(0))}}break;case 31:case 13:p=ia(c,2),p!==null&&de(p,c,2),Ou(),Mo(c,2)}if(c=Co(a),c===null&&fo(t,e,a,Gu,n),c===i)break;i=c}i!==null&&a.stopPropagation()}else fo(t,e,a,null,n)}}function Co(t){return t=As(t),Ao(t)}var Gu=null;function Ao(t){if(Gu=null,t=za(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(e),t!==null)return t;t=null}else if(n===31){if(t=y(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 Gu=t,null}function ym(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(zi()){case xt:return 2;case Gt:return 8;case ne:case Di:return 32;case Tr:return 268435456;default:return 32}default:return 32}}var xo=!1,Yn=null,Gn=null,Xn=null,fi=new Map,hi=new Map,Vn=[],cg="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 pm(t,e){switch(t){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":fi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":hi.delete(e.pointerId)}}function di(t,e,n,a,i,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[i]},e!==null&&(e=Da(e),e!==null&&dm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function og(t,e,n,a,i){switch(e){case"focusin":return Yn=di(Yn,t,e,n,a,i),!0;case"dragenter":return Gn=di(Gn,t,e,n,a,i),!0;case"mouseover":return Xn=di(Xn,t,e,n,a,i),!0;case"pointerover":var c=i.pointerId;return fi.set(c,di(fi.get(c)||null,t,e,n,a,i)),!0;case"gotpointercapture":return c=i.pointerId,hi.set(c,di(hi.get(c)||null,t,e,n,a,i)),!0}return!1}function vm(t){var e=za(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,zr(t.priority,function(){mm(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,zr(t.priority,function(){mm(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 Xu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Co(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Cs=a,n.target.dispatchEvent(a),Cs=null}else return e=Da(n),e!==null&&dm(e),t.blockedOn=n,!1;e.shift()}return!0}function gm(t,e,n){Xu(t)&&n.delete(e)}function rg(){xo=!1,Yn!==null&&Xu(Yn)&&(Yn=null),Gn!==null&&Xu(Gn)&&(Gn=null),Xn!==null&&Xu(Xn)&&(Xn=null),fi.forEach(gm),hi.forEach(gm)}function Vu(t,e){t.blockedOn===e&&(t.blockedOn=null,xo||(xo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,rg)))}var Ku=null;function Sm(t){Ku!==t&&(Ku=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ku===t&&(Ku=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],i=t[e+2];if(typeof a!="function"){if(Ao(a||n)===null)continue;break}var c=Da(n);c!==null&&(t.splice(e,3),e-=3,Oc(c,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function hl(t){function e(R){return Vu(R,t)}Yn!==null&&Vu(Yn,t),Gn!==null&&Vu(Gn,t),Xn!==null&&Vu(Xn,t),fi.forEach(e),hi.forEach(e);for(var n=0;n<Vn.length;n++){var a=Vn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Vn.length&&(n=Vn[0],n.blockedOn===null);)vm(n),n.blockedOn===null&&Vn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],c=n[a+1],f=i[se]||null;if(typeof c=="function")f||Sm(n);else if(f){var p=null;if(c&&c.hasAttribute("formAction")){if(i=c,f=c[se]||null)p=f.formAction;else if(Ao(i)!==null)continue}else p=f.action;typeof p=="function"?n[a+1]=p:(n.splice(a,3),a-=3),Sm(n)}}}function bm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function zo(t){this._internalRoot=t}Zu.prototype.render=zo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Ee();fm(n,a,t,e,null,null)},Zu.prototype.unmount=zo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fm(t.current,2,null,t,null,null),Ou(),e[xa]=null}};function Zu(t){this._internalRoot=t}Zu.prototype.unstable_scheduleHydration=function(t){if(t){var e=xr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Vn.length&&e!==0&&e<Vn[n].priority;n++);Vn.splice(n,0,t),n===0&&vm(t)}};var _m=u.version;if(_m!=="19.2.4")throw Error(o(527,_m,"19.2.4"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=d(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var fg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ju.isDisabled&&Ju.supportsFiber)try{Rl=Ju.inject(fg),ye=Ju}catch{}}return yi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",i=Ah,c=xh,f=zh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=om(t,1,!1,null,null,n,a,null,i,c,f,bm),t[xa]=e.current,ro(t),new zo(e)},yi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,i="",c=Ah,f=xh,p=zh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),e=om(t,1,!0,e,n??null,a,i,R,c,f,p,bm),e.context=rm(null),n=e.current,a=Ee(),a=Ss(a),i=xn(a),i.callback=null,zn(n,i,a),n=a,e.current.lanes=n,Tl(e,n),Pe(e),t[xa]=e.current,ro(t),new Zu(e)},yi.version="19.2.4",yi}var Dm;function _g(){if(Dm)return Lo.exports;Dm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Lo.exports=bg(),Lo.exports}var ib=_g(),gl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rg={setTimeout:(l,u)=>setTimeout(l,u),clearTimeout:l=>clearTimeout(l),setInterval:(l,u)=>setInterval(l,u),clearInterval:l=>clearInterval(l)},Eg=class{#t=Rg;#e=!1;setTimeoutProvider(l){this.#t=l}setTimeout(l,u){return this.#t.setTimeout(l,u)}clearTimeout(l){this.#t.clearTimeout(l)}setInterval(l,u){return this.#t.setInterval(l,u)}clearInterval(l){this.#t.clearInterval(l)}},Sa=new Eg;function Tg(l){setTimeout(l,0)}var Ta=typeof window>"u"||"Deno"in globalThis;function ue(){}function Mg(l,u){return typeof l=="function"?l(u):l}function Po(l){return typeof l=="number"&&l>=0&&l!==1/0}function my(l,u){return Math.max(l+(u||0)-Date.now(),0)}function kn(l,u){return typeof l=="function"?l(u):l}function Be(l,u){return typeof l=="function"?l(u):l}function Um(l,u){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:m,stale:y}=l;if(m){if(o){if(u.queryHash!==ur(m,u.options))return!1}else if(!Ei(u.queryKey,m))return!1}if(s!=="all"){const v=u.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof y=="boolean"&&u.isStale()!==y||r&&r!==u.state.fetchStatus||h&&!h(u))}function Lm(l,u){const{exact:s,status:o,predicate:r,mutationKey:h}=l;if(h){if(!u.options.mutationKey)return!1;if(s){if(Ma(u.options.mutationKey)!==Ma(h))return!1}else if(!Ei(u.options.mutationKey,h))return!1}return!(o&&u.state.status!==o||r&&!r(u))}function ur(l,u){return(u?.queryKeyHashFn||Ma)(l)}function Ma(l){return JSON.stringify(l,(u,s)=>ko(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Ei(l,u){return l===u?!0:typeof l!=typeof u?!1:l&&u&&typeof l=="object"&&typeof u=="object"?Object.keys(u).every(s=>Ei(l[s],u[s])):!1}var Og=Object.prototype.hasOwnProperty;function yy(l,u,s=0){if(l===u)return l;if(s>500)return u;const o=wm(l)&&wm(u);if(!o&&!(ko(l)&&ko(u)))return u;const h=(o?l:Object.keys(l)).length,m=o?u:Object.keys(u),y=m.length,v=o?new Array(y):{};let d=0;for(let b=0;b<y;b++){const S=o?b:m[b],g=l[S],_=u[S];if(g===_){v[S]=g,(o?b<h:Og.call(l,S))&&d++;continue}if(g===null||_===null||typeof g!="object"||typeof _!="object"){v[S]=_;continue}const E=yy(g,_,s+1);v[S]=E,E===g&&d++}return h===y&&d===h?l:v}function es(l,u){if(!u||Object.keys(l).length!==Object.keys(u).length)return!1;for(const s in l)if(l[s]!==u[s])return!1;return!0}function wm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function ko(l){if(!Nm(l))return!1;const u=l.constructor;if(u===void 0)return!0;const s=u.prototype;return!(!Nm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Nm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Cg(l){return new Promise(u=>{Sa.setTimeout(u,l)})}function Fo(l,u,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,u):s.structuralSharing!==!1?yy(l,u):u}function Ag(l,u,s=0){const o=[...l,u];return s&&o.length>s?o.slice(1):o}function xg(l,u,s=0){const o=[u,...l];return s&&o.length>s?o.slice(0,-1):o}var sr=Symbol();function py(l,u){return!l.queryFn&&u?.initialPromise?()=>u.initialPromise:!l.queryFn||l.queryFn===sr?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function cr(l,u){return typeof l=="function"?l(...u):!!l}function zg(l,u,s){let o=!1,r;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=u(),o||(o=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),l}var Dg=class extends gl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(!Ta&&window.addEventListener){const u=()=>l();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(l){this.#t!==l&&(this.#t=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(u=>{u(l)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},or=new Dg;function Wo(){let l,u;const s=new Promise((r,h)=>{l=r,u=h});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),l(r)},s.reject=r=>{o({status:"rejected",reason:r}),u(r)},s}var Ug=Tg;function Lg(){let l=[],u=0,s=y=>{y()},o=y=>{y()},r=Ug;const h=y=>{u?l.push(y):r(()=>{s(y)})},m=()=>{const y=l;l=[],y.length&&r(()=>{o(()=>{y.forEach(v=>{s(v)})})})};return{batch:y=>{let v;u++;try{v=y()}finally{u--,u||m()}return v},batchCalls:y=>(...v)=>{h(()=>{y(...v)})},schedule:h,setNotifyFunction:y=>{s=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{r=y}}}var Pt=Lg(),wg=class extends gl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(!Ta&&window.addEventListener){const u=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(this.setOnline.bind(this))}setOnline(l){this.#t!==l&&(this.#t=l,this.listeners.forEach(s=>{s(l)}))}isOnline(){return this.#t}},ns=new wg;function Ng(l){return Math.min(1e3*2**l,3e4)}function vy(l){return(l??"online")==="online"?ns.isOnline():!0}var $o=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function gy(l){let u=!1,s=0,o;const r=Wo(),h=()=>r.status!=="pending",m=C=>{if(!h()){const L=new $o(C);g(L),l.onCancel?.(L)}},y=()=>{u=!0},v=()=>{u=!1},d=()=>or.isFocused()&&(l.networkMode==="always"||ns.isOnline())&&l.canRun(),b=()=>vy(l.networkMode)&&l.canRun(),S=C=>{h()||(o?.(),r.resolve(C))},g=C=>{h()||(o?.(),r.reject(C))},_=()=>new Promise(C=>{o=L=>{(h()||d())&&C(L)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),E=()=>{if(h())return;let C;const L=s===0?l.initialPromise:void 0;try{C=L??l.fn()}catch(N){C=Promise.reject(N)}Promise.resolve(C).then(S).catch(N=>{if(h())return;const Q=l.retry??(Ta?0:3),X=l.retryDelay??Ng,G=typeof X=="function"?X(s,N):X,P=Q===!0||typeof Q=="number"&&s<Q||typeof Q=="function"&&Q(s,N);if(u||!P){g(N);return}s++,l.onFail?.(s,N),Cg(G).then(()=>d()?void 0:_()).then(()=>{u?g(N):E()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(o?.(),r),cancelRetry:y,continueRetry:v,canStart:b,start:()=>(b()?E():_().then(E),r)}}var Sy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Po(this.gcTime)&&(this.#t=Sa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(Ta?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Sa.clearTimeout(this.#t),this.#t=void 0)}},Bg=class extends Sy{#t;#e;#n;#l;#a;#u;#s;constructor(l){super(),this.#s=!1,this.#u=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#l=l.client,this.#n=this.#l.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#t=jm(this.options),this.state=l.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(l){if(this.options={...this.#u,...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=jm(this.options);u.data!==void 0&&(this.setState(Bm(u.data,u.dataUpdatedAt)),this.#t=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(l,u){const s=Fo(this.state.data,l,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),s}setState(l,u){this.#i({type:"setState",state:l,setStateOptions:u})}cancel(l){const u=this.#a?.promise;return this.#a?.cancel(l),u?u.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(l=>Be(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>kn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!my(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(u=>u!==l),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(l,u){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(l&&this.setOptions(l),!this.options.queryFn){const y=this.observers.find(v=>v.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#s=!0,s.signal)})},r=()=>{const y=py(this.options,u),d=(()=>{const b={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(b),b})();return this.#s=!1,this.options.persister?this.options.persister(y,d,this):y(d)},m=(()=>{const y={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:r};return o(y),y})();this.options.behavior?.onFetch(m,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#i({type:"fetch",meta:m.fetchOptions?.meta}),this.#a=gy({initialPromise:u?.initialPromise,fn:m.fetchFn,onCancel:y=>{y instanceof $o&&y.revert&&this.setState({...this.#e,fetchStatus:"idle"}),s.abort()},onFail:(y,v)=>{this.#i({type:"failed",failureCount:y,error:v})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0});try{const y=await this.#a.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#n.config.onSuccess?.(y,this),this.#n.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof $o){if(y.silent)return this.#a.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#i({type:"error",error:y}),this.#n.config.onError?.(y,this),this.#n.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#i(l){const u=s=>{switch(l.type){case"failed":return{...s,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...by(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,...Bm(l.data,l.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=l.manual?o:void 0,o;case"error":const r=l.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...l.state}}};this.state=u(this.state),Pt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:l})})}};function by(l,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vy(u.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Bm(l,u){return{data:l,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jm(l){const u=typeof l.initialData=="function"?l.initialData():l.initialData,s=u!==void 0,o=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var _y=class extends gl{constructor(l,u){super(),this.options=u,this.#t=l,this.#i=null,this.#s=Wo(),this.bindMethods(),this.setOptions(u)}#t;#e=void 0;#n=void 0;#l=void 0;#a;#u;#s;#i;#y;#h;#d;#o;#r;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Hm(this.#e,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Io(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Io(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(l){const u=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Be(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#e.setOptions(this.options),u._defaulted&&!es(this.options,u)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&qm(this.#e,s,this.options,u)&&this.#f(),this.updateResult(),o&&(this.#e!==s||Be(this.options.enabled,this.#e)!==Be(u.enabled,this.#e)||kn(this.options.staleTime,this.#e)!==kn(u.staleTime,this.#e))&&this.#p();const r=this.#v();o&&(this.#e!==s||Be(this.options.enabled,this.#e)!==Be(u.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(l){const u=this.#t.getQueryCache().build(this.#t,l),s=this.createResult(u,l);return Hg(this,s)&&(this.#l=s,this.#u=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(l,u){return new Proxy(l,{get:(s,o)=>(this.trackProp(o),u?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(l){this.#m.add(l)}getCurrentQuery(){return this.#e}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const u=this.#t.defaultQueryOptions(l),s=this.#t.getQueryCache().build(this.#t,u);return s.fetch().then(()=>this.createResult(s,u))}fetch(l){return this.#f({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(l){this.#R();let u=this.#e.fetch(this.options,l);return l?.throwOnError||(u=u.catch(ue)),u}#p(){this.#b();const l=kn(this.options.staleTime,this.#e);if(Ta||this.#l.isStale||!Po(l))return;const s=my(this.#l.dataUpdatedAt,l)+1;this.#o=Sa.setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(l){this.#_(),this.#c=l,!(Ta||Be(this.options.enabled,this.#e)===!1||!Po(this.#c)||this.#c===0)&&(this.#r=Sa.setInterval(()=>{(this.options.refetchIntervalInBackground||or.isFocused())&&this.#f()},this.#c))}#S(){this.#p(),this.#g(this.#v())}#b(){this.#o&&(Sa.clearTimeout(this.#o),this.#o=void 0)}#_(){this.#r&&(Sa.clearInterval(this.#r),this.#r=void 0)}createResult(l,u){const s=this.#e,o=this.options,r=this.#l,h=this.#a,m=this.#u,v=l!==s?l.state:this.#n,{state:d}=l;let b={...d},S=!1,g;if(u._optimisticResults){const q=this.hasListeners(),Z=!q&&Hm(l,u),ut=q&&qm(l,s,u,o);(Z||ut)&&(b={...b,...by(d.data,l.options)}),u._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:E,status:C}=b;g=b.data;let L=!1;if(u.placeholderData!==void 0&&g===void 0&&C==="pending"){let q;r?.isPlaceholderData&&u.placeholderData===m?.placeholderData?(q=r.data,L=!0):q=typeof u.placeholderData=="function"?u.placeholderData(this.#d?.state.data,this.#d):u.placeholderData,q!==void 0&&(C="success",g=Fo(r?.data,q,u),S=!0)}if(u.select&&g!==void 0&&!L)if(r&&g===h?.data&&u.select===this.#y)g=this.#h;else try{this.#y=u.select,g=u.select(g),g=Fo(r?.data,g,u),this.#h=g,this.#i=null}catch(q){this.#i=q}this.#i&&(_=this.#i,g=this.#h,E=Date.now(),C="error");const N=b.fetchStatus==="fetching",Q=C==="pending",X=C==="error",G=Q&&N,P=g!==void 0,Y={status:C,fetchStatus:b.fetchStatus,isPending:Q,isSuccess:C==="success",isError:X,isInitialLoading:G,isLoading:G,data:g,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:E,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:N,isRefetching:N&&!Q,isLoadingError:X&&!P,isPaused:b.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:X&&P,isStale:rr(l,u),refetch:this.refetch,promise:this.#s,isEnabled:Be(u.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const q=Y.data!==void 0,Z=Y.status==="error"&&!q,ut=Rt=>{Z?Rt.reject(Y.error):q&&Rt.resolve(Y.data)},tt=()=>{const Rt=this.#s=Y.promise=Wo();ut(Rt)},W=this.#s;switch(W.status){case"pending":l.queryHash===s.queryHash&&ut(W);break;case"fulfilled":(Z||Y.data!==W.value)&&tt();break;case"rejected":(!Z||Y.error!==W.reason)&&tt();break}}return Y}updateResult(){const l=this.#l,u=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#u=this.options,this.#a.data!==void 0&&(this.#d=this.#e),es(u,l))return;this.#l=u;const s=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#m.size)return!0;const h=new Set(r??this.#m);return this.options.throwOnError&&h.add("error"),Object.keys(this.#l).some(m=>{const y=m;return this.#l[y]!==l[y]&&h.has(y)})};this.#E({listeners:s()})}#R(){const l=this.#t.getQueryCache().build(this.#t,this.options);if(l===this.#e)return;const u=this.#e;this.#e=l,this.#n=l.state,this.hasListeners()&&(u?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){Pt.batch(()=>{l.listeners&&this.listeners.forEach(u=>{u(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function jg(l,u){return Be(u.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&u.retryOnMount===!1)}function Hm(l,u){return jg(l,u)||l.state.data!==void 0&&Io(l,u,u.refetchOnMount)}function Io(l,u,s){if(Be(u.enabled,l)!==!1&&kn(u.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&rr(l,u)}return!1}function qm(l,u,s,o){return(l!==u||Be(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&rr(l,s)}function rr(l,u){return Be(u.enabled,l)!==!1&&l.isStaleByTime(kn(u.staleTime,l))}function Hg(l,u){return!es(l.getCurrentResult(),u)}function as(l){return{onFetch:(u,s)=>{const o=u.options,r=u.fetchOptions?.meta?.fetchMore?.direction,h=u.state.data?.pages||[],m=u.state.data?.pageParams||[];let y={pages:[],pageParams:[]},v=0;const d=async()=>{let b=!1;const S=E=>{zg(E,()=>u.signal,()=>b=!0)},g=py(u.options,u.fetchOptions),_=async(E,C,L)=>{if(b)return Promise.reject();if(C==null&&E.pages.length)return Promise.resolve(E);const Q=(()=>{const I={client:u.client,queryKey:u.queryKey,pageParam:C,direction:L?"backward":"forward",meta:u.options.meta};return S(I),I})(),X=await g(Q),{maxPages:G}=u.options,P=L?xg:Ag;return{pages:P(E.pages,X,G),pageParams:P(E.pageParams,C,G)}};if(r&&h.length){const E=r==="backward",C=E?Ry:tr,L={pages:h,pageParams:m},N=C(o,L);y=await _(L,N,E)}else{const E=l??h.length;do{const C=v===0?m[0]??o.initialPageParam:tr(o,y);if(v>0&&C==null)break;y=await _(y,C),v++}while(v<E)}return y};u.options.persister?u.fetchFn=()=>u.options.persister?.(d,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},s):u.fetchFn=d}}}function tr(l,{pages:u,pageParams:s}){const o=u.length-1;return u.length>0?l.getNextPageParam(u[o],u,s[o],s):void 0}function Ry(l,{pages:u,pageParams:s}){return u.length>0?l.getPreviousPageParam?.(u[0],u,s[0],s):void 0}function qg(l,u){return u?tr(l,u)!=null:!1}function Qg(l,u){return!u||!l.getPreviousPageParam?!1:Ry(l,u)!=null}var Yg=class extends _y{constructor(l,u){super(l,u)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){super.setOptions({...l,behavior:as()})}getOptimisticResult(l){return l.behavior=as(),super.getOptimisticResult(l)}fetchNextPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"backward"}}})}createResult(l,u){const{state:s}=l,o=super.createResult(l,u),{isFetching:r,isRefetching:h,isError:m,isRefetchError:y}=o,v=s.fetchMeta?.fetchMore?.direction,d=m&&v==="forward",b=r&&v==="forward",S=m&&v==="backward",g=r&&v==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:qg(u,s.data),hasPreviousPage:Qg(u,s.data),isFetchNextPageError:d,isFetchingNextPage:b,isFetchPreviousPageError:S,isFetchingPreviousPage:g,isRefetchError:y&&!d&&!S,isRefetching:h&&!b&&!g}}},Gg=class extends Sy{#t;#e;#n;#l;constructor(l){super(),this.#t=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#e=[],this.state=l.state||Ey(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#e.includes(l)||(this.#e.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#e=this.#e.filter(u=>u!==l),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(l){const u=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=gy({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,m)=>{this.#a({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#a({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",r=!this.#l.canStart();try{if(o)u();else{this.#a({type:"pending",variables:l,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(l,this,s);const m=await this.options.onMutate?.(l,s);m!==this.state.context&&this.#a({type:"pending",context:m,variables:l,isPaused:r})}const h=await this.#l.start();return await this.#n.config.onSuccess?.(h,l,this.state.context,this,s),await this.options.onSuccess?.(h,l,this.state.context,s),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(h,null,l,this.state.context,s),this.#a({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,l,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(m){Promise.reject(m)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(m){Promise.reject(m)}throw this.#a({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#a(l){const u=s=>{switch(l.type){case"failed":return{...s,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...s,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:l.error,failureCount:s.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Pt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function Ey(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xg=class extends gl{constructor(l={}){super(),this.config=l,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(l,u,s){const o=new Gg({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(u),state:s});return this.add(o),o}add(l){this.#t.add(l);const u=Pu(l);if(typeof u=="string"){const s=this.#e.get(u);s?s.push(l):this.#e.set(u,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#t.delete(l)){const u=Pu(l);if(typeof u=="string"){const s=this.#e.get(u);if(s)if(s.length>1){const o=s.indexOf(l);o!==-1&&s.splice(o,1)}else s[0]===l&&this.#e.delete(u)}}this.notify({type:"removed",mutation:l})}canRun(l){const u=Pu(l);if(typeof u=="string"){const o=this.#e.get(u)?.find(r=>r.state.status==="pending");return!o||o===l}else return!0}runNext(l){const u=Pu(l);return typeof u=="string"?this.#e.get(u)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Pt.batch(()=>{this.#t.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(l){const u={exact:!0,...l};return this.getAll().find(s=>Lm(u,s))}findAll(l={}){return this.getAll().filter(u=>Lm(l,u))}notify(l){Pt.batch(()=>{this.listeners.forEach(u=>{u(l)})})}resumePausedMutations(){const l=this.getAll().filter(u=>u.state.isPaused);return Pt.batch(()=>Promise.all(l.map(u=>u.continue().catch(ue))))}};function Pu(l){return l.options.scope?.id}var Vg=class extends gl{#t;#e=void 0;#n;#l;constructor(l,u){super(),this.#t=l,this.setOptions(u),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const u=this.options;this.options=this.#t.defaultMutationOptions(l),es(this.options,u)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),u?.mutationKey&&this.options.mutationKey&&Ma(u.mutationKey)!==Ma(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(l){this.#a(),this.#u(l)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#u()}mutate(l,u){return this.#l=u,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(l)}#a(){const l=this.#n?.state??Ey();this.#e={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#u(l){Pt.batch(()=>{if(this.#l&&this.hasListeners()){const u=this.#e.variables,s=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(l?.type==="success"){try{this.#l.onSuccess?.(l.data,u,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(l.data,null,u,s,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#l.onError?.(l.error,u,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(void 0,l.error,u,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(u=>{u(this.#e)})})}},Kg=class extends gl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,u,s){const o=u.queryKey,r=u.queryHash??ur(o,u);let h=this.get(r);return h||(h=new Bg({client:l,queryKey:o,queryHash:r,options:l.defaultQueryOptions(u),state:s,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){this.#t.has(l.queryHash)||(this.#t.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const u=this.#t.get(l.queryHash);u&&(l.destroy(),u===l&&this.#t.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Pt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#t.get(l)}getAll(){return[...this.#t.values()]}find(l){const u={exact:!0,...l};return this.getAll().find(s=>Um(u,s))}findAll(l={}){const u=this.getAll();return Object.keys(l).length>0?u.filter(s=>Um(l,s)):u}notify(l){Pt.batch(()=>{this.listeners.forEach(u=>{u(l)})})}onFocus(){Pt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Pt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},ub=class{#t;#e;#n;#l;#a;#u;#s;#i;constructor(l={}){this.#t=l.queryCache||new Kg,this.#e=l.mutationCache||new Xg,this.#n=l.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#s=or.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=ns.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(l){return this.#t.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#e.findAll({...l,status:"pending"}).length}getQueryData(l){const u=this.defaultQueryOptions({queryKey:l});return this.#t.get(u.queryHash)?.state.data}ensureQueryData(l){const u=this.defaultQueryOptions(l),s=this.#t.build(this,u),o=s.state.data;return o===void 0?this.fetchQuery(l):(l.revalidateIfStale&&s.isStaleByTime(kn(u.staleTime,s))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(l){return this.#t.findAll(l).map(({queryKey:u,state:s})=>{const o=s.data;return[u,o]})}setQueryData(l,u,s){const o=this.defaultQueryOptions({queryKey:l}),h=this.#t.get(o.queryHash)?.state.data,m=Mg(u,h);if(m!==void 0)return this.#t.build(this,o).setData(m,{...s,manual:!0})}setQueriesData(l,u,s){return Pt.batch(()=>this.#t.findAll(l).map(({queryKey:o})=>[o,this.setQueryData(o,u,s)]))}getQueryState(l){const u=this.defaultQueryOptions({queryKey:l});return this.#t.get(u.queryHash)?.state}removeQueries(l){const u=this.#t;Pt.batch(()=>{u.findAll(l).forEach(s=>{u.remove(s)})})}resetQueries(l,u){const s=this.#t;return Pt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},u)))}cancelQueries(l,u={}){const s={revert:!0,...u},o=Pt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,u={}){return Pt.batch(()=>(this.#t.findAll(l).forEach(s=>{s.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},u)))}refetchQueries(l,u={}){const s={...u,cancelRefetch:u.cancelRefetch??!0},o=Pt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ue)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ue)}fetchQuery(l){const u=this.defaultQueryOptions(l);u.retry===void 0&&(u.retry=!1);const s=this.#t.build(this,u);return s.isStaleByTime(kn(u.staleTime,s))?s.fetch(u):Promise.resolve(s.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ue).catch(ue)}fetchInfiniteQuery(l){return l.behavior=as(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l.behavior=as(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return ns.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(l){this.#n=l}setQueryDefaults(l,u){this.#l.set(Ma(l),{queryKey:l,defaultOptions:u})}getQueryDefaults(l){const u=[...this.#l.values()],s={};return u.forEach(o=>{Ei(l,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(l,u){this.#a.set(Ma(l),{mutationKey:l,defaultOptions:u})}getMutationDefaults(l){const u=[...this.#a.values()],s={};return u.forEach(o=>{Ei(l,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(l){if(l._defaulted)return l;const u={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return u.queryHash||(u.queryHash=ur(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===sr&&(u.enabled=!1),u}defaultMutationOptions(l){return l?._defaulted?l:{...this.#n.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Ty=F.createContext(void 0),My=l=>{const u=F.useContext(Ty);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},sb=({client:l,children:u})=>(F.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),at.jsx(Ty.Provider,{value:l,children:u})),Oy=F.createContext(!1),Zg=()=>F.useContext(Oy);Oy.Provider;function Jg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Pg=F.createContext(Jg()),kg=()=>F.useContext(Pg),Fg=(l,u,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?cr(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(u.isReset()||(l.retryOnMount=!1))},Wg=l=>{F.useEffect(()=>{l.clearReset()},[l])},$g=({result:l,errorResetBoundary:u,throwOnError:s,query:o,suspense:r})=>l.isError&&!u.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||cr(s,[l.error,o])),Ig=l=>{if(l.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=l.staleTime;l.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},t0=(l,u)=>l.isLoading&&l.isFetching&&!u,e0=(l,u)=>l?.suspense&&u.isPending,Qm=(l,u,s)=>u.fetchOptimistic(l).catch(()=>{s.clearReset()});function Cy(l,u,s){const o=Zg(),r=kg(),h=My(),m=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const y=h.getQueryCache().get(m.queryHash);m._optimisticResults=o?"isRestoring":"optimistic",Ig(m),Fg(m,r,y),Wg(r);const v=!h.getQueryCache().get(m.queryHash),[d]=F.useState(()=>new u(h,m)),b=d.getOptimisticResult(m),S=!o&&l.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(g=>{const _=S?d.subscribe(Pt.batchCalls(g)):ue;return d.updateResult(),_},[d,S]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),F.useEffect(()=>{d.setOptions(m)},[m,d]),e0(m,b))throw Qm(m,d,r);if($g({result:b,errorResetBoundary:r,throwOnError:m.throwOnError,query:y,suspense:m.suspense}))throw b.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(m,b),m.experimental_prefetchInRender&&!Ta&&t0(b,o)&&(v?Qm(m,d,r):y?.promise)?.catch(ue).finally(()=>{d.updateResult()}),m.notifyOnChangeProps?b:d.trackResult(b)}function cb(l,u){return Cy(l,_y)}function ob(l,u){const s=My(),[o]=F.useState(()=>new Vg(s,l));F.useEffect(()=>{o.setOptions(l)},[o,l]);const r=F.useSyncExternalStore(F.useCallback(m=>o.subscribe(Pt.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=F.useCallback((m,y)=>{o.mutate(m,y).catch(ue)},[o]);if(r.error&&cr(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function rb(l,u){return Cy(l,Yg)}var Nt=(l=>(l[l.None=0]="None",l[l.Mutable=1]="Mutable",l[l.Watching=2]="Watching",l[l.RecursedCheck=4]="RecursedCheck",l[l.Recursed=8]="Recursed",l[l.Dirty=16]="Dirty",l[l.Pending=32]="Pending",l))(Nt||{});function Ay({update:l,notify:u,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:m,shallowPropagate:y};function o(d,b,S){const g=b.depsTail;if(g!==void 0&&g.dep===d)return;const _=g!==void 0?g.nextDep:b.deps;if(_!==void 0&&_.dep===d){_.version=S,b.depsTail=_;return}const E=d.subsTail;if(E!==void 0&&E.version===S&&E.sub===b)return;const C=b.depsTail=d.subsTail={version:S,dep:d,sub:b,prevDep:g,nextDep:_,prevSub:E,nextSub:void 0};_!==void 0&&(_.prevDep=C),g!==void 0?g.nextDep=C:b.deps=C,E!==void 0?E.nextSub=C:d.subs=C}function r(d,b=d.sub){const S=d.dep,g=d.prevDep,_=d.nextDep,E=d.nextSub,C=d.prevSub;return _!==void 0?_.prevDep=g:b.depsTail=g,g!==void 0?g.nextDep=_:b.deps=_,E!==void 0?E.prevSub=C:S.subsTail=C,C!==void 0?C.nextSub=E:(S.subs=E)===void 0&&s(S),_}function h(d){let b=d.nextSub,S;t:do{const g=d.sub;let _=g.flags;if(_&60?_&12?_&4?!(_&48)&&v(d,g)?(g.flags=_|40,_&=1):_=0:g.flags=_&-9|32:_=0:g.flags=_|32,_&2&&u(g),_&1){const E=g.subs;if(E!==void 0){const C=(d=E).nextSub;C!==void 0&&(S={value:b,prev:S},b=C);continue}}if((d=b)!==void 0){b=d.nextSub;continue}for(;S!==void 0;)if(d=S.value,S=S.prev,d!==void 0){b=d.nextSub;continue t}break}while(!0)}function m(d,b){let S,g=0,_=!1;t:do{const E=d.dep,C=E.flags;if(b.flags&16)_=!0;else if((C&17)===17){if(l(E)){const L=E.subs;L.nextSub!==void 0&&y(L),_=!0}}else if((C&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(S={value:d,prev:S}),d=E.deps,b=E,++g;continue}if(!_){const L=d.nextDep;if(L!==void 0){d=L;continue}}for(;g--;){const L=b.subs,N=L.nextSub!==void 0;if(N?(d=S.value,S=S.prev):d=L,_){if(l(b)){N&&y(L),b=d.sub;continue}_=!1}else b.flags&=-33;b=d.sub;const Q=d.nextDep;if(Q!==void 0){d=Q;continue t}}return _}while(!0)}function y(d){do{const b=d.sub,S=b.flags;(S&48)===32&&(b.flags=S|16,(S&6)===2&&u(b))}while((d=d.nextSub)!==void 0)}function v(d,b){let S=b.depsTail;for(;S!==void 0;){if(S===d)return!0;S=S.prevDep}return!1}}let fr=0,ga=0,bi=0;const Sn=[],{link:fb,unlink:xy,propagate:hb,checkDirty:n0,shallowPropagate:db}=Ay({update(l){return l.depsTail!==void 0?u0(l):s0(l)},notify(l){let u=bi,s=u;do if(Sn[u++]=l,l.flags&=-3,l=l.subs?.sub,l===void 0||!(l.flags&2))break;while(!0);for(bi=u;s<--u;){const o=Sn[s];Sn[s++]=Sn[u],Sn[u]=o}},unwatched(l){l.flags&1?l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=17,ds(l)):r0.call(l)}});function a0(){return fr}function l0(){++fr}function i0(){--fr||o0()}function u0(l){l.depsTail=void 0,l.flags=5;try{const u=l.value;return u!==(l.value=l.getter(u))}finally{l.flags&=-5,ds(l)}}function s0(l){return l.flags=1,l.currentValue!==(l.currentValue=l.pendingValue)}function c0(l){const u=l.flags;if(u&16||u&32&&n0(l.deps,l)){l.depsTail=void 0,l.flags=6;try{l.fn()}finally{l.flags&=-5,ds(l)}}else l.flags=2}function o0(){try{for(;ga<bi;){const l=Sn[ga];Sn[ga++]=void 0,c0(l)}}finally{for(;ga<bi;){const l=Sn[ga];Sn[ga++]=void 0,l.flags|=10}ga=0,bi=0}}function r0(){this.depsTail=void 0,this.flags=0,ds(this);const l=this.subs;l!==void 0&&xy(l)}function ds(l){const u=l.depsTail;let s=u!==void 0?u.nextDep:l.deps;for(;s!==void 0;)s=xy(s,l)}function hr(l,u,s){const o=typeof l=="object",r=o?l:void 0;return{next:(o?l.next:l)?.bind(r),error:(o?l.error:u)?.bind(r),complete:(o?l.complete:s)?.bind(r)}}const er=[];let $u=0;const{link:Ym,unlink:f0,propagate:h0,checkDirty:zy,shallowPropagate:Gm}=Ay({update(l){return l._update()},notify(l){er[nr++]=l,l.flags&=~Nt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Nt.Mutable|Nt.Dirty,ls(l))}});let ku=0,nr=0,ke;function ls(l){const u=l.depsTail;let s=u!==void 0?u.nextDep:l.deps;for(;s!==void 0;)s=f0(s,l)}function Dy(){if(!(a0()>0)){for(;ku<nr;){const l=er[ku];er[ku++]=void 0,l.notify()}ku=0,nr=0}}function Uy(l,u){const s=typeof l=="function",o=l,r={_snapshot:s?void 0:l,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Nt.None:Nt.Mutable,get(){return ke!==void 0&&Ym(r,ke,$u),r._snapshot},subscribe(h){const m=hr(h),y={current:!1},v=d0(()=>{r.get(),y.current?m.next?.(r._snapshot):y.current=!0});return{unsubscribe:()=>{v.stop()}}},_update(h){const m=ke,y=Object.is;if(s)ke=r,++$u,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const v=r._snapshot,d=typeof h=="function"?h(v):h===void 0&&s?o(v):h;return v===void 0||!y(v,d)?(r._snapshot=d,!0):!1}finally{ke=m,s&&(r.flags&=~Nt.RecursedCheck),ls(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&zy(r.deps,r)){if(r._update()){const m=r.subs;m!==void 0&&Gm(m)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return ke!==void 0&&Ym(r,ke,$u),r._snapshot}):r.set=function(h){if(r._update(h)){const m=r.subs;m!==void 0&&(h0(m),Gm(m),Dy())}},r}function d0(l){const u=()=>{const o=ke;ke=s,++$u,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return l()}finally{ke=o,s.flags&=~Nt.RecursedCheck,ls(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Nt.Watching|Nt.RecursedCheck,notify(){const o=this.flags;o&Nt.Dirty||o&Nt.Pending&&zy(this.deps,this)?u():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,ls(this)}};return u(),s}class m0{constructor(u){this.atom=Uy(u)}setState(u){this.atom.set(u)}get state(){return this.atom.get()}get(){return this.state}subscribe(u){return this.atom.subscribe(hr(u))}}class y0{constructor(u){this.atom=Uy(u)}get state(){return this.atom.get()}get(){return this.state}subscribe(u){return this.atom.subscribe(hr(u))}}function p0(l){return typeof l=="function"?new y0(l):new m0(l)}function v0(l){try{l0(),l()}finally{i0(),Dy()}}const Fn="__TSR_index",Xm="popstate",Vm="beforeunload";function g0(l){let u=l.getLocation();const s=new Set,o=m=>{u=l.getLocation(),s.forEach(y=>y({location:u,action:m}))},r=m=>{l.notifyOnIndexChange??!0?o(m):u=l.getLocation()},h=async({task:m,navigateOpts:y,...v})=>{if(y?.ignoreBlocker??!1){m();return}const b=l.getBlockers?.()??[],S=v.type==="PUSH"||v.type==="REPLACE";if(typeof document<"u"&&b.length&&S)for(const g of b){const _=is(v.path,v.state);if(await g.blockerFn({currentLocation:u,nextLocation:_,action:v.type})){l.onBlocked?.();return}}m()};return{get location(){return u},get length(){return l.getLength()},subscribers:s,subscribe:m=>(s.add(m),()=>{s.delete(m)}),push:(m,y,v)=>{const d=u.state[Fn];y=Km(d+1,y),h({task:()=>{l.pushState(m,y),o({type:"PUSH"})},navigateOpts:v,type:"PUSH",path:m,state:y})},replace:(m,y,v)=>{const d=u.state[Fn];y=Km(d,y),h({task:()=>{l.replaceState(m,y),o({type:"REPLACE"})},navigateOpts:v,type:"REPLACE",path:m,state:y})},go:(m,y)=>{h({task:()=>{l.go(m),r({type:"GO",index:m})},navigateOpts:y,type:"GO"})},back:m=>{h({task:()=>{l.back(m?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{h({task:()=>{l.forward(m?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>u.state[Fn]!==0,createHref:m=>l.createHref(m),block:m=>{if(!l.setBlockers)return()=>{};const y=l.getBlockers?.()??[];return l.setBlockers([...y,m]),()=>{const v=l.getBlockers?.()??[];l.setBlockers?.(v.filter(d=>d!==m))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Km(l,u){u||(u={});const s=dr();return{...u,key:s,__TSR_key:s,[Fn]:l}}function S0(l){const u=typeof document<"u"?window:void 0,s=u.history.pushState,o=u.history.replaceState;let r=[];const h=()=>r,m=q=>r=q,y=(q=>q),v=(()=>is(`${u.location.pathname}${u.location.search}${u.location.hash}`,u.history.state));if(!u.history.state?.__TSR_key&&!u.history.state?.key){const q=dr();u.history.replaceState({[Fn]:0,key:q,__TSR_key:q},"")}let d=v(),b,S=!1,g=!1,_=!1,E=!1;const C=()=>d;let L,N;const Q=()=>{L&&(Y._ignoreSubscribers=!0,(L.isPush?u.history.pushState:u.history.replaceState)(L.state,"",L.href),Y._ignoreSubscribers=!1,L=void 0,N=void 0,b=void 0)},X=(q,Z,ut)=>{const tt=y(Z);N||(b=d),d=is(Z,ut),L={href:tt,state:ut,isPush:L?.isPush||q==="push"},N||(N=Promise.resolve().then(()=>Q()))},G=q=>{d=v(),Y.notify({type:q})},P=async()=>{if(g){g=!1;return}const q=v(),Z=q.state[Fn]-d.state[Fn],ut=Z===1,tt=Z===-1,W=!ut&&!tt||S;S=!1;const Rt=W?"GO":tt?"BACK":"FORWARD",bt=W?{type:"GO",index:Z}:{type:tt?"BACK":"FORWARD"};if(_)_=!1;else{const Yt=h();if(typeof document<"u"&&Yt.length){for(const U of Yt)if(await U.blockerFn({currentLocation:d,nextLocation:q,action:Rt})){g=!0,u.history.go(1),Y.notify(bt);return}}}d=v(),Y.notify(bt)},I=q=>{if(E){E=!1;return}let Z=!1;const ut=h();if(typeof document<"u"&&ut.length)for(const tt of ut){const W=tt.enableBeforeUnload??!0;if(W===!0){Z=!0;break}if(typeof W=="function"&&W()===!0){Z=!0;break}}if(Z)return q.preventDefault(),q.returnValue=""},Y=g0({getLocation:C,getLength:()=>u.history.length,pushState:(q,Z)=>X("push",q,Z),replaceState:(q,Z)=>X("replace",q,Z),back:q=>(q&&(_=!0),E=!0,u.history.back()),forward:q=>{q&&(_=!0),E=!0,u.history.forward()},go:q=>{S=!0,u.history.go(q)},createHref:q=>y(q),flush:Q,destroy:()=>{u.history.pushState=s,u.history.replaceState=o,u.removeEventListener(Vm,I,{capture:!0}),u.removeEventListener(Xm,P)},onBlocked:()=>{b&&d!==b&&(d=b)},getBlockers:h,setBlockers:m,notifyOnIndexChange:!1});return u.addEventListener(Vm,I,{capture:!0}),u.addEventListener(Xm,P),u.history.pushState=function(...q){const Z=s.apply(u.history,q);return Y._ignoreSubscribers||G("PUSH"),Z},u.history.replaceState=function(...q){const Z=o.apply(u.history,q);return Y._ignoreSubscribers||G("REPLACE"),Z},Y}function b0(l){let u=l.replace(/[\x00-\x1f\x7f]/g,"");return u.startsWith("//")&&(u="/"+u.replace(/^\/+/,"")),u}function is(l,u){const s=b0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=dr();return{href:s,pathname:s.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:s.length),hash:o>-1?s.substring(o):"",search:r>-1?s.slice(r,o===-1?void 0:o):"",state:u||{[Fn]:0,key:h,__TSR_key:h}}}function dr(){return(Math.random()+1).toString(36).substring(7)}const _0=!1;function _i(l){let u;return v0(()=>{u=l()}),u}function Ti(l){return l[l.length-1]}function R0(l){return typeof l=="function"}function Jn(l,u){return R0(l)?l(u):l}const E0=Object.prototype.hasOwnProperty,Zm=Object.prototype.propertyIsEnumerable;function Te(l,u,s=0){if(l===u)return l;if(s>500)return u;const o=u,r=km(l)&&km(o);if(!r&&!(us(l)&&us(o)))return o;const h=r?l:Jm(l);if(!h)return o;const m=r?o:Jm(o);if(!m)return o;const y=h.length,v=m.length,d=r?new Array(v):{};let b=0;for(let S=0;S<v;S++){const g=r?S:m[S],_=l[g],E=o[g];if(_===E){d[g]=_,(r?S<y:E0.call(l,g))&&b++;continue}if(_===null||E===null||typeof _!="object"||typeof E!="object"){d[g]=E;continue}const C=Te(_,E,s+1);d[g]=C,C===_&&b++}return y===v&&b===y?l:d}function Jm(l){const u=Object.getOwnPropertyNames(l);for(const r of u)if(!Zm.call(l,r))return!1;const s=Object.getOwnPropertySymbols(l);if(s.length===0)return u;const o=u;for(const r of s){if(!Zm.call(l,r))return!1;o.push(r)}return o}function us(l){if(!Pm(l))return!1;const u=l.constructor;if(typeof u>"u")return!0;const s=u.prototype;return!(!Pm(s)||!s.hasOwnProperty("isPrototypeOf"))}function Pm(l){return Object.prototype.toString.call(l)==="[object Object]"}function km(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Ra(l,u,s){if(l===u)return!0;if(typeof l!=typeof u)return!1;if(Array.isArray(l)&&Array.isArray(u)){if(l.length!==u.length)return!1;for(let o=0,r=l.length;o<r;o++)if(!Ra(l[o],u[o],s))return!1;return!0}if(us(l)&&us(u)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const m in u)if((!o||u[m]!==void 0)&&!Ra(l[m],u[m],s))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const m in l)l[m]!==void 0&&r++;let h=0;for(const m in u)if((!o||u[m]!==void 0)&&(h++,h>r||!Ra(l[m],u[m],s)))return!1;return r===h}return!1}function pl(l){let u,s;const o=new Promise((r,h)=>{u=r,s=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,u(r),l?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function Mi(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function T0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Fm(l){let u;try{u=decodeURI(l)}catch{u=l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return T0(u)}const M0=["http:","https:","mailto:","tel:"];function ss(l,u){if(!l)return!1;try{const s=new URL(l);return!u.has(s.protocol)}catch{return!1}}function pi(l){if(!l)return{path:l,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(l)&&!l.startsWith("//"))return{path:l,handledProtocolRelativeURL:!1};const u=/%25|%5C/gi;let s=0,o="",r;for(;(r=u.exec(l))!==null;)o+=Fm(l.slice(s,r.index))+r[0],s=u.lastIndex;o=o+Fm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function O0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}var C0="Invariant failed";function $n(l,u){if(!l)throw new Error(C0)}function cs(l){const u=new Map;let s,o;const r=h=>{h.next&&(h.prev?(h.prev.next=h.next,h.next.prev=h.prev,h.next=void 0,o&&(o.next=h,h.prev=o)):(h.next.prev=void 0,s=h.next,h.next=void 0,o&&(h.prev=o,o.next=h)),o=h)};return{get(h){const m=u.get(h);if(m)return r(m),m.value},set(h,m){if(u.size>=l&&s){const v=s;u.delete(v.key),v.next&&(s=v.next,v.next.prev=void 0),v===o&&(o=void 0)}const y=u.get(h);if(y)y.value=m,r(y);else{const v={key:h,value:m,prev:o};o&&(o.next=v),o=v,s||(s=v),u.set(h,v)}},clear(){u.clear(),s=void 0,o=void 0}}}const vl=0,Oa=1,Ca=2,Oi=3,ba=4,Ly=5;function A0(l){const u=l.indexOf("{");if(u===-1)return null;const s=l.indexOf("}",u);return s===-1||u+1>=l.length?null:[u,s]}function mr(l,u,s=new Uint16Array(6)){const o=l.indexOf("/",u),r=o===-1?l.length:o,h=l.substring(u,r);if(!h||!h.includes("$"))return s[0]=vl,s[1]=u,s[2]=u,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const y=l.length;return s[0]=Ca,s[1]=u,s[2]=u,s[3]=y,s[4]=y,s[5]=y,s}if(h.charCodeAt(0)===36)return s[0]=Oa,s[1]=u,s[2]=u+1,s[3]=r,s[4]=r,s[5]=r,s;const m=A0(h);if(m){const[y,v]=m,d=h.charCodeAt(y+1);if(d===45){if(y+2<h.length&&h.charCodeAt(y+2)===36){const b=y+3,S=v;if(b<S)return s[0]=Oi,s[1]=u+y,s[2]=u+b,s[3]=u+S,s[4]=u+v+1,s[5]=r,s}}else if(d===36){const b=y+1,S=y+2;return S===v?(s[0]=Ca,s[1]=u+y,s[2]=u+b,s[3]=u+S,s[4]=u+v+1,s[5]=l.length,s):(s[0]=Oa,s[1]=u+y,s[2]=u+S,s[3]=u+v,s[4]=u+v+1,s[5]=r,s)}}return s[0]=vl,s[1]=u,s[2]=u,s[3]=r,s[4]=r,s[5]=r,s}function ms(l,u,s,o,r,h,m){m?.(s);let y=o;{const v=s.fullPath??s.from,d=v.length,b=s.options?.caseSensitive??l,S=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;y<d;){const _=mr(v,y,u);let E;const C=y,L=_[5];switch(y=L+1,h++,_[0]){case vl:{const Q=v.substring(_[2],_[3]);if(b){const X=r.static?.get(Q);if(X)E=X;else{r.static??=new Map;const G=_a(s.fullPath??s.from);G.parent=r,G.depth=h,E=G,r.static.set(Q,G)}}else{const X=Q.toLowerCase(),G=r.staticInsensitive?.get(X);if(G)E=G;else{r.staticInsensitive??=new Map;const P=_a(s.fullPath??s.from);P.parent=r,P.depth=h,E=P,r.staticInsensitive.set(X,P)}}break}case Oa:{const Q=v.substring(C,_[1]),X=v.substring(_[4],L),G=b&&!!(Q||X),P=Q?G?Q:Q.toLowerCase():void 0,I=X?G?X:X.toLowerCase():void 0,Y=!S&&r.dynamic?.find(q=>!q.skipOnParamError&&q.caseSensitive===G&&q.prefix===P&&q.suffix===I);if(Y)E=Y;else{const q=Ho(Oa,s.fullPath??s.from,G,P,I);E=q,q.depth=h,q.parent=r,r.dynamic??=[],r.dynamic.push(q)}break}case Oi:{const Q=v.substring(C,_[1]),X=v.substring(_[4],L),G=b&&!!(Q||X),P=Q?G?Q:Q.toLowerCase():void 0,I=X?G?X:X.toLowerCase():void 0,Y=!S&&r.optional?.find(q=>!q.skipOnParamError&&q.caseSensitive===G&&q.prefix===P&&q.suffix===I);if(Y)E=Y;else{const q=Ho(Oi,s.fullPath??s.from,G,P,I);E=q,q.parent=r,q.depth=h,r.optional??=[],r.optional.push(q)}break}case Ca:{const Q=v.substring(C,_[1]),X=v.substring(_[4],L),G=b&&!!(Q||X),P=Q?G?Q:Q.toLowerCase():void 0,I=X?G?X:X.toLowerCase():void 0,Y=Ho(Ca,s.fullPath??s.from,G,P,I);E=Y,Y.parent=r,Y.depth=h,r.wildcard??=[],r.wildcard.push(Y)}}r=E}if(S&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=_a(s.fullPath??s.from);_.kind=Ly,_.parent=r,h++,_.depth=h,r.pathless??=[],r.pathless.push(_),r=_}const g=(s.path||!s.children)&&!s.isRoot;if(g&&v.endsWith("/")){const _=_a(s.fullPath??s.from);_.kind=ba,_.parent=r,h++,_.depth=h,r.index=_,r=_}r.parse=s.options?.params?.parse??null,r.skipOnParamError=S,r.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,g&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const v of s.children)ms(l,u,v,y,r,h,m)}function jo(l,u){if(l.skipOnParamError&&!u.skipOnParamError)return-1;if(!l.skipOnParamError&&u.skipOnParamError)return 1;if(l.skipOnParamError&&u.skipOnParamError&&(l.parsingPriority||u.parsingPriority))return u.parsingPriority-l.parsingPriority;if(l.prefix&&u.prefix&&l.prefix!==u.prefix){if(l.prefix.startsWith(u.prefix))return-1;if(u.prefix.startsWith(l.prefix))return 1}if(l.suffix&&u.suffix&&l.suffix!==u.suffix){if(l.suffix.endsWith(u.suffix))return-1;if(u.suffix.endsWith(l.suffix))return 1}return l.prefix&&!u.prefix?-1:!l.prefix&&u.prefix?1:l.suffix&&!u.suffix?-1:!l.suffix&&u.suffix?1:l.caseSensitive&&!u.caseSensitive?-1:!l.caseSensitive&&u.caseSensitive?1:0}function Zn(l){if(l.pathless)for(const u of l.pathless)Zn(u);if(l.static)for(const u of l.static.values())Zn(u);if(l.staticInsensitive)for(const u of l.staticInsensitive.values())Zn(u);if(l.dynamic?.length){l.dynamic.sort(jo);for(const u of l.dynamic)Zn(u)}if(l.optional?.length){l.optional.sort(jo);for(const u of l.optional)Zn(u)}if(l.wildcard?.length){l.wildcard.sort(jo);for(const u of l.wildcard)Zn(u)}}function _a(l){return{kind:vl,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Ho(l,u,s,o,r){return{kind:l,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:u,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:o,suffix:r}}function x0(l,u){const s=_a("/"),o=new Uint16Array(6);for(const r of l)ms(!1,o,r,1,s,0);Zn(s),u.masksTree=s,u.flatCache=cs(1e3)}function z0(l,u){l||="/";const s=u.flatCache.get(l);if(s)return s;const o=yr(l,u.masksTree);return u.flatCache.set(l,o),o}function D0(l,u,s,o,r){l||="/",o||="/";const h=u?`case\0${l}`:l;let m=r.singleCache.get(h);if(!m){m=_a("/");const y=new Uint16Array(6);ms(u,y,{from:l},1,m,0),r.singleCache.set(h,m)}return yr(o,m,s)}function U0(l,u,s=!1){const o=s?l:`nofuzz\0${l}`,r=u.matchCache.get(o);if(r!==void 0)return r;l||="/";let h;try{h=yr(l,u.segmentTree,s)}catch(m){if(m instanceof URIError)h=null;else throw m}return h&&(h.branch=N0(h.route)),u.matchCache.set(o,h),h}function L0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function w0(l,u=!1,s){const o=_a(l.fullPath),r=new Uint16Array(6),h={},m={};let y=0;return ms(u,r,l,1,o,0,d=>{if(s?.(d,y),$n(!(d.id in h),`Duplicate routes found with id: ${String(d.id)}`),h[d.id]=d,y!==0&&d.path){const b=L0(d.fullPath);(!m[b]||d.fullPath.endsWith("/"))&&(m[b]=d)}y++}),Zn(o),{processedTree:{segmentTree:o,singleCache:cs(1e3),matchCache:cs(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:m}}function yr(l,u,s=!1){const o=l.split("/"),r=j0(l,o,u,s);if(!r)return null;const[h]=wy(l,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function wy(l,u,s){const o=B0(s.node);let r=null;const h={};let m=s.extract?.part??0,y=s.extract?.node??0,v=s.extract?.path??0,d=s.extract?.segment??0;for(;y<o.length;m++,y++,v++,d++){const b=o[y];if(b.kind===ba)break;if(b.kind===Ly){d--,m--,v--;continue}const S=u[m],g=v;if(S&&(v+=S.length),b.kind===Oa){r??=s.node.fullPath.split("/");const _=r[d],E=b.prefix?.length??0;if(_.charCodeAt(E)===123){const L=b.suffix?.length??0,N=_.substring(E+2,_.length-L-1),Q=S.substring(E,S.length-L);h[N]=decodeURIComponent(Q)}else{const L=_.substring(1);h[L]=decodeURIComponent(S)}}else if(b.kind===Oi){if(s.skipped&1<<y){m--,v=g-1;continue}r??=s.node.fullPath.split("/");const _=r[d],E=b.prefix?.length??0,C=b.suffix?.length??0,L=_.substring(E+3,_.length-C-1),N=b.suffix||b.prefix?S.substring(E,S.length-C):S;N&&(h[L]=decodeURIComponent(N))}else if(b.kind===Ca){const _=b,E=l.substring(g+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),C=decodeURIComponent(E);h["*"]=C,h._splat=C;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:m,node:y,path:v,segment:d}]}function N0(l){const u=[l];for(;l.parentRoute;)l=l.parentRoute,u.push(l);return u.reverse(),u}function B0(l){const u=Array(l.depth+1);do u[l.depth]=l,l=l.parent;while(l);return u}function j0(l,u,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!Ti(u),h=r&&l!=="/",m=u.length-(r?1:0),y=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let v=null,d=null,b=null;for(;y.length;){const S=y.pop(),{node:g,index:_,skipped:E,depth:C,statics:L,dynamics:N,optionals:Q}=S;let{extract:X,rawParams:G,parsedParams:P}=S;if(g.skipOnParamError){if(!qo(l,u,S))continue;G=S.rawParams,X=S.extract,P=S.parsedParams}o&&g.route&&g.kind!==ba&&vi(d,S)&&(d=S);const I=_===m;if(I&&(g.route&&!h&&vi(b,S)&&(b=S),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const Y=I?void 0:u[_];let q;if(I&&g.index){const Z={node:g.index,index:_,skipped:E,depth:C+1,statics:L,dynamics:N,optionals:Q,extract:X,rawParams:G,parsedParams:P};let ut=!0;if(g.index.skipOnParamError&&(qo(l,u,Z)||(ut=!1)),ut){if(L===m&&!N&&!Q&&!E)return Z;vi(b,Z)&&(b=Z)}}if(g.wildcard&&vi(v,S))for(const Z of g.wildcard){const{prefix:ut,suffix:tt}=Z;if(ut&&(I||!(Z.caseSensitive?Y:q??=Y.toLowerCase()).startsWith(ut)))continue;if(tt){if(I)continue;const Rt=u.slice(_).join("/").slice(-tt.length);if((Z.caseSensitive?Rt:Rt.toLowerCase())!==tt)continue}const W={node:Z,index:m,skipped:E,depth:C,statics:L,dynamics:N,optionals:Q,extract:X,rawParams:G,parsedParams:P};if(!(Z.skipOnParamError&&!qo(l,u,W))){v=W;break}}if(g.optional){const Z=E|1<<C,ut=C+1;for(let tt=g.optional.length-1;tt>=0;tt--){const W=g.optional[tt];y.push({node:W,index:_,skipped:Z,depth:ut,statics:L,dynamics:N,optionals:Q,extract:X,rawParams:G,parsedParams:P})}if(!I)for(let tt=g.optional.length-1;tt>=0;tt--){const W=g.optional[tt],{prefix:Rt,suffix:bt}=W;if(Rt||bt){const Yt=W.caseSensitive?Y:q??=Y.toLowerCase();if(Rt&&!Yt.startsWith(Rt)||bt&&!Yt.endsWith(bt))continue}y.push({node:W,index:_+1,skipped:E,depth:ut,statics:L,dynamics:N,optionals:Q+1,extract:X,rawParams:G,parsedParams:P})}}if(!I&&g.dynamic&&Y)for(let Z=g.dynamic.length-1;Z>=0;Z--){const ut=g.dynamic[Z],{prefix:tt,suffix:W}=ut;if(tt||W){const Rt=ut.caseSensitive?Y:q??=Y.toLowerCase();if(tt&&!Rt.startsWith(tt)||W&&!Rt.endsWith(W))continue}y.push({node:ut,index:_+1,skipped:E,depth:C+1,statics:L,dynamics:N+1,optionals:Q,extract:X,rawParams:G,parsedParams:P})}if(!I&&g.staticInsensitive){const Z=g.staticInsensitive.get(q??=Y.toLowerCase());Z&&y.push({node:Z,index:_+1,skipped:E,depth:C+1,statics:L+1,dynamics:N,optionals:Q,extract:X,rawParams:G,parsedParams:P})}if(!I&&g.static){const Z=g.static.get(Y);Z&&y.push({node:Z,index:_+1,skipped:E,depth:C+1,statics:L+1,dynamics:N,optionals:Q,extract:X,rawParams:G,parsedParams:P})}if(g.pathless){const Z=C+1;for(let ut=g.pathless.length-1;ut>=0;ut--){const tt=g.pathless[ut];y.push({node:tt,index:_,skipped:E,depth:Z,statics:L,dynamics:N,optionals:Q,extract:X,rawParams:G,parsedParams:P})}}}if(b&&v)return vi(v,b)?b:v;if(b)return b;if(v)return v;if(o&&d){let S=d.index;for(let _=0;_<d.index;_++)S+=u[_].length;const g=S===l.length?"/":l.slice(S);return d.rawParams??={},d.rawParams["**"]=decodeURIComponent(g),d}return null}function qo(l,u,s){try{const[o,r]=wy(l,u,s);s.rawParams=o,s.extract=r;const h=s.node.parse(o);return s.parsedParams=Object.assign({},s.parsedParams,h),!0}catch{return null}}function vi(l,u){return l?u.statics>l.statics||u.statics===l.statics&&(u.dynamics>l.dynamics||u.dynamics===l.dynamics&&(u.optionals>l.optionals||u.optionals===l.optionals&&((u.node.kind===ba)>(l.node.kind===ba)||u.node.kind===ba==(l.node.kind===ba)&&u.depth>l.depth))):!0}function Iu(l){return pr(l.filter(u=>u!==void 0).join("/"))}function pr(l){return l.replace(/\/{2,}/g,"/")}function Ny(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function Wn(l){const u=l.length;return u>1&&l[u-1]==="/"?l.replace(/\/{1,}$/,""):l}function By(l){return Wn(Ny(l))}function os(l,u){return l?.endsWith("/")&&l!=="/"&&l!==`${u}/`?l.slice(0,-1):l}function H0(l,u,s){return os(l,s)===os(u,s)}function q0({base:l,to:u,trailingSlash:s="never",cache:o}){const r=u.startsWith("/"),h=!r&&u===".";let m;if(o){m=r?u:h?l:l+"\0"+u;const S=o.get(m);if(S)return S}let y;if(h)y=l.split("/");else if(r)y=u.split("/");else{for(y=l.split("/");y.length>1&&Ti(y)==="";)y.pop();const S=u.split("/");for(let g=0,_=S.length;g<_;g++){const E=S[g];E===""?g?g===_-1&&y.push(E):y=[E]:E===".."?y.pop():E==="."||y.push(E)}}y.length>1&&(Ti(y)===""?s==="never"&&y.pop():s==="always"&&y.push(""));let v,d="";for(let S=0;S<y.length;S++){S>0&&(d+="/");const g=y[S];if(!g)continue;v=mr(g,0,v);const _=v[0];if(_===vl){d+=g;continue}const E=v[5],C=g.substring(0,v[1]),L=g.substring(v[4],E),N=g.substring(v[2],v[3]);_===Oa?d+=C||L?`${C}{$${N}}${L}`:`$${N}`:_===Ca?d+=C||L?`${C}{$}${L}`:"$":d+=`${C}{-$${N}}${L}`}d=pr(d);const b=d||"/";return m&&o&&o.set(m,b),b}function Q0(l){const u=new Map(l.map(r=>[encodeURIComponent(r),r])),s=Array.from(u.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return r=>r.replace(o,h=>u.get(h)??h)}function Qo(l,u,s){const o=u[l];return typeof o!="string"?o:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>$m(r,s)).join("/"):$m(o,s)}function Wm({path:l,params:u,decoder:s,...o}){let r=!1;const h={};if(!l||l==="/")return{interpolatedPath:"/",usedParams:h,isMissingParams:r};if(!l.includes("$"))return{interpolatedPath:l,usedParams:h,isMissingParams:r};const m=l.length;let y=0,v,d="";for(;y<m;){const S=y;v=mr(l,S,v);const g=v[5];if(y=g+1,S===g)continue;const _=v[0];if(_===vl){d+="/"+l.substring(S,g);continue}if(_===Ca){const E=u._splat;h._splat=E,h["*"]=E;const C=l.substring(S,v[1]),L=l.substring(v[4],g);if(!E){r=!0,(C||L)&&(d+="/"+C+L);continue}const N=Qo("_splat",u,s);d+="/"+C+N+L;continue}if(_===Oa){const E=l.substring(v[2],v[3]);!r&&!(E in u)&&(r=!0),h[E]=u[E];const C=l.substring(S,v[1]),L=l.substring(v[4],g),N=Qo(E,u,s)??"undefined";d+="/"+C+N+L;continue}if(_===Oi){const E=l.substring(v[2],v[3]),C=u[E];if(C==null)continue;h[E]=C;const L=l.substring(S,v[1]),N=l.substring(v[4],g),Q=Qo(E,u,s)??"";d+="/"+L+Q+N;continue}}return l.endsWith("/")&&(d+="/"),{usedParams:h,interpolatedPath:d||"/",isMissingParams:r}}function $m(l,u){const s=encodeURIComponent(l);return u?.(s)??s}function me(l){return!!l?.isNotFound}function Y0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const ar="tsr-scroll-restoration-v1_3",G0=(l,u)=>{let s;return(...o)=>{s||(s=setTimeout(()=>{l(...o),s=null},u))}};function X0(){const l=Y0();if(!l)return null;const u=l.getItem(ar);let s=u?JSON.parse(u):{};return{state:s,set:o=>{s=Jn(o,s)||s;try{l.setItem(ar,JSON.stringify(s))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Fu=X0(),V0=l=>l.state.__TSR_key||l.href;function K0(l){const u=[];let s;for(;s=l.parentNode;)u.push(`${l.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,l)+1})`),l=s;return`${u.reverse().join(" > ")}`.toLowerCase()}let rs=!1;function Z0({storageKey:l,key:u,behavior:s,shouldScrollRestoration:o,scrollToTopSelectors:r,location:h}){let m;try{m=JSON.parse(sessionStorage.getItem(l)||"{}")}catch(d){console.error(d);return}const y=u||window.history.state?.__TSR_key,v=m[y];rs=!0;t:{if(o&&v&&Object.keys(v).length>0){for(const S in v){const g=v[S];if(S==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:s});else if(S){const _=document.querySelector(S);_&&(_.scrollLeft=g.scrollX,_.scrollTop=g.scrollY)}}break t}const d=(h??window.location).hash.split("#",2)[1];if(d){const S=window.history.state?.__hashScrollIntoViewOptions??!0;if(S){const g=document.getElementById(d);g&&g.scrollIntoView(S)}break t}const b={top:0,left:0,behavior:s};if(window.scrollTo(b),r)for(const S of r){if(S==="window")continue;const g=typeof S=="function"?S():document.querySelector(S);g&&g.scrollTo(b)}}rs=!1}function J0(l,u){if(!Fu||((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!Fu))return;l.isScrollRestorationSetup=!0,rs=!1;const o=l.options.getScrollRestorationKey||V0;window.history.scrollRestoration="manual";const r=h=>{if(rs||!l.isScrollRestoring)return;let m="";if(h.target===document||h.target===window)m="window";else{const v=h.target.getAttribute("data-scroll-restoration-id");v?m=`[data-scroll-restoration-id="${v}"]`:m=K0(h.target)}const y=o(l.state.location);Fu.set(v=>{const d=v[y]||={},b=d[m]||={};if(m==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(m){const S=document.querySelector(m);S&&(b.scrollX=S.scrollLeft||0,b.scrollY=S.scrollTop||0)}return v})};typeof document<"u"&&document.addEventListener("scroll",G0(r,100),!0),l.subscribe("onRendered",h=>{const m=o(h.toLocation);if(!l.resetNextScroll){l.resetNextScroll=!0;return}typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation})||(Z0({storageKey:ar,key:m,behavior:l.options.scrollRestorationBehavior,shouldScrollRestoration:l.isScrollRestoring,scrollToTopSelectors:l.options.scrollToTopSelectors,location:l.history.location}),l.isScrollRestoring&&Fu.set(y=>(y[m]||={},y)))})}function P0(l){if(typeof document<"u"&&document.querySelector){const u=l.state.location.state.__hashScrollIntoViewOptions??!0;if(u&&l.state.location.hash!==""){const s=document.getElementById(l.state.location.hash);s&&s.scrollIntoView(u)}}}function k0(l,u=String){const s=new URLSearchParams;for(const o in l){const r=l[o];r!==void 0&&s.set(o,u(r))}return s.toString()}function Yo(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function F0(l){const u=new URLSearchParams(l),s={};for(const[o,r]of u.entries()){const h=s[o];h==null?s[o]=Yo(r):Array.isArray(h)?h.push(Yo(r)):s[o]=[h,Yo(r)]}return s}const W0=I0(JSON.parse),$0=tS(JSON.stringify,JSON.parse);function I0(l){return u=>{u[0]==="?"&&(u=u.substring(1));const s=F0(u);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function tS(l,u){const s=typeof u=="function";function o(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(s&&typeof r=="string")try{return u(r),l(r)}catch{}return r}return r=>{const h=k0(r,o);return h?`?${h}`:""}}const je="__root__";function eS(l){if(l.statusCode=l.statusCode||l.code||307,!l._builtLocation&&!l.reloadDocument&&typeof l.href=="string")try{new URL(l.href),l.reloadDocument=!0}catch{}const u=new Headers(l.headers);l.href&&u.get("Location")===null&&u.set("Location",l.href);const s=new Response(null,{status:l.statusCode,headers:u});if(s.options=l,l.throw)throw s;return s}function Me(l){return l instanceof Response&&!!l.options}const lr=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},ys=(l,u)=>!!(l.preload&&!l.router.state.matches.some(s=>s.id===u)),yl=(l,u,s=!0)=>{const o={...l.router.options.context??{}},r=s?u:u-1;for(let h=0;h<=r;h++){const m=l.matches[h];if(!m)continue;const y=l.router.getMatch(m.id);y&&Object.assign(o,y.__routeContext,y.__beforeLoadContext)}return o},Im=(l,u)=>{if(!l.matches.length)return;const s=u.routeId,o=l.matches.findIndex(m=>m.routeId===l.router.routeTree.id),r=o>=0?o:0;let h=s?l.matches.findIndex(m=>m.routeId===s):l.firstBadMatchIndex??l.matches.length-1;h<0&&(h=r);for(let m=h;m>=0;m--){const y=l.matches[m];if(l.router.looseRoutesById[y.routeId].options.notFoundComponent)return m}return s?h:r},Pn=(l,u,s)=>{if(!(!Me(s)&&!me(s)))throw Me(s)&&s.redirectHandled&&!s.options.reloadDocument||(u&&(u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.loaderPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loaderPromise=void 0,u._nonReactive.error=s,l.updateMatch(u.id,o=>({...o,status:Me(s)?"redirected":o.status==="pending"?"success":o.status,context:yl(l,u.index),isFetching:!1,error:s})),me(s)&&!s.routeId&&(s.routeId=u.routeId),u._nonReactive.loadPromise?.resolve()),Me(s)&&(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s))),s},jy=(l,u)=>!!l.router.getMatch(u)._nonReactive.dehydrated,gi=(l,u,s,o)=>{const{id:r,routeId:h}=l.matches[u],m=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=u,Pn(l,l.router.getMatch(r),s);try{m.options.onError?.(s)}catch(y){s=y,Pn(l,l.router.getMatch(r),s)}l.updateMatch(r,y=>(y._nonReactive.beforeLoadPromise?.resolve(),y._nonReactive.beforeLoadPromise=void 0,y._nonReactive.loadPromise?.resolve(),{...y,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!l.preload&&!Me(s)&&!me(s)&&(l.serialError??=s)},Hy=(l,u,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(!!(l.onReady&&!ys(l,u)&&(s.options.loader||s.options.beforeLoad||Qy(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent))){const m=setTimeout(()=>{lr(l)},r);o._nonReactive.pendingTimeout=m}},nS=(l,u,s)=>{const o=l.router.getMatch(u);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Hy(l,u,s,o);const r=()=>{const h=l.router.getMatch(u);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Pn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},aS=(l,u,s,o)=>{const r=l.router.getMatch(u),h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=pl(()=>{h?.resolve()});const{paramsError:m,searchError:y}=r;m&&gi(l,s,m,"PARSE_PARAMS"),y&&gi(l,s,y,"VALIDATE_SEARCH"),Hy(l,u,o,r);const v=new AbortController;let d=!1;const b=()=>{d||(d=!0,l.updateMatch(u,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:v})))},S=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(u,G=>({...G,isFetching:!1}))};if(!o.options.beforeLoad){_i(()=>{b(),S()});return}r._nonReactive.beforeLoadPromise=pl();const g={...yl(l,s,!1),...r.__routeContext},{search:_,params:E,cause:C}=r,L=ys(l,u),N={search:_,abortController:v,params:E,preload:L,context:g,location:l.location,navigate:G=>l.router.navigate({...G,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:L?"preload":C,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},Q=G=>{if(G===void 0){_i(()=>{b(),S()});return}(Me(G)||me(G))&&(b(),gi(l,s,G,"BEFORE_LOAD")),_i(()=>{b(),l.updateMatch(u,P=>({...P,__beforeLoadContext:G})),S()})};let X;try{if(X=o.options.beforeLoad(N),Mi(X))return b(),X.catch(G=>{gi(l,s,G,"BEFORE_LOAD")}).then(Q)}catch(G){b(),gi(l,s,G,"BEFORE_LOAD")}Q(X)},lS=(l,u)=>{const{id:s,routeId:o}=l.matches[u],r=l.router.looseRoutesById[o],h=()=>y(),m=()=>aS(l,s,u,r),y=()=>{if(jy(l,s))return;const v=nS(l,s,r);return Mi(v)?v.then(m):m()};return h()},iS=(l,u,s)=>{const o=l.router.getMatch(u);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={ssr:l.router.options.ssr,matches:l.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([h,m,y])=>{const v=h?.meta,d=h?.links,b=h?.scripts,S=h?.styles;return{meta:v,links:d,headScripts:b,headers:y,scripts:m,styles:S}})},qy=(l,u,s,o,r)=>{const h=u[o-1],{params:m,loaderDeps:y,abortController:v,cause:d}=l.router.getMatch(s),b=yl(l,o),S=ys(l,s);return{params:m,deps:y,preload:!!S,parentMatchPromise:h,abortController:v,context:b,location:l.location,navigate:g=>l.router.navigate({...g,_fromLocation:l.location}),cause:S?"preload":d,route:r,...l.router.options.additionalContext}},ty=async(l,u,s,o,r)=>{try{const h=l.router.getMatch(s);try{(!(_0??l.router.isServer)||h.ssr===!0)&&fs(r);const m=r.options.loader?.(qy(l,u,s,o,r)),y=r.options.loader&&Mi(m);if((y||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&l.updateMatch(s,b=>({...b,isFetching:"loader"})),r.options.loader){const b=y?await m:m;Pn(l,l.router.getMatch(s),b),b!==void 0&&l.updateMatch(s,S=>({...S,loaderData:b}))}r._lazyPromise&&await r._lazyPromise;const d=h._nonReactive.minPendingPromise;d&&await d,r._componentsPromise&&await r._componentsPromise,l.updateMatch(s,b=>({...b,error:void 0,context:yl(l,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(m){let y=m;if(y?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:yl(l,o)}));return}const v=h._nonReactive.minPendingPromise;v&&await v,me(m)&&await r.options.notFoundComponent?.preload?.(),Pn(l,l.router.getMatch(s),m);try{r.options.onError?.(m)}catch(d){y=d,Pn(l,l.router.getMatch(s),d)}l.updateMatch(s,d=>({...d,error:y,context:yl(l,o),status:"error",isFetching:!1}))}}catch(h){const m=l.router.getMatch(s);m&&(m._nonReactive.loaderPromise=void 0),Pn(l,m,h)}},uS=async(l,u,s)=>{async function o(S,g,_,E){const C=Date.now()-g.updatedAt,L=S?E.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:E.options.staleTime??l.router.options.defaultStaleTime??0,N=E.options.shouldReload,Q=typeof N=="function"?N(qy(l,u,r,s,E)):N,{status:X,invalid:G}=_;m=X==="success"&&(G||(Q??C>L)),S&&E.options.preload===!1||(m&&!l.sync?(y=!0,(async()=>{try{await ty(l,u,r,s,E);const P=l.router.getMatch(r);P._nonReactive.loaderPromise?.resolve(),P._nonReactive.loadPromise?.resolve(),P._nonReactive.loaderPromise=void 0}catch(P){Me(P)&&await l.router.navigate(P.options)}})()):(X!=="success"||m&&l.sync)&&await ty(l,u,r,s,E))}const{id:r,routeId:h}=l.matches[s];let m=!1,y=!1;const v=l.router.looseRoutesById[h];if(!jy(l,r)){const S=l.router.getMatch(r),g=ys(l,r);if(S._nonReactive.loaderPromise){if(S.status==="success"&&!l.sync&&!S.preload)return S;await S._nonReactive.loaderPromise;const _=l.router.getMatch(r),E=_._nonReactive.error||_.error;E&&Pn(l,_,E),_.status==="pending"&&await o(g,S,_,v)}else{const _=g&&!l.router.state.matches.some(C=>C.id===r),E=l.router.getMatch(r);E._nonReactive.loaderPromise=pl(),_!==E.preload&&l.updateMatch(r,C=>({...C,preload:_})),await o(g,S,E,v)}}const d=l.router.getMatch(r);y||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,y||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const b=y?d.isFetching:!1;return b!==d.isFetching||d.invalid!==!1?(l.updateMatch(r,S=>({...S,isFetching:b,invalid:!1})),l.router.getMatch(r)):d};async function ey(l){const u=l,s=[];u.router.state.matches.some(g=>g._forcePending)&&lr(u);let o;for(let g=0;g<u.matches.length;g++){try{const _=lS(u,g);Mi(_)&&await _}catch(_){if(Me(_))throw _;if(me(_))o=_;else if(!u.preload)throw _;break}if(u.serialError)break}const r=u.firstBadMatchIndex??u.matches.length,h=o&&!u.preload?Im(u,o):void 0,m=o&&u.preload?0:h!==void 0?Math.min(h+1,r):r;let y,v;for(let g=0;g<m;g++)s.push(uS(u,s,g));try{await Promise.all(s)}catch{const g=await Promise.allSettled(s);for(const _ of g){if(_.status!=="rejected")continue;const E=_.reason;if(Me(E))throw E;me(E)?y??=E:v??=E}if(v!==void 0)throw v}const d=y??(o&&!u.preload?o:void 0);let b=u.serialError?u.firstBadMatchIndex??0:u.matches.length-1;if(!d&&o&&u.preload)return u.matches;if(d){const g=Im(u,d);$n(g!==void 0);const _=u.matches[g],E=u.router.looseRoutesById[_.routeId],C=u.router.options?.defaultNotFoundComponent;!E.options.notFoundComponent&&C&&(E.options.notFoundComponent=C),d.routeId=_.routeId;const L=_.routeId===u.router.routeTree.id;u.updateMatch(_.id,N=>({...N,...L?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),b=g,await fs(E)}else if(!u.preload){const g=u.matches[0];g.globalNotFound||u.router.getMatch(g.id)?.globalNotFound&&u.updateMatch(g.id,E=>({...E,globalNotFound:!1,error:void 0}))}if(u.serialError&&u.firstBadMatchIndex!==void 0){const g=u.router.looseRoutesById[u.matches[u.firstBadMatchIndex].routeId];await fs(g)}for(let g=0;g<=b;g++){const _=u.matches[g],{id:E,routeId:C}=_,L=u.router.looseRoutesById[C];try{const N=iS(u,E,L);if(N){const Q=await N;u.updateMatch(E,X=>({...X,...Q}))}}catch(N){console.error(`Error executing head for route ${C}:`,N)}}const S=lr(u);if(Mi(S)&&await S,d)throw d;if(u.serialError&&!u.preload&&!u.onReady)throw u.serialError;return u.matches}async function fs(l){if(!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(u=>{const{id:s,...o}=u.options;Object.assign(l.options,o),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0),!l._componentsLoaded&&l._componentsPromise===void 0){const u=()=>{const s=[];for(const o of Yy){const r=l.options[o]?.preload;r&&s.push(r())}if(s.length)return Promise.all(s).then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0});l._componentsLoaded=!0,l._componentsPromise=void 0};l._componentsPromise=l._lazyPromise?l._lazyPromise.then(u):u()}return l._componentsPromise}function Qy(l){for(const u of Yy)if(l.options[u]?.preload)return!0;return!1}const Yy=["component","errorComponent","pendingComponent","notFoundComponent"];function sS(l){return{input:({url:u})=>{for(const s of l)u=ir(s,u);return u},output:({url:u})=>{for(let s=l.length-1;s>=0;s--)u=Gy(l[s],u);return u}}}function cS(l){const u=By(l.basepath),s=`/${u}`,o=`${s}/`,r=l.caseSensitive?s:s.toLowerCase(),h=l.caseSensitive?o:o.toLowerCase();return{input:({url:m})=>{const y=l.caseSensitive?m.pathname:m.pathname.toLowerCase();return y===r?m.pathname="/":y.startsWith(h)&&(m.pathname=m.pathname.slice(s.length)),m},output:({url:m})=>(m.pathname=Iu(["/",u,m.pathname]),m)}}function ir(l,u){const s=l?.input?.({url:u});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return u}function Gy(l,u){const s=l?.output?.({url:u});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return u}function Ea(l){const u=l.resolvedLocation,s=l.location,o=u?.pathname!==s.pathname,r=u?.href!==s.href,h=u?.hash!==s.hash;return{fromLocation:u,toLocation:s,pathChanged:o,hrefChanged:r,hashChanged:h}}function oS(l){const u=l.filter(s=>s.status!=="redirected");return u.length===l.length?l:u}class rS{constructor(u){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=s=>s(),this.update=s=>{const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,m=o?.rewrite;if(this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Q0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=S0()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let g;this.resolvePathCache=cs(1e3),g=this.buildRouteTree(),this.setRoutes(g)}!this.__store&&this.latestLocation&&(this.__store=p0(hS(this.latestLocation)),J0(this));let y=!1;const v=this.options.basepath??"/",d=this.options.rewrite;if(h||r!==v||m!==d){this.basepath=v;const g=[],_=By(v);_&&_!=="/"&&g.push(cS({basepath:v})),d&&g.push(d),this.rewrite=g.length===0?void 0:g.length===1?g[0]:sS(g),this.history&&this.updateLatestLocation(),y=!0}y&&this.__store&&this.__store.setState(g=>({...g,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=w0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&x0(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const r={eventType:s,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const r=({pathname:v,search:d,hash:b,href:S,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(v)){const Q=this.options.parseSearch(d),X=this.options.stringifySearch(Q);return{href:v+X+b,publicHref:S,pathname:pi(v).path,external:!1,searchStr:X,search:Te(o?.search,Q),hash:pi(b.slice(1)).path,state:Te(o?.state,g)}}const _=new URL(S,this.origin),E=ir(this.rewrite,_),C=this.options.parseSearch(E.search),L=this.options.stringifySearch(C);return E.search=L,{href:E.href.replace(E.origin,""),publicHref:S,pathname:pi(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:L,search:Te(o?.search,C),hash:pi(E.hash.slice(1)).path,state:Te(o?.state,g)}},h=r(s),{__tempLocation:m,__tempKey:y}=h.state;if(m&&(!y||y===this.tempLocationKey)){const v=r(m);return v.state.key=h.state.key,v.state.__TSR_key=h.state.__TSR_key,delete v.state.__tempLocation,{...v,maskedLocation:h}}return h},this.resolvePathWithBase=(s,o)=>q0({base:s,to:pr(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},r):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>dS({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const s=this.state.matches.filter(h=>h.status==="pending"),o=this.state.matches.filter(h=>h.isFetching==="loader");new Set([...this.state.pendingMatches??[],...s,...o]).forEach(h=>{this.cancelMatch(h.id)})},this.buildLocation=s=>{const o=(h={})=>{const m=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,y=this.matchRoutesLightweight(m);h.from;const v=h.unsafeRelative==="path"?m.pathname:h.from??y.fullPath,d=this.resolvePathWithBase(v,"."),b=y.search,S={...y.params},g=h.to?this.resolvePathWithBase(d,`${h.to}`):this.resolvePathWithBase(d,"."),_=h.params===!1||h.params===null?{}:(h.params??!0)===!0?S:Object.assign(S,Jn(h.params,S)),E=this.getMatchedRoutes(g);let C=E.matchedRoutes;if((!E.foundRoute||E.foundRoute.path!=="/"&&E.routeParams["**"])&&this.options.notFoundRoute&&(C=[...C,this.options.notFoundRoute]),Object.keys(_).length>0)for(const tt of C){const W=tt.options.params?.stringify??tt.options.stringifyParams;if(W)try{Object.assign(_,W(_))}catch{}}const N=s.leaveParams?g:pi(Wm({path:g,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let Q=b;if(s._includeValidateSearch&&this.options.search?.strict){const tt={};C.forEach(W=>{if(W.options.validateSearch)try{Object.assign(tt,ts(W.options.validateSearch,{...tt,...Q}))}catch{}}),Q=tt}Q=mS({search:Q,dest:h,destRoutes:C,_includeValidateSearch:s._includeValidateSearch}),Q=Te(b,Q);const X=this.options.stringifySearch(Q),G=h.hash===!0?m.hash:h.hash?Jn(h.hash,m.hash):void 0,P=G?`#${G}`:"";let I=h.state===!0?m.state:h.state?Jn(h.state,m.state):{};I=Te(m.state,I);const Y=`${N}${X}${P}`;let q,Z,ut=!1;if(this.rewrite){const tt=new URL(Y,this.origin),W=Gy(this.rewrite,tt);q=tt.href.replace(tt.origin,""),W.origin!==this.origin?(Z=W.href,ut=!0):Z=W.pathname+W.search+W.hash}else q=O0(Y),Z=q;return{publicHref:Z,href:q,pathname:N,search:Q,searchStr:X,state:I,hash:G??"",external:ut,unmaskOnReload:h.unmaskOnReload}},r=(h={},m)=>{const y=o(h);let v=m?o(m):void 0;if(!v){const d={};if(this.options.routeMasks){const b=z0(y.pathname,this.processedTree);if(b){Object.assign(d,b.rawParams);const{from:S,params:g,..._}=b.route,E=g===!1||g===null?{}:(g??!0)===!0?d:Object.assign(d,Jn(g,d));m={from:s.from,..._,params:E},v=o(m)}}}return v&&(y.maskedLocation=v),y};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...r})=>{const h=()=>{const v=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];v.forEach(b=>{r.state[b]=this.latestLocation.state[b]});const d=Ra(r.state,this.latestLocation.state);return v.forEach(b=>{delete r.state[b]}),d},m=Wn(this.latestLocation.href)===Wn(r.href),y=this.commitLocationPromise;if(this.commitLocationPromise=pl(()=>{y?.resolve()}),m&&h())this.load();else{let{maskedLocation:v,hashScrollIntoView:d,...b}=r;v&&(b={...v,state:{...v.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:m,href:y,...v}={})=>{if(y){const S=this.history.location.state.__TSR_index,g=is(y,{__TSR_index:s?S:S+1}),_=new URL(g.pathname,this.origin),E=ir(this.rewrite,_);v.to=E.pathname,v.search=this.options.parseSearch(g.search),v.hash=g.hash.slice(1)}const d=this.buildLocation({...v,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const b=this.commitLocation({...d,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:m});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...m})=>{let y=!1;if(r)try{new URL(`${r}`),y=!0}catch{}if(y&&!o&&(o=!0),o){if(s!==void 0||!r){const d=this.buildLocation({to:s,...m});r=r??d.publicHref,h=h??d.publicHref}const v=!y&&h?h:r;if(ss(v,this.protocolAllowlist))return Promise.resolve();if(!m.ignoreBlocker){const b=this.history.getBlockers?.()??[];for(const S of b)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return m.replace?window.location.replace(v):window.location.href=v,Promise.resolve()}return this.buildAndCommitLocation({...m,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:s,cachedMatches:o.cachedMatches.filter(r=>!s.some(h=>h.id===r.id))}))},this.load=async s=>{let o,r,h;for(h=new Promise(y=>{this.startTransition(async()=>{try{this.beforeLoad();const v=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ea({resolvedLocation:d,location:v})}),this.emit({type:"onBeforeLoad",...Ea({resolvedLocation:d,location:v})}),await ey({router:this,sync:s?.sync,matches:this.state.pendingMatches,location:v,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],S=[],g=[],_=[];_i(()=>{this.__store.setState(E=>{const C=E.matches,L=E.pendingMatches||E.matches;return b=C.filter(N=>!L.some(Q=>Q.id===N.id)),S=C.filter(N=>!L.some(Q=>Q.routeId===N.routeId)),g=L.filter(N=>!C.some(Q=>Q.routeId===N.routeId)),_=L.filter(N=>C.some(Q=>Q.routeId===N.routeId)),{...E,isLoading:!1,loadedAt:Date.now(),matches:L,pendingMatches:void 0,cachedMatches:[...E.cachedMatches,...b.filter(N=>N.status!=="error"&&N.status!=="notFound"&&N.status!=="redirected")]}}),this.clearExpiredCache()}),[[S,"onLeave"],[g,"onEnter"],[_,"onStay"]].forEach(([E,C])=>{E.forEach(L=>{this.looseRoutesById[L.routeId].options[C]?.(L)})})})})}})}catch(v){Me(v)?(o=v,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):me(v)&&(r=v),this.__store.setState(d=>({...d,statusCode:o?o.status:r?404:d.matches.some(b=>b.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),y()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let m;this.hasNotFoundMatch()?m=404:this.__store.state.matches.some(y=>y.status==="error")&&(m=500),m!==void 0&&this.__store.setState(y=>({...y,statusCode:m}))},this.startViewTransition=s=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const h=this.latestLocation,m=this.state.resolvedLocation,y=typeof o.types=="function"?o.types(Ea({resolvedLocation:m,location:h})):o.types;if(y===!1){s();return}r={update:s,types:y}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(h=>h.id===s)?"pendingMatches":this.state.matches.some(h=>h.id===s)?"matches":this.state.cachedMatches.some(h=>h.id===s)?"cachedMatches":"";r&&(r==="cachedMatches"?this.__store.setState(h=>({...h,cachedMatches:oS(h.cachedMatches.map(m=>m.id===s?o(m):m))})):this.__store.setState(h=>({...h,[r]:h[r]?.map(m=>m.id===s?o(m):m)})))})},this.getMatch=s=>{const o=r=>r.id===s;return this.state.cachedMatches.find(o)??this.state.pendingMatches?.find(o)??this.state.matches.find(o)},this.invalidate=s=>{const o=r=>s?.filter?.(r)??!0?{...r,invalid:!0,...s?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(o),cachedMatches:r.cachedMatches.map(o),pendingMatches:r.pendingMatches?.map(o)})),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const o=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const r=s.options._builtLocation??this.buildLocation(s.options),h=this.getParsedLocationHref(r);s.options.href=h,s.headers.set("Location",h)}else if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const h=r.pathname+r.search+r.hash;s.options.href=h,s.headers.set("Location",h)}}catch{}if(s.options.href&&!s.options._builtLocation&&ss(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s?.filter;o!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(h=>!o(h))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const s=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const h=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:Date.now()-o.updatedAt>=h};this.clearCache({filter:s})},this.loadRouteChunk=fs,this.preloadRoute=async s=>{const o=s._builtLocation??this.buildLocation(s);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const h=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(y=>y.id)),m=new Set([...h,...this.state.cachedMatches.map(y=>y.id)]);_i(()=>{r.forEach(y=>{m.has(y.id)||this.__store.setState(v=>({...v,cachedMatches:[...v.cachedMatches,y]}))})});try{return r=await ey({router:this,matches:r,location:o,preload:!0,updateMatch:(y,v)=>{h.has(y)?r=r.map(d=>d.id===y?v(d):d):this.updateMatch(y,v)}}),r}catch(y){if(Me(y))return y.options.reloadDocument?void 0:await this.preloadRoute({...y.options,_fromLocation:o});me(y)||console.error(y);return}},this.matchRoute=(s,o)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.state.status!=="pending")return!1;const y=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,v=D0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,y.pathname,this.processedTree);return!v||s.params&&!Ra(v.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?Ra(y.search,h.search,{partial:!0})?v.rawParams:!1:v.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(s=>s.status==="notFound"||s.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...u,caseSensitive:u.caseSensitive??!1,notFoundMode:u.notFoundMode??"fuzzy",stringifySearch:u.stringifySearch??$0,parseSearch:u.parseSearch??W0,protocolAllowlist:u.protocolAllowlist??M0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:u,routesByPath:s,processedTree:o}){this.routesById=u,this.routesByPath=s,this.processedTree=o;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(u){return u?.id?u.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(u,s){const o=this.getMatchedRoutes(u.pathname),{foundRoute:r,routeParams:h,parsedParams:m}=o;let{matchedRoutes:y}=o,v=!1;(r?r.path!=="/"&&h["**"]:Wn(u.pathname))&&(this.options.notFoundRoute?y=[...y,this.options.notFoundRoute]:v=!0);const d=v?pS(this.options.notFoundMode,y):void 0,b=new Array(y.length),S=new Map(this.state.matches.map(g=>[g.routeId,g]));for(let g=0;g<y.length;g++){const _=y[g],E=b[g-1];let C,L,N;{const bt=E?.search??u.search,Yt=E?._strictSearch??void 0;try{const U=ts(_.options.validateSearch,{...bt})??void 0;C={...bt,...U},L={...Yt,...U},N=void 0}catch(U){let V=U;if(U instanceof hs||(V=new hs(U.message,{cause:U})),s?.throwOnError)throw V;C=bt,L={},N=V}}const Q=_.options.loaderDeps?.({search:C})??"",X=Q?JSON.stringify(Q):"",{interpolatedPath:G,usedParams:P}=Wm({path:_.fullPath,params:h,decoder:this.pathParamsDecoder,server:this.isServer}),I=_.id+G+X,Y=this.getMatch(I),q=S.get(_.id),Z=Y?._strictParams??P;let ut;if(!Y)try{ny(_,P,m,Z)}catch(bt){if(me(bt)||Me(bt)?ut=bt:ut=new fS(bt.message,{cause:bt}),s?.throwOnError)throw ut}Object.assign(h,Z);const tt=q?"stay":"enter";let W;if(Y)W={...Y,cause:tt,params:q?.params??h,_strictParams:Z,search:Te(q?q.search:Y.search,C),_strictSearch:L};else{const bt=_.options.loader||_.options.beforeLoad||_.lazyFn||Qy(_)?"pending":"success";W={id:I,ssr:_.options.ssr,index:g,routeId:_.id,params:q?.params??h,_strictParams:Z,pathname:G,updatedAt:Date.now(),search:q?Te(q.search,C):C,_strictSearch:L,searchError:void 0,status:bt,isFetching:!1,error:void 0,paramsError:ut,__routeContext:void 0,_nonReactive:{loadPromise:pl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:tt,loaderDeps:q?Te(q.loaderDeps,Q):Q,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:_.options.staticData||{},fullPath:_.fullPath}}s?.preload||(W.globalNotFound=d===_.id),W.searchError=N;const Rt=this.getParentContext(E);W.context={...Rt,...W.__routeContext,...W.__beforeLoadContext},b[g]=W}for(let g=0;g<b.length;g++){const _=b[g],E=this.looseRoutesById[_.routeId],C=this.getMatch(_.id),L=S.get(_.routeId);if(_.params=L?Te(L.params,h):h,!C){const N=b[g-1],Q=this.getParentContext(N);if(E.options.context){const X={deps:_.loaderDeps,params:_.params,context:Q??{},location:u,navigate:G=>this.navigate({...G,_fromLocation:u}),buildLocation:this.buildLocation,cause:_.cause,abortController:_.abortController,preload:!!_.preload,matches:b,routeId:E.id};_.__routeContext=E.options.context(X)??void 0}_.context={...Q,..._.__routeContext,..._.__beforeLoadContext}}}return b}matchRoutesLightweight(u){const{matchedRoutes:s,routeParams:o,parsedParams:r}=this.getMatchedRoutes(u.pathname),h=Ti(s),m={...u.search};for(const b of s)try{Object.assign(m,ts(b.options.validateSearch,m))}catch{}const y=Ti(this.state.matches),v=y&&y.routeId===h.id&&u.pathname===this.state.location.pathname;let d;if(v)d=y.params;else{const b={...o};for(const S of s)try{ny(S,o,r??{},b)}catch{}d=b}return{matchedRoutes:s,fullPath:h.fullPath,search:m,params:d}}}class hs extends Error{}class fS extends Error{}function hS(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function ts(l,u){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(u);if(s instanceof Promise)throw new hs("Async validation not supported");if(s.issues)throw new hs(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in l?l.parse(u):typeof l=="function"?l(u):{}}function dS({pathname:l,routesById:u,processedTree:s}){const o={},r=Wn(l);let h,m;const y=U0(r,s,!0);return y&&(h=y.route,Object.assign(o,y.rawParams),m=Object.assign({},y.parsedParams)),{matchedRoutes:y?.branch||[u[je]],routeParams:o,foundRoute:h,parsedParams:m}}function mS({search:l,dest:u,destRoutes:s,_includeValidateSearch:o}){return yS(s)(l,u,o??!1)}function yS(l){const u={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of l){if("search"in r.options)r.options.search?.middlewares&&u.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const h=({search:m,next:y})=>{let v=m;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(v=r.options.preSearchFilters.reduce((b,S)=>S(b),m));const d=y(v);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((b,S)=>S(b),d):d};u.middlewares.push(h)}if(r.options.validateSearch){const h=({search:m,next:y})=>{const v=y(m);if(!u._includeValidateSearch)return v;try{return{...v,...ts(r.options.validateSearch,v)??void 0}}catch{return v}};u.middlewares.push(h)}}const s=({search:r})=>{const h=u.dest;return h.search?h.search===!0?r:Jn(h.search,r):{}};u.middlewares.push(s);const o=(r,h,m)=>{if(r>=m.length)return h;const y=m[r];return y({search:h,next:d=>o(r+1,d,m)})};return function(h,m,y){return u.dest=m,u._includeValidateSearch=y,o(0,h,u.middlewares)}}function pS(l,u){if(l!=="root")for(let s=u.length-1;s>=0;s--){const o=u[s];if(o.children)return o.id}return je}function ny(l,u,s,o){const r=l.options.params?.parse??l.options.parseParams;if(r)if(l.options.skipRouteOnParseError)for(const h in u)h in s&&(o[h]=s[h]);else{const h=r(o);Object.assign(o,h)}}const vS="Error preloading route! ☝️";class Xy{constructor(u){if(this.init=s=>{this.originalIndex=s.originalIndex;const o=this.options,r=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=je:this.parentRoute||$n(!1);let h=r?je:o?.path;h&&h!=="/"&&(h=Ny(h));const m=o?.id||h;let y=r?je:Iu([this.parentRoute.id===je?"":this.parentRoute.id,m]);h===je&&(h="/"),y!==je&&(y=Iu(["/",y]));const v=y===je?"/":Iu([this.parentRoute.fullPath,h]);this._path=h,this._id=y,this._fullPath=v,this._to=Wn(v)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>eS({from:this.fullPath,...s}),this.options=u||{},this.isRoot=!u?.getParentRoute,u?.id&&u?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class gS extends Xy{constructor(u){super(u)}}const Wu=typeof window<"u"?F.useLayoutEffect:F.useEffect;function Go(l){const u=F.useRef({value:l,prev:null}),s=u.current.value;return l!==s&&(u.current={value:l,prev:s}),u.current.prev}function SS(l,u,s={},o={}){F.useEffect(()=>{if(!l.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{u(h)},s);return r.observe(l.current),()=>{r.disconnect()}},[u,s,o.disabled,l])}function bS(l){const u=F.useRef(null);return F.useImperativeHandle(l,()=>u.current,[]),u}function vr(l){const u=l.errorComponent??gr;return at.jsx(_S,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?F.createElement(u,{error:s,reset:o}):l.children})}class _S extends F.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(u){return{resetKey:u.getResetKey()}}static getDerivedStateFromError(u){return{error:u}}reset(){this.setState({error:null})}componentDidUpdate(u,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(u,s){this.props.onCatch&&this.props.onCatch(u,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function gr({error:l}){const[u,s]=F.useState(!1);return at.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[at.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[at.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),at.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:u?"Hide Error":"Show Error"})]}),at.jsx("div",{style:{height:".25rem"}}),u?at.jsx("div",{children:at.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?at.jsx("code",{children:l.message}):null})}):null]})}function RS({children:l,fallback:u=null}){return Vy()?at.jsx(Ri.Fragment,{children:l}):at.jsx(Ri.Fragment,{children:u})}function Vy(){return Ri.useSyncExternalStore(ES,()=>!0,()=>!1)}function ES(){return()=>{}}var Xo={exports:{}},Vo={},Ko={exports:{}},Zo={};var ay;function TS(){if(ay)return Zo;ay=1;var l=Ci();function u(S,g){return S===g&&(S!==0||1/S===1/g)||S!==S&&g!==g}var s=typeof Object.is=="function"?Object.is:u,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,m=l.useDebugValue;function y(S,g){var _=g(),E=o({inst:{value:_,getSnapshot:g}}),C=E[0].inst,L=E[1];return h(function(){C.value=_,C.getSnapshot=g,v(C)&&L({inst:C})},[S,_,g]),r(function(){return v(C)&&L({inst:C}),S(function(){v(C)&&L({inst:C})})},[S]),m(_),_}function v(S){var g=S.getSnapshot;S=S.value;try{var _=g();return!s(S,_)}catch{return!0}}function d(S,g){return g()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:y;return Zo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:b,Zo}var ly;function MS(){return ly||(ly=1,Ko.exports=TS()),Ko.exports}var iy;function OS(){if(iy)return Vo;iy=1;var l=Ci(),u=MS();function s(d,b){return d===b&&(d!==0||1/d===1/b)||d!==d&&b!==b}var o=typeof Object.is=="function"?Object.is:s,r=u.useSyncExternalStore,h=l.useRef,m=l.useEffect,y=l.useMemo,v=l.useDebugValue;return Vo.useSyncExternalStoreWithSelector=function(d,b,S,g,_){var E=h(null);if(E.current===null){var C={hasValue:!1,value:null};E.current=C}else C=E.current;E=y(function(){function N(I){if(!Q){if(Q=!0,X=I,I=g(I),_!==void 0&&C.hasValue){var Y=C.value;if(_(Y,I))return G=Y}return G=I}if(Y=G,o(X,I))return Y;var q=g(I);return _!==void 0&&_(Y,q)?(X=I,Y):(X=I,G=q)}var Q=!1,X,G,P=S===void 0?null:S;return[function(){return N(b())},P===null?void 0:function(){return N(P())}]},[b,S,g,_]);var L=r(d,E[0],E[1]);return m(function(){C.hasValue=!0,C.value=L},[L]),v(L),L},Vo}var uy;function CS(){return uy||(uy=1,Xo.exports=OS()),Xo.exports}var AS=CS();function xS(l,u){return l===u}function zS(l,u,s=xS){const o=F.useCallback(m=>{if(!l)return()=>{};const{unsubscribe:y}=l.subscribe(m);return y},[l]),r=F.useCallback(()=>l?.get(),[l]);return AS.useSyncExternalStoreWithSelector(o,r,r,u,s)}const Ky=F.createContext(null);function qe(l){const u=F.useContext(Ky);return l?.warn,u}function He(l){const u=qe({warn:l?.router===void 0}),s=l?.router||u,o=F.useRef(void 0);return zS(s.__store,r=>{if(l?.select){if(l.structuralSharing??s.options.defaultStructuralSharing){const h=Te(o.current,l.select(r));return o.current=h,h}return l.select(r)}return r})}const ps=F.createContext(void 0),DS=F.createContext(void 0);function Fe(l){const u=F.useContext(l.from?DS:ps);return He({select:o=>{const r=o.matches.find(h=>l.from?l.from===h.routeId:h.id===u);if($n(!((l.shouldThrow??!0)&&!r),`Could not find ${l.from?`an active match from "${l.from}"`:"a nearest match!"}`),r!==void 0)return l.select?l.select(r):r},structuralSharing:l.structuralSharing})}function Sr(l){return Fe({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:u=>l.select?l.select(u.loaderData):u.loaderData})}function br(l){const{select:u,...s}=l;return Fe({...s,select:o=>u?u(o.loaderDeps):o.loaderDeps})}function _r(l){return Fe({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:u=>{const s=l.strict===!1?u.params:u._strictParams;return l.select?l.select(s):s}})}function Rr(l){return Fe({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:u=>l.select?l.select(u.search):u.search})}function Er(l){const u=qe();return F.useCallback(s=>u.navigate({...s,from:s.from??l?.from}),[l?.from,u])}var US=dy();function LS(l,u){const s=qe(),o=bS(u),{activeProps:r,inactiveProps:h,activeOptions:m,to:y,preload:v,preloadDelay:d,hashScrollIntoView:b,replace:S,startTransition:g,resetScroll:_,viewTransition:E,children:C,target:L,disabled:N,style:Q,className:X,onClick:G,onBlur:P,onFocus:I,onMouseEnter:Y,onMouseLeave:q,onTouchStart:Z,ignoreBlocker:ut,params:tt,search:W,hash:Rt,state:bt,mask:Yt,reloadDocument:U,unsafeRelative:V,from:it,_fromLocation:Et,..._t}=l,M=Vy(),H=He({select:xt=>{const Gt=xt.matches[xt.matches.length-1];return{search:Gt?.search,hash:xt.location.hash,path:Gt?.pathname}},structuralSharing:!0}),K=l.from,J=F.useMemo(()=>({...l,from:K}),[s,H,K,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),et=F.useMemo(()=>s.buildLocation({...J}),[s,J]),rt=et.maskedLocation?et.maskedLocation.publicHref:et.publicHref,pt=et.maskedLocation?et.maskedLocation.external:et.external,Ht=F.useMemo(()=>qS(rt,pt,s.history,N),[N,pt,rt,s.history]),Dt=F.useMemo(()=>{if(Ht?.external)return ss(Ht.href,s.protocolAllowlist)?void 0:Ht.href;if(!QS(y)&&!(typeof y!="string"||y.indexOf(":")===-1))try{return new URL(y),ss(y,s.protocolAllowlist)?void 0:y}catch{}},[y,Ht,s.protocolAllowlist]),We=He({select:xt=>{if(Dt)return!1;if(m?.exact){if(!H0(xt.location.pathname,et.pathname,s.basepath))return!1}else{const Gt=os(xt.location.pathname,s.basepath),ne=os(et.pathname,s.basepath);if(!(Gt.startsWith(ne)&&(Gt.length===ne.length||Gt[ne.length]==="/")))return!1}return(m?.includeSearch??!0)&&!Ra(xt.location.search,et.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?M&&xt.location.hash===et.hash:!0}}),$e=We?Jn(r,{})??wS:Jo,bn=We?Jo:Jn(h,{})??Jo,Sl=[X,$e.className,bn.className].filter(Boolean).join(" "),Ve=(Q||$e.style||bn.style)&&{...Q,...$e.style,...bn.style},[bl,Aa]=F.useState(!1),Ai=F.useRef(!1),Ie=l.reloadDocument||Dt?!1:v??s.options.defaultPreload,In=d??s.options.defaultPreloadDelay??0,Qe=F.useCallback(()=>{s.preloadRoute({...J,_builtLocation:et}).catch(xt=>{console.warn(xt),console.warn(vS)})},[s,J,et]),_l=F.useCallback(xt=>{xt?.isIntersecting&&Qe()},[Qe]);SS(o,_l,HS,{disabled:!!N||Ie!=="viewport"}),F.useEffect(()=>{Ai.current||!N&&Ie==="render"&&(Qe(),Ai.current=!0)},[N,Qe,Ie]);const vs=xt=>{const Gt=xt.currentTarget.getAttribute("target"),ne=L!==void 0?L:Gt;if(!N&&!YS(xt)&&!xt.defaultPrevented&&(!ne||ne==="_self")&&xt.button===0){xt.preventDefault(),US.flushSync(()=>{Aa(!0)});const Di=s.subscribe("onResolved",()=>{Di(),Aa(!1)});s.navigate({...J,replace:S,resetScroll:_,hashScrollIntoView:b,startTransition:g,viewTransition:E,ignoreBlocker:ut})}};if(Dt)return{..._t,ref:o,href:Dt,...C&&{children:C},...L&&{target:L},...N&&{disabled:N},...Q&&{style:Q},...X&&{className:X},...G&&{onClick:G},...P&&{onBlur:P},...I&&{onFocus:I},...Y&&{onMouseEnter:Y},...q&&{onMouseLeave:q},...Z&&{onTouchStart:Z}};const xi=xt=>{if(N||Ie!=="intent")return;if(!In){Qe();return}const Gt=xt.currentTarget;if(Si.has(Gt))return;const ne=setTimeout(()=>{Si.delete(Gt),Qe()},In);Si.set(Gt,ne)},le=xt=>{N||Ie!=="intent"||Qe()},zi=xt=>{if(N||!Ie||!In)return;const Gt=xt.currentTarget,ne=Si.get(Gt);ne&&(clearTimeout(ne),Si.delete(Gt))};return{..._t,...$e,...bn,href:Ht?.href,ref:o,onClick:dl([G,vs]),onBlur:dl([P,zi]),onFocus:dl([I,xi]),onMouseEnter:dl([Y,xi]),onMouseLeave:dl([q,zi]),onTouchStart:dl([Z,le]),disabled:!!N,target:L,...Ve&&{style:Ve},...Sl&&{className:Sl},...N&&NS,...We&&BS,...M&&bl&&jS}}const Jo={},wS={className:"active"},NS={role:"link","aria-disabled":!0},BS={"data-status":"active","aria-current":"page"},jS={"data-transitioning":"transitioning"},Si=new WeakMap,HS={rootMargin:"100px"},dl=l=>u=>{for(const s of l)if(s){if(u.defaultPrevented)return;s(u)}};function qS(l,u,s,o){if(!o)return u?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function QS(l){if(typeof l!="string")return!1;const u=l.charCodeAt(0);return u===47?l.charCodeAt(1)!==47:u===46}const Zy=F.forwardRef((l,u)=>{const{_asChild:s,...o}=l,{type:r,...h}=LS(o,u),m=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:y,...v}=h;return F.createElement("a",v,m)}return F.createElement(s,h,m)});function YS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}class GS extends Xy{constructor(u){super(u),this.useMatch=s=>Fe({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Fe({...s,from:this.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>br({...s,from:this.id}),this.useLoaderData=s=>Sr({...s,from:this.id}),this.useNavigate=()=>Er({from:this.fullPath}),this.Link=Ri.forwardRef((s,o)=>at.jsx(Zy,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function XS(l){return new GS(l)}class VS extends gS{constructor(u){super(u),this.useMatch=s=>Fe({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Fe({...s,from:this.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>br({...s,from:this.id}),this.useLoaderData=s=>Sr({...s,from:this.id}),this.useNavigate=()=>Er({from:this.fullPath}),this.Link=Ri.forwardRef((s,o)=>at.jsx(Zy,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function mb(l){return new VS(l)}function sy(l){return typeof l=="object"?new cy(l,{silent:!0}).createRoute(l):new cy(l,{silent:!0}).createRoute}class cy{constructor(u,s){this.path=u,this.createRoute=o=>{const r=XS(o);return r.isRoot=!1,r},this.silent=s?.silent}}class oy{constructor(u){this.useMatch=s=>Fe({select:s?.select,from:this.options.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Fe({from:this.options.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>br({...s,from:this.options.id}),this.useLoaderData=s=>Sr({...s,from:this.options.id}),this.useNavigate=()=>{const s=qe();return Er({from:s.routesById[this.options.id].fullPath})},this.options=u,this.$$typeof=Symbol.for("react.memo")}}function ry(l){return typeof l=="object"?new oy(l):u=>new oy({id:l,...u})}function KS(){const l=qe(),u=F.useRef({router:l,mounted:!1}),[s,o]=F.useState(!1),{hasPendingMatches:r,isLoading:h}=He({select:S=>({isLoading:S.isLoading,hasPendingMatches:S.matches.some(g=>g.status==="pending")}),structuralSharing:!0}),m=Go(h),y=h||s||r,v=Go(y),d=h||r,b=Go(d);return l.startTransition=S=>{o(!0),F.startTransition(()=>{S(),o(!1)})},F.useEffect(()=>{const S=l.history.subscribe(l.load),g=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Wn(l.latestLocation.publicHref)!==Wn(g.publicHref)&&l.commitLocation({...g,replace:!0}),()=>{S()}},[l,l.history]),Wu(()=>{if(typeof window<"u"&&l.ssr||u.current.router===l&&u.current.mounted)return;u.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(g){console.error(g)}})()},[l]),Wu(()=>{m&&!h&&l.emit({type:"onLoad",...Ea(l.state)})},[m,l,h]),Wu(()=>{b&&!d&&l.emit({type:"onBeforeRouteMount",...Ea(l.state)})},[d,b,l]),Wu(()=>{if(v&&!y){const S=Ea(l.state);l.emit({type:"onResolved",...S}),l.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),S.hrefChanged&&P0(l)}},[y,v,l]),null}function ZS(l){const u=He({select:s=>`not-found-${s.location.pathname}-${s.status}`});return at.jsx(vr,{getResetKey:()=>u,onCatch:(s,o)=>{if(me(s))l.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(me(s))return l.fallback?.(s);throw s},children:l.children})}function JS(){return at.jsx("p",{children:"Not Found"})}function ml(l){return at.jsx(at.Fragment,{children:l.children})}function Jy(l,u,s){return u.options.notFoundComponent?at.jsx(u.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?at.jsx(l.options.defaultNotFoundComponent,{...s}):at.jsx(JS,{})}function PS(){return qe().isScrollRestoring,null}const Py=F.memo(function({matchId:u}){const s=qe(),o=He({select:C=>{const L=C.matches.findIndex(Q=>Q.id===u),N=C.matches[L];return $n(N),{routeId:N.routeId,ssr:N.ssr,_displayPending:N._displayPending,resetKey:C.loadedAt,parentRouteId:C.matches[L-1]?.routeId}},structuralSharing:!0}),r=s.routesById[o.routeId],h=r.options.pendingComponent??s.options.defaultPendingComponent,m=h?at.jsx(h,{}):null,y=r.options.errorComponent??s.options.defaultErrorComponent,v=r.options.onCatch??s.options.defaultOnCatch,d=r.isRoot?r.options.notFoundComponent??s.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=o.ssr===!1||o.ssr==="data-only",S=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||b))?F.Suspense:ml,g=y?vr:ml,_=d?ZS:ml,E=r.isRoot?r.options.shellComponent??ml:ml;return at.jsxs(E,{children:[at.jsx(ps.Provider,{value:u,children:at.jsx(S,{fallback:m,children:at.jsx(g,{getResetKey:()=>o.resetKey,errorComponent:y||gr,onCatch:(C,L)=>{if(me(C))throw C;v?.(C,L)},children:at.jsx(_,{fallback:C=>{if(!d||C.routeId&&C.routeId!==o.routeId||!C.routeId&&!r.isRoot)throw C;return F.createElement(d,C)},children:b||o._displayPending?at.jsx(RS,{fallback:m,children:at.jsx(fy,{matchId:u})}):at.jsx(fy,{matchId:u})})})})}),o.parentRouteId===je&&s.options.scrollRestoration?at.jsxs(at.Fragment,{children:[at.jsx(kS,{}),at.jsx(PS,{})]}):null]})});function kS(){const l=qe(),u=F.useRef(void 0);return at.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(u.current===void 0||u.current.href!==l.latestLocation.href)&&(l.emit({type:"onRendered",...Ea(l.state)}),u.current=l.latestLocation)}},l.latestLocation.state.__TSR_key)}const fy=F.memo(function({matchId:u}){const s=qe(),{match:o,key:r,routeId:h}=He({select:v=>{const d=v.matches.find(E=>E.id===u),b=d.routeId,g=(s.routesById[b].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:b,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:b,match:{id:d.id,status:d.status,error:d.error,invalid:d.invalid,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),m=s.routesById[h],y=F.useMemo(()=>{const v=m.options.component??s.options.defaultComponent;return v?at.jsx(v,{},r):at.jsx(FS,{})},[r,m.options.component,s.options.defaultComponent]);if(o._displayPending)throw s.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw s.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const v=m.options.pendingMinMs??s.options.defaultPendingMinMs;if(v){const d=s.getMatch(o.id);if(d&&!d._nonReactive.minPendingPromise){const b=pl();d._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),d._nonReactive.minPendingPromise=void 0},v)}}throw s.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return $n(me(o.error)),Jy(s,m,o.error);if(o.status==="redirected")throw $n(Me(o.error)),s.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return y}),FS=F.memo(function(){const u=qe(),s=F.useContext(ps),o=He({select:d=>d.matches.find(b=>b.id===s)?.routeId}),r=u.routesById[o],h=He({select:d=>{const S=d.matches.find(g=>g.id===s);return $n(S),S.globalNotFound}}),m=He({select:d=>{const b=d.matches,S=b.findIndex(g=>g.id===s);return b[S+1]?.id}}),y=u.options.defaultPendingComponent?at.jsx(u.options.defaultPendingComponent,{}):null;if(h)return Jy(u,r,void 0);if(!m)return null;const v=at.jsx(Py,{matchId:m});return o===je?at.jsx(F.Suspense,{fallback:y,children:v}):v});function WS(){const l=qe(),s=l.routesById[je].options.pendingComponent??l.options.defaultPendingComponent,o=s?at.jsx(s,{}):null,r=typeof document<"u"&&l.ssr?ml:F.Suspense,h=at.jsxs(r,{fallback:o,children:[at.jsx(KS,{}),at.jsx($S,{})]});return l.options.InnerWrap?at.jsx(l.options.InnerWrap,{children:h}):h}function $S(){const l=qe(),u=He({select:r=>r.matches[0]?.id}),s=He({select:r=>r.loadedAt}),o=u?at.jsx(Py,{matchId:u}):null;return at.jsx(ps.Provider,{value:u,children:l.options.disableGlobalCatchBoundary?o:at.jsx(vr,{getResetKey:()=>s,errorComponent:gr,onCatch:void 0,children:o})})}const yb=l=>new IS(l);class IS extends rS{constructor(u){super(u)}}typeof globalThis<"u"?(globalThis.createFileRoute=sy,globalThis.createLazyFileRoute=ry):typeof window<"u"&&(window.createFileRoute=sy,window.createLazyFileRoute=ry);function tb({router:l,children:u,...s}){Object.keys(s).length>0&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=at.jsx(Ky.Provider,{value:l,children:u});return l.options.Wrap?at.jsx(l.options.Wrap,{children:o}):o}function pb({router:l,...u}){return at.jsx(tb,{router:l,...u,children:at.jsx(WS,{})})}const eb="modulepreload",nb=function(l){return"/"+l},hy={},vb=function(u,s,o){let r=Promise.resolve();if(s&&s.length>0){let v=function(d){return Promise.all(d.map(b=>Promise.resolve(b).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),y=m?.nonce||m?.getAttribute("nonce");r=v(s.map(d=>{if(d=nb(d),d in hy)return;hy[d]=!0;const b=d.endsWith(".css"),S=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${S}`))return;const g=document.createElement("link");if(g.rel=b?"stylesheet":eb,b||(g.as="script"),g.crossOrigin="",g.href=d,y&&g.setAttribute("nonce",y),document.head.appendChild(g),b)return new Promise((_,E)=>{g.addEventListener("load",_),g.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${d}`)))})}))}function h(m){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=m,window.dispatchEvent(y),!y.defaultPrevented)throw m}return r.then(m=>{for(const y of m||[])y.status==="rejected"&&h(y.reason);return u().catch(h)})};export{FS as O,ub as Q,Ri as R,vb as _,My as a,ob as b,ab as c,rb as d,lb as e,mb as f,dg as g,sy as h,eS as i,at as j,Er as k,yb as l,sb as m,pb as n,ib as o,F as r,cb as u};