@ottocode/web-ui 0.1.213 → 0.1.216

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 eb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function nb(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:{}},yi={};var bm;function dg(){if(bm)return yi;bm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,r,h){var y=null;if(h!==void 0&&(y=""+h),r.key!==void 0&&(y=""+r.key),"key"in r){h={};for(var m in r)m!=="key"&&(h[m]=r[m])}else h=r;return r=h.ref,{$$typeof:l,type:o,key:y,ref:r!==void 0?r:null,props:h}}return yi.Fragment=u,yi.jsx=s,yi.jsxs=s,yi}var _m;function mg(){return _m||(_m=1,Do.exports=dg()),Do.exports}var at=mg(),Uo={exports:{}},st={};var Em;function yg(){if(Em)return st;Em=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"),y=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,L={};function q(T,j,K){this.props=T,this.context=j,this.refs=L,this.updater=K||M}q.prototype.isReactComponent={},q.prototype.setState=function(T,j){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,j,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Y(){}Y.prototype=q.prototype;function X(T,j,K){this.props=T,this.context=j,this.refs=L,this.updater=K||M}var Q=X.prototype=new Y;Q.constructor=X,C(Q,q.prototype),Q.isPureReactComponent=!0;var I=Array.isArray;function $(){}var G={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function Z(T,j,K){var P=K.ref;return{$$typeof:l,type:T,key:j,ref:P!==void 0?P:null,props:K}}function ut(T,j){return Z(T.type,j,T.props)}function tt(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function F(T){var j={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K){return j[K]})}var Et=/\/+/g;function bt(T,j){return typeof T=="object"&&T!==null&&T.key!=null?F(""+T.key):j.toString(36)}function Yt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then($,$):(T.status="pending",T.then(function(j){T.status==="pending"&&(T.status="fulfilled",T.value=j)},function(j){T.status==="pending"&&(T.status="rejected",T.reason=j)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function U(T,j,K,P,et){var rt=typeof T;(rt==="undefined"||rt==="boolean")&&(T=null);var pt=!1;if(T===null)pt=!0;else switch(rt){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(T.$$typeof){case l:case u:pt=!0;break;case g:return pt=T._init,U(pt(T._payload),j,K,P,et)}}if(pt)return et=et(T),pt=P===""?"."+bt(T,0):P,I(et)?(K="",pt!=null&&(K=pt.replace(Et,"$&/")+"/"),U(et,j,K,"",function(We){return We})):et!=null&&(tt(et)&&(et=ut(et,K+(et.key==null||T&&T.key===et.key?"":(""+et.key).replace(Et,"$&/")+"/")+pt)),j.push(et)),1;pt=0;var Ht=P===""?".":P+":";if(I(T))for(var Dt=0;Dt<T.length;Dt++)P=T[Dt],rt=Ht+bt(P,Dt),pt+=U(P,j,K,rt,et);else if(Dt=_(T),typeof Dt=="function")for(T=Dt.call(T),Dt=0;!(P=T.next()).done;)P=P.value,rt=Ht+bt(P,Dt++),pt+=U(P,j,K,rt,et);else if(rt==="object"){if(typeof T.then=="function")return U(Yt(T),j,K,P,et);throw j=String(T),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return pt}function V(T,j,K){if(T==null)return T;var P=[],et=0;return U(T,P,"","",function(rt){return j.call(K,rt,et++)}),P}function it(T){if(T._status===-1){var j=T._result;j=j(),j.then(function(K){(T._status===0||T._status===-1)&&(T._status=1,T._result=K)},function(K){(T._status===0||T._status===-1)&&(T._status=2,T._result=K)}),T._status===-1&&(T._status=0,T._result=j)}if(T._status===1)return T._result.default;throw T._result}var Rt=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=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(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},_t={map:V,forEach:function(T,j,K){V(T,function(){j.apply(this,arguments)},K)},count:function(T){var j=0;return V(T,function(){j++}),j},toArray:function(T){return V(T,function(j){return j})||[]},only:function(T){if(!tt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return st.Activity=S,st.Children=_t,st.Component=q,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=G,st.__COMPILER_RUNTIME={__proto__:null,c:function(T){return G.H.useMemoCache(T)}},st.cache=function(T){return function(){return T.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(T,j,K){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var P=C({},T.props),et=T.key;if(j!=null)for(rt in j.key!==void 0&&(et=""+j.key),j)!H.call(j,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&j.ref===void 0||(P[rt]=j[rt]);var rt=arguments.length-2;if(rt===1)P.children=K;else if(1<rt){for(var pt=Array(rt),Ht=0;Ht<rt;Ht++)pt[Ht]=arguments[Ht+2];P.children=pt}return Z(T.type,et,P)},st.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},st.createElement=function(T,j,K){var P,et={},rt=null;if(j!=null)for(P in j.key!==void 0&&(rt=""+j.key),j)H.call(j,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(et[P]=j[P]);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(T&&T.defaultProps)for(P in pt=T.defaultProps,pt)et[P]===void 0&&(et[P]=pt[P]);return Z(T,rt,et)},st.createRef=function(){return{current:null}},st.forwardRef=function(T){return{$$typeof:m,render:T}},st.isValidElement=tt,st.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:it}},st.memo=function(T,j){return{$$typeof:d,type:T,compare:j===void 0?null:j}},st.startTransition=function(T){var j=G.T,K={};G.T=K;try{var P=T(),et=G.S;et!==null&&et(K,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then($,Rt)}catch(rt){Rt(rt)}finally{j!==null&&K.types!==null&&(j.types=K.types),G.T=j}},st.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},st.use=function(T){return G.H.use(T)},st.useActionState=function(T,j,K){return G.H.useActionState(T,j,K)},st.useCallback=function(T,j){return G.H.useCallback(T,j)},st.useContext=function(T){return G.H.useContext(T)},st.useDebugValue=function(){},st.useDeferredValue=function(T,j){return G.H.useDeferredValue(T,j)},st.useEffect=function(T,j){return G.H.useEffect(T,j)},st.useEffectEvent=function(T){return G.H.useEffectEvent(T)},st.useId=function(){return G.H.useId()},st.useImperativeHandle=function(T,j,K){return G.H.useImperativeHandle(T,j,K)},st.useInsertionEffect=function(T,j){return G.H.useInsertionEffect(T,j)},st.useLayoutEffect=function(T,j){return G.H.useLayoutEffect(T,j)},st.useMemo=function(T,j){return G.H.useMemo(T,j)},st.useOptimistic=function(T,j){return G.H.useOptimistic(T,j)},st.useReducer=function(T,j,K){return G.H.useReducer(T,j,K)},st.useRef=function(T){return G.H.useRef(T)},st.useState=function(T){return G.H.useState(T)},st.useSyncExternalStore=function(T,j,K){return G.H.useSyncExternalStore(T,j,K)},st.useTransition=function(){return G.H.useTransition()},st.version="19.2.4",st}var Rm;function Ci(){return Rm||(Rm=1,Uo.exports=yg()),Uo.exports}var k=Ci();const Ri=hg(k);var Lo={exports:{}},pi={},wo={exports:{}},No={};var Tm;function pg(){return Tm||(Tm=1,(function(l){function u(U,V){var it=U.length;U.push(V);t:for(;0<it;){var Rt=it-1>>>1,_t=U[Rt];if(0<r(_t,V))U[Rt]=V,U[it]=_t,it=Rt;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 Rt=0,_t=U.length,T=_t>>>1;Rt<T;){var j=2*(Rt+1)-1,K=U[j],P=j+1,et=U[P];if(0>r(K,it))P<_t&&0>r(et,K)?(U[Rt]=et,U[P]=it,Rt=P):(U[Rt]=K,U[j]=it,Rt=j);else if(P<_t&&0>r(et,it))U[Rt]=et,U[P]=it,Rt=P;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 y=Date,m=y.now();l.unstable_now=function(){return y.now()-m}}var v=[],d=[],g=1,S=null,b=3,_=!1,M=!1,C=!1,L=!1,q=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Q(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 I(U){if(C=!1,Q(U),!M)if(s(v)!==null)M=!0,$||($=!0,F());else{var V=s(d);V!==null&&Yt(I,V.startTime-U)}}var $=!1,G=-1,H=5,Z=-1;function ut(){return L?!0:!(l.unstable_now()-Z<H)}function tt(){if(L=!1,$){var U=l.unstable_now();Z=U;var V=!0;try{t:{M=!1,C&&(C=!1,Y(G),G=-1),_=!0;var it=b;try{e:{for(Q(U),S=s(v);S!==null&&!(S.expirationTime>U&&ut());){var Rt=S.callback;if(typeof Rt=="function"){S.callback=null,b=S.priorityLevel;var _t=Rt(S.expirationTime<=U);if(U=l.unstable_now(),typeof _t=="function"){S.callback=_t,Q(U),V=!0;break e}S===s(v)&&o(v),Q(U)}else o(v);S=s(v)}if(S!==null)V=!0;else{var T=s(d);T!==null&&Yt(I,T.startTime-U),V=!1}}break t}finally{S=null,b=it,_=!1}V=void 0}}finally{V?F():$=!1}}}var F;if(typeof X=="function")F=function(){X(tt)};else if(typeof MessageChannel<"u"){var Et=new MessageChannel,bt=Et.port2;Et.port1.onmessage=tt,F=function(){bt.postMessage(null)}}else F=function(){q(tt,0)};function Yt(U,V){G=q(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"):H=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return b},l.unstable_next=function(U){switch(b){case 1:case 2:case 3:var V=3;break;default:V=b}var it=b;b=V;try{return U()}finally{b=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=b;b=U;try{return V()}finally{b=it}},l.unstable_scheduleCallback=function(U,V,it){var Rt=l.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?Rt+it:Rt):it=Rt,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:g++,callback:V,priorityLevel:U,startTime:it,expirationTime:_t,sortIndex:-1},it>Rt?(U.sortIndex=it,u(d,U),s(v)===null&&U===s(d)&&(C?(Y(G),G=-1):C=!0,Yt(I,it-Rt))):(U.sortIndex=_t,u(v,U),M||_||(M=!0,$||($=!0,F()))),U},l.unstable_shouldYield=ut,l.unstable_wrapCallback=function(U){var V=b;return function(){var it=b;b=V;try{return U.apply(this,arguments)}finally{b=it}}}})(No)),No}var Mm;function vg(){return Mm||(Mm=1,wo.exports=pg()),wo.exports}var Bo={exports:{}},ae={};var Om;function gg(){if(Om)return ae;Om=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 g=2;g<arguments.length;g++)d+="&args[]="+encodeURIComponent(arguments[g])}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,g){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:g}}var y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(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 g=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,g)},ae.flushSync=function(v){var d=y.T,g=o.p;try{if(y.T=null,o.p=2,v)return v()}finally{y.T=d,o.p=g,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 g=d.as,S=m(g,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;g==="style"?o.d.S(v,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:_}):g==="script"&&o.d.X(v,{crossOrigin:S,integrity:b,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 g=m(d.as,d.crossOrigin);o.d.M(v,{crossOrigin:g,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 g=d.as,S=m(g,d.crossOrigin);o.d.L(v,g,{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 g=m(d.as,d.crossOrigin);o.d.m(v,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:g,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,g){return y.H.useFormState(v,d,g)},ae.useFormStatus=function(){return y.H.useHostTransitionStatus()},ae.version="19.2.4",ae}var Cm;function ry(){if(Cm)return Bo.exports;Cm=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=gg(),Bo.exports}var Am;function Sg(){if(Am)return pi;Am=1;var l=vg(),u=Ci(),s=ry();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 y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(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 g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),ut=Symbol.for("react.memo_cache_sentinel"),tt=Symbol.iterator;function F(t){return t===null||typeof t!="object"?null:(t=tt&&t[tt]||t["@@iterator"],typeof t=="function"?t:null)}var Et=Symbol.for("react.client.reference");function bt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Et?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case q:return"Profiler";case L:return"StrictMode";case I:return"Suspense";case $:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case X:return t.displayName||"Context";case Y:return(t._context.displayName||"Context")+".Consumer";case Q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case G:return e=t.displayName||null,e!==null?e:bt(t.type)||"Memo";case H: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},Rt=[],_t=-1;function T(t){return{current:t}}function j(t){0>_t||(t.current=Rt[_t],Rt[_t]=null,_t--)}function K(t,e){_t++,Rt[_t]=t.current,t.current=e}var P=T(null),et=T(null),rt=T(null),pt=T(null);function Ht(t,e){switch(K(rt,e),K(et,t),K(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Xd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Xd(e),t=Vd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(P),K(P,t)}function Dt(){j(P),j(et),j(rt)}function We(t){t.memoizedState!==null&&K(pt,t);var e=P.current,n=Vd(e,t.type);e!==n&&(K(et,t),K(P,n))}function $e(t){et.current===t&&(j(P),j(et)),pt.current===t&&(j(pt),fi._currentValue=it)}var _n,bl;function Ve(t){if(_n===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);_n=e&&e[1]||"",bl=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+_n+t+bl}var _l=!1;function Aa(t,e){if(!t||_l)return"";_l=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(D){var z=D}Reflect.construct(t,[],B)}else{try{B.call()}catch(D){z=D}t.call(B.prototype)}}else{try{throw Error()}catch(D){z=D}(B=t())&&typeof B.catch=="function"&&B.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 E=f.split(`
4
+ `),x=p.split(`
5
+ `);for(i=a=0;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;for(;i<x.length&&!x[i].includes("DetermineComponentFrameRoot");)i++;if(a===E.length||i===x.length)for(a=E.length-1,i=x.length-1;1<=a&&0<=i&&E[a]!==x[i];)i--;for(;1<=a&&0<=i;a--,i--)if(E[a]!==x[i]){if(a!==1||i!==1)do if(a--,i--,0>i||E[a]!==x[i]){var w=`
6
+ `+E[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{_l=!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,El=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,Er=l.unstable_IdlePriority,Jy=l.log,ky=l.unstable_setDisableYieldValue,Rl=null,me=null;function En(t){if(typeof Jy=="function"&&ky(t),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(Rl,t)}catch{}}var ye=Math.clz32?Math.clz32:$y,Fy=Math.log,Wy=Math.LN2;function $y(t){return t>>>=0,t===0?32:31-(Fy(t)/Wy|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 Tl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Iy(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 Rr(){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 Ml(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function tp(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,E=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var w=31-ye(n),B=1<<w;p[w]=0,E[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&=~B}a!==0&&Tr(t,a,0),c!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function Tr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ye(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Mr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ye(n),i=1<<a;i&e|t[a]&e&&(t[a]|=e),n&=~i}}function Or(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 Cr(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:dm(t.type))}function Ar(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,ep="__reactListeners$"+Rn,np="__reactHandles$"+Rn,xr="__reactResources$"+Rn,Ol="__reactMarker$"+Rn;function Es(t){delete t[Wt],delete t[se],delete t[_s],delete t[ep],delete t[np]}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=Wd(t);t!==null;){if(n=t[Wt])return n;t=Wd(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 Cl(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[xr];return e||(e=t[xr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Ol]=!0}var zr=new Set,Dr={};function ea(t,e){La(t,e),La(t+"Capture",e)}function La(t,e){for(Dr[t]=e,t=0;t<e.length;t++)zr.add(e[t])}var ap=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]*$"),Ur={},Lr={};function lp(t){return In.call(Lr,t)?!0:In.call(Ur,t)?!1:ap.test(t)?Lr[t]=!0:(Ur[t]=!0,!1)}function Bi(t,e,n){if(lp(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 Me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function wr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ip(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 Rs(t){if(!t._valueTracker){var e=wr(t)?"checked":"value";t._valueTracker=ip(t,e,""+t[e])}}function Nr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=wr(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 up=/[\n"\\]/g;function Oe(t){return t.replace(up,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=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Ms(t,f,Me(e)):n!=null?Ms(t,f,Me(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=""+Me(p):t.removeAttribute("name")}function Br(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)){Rs(t);return}n=n!=null?""+Me(n):"",e=e!=null?""+Me(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),Rs(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=""+Me(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 jr(t,e,n){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Me(n):""}function Hr(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=Me(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Rs(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 sp=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 qr(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||sp.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Qr(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&&qr(t,i,a)}else for(var c in e)e.hasOwnProperty(c)&&qr(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 cp=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"]]),op=/^[\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 op.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 Yr(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="'+Oe(""+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&&Nr(a)}break t;case"textarea":jr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&wa(t,!!n.multiple,e,!1)}}}var xs=!1;function Gr(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,Yr(e),t)))for(e=0;e<t.length;e++)Yr(t[e])}}function Al(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 xl={};Object.defineProperty(xl,"passive",{get:function(){zs=!0}}),window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{zs=!1}var Tn=null,Ds=null,Qi=null;function Xr(){if(Qi)return Qi;var t,e=Ds,n=e.length,a,i="value"in Tn?Tn.value:Tn.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 Vr(){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:Vr,this.isPropagationStopped=Vr,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),zl=S({},na,{view:0,detail:0}),rp=ce(zl),Us,Ls,Dl,Vi=S({},zl,{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!==Dl&&(Dl&&t.type==="mousemove"?(Us=t.screenX-Dl.screenX,Ls=t.screenY-Dl.screenY):Ls=Us=0,Dl=t),Us)},movementY:function(t){return"movementY"in t?t.movementY:Ls}}),Kr=ce(Vi),fp=S({},Vi,{dataTransfer:0}),hp=ce(fp),dp=S({},zl,{relatedTarget:0}),ws=ce(dp),mp=S({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),yp=ce(mp),pp=S({},na,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vp=ce(pp),gp=S({},na,{data:0}),Zr=ce(gp),Sp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bp={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"},_p={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ep(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=_p[t])?!!e[t]:!1}function Ns(){return Ep}var Rp=S({},zl,{key:function(t){if(t.key){var e=Sp[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"?bp[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}}),Tp=ce(Rp),Mp=S({},Vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pr=ce(Mp),Op=S({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ns}),Cp=ce(Op),Ap=S({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),xp=ce(Ap),zp=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}),Dp=ce(zp),Up=S({},na,{newState:0,oldState:0}),Lp=ce(Up),wp=[9,13,27,32],Bs=nn&&"CompositionEvent"in window,Ul=null;nn&&"documentMode"in document&&(Ul=document.documentMode);var Np=nn&&"TextEvent"in window&&!Ul,Jr=nn&&(!Bs||Ul&&8<Ul&&11>=Ul),kr=" ",Fr=!1;function Wr(t,e){switch(t){case"keyup":return wp.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $r(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ha=!1;function Bp(t,e){switch(t){case"compositionend":return $r(e);case"keypress":return e.which!==32?null:(Fr=!0,kr);case"textInput":return t=e.data,t===kr&&Fr?null:t;default:return null}}function jp(t,e){if(Ha)return t==="compositionend"||!Bs&&Wr(t,e)?(t=Xr(),Qi=Ds=Tn=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 Jr&&e.locale!=="ko"?null:e.data;default:return null}}var Hp={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 Ir(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Hp[t.type]:e==="textarea"}function tf(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 Ll=null,wl=null;function qp(t){jd(t,0)}function Ki(t){var e=Cl(t);if(Nr(e))return t}function ef(t,e){if(t==="change")return e}var nf=!1;if(nn){var js;if(nn){var Hs="oninput"in document;if(!Hs){var af=document.createElement("div");af.setAttribute("oninput","return;"),Hs=typeof af.oninput=="function"}js=Hs}else js=!1;nf=js&&(!document.documentMode||9<document.documentMode)}function lf(){Ll&&(Ll.detachEvent("onpropertychange",uf),wl=Ll=null)}function uf(t){if(t.propertyName==="value"&&Ki(wl)){var e=[];tf(e,wl,t,As(t)),Gr(qp,e)}}function Qp(t,e,n){t==="focusin"?(lf(),Ll=e,wl=n,Ll.attachEvent("onpropertychange",uf)):t==="focusout"&&lf()}function Yp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ki(wl)}function Gp(t,e){if(t==="click")return Ki(e)}function Xp(t,e){if(t==="input"||t==="change")return Ki(e)}function Vp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:Vp;function Nl(t,e){if(pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),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)||!pe(t[i],e[i]))return!1}return!0}function sf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function cf(t,e){var n=sf(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=sf(n)}}function of(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?of(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function rf(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 Kp=nn&&"documentMode"in document&&11>=document.documentMode,qa=null,Qs=null,Bl=null,Ys=!1;function ff(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}),Bl&&Nl(Bl,a)||(Bl=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={},hf={};nn&&(hf=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 hf)return Gs[t]=e[n];return t}var df=la("animationend"),mf=la("animationiteration"),yf=la("animationstart"),Zp=la("transitionrun"),Pp=la("transitionstart"),Jp=la("transitioncancel"),pf=la("transitionend"),vf=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){vf.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)},Ce=[],Ya=0,Vs=0;function Pi(){for(var t=Ya,e=Vs=Ya=0;e<t;){var n=Ce[e];Ce[e++]=null;var a=Ce[e];Ce[e++]=null;var i=Ce[e];Ce[e++]=null;var c=Ce[e];if(Ce[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&&gf(n,i,c)}}function Ji(t,e,n,a){Ce[Ya++]=t,Ce[Ya++]=e,Ce[Ya++]=n,Ce[Ya++]=a,Vs|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ks(t,e,n,a){return Ji(t,e,n,a),ki(t)}function ia(t,e){return Ji(t,null,null,e),ki(t)}function gf(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-ye(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<li)throw li=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 kp(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 ve(t,e,n,a){return new kp(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=ve(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 Sf(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=tg(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=ve(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 q:return t=ve(12,n,e,i|2),t.elementType=q,t.lanes=c,t;case I:return t=ve(13,n,e,i),t.elementType=I,t.lanes=c,t;case $:return t=ve(19,n,e,i),t.elementType=$,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case Y:f=9;break t;case Q:f=11;break t;case G:f=14;break t;case H:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ve(f,n,e,i),e.elementType=t,e.type=a,e.lanes=c,e}function ua(t,e,n,a){return t=ve(7,t,a,e),t.lanes=n,t}function Ps(t,e,n){return t=ve(6,t,null,e),t.lanes=n,t}function bf(t){var e=ve(18,null,null,0);return e.stateNode=t,e}function Js(t,e,n){return e=ve(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var _f=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var n=_f.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ie(e)},_f.set(t,e),e)}return{value:t,source:e,stack:Ie(e)}}var Xa=[],Va=0,Wi=null,jl=0,xe=[],ze=0,Mn=null,Ke=1,Ze="";function ln(t,e){Xa[Va++]=jl,Xa[Va++]=Wi,Wi=t,jl=e}function Ef(t,e,n){xe[ze++]=Ke,xe[ze++]=Ze,xe[ze++]=Mn,Mn=t;var a=Ke;t=Ze;var i=32-ye(a)-1;a&=~(1<<i),n+=1;var c=32-ye(e)+i;if(30<c){var f=i-i%5;c=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Ke=1<<32-ye(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),Ef(t,1,0))}function Fs(t){for(;t===Wi;)Wi=Xa[--Va],Xa[Va]=null,jl=Xa[--Va],Xa[Va]=null;for(;t===Mn;)Mn=xe[--ze],xe[ze]=null,Ze=xe[--ze],xe[ze]=null,Ke=xe[--ze],xe[ze]=null}function Rf(t,e){xe[ze++]=Ke,xe[ze++]=Ze,xe[ze++]=Mn,Ke=e.id,Ze=e.overflow,Mn=t}var $t=null,Ut=null,yt=!1,On=null,De=!1,Ws=Error(o(519));function Cn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hl(Ae(e,t)),Ws}function Tf(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<ui.length;n++)ht(ui[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),Br(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),Hr(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||Yd(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||Cn(t,!0)}function Mf(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:$t=$t.return}}function Ka(t){if(t!==$t)return!1;if(!yt)return Mf(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&&Cn(t),Mf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Fd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Fd(t)}else e===27?(e=Ut,Yn(t.type)?(t=_o,_o=null,Ut=t):Ut=e):Ut=$t?Le(t.stateNode.nextSibling):null;return!0}function sa(){Ut=$t=null,yt=!1}function $s(){var t=On;return t!==null&&(he===null?he=t:he.push.apply(he,t),On=null),t}function Hl(t){On===null?On=[t]:On.push(t)}var Is=T(null),ca=null,un=null;function An(t,e,n){K(Is,e._currentValue),e._currentValue=n}function sn(t){t._currentValue=Is.current,j(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 E=0;E<e.length;E++)if(p.context===e[E]){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;pe(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(fi):t=[fi])}i=i.return}t!==null&&ec(e,t,n,a),e.flags|=262144}function $i(t){for(t=t.firstContext;t!==null;){if(!pe(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 Of(ca,t)}function Ii(t,e){return ca===null&&oa(t),Of(t,e)}function Of(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 Fp=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()})}},Wp=l.unstable_scheduleCallback,$p=l.unstable_NormalPriority,Xt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nc(){return{controller:new Fp,data:new Map,refCount:0}}function ql(t){t.refCount--,t.refCount===0&&Wp($p,function(){t.controller.abort()})}var Ql=null,ac=0,Pa=0,Ja=null;function Ip(t,e){if(Ql===null){var n=Ql=[];ac=0,Pa=uo(),Ja={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ac++,e.then(Cf,Cf),e}function Cf(){if(--ac===0&&Ql!==null){Ja!==null&&(Ja.status="fulfilled");var t=Ql;Ql=null,Pa=0,Ja=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function tv(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 Af=U.S;U.S=function(t,e){fd=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Ip(t,e),Af!==null&&Af(t,e)};var ra=T(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 xf(){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 zf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Df(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,Lf(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,Lf(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 Uf(){if(ha===null)throw Error(o(459));var t=ha;return ha=null,t}function Lf(t){if(t===ka||t===eu)throw Error(o(483))}var Fa=null,Yl=0;function au(t){var e=Yl;return Yl+=1,Fa===null&&(Fa=[]),Df(Fa,t,e)}function Gl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function lu(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function wf(t){function e(O,R){if(t){var A=O.deletions;A===null?(O.deletions=[R],O.flags|=16):A.push(R)}}function n(O,R){if(!t)return null;for(;R!==null;)e(O,R),R=R.sibling;return null}function a(O){for(var R=new Map;O!==null;)O.key!==null?R.set(O.key,O):R.set(O.index,O),O=O.sibling;return R}function i(O,R){return O=an(O,R),O.index=0,O.sibling=null,O}function c(O,R,A){return O.index=A,t?(A=O.alternate,A!==null?(A=A.index,A<R?(O.flags|=67108866,R):A):(O.flags|=67108866,R)):(O.flags|=1048576,R)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function p(O,R,A,N){return R===null||R.tag!==6?(R=Ps(A,O.mode,N),R.return=O,R):(R=i(R,A),R.return=O,R)}function E(O,R,A,N){var nt=A.type;return nt===C?w(O,R,A.props.children,N,A.key):R!==null&&(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===H&&fa(nt)===R.type)?(R=i(R,A.props),Gl(R,A),R.return=O,R):(R=Fi(A.type,A.key,A.props,null,O.mode,N),Gl(R,A),R.return=O,R)}function x(O,R,A,N){return R===null||R.tag!==4||R.stateNode.containerInfo!==A.containerInfo||R.stateNode.implementation!==A.implementation?(R=Js(A,O.mode,N),R.return=O,R):(R=i(R,A.children||[]),R.return=O,R)}function w(O,R,A,N,nt){return R===null||R.tag!==7?(R=ua(A,O.mode,N,nt),R.return=O,R):(R=i(R,A),R.return=O,R)}function B(O,R,A){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Ps(""+R,O.mode,A),R.return=O,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case _:return A=Fi(R.type,R.key,R.props,null,O.mode,A),Gl(A,R),A.return=O,A;case M:return R=Js(R,O.mode,A),R.return=O,R;case H:return R=fa(R),B(O,R,A)}if(Yt(R)||F(R))return R=ua(R,O.mode,A,null),R.return=O,R;if(typeof R.then=="function")return B(O,au(R),A);if(R.$$typeof===X)return B(O,Ii(O,R),A);lu(O,R)}return null}function z(O,R,A,N){var nt=R!==null?R.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:p(O,R,""+A,N);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?E(O,R,A,N):null;case M:return A.key===nt?x(O,R,A,N):null;case H:return A=fa(A),z(O,R,A,N)}if(Yt(A)||F(A))return nt!==null?null:w(O,R,A,N,null);if(typeof A.then=="function")return z(O,R,au(A),N);if(A.$$typeof===X)return z(O,R,Ii(O,A),N);lu(O,A)}return null}function D(O,R,A,N,nt){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return O=O.get(A)||null,p(R,O,""+N,nt);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case _:return O=O.get(N.key===null?A:N.key)||null,E(R,O,N,nt);case M:return O=O.get(N.key===null?A:N.key)||null,x(R,O,N,nt);case H:return N=fa(N),D(O,R,A,N,nt)}if(Yt(N)||F(N))return O=O.get(A)||null,w(R,O,N,nt,null);if(typeof N.then=="function")return D(O,R,A,au(N),nt);if(N.$$typeof===X)return D(O,R,A,Ii(R,N),nt);lu(R,N)}return null}function J(O,R,A,N){for(var nt=null,vt=null,W=R,ot=R=0,mt=null;W!==null&&ot<A.length;ot++){W.index>ot?(mt=W,W=null):mt=W.sibling;var gt=z(O,W,A[ot],N);if(gt===null){W===null&&(W=mt);break}t&&W&&gt.alternate===null&&e(O,W),R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt,W=mt}if(ot===A.length)return n(O,W),yt&&ln(O,ot),nt;if(W===null){for(;ot<A.length;ot++)W=B(O,A[ot],N),W!==null&&(R=c(W,R,ot),vt===null?nt=W:vt.sibling=W,vt=W);return yt&&ln(O,ot),nt}for(W=a(W);ot<A.length;ot++)mt=D(W,O,ot,A[ot],N),mt!==null&&(t&&mt.alternate!==null&&W.delete(mt.key===null?ot:mt.key),R=c(mt,R,ot),vt===null?nt=mt:vt.sibling=mt,vt=mt);return t&&W.forEach(function(Zn){return e(O,Zn)}),yt&&ln(O,ot),nt}function lt(O,R,A,N){if(A==null)throw Error(o(151));for(var nt=null,vt=null,W=R,ot=R=0,mt=null,gt=A.next();W!==null&&!gt.done;ot++,gt=A.next()){W.index>ot?(mt=W,W=null):mt=W.sibling;var Zn=z(O,W,gt.value,N);if(Zn===null){W===null&&(W=mt);break}t&&W&&Zn.alternate===null&&e(O,W),R=c(Zn,R,ot),vt===null?nt=Zn:vt.sibling=Zn,vt=Zn,W=mt}if(gt.done)return n(O,W),yt&&ln(O,ot),nt;if(W===null){for(;!gt.done;ot++,gt=A.next())gt=B(O,gt.value,N),gt!==null&&(R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return yt&&ln(O,ot),nt}for(W=a(W);!gt.done;ot++,gt=A.next())gt=D(W,O,ot,gt.value,N),gt!==null&&(t&&gt.alternate!==null&&W.delete(gt.key===null?ot:gt.key),R=c(gt,R,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return t&&W.forEach(function(fg){return e(O,fg)}),yt&&ln(O,ot),nt}function At(O,R,A,N){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;R!==null;){if(R.key===nt){if(nt=A.type,nt===C){if(R.tag===7){n(O,R.sibling),N=i(R,A.props.children),N.return=O,O=N;break t}}else if(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===H&&fa(nt)===R.type){n(O,R.sibling),N=i(R,A.props),Gl(N,A),N.return=O,O=N;break t}n(O,R);break}else e(O,R);R=R.sibling}A.type===C?(N=ua(A.props.children,O.mode,N,A.key),N.return=O,O=N):(N=Fi(A.type,A.key,A.props,null,O.mode,N),Gl(N,A),N.return=O,O=N)}return f(O);case M:t:{for(nt=A.key;R!==null;){if(R.key===nt)if(R.tag===4&&R.stateNode.containerInfo===A.containerInfo&&R.stateNode.implementation===A.implementation){n(O,R.sibling),N=i(R,A.children||[]),N.return=O,O=N;break t}else{n(O,R);break}else e(O,R);R=R.sibling}N=Js(A,O.mode,N),N.return=O,O=N}return f(O);case H:return A=fa(A),At(O,R,A,N)}if(Yt(A))return J(O,R,A,N);if(F(A)){if(nt=F(A),typeof nt!="function")throw Error(o(150));return A=nt.call(A),lt(O,R,A,N)}if(typeof A.then=="function")return At(O,R,au(A),N);if(A.$$typeof===X)return At(O,R,Ii(O,A),N);lu(O,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,R!==null&&R.tag===6?(n(O,R.sibling),N=i(R,A),N.return=O,O=N):(n(O,R),N=Ps(A,O.mode,N),N.return=O,O=N),f(O)):n(O,R)}return function(O,R,A,N){try{Yl=0;var nt=At(O,R,A,N);return Fa=null,nt}catch(W){if(W===ka||W===eu)throw W;var vt=ve(29,W,null,O.mode);return vt.lanes=N,vt.return=O,vt}}}var da=wf(!0),Nf=wf(!1),xn=!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 zn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Dn(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),gf(t,null,n),e}return Ji(t,a,e,n),ki(t)}function Xl(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,Mr(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 Vl(){if(oc){var t=Ja;if(t!==null)throw t}}function Kl(t,e,n,a){oc=!1;var i=t.updateQueue;xn=!1;var c=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var E=p,x=E.next;E.next=null,f===null?c=x:f.next=x,f=E;var w=t.alternate;w!==null&&(w=w.updateQueue,p=w.lastBaseUpdate,p!==f&&(p===null?w.firstBaseUpdate=x:p.next=x,w.lastBaseUpdate=E))}if(c!==null){var B=i.baseState;f=0,w=x=E=null,p=c;do{var z=p.lane&-536870913,D=z!==p.lane;if(D?(dt&z)===z:(a&z)===z){z!==0&&z===Pa&&(oc=!0),w!==null&&(w=w.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var J=t,lt=p;z=e;var At=n;switch(lt.tag){case 1:if(J=lt.payload,typeof J=="function"){B=J.call(At,B,z);break t}B=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=lt.payload,z=typeof J=="function"?J.call(At,B,z):J,z==null)break t;B=S({},B,z);break t;case 2:xn=!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,E=B):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&&(E=B),i.baseState=E,i.firstBaseUpdate=x,i.lastBaseUpdate=w,c===null&&(i.shared.lanes=0),Bn|=f,t.lanes=f,t.memoizedState=B}}function Bf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function jf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Bf(n[t],e)}var Wa=T(null),iu=T(0);function Hf(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,j(Wa),j(iu)}var ge=T(null),Ue=null;function Un(t){var e=t.alternate;K(qt,qt.current&1),K(ge,t),Ue===null&&(e===null||Wa.current!==null||e.memoizedState!==null)&&(Ue=t)}function hc(t){K(qt,qt.current),K(ge,t),Ue===null&&(Ue=t)}function qf(t){t.tag===22?(K(qt,qt.current),K(ge,t),Ue===null&&(Ue=t)):Ln()}function Ln(){K(qt,qt.current),K(ge,ge.current)}function Se(t){j(ge),Ue===t&&(Ue=null),j(qt)}var qt=T(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,Zl=0,Ia=null,ev=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(!pe(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?Eh:xc,ma=!1,c=n(a,i),ma=!1,$a&&(c=Yf(e,n,a,i)),Qf(t),c}function Qf(t){U.H=kl;var e=Ot!==null&&Ot.next!==null;if(cn=0,Vt=Ot=ct=null,su=!1,Zl=0,Ia=null,e)throw Error(o(300));t===null||Kt||(t=t.dependencies,t!==null&&$i(t)&&(Kt=!0))}function Yf(t,e,n,a){ct=t;var i=0;do{if($a&&(Ia=null),Zl=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=Rh,c=e(n,a)}while($a);return c}function nv(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Pl(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,Zl=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 Pl(t){var e=Zl;return Zl+=1,Ia===null&&(Ia=[]),t=Df(Ia,t,e),e=ct,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Eh:xc),t}function ru(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Pl(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,E=null,x=e,w=!1;do{var B=x.lane&-536870913;if(B!==x.lane?(dt&B)===B:(cn&B)===B){var z=x.revertLane;if(z===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),B===Pa&&(w=!0);else if((cn&z)===z){x=x.next,z===Pa&&(w=!0);continue}else B={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},E===null?(p=E=B,f=c):E=E.next=B,ct.lanes|=z,Bn|=z;B=x.action,ma&&n(c,B),c=x.hasEagerState?x.eagerState:n(c,B)}else z={lane:B,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},E===null?(p=E=z,f=c):E=E.next=z,ct.lanes|=B,Bn|=B;x=x.next}while(x!==null&&x!==e);if(E===null?f=c:E.next=p,!pe(c,t.memoizedState)&&(Kt=!0,w&&(n=Ja,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=E,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);pe(c,e.memoizedState)||(Kt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function Gf(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=!pe((Ot||i).memoizedState,n);if(f&&(i.memoizedState=n,Kt=!0),i=i.queue,Rc(Kf.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},Vf.bind(null,a,i,n,e),null),zt===null)throw Error(o(349));c||(cn&127)!==0||Xf(a,e,n)}return n}function Xf(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 Vf(t,e,n,a){e.value=n,e.getSnapshot=a,Zf(e)&&Pf(t)}function Kf(t,e,n){return n(function(){Zf(e)&&Pf(t)})}function Zf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function Pf(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){En(!0);try{n()}finally{En(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:t},e}function Jf(t,e,n,a){return t.baseState=n,Sc(t,Ot,typeof a=="function"?a:on)}function av(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,kf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function kf(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),E=U.S;E!==null&&E(f,p),Ff(t,e,p)}catch(x){Ec(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),U.T=c}}else try{c=n(i,a),Ff(t,e,c)}catch(x){Ec(t,e,x)}}function Ff(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Wf(t,e,a)},function(a){return Ec(t,e,a)}):Wf(t,e,n)}function Wf(t,e,n){e.status="fulfilled",e.value=n,$f(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,kf(t,n)))}function Ec(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,$f(e),e=e.next;while(e!==a)}t.action=null}function $f(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function If(t,e){return e}function th(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=De;i.nodeType!==8;){if(!c){i=null;break e}if(i=Le(i.nextSibling),i===null){i=null;break e}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){Ut=Le(i.nextSibling),a=i.data==="F!";break t}}Cn(a)}a=!1}a&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:If,lastRenderedState:e},n.queue=a,n=Sh.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=av.bind(null,ct,i,c,n),i.dispatch=n,a.memoizedState=t,[e,n,!1]}function eh(t){var e=Qt();return nh(e,Ot,t)}function nh(t,e,n){if(e=Sc(t,e,If)[0],t=fu(on)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Pl(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},lv.bind(null,i,n),null)),[a,c,t]}function lv(t,e){t.action=e}function ah(t){var e=Qt(),n=Ot;if(n!==null)return nh(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 lh(){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 ih(t,e){hu(8390656,8,t,e)}function Rc(t,e){du(2048,8,t,e)}function iv(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 uh(t){var e=Qt().memoizedState;return iv({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function sh(t,e){return du(4,2,t,e)}function ch(t,e){return du(4,4,t,e)}function oh(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 rh(t,e,n){n=n!=null?n.concat([t]):null,du(4,4,oh.bind(null,e,t),n)}function Tc(){}function fh(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 hh(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){En(!0);try{t()}finally{En(!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=dd(),ct.lanes|=t,Bn|=t,n)}function dh(t,e,n,a){return pe(n,e)?n:Wa.current!==null?(t=Mc(t,n,a),pe(t,e)||(Kt=!0),t):(cn&42)===0||(cn&1073741824)!==0&&(dt&261930)===0?(Kt=!0,t.memoizedState=n):(t=dd(),ct.lanes|=t,Bn|=t,e)}function mh(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 E=i(),x=U.S;if(x!==null&&x(p,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var w=tv(E,a);Jl(t,e,w,Ee(t))}else Jl(t,e,a,Ee(t))}catch(B){Jl(t,e,{then:function(){},status:"rejected",reason:B},Ee())}finally{V.p=c,f!==null&&p.types!==null&&(f.types=p.types),U.T=f}}function uv(){}function Oc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var i=yh(t).queue;mh(t,i,e,it,n===null?uv:function(){return ph(t),n(a)})}function yh(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 ph(t){var e=yh(t);e.next===null&&(e=t.alternate.memoizedState),Jl(t,e.next.queue,{},Ee())}function Cc(){return It(fi)}function vh(){return Qt().memoizedState}function gh(){return Qt().memoizedState}function sv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ee();t=zn(n);var a=Dn(e,t,n);a!==null&&(de(a,e,n),Xl(a,e,n)),e={cache:nc()},t.payload=e;return}e=e.return}}function cv(t,e,n){var a=Ee();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mu(t)?bh(e,n):(n=Ks(t,e,n,a),n!==null&&(de(n,t,a),_h(n,e,a)))}function Sh(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))bh(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,pe(p,f))return Ji(t,e,i,0),zt===null&&Pi(),!1}catch{}if(n=Ks(t,e,i,a),n!==null)return de(n,t,a),_h(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 bh(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 _h(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Mr(t,n)}}var kl={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};kl.useEffectEvent=Bt;var Eh={readContext:It,use:ru,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:ih,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,hu(4194308,4,oh.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){En(!0);try{t()}finally{En(!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){En(!0);try{n(e)}finally{En(!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=cv.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=Sh.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=mh.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||Xf(a,e,n)}i.memoizedState=n;var c={value:n,getSnapshot:e};return i.queue=c,ih(Kf.bind(null,a,c,t),[t]),a.flags|=2048,tl(9,{destroy:void 0},Vf.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-ye(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=cu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=ev++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cc,useFormState:th,useActionState:th,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=sv.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:fh,useContext:It,useEffect:Rc,useImperativeHandle:rh,useInsertionEffect:sh,useLayoutEffect:ch,useMemo:hh,useReducer:fu,useRef:lh,useState:function(){return fu(on)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=Qt();return dh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=fu(on)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Pl(t),e]},useSyncExternalStore:Gf,useId:vh,useHostTransitionStatus:Cc,useFormState:eh,useActionState:eh,useOptimistic:function(t,e){var n=Qt();return Jf(n,Ot,t,e)},useMemoCache:gc,useCacheRefresh:gh};xc.useEffectEvent=uh;var Rh={readContext:It,use:ru,useCallback:fh,useContext:It,useEffect:Rc,useImperativeHandle:rh,useInsertionEffect:sh,useLayoutEffect:ch,useMemo:hh,useReducer:bc,useRef:lh,useState:function(){return bc(on)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=Qt();return Ot===null?Mc(n,t,e):dh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=bc(on)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Pl(t),e]},useSyncExternalStore:Gf,useId:vh,useHostTransitionStatus:Cc,useFormState:ah,useActionState:ah,useOptimistic:function(t,e){var n=Qt();return Ot!==null?Jf(n,Ot,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:gc,useCacheRefresh:gh};Rh.useEffectEvent=uh;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=zn(a);i.payload=e,n!=null&&(i.callback=n),e=Dn(t,i,a),e!==null&&(de(e,t,a),Xl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ee(),i=zn(a);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Dn(t,i,a),e!==null&&(de(e,t,a),Xl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ee(),a=zn(n);a.tag=2,e!=null&&(a.callback=e),e=Dn(t,a,n),e!==null&&(de(e,t,n),Xl(e,t,n))}};function Th(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?!Nl(n,a)||!Nl(i,c):!0}function Mh(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 Oh(t){Zi(t)}function Ch(t){console.error(t)}function Ah(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 xh(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=zn(n),n.tag=3,n.payload={element:null},n.callback=function(){yu(t,e)},n}function zh(t){return t=zn(t),t.tag=3,t}function Dh(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(){xh(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){xh(e,n,a),typeof i!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var p=a.stack;this.componentDidCatch(a.value,{componentStack:p!==null?p:""})})}function ov(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=ge.current,n!==null){switch(n.tag){case 31:case 13:return Ue===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=ge.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,a!==Ws&&(t=Error(o(422),{cause:a}),Hl(Ae(t,n)))):(a!==Ws&&(e=Error(o(423),{cause:a}),Hl(Ae(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,a=Ae(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=Ae(c,n),ai===null?ai=[c]:ai.push(c),jt!==4&&(jt=2),e===null)return!0;a=Ae(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"&&(jn===null||!jn.has(c))))return n.flags|=65536,i&=-i,n.lanes|=i,i=zh(i),Dh(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?Nf(e,null,n,a):da(e,t.child,n,a)}function Uh(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 Lh(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,wh(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:Nl,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 wh(t,e,n,a,i){if(t!==null){var c=t.memoizedProps;if(Nl(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 Nh(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 Bh(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?Hf(e,c):rc(),qf(e);else return a=e.lanes=536870912,Bh(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(tu(e,c.cachePool),Hf(e,c),Ln(),e.memoizedState=null):(t!==null&&tu(e,null),rc(),Ln());return te(t,e,i,n),e.child}function Fl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Bh(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(),qf(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 jh(t,e,n){return da(e,t.child,null,n),t=pu(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function rv(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,Fl(null,t);if(hc(e),(t=Ut)?(t=kd(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Mn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=bf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw Cn(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=jh(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=Or(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,ia(t,f),de(a,t,f),Lc;Cu(),e=jh(t,e,n)}else t=c.treeContext,Ut=Le(f.nextSibling),$t=e,yt=!0,On=null,De=!1,t!==null&&Rf(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 Hh(t,e,n,a,i,c){return oa(e),e.updateQueue=null,n=Yf(e,a,n,i),Qf(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 qh(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),Kl(e,a,c,i),Vl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var p=e.memoizedProps,E=ya(n,p);c.props=E;var x=c.context,w=n.contextType;f=Ga,typeof w=="object"&&w!==null&&(f=It(w));var B=n.getDerivedStateFromProps;w=typeof B=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,w||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||x!==f)&&Mh(e,c,a,f),xn=!1;var z=e.memoizedState;c.state=z,Kl(e,a,c,i),Vl(),x=e.memoizedState,p||z!==x||xn?(typeof B=="function"&&(zc(e,n,B,a),x=e.memoizedState),(E=xn||Th(e,n,E,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=E):(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,B=e.pendingProps,z=c.context,x=n.contextType,E=Ga,typeof x=="object"&&x!==null&&(E=It(x)),p=n.getDerivedStateFromProps,(x=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==B||z!==E)&&Mh(e,c,a,E),xn=!1,z=e.memoizedState,c.state=z,Kl(e,a,c,i),Vl();var D=e.memoizedState;f!==B||z!==D||xn||t!==null&&t.dependencies!==null&&$i(t.dependencies)?(typeof p=="function"&&(zc(e,n,p,a),D=e.memoizedState),(w=xn||Th(e,n,w,a,z,D,E)||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,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,D,E)),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=E,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 Qh(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:xf()}}function jc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=_e),t}function Yh(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?Un(e):Ln(),(t=Ut)?(t=kd(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Mn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=bf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw Cn(e);return bo(t)?e.lanes=32:e.lanes=536870912,null}var p=a.children;return a=a.fallback,i?(Ln(),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,Fl(null,a)):(Un(e),Hc(e,p))}var E=t.memoizedState;if(E!==null&&(p=E.dehydrated,p!==null)){if(c)e.flags&256?(Un(e),e.flags&=-257,e=qc(t,e,n)):e.memoizedState!==null?(Ln(),e.child=t.child,e.flags|=128,e=null):(Ln(),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=Fl(null,a));else if(Un(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,Hl({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=Or(f,n),a!==0&&a!==E.retryLane))throw E.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=E.treeContext,Ut=Le(p.nextSibling),$t=e,yt=!0,On=null,De=!1,t!==null&&Rf(e,t),e=Hc(e,a.children),e.flags|=4096);return e}return i?(Ln(),p=a.fallback,i=e.mode,E=t.child,x=E.sibling,a=an(E,{mode:"hidden",children:a.children}),a.subtreeFlags=E.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,Fl(null,a),a=e.child,p=t.child.memoizedState,p===null?p=Bc(n):(i=p.cachePool,i!==null?(E=Xt._currentValue,i=i.parent!==E?{parent:E,pool:E}:i):i=xf(),p={baseLanes:p.baseLanes|n,cachePool:i}),a.memoizedState=p,a.childLanes=jc(t,f,n),e.memoizedState=Nc,Fl(t.child,a)):(Un(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=ve(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 Gh(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 Xh(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?jl:0,!p&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Gh(t,n,e);else if(t.tag===19)Gh(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),Bn|=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 fv(t,e,n){switch(e.tag){case 3:Ht(e,e.stateNode.containerInfo),An(e,Xt,t.memoizedState.cache),sa();break;case 27:case 5:We(e);break;case 4:Ht(e,e.stateNode.containerInfo);break;case 10:An(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?(Un(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Yh(t,e,n):(Un(e),t=rn(t,e,n),t!==null?t.sibling:null);Un(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 Xh(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,Nh(t,e,n,e.pendingProps);case 24:An(e,Xt,t.memoizedState.cache)}return rn(t,e,n)}function Vh(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,fv(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,yt&&(e.flags&1048576)!==0&&Ef(e,jl,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=qh(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===Q){e.tag=11,e=Uh(null,e,t,a,n);break t}else if(i===G){e.tag=14,e=Lh(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),qh(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),Kl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,An(e,Xt,a),a!==c.cache&&ec(e,[Xt],n,!0),Vl(),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=Qh(t,e,a,n);break t}else if(a!==i){i=Ae(Error(o(424)),e),Hl(i),e=Qh(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=Le(t.firstChild),$t=e,yt=!0,On=null,De=!0,n=Nf(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=em(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=em(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return We(e),t===null&&yt&&(a=e.stateNode=$d(e.type,e.pendingProps,rt.current),$t=e,De=!0,i=Ut,Yn(e.type)?(_o=i,Ut=Le(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=Yv(a,e.type,e.pendingProps,De),a!==null?(e.stateNode=a,$t=e,Ut=Le(a.firstChild),De=!1,i=!0):i=!1),i||Cn(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,nv,null,null,n),fi._currentValue=i),vu(t,e),te(t,e,a,n),e.child;case 6:return t===null&&yt&&((t=n=Ut)&&(n=Gv(n,e.pendingProps,De),n!==null?(e.stateNode=n,$t=e,Ut=null,t=!0):t=!1),t||Cn(e)),null;case 13:return Yh(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 Uh(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,An(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 Lh(t,e,e.type,e.pendingProps,n);case 15:return wh(t,e,e.type,e.pendingProps,n);case 19:return Xh(t,e,n);case 31:return rv(t,e,n);case 22:return Nh(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),An(e,Xt,i)):((t.lanes&n)!==0&&(sc(t,e),Kl(e,null,null,n),Vl()),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),An(e,Xt,a)):(a=c.cache,An(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(vd())t.flags|=8192;else throw ha=nu,ic}else t.flags&=-16777217}function Kh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!um(e))if(vd())t.flags|=8192;else throw ha=nu,ic}function Su(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Rr():536870912,t.lanes|=e,ll|=e)}function Wl(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 hv(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),Kh(e,c)):(Lt(e),Gc(e,i,null,a,n))):c?c!==t.memoizedState?(fn(e),Lt(e),Kh(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=P.current,Ka(e)?Tf(e):(t=$d(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=P.current,Ka(e))Tf(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||Yd(t.nodeValue,n)),t||Cn(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?(Se(e),e):(Se(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?(Se(e),e):(Se(e),null)}return Se(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(j(qt),a=e.memoizedState,a===null)return Lt(e),null;if(i=(e.flags&128)!==0,c=a.rendering,c===null)if(i)Wl(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,Wl(a,!1),t=c.updateQueue,e.updateQueue=t,Su(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Sf(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,Wl(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),Wl(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,Wl(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 Se(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&&j(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 dv(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(Se(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(Se(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 j(qt),null;case 4:return Dt(),null;case 10:return sn(e.type),null;case 22:case 23:return Se(e),fc(),t!==null&&j(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 Zh(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&&Se(e);break;case 13:Se(e);break;case 19:j(qt);break;case 10:sn(e.type);break;case 22:case 23:Se(e),fc(),t!==null&&j(ra);break;case 24:sn(Xt)}}function $l(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 wn(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 E=n,x=p;try{x()}catch(w){Mt(i,E,w)}}}a=a.next}while(a!==c)}}catch(w){Mt(e,e.return,w)}}function Ph(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{jf(e,n)}catch(a){Mt(t,t.return,a)}}}function Jh(t,e,n){n.props=ya(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Mt(t,e,a)}}function Il(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 Pe(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 kh(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;Nv(a,t.type,n,e),a[se]=e}catch(i){Mt(t,t.return,i)}}function Fh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yn(t.type)||t.tag===4}function Vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Fh(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&&Yn(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&&Yn(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&&Yn(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 Wh(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,$h=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function mv(t,e){if(t=t.containerInfo,mo=Yu,t=rf(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,E=-1,x=0,w=0,B=t,z=null;e:for(;;){for(var D;B!==n||i!==0&&B.nodeType!==3||(p=f+i),B!==c||a!==0&&B.nodeType!==3||(E=f+a),B.nodeType===3&&(f+=B.nodeValue.length),(D=B.firstChild)!==null;)z=B,B=D;for(;;){if(B===t)break e;if(z===n&&++x===i&&(p=f),z===c&&++w===a&&(E=f),(D=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=D}n=p===-1||E===-1?null:{start:p,end:E}}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 J=ya(n.type,i);t=a.getSnapshotBeforeUpdate(J,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 Ih(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:mn(t,n),a&4&&$l(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&&Ph(n),a&512&&Il(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{jf(t,e)}catch(f){Mt(n,n.return,f)}}break;case 27:e===null&&a&4&&Wh(n);case 26:case 5:mn(t,n),e===null&&a&4&&kh(n),a&512&&Il(n,n.return);break;case 12:mn(t,n);break;case 31:mn(t,n),a&4&&nd(t,n);break;case 13:mn(t,n),a&4&&ad(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Rv.bind(null,n),Xv(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 td(t){var e=t.alternate;e!==null&&(t.alternate=null,td(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Es(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;)ed(t,e,n),n=n.sibling}function ed(t,e,n){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(Rl,n)}catch{}switch(n.tag){case 26:Zt||Pe(n,e),dn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Pe(n,e);var a=wt,i=oe;Yn(n.type)&&(wt=n.stateNode,oe=!1),dn(t,e,n),ci(n.stateNode),wt=a,oe=i;break;case 5:Zt||Pe(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,Pd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),hl(t)):Pd(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:wn(2,n,e),Zt||wn(4,n,e),dn(t,e,n);break;case 1:Zt||(Pe(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Jh(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 nd(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 ad(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 yv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new $h),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new $h),e;default:throw Error(o(435,t.tag))}}function _u(t,e){var n=yv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var i=Tv.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(Yn(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));ed(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;)ld(e,t),e=e.sibling}var Ge=null;function ld(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&&(wn(3,t,t.return),$l(3,t),wn(5,t,t.return));break;case 1:re(e,t),fe(t),a&512&&(Zt||n===null||Pe(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||Pe(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[Ol]||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=lm("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=lm("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 im(i,t.type,t.stateNode);else t.stateNode=am(i,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?im(i,t.type,t.stateNode):am(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||Pe(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||Pe(n,n.return)),t.flags&32){i=t.stateNode;try{Na(i,"")}catch(J){Mt(t,t.return,J)}}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(J){Mt(t,t.return,J)}}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(J){Mt(t,t.return,J)}Zc&&(Zc=!1,id(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)&&(Ru=le()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 22:i=t.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,x=hn,w=Zt;if(hn=x||i,Zt=w||E,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||E||hn||Zt||pa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){E=n=e;try{if(c=E.stateNode,i)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=E.stateNode;var B=E.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(J){Mt(E,E.return,J)}}}else if(e.tag===6){if(n===null){E=e;try{E.stateNode.nodeValue=i?"":E.memoizedProps}catch(J){Mt(E,E.return,J)}}}else if(e.tag===18){if(n===null){E=e;try{var D=E.stateNode;i?Jd(D,!0):Jd(E.stateNode,!1)}catch(J){Mt(E,E.return,J)}}}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(Fh(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 E=n.stateNode.containerInfo,x=Vc(t);Kc(t,x,E);break;default:throw Error(o(161))}}catch(w){Mt(t,t.return,w)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function id(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;id(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;)Ih(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:wn(4,e,e.return),pa(e);break;case 1:Pe(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Jh(e,e.return,n),pa(e);break;case 27:ci(e.stateNode);case 26:case 5:Pe(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),$l(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 E=i.shared.hiddenCallbacks;if(E!==null)for(i.shared.hiddenCallbacks=null,i=0;i<E.length;i++)Bf(E[i],p)}catch(x){Mt(a,a.return,x)}}n&&f&64&&Ph(c),Il(c,c.return);break;case 27:Wh(c);case 26:case 5:yn(i,c,n),n&&a===null&&f&4&&kh(c),Il(c,c.return);break;case 12:yn(i,c,n);break;case 31:yn(i,c,n),n&&f&4&&nd(i,c);break;case 13:yn(i,c,n),n&&f&4&&ad(i,c);break;case 22:c.memoizedState===null&&yn(i,c,n),Il(c,c.return);break;case 30:break;default:yn(i,c,n)}e=e.sibling}}function Pc(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&&ql(n))}function Jc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ql(t))}function Xe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ud(t,e,n,a),e=e.sibling}function ud(t,e,n,a){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,n,a),i&2048&&$l(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&&ql(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(E){Mt(e,e.return,E)}}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):ti(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&&Pc(f,e);break;case 24:Xe(t,e,n,a),i&2048&&Jc(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,E=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:el(c,f,p,E,i),$l(8,f);break;case 23:break;case 22:var w=f.stateNode;f.memoizedState!==null?w._visibility&2?el(c,f,p,E,i):ti(c,f):(w._visibility|=2,el(c,f,p,E,i)),i&&x&2048&&Pc(f.alternate,f);break;case 24:el(c,f,p,E,i),i&&x&2048&&Jc(f.alternate,f);break;default:el(c,f,p,E,i)}e=e.sibling}}function ti(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:ti(n,a),i&2048&&Pc(a.alternate,a);break;case 24:ti(n,a),i&2048&&Jc(a.alternate,a);break;default:ti(n,a)}e=e.sibling}}var ei=8192;function nl(t,e,n){if(t.subtreeFlags&ei)for(t=t.child;t!==null;)sd(t,e,n),t=t.sibling}function sd(t,e,n){switch(t.tag){case 26:nl(t,e,n),t.flags&ei&&t.memoizedState!==null&&eg(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=ei,ei=16777216,nl(t,e,n),ei=a):nl(t,e,n));break;default:nl(t,e,n)}}function cd(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 ni(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,rd(a,t)}cd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)od(t),t=t.sibling}function od(t){switch(t.tag){case 0:case 11:case 15:ni(t),t.flags&2048&&wn(9,t,t.return);break;case 3:ni(t);break;case 12:ni(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Eu(t)):ni(t);break;default:ni(t)}}function Eu(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,rd(a,t)}cd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:wn(8,e,e.return),Eu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Eu(e));break;default:Eu(e)}t=t.sibling}}function rd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:wn(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:ql(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(td(a),a===n){Ft=null;break t}if(i!==null){i.return=c,Ft=i;break t}Ft=c}}}var pv={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}},vv=typeof WeakMap=="function"?WeakMap:Map,St=0,zt=null,ft=null,dt=0,Tt=0,be=null,Nn=!1,al=!1,kc=!1,pn=0,jt=0,Bn=0,va=0,Fc=0,_e=0,ll=0,ai=null,he=null,Wc=!1,Ru=0,fd=0,Tu=1/0,Mu=null,jn=null,Pt=0,Hn=null,il=null,vn=0,$c=0,Ic=null,hd=null,li=0,to=null;function Ee(){return(St&2)!==0&&dt!==0?dt&-dt:U.T!==null?uo():Cr()}function dd(){if(_e===0)if((dt&536870912)===0||yt){var t=Li;Li<<=1,(Li&3932160)===0&&(Li=262144),_e=t}else _e=536870912;return t=ge.current,t!==null&&(t.flags|=32),_e}function de(t,e,n){(t===zt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(ul(t,0),qn(t,dt,_e,!1)),Ml(t,n),((St&2)===0||t!==zt)&&(t===zt&&((St&2)===0&&(va|=n),jt===4&&qn(t,dt,_e,!1)),Je(t))}function md(t,e,n){if((St&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Tl(t,e),i=a?bv(t,e):no(t,e,!0),c=a;do{if(i===0){al&&!a&&qn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!gv(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=ai;var E=p.current.memoizedState.isDehydrated;if(E&&(ul(p,f).flags|=256),f=no(p,f,!1),f!==2){if(kc&&!E){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),qn(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:qn(a,e,_e,!Nn);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(i=Ru+300-le(),10<i)){if(qn(a,e,_e,!Nn),Ni(a,0,!0)!==0)break t;vn=e,a.timeoutHandle=Kd(yd.bind(null,a,n,he,Mu,Wc,e,_e,va,ll,Nn,c,"Throttled",-0,0),i);break t}yd(a,n,he,Mu,Wc,e,_e,va,ll,Nn,c,null,-0,0)}}break}while(!0);Je(t)}function yd(t,e,n,a,i,c,f,p,E,x,w,B,z,D){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},sd(e,c,B);var J=(c&62914560)===c?Ru-le():(c&4194048)===c?fd-le():0;if(J=ng(B,J),J!==null){vn=c,t.cancelPendingCommit=J(Rd.bind(null,t,e,c,n,a,i,f,p,E,w,B,null,z,D)),qn(t,c,f,!x);return}}Rd(t,e,c,n,a,i,f,p,E)}function gv(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(!pe(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 qn(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-ye(i),f=1<<c;a[c]=-1,i&=~f}n!==0&&Tr(t,n,e)}function Ou(){return(St&6)===0?(ii(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,Yl=0,t=ft;for(;t!==null;)Zh(t.alternate,t),t=t.return;ft=null}}function ul(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Hv(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,be=null,Nn=!1,al=Tl(t,e),kc=!1,ll=_e=Fc=va=Bn=jt=0,he=ai=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-ye(a),c=1<<i;e|=t[i],a&=~c}return pn=e,Pi(),n}function pd(t,e){ct=null,U.H=kl,e===ka||e===eu?(e=Uf(),Tt=3):e===ic?(e=Uf(),Tt=4):Tt=e===Lc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,be=e,ft===null&&(jt=1,yu(t,Ae(e,t.current)))}function vd(){var t=ge.current;return t===null?!0:(dt&4194048)===dt?Ue===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Ue:!1}function gd(){var t=U.H;return U.H=kl,t===null?kl:t}function Sd(){var t=U.A;return U.A=pv,t}function Cu(){jt=4,Nn||(dt&4194048)!==dt&&ge.current!==null||(al=!0),(Bn&134217727)===0&&(va&134217727)===0||zt===null||qn(zt,dt,_e,!1)}function no(t,e,n){var a=St;St|=2;var i=gd(),c=Sd();(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,E=be;switch(Tt){case 8:eo(),f=6;break t;case 3:case 2:case 9:case 6:ge.current===null&&(e=!0);var x=Tt;if(Tt=0,be=null,sl(t,p,E,x),n&&al){f=0;break t}break;default:x=Tt,Tt=0,be=null,sl(t,p,E,x)}}Sv(),f=jt;break}catch(w){pd(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,Pi()),f}function Sv(){for(;ft!==null;)bd(ft)}function bv(t,e){var n=St;St|=2;var a=gd(),i=Sd();zt!==t||dt!==e?(Mu=null,Tu=le()+500,ul(t,e)):al=Tl(t,e);t:do try{if(Tt!==0&&ft!==null){e=ft;var c=be;e:switch(Tt){case 1:Tt=0,be=null,sl(t,e,c,1);break;case 2:case 9:if(zf(c)){Tt=0,be=null,_d(e);break}e=function(){Tt!==2&&Tt!==9||zt!==t||(Tt=7),Je(t)},c.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:zf(c)?(Tt=0,be=null,_d(e)):(Tt=0,be=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?um(f):p.stateNode.complete){Tt=0,be=null;var E=p.sibling;if(E!==null)ft=E;else{var x=p.return;x!==null?(ft=x,Au(x)):ft=null}break e}}Tt=0,be=null,sl(t,e,c,5);break;case 6:Tt=0,be=null,sl(t,e,c,6);break;case 8:eo(),jt=6;break t;default:throw Error(o(462))}}_v();break}catch(w){pd(t,w)}while(!0);return un=ca=null,U.H=a,U.A=i,St=n,ft!==null?0:(zt=null,dt=0,Pi(),jt)}function _v(){for(;ft!==null&&!vs();)bd(ft)}function bd(t){var e=Vh(t.alternate,t,pn);t.memoizedProps=t.pendingProps,e===null?Au(t):ft=e}function _d(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Hh(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Hh(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:vc(e);default:Zh(n,e),e=ft=Sf(e,pn),e=Vh(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,Yl=0;var i=e.return;try{if(ov(t,i,e,n,dt)){jt=1,yu(t,Ae(n,t.current)),ft=null;return}}catch(c){if(i!==null)throw ft=i,c;jt=1,yu(t,Ae(n,t.current)),ft=null;return}e.flags&32768?(yt||a===1?t=!0:al||(dt&536870912)!==0?t=!1:(Nn=t=!0,(a===2||a===9||a===3||a===6)&&(a=ge.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ed(e,t)):Au(e)}function Au(t){var e=t;do{if((e.flags&32768)!==0){Ed(e,Nn);return}t=e.return;var n=hv(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 Ed(t,e){do{var n=dv(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 Rd(t,e,n,a,i,c,f,p,E){t.cancelPendingCommit=null;do xu();while(Pt!==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,tp(t,n,c,f,p,E),t===zt&&(ft=zt=null,dt=0),il=e,Hn=t,vn=n,$c=c,Ic=i,hd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Mv(ne,function(){return Ad(),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{mv(t,e,n)}finally{St=f,V.p=i,U.T=a}}Pt=1,Td(),Md(),Od()}}function Td(){if(Pt===1){Pt=0;var t=Hn,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{ld(e,t);var c=yo,f=rf(t.containerInfo),p=c.focusedElem,E=c.selectionRange;if(f!==p&&p&&p.ownerDocument&&of(p.ownerDocument.documentElement,p)){if(E!==null&&qs(p)){var x=E.start,w=E.end;if(w===void 0&&(w=x),"selectionStart"in p)p.selectionStart=x,p.selectionEnd=Math.min(w,p.value.length);else{var B=p.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var D=z.getSelection(),J=p.textContent.length,lt=Math.min(E.start,J),At=E.end===void 0?lt:Math.min(E.end,J);!D.extend&&lt>At&&(f=At,At=lt,lt=f);var O=cf(p,lt),R=cf(p,At);if(O&&R&&(D.rangeCount!==1||D.anchorNode!==O.node||D.anchorOffset!==O.offset||D.focusNode!==R.node||D.focusOffset!==R.offset)){var A=B.createRange();A.setStart(O.node,O.offset),D.removeAllRanges(),lt>At?(D.addRange(A),D.extend(R.node,R.offset)):(A.setEnd(R.node,R.offset),D.addRange(A))}}}}for(B=[],D=p;D=D.parentNode;)D.nodeType===1&&B.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<B.length;p++){var N=B[p];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}Yu=!!mo,yo=mo=null}finally{St=i,V.p=a,U.T=n}}t.current=e,Pt=2}}function Md(){if(Pt===2){Pt=0;var t=Hn,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{Ih(t,e.alternate,e)}finally{St=i,V.p=a,U.T=n}}Pt=3}}function Od(){if(Pt===4||Pt===3){Pt=0,xi();var t=Hn,e=il,n=vn,a=hd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Pt=5:(Pt=0,il=Hn=null,Cd(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(jn=null),bs(n),e=e.stateNode,me&&typeof me.onCommitFiberRoot=="function")try{me.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(),Je(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===to?li++:(li=0,to=t):li=0,ii(0)}}function Cd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ql(e)))}function xu(){return Td(),Md(),Od(),Ad()}function Ad(){if(Pt!==5)return!1;var t=Hn,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=Hn,f=vn;if(Pt=0,il=Hn=null,vn=0,(St&6)!==0)throw Error(o(331));var p=St;if(St|=4,od(c.current),ud(c,c.current,f,n),St=p,ii(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(Rl,c)}catch{}return!0}finally{V.p=i,U.T=a,Cd(t,e)}}function xd(t,e,n){e=Ae(n,e),e=Uc(t.stateNode,e,2),t=Dn(t,e,2),t!==null&&(Ml(t,2),Je(t))}function Mt(t,e,n){if(t.tag===3)xd(t,t,n);else for(;e!==null;){if(e.tag===3){xd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(jn===null||!jn.has(a))){t=Ae(n,t),n=zh(2),a=Dn(e,n,2),a!==null&&(Dh(n,a,e,t),Ml(a,2),Je(a));break}}e=e.return}}function ao(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new vv;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()-Ru?(St&2)===0&&ul(t,0):Fc|=n,ll===dt&&(ll=0)),Je(t)}function zd(t,e){e===0&&(e=Rr()),t=ia(t,e),t!==null&&(Ml(t,e),Je(t))}function Rv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zd(t,n)}function Tv(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),zd(t,n)}function Mv(t,e){return Qe(t,e)}var zu=null,cl=null,lo=!1,Du=!1,io=!1,Qn=0;function Je(t){t!==cl&&t.next===null&&(cl===null?zu=cl=t:cl=cl.next=t),Du=!0,lo||(lo=!0,Cv())}function ii(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-ye(42|t)+1)-1,c&=i&~(f&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,wd(a,c))}else c=dt,c=Ni(a,a===zt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Tl(a,c)||(n=!0,wd(a,c));a=a.next}while(n);io=!1}}function Ov(){Dd()}function Dd(){Du=lo=!1;var t=0;Qn!==0&&jv()&&(t=Qn);for(var e=le(),n=null,a=zu;a!==null;){var i=a.next,c=Ud(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}Pt!==0&&Pt!==5||ii(t),Qn!==0&&(Qn=0)}function Ud(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,i=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-ye(c),p=1<<f,E=i[f];E===-1?((p&n)===0||(p&a)!==0)&&(i[f]=Iy(p,e)):E<=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&&El(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Tl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&El(a),bs(n)){case 2:case 8:n=Gt;break;case 32:n=ne;break;case 268435456:n=Er;break;default:n=ne}return a=Ld.bind(null,t),n=Qe(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&El(a),t.callbackPriority=2,t.callbackNode=null,2}function Ld(t,e){if(Pt!==0&&Pt!==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:(md(t,a,e),Ud(t,le()),t.callbackNode!=null&&t.callbackNode===n?Ld.bind(null,t):null)}function wd(t,e){if(xu())return null;md(t,e,!0)}function Cv(){qv(function(){(St&6)!==0?Qe(xt,Ov):Dd()})}function uo(){if(Qn===0){var t=Pa;t===0&&(t=Ui,Ui<<=1,(Ui&261888)===0&&(Ui=256)),Qn=t}return Qn}function Nd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:qi(""+t)}function Bd(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 Av(t,e,n,a,i){if(e==="submit"&&n&&n.stateNode===i){var c=Nd((i[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?Nd(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 E=f?Bd(i,f):new FormData(i);Oc(n,{pending:!0,data:E,method:i.method,action:c},null,E)}}else typeof c=="function"&&(p.preventDefault(),E=f?Bd(i,f):new FormData(i),Oc(n,{pending:!0,data:E,method:i.method,action:c},c,E))},currentTarget:i}]})}}for(var so=0;so<Xs.length;so++){var co=Xs[so],xv=co.toLowerCase(),zv=co[0].toUpperCase()+co.slice(1);Ye(xv,"on"+zv)}Ye(df,"onAnimationEnd"),Ye(mf,"onAnimationIteration"),Ye(yf,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(Zp,"onTransitionRun"),Ye(Pp,"onTransitionStart"),Ye(Jp,"onTransitionCancel"),Ye(pf,"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 ui="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(" "),Dv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ui));function jd(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],E=p.instance,x=p.currentTarget;if(p=p.listener,E!==c&&i.isPropagationStopped())break t;c=p,i.currentTarget=x;try{c(i)}catch(w){Zi(w)}i.currentTarget=null,c=E}else for(f=0;f<a.length;f++){if(p=a[f],E=p.instance,x=p.currentTarget,p=p.listener,E!==c&&i.isPropagationStopped())break t;c=p,i.currentTarget=x;try{c(i)}catch(w){Zi(w)}i.currentTarget=null,c=E}}}}function ht(t,e){var n=e[_s];n===void 0&&(n=e[_s]=new Set);var a=t+"__bubble";n.has(a)||(Hd(e,t,2,!1),n.add(a))}function oo(t,e,n){var a=0;e&&(a|=4),Hd(n,t,a,e)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function ro(t){if(!t[Uu]){t[Uu]=!0,zr.forEach(function(n){n!=="selectionchange"&&(Dv.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 Hd(t,e,n,a){switch(dm(e)){case 2:var i=ig;break;case 8:i=ug;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 E=f.tag;if((E===3||E===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=za(p),f===null)return;if(E=f.tag,E===5||E===6||E===26||E===27){a=c=f;continue t}p=p.parentNode}}a=a.return}Gr(function(){var x=c,w=As(n),B=[];t:{var z=vf.get(t);if(z!==void 0){var D=Xi,J=t;switch(t){case"keypress":if(Yi(n)===0)break t;case"keydown":case"keyup":D=Tp;break;case"focusin":J="focus",D=ws;break;case"focusout":J="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=Kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=hp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=Cp;break;case df:case mf:case yf:D=yp;break;case pf:D=xp;break;case"scroll":case"scrollend":D=rp;break;case"wheel":D=Dp;break;case"copy":case"cut":case"paste":D=vp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Pr;break;case"toggle":case"beforetoggle":D=Lp}var lt=(e&4)!==0,At=!lt&&(t==="scroll"||t==="scrollend"),O=lt?z!==null?z+"Capture":null:z;lt=[];for(var R=x,A;R!==null;){var N=R;if(A=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||A===null||O===null||(N=Al(R,O),N!=null&&lt.push(si(R,N,A))),At)break;R=R.return}0<lt.length&&(z=new D(z,J,null,n,w),B.push({event:z,listeners:lt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",z&&n!==Cs&&(J=n.relatedTarget||n.fromElement)&&(za(J)||J[xa]))break t;if((D||z)&&(z=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,D?(J=n.relatedTarget||n.toElement,D=x,J=J?za(J):null,J!==null&&(At=h(J),lt=J.tag,J!==At||lt!==5&&lt!==27&&lt!==6)&&(J=null)):(D=null,J=x),D!==J)){if(lt=Kr,N="onMouseLeave",O="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(lt=Pr,N="onPointerLeave",O="onPointerEnter",R="pointer"),At=D==null?z:Cl(D),A=J==null?z:Cl(J),z=new lt(N,R+"leave",D,n,w),z.target=At,z.relatedTarget=A,N=null,za(w)===x&&(lt=new lt(O,R+"enter",J,n,w),lt.target=A,lt.relatedTarget=At,N=lt),At=N,D&&J)e:{for(lt=Uv,O=D,R=J,A=0,N=O;N;N=lt(N))A++;N=0;for(var nt=R;nt;nt=lt(nt))N++;for(;0<A-N;)O=lt(O),A--;for(;0<N-A;)R=lt(R),N--;for(;A--;){if(O===R||R!==null&&O===R.alternate){lt=O;break e}O=lt(O),R=lt(R)}lt=null}else lt=null;D!==null&&qd(B,z,D,lt,!1),J!==null&&At!==null&&qd(B,At,J,lt,!0)}}t:{if(z=x?Cl(x):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var vt=ef;else if(Ir(z))if(nf)vt=Xp;else{vt=Yp;var W=Qp}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&Os(x.elementType)&&(vt=ef):vt=Gp;if(vt&&(vt=vt(t,x))){tf(B,vt,n,w);break t}W&&W(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&Ms(z,"number",z.value)}switch(W=x?Cl(x):window,t){case"focusin":(Ir(W)||W.contentEditable==="true")&&(qa=W,Qs=x,Bl=null);break;case"focusout":Bl=Qs=qa=null;break;case"mousedown":Ys=!0;break;case"contextmenu":case"mouseup":case"dragend":Ys=!1,ff(B,n,w);break;case"selectionchange":if(Kp)break;case"keydown":case"keyup":ff(B,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?Wr(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Jr&&n.locale!=="ko"&&(Ha||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Ha&&(ot=Xr()):(Tn=w,Ds="value"in Tn?Tn.value:Tn.textContent,Ha=!0)),W=Lu(x,mt),0<W.length&&(mt=new Zr(mt,t,null,n,w),B.push({event:mt,listeners:W}),ot?mt.data=ot:(ot=$r(n),ot!==null&&(mt.data=ot)))),(ot=Np?Bp(t,n):jp(t,n))&&(mt=Lu(x,"onBeforeInput"),0<mt.length&&(W=new Zr("onBeforeInput","beforeinput",null,n,w),B.push({event:W,listeners:mt}),W.data=ot)),Av(B,t,x,n,w)}jd(B,e)})}function si(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=Al(t,n),i!=null&&a.unshift(si(t,i,c)),i=Al(t,e),i!=null&&a.push(si(t,i,c))),t.tag===3)return a;t=t.return}return[]}function Uv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function qd(t,e,n,a,i){for(var c=e._reactName,f=[];n!==null&&n!==a;){var p=n,E=p.alternate,x=p.stateNode;if(p=p.tag,E!==null&&E===a)break;p!==5&&p!==26&&p!==27||x===null||(E=x,i?(x=Al(n,c),x!=null&&f.unshift(si(n,x,E))):i||(x=Al(n,c),x!=null&&f.push(si(n,x,E)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Lv=/\r\n?/g,wv=/\u0000|\uFFFD/g;function Qd(t){return(typeof t=="string"?t:""+t).replace(Lv,`
9
+ `).replace(wv,"")}function Yd(t,e){return e=Qd(e),Qd(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":Qr(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=cp.get(n)||n,Bi(t,n,a))}}function ho(t,e,n,a,i,c){switch(n){case"style":Qr(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(!Dr.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,E=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":E=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)}}Br(t,c,p,E,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)}Hr(t,a,i,c);return;case"option":for(E in n)n.hasOwnProperty(E)&&(a=n[E],a!=null)&&(E==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ct(t,e,E,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<ui.length;a++)ht(ui[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 Nv(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,E=null,x=null,w=null;for(D in n){var B=n[D];if(n.hasOwnProperty(D)&&B!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":E=B;default:a.hasOwnProperty(D)||Ct(t,e,D,null,a,B)}}for(var z in a){var D=a[z];if(B=n[z],a.hasOwnProperty(z)&&(D!=null||B!=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!==B&&Ct(t,e,z,D,a,B)}}Ts(t,f,p,E,x,w,c,i);return;case"select":D=f=p=z=null;for(c in n)if(E=n[c],n.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":D=E;default:a.hasOwnProperty(c)||Ct(t,e,c,null,a,E)}for(i in a)if(c=a[i],E=n[i],a.hasOwnProperty(i)&&(c!=null||E!=null))switch(i){case"value":z=c;break;case"defaultValue":p=c;break;case"multiple":f=c;default:c!==E&&Ct(t,e,i,c,a,E)}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)}jr(t,z,D);return;case"option":for(var J in n)z=n[J],n.hasOwnProperty(J)&&z!=null&&!a.hasOwnProperty(J)&&(J==="selected"?t.selected=!1:Ct(t,e,J,null,a,z));for(E in a)z=a[E],D=n[E],a.hasOwnProperty(E)&&z!==D&&(z!=null||D!=null)&&(E==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Ct(t,e,E,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(B in a)z=a[B],D=n[B],!a.hasOwnProperty(B)||z===D||z==null&&D==null||Ct(t,e,B,z,a,D)}function Gd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bv(){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&&Gd(f)){for(f=0,p=i.responseEnd,a+=1;a<n.length;a++){var E=n[a],x=E.startTime;if(x>p)break;var w=E.transferSize,B=E.initiatorType;w&&Gd(B)&&(E=E.responseEnd,f+=w*(E<p?1:(p-x)/(E-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 Xd(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 Vd(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 jv(){var t=window.event;return t&&t.type==="popstate"?t===vo?!1:(vo=t,!0):(vo=null,!1)}var Kd=typeof setTimeout=="function"?setTimeout:void 0,Hv=typeof clearTimeout=="function"?clearTimeout:void 0,Zd=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Zd<"u"?function(t){return Zd.resolve(null).then(t).catch(Qv)}:Kd;function Qv(t){setTimeout(function(){throw t})}function Yn(t){return t==="head"}function Pd(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")ci(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ci(n);for(var c=n.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[Ol]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&ci(t.ownerDocument.body);n=i}while(n);hl(e)}function Jd(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),Es(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Yv(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[Ol])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=Le(t.nextSibling),t===null)break}return null}function Gv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function kd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Le(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 Xv(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 Le(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 Fd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Le(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Wd(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 $d(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 ci(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Es(t)}var we=new Map,Id=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:Vv,r:Kv,D:Zv,C:Pv,L:Jv,m:kv,X:Wv,S:Fv,M:$v};function Vv(){var t=gn.f(),e=Ou();return t||e}function Kv(t){var e=Da(t);e!==null&&e.tag===5&&e.type==="form"?ph(e):gn.r(t)}var ol=typeof document>"u"?null:document;function tm(t,e,n){var a=ol;if(a&&typeof e=="string"&&e){var i=Oe(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Id.has(i)||(Id.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 Zv(t){gn.D(t),tm("dns-prefetch",t,null)}function Pv(t,e){gn.C(t,e),tm("preconnect",t,e)}function Jv(t,e,n){gn.L(t,e,n);var a=ol;if(a&&t&&e){var i='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Oe(n.imageSizes)+'"]')):i+='[href="'+Oe(t)+'"]';var c=i;switch(e){case"style":c=rl(t);break;case"script":c=fl(t)}we.has(c)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(c,t),a.querySelector(i)!==null||e==="style"&&a.querySelector(oi(c))||e==="script"&&a.querySelector(ri(c))||(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function kv(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="'+Oe(a)+'"][href="'+Oe(t)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=fl(t)}if(!we.has(c)&&(t=S({rel:"modulepreload",href:t},e),we.set(c,t),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ri(c)))return}a=n.createElement("link"),ee(a,"link",t),kt(a),n.head.appendChild(a)}}}function Fv(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(oi(c)))p.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(c))&&Eo(t,n);var E=f=a.createElement("link");kt(E),ee(E,"link",t),E._p=new Promise(function(x,w){E.onload=x,E.onerror=w}),E.addEventListener("load",function(){p.loading|=1}),E.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 Wv(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(ri(i)),c||(t=S({src:t,async:!0},e),(e=we.get(i))&&Ro(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 $v(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(ri(i)),c||(t=S({src:t,async:!0,type:"module"},e),(e=we.get(i))&&Ro(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 em(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(oi(t)))&&!c._p&&(f.instance=c,f.state.loading=5),we.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},we.set(t,n),c||Iv(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="'+Oe(t)+'"'}function oi(t){return'link[rel="stylesheet"]['+t+"]"}function nm(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function Iv(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="'+Oe(t)+'"]'}function ri(t){return"script[async]"+t}function am(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Oe(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(oi(i));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;a=nm(n),(i=we.get(i))&&Eo(a,i),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(p,E){f.onload=p,f.onerror=E}),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(ri(c)))?(e.instance=i,kt(i),i):(a=n,(i=we.get(c))&&(a=S({},n),Ro(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 Eo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ro(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 lm(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[Ol]||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 im(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function tg(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 um(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function eg(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(oi(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=nm(a),(i=we.get(i))&&Eo(a,i),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(p,E){f.onload=p,f.onerror=E}),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 ng(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*Bv());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(ag,t),qu=null,Hu.call(t))}function ag(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 fi={$$typeof:X,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function lg(t,e,n,a,i,c,f,p,E){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=E,this.incompleteTransitions=new Map}function sm(t,e,n,a,i,c,f,p,E,x,w,B){return t=new lg(t,e,n,f,E,x,w,B,p),e=1,c===!0&&(e|=24),c=ve(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 cm(t){return t?(t=Ga,t):Ga}function om(t,e,n,a,i,c){i=cm(i),a.context===null?a.context=i:a.pendingContext=i,a=zn(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Dn(t,a,e),n!==null&&(de(n,t,e),Xl(n,t,e))}function rm(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){rm(t,e),(t=t.alternate)&&rm(t,e)}function fm(t){if(t.tag===13||t.tag===31){var e=ia(t,67108864);e!==null&&de(e,t,67108864),Mo(t,67108864)}}function hm(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 ig(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 ug(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),mm(t,a);else if(cg(i,t,e,n,a))a.stopPropagation();else if(mm(t,a),e&4&&-1<sg.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 E=1<<31-ye(f);p.entanglements[1]|=E,f&=~E}Je(c),(St&6)===0&&(Tu=le()+500,ii(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=y(e),t!==null)return t;t=null}else if(n===31){if(t=m(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 dm(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 Er:return 268435456;default:return 32}default:return 32}}var xo=!1,Gn=null,Xn=null,Vn=null,hi=new Map,di=new Map,Kn=[],sg="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 mm(t,e){switch(t){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":hi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(e.pointerId)}}function mi(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&&fm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function cg(t,e,n,a,i){switch(e){case"focusin":return Gn=mi(Gn,t,e,n,a,i),!0;case"dragenter":return Xn=mi(Xn,t,e,n,a,i),!0;case"mouseover":return Vn=mi(Vn,t,e,n,a,i),!0;case"pointerover":var c=i.pointerId;return hi.set(c,mi(hi.get(c)||null,t,e,n,a,i)),!0;case"gotpointercapture":return c=i.pointerId,di.set(c,mi(di.get(c)||null,t,e,n,a,i)),!0}return!1}function ym(t){var e=za(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=y(n),e!==null){t.blockedOn=e,Ar(t.priority,function(){hm(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Ar(t.priority,function(){hm(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&&fm(e),t.blockedOn=n,!1;e.shift()}return!0}function pm(t,e,n){Xu(t)&&n.delete(e)}function og(){xo=!1,Gn!==null&&Xu(Gn)&&(Gn=null),Xn!==null&&Xu(Xn)&&(Xn=null),Vn!==null&&Xu(Vn)&&(Vn=null),hi.forEach(pm),di.forEach(pm)}function Vu(t,e){t.blockedOn===e&&(t.blockedOn=null,xo||(xo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,og)))}var Ku=null;function vm(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(E){return Vu(E,t)}Gn!==null&&Vu(Gn,t),Xn!==null&&Vu(Xn,t),Vn!==null&&Vu(Vn,t),hi.forEach(e),di.forEach(e);for(var n=0;n<Kn.length;n++){var a=Kn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Kn.length&&(n=Kn[0],n.blockedOn===null);)ym(n),n.blockedOn===null&&Kn.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||vm(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),vm(n)}}}function gm(){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();om(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;om(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=Cr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Kn.length&&e!==0&&e<Kn[n].priority;n++);Kn.splice(n,0,t),n===0&&ym(t)}};var Sm=u.version;if(Sm!=="19.2.4")throw Error(o(527,Sm,"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?g(t):null,t=t===null?null:t.stateNode,t};var rg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{Rl=Pu.inject(rg),me=Pu}catch{}}return pi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",i=Oh,c=Ch,f=Ah;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=sm(t,1,!1,null,null,n,a,null,i,c,f,gm),t[xa]=e.current,ro(t),new zo(e)},pi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,i="",c=Oh,f=Ch,p=Ah,E=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&&(E=n.formState)),e=sm(t,1,!0,e,n??null,a,i,E,c,f,p,gm),e.context=cm(null),n=e.current,a=Ee(),a=Ss(a),i=zn(a),i.callback=null,Dn(n,i,a),n=a,e.current.lanes=n,Ml(e,n),Je(e),t[xa]=e.current,ro(t),new Zu(e)},pi.version="19.2.4",pi}var xm;function bg(){if(xm)return Lo.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(),Lo.exports=Sg(),Lo.exports}var ab=bg(),Sl=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(){}},_g={setTimeout:(l,u)=>setTimeout(l,u),clearTimeout:l=>clearTimeout(l),setInterval:(l,u)=>setInterval(l,u),clearInterval:l=>clearInterval(l)},Eg=class{#t=_g;#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 Rg(l){setTimeout(l,0)}var Ta=typeof window>"u"||"Deno"in globalThis;function ue(){}function Tg(l,u){return typeof l=="function"?l(u):l}function Jo(l){return typeof l=="number"&&l>=0&&l!==1/0}function fy(l,u){return Math.max(l+(u||0)-Date.now(),0)}function Fn(l,u){return typeof l=="function"?l(u):l}function Ne(l,u){return typeof l=="function"?l(u):l}function zm(l,u){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:y,stale:m}=l;if(y){if(o){if(u.queryHash!==ir(y,u.options))return!1}else if(!Ti(u.queryKey,y))return!1}if(s!=="all"){const v=u.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof m=="boolean"&&u.isStale()!==m||r&&r!==u.state.fetchStatus||h&&!h(u))}function Dm(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(!Ti(u.options.mutationKey,h))return!1}return!(o&&u.state.status!==o||r&&!r(u))}function ir(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 Ti(l,u){return l===u?!0:typeof l!=typeof u?!1:l&&u&&typeof l=="object"&&typeof u=="object"?Object.keys(u).every(s=>Ti(l[s],u[s])):!1}var Mg=Object.prototype.hasOwnProperty;function hy(l,u,s=0){if(l===u)return l;if(s>500)return u;const o=Um(l)&&Um(u);if(!o&&!(ko(l)&&ko(u)))return u;const h=(o?l:Object.keys(l)).length,y=o?u:Object.keys(u),m=y.length,v=o?new Array(m):{};let d=0;for(let g=0;g<m;g++){const S=o?g:y[g],b=l[S],_=u[S];if(b===_){v[S]=b,(o?g<h:Mg.call(l,S))&&d++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){v[S]=_;continue}const M=hy(b,_,s+1);v[S]=M,M===b&&d++}return h===m&&d===h?l:v}function ns(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 Um(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function ko(l){if(!Lm(l))return!1;const u=l.constructor;if(u===void 0)return!0;const s=u.prototype;return!(!Lm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Lm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Og(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?hy(l,u):u}function Cg(l,u,s=0){const o=[...l,u];return s&&o.length>s?o.slice(1):o}function Ag(l,u,s=0){const o=[u,...l];return s&&o.length>s?o.slice(0,-1):o}var ur=Symbol();function dy(l,u){return!l.queryFn&&u?.initialPromise?()=>u.initialPromise:!l.queryFn||l.queryFn===ur?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function sr(l,u){return typeof l=="function"?l(...u):!!l}function xg(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 zg=class extends Sl{#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"}},cr=new zg;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 Dg=Rg;function Ug(){let l=[],u=0,s=m=>{m()},o=m=>{m()},r=Dg;const h=m=>{u?l.push(m):r(()=>{s(m)})},y=()=>{const m=l;l=[],m.length&&r(()=>{o(()=>{m.forEach(v=>{s(v)})})})};return{batch:m=>{let v;u++;try{v=m()}finally{u--,u||y()}return v},batchCalls:m=>(...v)=>{h(()=>{m(...v)})},schedule:h,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{o=m},setScheduler:m=>{r=m}}}var Jt=Ug(),Lg=class extends Sl{#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}},as=new Lg;function wg(l){return Math.min(1e3*2**l,3e4)}function my(l){return(l??"online")==="online"?as.isOnline():!0}var $o=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function yy(l){let u=!1,s=0,o;const r=Wo(),h=()=>r.status!=="pending",y=C=>{if(!h()){const L=new $o(C);b(L),l.onCancel?.(L)}},m=()=>{u=!0},v=()=>{u=!1},d=()=>cr.isFocused()&&(l.networkMode==="always"||as.isOnline())&&l.canRun(),g=()=>my(l.networkMode)&&l.canRun(),S=C=>{h()||(o?.(),r.resolve(C))},b=C=>{h()||(o?.(),r.reject(C))},_=()=>new Promise(C=>{o=L=>{(h()||d())&&C(L)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),M=()=>{if(h())return;let C;const L=s===0?l.initialPromise:void 0;try{C=L??l.fn()}catch(q){C=Promise.reject(q)}Promise.resolve(C).then(S).catch(q=>{if(h())return;const Y=l.retry??(Ta?0:3),X=l.retryDelay??wg,Q=typeof X=="function"?X(s,q):X,I=Y===!0||typeof Y=="number"&&s<Y||typeof Y=="function"&&Y(s,q);if(u||!I){b(q);return}s++,l.onFail?.(s,q),Og(Q).then(()=>d()?void 0:_()).then(()=>{u?b(q):M()})})};return{promise:r,status:()=>r.status,cancel:y,continue:()=>(o?.(),r),cancelRetry:m,continueRetry:v,canStart:g,start:()=>(g()?M():_().then(M),r)}}var py=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jo(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)}},Ng=class extends py{#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=Nm(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=Nm(this.options);u.data!==void 0&&(this.setState(wm(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=>Ne(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ur||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Fn(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:!fy(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 m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.options)}const s=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,s.signal)})},r=()=>{const m=dy(this.options,u),d=(()=>{const g={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#s=!1,this.options.persister?this.options.persister(m,d,this):m(d)},y=(()=>{const m={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:r};return o(m),m})();this.options.behavior?.onFetch(y,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==y.fetchOptions?.meta)&&this.#i({type:"fetch",meta:y.fetchOptions?.meta}),this.#a=yy({initialPromise:u?.initialPromise,fn:y.fetchFn,onCancel:m=>{m instanceof $o&&m.revert&&this.setState({...this.#e,fetchStatus:"idle"}),s.abort()},onFail:(m,v)=>{this.#i({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay,networkMode:y.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof $o){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}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,...vy(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,...wm(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),Jt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:l})})}};function vy(l,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:my(u.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function wm(l,u){return{data:l,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Nm(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 gy=class extends Sl{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),Bm(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 Ne(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#e.setOptions(this.options),u._defaulted&&!ns(this.options,u)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&jm(this.#e,s,this.options,u)&&this.#f(),this.updateResult(),o&&(this.#e!==s||Ne(this.options.enabled,this.#e)!==Ne(u.enabled,this.#e)||Fn(this.options.staleTime,this.#e)!==Fn(u.staleTime,this.#e))&&this.#p();const r=this.#v();o&&(this.#e!==s||Ne(this.options.enabled,this.#e)!==Ne(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 jg(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.#E();let u=this.#e.fetch(this.options,l);return l?.throwOnError||(u=u.catch(ue)),u}#p(){this.#b();const l=Fn(this.options.staleTime,this.#e);if(Ta||this.#l.isStale||!Jo(l))return;const s=fy(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||Ne(this.options.enabled,this.#e)===!1||!Jo(this.#c)||this.#c===0)&&(this.#r=Sa.setInterval(()=>{(this.options.refetchIntervalInBackground||cr.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,y=this.#u,v=l!==s?l.state:this.#n,{state:d}=l;let g={...d},S=!1,b;if(u._optimisticResults){const H=this.hasListeners(),Z=!H&&Bm(l,u),ut=H&&jm(l,s,u,o);(Z||ut)&&(g={...g,...vy(d.data,l.options)}),u._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:_,errorUpdatedAt:M,status:C}=g;b=g.data;let L=!1;if(u.placeholderData!==void 0&&b===void 0&&C==="pending"){let H;r?.isPlaceholderData&&u.placeholderData===y?.placeholderData?(H=r.data,L=!0):H=typeof u.placeholderData=="function"?u.placeholderData(this.#d?.state.data,this.#d):u.placeholderData,H!==void 0&&(C="success",b=Fo(r?.data,H,u),S=!0)}if(u.select&&b!==void 0&&!L)if(r&&b===h?.data&&u.select===this.#y)b=this.#h;else try{this.#y=u.select,b=u.select(b),b=Fo(r?.data,b,u),this.#h=b,this.#i=null}catch(H){this.#i=H}this.#i&&(_=this.#i,b=this.#h,M=Date.now(),C="error");const q=g.fetchStatus==="fetching",Y=C==="pending",X=C==="error",Q=Y&&q,I=b!==void 0,G={status:C,fetchStatus:g.fetchStatus,isPending:Y,isSuccess:C==="success",isError:X,isInitialLoading:Q,isLoading:Q,data:b,dataUpdatedAt:g.dataUpdatedAt,error:_,errorUpdatedAt:M,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>v.dataUpdateCount||g.errorUpdateCount>v.errorUpdateCount,isFetching:q,isRefetching:q&&!Y,isLoadingError:X&&!I,isPaused:g.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:X&&I,isStale:or(l,u),refetch:this.refetch,promise:this.#s,isEnabled:Ne(u.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const H=G.data!==void 0,Z=G.status==="error"&&!H,ut=Et=>{Z?Et.reject(G.error):H&&Et.resolve(G.data)},tt=()=>{const Et=this.#s=G.promise=Wo();ut(Et)},F=this.#s;switch(F.status){case"pending":l.queryHash===s.queryHash&&ut(F);break;case"fulfilled":(Z||G.data!==F.value)&&tt();break;case"rejected":(!Z||G.error!==F.reason)&&tt();break}}return G}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),ns(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(y=>{const m=y;return this.#l[m]!==l[m]&&h.has(m)})};this.#R({listeners:s()})}#E(){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()}#R(l){Jt.batch(()=>{l.listeners&&this.listeners.forEach(u=>{u(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Bg(l,u){return Ne(u.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&u.retryOnMount===!1)}function Bm(l,u){return Bg(l,u)||l.state.data!==void 0&&Io(l,u,u.refetchOnMount)}function Io(l,u,s){if(Ne(u.enabled,l)!==!1&&Fn(u.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&or(l,u)}return!1}function jm(l,u,s,o){return(l!==u||Ne(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&or(l,s)}function or(l,u){return Ne(u.enabled,l)!==!1&&l.isStaleByTime(Fn(u.staleTime,l))}function jg(l,u){return!ns(l.getCurrentResult(),u)}function ls(l){return{onFetch:(u,s)=>{const o=u.options,r=u.fetchOptions?.meta?.fetchMore?.direction,h=u.state.data?.pages||[],y=u.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const d=async()=>{let g=!1;const S=M=>{xg(M,()=>u.signal,()=>g=!0)},b=dy(u.options,u.fetchOptions),_=async(M,C,L)=>{if(g)return Promise.reject();if(C==null&&M.pages.length)return Promise.resolve(M);const Y=(()=>{const $={client:u.client,queryKey:u.queryKey,pageParam:C,direction:L?"backward":"forward",meta:u.options.meta};return S($),$})(),X=await b(Y),{maxPages:Q}=u.options,I=L?Ag:Cg;return{pages:I(M.pages,X,Q),pageParams:I(M.pageParams,C,Q)}};if(r&&h.length){const M=r==="backward",C=M?Sy:tr,L={pages:h,pageParams:y},q=C(o,L);m=await _(L,q,M)}else{const M=l??h.length;do{const C=v===0?y[0]??o.initialPageParam:tr(o,m);if(v>0&&C==null)break;m=await _(m,C),v++}while(v<M)}return m};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 Sy(l,{pages:u,pageParams:s}){return u.length>0?l.getPreviousPageParam?.(u[0],u,s[0],s):void 0}function Hg(l,u){return u?tr(l,u)!=null:!1}function qg(l,u){return!u||!l.getPreviousPageParam?!1:Sy(l,u)!=null}var Qg=class extends gy{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:ls()})}getOptimisticResult(l){return l.behavior=ls(),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:y,isRefetchError:m}=o,v=s.fetchMeta?.fetchMore?.direction,d=y&&v==="forward",g=r&&v==="forward",S=y&&v==="backward",b=r&&v==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Hg(u,s.data),hasPreviousPage:qg(u,s.data),isFetchNextPageError:d,isFetchingNextPage:g,isFetchPreviousPageError:S,isFetchingPreviousPage:b,isRefetchError:m&&!d&&!S,isRefetching:h&&!g&&!b}}},Yg=class extends py{#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||by(),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=yy({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,y)=>{this.#a({type:"failed",failureCount:h,error:y})},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 y=await this.options.onMutate?.(l,s);y!==this.state.context&&this.#a({type:"pending",context:y,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(y){Promise.reject(y)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(y){Promise.reject(y)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(y){Promise.reject(y)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(y){Promise.reject(y)}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),Jt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function by(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gg=class extends Sl{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 Yg({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=Ju(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=Ju(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=Ju(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=Ju(l);return typeof u=="string"?this.#e.get(u)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Jt.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=>Dm(u,s))}findAll(l={}){return this.getAll().filter(u=>Dm(l,u))}notify(l){Jt.batch(()=>{this.listeners.forEach(u=>{u(l)})})}resumePausedMutations(){const l=this.getAll().filter(u=>u.state.isPaused);return Jt.batch(()=>Promise.all(l.map(u=>u.continue().catch(ue))))}};function Ju(l){return l.options.scope?.id}var Xg=class extends Sl{#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),ns(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??by();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){Jt.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)})})}},Vg=class extends Sl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,u,s){const o=u.queryKey,r=u.queryHash??ir(o,u);let h=this.get(r);return h||(h=new Ng({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(){Jt.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=>zm(u,s))}findAll(l={}){const u=this.getAll();return Object.keys(l).length>0?u.filter(s=>zm(l,s)):u}notify(l){Jt.batch(()=>{this.listeners.forEach(u=>{u(l)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},lb=class{#t;#e;#n;#l;#a;#u;#s;#i;constructor(l={}){this.#t=l.queryCache||new Vg,this.#e=l.mutationCache||new Gg,this.#n=l.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#s=cr.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=as.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(Fn(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,y=Tg(u,h);if(y!==void 0)return this.#t.build(this,o).setData(y,{...s,manual:!0})}setQueriesData(l,u,s){return Jt.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;Jt.batch(()=>{u.findAll(l).forEach(s=>{u.remove(s)})})}resetQueries(l,u){const s=this.#t;return Jt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},u)))}cancelQueries(l,u={}){const s={revert:!0,...u},o=Jt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,u={}){return Jt.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=Jt.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(Fn(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=ls(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l.behavior=ls(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return as.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=>{Ti(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=>{Ti(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=ir(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===ur&&(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()}},_y=k.createContext(void 0),Ey=l=>{const u=k.useContext(_y);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},ib=({client:l,children:u})=>(k.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),at.jsx(_y.Provider,{value:l,children:u})),Ry=k.createContext(!1),Kg=()=>k.useContext(Ry);Ry.Provider;function Zg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Pg=k.createContext(Zg()),Jg=()=>k.useContext(Pg),kg=(l,u,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?sr(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(u.isReset()||(l.retryOnMount=!1))},Fg=l=>{k.useEffect(()=>{l.clearReset()},[l])},Wg=({result:l,errorResetBoundary:u,throwOnError:s,query:o,suspense:r})=>l.isError&&!u.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||sr(s,[l.error,o])),$g=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))}},Ig=(l,u)=>l.isLoading&&l.isFetching&&!u,t0=(l,u)=>l?.suspense&&u.isPending,Hm=(l,u,s)=>u.fetchOptimistic(l).catch(()=>{s.clearReset()});function Ty(l,u,s){const o=Kg(),r=Jg(),h=Ey(),y=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(y);const m=h.getQueryCache().get(y.queryHash);y._optimisticResults=o?"isRestoring":"optimistic",$g(y),kg(y,r,m),Fg(r);const v=!h.getQueryCache().get(y.queryHash),[d]=k.useState(()=>new u(h,y)),g=d.getOptimisticResult(y),S=!o&&l.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(b=>{const _=S?d.subscribe(Jt.batchCalls(b)):ue;return d.updateResult(),_},[d,S]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),k.useEffect(()=>{d.setOptions(y)},[y,d]),t0(y,g))throw Hm(y,d,r);if(Wg({result:g,errorResetBoundary:r,throwOnError:y.throwOnError,query:m,suspense:y.suspense}))throw g.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(y,g),y.experimental_prefetchInRender&&!Ta&&Ig(g,o)&&(v?Hm(y,d,r):m?.promise)?.catch(ue).finally(()=>{d.updateResult()}),y.notifyOnChangeProps?g:d.trackResult(g)}function ub(l,u){return Ty(l,gy)}function sb(l,u){const s=Ey(),[o]=k.useState(()=>new Xg(s,l));k.useEffect(()=>{o.setOptions(l)},[o,l]);const r=k.useSyncExternalStore(k.useCallback(y=>o.subscribe(Jt.batchCalls(y)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=k.useCallback((y,m)=>{o.mutate(y,m).catch(ue)},[o]);if(r.error&&sr(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function cb(l,u){return Ty(l,Qg)}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 My({update:l,notify:u,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:y,shallowPropagate:m};function o(d,g,S){const b=g.depsTail;if(b!==void 0&&b.dep===d)return;const _=b!==void 0?b.nextDep:g.deps;if(_!==void 0&&_.dep===d){_.version=S,g.depsTail=_;return}const M=d.subsTail;if(M!==void 0&&M.version===S&&M.sub===g)return;const C=g.depsTail=d.subsTail={version:S,dep:d,sub:g,prevDep:b,nextDep:_,prevSub:M,nextSub:void 0};_!==void 0&&(_.prevDep=C),b!==void 0?b.nextDep=C:g.deps=C,M!==void 0?M.nextSub=C:d.subs=C}function r(d,g=d.sub){const S=d.dep,b=d.prevDep,_=d.nextDep,M=d.nextSub,C=d.prevSub;return _!==void 0?_.prevDep=b:g.depsTail=b,b!==void 0?b.nextDep=_:g.deps=_,M!==void 0?M.prevSub=C:S.subsTail=C,C!==void 0?C.nextSub=M:(S.subs=M)===void 0&&s(S),_}function h(d){let g=d.nextSub,S;t:do{const b=d.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&v(d,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&u(b),_&1){const M=b.subs;if(M!==void 0){const C=(d=M).nextSub;C!==void 0&&(S={value:g,prev:S},g=C);continue}}if((d=g)!==void 0){g=d.nextSub;continue}for(;S!==void 0;)if(d=S.value,S=S.prev,d!==void 0){g=d.nextSub;continue t}break}while(!0)}function y(d,g){let S,b=0,_=!1;t:do{const M=d.dep,C=M.flags;if(g.flags&16)_=!0;else if((C&17)===17){if(l(M)){const L=M.subs;L.nextSub!==void 0&&m(L),_=!0}}else if((C&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(S={value:d,prev:S}),d=M.deps,g=M,++b;continue}if(!_){const L=d.nextDep;if(L!==void 0){d=L;continue}}for(;b--;){const L=g.subs,q=L.nextSub!==void 0;if(q?(d=S.value,S=S.prev):d=L,_){if(l(g)){q&&m(L),g=d.sub;continue}_=!1}else g.flags&=-33;g=d.sub;const Y=d.nextDep;if(Y!==void 0){d=Y;continue t}}return _}while(!0)}function m(d){do{const g=d.sub,S=g.flags;(S&48)===32&&(g.flags=S|16,(S&6)===2&&u(g))}while((d=d.nextSub)!==void 0)}function v(d,g){let S=g.depsTail;for(;S!==void 0;){if(S===d)return!0;S=S.prevDep}return!1}}let rr=0,ga=0,_i=0;const Sn=[],{link:ob,unlink:Oy,propagate:rb,checkDirty:e0,shallowPropagate:fb}=My({update(l){return l.depsTail!==void 0?i0(l):u0(l)},notify(l){let u=_i,s=u;do if(Sn[u++]=l,l.flags&=-3,l=l.subs?.sub,l===void 0||!(l.flags&2))break;while(!0);for(_i=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)):o0.call(l)}});function n0(){return rr}function a0(){++rr}function l0(){--rr||c0()}function i0(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 u0(l){return l.flags=1,l.currentValue!==(l.currentValue=l.pendingValue)}function s0(l){const u=l.flags;if(u&16||u&32&&e0(l.deps,l)){l.depsTail=void 0,l.flags=6;try{l.fn()}finally{l.flags&=-5,ds(l)}}else l.flags=2}function c0(){try{for(;ga<_i;){const l=Sn[ga];Sn[ga++]=void 0,s0(l)}}finally{for(;ga<_i;){const l=Sn[ga];Sn[ga++]=void 0,l.flags|=10}ga=0,_i=0}}function o0(){this.depsTail=void 0,this.flags=0,ds(this);const l=this.subs;l!==void 0&&Oy(l)}function ds(l){const u=l.depsTail;let s=u!==void 0?u.nextDep:l.deps;for(;s!==void 0;)s=Oy(s,l)}function Cy(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:qm,unlink:r0,propagate:f0,checkDirty:Ay,shallowPropagate:Qm}=My({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,is(l))}});let ku=0,nr=0,ke;function is(l){const u=l.depsTail;let s=u!==void 0?u.nextDep:l.deps;for(;s!==void 0;)s=r0(s,l)}function xy(){if(!(n0()>0)){for(;ku<nr;){const l=er[ku];er[ku++]=void 0,l.notify()}ku=0,nr=0}}function h0(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&&qm(r,ke,$u),r._snapshot},subscribe(h){const y=Cy(h),m={current:!1},v=d0(()=>{r.get(),m.current?y.next?.(r._snapshot):m.current=!0});return{unsubscribe:()=>{v.stop()}}},_update(h){const y=ke,m=Object.is;ke=r,++$u,r.depsTail=void 0,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||!m(v,d)?(r._snapshot=d,!0):!1}finally{ke=y,s&&(r.flags&=~Nt.RecursedCheck),is(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&Ay(r.deps,r)){if(r._update()){const y=r.subs;y!==void 0&&Qm(y)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return ke!==void 0&&qm(r,ke,$u),r._snapshot}):r.set=function(h){if(r._update(h)){const y=r.subs;y!==void 0&&(f0(y),Qm(y),xy())}},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,is(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&&Ay(this.deps,this)?u():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,is(this)}};return u(),s}class m0{constructor(u){this.atom=h0(u)}setState(u){this.atom.set(u)}get state(){return this.atom.get()}get(){return this.state}subscribe(u){return this.atom.subscribe(Cy(u))}}function y0(l){try{a0(),l()}finally{l0(),xy()}}const Wn="__TSR_index",Ym="popstate",Gm="beforeunload";function p0(l){let u=l.getLocation();const s=new Set,o=y=>{u=l.getLocation(),s.forEach(m=>m({location:u,action:y}))},r=y=>{l.notifyOnIndexChange??!0?o(y):u=l.getLocation()},h=async({task:y,navigateOpts:m,...v})=>{if(m?.ignoreBlocker??!1){y();return}const g=l.getBlockers?.()??[],S=v.type==="PUSH"||v.type==="REPLACE";if(typeof document<"u"&&g.length&&S)for(const b of g){const _=us(v.path,v.state);if(await b.blockerFn({currentLocation:u,nextLocation:_,action:v.type})){l.onBlocked?.();return}}y()};return{get location(){return u},get length(){return l.getLength()},subscribers:s,subscribe:y=>(s.add(y),()=>{s.delete(y)}),push:(y,m,v)=>{const d=u.state[Wn];m=Xm(d+1,m),h({task:()=>{l.pushState(y,m),o({type:"PUSH"})},navigateOpts:v,type:"PUSH",path:y,state:m})},replace:(y,m,v)=>{const d=u.state[Wn];m=Xm(d,m),h({task:()=>{l.replaceState(y,m),o({type:"REPLACE"})},navigateOpts:v,type:"REPLACE",path:y,state:m})},go:(y,m)=>{h({task:()=>{l.go(y),r({type:"GO",index:y})},navigateOpts:m,type:"GO"})},back:y=>{h({task:()=>{l.back(y?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:y,type:"BACK"})},forward:y=>{h({task:()=>{l.forward(y?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:y,type:"FORWARD"})},canGoBack:()=>u.state[Wn]!==0,createHref:y=>l.createHref(y),block:y=>{if(!l.setBlockers)return()=>{};const m=l.getBlockers?.()??[];return l.setBlockers([...m,y]),()=>{const v=l.getBlockers?.()??[];l.setBlockers?.(v.filter(d=>d!==y))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Xm(l,u){u||(u={});const s=fr();return{...u,key:s,__TSR_key:s,[Wn]:l}}function v0(l){const u=typeof document<"u"?window:void 0,s=u.history.pushState,o=u.history.replaceState;let r=[];const h=()=>r,y=H=>r=H,m=(H=>H),v=(()=>us(`${u.location.pathname}${u.location.search}${u.location.hash}`,u.history.state));if(!u.history.state?.__TSR_key&&!u.history.state?.key){const H=fr();u.history.replaceState({[Wn]:0,key:H,__TSR_key:H},"")}let d=v(),g,S=!1,b=!1,_=!1,M=!1;const C=()=>d;let L,q;const Y=()=>{L&&(G._ignoreSubscribers=!0,(L.isPush?u.history.pushState:u.history.replaceState)(L.state,"",L.href),G._ignoreSubscribers=!1,L=void 0,q=void 0,g=void 0)},X=(H,Z,ut)=>{const tt=m(Z);q||(g=d),d=us(Z,ut),L={href:tt,state:ut,isPush:L?.isPush||H==="push"},q||(q=Promise.resolve().then(()=>Y()))},Q=H=>{d=v(),G.notify({type:H})},I=async()=>{if(b){b=!1;return}const H=v(),Z=H.state[Wn]-d.state[Wn],ut=Z===1,tt=Z===-1,F=!ut&&!tt||S;S=!1;const Et=F?"GO":tt?"BACK":"FORWARD",bt=F?{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:H,action:Et})){b=!0,u.history.go(1),G.notify(bt);return}}}d=v(),G.notify(bt)},$=H=>{if(M){M=!1;return}let Z=!1;const ut=h();if(typeof document<"u"&&ut.length)for(const tt of ut){const F=tt.enableBeforeUnload??!0;if(F===!0){Z=!0;break}if(typeof F=="function"&&F()===!0){Z=!0;break}}if(Z)return H.preventDefault(),H.returnValue=""},G=p0({getLocation:C,getLength:()=>u.history.length,pushState:(H,Z)=>X("push",H,Z),replaceState:(H,Z)=>X("replace",H,Z),back:H=>(H&&(_=!0),M=!0,u.history.back()),forward:H=>{H&&(_=!0),M=!0,u.history.forward()},go:H=>{S=!0,u.history.go(H)},createHref:H=>m(H),flush:Y,destroy:()=>{u.history.pushState=s,u.history.replaceState=o,u.removeEventListener(Gm,$,{capture:!0}),u.removeEventListener(Ym,I)},onBlocked:()=>{g&&d!==g&&(d=g)},getBlockers:h,setBlockers:y,notifyOnIndexChange:!1});return u.addEventListener(Gm,$,{capture:!0}),u.addEventListener(Ym,I),u.history.pushState=function(...H){const Z=s.apply(u.history,H);return G._ignoreSubscribers||Q("PUSH"),Z},u.history.replaceState=function(...H){const Z=o.apply(u.history,H);return G._ignoreSubscribers||Q("REPLACE"),Z},G}function g0(l){let u=l.replace(/[\x00-\x1f\x7f]/g,"");return u.startsWith("//")&&(u="/"+u.replace(/^\/+/,"")),u}function us(l,u){const s=g0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=fr();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||{[Wn]:0,key:h,__TSR_key:h}}}function fr(){return(Math.random()+1).toString(36).substring(7)}const S0=!1;function Ei(l){let u;return y0(()=>{u=l()}),u}function Mi(l){return l[l.length-1]}function b0(l){return typeof l=="function"}function Jn(l,u){return b0(l)?l(u):l}const _0=Object.prototype.hasOwnProperty,Vm=Object.prototype.propertyIsEnumerable;function Re(l,u,s=0){if(l===u)return l;if(s>500)return u;const o=u,r=Pm(l)&&Pm(o);if(!r&&!(ss(l)&&ss(o)))return o;const h=r?l:Km(l);if(!h)return o;const y=r?o:Km(o);if(!y)return o;const m=h.length,v=y.length,d=r?new Array(v):{};let g=0;for(let S=0;S<v;S++){const b=r?S:y[S],_=l[b],M=o[b];if(_===M){d[b]=_,(r?S<m:_0.call(l,b))&&g++;continue}if(_===null||M===null||typeof _!="object"||typeof M!="object"){d[b]=M;continue}const C=Re(_,M,s+1);d[b]=C,C===_&&g++}return m===v&&g===m?l:d}function Km(l){const u=Object.getOwnPropertyNames(l);for(const r of u)if(!Vm.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(!Vm.call(l,r))return!1;o.push(r)}return o}function ss(l){if(!Zm(l))return!1;const u=l.constructor;if(typeof u>"u")return!0;const s=u.prototype;return!(!Zm(s)||!s.hasOwnProperty("isPrototypeOf"))}function Zm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Pm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Ea(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(!Ea(l[o],u[o],s))return!1;return!0}if(ss(l)&&ss(u)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const y in u)if((!o||u[y]!==void 0)&&!Ea(l[y],u[y],s))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const y in l)l[y]!==void 0&&r++;let h=0;for(const y in u)if((!o||u[y]!==void 0)&&(h++,h>r||!Ea(l[y],u[y],s)))return!1;return r===h}return!1}function vl(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 yl(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function E0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Jm(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 E0(u)}const R0=["http:","https:","mailto:","tel:"];function cs(l,u){if(!l)return!1;try{const s=new URL(l);return!u.has(s.protocol)}catch{return!1}}function vi(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+=Jm(l.slice(s,r.index))+r[0],s=u.lastIndex;o=o+Jm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function T0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}var M0="Invariant failed";function bn(l,u){if(!l)throw new Error(M0)}function os(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 y=u.get(h);if(y)return r(y),y.value},set(h,y){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 m=u.get(h);if(m)m.value=y,r(m);else{const v={key:h,value:y,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 gl=0,Oa=1,Ca=2,Oi=3,ba=4,zy=5;function O0(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 hr(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]=gl,s[1]=u,s[2]=u,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const m=l.length;return s[0]=Ca,s[1]=u,s[2]=u,s[3]=m,s[4]=m,s[5]=m,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 y=O0(h);if(y){const[m,v]=y,d=h.charCodeAt(m+1);if(d===45){if(m+2<h.length&&h.charCodeAt(m+2)===36){const g=m+3,S=v;if(g<S)return s[0]=Oi,s[1]=u+m,s[2]=u+g,s[3]=u+S,s[4]=u+v+1,s[5]=r,s}}else if(d===36){const g=m+1,S=m+2;return S===v?(s[0]=Ca,s[1]=u+m,s[2]=u+g,s[3]=u+S,s[4]=u+v+1,s[5]=l.length,s):(s[0]=Oa,s[1]=u+m,s[2]=u+S,s[3]=u+v,s[4]=u+v+1,s[5]=r,s)}}return s[0]=gl,s[1]=u,s[2]=u,s[3]=r,s[4]=r,s[5]=r,s}function ms(l,u,s,o,r,h,y){y?.(s);let m=o;{const v=s.fullPath??s.from,d=v.length,g=s.options?.caseSensitive??l,S=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;m<d;){const _=hr(v,m,u);let M;const C=m,L=_[5];switch(m=L+1,h++,_[0]){case gl:{const Y=v.substring(_[2],_[3]);if(g){const X=r.static?.get(Y);if(X)M=X;else{r.static??=new Map;const Q=_a(s.fullPath??s.from);Q.parent=r,Q.depth=h,M=Q,r.static.set(Y,Q)}}else{const X=Y.toLowerCase(),Q=r.staticInsensitive?.get(X);if(Q)M=Q;else{r.staticInsensitive??=new Map;const I=_a(s.fullPath??s.from);I.parent=r,I.depth=h,M=I,r.staticInsensitive.set(X,I)}}break}case Oa:{const Y=v.substring(C,_[1]),X=v.substring(_[4],L),Q=g&&!!(Y||X),I=Y?Q?Y:Y.toLowerCase():void 0,$=X?Q?X:X.toLowerCase():void 0,G=!S&&r.dynamic?.find(H=>!H.skipOnParamError&&H.caseSensitive===Q&&H.prefix===I&&H.suffix===$);if(G)M=G;else{const H=Ho(Oa,s.fullPath??s.from,Q,I,$);M=H,H.depth=h,H.parent=r,r.dynamic??=[],r.dynamic.push(H)}break}case Oi:{const Y=v.substring(C,_[1]),X=v.substring(_[4],L),Q=g&&!!(Y||X),I=Y?Q?Y:Y.toLowerCase():void 0,$=X?Q?X:X.toLowerCase():void 0,G=!S&&r.optional?.find(H=>!H.skipOnParamError&&H.caseSensitive===Q&&H.prefix===I&&H.suffix===$);if(G)M=G;else{const H=Ho(Oi,s.fullPath??s.from,Q,I,$);M=H,H.parent=r,H.depth=h,r.optional??=[],r.optional.push(H)}break}case Ca:{const Y=v.substring(C,_[1]),X=v.substring(_[4],L),Q=g&&!!(Y||X),I=Y?Q?Y:Y.toLowerCase():void 0,$=X?Q?X:X.toLowerCase():void 0,G=Ho(Ca,s.fullPath??s.from,Q,I,$);M=G,G.parent=r,G.depth=h,r.wildcard??=[],r.wildcard.push(G)}}r=M}if(S&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=_a(s.fullPath??s.from);_.kind=zy,_.parent=r,h++,_.depth=h,r.pathless??=[],r.pathless.push(_),r=_}const b=(s.path||!s.children)&&!s.isRoot;if(b&&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,b&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const v of s.children)ms(l,u,v,m,r,h,y)}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 Pn(l){if(l.pathless)for(const u of l.pathless)Pn(u);if(l.static)for(const u of l.static.values())Pn(u);if(l.staticInsensitive)for(const u of l.staticInsensitive.values())Pn(u);if(l.dynamic?.length){l.dynamic.sort(jo);for(const u of l.dynamic)Pn(u)}if(l.optional?.length){l.optional.sort(jo);for(const u of l.optional)Pn(u)}if(l.wildcard?.length){l.wildcard.sort(jo);for(const u of l.wildcard)Pn(u)}}function _a(l){return{kind:gl,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 C0(l,u){const s=_a("/"),o=new Uint16Array(6);for(const r of l)ms(!1,o,r,1,s,0);Pn(s),u.masksTree=s,u.flatCache=os(1e3)}function A0(l,u){l||="/";const s=u.flatCache.get(l);if(s)return s;const o=dr(l,u.masksTree);return u.flatCache.set(l,o),o}function x0(l,u,s,o,r){l||="/",o||="/";const h=u?`case\0${l}`:l;let y=r.singleCache.get(h);if(!y){y=_a("/");const m=new Uint16Array(6);ms(u,m,{from:l},1,y,0),r.singleCache.set(h,y)}return dr(o,y,s)}function z0(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=dr(l,u.segmentTree,s)}catch(y){if(y instanceof URIError)h=null;else throw y}return h&&(h.branch=L0(h.route)),u.matchCache.set(o,h),h}function D0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function U0(l,u=!1,s){const o=_a(l.fullPath),r=new Uint16Array(6),h={},y={};let m=0;return ms(u,r,l,1,o,0,d=>{if(s?.(d,m),bn(!(d.id in h),`Duplicate routes found with id: ${String(d.id)}`),h[d.id]=d,m!==0&&d.path){const g=D0(d.fullPath);(!y[g]||d.fullPath.endsWith("/"))&&(y[g]=d)}m++}),Pn(o),{processedTree:{segmentTree:o,singleCache:os(1e3),matchCache:os(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:y}}function dr(l,u,s=!1){const o=l.split("/"),r=N0(l,o,u,s);if(!r)return null;const[h]=Dy(l,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function Dy(l,u,s){const o=w0(s.node);let r=null;const h={};let y=s.extract?.part??0,m=s.extract?.node??0,v=s.extract?.path??0,d=s.extract?.segment??0;for(;m<o.length;y++,m++,v++,d++){const g=o[m];if(g.kind===ba)break;if(g.kind===zy){d--,y--,v--;continue}const S=u[y],b=v;if(S&&(v+=S.length),g.kind===Oa){r??=s.node.fullPath.split("/");const _=r[d],M=g.prefix?.length??0;if(_.charCodeAt(M)===123){const L=g.suffix?.length??0,q=_.substring(M+2,_.length-L-1),Y=S.substring(M,S.length-L);h[q]=decodeURIComponent(Y)}else{const L=_.substring(1);h[L]=decodeURIComponent(S)}}else if(g.kind===Oi){if(s.skipped&1<<m){y--,v=b-1;continue}r??=s.node.fullPath.split("/");const _=r[d],M=g.prefix?.length??0,C=g.suffix?.length??0,L=_.substring(M+3,_.length-C-1),q=g.suffix||g.prefix?S.substring(M,S.length-C):S;q&&(h[L]=decodeURIComponent(q))}else if(g.kind===Ca){const _=g,M=l.substring(b+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),C=decodeURIComponent(M);h["*"]=C,h._splat=C;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:y,node:m,path:v,segment:d}]}function L0(l){const u=[l];for(;l.parentRoute;)l=l.parentRoute,u.push(l);return u.reverse(),u}function w0(l){const u=Array(l.depth+1);do u[l.depth]=l,l=l.parent;while(l);return u}function N0(l,u,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!Mi(u),h=r&&l!=="/",y=u.length-(r?1:0),m=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let v=null,d=null,g=null;for(;m.length;){const S=m.pop(),{node:b,index:_,skipped:M,depth:C,statics:L,dynamics:q,optionals:Y}=S;let{extract:X,rawParams:Q,parsedParams:I}=S;if(b.skipOnParamError){if(!qo(l,u,S))continue;Q=S.rawParams,X=S.extract,I=S.parsedParams}o&&b.route&&b.kind!==ba&&gi(d,S)&&(d=S);const $=_===y;if($&&(b.route&&!h&&gi(g,S)&&(g=S),!b.optional&&!b.wildcard&&!b.index&&!b.pathless))continue;const G=$?void 0:u[_];let H;if($&&b.index){const Z={node:b.index,index:_,skipped:M,depth:C+1,statics:L,dynamics:q,optionals:Y,extract:X,rawParams:Q,parsedParams:I};let ut=!0;if(b.index.skipOnParamError&&(qo(l,u,Z)||(ut=!1)),ut){if(L===y&&!q&&!Y&&!M)return Z;gi(g,Z)&&(g=Z)}}if(b.wildcard&&gi(v,S))for(const Z of b.wildcard){const{prefix:ut,suffix:tt}=Z;if(ut&&($||!(Z.caseSensitive?G:H??=G.toLowerCase()).startsWith(ut)))continue;if(tt){if($)continue;const Et=u.slice(_).join("/").slice(-tt.length);if((Z.caseSensitive?Et:Et.toLowerCase())!==tt)continue}const F={node:Z,index:y,skipped:M,depth:C,statics:L,dynamics:q,optionals:Y,extract:X,rawParams:Q,parsedParams:I};if(!(Z.skipOnParamError&&!qo(l,u,F))){v=F;break}}if(b.optional){const Z=M|1<<C,ut=C+1;for(let tt=b.optional.length-1;tt>=0;tt--){const F=b.optional[tt];m.push({node:F,index:_,skipped:Z,depth:ut,statics:L,dynamics:q,optionals:Y,extract:X,rawParams:Q,parsedParams:I})}if(!$)for(let tt=b.optional.length-1;tt>=0;tt--){const F=b.optional[tt],{prefix:Et,suffix:bt}=F;if(Et||bt){const Yt=F.caseSensitive?G:H??=G.toLowerCase();if(Et&&!Yt.startsWith(Et)||bt&&!Yt.endsWith(bt))continue}m.push({node:F,index:_+1,skipped:M,depth:ut,statics:L,dynamics:q,optionals:Y+1,extract:X,rawParams:Q,parsedParams:I})}}if(!$&&b.dynamic&&G)for(let Z=b.dynamic.length-1;Z>=0;Z--){const ut=b.dynamic[Z],{prefix:tt,suffix:F}=ut;if(tt||F){const Et=ut.caseSensitive?G:H??=G.toLowerCase();if(tt&&!Et.startsWith(tt)||F&&!Et.endsWith(F))continue}m.push({node:ut,index:_+1,skipped:M,depth:C+1,statics:L,dynamics:q+1,optionals:Y,extract:X,rawParams:Q,parsedParams:I})}if(!$&&b.staticInsensitive){const Z=b.staticInsensitive.get(H??=G.toLowerCase());Z&&m.push({node:Z,index:_+1,skipped:M,depth:C+1,statics:L+1,dynamics:q,optionals:Y,extract:X,rawParams:Q,parsedParams:I})}if(!$&&b.static){const Z=b.static.get(G);Z&&m.push({node:Z,index:_+1,skipped:M,depth:C+1,statics:L+1,dynamics:q,optionals:Y,extract:X,rawParams:Q,parsedParams:I})}if(b.pathless){const Z=C+1;for(let ut=b.pathless.length-1;ut>=0;ut--){const tt=b.pathless[ut];m.push({node:tt,index:_,skipped:M,depth:Z,statics:L,dynamics:q,optionals:Y,extract:X,rawParams:Q,parsedParams:I})}}}if(g&&v)return gi(v,g)?g:v;if(g)return g;if(v)return v;if(o&&d){let S=d.index;for(let _=0;_<d.index;_++)S+=u[_].length;const b=S===l.length?"/":l.slice(S);return d.rawParams??={},d.rawParams["**"]=decodeURIComponent(b),d}return null}function qo(l,u,s){try{const[o,r]=Dy(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 gi(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 mr(l.filter(u=>u!==void 0).join("/"))}function mr(l){return l.replace(/\/{2,}/g,"/")}function Uy(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function $n(l){const u=l.length;return u>1&&l[u-1]==="/"?l.replace(/\/{1,}$/,""):l}function Ly(l){return $n(Uy(l))}function rs(l,u){return l?.endsWith("/")&&l!=="/"&&l!==`${u}/`?l.slice(0,-1):l}function B0(l,u,s){return rs(l,s)===rs(u,s)}function j0({base:l,to:u,trailingSlash:s="never",cache:o}){const r=u.startsWith("/"),h=!r&&u===".";let y;if(o){y=r?u:h?l:l+"\0"+u;const S=o.get(y);if(S)return S}let m;if(h)m=l.split("/");else if(r)m=u.split("/");else{for(m=l.split("/");m.length>1&&Mi(m)==="";)m.pop();const S=u.split("/");for(let b=0,_=S.length;b<_;b++){const M=S[b];M===""?b?b===_-1&&m.push(M):m=[M]:M===".."?m.pop():M==="."||m.push(M)}}m.length>1&&(Mi(m)===""?s==="never"&&m.pop():s==="always"&&m.push(""));let v,d="";for(let S=0;S<m.length;S++){S>0&&(d+="/");const b=m[S];if(!b)continue;v=hr(b,0,v);const _=v[0];if(_===gl){d+=b;continue}const M=v[5],C=b.substring(0,v[1]),L=b.substring(v[4],M),q=b.substring(v[2],v[3]);_===Oa?d+=C||L?`${C}{$${q}}${L}`:`$${q}`:_===Ca?d+=C||L?`${C}{$}${L}`:"$":d+=`${C}{-$${q}}${L}`}d=mr(d);const g=d||"/";return y&&o&&o.set(y,g),g}function H0(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=>Fm(r,s)).join("/"):Fm(o,s)}function km({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 y=l.length;let m=0,v,d="";for(;m<y;){const S=m;v=hr(l,S,v);const b=v[5];if(m=b+1,S===b)continue;const _=v[0];if(_===gl){d+="/"+l.substring(S,b);continue}if(_===Ca){const M=u._splat;h._splat=M,h["*"]=M;const C=l.substring(S,v[1]),L=l.substring(v[4],b);if(!M){r=!0,(C||L)&&(d+="/"+C+L);continue}const q=Qo("_splat",u,s);d+="/"+C+q+L;continue}if(_===Oa){const M=l.substring(v[2],v[3]);!r&&!(M in u)&&(r=!0),h[M]=u[M];const C=l.substring(S,v[1]),L=l.substring(v[4],b),q=Qo(M,u,s)??"undefined";d+="/"+C+q+L;continue}if(_===Oi){const M=l.substring(v[2],v[3]),C=u[M];if(C==null)continue;h[M]=C;const L=l.substring(S,v[1]),q=l.substring(v[4],b),Y=Qo(M,u,s)??"";d+="/"+L+Y+q;continue}}return l.endsWith("/")&&(d+="/"),{usedParams:h,interpolatedPath:d||"/",isMissingParams:r}}function Fm(l,u){const s=encodeURIComponent(l);return u?.(s)??s}function Te(l){return!!l?.isNotFound}function q0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const ar="tsr-scroll-restoration-v1_3",Q0=(l,u)=>{let s;return(...o)=>{s||(s=setTimeout(()=>{l(...o),s=null},u))}};function Y0(){const l=q0();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=Y0(),G0=l=>l.state.__TSR_key||l.href;function X0(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 fs=!1;function V0({storageKey:l,key:u,behavior:s,shouldScrollRestoration:o,scrollToTopSelectors:r,location:h}){let y;try{y=JSON.parse(sessionStorage.getItem(l)||"{}")}catch(d){console.error(d);return}const m=u||window.history.state?.__TSR_key,v=y[m];fs=!0;t:{if(o&&v&&Object.keys(v).length>0){for(const S in v){const b=v[S];if(S==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:s});else if(S){const _=document.querySelector(S);_&&(_.scrollLeft=b.scrollX,_.scrollTop=b.scrollY)}}break t}const d=(h??window.location).hash.split("#",2)[1];if(d){const S=window.history.state?.__hashScrollIntoViewOptions??!0;if(S){const b=document.getElementById(d);b&&b.scrollIntoView(S)}break t}const g={top:0,left:0,behavior:s};if(window.scrollTo(g),r)for(const S of r){if(S==="window")continue;const b=typeof S=="function"?S():document.querySelector(S);b&&b.scrollTo(g)}}fs=!1}function K0(l,u){if(!Fu||((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!Fu))return;l.isScrollRestorationSetup=!0,fs=!1;const o=l.options.getScrollRestorationKey||G0;window.history.scrollRestoration="manual";const r=h=>{if(fs||!l.isScrollRestoring)return;let y="";if(h.target===document||h.target===window)y="window";else{const v=h.target.getAttribute("data-scroll-restoration-id");v?y=`[data-scroll-restoration-id="${v}"]`:y=X0(h.target)}const m=o(l.state.location);Fu.set(v=>{const d=v[m]||={},g=d[y]||={};if(y==="window")g.scrollX=window.scrollX||0,g.scrollY=window.scrollY||0;else if(y){const S=document.querySelector(y);S&&(g.scrollX=S.scrollLeft||0,g.scrollY=S.scrollTop||0)}return v})};typeof document<"u"&&document.addEventListener("scroll",Q0(r,100),!0),l.subscribe("onRendered",h=>{const y=o(h.toLocation);if(!l.resetNextScroll){l.resetNextScroll=!0;return}typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation})||(V0({storageKey:ar,key:y,behavior:l.options.scrollRestorationBehavior,shouldScrollRestoration:l.isScrollRestoring,scrollToTopSelectors:l.options.scrollToTopSelectors,location:l.history.location}),l.isScrollRestoring&&Fu.set(m=>(m[y]||={},m)))})}function Z0(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 P0(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 J0(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 k0=W0(JSON.parse),F0=$0(JSON.stringify,JSON.parse);function W0(l){return u=>{u[0]==="?"&&(u=u.substring(1));const s=J0(u);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function $0(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=P0(r,o);return h?`?${h}`:""}}const Be="__root__";function I0(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 je(l){return l instanceof Response&&!!l.options}const ts=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},ys=(l,u)=>!!(l.preload&&!l.router.state.matches.some(s=>s.id===u)),pl=(l,u,s=!0)=>{const o={...l.router.options.context??{}},r=s?u:u-1;for(let h=0;h<=r;h++){const y=l.matches[h];if(!y)continue;const m=l.router.getMatch(y.id);m&&Object.assign(o,m.__routeContext,m.__beforeLoadContext)}return o},wy=(l,u,s)=>{const o=l.router.routesById[u.routeId??""]??l.router.routeTree;!o.options.notFoundComponent&&l.router.options?.defaultNotFoundComponent&&(o.options.notFoundComponent=l.router.options.defaultNotFoundComponent);const r=s==="BEFORE_LOAD"&&o.parentRoute;r||bn(o.options.notFoundComponent);const h=l.matches.find(y=>y.routeId===o.id);bn(h,"Could not find match for route: "+o.id),l.updateMatch(h.id,y=>({...y,status:"notFound",error:u,isFetching:!1})),r&&(u.routeId=o.parentRoute.id,wy(l,u,s))},kn=(l,u,s,o)=>{if(!(!je(s)&&!Te(s))){if(je(s)&&s.redirectHandled&&!s.options.reloadDocument)throw s;if(u){u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.loaderPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loaderPromise=void 0;const r=je(s)?"redirected":"notFound";u._nonReactive.error=s,l.updateMatch(u.id,h=>({...h,status:r,context:pl(l,u.index),isFetching:!1,error:s})),Te(s)&&!s.routeId&&(s.routeId=u.routeId),u._nonReactive.loadPromise?.resolve()}throw je(s)?(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s),s):(wy(l,s,o),s)}},Ny=(l,u)=>!!l.router.getMatch(u)._nonReactive.dehydrated,Si=(l,u,s,o)=>{const{id:r,routeId:h}=l.matches[u],y=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=u,kn(l,l.router.getMatch(r),s,o);try{y.options.onError?.(s)}catch(m){s=m,kn(l,l.router.getMatch(r),s,o)}l.updateMatch(r,m=>(m._nonReactive.beforeLoadPromise?.resolve(),m._nonReactive.beforeLoadPromise=void 0,m._nonReactive.loadPromise?.resolve(),{...m,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},By=(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 y=setTimeout(()=>{ts(l)},r);o._nonReactive.pendingTimeout=y}},tS=(l,u,s)=>{const o=l.router.getMatch(u);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;By(l,u,s,o);const r=()=>{const h=l.router.getMatch(u);h.preload&&(h.status==="redirected"||h.status==="notFound")&&kn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},eS=(l,u,s,o)=>{const r=l.router.getMatch(u),h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=vl(()=>{h?.resolve()});const{paramsError:y,searchError:m}=r;y&&Si(l,s,y,"PARSE_PARAMS"),m&&Si(l,s,m,"VALIDATE_SEARCH"),By(l,u,o,r);const v=new AbortController;let d=!1;const g=()=>{d||(d=!0,l.updateMatch(u,Q=>({...Q,isFetching:"beforeLoad",fetchCount:Q.fetchCount+1,abortController:v})))},S=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(u,Q=>({...Q,isFetching:!1}))};if(!o.options.beforeLoad){Ei(()=>{g(),S()});return}r._nonReactive.beforeLoadPromise=vl();const b={...pl(l,s,!1),...r.__routeContext},{search:_,params:M,cause:C}=r,L=ys(l,u),q={search:_,abortController:v,params:M,preload:L,context:b,location:l.location,navigate:Q=>l.router.navigate({...Q,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:L?"preload":C,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},Y=Q=>{if(Q===void 0){Ei(()=>{g(),S()});return}(je(Q)||Te(Q))&&(g(),Si(l,s,Q,"BEFORE_LOAD")),Ei(()=>{g(),l.updateMatch(u,I=>({...I,__beforeLoadContext:Q})),S()})};let X;try{if(X=o.options.beforeLoad(q),yl(X))return g(),X.catch(Q=>{Si(l,s,Q,"BEFORE_LOAD")}).then(Y)}catch(Q){g(),Si(l,s,Q,"BEFORE_LOAD")}Y(X)},nS=(l,u)=>{const{id:s,routeId:o}=l.matches[u],r=l.router.looseRoutesById[o],h=()=>m(),y=()=>eS(l,s,u,r),m=()=>{if(Ny(l,s))return;const v=tS(l,s,r);return yl(v)?v.then(y):y()};return h()},aS=(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,y,m])=>{const v=h?.meta,d=h?.links,g=h?.scripts,S=h?.styles;return{meta:v,links:d,headScripts:g,headers:m,scripts:y,styles:S}})},jy=(l,u,s,o)=>{const r=l.matchPromises[s-1],{params:h,loaderDeps:y,abortController:m,cause:v}=l.router.getMatch(u),d=pl(l,s),g=ys(l,u);return{params:h,deps:y,preload:!!g,parentMatchPromise:r,abortController:m,context:d,location:l.location,navigate:S=>l.router.navigate({...S,_fromLocation:l.location}),cause:g?"preload":v,route:o,...l.router.options.additionalContext}},Wm=async(l,u,s,o)=>{try{const r=l.router.getMatch(u);try{(!(S0??l.router.isServer)||r.ssr===!0)&&Hy(o);const h=o.options.loader?.(jy(l,u,s,o)),y=o.options.loader&&yl(h);if((y||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||r._nonReactive.minPendingPromise)&&l.updateMatch(u,d=>({...d,isFetching:"loader"})),o.options.loader){const d=y?await h:h;kn(l,l.router.getMatch(u),d),d!==void 0&&l.updateMatch(u,g=>({...g,loaderData:d}))}o._lazyPromise&&await o._lazyPromise;const v=r._nonReactive.minPendingPromise;v&&await v,o._componentsPromise&&await o._componentsPromise,l.updateMatch(u,d=>({...d,error:void 0,context:pl(l,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(h){let y=h;if(y?.name==="AbortError"){if(r.abortController.signal.aborted){r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loaderPromise=void 0;return}l.updateMatch(u,v=>({...v,status:v.status==="pending"?"success":v.status,isFetching:!1,context:pl(l,s)}));return}const m=r._nonReactive.minPendingPromise;m&&await m,Te(h)&&await o.options.notFoundComponent?.preload?.(),kn(l,l.router.getMatch(u),h);try{o.options.onError?.(h)}catch(v){y=v,kn(l,l.router.getMatch(u),v)}l.updateMatch(u,v=>({...v,error:y,context:pl(l,s),status:"error",isFetching:!1}))}}catch(r){const h=l.router.getMatch(u);h&&(h._nonReactive.loaderPromise=void 0),kn(l,h,r)}},lS=async(l,u)=>{async function s(g,S,b,_){const M=Date.now()-S.updatedAt,C=g?_.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??l.router.options.defaultStaleTime??0,L=_.options.shouldReload,q=typeof L=="function"?L(jy(l,o,u,_)):L,{status:Y,invalid:X}=b;h=Y==="success"&&(X||(q??M>C)),g&&_.options.preload===!1||(h&&!l.sync?(y=!0,(async()=>{try{await Wm(l,o,u,_);const Q=l.router.getMatch(o);Q._nonReactive.loaderPromise?.resolve(),Q._nonReactive.loadPromise?.resolve(),Q._nonReactive.loaderPromise=void 0}catch(Q){je(Q)&&await l.router.navigate(Q.options)}})()):(Y!=="success"||h&&l.sync)&&await Wm(l,o,u,_))}const{id:o,routeId:r}=l.matches[u];let h=!1,y=!1;const m=l.router.looseRoutesById[r];if(!Ny(l,o)){const g=l.router.getMatch(o),S=ys(l,o);if(g._nonReactive.loaderPromise){if(g.status==="success"&&!l.sync&&!g.preload)return g;await g._nonReactive.loaderPromise;const b=l.router.getMatch(o),_=b._nonReactive.error||b.error;_&&kn(l,b,_),b.status==="pending"&&await s(S,g,b,m)}else{const b=S&&!l.router.state.matches.some(M=>M.id===o),_=l.router.getMatch(o);_._nonReactive.loaderPromise=vl(),b!==_.preload&&l.updateMatch(o,M=>({...M,preload:b})),await s(S,g,_,m)}}const v=l.router.getMatch(o);y||(v._nonReactive.loaderPromise?.resolve(),v._nonReactive.loadPromise?.resolve()),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,y||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const d=y?v.isFetching:!1;return d!==v.isFetching||v.invalid!==!1?(l.updateMatch(o,g=>({...g,isFetching:d,invalid:!1})),l.router.getMatch(o)):v};async function $m(l){const u=Object.assign(l,{matchPromises:[]});u.router.state.matches.some(s=>s._forcePending)&&ts(u);try{for(let m=0;m<u.matches.length;m++){const v=nS(u,m);yl(v)&&await v}const s=u.firstBadMatchIndex??u.matches.length;for(let m=0;m<s;m++)u.matchPromises.push(lS(u,m));const r=(await Promise.allSettled(u.matchPromises)).filter(m=>m.status==="rejected").map(m=>m.reason);let h;for(const m of r){if(je(m))throw m;!h&&Te(m)&&(h=m)}for(const m of u.matches){const{id:v,routeId:d}=m,g=u.router.looseRoutesById[d];try{const S=aS(u,v,g);if(S){const b=await S;u.updateMatch(v,_=>({..._,...b}))}}catch(S){console.error(`Error executing head for route ${d}:`,S)}}if(h)throw h;const y=ts(u);yl(y)&&await y}catch(s){if(Te(s)&&!u.preload){const o=ts(u);throw yl(o)&&await o,s}if(je(s))throw s}return u.matches}async function Hy(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 Qy){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 Qy)if(l.options[u]?.preload)return!0;return!1}const Qy=["component","errorComponent","pendingComponent","notFoundComponent"];function iS(l){return{input:({url:u})=>{for(const s of l)u=lr(s,u);return u},output:({url:u})=>{for(let s=l.length-1;s>=0;s--)u=Yy(l[s],u);return u}}}function uS(l){const u=Ly(l.basepath),s=`/${u}`,o=`${s}/`,r=l.caseSensitive?s:s.toLowerCase(),h=l.caseSensitive?o:o.toLowerCase();return{input:({url:y})=>{const m=l.caseSensitive?y.pathname:y.pathname.toLowerCase();return m===r?y.pathname="/":m.startsWith(h)&&(y.pathname=y.pathname.slice(s.length)),y},output:({url:y})=>(y.pathname=Iu(["/",u,y.pathname]),y)}}function lr(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 Yy(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 Ra(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 sS(l){const u=l.filter(s=>s.status!=="redirected");return u.length===l.length?l:u}class cS{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,y=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=H0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=v0()),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 b;this.resolvePathCache=os(1e3),b=this.buildRouteTree(),this.setRoutes(b)}!this.__store&&this.latestLocation&&(this.__store=new m0(rS(this.latestLocation)),K0(this));let m=!1;const v=this.options.basepath??"/",d=this.options.rewrite;if(h||r!==v||y!==d){this.basepath=v;const b=[],_=Ly(v);_&&_!=="/"&&b.push(uS({basepath:v})),d&&b.push(d),this.rewrite=b.length===0?void 0:b.length===1?b[0]:iS(b),this.history&&this.updateLatestLocation(),m=!0}m&&this.__store&&this.__store.setState(b=>({...b,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=U0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&C0(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:g,href:S,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(v)){const Y=this.options.parseSearch(d),X=this.options.stringifySearch(Y);return{href:v+X+g,publicHref:S,pathname:vi(v).path,external:!1,searchStr:X,search:Re(o?.search,Y),hash:vi(g.slice(1)).path,state:Re(o?.state,b)}}const _=new URL(S,this.origin),M=lr(this.rewrite,_),C=this.options.parseSearch(M.search),L=this.options.stringifySearch(C);return M.search=L,{href:M.href.replace(M.origin,""),publicHref:S,pathname:vi(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:L,search:Re(o?.search,C),hash:vi(M.hash.slice(1)).path,state:Re(o?.state,b)}},h=r(s),{__tempLocation:y,__tempKey:m}=h.state;if(y&&(!m||m===this.tempLocationKey)){const v=r(y);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)=>j0({base:s,to:mr(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=>fS({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 y=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(y);h.from;const v=h.unsafeRelative==="path"?y.pathname:h.from??m.fullPath,d=this.resolvePathWithBase(v,"."),g=m.search,S={...m.params},b=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)),M=this.getMatchedRoutes(b);let C=M.matchedRoutes;if((!M.foundRoute||M.foundRoute.path!=="/"&&M.routeParams["**"])&&this.options.notFoundRoute&&(C=[...C,this.options.notFoundRoute]),Object.keys(_).length>0)for(const tt of C){const F=tt.options.params?.stringify??tt.options.stringifyParams;if(F)try{Object.assign(_,F(_))}catch{}}const q=s.leaveParams?b:vi(km({path:b,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let Y=g;if(s._includeValidateSearch&&this.options.search?.strict){const tt={};C.forEach(F=>{if(F.options.validateSearch)try{Object.assign(tt,es(F.options.validateSearch,{...tt,...Y}))}catch{}}),Y=tt}Y=hS({search:Y,dest:h,destRoutes:C,_includeValidateSearch:s._includeValidateSearch}),Y=Re(g,Y);const X=this.options.stringifySearch(Y),Q=h.hash===!0?y.hash:h.hash?Jn(h.hash,y.hash):void 0,I=Q?`#${Q}`:"";let $=h.state===!0?y.state:h.state?Jn(h.state,y.state):{};$=Re(y.state,$);const G=`${q}${X}${I}`;let H,Z,ut=!1;if(this.rewrite){const tt=new URL(G,this.origin),F=Yy(this.rewrite,tt);H=tt.href.replace(tt.origin,""),F.origin!==this.origin?(Z=F.href,ut=!0):Z=F.pathname+F.search+F.hash}else H=T0(G),Z=H;return{publicHref:Z,href:H,pathname:q,search:Y,searchStr:X,state:$,hash:Q??"",external:ut,unmaskOnReload:h.unmaskOnReload}},r=(h={},y)=>{const m=o(h);let v=y?o(y):void 0;if(!v){const d={};if(this.options.routeMasks){const g=A0(m.pathname,this.processedTree);if(g){Object.assign(d,g.rawParams);const{from:S,params:b,..._}=g.route,M=b===!1||b===null?{}:(b??!0)===!0?d:Object.assign(d,Jn(b,d));y={from:s.from,..._,params:M},v=o(y)}}}return v&&(m.maskedLocation=v),m};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(g=>{r.state[g]=this.latestLocation.state[g]});const d=Ea(r.state,this.latestLocation.state);return v.forEach(g=>{delete r.state[g]}),d},y=$n(this.latestLocation.href)===$n(r.href),m=this.commitLocationPromise;if(this.commitLocationPromise=vl(()=>{m?.resolve()}),y&&h())this.load();else{let{maskedLocation:v,hashScrollIntoView:d,...g}=r;v&&(g={...v,state:{...v.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](g.publicHref,g.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:y,href:m,...v}={})=>{if(m){const S=this.history.location.state.__TSR_index,b=us(m,{__TSR_index:s?S:S+1}),_=new URL(b.pathname,this.origin),M=lr(this.rewrite,_);v.to=M.pathname,v.search=this.options.parseSearch(b.search),v.hash=b.hash.slice(1)}const d=this.buildLocation({...v,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const g=this.commitLocation({...d,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:y});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),g},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...y})=>{let m=!1;if(r)try{new URL(`${r}`),m=!0}catch{}if(m&&!o&&(o=!0),o){if(s!==void 0||!r){const d=this.buildLocation({to:s,...y});r=r??d.publicHref,h=h??d.publicHref}const v=!m&&h?h:r;if(cs(v,this.protocolAllowlist))return Promise.resolve();if(!y.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const S of g)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return y.replace?window.location.replace(v):window.location.href=v,Promise.resolve()}return this.buildAndCommitLocation({...y,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(m=>{this.startTransition(async()=>{try{this.beforeLoad();const v=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ra({resolvedLocation:d,location:v})}),this.emit({type:"onBeforeLoad",...Ra({resolvedLocation:d,location:v})}),await $m({router:this,sync:s?.sync,matches:this.state.pendingMatches,location:v,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=[],S=[],b=[];Ei(()=>{this.__store.setState(_=>{const M=_.matches,C=_.pendingMatches||_.matches;return g=M.filter(L=>!C.some(q=>q.id===L.id)),S=C.filter(L=>!M.some(q=>q.id===L.id)),b=C.filter(L=>M.some(q=>q.id===L.id)),{..._,isLoading:!1,loadedAt:Date.now(),matches:C,pendingMatches:void 0,cachedMatches:[..._.cachedMatches,...g.filter(L=>L.status!=="error"&&L.status!=="notFound"&&L.status!=="redirected")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[S,"onEnter"],[b,"onStay"]].forEach(([_,M])=>{_.forEach(C=>{this.looseRoutesById[C.routeId].options[M]?.(C)})})})})}})}catch(v){je(v)?(o=v,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Te(v)&&(r=v),this.__store.setState(d=>({...d,statusCode:o?o.status:r?404:d.matches.some(g=>g.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.__store.state.matches.some(m=>m.status==="error")&&(y=500),y!==void 0&&this.__store.setState(m=>({...m,statusCode:y}))},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,y=this.state.resolvedLocation,m=typeof o.types=="function"?o.types(Ra({resolvedLocation:y,location:h})):o.types;if(m===!1){s();return}r={update:s,types:m}}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:sS(h.cachedMatches.map(y=>y.id===s?o(y):y))})):this.__store.setState(h=>({...h,[r]:h[r]?.map(y=>y.id===s?o(y):y)})))})},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&&cs(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=Hy,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(m=>m.id)),y=new Set([...h,...this.state.cachedMatches.map(m=>m.id)]);Ei(()=>{r.forEach(m=>{y.has(m.id)||this.__store.setState(v=>({...v,cachedMatches:[...v.cachedMatches,m]}))})});try{return r=await $m({router:this,matches:r,location:o,preload:!0,updateMatch:(m,v)=>{h.has(m)?r=r.map(d=>d.id===m?v(d):d):this.updateMatch(m,v)}}),r}catch(m){if(je(m))return m.options.reloadDocument?void 0:await this.preloadRoute({...m.options,_fromLocation:o});Te(m)||console.error(m);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 m=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,v=x0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,m.pathname,this.processedTree);return!v||s.params&&!Ea(v.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?Ea(m.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??F0,parseSearch:u.parseSearch??k0,protocolAllowlist:u.protocolAllowlist??R0}),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:y}=o;let{matchedRoutes:m}=o,v=!1;(r?r.path!=="/"&&h["**"]:$n(u.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:v=!0);const d=v?mS(this.options.notFoundMode,m):void 0,g=new Array(m.length),S=new Map(this.state.matches.map(b=>[b.routeId,b]));for(let b=0;b<m.length;b++){const _=m[b],M=g[b-1];let C,L,q;{const bt=M?.search??u.search,Yt=M?._strictSearch??void 0;try{const U=es(_.options.validateSearch,{...bt})??void 0;C={...bt,...U},L={...Yt,...U},q=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={},q=V}}const Y=_.options.loaderDeps?.({search:C})??"",X=Y?JSON.stringify(Y):"",{interpolatedPath:Q,usedParams:I}=km({path:_.fullPath,params:h,decoder:this.pathParamsDecoder,server:this.isServer}),$=_.id+Q+X,G=this.getMatch($),H=S.get(_.id),Z=G?._strictParams??I;let ut;if(!G)try{Im(_,I,y,Z)}catch(bt){if(Te(bt)||je(bt)?ut=bt:ut=new oS(bt.message,{cause:bt}),s?.throwOnError)throw ut}Object.assign(h,Z);const tt=H?"stay":"enter";let F;if(G)F={...G,cause:tt,params:H?.params??h,_strictParams:Z,search:Re(H?H.search:G.search,C),_strictSearch:L};else{const bt=_.options.loader||_.options.beforeLoad||_.lazyFn||qy(_)?"pending":"success";F={id:$,ssr:_.options.ssr,index:b,routeId:_.id,params:H?.params??h,_strictParams:Z,pathname:Q,updatedAt:Date.now(),search:H?Re(H.search,C):C,_strictSearch:L,searchError:void 0,status:bt,isFetching:!1,error:void 0,paramsError:ut,__routeContext:void 0,_nonReactive:{loadPromise:vl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:tt,loaderDeps:H?Re(H.loaderDeps,Y):Y,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:_.options.staticData||{},fullPath:_.fullPath}}s?.preload||(F.globalNotFound=d===_.id),F.searchError=q;const Et=this.getParentContext(M);F.context={...Et,...F.__routeContext,...F.__beforeLoadContext},g[b]=F}for(let b=0;b<g.length;b++){const _=g[b],M=this.looseRoutesById[_.routeId],C=this.getMatch(_.id),L=S.get(_.routeId);if(_.params=L?Re(L.params,h):h,!C){const q=g[b-1],Y=this.getParentContext(q);if(M.options.context){const X={deps:_.loaderDeps,params:_.params,context:Y??{},location:u,navigate:Q=>this.navigate({...Q,_fromLocation:u}),buildLocation:this.buildLocation,cause:_.cause,abortController:_.abortController,preload:!!_.preload,matches:g,routeId:M.id};_.__routeContext=M.options.context(X)??void 0}_.context={...Y,..._.__routeContext,..._.__beforeLoadContext}}}return g}matchRoutesLightweight(u){const{matchedRoutes:s,routeParams:o,parsedParams:r}=this.getMatchedRoutes(u.pathname),h=Mi(s),y={...u.search};for(const g of s)try{Object.assign(y,es(g.options.validateSearch,y))}catch{}const m=Mi(this.state.matches),v=m&&m.routeId===h.id&&u.pathname===this.state.location.pathname;let d;if(v)d=m.params;else{const g={...o};for(const S of s)try{Im(S,o,r??{},g)}catch{}d=g}return{matchedRoutes:s,fullPath:h.fullPath,search:y,params:d}}}class hs extends Error{}class oS extends Error{}function rS(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function es(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 fS({pathname:l,routesById:u,processedTree:s}){const o={},r=$n(l);let h,y;const m=z0(r,s,!0);return m&&(h=m.route,Object.assign(o,m.rawParams),y=Object.assign({},m.parsedParams)),{matchedRoutes:m?.branch||[u[Be]],routeParams:o,foundRoute:h,parsedParams:y}}function hS({search:l,dest:u,destRoutes:s,_includeValidateSearch:o}){return dS(s)(l,u,o??!1)}function dS(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:y,next:m})=>{let v=y;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(v=r.options.preSearchFilters.reduce((g,S)=>S(g),y));const d=m(v);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((g,S)=>S(g),d):d};u.middlewares.push(h)}if(r.options.validateSearch){const h=({search:y,next:m})=>{const v=m(y);if(!u._includeValidateSearch)return v;try{return{...v,...es(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,y)=>{if(r>=y.length)return h;const m=y[r];return m({search:h,next:d=>o(r+1,d,y)})};return function(h,y,m){return u.dest=y,u._includeValidateSearch=m,o(0,h,u.middlewares)}}function mS(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 Be}function Im(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 yS="Error preloading route! ☝️";class Gy{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=Be:this.parentRoute||bn(!1);let h=r?Be:o?.path;h&&h!=="/"&&(h=Uy(h));const y=o?.id||h;let m=r?Be:Iu([this.parentRoute.id===Be?"":this.parentRoute.id,y]);h===Be&&(h="/"),m!==Be&&(m=Iu(["/",m]));const v=m===Be?"/":Iu([this.parentRoute.fullPath,h]);this._path=h,this._id=m,this._fullPath=v,this._to=$n(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=>I0({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 pS extends Gy{constructor(u){super(u)}}const Wu=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Go(l){const u=k.useRef({value:l,prev:null}),s=u.current.value;return l!==s&&(u.current={value:l,prev:s}),u.current.prev}function vS(l,u,s={},o={}){k.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 gS(l){const u=k.useRef(null);return k.useImperativeHandle(l,()=>u.current,[]),u}function yr(l){const u=l.errorComponent??pr;return at.jsx(SS,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?k.createElement(u,{error:s,reset:o}):l.children})}class SS extends k.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 pr({error:l}){const[u,s]=k.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 bS({children:l,fallback:u=null}){return Xy()?at.jsx(Ri.Fragment,{children:l}):at.jsx(Ri.Fragment,{children:u})}function Xy(){return Ri.useSyncExternalStore(_S,()=>!0,()=>!1)}function _S(){return()=>{}}var Xo={exports:{}},Vo={},Ko={exports:{}},Zo={};var ty;function ES(){if(ty)return Zo;ty=1;var l=Ci();function u(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var s=typeof Object.is=="function"?Object.is:u,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,y=l.useDebugValue;function m(S,b){var _=b(),M=o({inst:{value:_,getSnapshot:b}}),C=M[0].inst,L=M[1];return h(function(){C.value=_,C.getSnapshot=b,v(C)&&L({inst:C})},[S,_,b]),r(function(){return v(C)&&L({inst:C}),S(function(){v(C)&&L({inst:C})})},[S]),y(_),_}function v(S){var b=S.getSnapshot;S=S.value;try{var _=b();return!s(S,_)}catch{return!0}}function d(S,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:m;return Zo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:g,Zo}var ey;function RS(){return ey||(ey=1,Ko.exports=ES()),Ko.exports}var ny;function TS(){if(ny)return Vo;ny=1;var l=Ci(),u=RS();function s(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}var o=typeof Object.is=="function"?Object.is:s,r=u.useSyncExternalStore,h=l.useRef,y=l.useEffect,m=l.useMemo,v=l.useDebugValue;return Vo.useSyncExternalStoreWithSelector=function(d,g,S,b,_){var M=h(null);if(M.current===null){var C={hasValue:!1,value:null};M.current=C}else C=M.current;M=m(function(){function q($){if(!Y){if(Y=!0,X=$,$=b($),_!==void 0&&C.hasValue){var G=C.value;if(_(G,$))return Q=G}return Q=$}if(G=Q,o(X,$))return G;var H=b($);return _!==void 0&&_(G,H)?(X=$,G):(X=$,Q=H)}var Y=!1,X,Q,I=S===void 0?null:S;return[function(){return q(g())},I===null?void 0:function(){return q(I())}]},[g,S,b,_]);var L=r(d,M[0],M[1]);return y(function(){C.hasValue=!0,C.value=L},[L]),v(L),L},Vo}var ay;function MS(){return ay||(ay=1,Xo.exports=TS()),Xo.exports}var OS=MS();function CS(l,u){return l===u}function AS(l,u,s=CS){const o=k.useCallback(y=>{if(!l)return()=>{};const{unsubscribe:m}=l.subscribe(y);return m},[l]),r=k.useCallback(()=>l?.get(),[l]);return OS.useSyncExternalStoreWithSelector(o,r,r,u,s)}const Vy=k.createContext(null);function qe(l){const u=k.useContext(Vy);return l?.warn,u}function He(l){const u=qe({warn:l?.router===void 0}),s=l?.router||u,o=k.useRef(void 0);return AS(s.__store,r=>{if(l?.select){if(l.structuralSharing??s.options.defaultStructuralSharing){const h=Re(o.current,l.select(r));return o.current=h,h}return l.select(r)}return r})}const ps=k.createContext(void 0),xS=k.createContext(void 0);function Fe(l){const u=k.useContext(l.from?xS:ps);return He({select:o=>{const r=o.matches.find(h=>l.from?l.from===h.routeId:h.id===u);if(bn(!((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 vr(l){return Fe({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:u=>l.select?l.select(u.loaderData):u.loaderData})}function gr(l){const{select:u,...s}=l;return Fe({...s,select:o=>u?u(o.loaderDeps):o.loaderDeps})}function Sr(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 br(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 _r(l){const u=qe();return k.useCallback(s=>u.navigate({...s,from:s.from??l?.from}),[l?.from,u])}var zS=ry();function DS(l,u){const s=qe(),o=gS(u),{activeProps:r,inactiveProps:h,activeOptions:y,to:m,preload:v,preloadDelay:d,hashScrollIntoView:g,replace:S,startTransition:b,resetScroll:_,viewTransition:M,children:C,target:L,disabled:q,style:Y,className:X,onClick:Q,onBlur:I,onFocus:$,onMouseEnter:G,onMouseLeave:H,onTouchStart:Z,ignoreBlocker:ut,params:tt,search:F,hash:Et,state:bt,mask:Yt,reloadDocument:U,unsafeRelative:V,from:it,_fromLocation:Rt,..._t}=l,T=Xy(),j=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,P=k.useMemo(()=>({...l,from:K}),[s,j,K,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),et=k.useMemo(()=>s.buildLocation({...P}),[s,P]),rt=et.maskedLocation?et.maskedLocation.publicHref:et.publicHref,pt=et.maskedLocation?et.maskedLocation.external:et.external,Ht=k.useMemo(()=>jS(rt,pt,s.history,q),[q,pt,rt,s.history]),Dt=k.useMemo(()=>{if(Ht?.external)return cs(Ht.href,s.protocolAllowlist)?void 0:Ht.href;if(!HS(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),cs(m,s.protocolAllowlist)?void 0:m}catch{}},[m,Ht,s.protocolAllowlist]),We=He({select:xt=>{if(Dt)return!1;if(y?.exact){if(!B0(xt.location.pathname,et.pathname,s.basepath))return!1}else{const Gt=rs(xt.location.pathname,s.basepath),ne=rs(et.pathname,s.basepath);if(!(Gt.startsWith(ne)&&(Gt.length===ne.length||Gt[ne.length]==="/")))return!1}return(y?.includeSearch??!0)&&!Ea(xt.location.search,et.search,{partial:!y?.exact,ignoreUndefined:!y?.explicitUndefined})?!1:y?.includeHash?T&&xt.location.hash===et.hash:!0}}),$e=We?Jn(r,{})??US:Po,_n=We?Po:Jn(h,{})??Po,bl=[X,$e.className,_n.className].filter(Boolean).join(" "),Ve=(Y||$e.style||_n.style)&&{...Y,...$e.style,..._n.style},[_l,Aa]=k.useState(!1),Ai=k.useRef(!1),Ie=l.reloadDocument||Dt?!1:v??s.options.defaultPreload,In=d??s.options.defaultPreloadDelay??0,Qe=k.useCallback(()=>{s.preloadRoute({...P,_builtLocation:et}).catch(xt=>{console.warn(xt),console.warn(yS)})},[s,P,et]),El=k.useCallback(xt=>{xt?.isIntersecting&&Qe()},[Qe]);vS(o,El,BS,{disabled:!!q||Ie!=="viewport"}),k.useEffect(()=>{Ai.current||!q&&Ie==="render"&&(Qe(),Ai.current=!0)},[q,Qe,Ie]);const vs=xt=>{const Gt=xt.currentTarget.getAttribute("target"),ne=L!==void 0?L:Gt;if(!q&&!qS(xt)&&!xt.defaultPrevented&&(!ne||ne==="_self")&&xt.button===0){xt.preventDefault(),zS.flushSync(()=>{Aa(!0)});const Di=s.subscribe("onResolved",()=>{Di(),Aa(!1)});s.navigate({...P,replace:S,resetScroll:_,hashScrollIntoView:g,startTransition:b,viewTransition:M,ignoreBlocker:ut})}};if(Dt)return{..._t,ref:o,href:Dt,...C&&{children:C},...L&&{target:L},...q&&{disabled:q},...Y&&{style:Y},...X&&{className:X},...Q&&{onClick:Q},...I&&{onBlur:I},...$&&{onFocus:$},...G&&{onMouseEnter:G},...H&&{onMouseLeave:H},...Z&&{onTouchStart:Z}};const xi=xt=>{if(q||!Ie)return;if(!In){Qe();return}const Gt=xt.currentTarget;if(bi.has(Gt))return;const ne=setTimeout(()=>{bi.delete(Gt),Qe()},In);bi.set(Gt,ne)},le=xt=>{q||!Ie||Qe()},zi=xt=>{if(q||!Ie||!In)return;const Gt=xt.currentTarget,ne=bi.get(Gt);ne&&(clearTimeout(ne),bi.delete(Gt))};return{..._t,...$e,..._n,href:Ht?.href,ref:o,onClick:dl([Q,vs]),onBlur:dl([I,zi]),onFocus:dl([$,xi]),onMouseEnter:dl([G,xi]),onMouseLeave:dl([H,zi]),onTouchStart:dl([Z,le]),disabled:!!q,target:L,...Ve&&{style:Ve},...bl&&{className:bl},...q&&LS,...We&&wS,...T&&_l&&NS}}const Po={},US={className:"active"},LS={role:"link","aria-disabled":!0},wS={"data-status":"active","aria-current":"page"},NS={"data-transitioning":"transitioning"},bi=new WeakMap,BS={rootMargin:"100px"},dl=l=>u=>{for(const s of l)if(s){if(u.defaultPrevented)return;s(u)}};function jS(l,u,s,o){if(!o)return u?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function HS(l){if(typeof l!="string")return!1;const u=l.charCodeAt(0);return u===47?l.charCodeAt(1)!==47:u===46}const Ky=k.forwardRef((l,u)=>{const{_asChild:s,...o}=l,{type:r,...h}=DS(o,u),y=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:m,...v}=h;return k.createElement("a",v,y)}return k.createElement(s,h,y)});function qS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}class QS extends Gy{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=>br({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>Sr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>gr({...s,from:this.id}),this.useLoaderData=s=>vr({...s,from:this.id}),this.useNavigate=()=>_r({from:this.fullPath}),this.Link=Ri.forwardRef((s,o)=>at.jsx(Ky,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function YS(l){return new QS(l)}class GS extends pS{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=>br({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>Sr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>gr({...s,from:this.id}),this.useLoaderData=s=>vr({...s,from:this.id}),this.useNavigate=()=>_r({from:this.fullPath}),this.Link=Ri.forwardRef((s,o)=>at.jsx(Ky,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function hb(l){return new GS(l)}function ly(l){return typeof l=="object"?new iy(l,{silent:!0}).createRoute(l):new iy(l,{silent:!0}).createRoute}class iy{constructor(u,s){this.path=u,this.createRoute=o=>{const r=YS(o);return r.isRoot=!1,r},this.silent=s?.silent}}class uy{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=>br({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>Sr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>gr({...s,from:this.options.id}),this.useLoaderData=s=>vr({...s,from:this.options.id}),this.useNavigate=()=>{const s=qe();return _r({from:s.routesById[this.options.id].fullPath})},this.options=u,this.$$typeof=Symbol.for("react.memo")}}function sy(l){return typeof l=="object"?new uy(l):u=>new uy({id:l,...u})}function XS(){const l=qe(),u=k.useRef({router:l,mounted:!1}),[s,o]=k.useState(!1),{hasPendingMatches:r,isLoading:h}=He({select:S=>({isLoading:S.isLoading,hasPendingMatches:S.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),y=Go(h),m=h||s||r,v=Go(m),d=h||r,g=Go(d);return l.startTransition=S=>{o(!0),k.startTransition(()=>{S(),o(!1)})},k.useEffect(()=>{const S=l.history.subscribe(l.load),b=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return $n(l.latestLocation.publicHref)!==$n(b.publicHref)&&l.commitLocation({...b,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(b){console.error(b)}})()},[l]),Wu(()=>{y&&!h&&l.emit({type:"onLoad",...Ra(l.state)})},[y,l,h]),Wu(()=>{g&&!d&&l.emit({type:"onBeforeRouteMount",...Ra(l.state)})},[d,g,l]),Wu(()=>{if(v&&!m){const S=Ra(l.state);l.emit({type:"onResolved",...S}),l.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),S.hrefChanged&&Z0(l)}},[m,v,l]),null}function VS(l){const u=He({select:s=>`not-found-${s.location.pathname}-${s.status}`});return at.jsx(yr,{getResetKey:()=>u,onCatch:(s,o)=>{if(Te(s))l.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(Te(s))return l.fallback?.(s);throw s},children:l.children})}function KS(){return at.jsx("p",{children:"Not Found"})}function ml(l){return at.jsx(at.Fragment,{children:l.children})}function Zy(l,u,s){return u.options.notFoundComponent?at.jsx(u.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?at.jsx(l.options.defaultNotFoundComponent,{...s}):at.jsx(KS,{})}function ZS(){return qe().isScrollRestoring,null}const Py=k.memo(function({matchId:u}){const s=qe(),o=He({select:C=>{const L=C.matches.findIndex(Y=>Y.id===u),q=C.matches[L];return bn(q),{routeId:q.routeId,ssr:q.ssr,_displayPending:q._displayPending,resetKey:C.loadedAt,parentRouteId:C.matches[L-1]?.routeId}},structuralSharing:!0}),r=s.routesById[o.routeId],h=r.options.pendingComponent??s.options.defaultPendingComponent,y=h?at.jsx(h,{}):null,m=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,g=o.ssr===!1||o.ssr==="data-only",S=(!r.isRoot||r.options.wrapInSuspense||g)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||g))?k.Suspense:ml,b=m?yr:ml,_=d?VS:ml,M=r.isRoot?r.options.shellComponent??ml:ml;return at.jsxs(M,{children:[at.jsx(ps.Provider,{value:u,children:at.jsx(S,{fallback:y,children:at.jsx(b,{getResetKey:()=>o.resetKey,errorComponent:m||pr,onCatch:(C,L)=>{if(Te(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 k.createElement(d,C)},children:g||o._displayPending?at.jsx(bS,{fallback:y,children:at.jsx(cy,{matchId:u})}):at.jsx(cy,{matchId:u})})})})}),o.parentRouteId===Be&&s.options.scrollRestoration?at.jsxs(at.Fragment,{children:[at.jsx(PS,{}),at.jsx(ZS,{})]}):null]})});function PS(){const l=qe(),u=k.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",...Ra(l.state)}),u.current=l.latestLocation)}},l.latestLocation.state.__TSR_key)}const cy=k.memo(function({matchId:u}){const s=qe(),{match:o,key:r,routeId:h}=He({select:v=>{const d=v.matches.find(M=>M.id===u),g=d.routeId,b=(s.routesById[g].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:g,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:g,match:{id:d.id,status:d.status,error:d.error,invalid:d.invalid,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),y=s.routesById[h],m=k.useMemo(()=>{const v=y.options.component??s.options.defaultComponent;return v?at.jsx(v,{},r):at.jsx(JS,{})},[r,y.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=y.options.pendingMinMs??s.options.defaultPendingMinMs;if(v){const d=s.getMatch(o.id);if(d&&!d._nonReactive.minPendingPromise){const g=vl();d._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),d._nonReactive.minPendingPromise=void 0},v)}}throw s.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return bn(Te(o.error)),Zy(s,y,o.error);if(o.status==="redirected")throw bn(je(o.error)),s.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return m}),JS=k.memo(function(){const u=qe(),s=k.useContext(ps),o=He({select:d=>d.matches.find(g=>g.id===s)?.routeId}),r=u.routesById[o],h=He({select:d=>{const S=d.matches.find(b=>b.id===s);return bn(S),S.globalNotFound}}),y=He({select:d=>{const g=d.matches,S=g.findIndex(b=>b.id===s);return g[S+1]?.id}}),m=u.options.defaultPendingComponent?at.jsx(u.options.defaultPendingComponent,{}):null;if(h)return Zy(u,r,void 0);if(!y)return null;const v=at.jsx(Py,{matchId:y});return o===Be?at.jsx(k.Suspense,{fallback:m,children:v}):v});function kS(){const l=qe(),s=l.routesById[Be].options.pendingComponent??l.options.defaultPendingComponent,o=s?at.jsx(s,{}):null,r=typeof document<"u"&&l.ssr?ml:k.Suspense,h=at.jsxs(r,{fallback:o,children:[at.jsx(XS,{}),at.jsx(FS,{})]});return l.options.InnerWrap?at.jsx(l.options.InnerWrap,{children:h}):h}function FS(){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(yr,{getResetKey:()=>s,errorComponent:pr,onCatch:void 0,children:o})})}const db=l=>new WS(l);class WS extends cS{constructor(u){super(u)}}typeof globalThis<"u"?(globalThis.createFileRoute=ly,globalThis.createLazyFileRoute=sy):typeof window<"u"&&(window.createFileRoute=ly,window.createLazyFileRoute=sy);function $S({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(Vy.Provider,{value:l,children:u});return l.options.Wrap?at.jsx(l.options.Wrap,{children:o}):o}function mb({router:l,...u}){return at.jsx($S,{router:l,...u,children:at.jsx(kS,{})})}const IS="modulepreload",tb=function(l){return"/"+l},oy={},yb=function(u,s,o){let r=Promise.resolve();if(s&&s.length>0){let v=function(d){return Promise.all(d.map(g=>Promise.resolve(g).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),m=y?.nonce||y?.getAttribute("nonce");r=v(s.map(d=>{if(d=tb(d),d in oy)return;oy[d]=!0;const g=d.endsWith(".css"),S=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${S}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":IS,g||(b.as="script"),b.crossOrigin="",b.href=d,m&&b.setAttribute("nonce",m),document.head.appendChild(b),g)return new Promise((_,M)=>{b.addEventListener("load",_),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${d}`)))})}))}function h(y){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=y,window.dispatchEvent(m),!m.defaultPrevented)throw y}return r.then(y=>{for(const m of y||[])m.status==="rejected"&&h(m.reason);return u().catch(h)})};export{JS as O,lb as Q,Ri as R,yb as _,Ey as a,sb as b,eb as c,cb as d,nb as e,hb as f,hg as g,ly as h,I0 as i,at as j,_r as k,db as l,ib as m,mb as n,ab as o,k as r,ub as u};