@ottocode/web-ui 0.1.233 → 0.1.234
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.
- package/dist/index.js +7 -7
- package/dist/web-assets/assets/{ccip-DZ76OyMt.js → ccip-DT8hlmC4.js} +1 -1
- package/dist/web-assets/assets/framework-D8VmzUzi.js +9 -0
- package/dist/web-assets/assets/{icons-Dzd6rzzk.js → icons-BWeqcfI3.js} +1 -1
- package/dist/web-assets/assets/{index-yHGA3jFU.js → index-CY2ny4Un.js} +5 -5
- package/dist/web-assets/assets/{markdown-Bcsl3Jct.js → markdown-CN6Boxtq.js} +1 -1
- package/dist/web-assets/assets/{syntax-C4QRbGiI.js → syntax-0PI0z6H_.js} +1 -1
- package/dist/web-assets/index.html +5 -5
- package/package.json +1 -1
- package/dist/web-assets/assets/framework-NgVU3wuG.js +0 -9
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var cb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function ob(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var i=l.default;if(typeof i=="function"){var s=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};s.prototype=i.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 Lo={exports:{}},yi={};var Mm;function gg(){if(Mm)return yi;Mm=1;var l=Symbol.for("react.transitional.element"),i=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=i,yi.jsx=s,yi.jsxs=s,yi}var Om;function Sg(){return Om||(Om=1,Lo.exports=gg()),Lo.exports}var at=Sg(),wo={exports:{}},st={};var Cm;function bg(){if(Cm)return st;Cm=1;var l=Symbol.for("react.transitional.element"),i=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"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),g=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=g&&T[g]||T["@@iterator"],typeof T=="function"?T:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,D={};function w(T,H,Z){this.props=T,this.context=H,this.refs=D,this.updater=Z||M}w.prototype.isReactComponent={},w.prototype.setState=function(T,H){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,H,"setState")},w.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function q(){}q.prototype=w.prototype;function Y(T,H,Z){this.props=T,this.context=H,this.refs=D,this.updater=Z||M}var X=Y.prototype=new q;X.constructor=Y,O(X,w.prototype),X.isPureReactComponent=!0;var I=Array.isArray;function k(){}var G={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function V(T,H,Z){var J=Z.ref;return{$$typeof:l,type:T,key:H,ref:J!==void 0?J:null,props:Z}}function ut(T,H){return V(T.type,H,T.props)}function tt(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function W(T){var H={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Z){return H[Z]})}var Rt=/\/+/g;function bt(T,H){return typeof T=="object"&&T!==null&&T.key!=null?W(""+T.key):H.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(k,k):(T.status="pending",T.then(function(H){T.status==="pending"&&(T.status="fulfilled",T.value=H)},function(H){T.status==="pending"&&(T.status="rejected",T.reason=H)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function L(T,H,Z,J,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 i:pt=!0;break;case b:return pt=T._init,L(pt(T._payload),H,Z,J,et)}}if(pt)return et=et(T),pt=J===""?"."+bt(T,0):J,I(et)?(Z="",pt!=null&&(Z=pt.replace(Rt,"$&/")+"/"),L(et,H,Z,"",function(ke){return ke})):et!=null&&(tt(et)&&(et=ut(et,Z+(et.key==null||T&&T.key===et.key?"":(""+et.key).replace(Rt,"$&/")+"/")+pt)),H.push(et)),1;pt=0;var Ht=J===""?".":J+":";if(I(T))for(var Dt=0;Dt<T.length;Dt++)J=T[Dt],rt=Ht+bt(J,Dt),pt+=L(J,H,Z,rt,et);else if(Dt=_(T),typeof Dt=="function")for(T=Dt.call(T),Dt=0;!(J=T.next()).done;)J=J.value,rt=Ht+bt(J,Dt++),pt+=L(J,H,Z,rt,et);else if(rt==="object"){if(typeof T.then=="function")return L(Yt(T),H,Z,J,et);throw H=String(T),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return pt}function K(T,H,Z){if(T==null)return T;var J=[],et=0;return L(T,J,"","",function(rt){return H.call(Z,rt,et++)}),J}function it(T){if(T._status===-1){var H=T._result;H=H(),H.then(function(Z){(T._status===0||T._status===-1)&&(T._status=1,T._result=Z)},function(Z){(T._status===0||T._status===-1)&&(T._status=2,T._result=Z)}),T._status===-1&&(T._status=0,T._result=H)}if(T._status===1)return T._result.default;throw T._result}var Et=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},_t={map:K,forEach:function(T,H,Z){K(T,function(){H.apply(this,arguments)},Z)},count:function(T){var H=0;return K(T,function(){H++}),H},toArray:function(T){return K(T,function(H){return H})||[]},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=w,st.Fragment=s,st.Profiler=r,st.PureComponent=Y,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,H,Z){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var J=O({},T.props),et=T.key;if(H!=null)for(rt in H.key!==void 0&&(et=""+H.key),H)!Q.call(H,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&H.ref===void 0||(J[rt]=H[rt]);var rt=arguments.length-2;if(rt===1)J.children=Z;else if(1<rt){for(var pt=Array(rt),Ht=0;Ht<rt;Ht++)pt[Ht]=arguments[Ht+2];J.children=pt}return V(T.type,et,J)},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,H,Z){var J,et={},rt=null;if(H!=null)for(J in H.key!==void 0&&(rt=""+H.key),H)Q.call(H,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(et[J]=H[J]);var pt=arguments.length-2;if(pt===1)et.children=Z;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(J in pt=T.defaultProps,pt)et[J]===void 0&&(et[J]=pt[J]);return V(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:b,_payload:{_status:-1,_result:T},_init:it}},st.memo=function(T,H){return{$$typeof:d,type:T,compare:H===void 0?null:H}},st.startTransition=function(T){var H=G.T,Z={};G.T=Z;try{var J=T(),et=G.S;et!==null&&et(Z,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(k,Et)}catch(rt){Et(rt)}finally{H!==null&&Z.types!==null&&(H.types=Z.types),G.T=H}},st.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},st.use=function(T){return G.H.use(T)},st.useActionState=function(T,H,Z){return G.H.useActionState(T,H,Z)},st.useCallback=function(T,H){return G.H.useCallback(T,H)},st.useContext=function(T){return G.H.useContext(T)},st.useDebugValue=function(){},st.useDeferredValue=function(T,H){return G.H.useDeferredValue(T,H)},st.useEffect=function(T,H){return G.H.useEffect(T,H)},st.useEffectEvent=function(T){return G.H.useEffectEvent(T)},st.useId=function(){return G.H.useId()},st.useImperativeHandle=function(T,H,Z){return G.H.useImperativeHandle(T,H,Z)},st.useInsertionEffect=function(T,H){return G.H.useInsertionEffect(T,H)},st.useLayoutEffect=function(T,H){return G.H.useLayoutEffect(T,H)},st.useMemo=function(T,H){return G.H.useMemo(T,H)},st.useOptimistic=function(T,H){return G.H.useOptimistic(T,H)},st.useReducer=function(T,H,Z){return G.H.useReducer(T,H,Z)},st.useRef=function(T){return G.H.useRef(T)},st.useState=function(T){return G.H.useState(T)},st.useSyncExternalStore=function(T,H,Z){return G.H.useSyncExternalStore(T,H,Z)},st.useTransition=function(){return G.H.useTransition()},st.version="19.2.4",st}var Am;function xi(){return Am||(Am=1,wo.exports=bg()),wo.exports}var F=xi();const Ei=vg(F);var No={exports:{}},pi={},Bo={exports:{}},jo={};var xm;function _g(){return xm||(xm=1,(function(l){function i(L,K){var it=L.length;L.push(K);t:for(;0<it;){var Et=it-1>>>1,_t=L[Et];if(0<r(_t,K))L[Et]=K,L[it]=_t,it=Et;else break t}}function s(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var K=L[0],it=L.pop();if(it!==K){L[0]=it;t:for(var Et=0,_t=L.length,T=_t>>>1;Et<T;){var H=2*(Et+1)-1,Z=L[H],J=H+1,et=L[J];if(0>r(Z,it))J<_t&&0>r(et,Z)?(L[Et]=et,L[J]=it,Et=J):(L[Et]=Z,L[H]=it,Et=H);else if(J<_t&&0>r(et,it))L[Et]=et,L[J]=it,Et=J;else break t}}return K}function r(L,K){var it=L.sortIndex-K.sortIndex;return it!==0?it:L.id-K.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=[],b=1,S=null,g=3,_=!1,M=!1,O=!1,D=!1,w=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function X(L){for(var K=s(d);K!==null;){if(K.callback===null)o(d);else if(K.startTime<=L)o(d),K.sortIndex=K.expirationTime,i(v,K);else break;K=s(d)}}function I(L){if(O=!1,X(L),!M)if(s(v)!==null)M=!0,k||(k=!0,W());else{var K=s(d);K!==null&&Yt(I,K.startTime-L)}}var k=!1,G=-1,Q=5,V=-1;function ut(){return D?!0:!(l.unstable_now()-V<Q)}function tt(){if(D=!1,k){var L=l.unstable_now();V=L;var K=!0;try{t:{M=!1,O&&(O=!1,q(G),G=-1),_=!0;var it=g;try{e:{for(X(L),S=s(v);S!==null&&!(S.expirationTime>L&&ut());){var Et=S.callback;if(typeof Et=="function"){S.callback=null,g=S.priorityLevel;var _t=Et(S.expirationTime<=L);if(L=l.unstable_now(),typeof _t=="function"){S.callback=_t,X(L),K=!0;break e}S===s(v)&&o(v),X(L)}else o(v);S=s(v)}if(S!==null)K=!0;else{var T=s(d);T!==null&&Yt(I,T.startTime-L),K=!1}}break t}finally{S=null,g=it,_=!1}K=void 0}}finally{K?W():k=!1}}}var W;if(typeof Y=="function")W=function(){Y(tt)};else if(typeof MessageChannel<"u"){var Rt=new MessageChannel,bt=Rt.port2;Rt.port1.onmessage=tt,W=function(){bt.postMessage(null)}}else W=function(){w(tt,0)};function Yt(L,K){G=w(function(){L(l.unstable_now())},K)}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(L){L.callback=null},l.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<L?Math.floor(1e3/L):5},l.unstable_getCurrentPriorityLevel=function(){return g},l.unstable_next=function(L){switch(g){case 1:case 2:case 3:var K=3;break;default:K=g}var it=g;g=K;try{return L()}finally{g=it}},l.unstable_requestPaint=function(){D=!0},l.unstable_runWithPriority=function(L,K){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var it=g;g=L;try{return K()}finally{g=it}},l.unstable_scheduleCallback=function(L,K,it){var Et=l.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?Et+it:Et):it=Et,L){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,L={id:b++,callback:K,priorityLevel:L,startTime:it,expirationTime:_t,sortIndex:-1},it>Et?(L.sortIndex=it,i(d,L),s(v)===null&&L===s(d)&&(O?(q(G),G=-1):O=!0,Yt(I,it-Et))):(L.sortIndex=_t,i(v,L),M||_||(M=!0,k||(k=!0,W()))),L},l.unstable_shouldYield=ut,l.unstable_wrapCallback=function(L){var K=g;return function(){var it=g;g=K;try{return L.apply(this,arguments)}finally{g=it}}}})(jo)),jo}var zm;function Rg(){return zm||(zm=1,Bo.exports=_g()),Bo.exports}var Ho={exports:{}},ae={};var Dm;function Eg(){if(Dm)return ae;Dm=1;var l=xi();function i(v){var d="https://react.dev/errors/"+v;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)d+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function h(v,d,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:S==null?null:""+S,children:v,containerInfo:d,implementation:b}}var 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 b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(i(299));return h(v,d,null,b)},ae.flushSync=function(v){var d=y.T,b=o.p;try{if(y.T=null,o.p=2,v)return v()}finally{y.T=d,o.p=b,o.d.f()}},ae.preconnect=function(v,d){typeof v=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,o.d.C(v,d))},ae.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},ae.preinit=function(v,d){if(typeof v=="string"&&d&&typeof d.as=="string"){var b=d.as,S=m(b,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;b==="style"?o.d.S(v,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:g,fetchPriority:_}):b==="script"&&o.d.X(v,{crossOrigin:S,integrity:g,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ae.preinitModule=function(v,d){if(typeof v=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var b=m(d.as,d.crossOrigin);o.d.M(v,{crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&o.d.M(v)},ae.preload=function(v,d){if(typeof v=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var b=d.as,S=m(b,d.crossOrigin);o.d.L(v,b,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ae.preloadModule=function(v,d){if(typeof v=="string")if(d){var b=m(d.as,d.crossOrigin);o.d.m(v,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else o.d.m(v)},ae.requestFormReset=function(v){o.d.r(v)},ae.unstable_batchedUpdates=function(v,d){return v(d)},ae.useFormState=function(v,d,b){return y.H.useFormState(v,d,b)},ae.useFormStatus=function(){return y.H.useHostTransitionStatus()},ae.version="19.2.4",ae}var Um;function gy(){if(Um)return Ho.exports;Um=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(i){console.error(i)}}return l(),Ho.exports=Eg(),Ho.exports}var Lm;function Tg(){if(Lm)return pi;Lm=1;var l=Rg(),i=xi(),s=gy();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 u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return v(u),t;if(c===a)return v(u),e;c=c.sibling}throw Error(o(188))}if(n.return!==a.return)n=u,a=c;else{for(var f=!1,p=u.child;p;){if(p===n){f=!0,n=u,a=c;break}if(p===a){f=!0,a=u,n=c;break}p=p.sibling}if(!f){for(p=c.child;p;){if(p===n){f=!0,n=c,a=u;break}if(p===a){f=!0,a=c,n=u;break}p=p.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,g=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),ut=Symbol.for("react.memo_cache_sentinel"),tt=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=tt&&t[tt]||t["@@iterator"],typeof t=="function"?t:null)}var Rt=Symbol.for("react.client.reference");function bt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case w:return"Profiler";case D:return"StrictMode";case I:return"Suspense";case k:return"SuspenseList";case V:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case Y:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case X: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 Q:e=t._payload,t=t._init;try{return bt(t(e))}catch{}}return null}var Yt=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},Et=[],_t=-1;function T(t){return{current:t}}function H(t){0>_t||(t.current=Et[_t],Et[_t]=null,_t--)}function Z(t,e){_t++,Et[_t]=t.current,t.current=e}var J=T(null),et=T(null),rt=T(null),pt=T(null);function Ht(t,e){switch(Z(rt,e),Z(et,t),Z(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Pd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Pd(e),t=kd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(J),Z(J,t)}function Dt(){H(J),H(et),H(rt)}function ke(t){t.memoizedState!==null&&Z(pt,t);var e=J.current,n=kd(e,t.type);e!==n&&(Z(et,t),Z(J,n))}function Fe(t){et.current===t&&(H(J),H(et)),pt.current===t&&(H(pt),fi._currentValue=it)}var gn,bl;function Xe(t){if(gn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);gn=e&&e[1]||"",bl=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+gn+t+bl}var _l=!1;function za(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 j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(U){var z=U}Reflect.construct(t,[],j)}else{try{j.call()}catch(U){z=U}t.call(j.prototype)}}else{try{throw Error()}catch(U){z=U}(j=t())&&typeof j.catch=="function"&&j.catch(function(){})}}catch(U){if(U&&z&&typeof U.stack=="string")return[U.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],p=c[1];if(f&&p){var R=f.split(`
|
|
4
|
-
`),x=p.split(`
|
|
5
|
-
`);for(u=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;u<x.length&&!x[u].includes("DetermineComponentFrameRoot");)u++;if(a===R.length||u===x.length)for(a=R.length-1,u=x.length-1;1<=a&&0<=u&&R[a]!==x[u];)u--;for(;1<=a&&0<=u;a--,u--)if(R[a]!==x[u]){if(a!==1||u!==1)do if(a--,u--,0>u||R[a]!==x[u]){var N=`
|
|
6
|
-
`+R[a].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=a&&0<=u);break}}}finally{_l=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Xe(n):""}function zi(t,e){switch(t.tag){case 26:case 27:case 5:return Xe(t.type);case 16:return Xe("Lazy");case 13:return t.child!==e&&e!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return za(t.type,!1);case 11:return za(t.type.render,!1);case 1:return za(t.type,!0);case 31:return Xe("Activity");default:return""}}function We(t){try{var e="",n=null;do e+=zi(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var $n=Object.prototype.hasOwnProperty,qe=l.unstable_scheduleCallback,Rl=l.unstable_cancelCallback,Ss=l.unstable_shouldYield,Di=l.unstable_requestPaint,le=l.unstable_now,Ui=l.unstable_getCurrentPriorityLevel,xt=l.unstable_ImmediatePriority,Gt=l.unstable_UserBlockingPriority,ne=l.unstable_NormalPriority,Li=l.unstable_LowPriority,Cr=l.unstable_IdlePriority,Iy=l.log,tp=l.unstable_setDisableYieldValue,El=null,pe=null;function Sn(t){if(typeof Iy=="function"&&tp(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(El,t)}catch{}}var ve=Math.clz32?Math.clz32:ap,ep=Math.log,np=Math.LN2;function ap(t){return t>>>=0,t===0?32:31-(ep(t)/np|0)|0}var wi=256,Ni=262144,Bi=4194304;function In(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 ji(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var u=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=a&134217727;return p!==0?(a=p&~c,a!==0?u=In(a):(f&=p,f!==0?u=In(f):n||(n=p&~t,n!==0&&(u=In(n))))):(p=a&~c,p!==0?u=In(p):f!==0?u=In(f):n||(n=a&~t,n!==0&&(u=In(n)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:u}function Tl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function lp(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 Ar(){var t=Bi;return Bi<<=1,(Bi&62914560)===0&&(Bi=4194304),t}function bs(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 ip(t,e,n,a,u,c){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var p=t.entanglements,R=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var N=31-ve(n),j=1<<N;p[N]=0,R[N]=-1;var z=x[N];if(z!==null)for(x[N]=null,N=0;N<z.length;N++){var U=z[N];U!==null&&(U.lane&=-536870913)}n&=~j}a!==0&&xr(t,a,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function xr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ve(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function zr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ve(n),u=1<<a;u&e|t[a]&e&&(t[a]|=e),n&=~u}}function Dr(t,e){var n=e&-e;return n=(n&42)!==0?1:_s(n),(n&(t.suspendedLanes|e))!==0?0:n}function _s(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 Rs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ur(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:gm(t.type))}function Lr(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var bn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+bn,ce="__reactProps$"+bn,Da="__reactContainer$"+bn,Es="__reactEvents$"+bn,up="__reactListeners$"+bn,sp="__reactHandles$"+bn,wr="__reactResources$"+bn,Ol="__reactMarker$"+bn;function Ts(t){delete t[Wt],delete t[ce],delete t[Es],delete t[up],delete t[sp]}function Ua(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Da]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=nm(t);t!==null;){if(n=t[Wt])return n;t=nm(t)}return e}t=n,n=t.parentNode}return null}function La(t){if(t=t[Wt]||t[Da]){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 wa(t){var e=t[wr];return e||(e=t[wr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Ol]=!0}var Nr=new Set,Br={};function ta(t,e){Na(t,e),Na(t+"Capture",e)}function Na(t,e){for(Br[t]=e,t=0;t<e.length;t++)Nr.add(e[t])}var cp=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]*$"),jr={},Hr={};function op(t){return $n.call(Hr,t)?!0:$n.call(jr,t)?!1:cp.test(t)?Hr[t]=!0:(jr[t]=!0,!1)}function Hi(t,e,n){if(op(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 qi(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 $e(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 qr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function rp(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 u=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.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 Ms(t){if(!t._valueTracker){var e=qr(t)?"checked":"value";t._valueTracker=rp(t,e,""+t[e])}}function Qr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=qr(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Qi(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 fp=/[\n"\\]/g;function Oe(t){return t.replace(fp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Os(t,e,n,a,u,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?Cs(t,f,Me(e)):n!=null?Cs(t,f,Me(n)):a!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+Me(p):t.removeAttribute("name")}function Yr(t,e,n,a,u,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)){Ms(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??u,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),Ms(t)}function Cs(t,e,n){e==="number"&&Qi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ba(t,e,n,a){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Me(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function Gr(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 Xr(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),Ms(t)}function ja(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var hp=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 Vr(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||hp.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Kr(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 u in e)a=e[u],e.hasOwnProperty(u)&&n[u]!==a&&Vr(t,u,a)}else for(var c in e)e.hasOwnProperty(c)&&Vr(t,c,e[c])}function As(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 dp=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"]]),mp=/^[\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 Yi(t){return mp.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ie(){}var xs=null;function zs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,qa=null;function Zr(t){var e=La(t);if(e&&(t=e.stateNode)){var n=t[ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(Os(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 u=a[ce]||null;if(!u)throw Error(o(90));Os(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Qr(a)}break t;case"textarea":Gr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ba(t,!!n.multiple,e,!1)}}}var Ds=!1;function Jr(t,e,n){if(Ds)return t(e,n);Ds=!0;try{var a=t(e);return a}finally{if(Ds=!1,(Ha!==null||qa!==null)&&(Au(),Ha&&(e=Ha,t=qa,qa=Ha=null,Zr(e),t)))for(e=0;e<t.length;e++)Zr(t[e])}}function Al(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ce]||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 tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Us=!1;if(tn)try{var xl={};Object.defineProperty(xl,"passive",{get:function(){Us=!0}}),window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{Us=!1}var _n=null,Ls=null,Gi=null;function Pr(){if(Gi)return Gi;var t,e=Ls,n=e.length,a,u="value"in _n?_n.value:_n.textContent,c=u.length;for(t=0;t<n&&e[t]===u[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===u[c-a];a++);return Gi=u.slice(t,1<a?1-a:void 0)}function Xi(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 Vi(){return!0}function kr(){return!1}function oe(t){function e(n,a,u,c,f){this._reactName=n,this._targetInst=u,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)?Vi:kr,this.isPropagationStopped=kr,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=Vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vi)},persist:function(){},isPersistent:Vi}),e}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ki=oe(ea),zl=S({},ea,{view:0,detail:0}),yp=oe(zl),ws,Ns,Dl,Zi=S({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:js,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"?(ws=t.screenX-Dl.screenX,Ns=t.screenY-Dl.screenY):Ns=ws=0,Dl=t),ws)},movementY:function(t){return"movementY"in t?t.movementY:Ns}}),Fr=oe(Zi),pp=S({},Zi,{dataTransfer:0}),vp=oe(pp),gp=S({},zl,{relatedTarget:0}),Bs=oe(gp),Sp=S({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),bp=oe(Sp),_p=S({},ea,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Rp=oe(_p),Ep=S({},ea,{data:0}),Wr=oe(Ep),Tp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mp={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"},Op={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cp(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Op[t])?!!e[t]:!1}function js(){return Cp}var Ap=S({},zl,{key:function(t){if(t.key){var e=Tp[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Xi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Mp[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:js,charCode:function(t){return t.type==="keypress"?Xi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Xi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),xp=oe(Ap),zp=S({},Zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$r=oe(zp),Dp=S({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:js}),Up=oe(Dp),Lp=S({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),wp=oe(Lp),Np=S({},Zi,{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}),Bp=oe(Np),jp=S({},ea,{newState:0,oldState:0}),Hp=oe(jp),qp=[9,13,27,32],Hs=tn&&"CompositionEvent"in window,Ul=null;tn&&"documentMode"in document&&(Ul=document.documentMode);var Qp=tn&&"TextEvent"in window&&!Ul,Ir=tn&&(!Hs||Ul&&8<Ul&&11>=Ul),tf=" ",ef=!1;function nf(t,e){switch(t){case"keyup":return qp.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Qa=!1;function Yp(t,e){switch(t){case"compositionend":return af(e);case"keypress":return e.which!==32?null:(ef=!0,tf);case"textInput":return t=e.data,t===tf&&ef?null:t;default:return null}}function Gp(t,e){if(Qa)return t==="compositionend"||!Hs&&nf(t,e)?(t=Pr(),Gi=Ls=_n=null,Qa=!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 Ir&&e.locale!=="ko"?null:e.data;default:return null}}var Xp={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 lf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Xp[t.type]:e==="textarea"}function uf(t,e,n,a){Ha?qa?qa.push(a):qa=[a]:Ha=a,e=Nu(e,"onChange"),0<e.length&&(n=new Ki("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Ll=null,wl=null;function Vp(t){Gd(t,0)}function Ji(t){var e=Cl(t);if(Qr(e))return t}function sf(t,e){if(t==="change")return e}var cf=!1;if(tn){var qs;if(tn){var Qs="oninput"in document;if(!Qs){var of=document.createElement("div");of.setAttribute("oninput","return;"),Qs=typeof of.oninput=="function"}qs=Qs}else qs=!1;cf=qs&&(!document.documentMode||9<document.documentMode)}function rf(){Ll&&(Ll.detachEvent("onpropertychange",ff),wl=Ll=null)}function ff(t){if(t.propertyName==="value"&&Ji(wl)){var e=[];uf(e,wl,t,zs(t)),Jr(Vp,e)}}function Kp(t,e,n){t==="focusin"?(rf(),Ll=e,wl=n,Ll.attachEvent("onpropertychange",ff)):t==="focusout"&&rf()}function Zp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ji(wl)}function Jp(t,e){if(t==="click")return Ji(e)}function Pp(t,e){if(t==="input"||t==="change")return Ji(e)}function kp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ge=typeof Object.is=="function"?Object.is:kp;function Nl(t,e){if(ge(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 u=n[a];if(!$n.call(e,u)||!ge(t[u],e[u]))return!1}return!0}function hf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function df(t,e){var n=hf(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=hf(n)}}function mf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?mf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function yf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Qi(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=Qi(t.document)}return e}function Ys(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 Fp=tn&&"documentMode"in document&&11>=document.documentMode,Ya=null,Gs=null,Bl=null,Xs=!1;function pf(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xs||Ya==null||Ya!==Qi(a)||(a=Ya,"selectionStart"in a&&Ys(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=Nu(Gs,"onSelect"),0<a.length&&(e=new Ki("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Ya)))}function na(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ga={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionrun:na("Transition","TransitionRun"),transitionstart:na("Transition","TransitionStart"),transitioncancel:na("Transition","TransitionCancel"),transitionend:na("Transition","TransitionEnd")},Vs={},vf={};tn&&(vf=document.createElement("div").style,"AnimationEvent"in window||(delete Ga.animationend.animation,delete Ga.animationiteration.animation,delete Ga.animationstart.animation),"TransitionEvent"in window||delete Ga.transitionend.transition);function aa(t){if(Vs[t])return Vs[t];if(!Ga[t])return t;var e=Ga[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in vf)return Vs[t]=e[n];return t}var gf=aa("animationend"),Sf=aa("animationiteration"),bf=aa("animationstart"),Wp=aa("transitionrun"),$p=aa("transitionstart"),Ip=aa("transitioncancel"),_f=aa("transitionend"),Rf=new Map,Ks="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(" ");Ks.push("scrollEnd");function Qe(t,e){Rf.set(t,e),ta(e,[t])}var Pi=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=[],Xa=0,Zs=0;function ki(){for(var t=Xa,e=Zs=Xa=0;e<t;){var n=Ce[e];Ce[e++]=null;var a=Ce[e];Ce[e++]=null;var u=Ce[e];Ce[e++]=null;var c=Ce[e];if(Ce[e++]=null,a!==null&&u!==null){var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}c!==0&&Ef(n,u,c)}}function Fi(t,e,n,a){Ce[Xa++]=t,Ce[Xa++]=e,Ce[Xa++]=n,Ce[Xa++]=a,Zs|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Js(t,e,n,a){return Fi(t,e,n,a),Wi(t)}function la(t,e){return Fi(t,null,null,e),Wi(t)}function Ef(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var u=!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||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-ve(n),t=c.hiddenUpdates,a=t[u],a===null?t[u]=[e]:a.push(e),e.lane=n|536870912),c):null}function Wi(t){if(50<li)throw li=0,no=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Va={};function tv(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 Se(t,e,n,a){return new tv(t,e,n,a)}function Ps(t){return t=t.prototype,!(!t||!t.isReactComponent)}function en(t,e){var n=t.alternate;return n===null?(n=Se(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 Tf(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 $i(t,e,n,a,u,c){var f=0;if(a=t,typeof t=="function")Ps(t)&&(f=1);else if(typeof t=="string")f=ig(t,n,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case V:return t=Se(31,n,e,u),t.elementType=V,t.lanes=c,t;case O:return ia(n.children,u,c,e);case D:f=8,u|=24;break;case w:return t=Se(12,n,e,u|2),t.elementType=w,t.lanes=c,t;case I:return t=Se(13,n,e,u),t.elementType=I,t.lanes=c,t;case k:return t=Se(19,n,e,u),t.elementType=k,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y:f=10;break t;case q:f=9;break t;case X:f=11;break t;case G:f=14;break t;case Q:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=Se(f,n,e,u),e.elementType=t,e.type=a,e.lanes=c,e}function ia(t,e,n,a){return t=Se(7,t,a,e),t.lanes=n,t}function ks(t,e,n){return t=Se(6,t,null,e),t.lanes=n,t}function Mf(t){var e=Se(18,null,null,0);return e.stateNode=t,e}function Fs(t,e,n){return e=Se(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Of=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var n=Of.get(t);return n!==void 0?n:(e={value:t,source:e,stack:We(e)},Of.set(t,e),e)}return{value:t,source:e,stack:We(e)}}var Ka=[],Za=0,Ii=null,jl=0,xe=[],ze=0,Rn=null,Ve=1,Ke="";function nn(t,e){Ka[Za++]=jl,Ka[Za++]=Ii,Ii=t,jl=e}function Cf(t,e,n){xe[ze++]=Ve,xe[ze++]=Ke,xe[ze++]=Rn,Rn=t;var a=Ve;t=Ke;var u=32-ve(a)-1;a&=~(1<<u),n+=1;var c=32-ve(e)+u;if(30<c){var f=u-u%5;c=(a&(1<<f)-1).toString(32),a>>=f,u-=f,Ve=1<<32-ve(e)+u|n<<u|a,Ke=c+t}else Ve=1<<c|n<<u|a,Ke=t}function Ws(t){t.return!==null&&(nn(t,1),Cf(t,1,0))}function $s(t){for(;t===Ii;)Ii=Ka[--Za],Ka[Za]=null,jl=Ka[--Za],Ka[Za]=null;for(;t===Rn;)Rn=xe[--ze],xe[ze]=null,Ke=xe[--ze],xe[ze]=null,Ve=xe[--ze],xe[ze]=null}function Af(t,e){xe[ze++]=Ve,xe[ze++]=Ke,xe[ze++]=Rn,Ve=e.id,Ke=e.overflow,Rn=t}var $t=null,Ut=null,yt=!1,En=null,De=!1,Is=Error(o(519));function Tn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hl(Ae(e,t)),Is}function xf(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[ce]=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),Yr(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),Xr(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||Zd(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=Ie),e=!0):e=!1,e||Tn(t,!0)}function zf(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 Ja(t){if(t!==$t)return!1;if(!yt)return zf(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")||go(t.type,t.memoizedProps)),n=!n),n&&Ut&&Tn(t),zf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=em(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=em(t)}else e===27?(e=Ut,Hn(t.type)?(t=Eo,Eo=null,Ut=t):Ut=e):Ut=$t?Le(t.stateNode.nextSibling):null;return!0}function ua(){Ut=$t=null,yt=!1}function tc(){var t=En;return t!==null&&(de===null?de=t:de.push.apply(de,t),En=null),t}function Hl(t){En===null?En=[t]:En.push(t)}var ec=T(null),sa=null,an=null;function Mn(t,e,n){Z(ec,e._currentValue),e._currentValue=n}function ln(t){t._currentValue=ec.current,H(ec)}function nc(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 ac(t,e,n,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var f=u.child;c=c.firstContext;t:for(;c!==null;){var p=c;c=u;for(var R=0;R<e.length;R++)if(p.context===e[R]){c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),nc(c.return,n,t),a||(f=null);break t}c=p.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),nc(f,n,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Pa(t,e,n,a){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=u.type;ge(u.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(u===pt.current){if(f=u.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(fi):t=[fi])}u=u.return}t!==null&&ac(e,t,n,a),e.flags|=262144}function tu(t){for(t=t.firstContext;t!==null;){if(!ge(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ca(t){sa=t,an=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Df(sa,t)}function eu(t,e){return sa===null&&ca(t),Df(t,e)}function Df(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},an===null){if(t===null)throw Error(o(308));an=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else an=an.next=e;return n}var ev=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()})}},nv=l.unstable_scheduleCallback,av=l.unstable_NormalPriority,Xt={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new ev,data:new Map,refCount:0}}function ql(t){t.refCount--,t.refCount===0&&nv(av,function(){t.controller.abort()})}var Ql=null,ic=0,ka=0,Fa=null;function lv(t,e){if(Ql===null){var n=Ql=[];ic=0,ka=co(),Fa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ic++,e.then(Uf,Uf),e}function Uf(){if(--ic===0&&Ql!==null){Fa!==null&&(Fa.status="fulfilled");var t=Ql;Ql=null,ka=0,Fa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function iv(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var Lf=L.S;L.S=function(t,e){pd=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&lv(t,e),Lf!==null&&Lf(t,e)};var oa=T(null);function uc(){var t=oa.current;return t!==null?t:zt.pooledCache}function nu(t,e){e===null?Z(oa,oa.current):Z(oa,e.pool)}function wf(){var t=uc();return t===null?null:{parent:Xt._currentValue,pool:t}}var Wa=Error(o(460)),sc=Error(o(474)),au=Error(o(542)),lu={then:function(){}};function Nf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Bf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ie,Ie),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Hf(t),t;default:if(typeof e.status=="string")e.then(Ie,Ie);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 u=e;u.status="fulfilled",u.value=a}},function(a){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Hf(t),t}throw fa=e,Wa}}function ra(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(fa=n,Wa):n}}var fa=null;function jf(){if(fa===null)throw Error(o(459));var t=fa;return fa=null,t}function Hf(t){if(t===Wa||t===au)throw Error(o(483))}var $a=null,Yl=0;function iu(t){var e=Yl;return Yl+=1,$a===null&&($a=[]),Bf($a,t,e)}function Gl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function uu(t,e){throw e.$$typeof===g?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function qf(t){function e(C,E){if(t){var A=C.deletions;A===null?(C.deletions=[E],C.flags|=16):A.push(E)}}function n(C,E){if(!t)return null;for(;E!==null;)e(C,E),E=E.sibling;return null}function a(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function u(C,E){return C=en(C,E),C.index=0,C.sibling=null,C}function c(C,E,A){return C.index=A,t?(A=C.alternate,A!==null?(A=A.index,A<E?(C.flags|=67108866,E):A):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function f(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function p(C,E,A,B){return E===null||E.tag!==6?(E=ks(A,C.mode,B),E.return=C,E):(E=u(E,A),E.return=C,E)}function R(C,E,A,B){var nt=A.type;return nt===O?N(C,E,A.props.children,B,A.key):E!==null&&(E.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Q&&ra(nt)===E.type)?(E=u(E,A.props),Gl(E,A),E.return=C,E):(E=$i(A.type,A.key,A.props,null,C.mode,B),Gl(E,A),E.return=C,E)}function x(C,E,A,B){return E===null||E.tag!==4||E.stateNode.containerInfo!==A.containerInfo||E.stateNode.implementation!==A.implementation?(E=Fs(A,C.mode,B),E.return=C,E):(E=u(E,A.children||[]),E.return=C,E)}function N(C,E,A,B,nt){return E===null||E.tag!==7?(E=ia(A,C.mode,B,nt),E.return=C,E):(E=u(E,A),E.return=C,E)}function j(C,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=ks(""+E,C.mode,A),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _:return A=$i(E.type,E.key,E.props,null,C.mode,A),Gl(A,E),A.return=C,A;case M:return E=Fs(E,C.mode,A),E.return=C,E;case Q:return E=ra(E),j(C,E,A)}if(Yt(E)||W(E))return E=ia(E,C.mode,A,null),E.return=C,E;if(typeof E.then=="function")return j(C,iu(E),A);if(E.$$typeof===Y)return j(C,eu(C,E),A);uu(C,E)}return null}function z(C,E,A,B){var nt=E!==null?E.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:p(C,E,""+A,B);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?R(C,E,A,B):null;case M:return A.key===nt?x(C,E,A,B):null;case Q:return A=ra(A),z(C,E,A,B)}if(Yt(A)||W(A))return nt!==null?null:N(C,E,A,B,null);if(typeof A.then=="function")return z(C,E,iu(A),B);if(A.$$typeof===Y)return z(C,E,eu(C,A),B);uu(C,A)}return null}function U(C,E,A,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return C=C.get(A)||null,p(E,C,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case _:return C=C.get(B.key===null?A:B.key)||null,R(E,C,B,nt);case M:return C=C.get(B.key===null?A:B.key)||null,x(E,C,B,nt);case Q:return B=ra(B),U(C,E,A,B,nt)}if(Yt(B)||W(B))return C=C.get(A)||null,N(E,C,B,nt,null);if(typeof B.then=="function")return U(C,E,A,iu(B),nt);if(B.$$typeof===Y)return U(C,E,A,eu(E,B),nt);uu(E,B)}return null}function P(C,E,A,B){for(var nt=null,vt=null,$=E,ot=E=0,mt=null;$!==null&&ot<A.length;ot++){$.index>ot?(mt=$,$=null):mt=$.sibling;var gt=z(C,$,A[ot],B);if(gt===null){$===null&&($=mt);break}t&&$&>.alternate===null&&e(C,$),E=c(gt,E,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt,$=mt}if(ot===A.length)return n(C,$),yt&&nn(C,ot),nt;if($===null){for(;ot<A.length;ot++)$=j(C,A[ot],B),$!==null&&(E=c($,E,ot),vt===null?nt=$:vt.sibling=$,vt=$);return yt&&nn(C,ot),nt}for($=a($);ot<A.length;ot++)mt=U($,C,ot,A[ot],B),mt!==null&&(t&&mt.alternate!==null&&$.delete(mt.key===null?ot:mt.key),E=c(mt,E,ot),vt===null?nt=mt:vt.sibling=mt,vt=mt);return t&&$.forEach(function(Xn){return e(C,Xn)}),yt&&nn(C,ot),nt}function lt(C,E,A,B){if(A==null)throw Error(o(151));for(var nt=null,vt=null,$=E,ot=E=0,mt=null,gt=A.next();$!==null&&!gt.done;ot++,gt=A.next()){$.index>ot?(mt=$,$=null):mt=$.sibling;var Xn=z(C,$,gt.value,B);if(Xn===null){$===null&&($=mt);break}t&&$&&Xn.alternate===null&&e(C,$),E=c(Xn,E,ot),vt===null?nt=Xn:vt.sibling=Xn,vt=Xn,$=mt}if(gt.done)return n(C,$),yt&&nn(C,ot),nt;if($===null){for(;!gt.done;ot++,gt=A.next())gt=j(C,gt.value,B),gt!==null&&(E=c(gt,E,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return yt&&nn(C,ot),nt}for($=a($);!gt.done;ot++,gt=A.next())gt=U($,C,ot,gt.value,B),gt!==null&&(t&>.alternate!==null&&$.delete(gt.key===null?ot:gt.key),E=c(gt,E,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return t&&$.forEach(function(pg){return e(C,pg)}),yt&&nn(C,ot),nt}function At(C,E,A,B){if(typeof A=="object"&&A!==null&&A.type===O&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var nt=A.key;E!==null;){if(E.key===nt){if(nt=A.type,nt===O){if(E.tag===7){n(C,E.sibling),B=u(E,A.props.children),B.return=C,C=B;break t}}else if(E.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Q&&ra(nt)===E.type){n(C,E.sibling),B=u(E,A.props),Gl(B,A),B.return=C,C=B;break t}n(C,E);break}else e(C,E);E=E.sibling}A.type===O?(B=ia(A.props.children,C.mode,B,A.key),B.return=C,C=B):(B=$i(A.type,A.key,A.props,null,C.mode,B),Gl(B,A),B.return=C,C=B)}return f(C);case M:t:{for(nt=A.key;E!==null;){if(E.key===nt)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){n(C,E.sibling),B=u(E,A.children||[]),B.return=C,C=B;break t}else{n(C,E);break}else e(C,E);E=E.sibling}B=Fs(A,C.mode,B),B.return=C,C=B}return f(C);case Q:return A=ra(A),At(C,E,A,B)}if(Yt(A))return P(C,E,A,B);if(W(A)){if(nt=W(A),typeof nt!="function")throw Error(o(150));return A=nt.call(A),lt(C,E,A,B)}if(typeof A.then=="function")return At(C,E,iu(A),B);if(A.$$typeof===Y)return At(C,E,eu(C,A),B);uu(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(n(C,E.sibling),B=u(E,A),B.return=C,C=B):(n(C,E),B=ks(A,C.mode,B),B.return=C,C=B),f(C)):n(C,E)}return function(C,E,A,B){try{Yl=0;var nt=At(C,E,A,B);return $a=null,nt}catch($){if($===Wa||$===au)throw $;var vt=Se(29,$,null,C.mode);return vt.lanes=B,vt.return=C,vt}}}var ha=qf(!0),Qf=qf(!1),On=!1;function cc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oc(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 Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function An(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(St&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=Wi(t),Ef(t,null,n),e}return Fi(t,a,e,n),Wi(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,zr(t,n)}}function rc(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=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?u=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?u=c=e:c=c.next=e}else u=c=e;n={baseState:a.baseState,firstBaseUpdate:u,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 fc=!1;function Vl(){if(fc){var t=Fa;if(t!==null)throw t}}function Kl(t,e,n,a){fc=!1;var u=t.updateQueue;On=!1;var c=u.firstBaseUpdate,f=u.lastBaseUpdate,p=u.shared.pending;if(p!==null){u.shared.pending=null;var R=p,x=R.next;R.next=null,f===null?c=x:f.next=x,f=R;var N=t.alternate;N!==null&&(N=N.updateQueue,p=N.lastBaseUpdate,p!==f&&(p===null?N.firstBaseUpdate=x:p.next=x,N.lastBaseUpdate=R))}if(c!==null){var j=u.baseState;f=0,N=x=R=null,p=c;do{var z=p.lane&-536870913,U=z!==p.lane;if(U?(dt&z)===z:(a&z)===z){z!==0&&z===ka&&(fc=!0),N!==null&&(N=N.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var P=t,lt=p;z=e;var At=n;switch(lt.tag){case 1:if(P=lt.payload,typeof P=="function"){j=P.call(At,j,z);break t}j=P;break t;case 3:P.flags=P.flags&-65537|128;case 0:if(P=lt.payload,z=typeof P=="function"?P.call(At,j,z):P,z==null)break t;j=S({},j,z);break t;case 2:On=!0}}z=p.callback,z!==null&&(t.flags|=64,U&&(t.flags|=8192),U=u.callbacks,U===null?u.callbacks=[z]:U.push(z))}else U={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},N===null?(x=N=U,R=j):N=N.next=U,f|=z;if(p=p.next,p===null){if(p=u.shared.pending,p===null)break;U=p,p=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);N===null&&(R=j),u.baseState=R,u.firstBaseUpdate=x,u.lastBaseUpdate=N,c===null&&(u.shared.lanes=0),Ln|=f,t.lanes=f,t.memoizedState=j}}function Yf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Gf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Yf(n[t],e)}var Ia=T(null),su=T(0);function Xf(t,e){t=mn,Z(su,t),Z(Ia,e),mn=t|e.baseLanes}function hc(){Z(su,mn),Z(Ia,Ia.current)}function dc(){mn=su.current,H(Ia),H(su)}var be=T(null),Ue=null;function xn(t){var e=t.alternate;Z(qt,qt.current&1),Z(be,t),Ue===null&&(e===null||Ia.current!==null||e.memoizedState!==null)&&(Ue=t)}function mc(t){Z(qt,qt.current),Z(be,t),Ue===null&&(Ue=t)}function Vf(t){t.tag===22?(Z(qt,qt.current),Z(be,t),Ue===null&&(Ue=t)):zn()}function zn(){Z(qt,qt.current),Z(be,be.current)}function _e(t){H(be),Ue===t&&(Ue=null),H(qt)}var qt=T(0);function cu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_o(n)||Ro(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 un=0,ct=null,Ot=null,Vt=null,ou=!1,tl=!1,da=!1,ru=0,Zl=0,el=null,uv=0;function Bt(){throw Error(o(321))}function yc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ge(t[n],e[n]))return!1;return!0}function pc(t,e,n,a,u,c){return un=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,L.H=t===null||t.memoizedState===null?Ch:Dc,da=!1,c=n(a,u),da=!1,tl&&(c=Zf(e,n,a,u)),Kf(t),c}function Kf(t){L.H=kl;var e=Ot!==null&&Ot.next!==null;if(un=0,Vt=Ot=ct=null,ou=!1,Zl=0,el=null,e)throw Error(o(300));t===null||Kt||(t=t.dependencies,t!==null&&tu(t)&&(Kt=!0))}function Zf(t,e,n,a){ct=t;var u=0;do{if(tl&&(el=null),Zl=0,tl=!1,25<=u)throw Error(o(301));if(u+=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)}L.H=Ah,c=e(n,a)}while(tl);return c}function sv(){var t=L.H,e=t.useState()[0];return e=typeof e.then=="function"?Jl(e):e,t=t.useState()[0],(Ot!==null?Ot.memoizedState:null)!==t&&(ct.flags|=1024),e}function vc(){var t=ru!==0;return ru=0,t}function gc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Sc(t){if(ou){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ou=!1}un=0,Vt=Ot=ct=null,tl=!1,Zl=ru=0,el=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 fu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jl(t){var e=Zl;return Zl+=1,el===null&&(el=[]),t=Bf(el,t,e),e=ct,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,L.H=e===null||e.memoizedState===null?Ch:Dc),t}function hu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Jl(t);if(t.$$typeof===Y)return It(t)}throw Error(o(438,String(t)))}function bc(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(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=fu(),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 sn(t,e){return typeof e=="function"?e(t):e}function du(t){var e=Qt();return _c(e,Ot,t)}function _c(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var u=t.baseQueue,c=a.pending;if(c!==null){if(u!==null){var f=u.next;u.next=c.next,c.next=f}e.baseQueue=u=c,a.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var p=f=null,R=null,x=e,N=!1;do{var j=x.lane&-536870913;if(j!==x.lane?(dt&j)===j:(un&j)===j){var z=x.revertLane;if(z===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),j===ka&&(N=!0);else if((un&z)===z){x=x.next,z===ka&&(N=!0);continue}else j={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(p=R=j,f=c):R=R.next=j,ct.lanes|=z,Ln|=z;j=x.action,da&&n(c,j),c=x.hasEagerState?x.eagerState:n(c,j)}else z={lane:j,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(p=R=z,f=c):R=R.next=z,ct.lanes|=j,Ln|=j;x=x.next}while(x!==null&&x!==e);if(R===null?f=c:R.next=p,!ge(c,t.memoizedState)&&(Kt=!0,N&&(n=Fa,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=R,a.lastRenderedState=c}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Rc(t){var e=Qt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,u=n.pending,c=e.memoizedState;if(u!==null){n.pending=null;var f=u=u.next;do c=t(c,f.action),f=f.next;while(f!==u);ge(c,e.memoizedState)||(Kt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function Jf(t,e,n){var a=ct,u=Qt(),c=yt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ge((Ot||u).memoizedState,n);if(f&&(u.memoizedState=n,Kt=!0),u=u.queue,Mc(Ff.bind(null,a,u,t),[t]),u.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(a.flags|=2048,nl(9,{destroy:void 0},kf.bind(null,a,u,n,e),null),zt===null)throw Error(o(349));c||(un&127)!==0||Pf(a,e,n)}return n}function Pf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=fu(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function kf(t,e,n,a){e.value=n,e.getSnapshot=a,Wf(e)&&$f(t)}function Ff(t,e,n){return n(function(){Wf(e)&&$f(t)})}function Wf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ge(t,n)}catch{return!0}}function $f(t){var e=la(t,2);e!==null&&me(e,t,2)}function Ec(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),da){Sn(!0);try{n()}finally{Sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:t},e}function If(t,e,n,a){return t.baseState=n,_c(t,Ot,typeof a=="function"?a:sn)}function cv(t,e,n,a,u){if(pu(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};L.T!==null?n(!0):c.isTransition=!1,a(c),n=e.pending,n===null?(c.next=e.pending=c,th(e,c)):(c.next=n.next,e.pending=n.next=c)}}function th(t,e){var n=e.action,a=e.payload,u=t.state;if(e.isTransition){var c=L.T,f={};L.T=f;try{var p=n(u,a),R=L.S;R!==null&&R(f,p),eh(t,e,p)}catch(x){Tc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),L.T=c}}else try{c=n(u,a),eh(t,e,c)}catch(x){Tc(t,e,x)}}function eh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){nh(t,e,a)},function(a){return Tc(t,e,a)}):nh(t,e,n)}function nh(t,e,n){e.status="fulfilled",e.value=n,ah(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,th(t,n)))}function Tc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,ah(e),e=e.next;while(e!==a)}t.action=null}function ah(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function lh(t,e){return e}function ih(t,e){if(yt){var n=zt.formState;if(n!==null){t:{var a=ct;if(yt){if(Ut){e:{for(var u=Ut,c=De;u.nodeType!==8;){if(!c){u=null;break e}if(u=Le(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ut=Le(u.nextSibling),a=u.data==="F!";break t}}Tn(a)}a=!1}a&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lh,lastRenderedState:e},n.queue=a,n=Th.bind(null,ct,a),a.dispatch=n,a=Ec(!1),c=zc.bind(null,ct,!1,a.queue),a=ie(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,n=cv.bind(null,ct,u,c,n),u.dispatch=n,a.memoizedState=t,[e,n,!1]}function uh(t){var e=Qt();return sh(e,Ot,t)}function sh(t,e,n){if(e=_c(t,e,lh)[0],t=du(sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Jl(e)}catch(f){throw f===Wa?au:f}else a=e;e=Qt();var u=e.queue,c=u.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,nl(9,{destroy:void 0},ov.bind(null,u,n),null)),[a,c,t]}function ov(t,e){t.action=e}function ch(t){var e=Qt(),n=Ot;if(n!==null)return sh(e,n,t);Qt(),e=e.memoizedState,n=Qt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function nl(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=fu(),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 oh(){return Qt().memoizedState}function mu(t,e,n,a){var u=ie();ct.flags|=t,u.memoizedState=nl(1|e,{destroy:void 0},n,a===void 0?null:a)}function yu(t,e,n,a){var u=Qt();a=a===void 0?null:a;var c=u.memoizedState.inst;Ot!==null&&a!==null&&yc(a,Ot.memoizedState.deps)?u.memoizedState=nl(e,c,n,a):(ct.flags|=t,u.memoizedState=nl(1|e,c,n,a))}function rh(t,e){mu(8390656,8,t,e)}function Mc(t,e){yu(2048,8,t,e)}function rv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=fu(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function fh(t){var e=Qt().memoizedState;return rv({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function hh(t,e){return yu(4,2,t,e)}function dh(t,e){return yu(4,4,t,e)}function mh(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 yh(t,e,n){n=n!=null?n.concat([t]):null,yu(4,4,mh.bind(null,e,t),n)}function Oc(){}function ph(t,e){var n=Qt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&yc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function vh(t,e){var n=Qt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&yc(e,a[1]))return a[0];if(a=t(),da){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a}function Cc(t,e,n){return n===void 0||(un&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=gd(),ct.lanes|=t,Ln|=t,n)}function gh(t,e,n,a){return ge(n,e)?n:Ia.current!==null?(t=Cc(t,n,a),ge(t,e)||(Kt=!0),t):(un&42)===0||(un&1073741824)!==0&&(dt&261930)===0?(Kt=!0,t.memoizedState=n):(t=gd(),ct.lanes|=t,Ln|=t,e)}function Sh(t,e,n,a,u){var c=K.p;K.p=c!==0&&8>c?c:8;var f=L.T,p={};L.T=p,zc(t,!1,e,n);try{var R=u(),x=L.S;if(x!==null&&x(p,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var N=iv(R,a);Pl(t,e,N,Te(t))}else Pl(t,e,a,Te(t))}catch(j){Pl(t,e,{then:function(){},status:"rejected",reason:j},Te())}finally{K.p=c,f!==null&&p.types!==null&&(f.types=p.types),L.T=f}}function fv(){}function Ac(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=bh(t).queue;Sh(t,u,e,it,n===null?fv:function(){return _h(t),n(a)})}function bh(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:sn,lastRenderedState:it},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function _h(t){var e=bh(t);e.next===null&&(e=t.alternate.memoizedState),Pl(t,e.next.queue,{},Te())}function xc(){return It(fi)}function Rh(){return Qt().memoizedState}function Eh(){return Qt().memoizedState}function hv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Te();t=Cn(n);var a=An(e,t,n);a!==null&&(me(a,e,n),Xl(a,e,n)),e={cache:lc()},t.payload=e;return}e=e.return}}function dv(t,e,n){var a=Te();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pu(t)?Mh(e,n):(n=Js(t,e,n,a),n!==null&&(me(n,t,a),Oh(n,e,a)))}function Th(t,e,n){var a=Te();Pl(t,e,n,a)}function Pl(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pu(t))Mh(e,u);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(u.hasEagerState=!0,u.eagerState=p,ge(p,f))return Fi(t,e,u,0),zt===null&&ki(),!1}catch{}if(n=Js(t,e,u,a),n!==null)return me(n,t,a),Oh(n,e,a),!0}return!1}function zc(t,e,n,a){if(a={lane:2,revertLane:co(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},pu(t)){if(e)throw Error(o(479))}else e=Js(t,n,a,2),e!==null&&me(e,t,2)}function pu(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Mh(t,e){tl=ou=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Oh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,zr(t,n)}}var kl={readContext:It,use:hu,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 Ch={readContext:It,use:hu,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:rh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,mu(4194308,4,mh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return mu(4194308,4,t,e)},useInsertionEffect:function(t,e){mu(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var a=t();if(da){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ie();if(n!==void 0){var u=n(e);if(da){Sn(!0);try{n(e)}finally{Sn(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=dv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=Ec(t);var e=t.queue,n=Th.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Oc,useDeferredValue:function(t,e){var n=ie();return Cc(n,t,e)},useTransition:function(){var t=Ec(!1);return t=Sh.bind(null,ct,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,u=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||Pf(a,e,n)}u.memoizedState=n;var c={value:n,getSnapshot:e};return u.queue=c,rh(Ff.bind(null,a,c,t),[t]),a.flags|=2048,nl(9,{destroy:void 0},kf.bind(null,a,c,n,e),null),n},useId:function(){var t=ie(),e=zt.identifierPrefix;if(yt){var n=Ke,a=Ve;n=(a&~(1<<32-ve(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ru++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=uv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:xc,useFormState:ih,useActionState:ih,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=zc.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:bc,useCacheRefresh:function(){return ie().memoizedState=hv.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)}}},Dc={readContext:It,use:hu,useCallback:ph,useContext:It,useEffect:Mc,useImperativeHandle:yh,useInsertionEffect:hh,useLayoutEffect:dh,useMemo:vh,useReducer:du,useRef:oh,useState:function(){return du(sn)},useDebugValue:Oc,useDeferredValue:function(t,e){var n=Qt();return gh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=du(sn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Jl(t),e]},useSyncExternalStore:Jf,useId:Rh,useHostTransitionStatus:xc,useFormState:uh,useActionState:uh,useOptimistic:function(t,e){var n=Qt();return If(n,Ot,t,e)},useMemoCache:bc,useCacheRefresh:Eh};Dc.useEffectEvent=fh;var Ah={readContext:It,use:hu,useCallback:ph,useContext:It,useEffect:Mc,useImperativeHandle:yh,useInsertionEffect:hh,useLayoutEffect:dh,useMemo:vh,useReducer:Rc,useRef:oh,useState:function(){return Rc(sn)},useDebugValue:Oc,useDeferredValue:function(t,e){var n=Qt();return Ot===null?Cc(n,t,e):gh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=Rc(sn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Jl(t),e]},useSyncExternalStore:Jf,useId:Rh,useHostTransitionStatus:xc,useFormState:ch,useActionState:ch,useOptimistic:function(t,e){var n=Qt();return Ot!==null?If(n,Ot,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:bc,useCacheRefresh:Eh};Ah.useEffectEvent=fh;function Uc(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 Lc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Te(),u=Cn(a);u.payload=e,n!=null&&(u.callback=n),e=An(t,u,a),e!==null&&(me(e,t,a),Xl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Te(),u=Cn(a);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=An(t,u,a),e!==null&&(me(e,t,a),Xl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Te(),a=Cn(n);a.tag=2,e!=null&&(a.callback=e),e=An(t,a,n),e!==null&&(me(e,t,n),Xl(e,t,n))}};function xh(t,e,n,a,u,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!Nl(n,a)||!Nl(u,c):!0}function zh(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&&Lc.enqueueReplaceState(e,e.state,null)}function ma(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 u in t)n[u]===void 0&&(n[u]=t[u])}return n}function Dh(t){Pi(t)}function Uh(t){console.error(t)}function Lh(t){Pi(t)}function vu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function wh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function wc(t,e,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){vu(t,e)},n}function Nh(t){return t=Cn(t),t.tag=3,t}function Bh(t,e,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=a.value;t.payload=function(){return u(c)},t.callback=function(){wh(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){wh(e,n,a),typeof u!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var p=a.stack;this.componentDidCatch(a.value,{componentStack:p!==null?p:""})})}function mv(t,e,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Pa(e,n,u,!0),n=be.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?xu():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===lu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),io(t,a,u)),!1;case 22:return n.flags|=65536,a===lu?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)),io(t,a,u)),!1}throw Error(o(435,n.tag))}return io(t,a,u),xu(),!1}if(yt)return e=be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Is&&(t=Error(o(422),{cause:a}),Hl(Ae(t,n)))):(a!==Is&&(e=Error(o(423),{cause:a}),Hl(Ae(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=Ae(a,n),u=wc(t.stateNode,a,u),rc(t,u),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=u&-u,n.lanes|=t,t=wc(n.stateNode,a,t),rc(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"&&(wn===null||!wn.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Nh(u),Bh(u,t,n,a),rc(n,u),!1}n=n.return}while(n!==null);return!1}var Nc=Error(o(461)),Kt=!1;function te(t,e,n,a){e.child=t===null?Qf(e,null,n,a):ha(e,t.child,n,a)}function jh(t,e,n,a,u){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 ca(e),a=pc(t,e,n,f,c,u),p=vc(),t!==null&&!Kt?(gc(t,e,u),cn(t,e,u)):(yt&&p&&Ws(e),e.flags|=1,te(t,e,a,u),e.child)}function Hh(t,e,n,a,u){if(t===null){var c=n.type;return typeof c=="function"&&!Ps(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,qh(t,e,c,a,u)):(t=$i(n.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Xc(t,u)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Nl,n(f,a)&&t.ref===e.ref)return cn(t,e,u)}return e.flags|=1,t=en(c,a),t.ref=e.ref,t.return=e,e.child=t}function qh(t,e,n,a,u){if(t!==null){var c=t.memoizedProps;if(Nl(c,a)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=a=c,Xc(t,u))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,cn(t,e,u)}return Bc(t,e,n,a,u)}function Qh(t,e,n,a){var u=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,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~c}else a=0,e.child=null;return Yh(t,e,c,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&nu(e,c!==null?c.cachePool:null),c!==null?Xf(e,c):hc(),Vf(e);else return a=e.lanes=536870912,Yh(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(nu(e,c.cachePool),Xf(e,c),zn(),e.memoizedState=null):(t!==null&&nu(e,null),hc(),zn());return te(t,e,u,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 Yh(t,e,n,a,u){var c=uc();return c=c===null?null:{parent:Xt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&nu(e,null),hc(),Vf(e),t!==null&&Pa(t,e,a,!0),e.childLanes=u,null}function gu(t,e){return e=bu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Gh(t,e,n){return ha(e,t.child,null,n),t=gu(e,e.pendingProps),t.flags|=2,_e(e),e.memoizedState=null,t}function yv(t,e,n){var a=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(a.mode==="hidden")return t=gu(e,a),e.lanes=536870912,Fl(null,t);if(mc(e),(t=Ut)?(t=tm(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Ve,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=Mf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw Tn(e);return e.lanes=536870912,null}return gu(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(mc(e),u)if(e.flags&256)e.flags&=-257,e=Gh(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||Pa(t,e,n,!1),u=(n&t.childLanes)!==0,Kt||u){if(a=zt,a!==null&&(f=Dr(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,la(t,f),me(a,t,f),Nc;xu(),e=Gh(t,e,n)}else t=c.treeContext,Ut=Le(f.nextSibling),$t=e,yt=!0,En=null,De=!1,t!==null&&Af(e,t),e=gu(e,a),e.flags|=4096;return e}return t=en(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Su(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 Bc(t,e,n,a,u){return ca(e),n=pc(t,e,n,a,void 0,u),a=vc(),t!==null&&!Kt?(gc(t,e,u),cn(t,e,u)):(yt&&a&&Ws(e),e.flags|=1,te(t,e,n,u),e.child)}function Xh(t,e,n,a,u,c){return ca(e),e.updateQueue=null,n=Zf(e,a,n,u),Kf(t),a=vc(),t!==null&&!Kt?(gc(t,e,c),cn(t,e,c)):(yt&&a&&Ws(e),e.flags|=1,te(t,e,n,c),e.child)}function Vh(t,e,n,a,u){if(ca(e),e.stateNode===null){var c=Va,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=Lc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},cc(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?It(f):Va,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Uc(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&&Lc.enqueueReplaceState(c,c.state,null),Kl(e,a,c,u),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,R=ma(n,p);c.props=R;var x=c.context,N=n.contextType;f=Va,typeof N=="object"&&N!==null&&(f=It(N));var j=n.getDerivedStateFromProps;N=typeof j=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,N||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||x!==f)&&zh(e,c,a,f),On=!1;var z=e.memoizedState;c.state=z,Kl(e,a,c,u),Vl(),x=e.memoizedState,p||z!==x||On?(typeof j=="function"&&(Uc(e,n,j,a),x=e.memoizedState),(R=On||xh(e,n,R,a,z,x,f))?(N||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=x),c.props=a,c.state=x,c.context=f,a=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,oc(t,e),f=e.memoizedProps,N=ma(n,f),c.props=N,j=e.pendingProps,z=c.context,x=n.contextType,R=Va,typeof x=="object"&&x!==null&&(R=It(x)),p=n.getDerivedStateFromProps,(x=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==j||z!==R)&&zh(e,c,a,R),On=!1,z=e.memoizedState,c.state=z,Kl(e,a,c,u),Vl();var U=e.memoizedState;f!==j||z!==U||On||t!==null&&t.dependencies!==null&&tu(t.dependencies)?(typeof p=="function"&&(Uc(e,n,p,a),U=e.memoizedState),(N=On||xh(e,n,N,a,z,U,R)||t!==null&&t.dependencies!==null&&tu(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,U,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,U,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=U),c.props=a,c.state=U,c.context=R,a=N):(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,Su(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=ha(e,t.child,null,u),e.child=ha(e,null,n,u)):te(t,e,n,u),e.memoizedState=c.state,t=e.child):t=cn(t,e,u),t}function Kh(t,e,n,a){return ua(),e.flags|=256,te(t,e,n,a),e.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(t){return{baseLanes:t,cachePool:wf()}}function qc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ee),t}function Zh(t,e,n){var a=e.pendingProps,u=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(u?xn(e):zn(),(t=Ut)?(t=tm(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Ve,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=Mf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw Tn(e);return Ro(t)?e.lanes=32:e.lanes=536870912,null}var p=a.children;return a=a.fallback,u?(zn(),u=e.mode,p=bu({mode:"hidden",children:p},u),a=ia(a,u,n,null),p.return=e,a.return=e,p.sibling=a,e.child=p,a=e.child,a.memoizedState=Hc(n),a.childLanes=qc(t,f,n),e.memoizedState=jc,Fl(null,a)):(xn(e),Qc(e,p))}var R=t.memoizedState;if(R!==null&&(p=R.dehydrated,p!==null)){if(c)e.flags&256?(xn(e),e.flags&=-257,e=Yc(t,e,n)):e.memoizedState!==null?(zn(),e.child=t.child,e.flags|=128,e=null):(zn(),p=a.fallback,u=e.mode,a=bu({mode:"visible",children:a.children},u),p=ia(p,u,n,null),p.flags|=2,a.return=e,p.return=e,a.sibling=p,e.child=a,ha(e,t.child,null,n),a=e.child,a.memoizedState=Hc(n),a.childLanes=qc(t,f,n),e.memoizedState=jc,e=Fl(null,a));else if(xn(e),Ro(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=Yc(t,e,n)}else if(Kt||Pa(t,e,n,!1),f=(n&t.childLanes)!==0,Kt||f){if(f=zt,f!==null&&(a=Dr(f,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,la(t,a),me(f,t,a),Nc;_o(p)||xu(),e=Yc(t,e,n)}else _o(p)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Ut=Le(p.nextSibling),$t=e,yt=!0,En=null,De=!1,t!==null&&Af(e,t),e=Qc(e,a.children),e.flags|=4096);return e}return u?(zn(),p=a.fallback,u=e.mode,R=t.child,x=R.sibling,a=en(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,x!==null?p=en(x,p):(p=ia(p,u,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=Hc(n):(u=p.cachePool,u!==null?(R=Xt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=wf(),p={baseLanes:p.baseLanes|n,cachePool:u}),a.memoizedState=p,a.childLanes=qc(t,f,n),e.memoizedState=jc,Fl(t.child,a)):(xn(e),n=t.child,t=n.sibling,n=en(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 Qc(t,e){return e=bu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function bu(t,e){return t=Se(22,t,null,e),t.lanes=0,t}function Yc(t,e,n){return ha(e,t.child,null,n),t=Qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Jh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),nc(t.return,e,n)}function Gc(t,e,n,a,u,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=u,f.treeForkCount=c)}function Ph(t,e,n){var a=e.pendingProps,u=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,Z(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&&Jh(t,n,e);else if(t.tag===19)Jh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&cu(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),Gc(e,!1,u,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&cu(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}Gc(e,!0,n,null,c,a);break;case"together":Gc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function cn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ln|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Pa(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=en(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=en(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Xc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&tu(t)))}function pv(t,e,n){switch(e.tag){case 3:Ht(e,e.stateNode.containerInfo),Mn(e,Xt,t.memoizedState.cache),ua();break;case 27:case 5:ke(e);break;case 4:Ht(e,e.stateNode.containerInfo);break;case 10:Mn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,mc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(xn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Zh(t,e,n):(xn(e),t=cn(t,e,n),t!==null?t.sibling:null);xn(e);break;case 19:var u=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Pa(t,e,n,!1),a=(n&e.childLanes)!==0),u){if(a)return Ph(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Z(qt,qt.current),a)break;return null;case 22:return e.lanes=0,Qh(t,e,n,e.pendingProps);case 24:Mn(e,Xt,t.memoizedState.cache)}return cn(t,e,n)}function kh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Xc(t,n)&&(e.flags&128)===0)return Kt=!1,pv(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,yt&&(e.flags&1048576)!==0&&Cf(e,jl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ra(e.elementType),e.type=t,typeof t=="function")Ps(t)?(a=ma(t,a),e.tag=1,e=Vh(null,e,t,a,n)):(e.tag=0,e=Bc(null,e,t,a,n));else{if(t!=null){var u=t.$$typeof;if(u===X){e.tag=11,e=jh(null,e,t,a,n);break t}else if(u===G){e.tag=14,e=Hh(null,e,t,a,n);break t}}throw e=bt(t)||t,Error(o(306,e,""))}}return e;case 0:return Bc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,u=ma(a,e.pendingProps),Vh(t,e,a,u,n);case 3:t:{if(Ht(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;u=c.element,oc(t,e),Kl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Mn(e,Xt,a),a!==c.cache&&ac(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=Kh(t,e,a,n);break t}else if(a!==u){u=Ae(Error(o(424)),e),Hl(u),e=Kh(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,En=null,De=!0,n=Qf(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ua(),a===u){e=cn(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return Su(t,e),t===null?(n=um(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,a=Bu(rt.current).createElement(n),a[Wt]=e,a[ce]=t,ee(a,n,t),kt(a),e.stateNode=a):e.memoizedState=um(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ke(e),t===null&&yt&&(a=e.stateNode=am(e.type,e.pendingProps,rt.current),$t=e,De=!0,u=Ut,Hn(e.type)?(Eo=u,Ut=Le(a.firstChild)):Ut=u),te(t,e,e.pendingProps.children,n),Su(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((u=a=Ut)&&(a=Zv(a,e.type,e.pendingProps,De),a!==null?(e.stateNode=a,$t=e,Ut=Le(a.firstChild),De=!1,u=!0):u=!1),u||Tn(e)),ke(e),u=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,go(u,c)?a=null:f!==null&&go(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=pc(t,e,sv,null,null,n),fi._currentValue=u),Su(t,e),te(t,e,a,n),e.child;case 6:return t===null&&yt&&((t=n=Ut)&&(n=Jv(n,e.pendingProps,De),n!==null?(e.stateNode=n,$t=e,Ut=null,t=!0):t=!1),t||Tn(e)),null;case 13:return Zh(t,e,n);case 4:return Ht(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ha(e,null,a,n):te(t,e,a,n),e.child;case 11:return jh(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,Mn(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,ca(e),u=It(u),a=a(u),e.flags|=1,te(t,e,a,n),e.child;case 14:return Hh(t,e,e.type,e.pendingProps,n);case 15:return qh(t,e,e.type,e.pendingProps,n);case 19:return Ph(t,e,n);case 31:return yv(t,e,n);case 22:return Qh(t,e,n,e.pendingProps);case 24:return ca(e),a=It(Xt),t===null?(u=uc(),u===null&&(u=zt,c=lc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),e.memoizedState={parent:a,cache:u},cc(e),Mn(e,Xt,u)):((t.lanes&n)!==0&&(oc(t,e),Kl(e,null,null,n),Vl()),u=t.memoizedState,c=e.memoizedState,u.parent!==a?(u={parent:a,cache:a},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Mn(e,Xt,a)):(a=c.cache,Mn(e,Xt,a),a!==u.cache&&ac(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 on(t){t.flags|=4}function Vc(t,e,n,a,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Rd())t.flags|=8192;else throw fa=lu,sc}else t.flags&=-16777217}function Fh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!fm(e))if(Rd())t.flags|=8192;else throw fa=lu,sc}function _u(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ar():536870912,t.lanes|=e,ul|=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 u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function vv(t,e,n){var a=e.pendingProps;switch($s(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),ln(Xt),Dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ja(e)?on(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,tc())),Lt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(on(e),c!==null?(Lt(e),Fh(e,c)):(Lt(e),Vc(e,u,null,a,n))):c?c!==t.memoizedState?(on(e),Lt(e),Fh(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&on(e),Lt(e),Vc(e,u,t,a,n)),null;case 27:if(Fe(e),n=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&on(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=J.current,Ja(e)?xf(e):(t=am(u,a,n),e.stateNode=t,on(e))}return Lt(e),null;case 5:if(Fe(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&on(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=J.current,Ja(e))xf(e);else{var f=Bu(rt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);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(u,{is:a.is}):f.createElement(u)}}c[Wt]=e,c[ce]=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,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&on(e)}}return Lt(e),Vc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&on(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,Ja(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=$t,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Zd(t.nodeValue,n)),t||Tn(e,!0)}else t=Bu(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=Ja(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 ua(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=tc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(_e(e),e):(_e(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(u=Ja(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Wt]=e}else ua(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),u=!1}else u=tc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(_e(e),e):(_e(e),null)}return _e(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==u&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),_u(e,e.updateQueue),Lt(e),null);case 4:return Dt(),t===null&&ho(e.stateNode.containerInfo),Lt(e),null;case 10:return ln(e.type),Lt(e),null;case 19:if(H(qt),a=e.memoizedState,a===null)return Lt(e),null;if(u=(e.flags&128)!==0,c=a.rendering,c===null)if(u)Wl(a,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=cu(t),c!==null){for(e.flags|=128,Wl(a,!1),t=c.updateQueue,e.updateQueue=t,_u(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Tf(n,t),n=n.sibling;return Z(qt,qt.current&1|2),yt&&nn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&le()>Ou&&(e.flags|=128,u=!0,Wl(a,!1),e.lanes=4194304)}else{if(!u)if(t=cu(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,_u(e,t),Wl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!yt)return Lt(e),null}else 2*le()-a.renderingStartTime>Ou&&n!==536870912&&(e.flags|=128,u=!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,Z(qt,u?n&1|2:n&1),yt&&nn(e,a.treeForkCount),t):(Lt(e),null);case 22:case 23:return _e(e),dc(),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&&_u(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&H(oa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ln(Xt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function gv(t,e){switch($s(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ln(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 Fe(e),null;case 31:if(e.memoizedState!==null){if(_e(e),e.alternate===null)throw Error(o(340));ua()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(_e(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ua()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(qt),null;case 4:return Dt(),null;case 10:return ln(e.type),null;case 22:case 23:return _e(e),dc(),t!==null&&H(oa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ln(Xt),null;case 25:return null;default:return null}}function Wh(t,e){switch($s(e),e.tag){case 3:ln(Xt),Dt();break;case 26:case 27:case 5:Fe(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&_e(e);break;case 13:_e(e);break;case 19:H(qt);break;case 10:ln(e.type);break;case 22:case 23:_e(e),dc(),t!==null&&H(oa);break;case 24:ln(Xt)}}function $l(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;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!==u)}}catch(p){Mt(e,e.return,p)}}function Dn(t,e,n){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&t)===t){var f=a.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,u=e;var R=n,x=p;try{x()}catch(N){Mt(u,R,N)}}}a=a.next}while(a!==c)}}catch(N){Mt(e,e.return,N)}}function $h(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Gf(e,n)}catch(a){Mt(t,t.return,a)}}}function Ih(t,e,n){n.props=ma(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(u){Mt(t,e,u)}}function Ze(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Mt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Mt(t,e,u)}else n.current=null}function td(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(u){Mt(t,t.return,u)}}function Kc(t,e,n){try{var a=t.stateNode;Qv(a,t.type,n,e),a[ce]=e}catch(u){Mt(t,t.return,u)}}function ed(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Hn(t.type)||t.tag===4}function Zc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ed(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&&Hn(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 Jc(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=Ie));else if(a!==4&&(a===27&&Hn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Jc(t,e,n),t=t.sibling;t!==null;)Jc(t,e,n),t=t.sibling}function Ru(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&&Hn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ru(t,e,n),t=t.sibling;t!==null;)Ru(t,e,n),t=t.sibling}function nd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,a,n),e[Wt]=t,e[ce]=n}catch(c){Mt(t,t.return,c)}}var rn=!1,Zt=!1,Pc=!1,ad=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function Sv(t,e){if(t=t.containerInfo,po=Xu,t=yf(t),Ys(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 u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,p=-1,R=-1,x=0,N=0,j=t,z=null;e:for(;;){for(var U;j!==n||u!==0&&j.nodeType!==3||(p=f+u),j!==c||a!==0&&j.nodeType!==3||(R=f+a),j.nodeType===3&&(f+=j.nodeValue.length),(U=j.firstChild)!==null;)z=j,j=U;for(;;){if(j===t)break e;if(z===n&&++x===u&&(p=f),z===c&&++N===a&&(R=f),(U=j.nextSibling)!==null)break;j=z,z=j.parentNode}j=U}n=p===-1||R===-1?null:{start:p,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(vo={focusedElem:t,selectionRange:n},Xu=!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++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,u=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var P=ma(n.type,u);t=a.getSnapshotBeforeUpdate(P,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)bo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":bo(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 ld(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:hn(t,n),a&4&&$l(5,n);break;case 1:if(hn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(n,n.return,f)}else{var u=ma(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(n,n.return,f)}}a&64&&$h(n),a&512&&Il(n,n.return);break;case 3:if(hn(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{Gf(t,e)}catch(f){Mt(n,n.return,f)}}break;case 27:e===null&&a&4&&nd(n);case 26:case 5:hn(t,n),e===null&&a&4&&td(n),a&512&&Il(n,n.return);break;case 12:hn(t,n);break;case 31:hn(t,n),a&4&&sd(t,n);break;case 13:hn(t,n),a&4&&cd(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Av.bind(null,n),Pv(t,n))));break;case 22:if(a=n.memoizedState!==null||rn,!a){e=e!==null&&e.memoizedState!==null||Zt,u=rn;var c=Zt;rn=a,(Zt=e)&&!c?dn(t,n,(n.subtreeFlags&8772)!==0):hn(t,n),rn=u,Zt=c}break;case 30:break;default:hn(t,n)}}function id(t){var e=t.alternate;e!==null&&(t.alternate=null,id(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ts(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,re=!1;function fn(t,e,n){for(n=n.child;n!==null;)ud(t,e,n),n=n.sibling}function ud(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(El,n)}catch{}switch(n.tag){case 26:Zt||Ze(n,e),fn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Ze(n,e);var a=wt,u=re;Hn(n.type)&&(wt=n.stateNode,re=!1),fn(t,e,n),ci(n.stateNode),wt=a,re=u;break;case 5:Zt||Ze(n,e);case 6:if(a=wt,u=re,wt=null,fn(t,e,n),wt=a,re=u,wt!==null)if(re)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&&(re?(t=wt,$d(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ml(t)):$d(wt,n.stateNode));break;case 4:a=wt,u=re,wt=n.stateNode.containerInfo,re=!0,fn(t,e,n),wt=a,re=u;break;case 0:case 11:case 14:case 15:Dn(2,n,e),Zt||Dn(4,n,e),fn(t,e,n);break;case 1:Zt||(Ze(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Ih(n,e,a)),fn(t,e,n);break;case 21:fn(t,e,n);break;case 22:Zt=(a=Zt)||n.memoizedState!==null,fn(t,e,n),Zt=a;break;default:fn(t,e,n)}}function sd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ml(t)}catch(n){Mt(e,e.return,n)}}}function cd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ml(t)}catch(n){Mt(e,e.return,n)}}function bv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ad),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ad),e;default:throw Error(o(435,t.tag))}}function Eu(t,e){var n=bv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var u=xv.bind(null,t,a);a.then(u,u)}})}function fe(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],c=t,f=e,p=f;t:for(;p!==null;){switch(p.tag){case 27:if(Hn(p.type)){wt=p.stateNode,re=!1;break t}break;case 5:wt=p.stateNode,re=!1;break t;case 3:case 4:wt=p.stateNode.containerInfo,re=!0;break t}p=p.return}if(wt===null)throw Error(o(160));ud(c,f,u),wt=null,re=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)od(e,t),e=e.sibling}var Ye=null;function od(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:fe(e,t),he(t),a&4&&(Dn(3,t,t.return),$l(3,t),Dn(5,t,t.return));break;case 1:fe(e,t),he(t),a&512&&(Zt||n===null||Ze(n,n.return)),a&64&&rn&&(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 u=Ye;if(fe(e,t),he(t),a&512&&(Zt||n===null||Ze(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,u=u.ownerDocument||u;e:switch(a){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Ol]||c[Wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),ee(c,a,n),c[Wt]=t,kt(c),a=c;break t;case"link":var f=om("link","href",u).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=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;case"meta":if(f=om("meta","content",u).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=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;default:throw Error(o(468,a))}c[Wt]=t,kt(c),a=c}t.stateNode=a}else rm(u,t.type,t.stateNode);else t.stateNode=cm(u,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?rm(u,t.type,t.stateNode):cm(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Kc(t,t.memoizedProps,n.memoizedProps)}break;case 27:fe(e,t),he(t),a&512&&(Zt||n===null||Ze(n,n.return)),n!==null&&a&4&&Kc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(fe(e,t),he(t),a&512&&(Zt||n===null||Ze(n,n.return)),t.flags&32){u=t.stateNode;try{ja(u,"")}catch(P){Mt(t,t.return,P)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,Kc(t,u,n!==null?n.memoizedProps:u)),a&1024&&(Pc=!0);break;case 6:if(fe(e,t),he(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(P){Mt(t,t.return,P)}}break;case 3:if(qu=null,u=Ye,Ye=ju(e.containerInfo),fe(e,t),Ye=u,he(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ml(e.containerInfo)}catch(P){Mt(t,t.return,P)}Pc&&(Pc=!1,rd(t));break;case 4:a=Ye,Ye=ju(t.stateNode.containerInfo),fe(e,t),he(t),Ye=a;break;case 12:fe(e,t),he(t);break;case 31:fe(e,t),he(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Eu(t,a)));break;case 13:fe(e,t),he(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Mu=le()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Eu(t,a)));break;case 22:u=t.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,x=rn,N=Zt;if(rn=x||u,Zt=N||R,fe(e,t),Zt=N,rn=x,he(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||R||rn||Zt||ya(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){R=n=e;try{if(c=R.stateNode,u)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=R.stateNode;var j=R.memoizedProps.style,z=j!=null&&j.hasOwnProperty("display")?j.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(P){Mt(R,R.return,P)}}}else if(e.tag===6){if(n===null){R=e;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(P){Mt(R,R.return,P)}}}else if(e.tag===18){if(n===null){R=e;try{var U=R.stateNode;u?Id(U,!0):Id(R.stateNode,!1)}catch(P){Mt(R,R.return,P)}}}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,Eu(t,n))));break;case 19:fe(e,t),he(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Eu(t,a)));break;case 30:break;case 21:break;default:fe(e,t),he(t)}}function he(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(ed(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var u=n.stateNode,c=Zc(t);Ru(t,c,u);break;case 5:var f=n.stateNode;n.flags&32&&(ja(f,""),n.flags&=-33);var p=Zc(t);Ru(t,p,f);break;case 3:case 4:var R=n.stateNode.containerInfo,x=Zc(t);Jc(t,x,R);break;default:throw Error(o(161))}}catch(N){Mt(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function rd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;rd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function hn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ld(t,e.alternate,e),e=e.sibling}function ya(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Dn(4,e,e.return),ya(e);break;case 1:Ze(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Ih(e,e.return,n),ya(e);break;case 27:ci(e.stateNode);case 26:case 5:Ze(e,e.return),ya(e);break;case 22:e.memoizedState===null&&ya(e);break;case 30:ya(e);break;default:ya(e)}t=t.sibling}}function dn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,u=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:dn(u,c,n),$l(4,c);break;case 1:if(dn(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(x){Mt(a,a.return,x)}if(a=c,u=a.updateQueue,u!==null){var p=a.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)Yf(R[u],p)}catch(x){Mt(a,a.return,x)}}n&&f&64&&$h(c),Il(c,c.return);break;case 27:nd(c);case 26:case 5:dn(u,c,n),n&&a===null&&f&4&&td(c),Il(c,c.return);break;case 12:dn(u,c,n);break;case 31:dn(u,c,n),n&&f&4&&sd(u,c);break;case 13:dn(u,c,n),n&&f&4&&cd(u,c);break;case 22:c.memoizedState===null&&dn(u,c,n),Il(c,c.return);break;case 30:break;default:dn(u,c,n)}e=e.sibling}}function kc(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 Fc(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 Ge(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fd(t,e,n,a),e=e.sibling}function fd(t,e,n,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Ge(t,e,n,a),u&2048&&$l(9,e);break;case 1:Ge(t,e,n,a);break;case 3:Ge(t,e,n,a),u&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(u&2048){Ge(t,e,n,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,p=c.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Mt(e,e.return,R)}}else Ge(t,e,n,a);break;case 31:Ge(t,e,n,a);break;case 13:Ge(t,e,n,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Ge(t,e,n,a):ti(t,e):c._visibility&2?Ge(t,e,n,a):(c._visibility|=2,al(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),u&2048&&kc(f,e);break;case 24:Ge(t,e,n,a),u&2048&&Fc(e.alternate,e);break;default:Ge(t,e,n,a)}}function al(t,e,n,a,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,p=n,R=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:al(c,f,p,R,u),$l(8,f);break;case 23:break;case 22:var N=f.stateNode;f.memoizedState!==null?N._visibility&2?al(c,f,p,R,u):ti(c,f):(N._visibility|=2,al(c,f,p,R,u)),u&&x&2048&&kc(f.alternate,f);break;case 24:al(c,f,p,R,u),u&&x&2048&&Fc(f.alternate,f);break;default:al(c,f,p,R,u)}e=e.sibling}}function ti(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,u=a.flags;switch(a.tag){case 22:ti(n,a),u&2048&&kc(a.alternate,a);break;case 24:ti(n,a),u&2048&&Fc(a.alternate,a);break;default:ti(n,a)}e=e.sibling}}var ei=8192;function ll(t,e,n){if(t.subtreeFlags&ei)for(t=t.child;t!==null;)hd(t,e,n),t=t.sibling}function hd(t,e,n){switch(t.tag){case 26:ll(t,e,n),t.flags&ei&&t.memoizedState!==null&&ug(n,Ye,t.memoizedState,t.memoizedProps);break;case 5:ll(t,e,n);break;case 3:case 4:var a=Ye;Ye=ju(t.stateNode.containerInfo),ll(t,e,n),Ye=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ei,ei=16777216,ll(t,e,n),ei=a):ll(t,e,n));break;default:ll(t,e,n)}}function dd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function 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,yd(a,t)}dd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)md(t),t=t.sibling}function md(t){switch(t.tag){case 0:case 11:case 15:ni(t),t.flags&2048&&Dn(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,Tu(t)):ni(t);break;default:ni(t)}}function Tu(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,yd(a,t)}dd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Dn(8,e,e.return),Tu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Tu(e));break;default:Tu(e)}t=t.sibling}}function yd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Dn(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 u=a.sibling,c=a.return;if(id(a),a===n){Ft=null;break t}if(u!==null){u.return=c,Ft=u;break t}Ft=c}}}var _v={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}},Rv=typeof WeakMap=="function"?WeakMap:Map,St=0,zt=null,ft=null,dt=0,Tt=0,Re=null,Un=!1,il=!1,Wc=!1,mn=0,jt=0,Ln=0,pa=0,$c=0,Ee=0,ul=0,ai=null,de=null,Ic=!1,Mu=0,pd=0,Ou=1/0,Cu=null,wn=null,Jt=0,Nn=null,sl=null,yn=0,to=0,eo=null,vd=null,li=0,no=null;function Te(){return(St&2)!==0&&dt!==0?dt&-dt:L.T!==null?co():Ur()}function gd(){if(Ee===0)if((dt&536870912)===0||yt){var t=Ni;Ni<<=1,(Ni&3932160)===0&&(Ni=262144),Ee=t}else Ee=536870912;return t=be.current,t!==null&&(t.flags|=32),Ee}function me(t,e,n){(t===zt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(cl(t,0),Bn(t,dt,Ee,!1)),Ml(t,n),((St&2)===0||t!==zt)&&(t===zt&&((St&2)===0&&(pa|=n),jt===4&&Bn(t,dt,Ee,!1)),Je(t))}function Sd(t,e,n){if((St&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Tl(t,e),u=a?Mv(t,e):lo(t,e,!0),c=a;do{if(u===0){il&&!a&&Bn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!Ev(n)){u=lo(t,e,!1),c=!1;continue}if(u===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;u=ai;var R=p.current.memoizedState.isDehydrated;if(R&&(cl(p,f).flags|=256),f=lo(p,f,!1),f!==2){if(Wc&&!R){p.errorRecoveryDisabledLanes|=c,pa|=c,u=4;break t}c=de,de=u,c!==null&&(de===null?de=c:de.push.apply(de,c))}u=f}if(c=!1,u!==2)continue}}if(u===1){cl(t,0),Bn(t,e,0,!0);break}t:{switch(a=t,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Bn(a,e,Ee,!Un);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=Mu+300-le(),10<u)){if(Bn(a,e,Ee,!Un),ji(a,0,!0)!==0)break t;yn=e,a.timeoutHandle=Fd(bd.bind(null,a,n,de,Cu,Ic,e,Ee,pa,ul,Un,c,"Throttled",-0,0),u);break t}bd(a,n,de,Cu,Ic,e,Ee,pa,ul,Un,c,null,-0,0)}}break}while(!0);Je(t)}function bd(t,e,n,a,u,c,f,p,R,x,N,j,z,U){if(t.timeoutHandle=-1,j=e.subtreeFlags,j&8192||(j&16785408)===16785408){j={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ie},hd(e,c,j);var P=(c&62914560)===c?Mu-le():(c&4194048)===c?pd-le():0;if(P=sg(j,P),P!==null){yn=c,t.cancelPendingCommit=P(Ad.bind(null,t,e,c,n,a,u,f,p,R,N,j,null,z,U)),Bn(t,c,f,!x);return}}Ad(t,e,c,n,a,u,f,p,R)}function Ev(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 u=n[a],c=u.getSnapshot;u=u.value;try{if(!ge(c(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Bn(t,e,n,a){e&=~$c,e&=~pa,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var u=e;0<u;){var c=31-ve(u),f=1<<c;a[c]=-1,u&=~f}n!==0&&xr(t,n,e)}function Au(){return(St&6)===0?(ii(0),!1):!0}function ao(){if(ft!==null){if(Tt===0)var t=ft.return;else t=ft,an=sa=null,Sc(t),$a=null,Yl=0,t=ft;for(;t!==null;)Wh(t.alternate,t),t=t.return;ft=null}}function cl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Xv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),yn=0,ao(),zt=t,ft=n=en(t.current,null),dt=e,Tt=0,Re=null,Un=!1,il=Tl(t,e),Wc=!1,ul=Ee=$c=pa=Ln=jt=0,de=ai=null,Ic=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var u=31-ve(a),c=1<<u;e|=t[u],a&=~c}return mn=e,ki(),n}function _d(t,e){ct=null,L.H=kl,e===Wa||e===au?(e=jf(),Tt=3):e===sc?(e=jf(),Tt=4):Tt=e===Nc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,ft===null&&(jt=1,vu(t,Ae(e,t.current)))}function Rd(){var t=be.current;return t===null?!0:(dt&4194048)===dt?Ue===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Ue:!1}function Ed(){var t=L.H;return L.H=kl,t===null?kl:t}function Td(){var t=L.A;return L.A=_v,t}function xu(){jt=4,Un||(dt&4194048)!==dt&&be.current!==null||(il=!0),(Ln&134217727)===0&&(pa&134217727)===0||zt===null||Bn(zt,dt,Ee,!1)}function lo(t,e,n){var a=St;St|=2;var u=Ed(),c=Td();(zt!==t||dt!==e)&&(Cu=null,cl(t,e)),e=!1;var f=jt;t:do try{if(Tt!==0&&ft!==null){var p=ft,R=Re;switch(Tt){case 8:ao(),f=6;break t;case 3:case 2:case 9:case 6:be.current===null&&(e=!0);var x=Tt;if(Tt=0,Re=null,ol(t,p,R,x),n&&il){f=0;break t}break;default:x=Tt,Tt=0,Re=null,ol(t,p,R,x)}}Tv(),f=jt;break}catch(N){_d(t,N)}while(!0);return e&&t.shellSuspendCounter++,an=sa=null,St=a,L.H=u,L.A=c,ft===null&&(zt=null,dt=0,ki()),f}function Tv(){for(;ft!==null;)Md(ft)}function Mv(t,e){var n=St;St|=2;var a=Ed(),u=Td();zt!==t||dt!==e?(Cu=null,Ou=le()+500,cl(t,e)):il=Tl(t,e);t:do try{if(Tt!==0&&ft!==null){e=ft;var c=Re;e:switch(Tt){case 1:Tt=0,Re=null,ol(t,e,c,1);break;case 2:case 9:if(Nf(c)){Tt=0,Re=null,Od(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:Nf(c)?(Tt=0,Re=null,Od(e)):(Tt=0,Re=null,ol(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?fm(f):p.stateNode.complete){Tt=0,Re=null;var R=p.sibling;if(R!==null)ft=R;else{var x=p.return;x!==null?(ft=x,zu(x)):ft=null}break e}}Tt=0,Re=null,ol(t,e,c,5);break;case 6:Tt=0,Re=null,ol(t,e,c,6);break;case 8:ao(),jt=6;break t;default:throw Error(o(462))}}Ov();break}catch(N){_d(t,N)}while(!0);return an=sa=null,L.H=a,L.A=u,St=n,ft!==null?0:(zt=null,dt=0,ki(),jt)}function Ov(){for(;ft!==null&&!Ss();)Md(ft)}function Md(t){var e=kh(t.alternate,t,mn);t.memoizedProps=t.pendingProps,e===null?zu(t):ft=e}function Od(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Xh(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Xh(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:Sc(e);default:Wh(n,e),e=ft=Tf(e,mn),e=kh(n,e,mn)}t.memoizedProps=t.pendingProps,e===null?zu(t):ft=e}function ol(t,e,n,a){an=sa=null,Sc(e),$a=null,Yl=0;var u=e.return;try{if(mv(t,u,e,n,dt)){jt=1,vu(t,Ae(n,t.current)),ft=null;return}}catch(c){if(u!==null)throw ft=u,c;jt=1,vu(t,Ae(n,t.current)),ft=null;return}e.flags&32768?(yt||a===1?t=!0:il||(dt&536870912)!==0?t=!1:(Un=t=!0,(a===2||a===9||a===3||a===6)&&(a=be.current,a!==null&&a.tag===13&&(a.flags|=16384))),Cd(e,t)):zu(e)}function zu(t){var e=t;do{if((e.flags&32768)!==0){Cd(e,Un);return}t=e.return;var n=vv(e.alternate,e,mn);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 Cd(t,e){do{var n=gv(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 Ad(t,e,n,a,u,c,f,p,R){t.cancelPendingCommit=null;do Du();while(Jt!==0);if((St&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Zs,ip(t,n,c,f,p,R),t===zt&&(ft=zt=null,dt=0),sl=e,Nn=t,yn=n,to=c,eo=u,vd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,zv(ne,function(){return Ld(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,u=K.p,K.p=2,f=St,St|=4;try{Sv(t,e,n)}finally{St=f,K.p=u,L.T=a}}Jt=1,xd(),zd(),Dd()}}function xd(){if(Jt===1){Jt=0;var t=Nn,e=sl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var a=K.p;K.p=2;var u=St;St|=4;try{od(e,t);var c=vo,f=yf(t.containerInfo),p=c.focusedElem,R=c.selectionRange;if(f!==p&&p&&p.ownerDocument&&mf(p.ownerDocument.documentElement,p)){if(R!==null&&Ys(p)){var x=R.start,N=R.end;if(N===void 0&&(N=x),"selectionStart"in p)p.selectionStart=x,p.selectionEnd=Math.min(N,p.value.length);else{var j=p.ownerDocument||document,z=j&&j.defaultView||window;if(z.getSelection){var U=z.getSelection(),P=p.textContent.length,lt=Math.min(R.start,P),At=R.end===void 0?lt:Math.min(R.end,P);!U.extend&<>At&&(f=At,At=lt,lt=f);var C=df(p,lt),E=df(p,At);if(C&&E&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==E.node||U.focusOffset!==E.offset)){var A=j.createRange();A.setStart(C.node,C.offset),U.removeAllRanges(),lt>At?(U.addRange(A),U.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),U.addRange(A))}}}}for(j=[],U=p;U=U.parentNode;)U.nodeType===1&&j.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<j.length;p++){var B=j[p];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Xu=!!po,vo=po=null}finally{St=u,K.p=a,L.T=n}}t.current=e,Jt=2}}function zd(){if(Jt===2){Jt=0;var t=Nn,e=sl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var a=K.p;K.p=2;var u=St;St|=4;try{ld(t,e.alternate,e)}finally{St=u,K.p=a,L.T=n}}Jt=3}}function Dd(){if(Jt===4||Jt===3){Jt=0,Di();var t=Nn,e=sl,n=yn,a=vd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,sl=Nn=null,Ud(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(wn=null),Rs(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(El,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=L.T,u=K.p,K.p=2,L.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{L.T=e,K.p=u}}(yn&3)!==0&&Du(),Je(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===no?li++:(li=0,no=t):li=0,ii(0)}}function Ud(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ql(e)))}function Du(){return xd(),zd(),Dd(),Ld()}function Ld(){if(Jt!==5)return!1;var t=Nn,e=to;to=0;var n=Rs(yn),a=L.T,u=K.p;try{K.p=32>n?32:n,L.T=null,n=eo,eo=null;var c=Nn,f=yn;if(Jt=0,sl=Nn=null,yn=0,(St&6)!==0)throw Error(o(331));var p=St;if(St|=4,md(c.current),fd(c,c.current,f,n),St=p,ii(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(El,c)}catch{}return!0}finally{K.p=u,L.T=a,Ud(t,e)}}function wd(t,e,n){e=Ae(n,e),e=wc(t.stateNode,e,2),t=An(t,e,2),t!==null&&(Ml(t,2),Je(t))}function Mt(t,e,n){if(t.tag===3)wd(t,t,n);else for(;e!==null;){if(e.tag===3){wd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(wn===null||!wn.has(a))){t=Ae(n,t),n=Nh(2),a=An(e,n,2),a!==null&&(Bh(n,a,e,t),Ml(a,2),Je(a));break}}e=e.return}}function io(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new Rv;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(n)||(Wc=!0,u.add(n),t=Cv.bind(null,t,e,n),e.then(t,t))}function Cv(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()-Mu?(St&2)===0&&cl(t,0):$c|=n,ul===dt&&(ul=0)),Je(t)}function Nd(t,e){e===0&&(e=Ar()),t=la(t,e),t!==null&&(Ml(t,e),Je(t))}function Av(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Nd(t,n)}function xv(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(n=u.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),Nd(t,n)}function zv(t,e){return qe(t,e)}var Uu=null,rl=null,uo=!1,Lu=!1,so=!1,jn=0;function Je(t){t!==rl&&t.next===null&&(rl===null?Uu=rl=t:rl=rl.next=t),Lu=!0,uo||(uo=!0,Uv())}function ii(t,e){if(!so&&Lu){so=!0;do for(var n=!1,a=Uu;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var f=a.suspendedLanes,p=a.pingedLanes;c=(1<<31-ve(42|t)+1)-1,c&=u&~(f&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,qd(a,c))}else c=dt,c=ji(a,a===zt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Tl(a,c)||(n=!0,qd(a,c));a=a.next}while(n);so=!1}}function Dv(){Bd()}function Bd(){Lu=uo=!1;var t=0;jn!==0&&Gv()&&(t=jn);for(var e=le(),n=null,a=Uu;a!==null;){var u=a.next,c=jd(a,e);c===0?(a.next=null,n===null?Uu=u:n.next=u,u===null&&(rl=n)):(n=a,(t!==0||(c&3)!==0)&&(Lu=!0)),a=u}Jt!==0&&Jt!==5||ii(t),jn!==0&&(jn=0)}function jd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-ve(c),p=1<<f,R=u[f];R===-1?((p&n)===0||(p&a)!==0)&&(u[f]=lp(p,e)):R<=e&&(t.expiredLanes|=p),c&=~p}if(e=zt,n=dt,n=ji(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&&Rl(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&&Rl(a),Rs(n)){case 2:case 8:n=Gt;break;case 32:n=ne;break;case 268435456:n=Cr;break;default:n=ne}return a=Hd.bind(null,t),n=qe(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Rl(a),t.callbackPriority=2,t.callbackNode=null,2}function Hd(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Du()&&t.callbackNode!==n)return null;var a=dt;return a=ji(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Sd(t,a,e),jd(t,le()),t.callbackNode!=null&&t.callbackNode===n?Hd.bind(null,t):null)}function qd(t,e){if(Du())return null;Sd(t,e,!0)}function Uv(){Vv(function(){(St&6)!==0?qe(xt,Dv):Bd()})}function co(){if(jn===0){var t=ka;t===0&&(t=wi,wi<<=1,(wi&261888)===0&&(wi=256)),jn=t}return jn}function Qd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Yi(""+t)}function Yd(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 Lv(t,e,n,a,u){if(e==="submit"&&n&&n.stateNode===u){var c=Qd((u[ce]||null).action),f=a.submitter;f&&(e=(e=f[ce]||null)?Qd(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var p=new Ki("action","action",null,a,u);t.push({event:p,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(jn!==0){var R=f?Yd(u,f):new FormData(u);Ac(n,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(p.preventDefault(),R=f?Yd(u,f):new FormData(u),Ac(n,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var oo=0;oo<Ks.length;oo++){var ro=Ks[oo],wv=ro.toLowerCase(),Nv=ro[0].toUpperCase()+ro.slice(1);Qe(wv,"on"+Nv)}Qe(gf,"onAnimationEnd"),Qe(Sf,"onAnimationIteration"),Qe(bf,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(Wp,"onTransitionRun"),Qe($p,"onTransitionStart"),Qe(Ip,"onTransitionCancel"),Qe(_f,"onTransitionEnd"),Na("onMouseEnter",["mouseout","mouseover"]),Na("onMouseLeave",["mouseout","mouseover"]),Na("onPointerEnter",["pointerout","pointerover"]),Na("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("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(" "),Bv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ui));function Gd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],u=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var p=a[f],R=p.instance,x=p.currentTarget;if(p=p.listener,R!==c&&u.isPropagationStopped())break t;c=p,u.currentTarget=x;try{c(u)}catch(N){Pi(N)}u.currentTarget=null,c=R}else for(f=0;f<a.length;f++){if(p=a[f],R=p.instance,x=p.currentTarget,p=p.listener,R!==c&&u.isPropagationStopped())break t;c=p,u.currentTarget=x;try{c(u)}catch(N){Pi(N)}u.currentTarget=null,c=R}}}}function ht(t,e){var n=e[Es];n===void 0&&(n=e[Es]=new Set);var a=t+"__bubble";n.has(a)||(Xd(e,t,2,!1),n.add(a))}function fo(t,e,n){var a=0;e&&(a|=4),Xd(n,t,a,e)}var wu="_reactListening"+Math.random().toString(36).slice(2);function ho(t){if(!t[wu]){t[wu]=!0,Nr.forEach(function(n){n!=="selectionchange"&&(Bv.has(n)||fo(n,!1,t),fo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[wu]||(e[wu]=!0,fo("selectionchange",!1,e))}}function Xd(t,e,n,a){switch(gm(e)){case 2:var u=rg;break;case 8:u=fg;break;default:u=Ao}n=u.bind(null,e,n,t),u=void 0,!Us||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function mo(t,e,n,a,u){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===u)break;if(f===4)for(f=a.return;f!==null;){var R=f.tag;if((R===3||R===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;p!==null;){if(f=Ua(p),f===null)return;if(R=f.tag,R===5||R===6||R===26||R===27){a=c=f;continue t}p=p.parentNode}}a=a.return}Jr(function(){var x=c,N=zs(n),j=[];t:{var z=Rf.get(t);if(z!==void 0){var U=Ki,P=t;switch(t){case"keypress":if(Xi(n)===0)break t;case"keydown":case"keyup":U=xp;break;case"focusin":P="focus",U=Bs;break;case"focusout":P="blur",U=Bs;break;case"beforeblur":case"afterblur":U=Bs;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":U=Fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=vp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Up;break;case gf:case Sf:case bf:U=bp;break;case _f:U=wp;break;case"scroll":case"scrollend":U=yp;break;case"wheel":U=Bp;break;case"copy":case"cut":case"paste":U=Rp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=$r;break;case"toggle":case"beforetoggle":U=Hp}var lt=(e&4)!==0,At=!lt&&(t==="scroll"||t==="scrollend"),C=lt?z!==null?z+"Capture":null:z;lt=[];for(var E=x,A;E!==null;){var B=E;if(A=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||A===null||C===null||(B=Al(E,C),B!=null&<.push(si(E,B,A))),At)break;E=E.return}0<lt.length&&(z=new U(z,P,null,n,N),j.push({event:z,listeners:lt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",z&&n!==xs&&(P=n.relatedTarget||n.fromElement)&&(Ua(P)||P[Da]))break t;if((U||z)&&(z=N.window===N?N:(z=N.ownerDocument)?z.defaultView||z.parentWindow:window,U?(P=n.relatedTarget||n.toElement,U=x,P=P?Ua(P):null,P!==null&&(At=h(P),lt=P.tag,P!==At||lt!==5&<!==27&<!==6)&&(P=null)):(U=null,P=x),U!==P)){if(lt=Fr,B="onMouseLeave",C="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(lt=$r,B="onPointerLeave",C="onPointerEnter",E="pointer"),At=U==null?z:Cl(U),A=P==null?z:Cl(P),z=new lt(B,E+"leave",U,n,N),z.target=At,z.relatedTarget=A,B=null,Ua(N)===x&&(lt=new lt(C,E+"enter",P,n,N),lt.target=A,lt.relatedTarget=At,B=lt),At=B,U&&P)e:{for(lt=jv,C=U,E=P,A=0,B=C;B;B=lt(B))A++;B=0;for(var nt=E;nt;nt=lt(nt))B++;for(;0<A-B;)C=lt(C),A--;for(;0<B-A;)E=lt(E),B--;for(;A--;){if(C===E||E!==null&&C===E.alternate){lt=C;break e}C=lt(C),E=lt(E)}lt=null}else lt=null;U!==null&&Vd(j,z,U,lt,!1),P!==null&&At!==null&&Vd(j,At,P,lt,!0)}}t:{if(z=x?Cl(x):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var vt=sf;else if(lf(z))if(cf)vt=Pp;else{vt=Zp;var $=Kp}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&As(x.elementType)&&(vt=sf):vt=Jp;if(vt&&(vt=vt(t,x))){uf(j,vt,n,N);break t}$&&$(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&Cs(z,"number",z.value)}switch($=x?Cl(x):window,t){case"focusin":(lf($)||$.contentEditable==="true")&&(Ya=$,Gs=x,Bl=null);break;case"focusout":Bl=Gs=Ya=null;break;case"mousedown":Xs=!0;break;case"contextmenu":case"mouseup":case"dragend":Xs=!1,pf(j,n,N);break;case"selectionchange":if(Fp)break;case"keydown":case"keyup":pf(j,n,N)}var ot;if(Hs)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 Qa?nf(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Ir&&n.locale!=="ko"&&(Qa||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Qa&&(ot=Pr()):(_n=N,Ls="value"in _n?_n.value:_n.textContent,Qa=!0)),$=Nu(x,mt),0<$.length&&(mt=new Wr(mt,t,null,n,N),j.push({event:mt,listeners:$}),ot?mt.data=ot:(ot=af(n),ot!==null&&(mt.data=ot)))),(ot=Qp?Yp(t,n):Gp(t,n))&&(mt=Nu(x,"onBeforeInput"),0<mt.length&&($=new Wr("onBeforeInput","beforeinput",null,n,N),j.push({event:$,listeners:mt}),$.data=ot)),Lv(j,t,x,n,N)}Gd(j,e)})}function si(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Nu(t,e){for(var n=e+"Capture",a=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Al(t,n),u!=null&&a.unshift(si(t,u,c)),u=Al(t,e),u!=null&&a.push(si(t,u,c))),t.tag===3)return a;t=t.return}return[]}function jv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vd(t,e,n,a,u){for(var c=e._reactName,f=[];n!==null&&n!==a;){var p=n,R=p.alternate,x=p.stateNode;if(p=p.tag,R!==null&&R===a)break;p!==5&&p!==26&&p!==27||x===null||(R=x,u?(x=Al(n,c),x!=null&&f.unshift(si(n,x,R))):u||(x=Al(n,c),x!=null&&f.push(si(n,x,R)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Hv=/\r\n?/g,qv=/\u0000|\uFFFD/g;function Kd(t){return(typeof t=="string"?t:""+t).replace(Hv,`
|
|
9
|
-
`).replace(qv,"")}function Zd(t,e){return e=Kd(e),Kd(t)===e}function Ct(t,e,n,a,u,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ja(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ja(t,""+a);break;case"className":qi(t,"class",a);break;case"tabIndex":qi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":qi(t,n,a);break;case"style":Kr(t,a,c);break;case"data":if(e!=="object"){qi(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=Yi(""+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",u.name,u,null),Ct(t,e,"formEncType",u.formEncType,u,null),Ct(t,e,"formMethod",u.formMethod,u,null),Ct(t,e,"formTarget",u.formTarget,u,null)):(Ct(t,e,"encType",u.encType,u,null),Ct(t,e,"method",u.method,u,null),Ct(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Yi(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Ie);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(u.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=Yi(""+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),Hi(t,"popover",a);break;case"xlinkActuate":$e(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$e(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$e(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$e(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$e(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$e(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$e(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$e(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$e(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Hi(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=dp.get(n)||n,Hi(t,n,a))}}function yo(t,e,n,a,u,c){switch(n){case"style":Kr(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(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?ja(t,a):(typeof a=="number"||typeof a=="bigint")&&ja(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=Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Br.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),c=t[ce]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,u);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Hi(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,u=!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":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,c,f,n,null)}}u&&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=u=null,R=null,x=null;for(a in n)if(n.hasOwnProperty(a)){var N=n[a];if(N!=null)switch(a){case"name":u=N;break;case"type":f=N;break;case"checked":R=N;break;case"defaultChecked":x=N;break;case"value":c=N;break;case"defaultValue":p=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:Ct(t,e,a,N,n,null)}}Yr(t,c,p,R,x,f,u,!1);return;case"select":ht("invalid",t),a=f=c=null;for(u in n)if(n.hasOwnProperty(u)&&(p=n[u],p!=null))switch(u){case"value":c=p;break;case"defaultValue":f=p;break;case"multiple":a=p;default:Ct(t,e,u,p,n,null)}e=c,n=f,t.multiple=!!a,e!=null?Ba(t,!!a,e,!1):n!=null&&Ba(t,!!a,n,!0);return;case"textarea":ht("invalid",t),c=u=a=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":a=p;break;case"defaultValue":u=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)}Xr(t,a,u,c);return;case"option":for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!=null)&&(R==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ct(t,e,R,a,n,null));return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<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(As(e)){for(N in n)n.hasOwnProperty(N)&&(a=n[N],a!==void 0&&yo(t,e,N,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 Qv(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 u=null,c=null,f=null,p=null,R=null,x=null,N=null;for(U in n){var j=n[U];if(n.hasOwnProperty(U)&&j!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":R=j;default:a.hasOwnProperty(U)||Ct(t,e,U,null,a,j)}}for(var z in a){var U=a[z];if(j=n[z],a.hasOwnProperty(z)&&(U!=null||j!=null))switch(z){case"type":c=U;break;case"name":u=U;break;case"checked":x=U;break;case"defaultChecked":N=U;break;case"value":f=U;break;case"defaultValue":p=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:U!==j&&Ct(t,e,z,U,a,j)}}Os(t,f,p,R,x,N,c,u);return;case"select":U=f=p=z=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":U=R;default:a.hasOwnProperty(c)||Ct(t,e,c,null,a,R)}for(u in a)if(c=a[u],R=n[u],a.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":z=c;break;case"defaultValue":p=c;break;case"multiple":f=c;default:c!==R&&Ct(t,e,u,c,a,R)}e=p,n=f,a=U,z!=null?Ba(t,!!n,z,!1):!!a!=!!n&&(e!=null?Ba(t,!!n,e,!0):Ba(t,!!n,n?[]:"",!1));return;case"textarea":U=z=null;for(p in n)if(u=n[p],n.hasOwnProperty(p)&&u!=null&&!a.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Ct(t,e,p,null,a,u)}for(f in a)if(u=a[f],c=n[f],a.hasOwnProperty(f)&&(u!=null||c!=null))switch(f){case"value":z=u;break;case"defaultValue":U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Ct(t,e,f,u,a,c)}Gr(t,z,U);return;case"option":for(var P in n)z=n[P],n.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P)&&(P==="selected"?t.selected=!1:Ct(t,e,P,null,a,z));for(R in a)z=a[R],U=n[R],a.hasOwnProperty(R)&&z!==U&&(z!=null||U!=null)&&(R==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Ct(t,e,R,z,a,U));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],U=n[x],a.hasOwnProperty(x)&&z!==U&&(z!=null||U!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Ct(t,e,x,z,a,U)}return;default:if(As(e)){for(var At in n)z=n[At],n.hasOwnProperty(At)&&z!==void 0&&!a.hasOwnProperty(At)&&yo(t,e,At,void 0,a,z);for(N in a)z=a[N],U=n[N],!a.hasOwnProperty(N)||z===U||z===void 0&&U===void 0||yo(t,e,N,z,a,U);return}}for(var C in n)z=n[C],n.hasOwnProperty(C)&&z!=null&&!a.hasOwnProperty(C)&&Ct(t,e,C,null,a,z);for(j in a)z=a[j],U=n[j],!a.hasOwnProperty(j)||z===U||z==null&&U==null||Ct(t,e,j,z,a,U)}function Jd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Yv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],c=u.transferSize,f=u.initiatorType,p=u.duration;if(c&&p&&Jd(f)){for(f=0,p=u.responseEnd,a+=1;a<n.length;a++){var R=n[a],x=R.startTime;if(x>p)break;var N=R.transferSize,j=R.initiatorType;N&&Jd(j)&&(R=R.responseEnd,f+=N*(R<p?1:(p-x)/(R-x)))}if(--a,e+=8*(c+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var po=null,vo=null;function Bu(t){return t.nodeType===9?t:t.ownerDocument}function Pd(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 kd(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 go(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 So=null;function Gv(){var t=window.event;return t&&t.type==="popstate"?t===So?!1:(So=t,!0):(So=null,!1)}var Fd=typeof setTimeout=="function"?setTimeout:void 0,Xv=typeof clearTimeout=="function"?clearTimeout:void 0,Wd=typeof Promise=="function"?Promise:void 0,Vv=typeof queueMicrotask=="function"?queueMicrotask:typeof Wd<"u"?function(t){return Wd.resolve(null).then(t).catch(Kv)}:Fd;function Kv(t){setTimeout(function(){throw t})}function Hn(t){return t==="head"}function $d(t,e){var n=e,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(u),ml(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=u}while(n);ml(e)}function Id(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 bo(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":bo(n),Ts(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Zv(t,e,n,a){for(;t.nodeType===1;){var u=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!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function Jv(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 tm(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 _o(t){return t.data==="$?"||t.data==="$~"}function Ro(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Pv(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 Eo=null;function em(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 nm(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 am(t,e,n){switch(e=Bu(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]);Ts(t)}var we=new Map,lm=new Set;function ju(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var pn=K.d;K.d={f:kv,r:Fv,D:Wv,C:$v,L:Iv,m:tg,X:ng,S:eg,M:ag};function kv(){var t=pn.f(),e=Au();return t||e}function Fv(t){var e=La(t);e!==null&&e.tag===5&&e.type==="form"?_h(e):pn.r(t)}var fl=typeof document>"u"?null:document;function im(t,e,n){var a=fl;if(a&&typeof e=="string"&&e){var u=Oe(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),lm.has(u)||(lm.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Wv(t){pn.D(t),im("dns-prefetch",t,null)}function $v(t,e){pn.C(t,e),im("preconnect",t,e)}function Iv(t,e,n){pn.L(t,e,n);var a=fl;if(a&&t&&e){var u='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Oe(n.imageSizes)+'"]')):u+='[href="'+Oe(t)+'"]';var c=u;switch(e){case"style":c=hl(t);break;case"script":c=dl(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(u)!==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 tg(t,e){pn.m(t,e);var n=fl;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Oe(a)+'"][href="'+Oe(t)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=dl(t)}if(!we.has(c)&&(t=S({rel:"modulepreload",href:t},e),we.set(c,t),n.querySelector(u)===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 eg(t,e,n){pn.S(t,e,n);var a=fl;if(a&&t){var u=wa(a).hoistableStyles,c=hl(t);e=e||"default";var f=u.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))&&To(t,n);var R=f=a.createElement("link");kt(R),ee(R,"link",t),R._p=new Promise(function(x,N){R.onload=x,R.onerror=N}),R.addEventListener("load",function(){p.loading|=1}),R.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Hu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:p},u.set(c,f)}}}function ng(t,e){pn.X(t,e);var n=fl;if(n&&t){var a=wa(n).hoistableScripts,u=dl(t),c=a.get(u);c||(c=n.querySelector(ri(u)),c||(t=S({src:t,async:!0},e),(e=we.get(u))&&Mo(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(u,c))}}function ag(t,e){pn.M(t,e);var n=fl;if(n&&t){var a=wa(n).hoistableScripts,u=dl(t),c=a.get(u);c||(c=n.querySelector(ri(u)),c||(t=S({src:t,async:!0,type:"module"},e),(e=we.get(u))&&Mo(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(u,c))}}function um(t,e,n,a){var u=(u=rt.current)?ju(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=hl(n.href),n=wa(u).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=hl(n.href);var c=wa(u).hoistableStyles,f=c.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=u.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||lg(u,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=dl(n),n=wa(u).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 hl(t){return'href="'+Oe(t)+'"'}function oi(t){return'link[rel="stylesheet"]['+t+"]"}function sm(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function lg(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 dl(t){return'[src="'+Oe(t)+'"]'}function ri(t){return"script[async]"+t}function cm(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 u=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",u),Hu(a,n.precedence,t),e.instance=a;case"stylesheet":u=hl(n.href);var c=t.querySelector(oi(u));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;a=sm(n),(u=we.get(u))&&To(a,u),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(p,R){f.onload=p,f.onerror=R}),ee(c,"link",a),e.state.loading|=4,Hu(c,n.precedence,t),e.instance=c;case"script":return c=dl(n.src),(u=t.querySelector(ri(c)))?(e.instance=u,kt(u),u):(a=n,(u=we.get(c))&&(a=S({},n),Mo(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),kt(u),ee(u,"link",a),t.head.appendChild(u),e.instance=u);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,Hu(a,n.precedence,t));return e.instance}function Hu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,f=0;f<a.length;f++){var p=a[f];if(p.dataset.precedence===e)c=p;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function To(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Mo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var qu=null;function om(t,e,n){if(qu===null){var a=new Map,u=qu=new Map;u.set(n,a)}else u=qu,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var c=n[u];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 rm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function ig(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 fm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ug(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 u=hl(a.href),c=e.querySelector(oi(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Qu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,kt(c);return}c=e.ownerDocument||e,a=sm(a),(u=we.get(u))&&To(a,u),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(p,R){f.onload=p,f.onerror=R}),ee(c,"link",a),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Qu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Oo=0;function sg(t,e){return t.stylesheets&&t.count===0&&Gu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Gu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Oo===0&&(Oo=62500*Yv());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Gu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Oo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Yu=null;function Gu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Yu=new Map,e.forEach(cg,t),Yu=null,Qu.call(t))}function cg(t,e){if(!(e.state.loading&4)){var n=Yu.get(t);if(n)var a=n.get(null);else{n=new Map,Yu.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var f=u[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}u=e.instance,f=u.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,u),n.set(f,u),this.count++,a=Qu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var fi={$$typeof:Y,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function og(t,e,n,a,u,c,f,p,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bs(0),this.hiddenUpdates=bs(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function hm(t,e,n,a,u,c,f,p,R,x,N,j){return t=new og(t,e,n,f,R,x,N,j,p),e=1,c===!0&&(e|=24),c=Se(3,null,null,e),t.current=c,c.stateNode=t,e=lc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},cc(c),t}function dm(t){return t?(t=Va,t):Va}function mm(t,e,n,a,u,c){u=dm(u),a.context===null?a.context=u:a.pendingContext=u,a=Cn(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=An(t,a,e),n!==null&&(me(n,t,e),Xl(n,t,e))}function ym(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Co(t,e){ym(t,e),(t=t.alternate)&&ym(t,e)}function pm(t){if(t.tag===13||t.tag===31){var e=la(t,67108864);e!==null&&me(e,t,67108864),Co(t,67108864)}}function vm(t){if(t.tag===13||t.tag===31){var e=Te();e=_s(e);var n=la(t,e);n!==null&&me(n,t,e),Co(t,e)}}var Xu=!0;function rg(t,e,n,a){var u=L.T;L.T=null;var c=K.p;try{K.p=2,Ao(t,e,n,a)}finally{K.p=c,L.T=u}}function fg(t,e,n,a){var u=L.T;L.T=null;var c=K.p;try{K.p=8,Ao(t,e,n,a)}finally{K.p=c,L.T=u}}function Ao(t,e,n,a){if(Xu){var u=xo(a);if(u===null)mo(t,e,a,Vu,n),Sm(t,a);else if(dg(u,t,e,n,a))a.stopPropagation();else if(Sm(t,a),e&4&&-1<hg.indexOf(t)){for(;u!==null;){var c=La(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=In(c.pendingLanes);if(f!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var R=1<<31-ve(f);p.entanglements[1]|=R,f&=~R}Je(c),(St&6)===0&&(Ou=le()+500,ii(0))}}break;case 31:case 13:p=la(c,2),p!==null&&me(p,c,2),Au(),Co(c,2)}if(c=xo(a),c===null&&mo(t,e,a,Vu,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else mo(t,e,a,null,n)}}function xo(t){return t=zs(t),zo(t)}var Vu=null;function zo(t){if(Vu=null,t=Ua(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 Vu=t,null}function gm(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(Ui()){case xt:return 2;case Gt:return 8;case ne:case Li:return 32;case Cr:return 268435456;default:return 32}default:return 32}}var Do=!1,qn=null,Qn=null,Yn=null,hi=new Map,di=new Map,Gn=[],hg="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 Sm(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Yn=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,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},e!==null&&(e=La(e),e!==null&&pm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function dg(t,e,n,a,u){switch(e){case"focusin":return qn=mi(qn,t,e,n,a,u),!0;case"dragenter":return Qn=mi(Qn,t,e,n,a,u),!0;case"mouseover":return Yn=mi(Yn,t,e,n,a,u),!0;case"pointerover":var c=u.pointerId;return hi.set(c,mi(hi.get(c)||null,t,e,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,di.set(c,mi(di.get(c)||null,t,e,n,a,u)),!0}return!1}function bm(t){var e=Ua(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,Lr(t.priority,function(){vm(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Lr(t.priority,function(){vm(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 Ku(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=xo(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);xs=a,n.target.dispatchEvent(a),xs=null}else return e=La(n),e!==null&&pm(e),t.blockedOn=n,!1;e.shift()}return!0}function _m(t,e,n){Ku(t)&&n.delete(e)}function mg(){Do=!1,qn!==null&&Ku(qn)&&(qn=null),Qn!==null&&Ku(Qn)&&(Qn=null),Yn!==null&&Ku(Yn)&&(Yn=null),hi.forEach(_m),di.forEach(_m)}function Zu(t,e){t.blockedOn===e&&(t.blockedOn=null,Do||(Do=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,mg)))}var Ju=null;function Rm(t){Ju!==t&&(Ju=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ju===t&&(Ju=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(zo(a||n)===null)continue;break}var c=La(n);c!==null&&(t.splice(e,3),e-=3,Ac(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function ml(t){function e(R){return Zu(R,t)}qn!==null&&Zu(qn,t),Qn!==null&&Zu(Qn,t),Yn!==null&&Zu(Yn,t),hi.forEach(e),di.forEach(e);for(var n=0;n<Gn.length;n++){var a=Gn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)bm(n),n.blockedOn===null&&Gn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],c=n[a+1],f=u[ce]||null;if(typeof c=="function")f||Rm(n);else if(f){var p=null;if(c&&c.hasAttribute("formAction")){if(u=c,f=c[ce]||null)p=f.formAction;else if(zo(u)!==null)continue}else p=f.action;typeof p=="function"?n[a+1]=p:(n.splice(a,3),a-=3),Rm(n)}}}function Em(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=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,u=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),u!==null&&(u(),u=null)}}}function Uo(t){this._internalRoot=t}Pu.prototype.render=Uo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Te();mm(n,a,t,e,null,null)},Pu.prototype.unmount=Uo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;mm(t.current,2,null,t,null,null),Au(),e[Da]=null}};function Pu(t){this._internalRoot=t}Pu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ur();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Gn.length&&e!==0&&e<Gn[n].priority;n++);Gn.splice(n,0,t),n===0&&bm(t)}};var Tm=i.version;if(Tm!=="19.2.4")throw Error(o(527,Tm,"19.2.4"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=d(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var yg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{El=ku.inject(yg),pe=ku}catch{}}return pi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",u=Dh,c=Uh,f=Lh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=hm(t,1,!1,null,null,n,a,null,u,c,f,Em),t[Da]=e.current,ho(t),new Uo(e)},pi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,u="",c=Dh,f=Uh,p=Lh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),e=hm(t,1,!0,e,n??null,a,u,R,c,f,p,Em),e.context=dm(null),n=e.current,a=Te(),a=_s(a),u=Cn(a),u.callback=null,An(n,u,a),n=a,e.current.lanes=n,Ml(e,n),Je(e),t[Da]=e.current,ho(t),new Pu(e)},pi.version="19.2.4",pi}var wm;function Mg(){if(wm)return No.exports;wm=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(i){console.error(i)}}return l(),No.exports=Tg(),No.exports}var rb=Mg(),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(){}},Og={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},Cg=class{#t=Og;#e=!1;setTimeoutProvider(l){this.#t=l}setTimeout(l,i){return this.#t.setTimeout(l,i)}clearTimeout(l){this.#t.clearTimeout(l)}setInterval(l,i){return this.#t.setInterval(l,i)}clearInterval(l){this.#t.clearInterval(l)}},Sa=new Cg;function Ag(l){setTimeout(l,0)}var Oa=typeof window>"u"||"Deno"in globalThis;function ue(){}function xg(l,i){return typeof l=="function"?l(i):l}function Fo(l){return typeof l=="number"&&l>=0&&l!==1/0}function Sy(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Jn(l,i){return typeof l=="function"?l(i):l}function Ne(l,i){return typeof l=="function"?l(i):l}function Nm(l,i){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:y,stale:m}=l;if(y){if(o){if(i.queryHash!==cr(y,i.options))return!1}else if(!Ti(i.queryKey,y))return!1}if(s!=="all"){const v=i.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||r&&r!==i.state.fetchStatus||h&&!h(i))}function Bm(l,i){const{exact:s,status:o,predicate:r,mutationKey:h}=l;if(h){if(!i.options.mutationKey)return!1;if(s){if(Ca(i.options.mutationKey)!==Ca(h))return!1}else if(!Ti(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function cr(l,i){return(i?.queryKeyHashFn||Ca)(l)}function Ca(l){return JSON.stringify(l,(i,s)=>Wo(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Ti(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(s=>Ti(l[s],i[s])):!1}var zg=Object.prototype.hasOwnProperty;function by(l,i,s=0){if(l===i)return l;if(s>500)return i;const o=jm(l)&&jm(i);if(!o&&!(Wo(l)&&Wo(i)))return i;const h=(o?l:Object.keys(l)).length,y=o?i:Object.keys(i),m=y.length,v=o?new Array(m):{};let d=0;for(let b=0;b<m;b++){const S=o?b:y[b],g=l[S],_=i[S];if(g===_){v[S]=g,(o?b<h:zg.call(l,S))&&d++;continue}if(g===null||_===null||typeof g!="object"||typeof _!="object"){v[S]=_;continue}const M=by(g,_,s+1);v[S]=M,M===g&&d++}return h===m&&d===h?l:v}function ls(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const s in l)if(l[s]!==i[s])return!1;return!0}function jm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Wo(l){if(!Hm(l))return!1;const i=l.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Hm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Hm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Dg(l){return new Promise(i=>{Sa.setTimeout(i,l)})}function $o(l,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,i):s.structuralSharing!==!1?by(l,i):i}function Ug(l,i,s=0){const o=[...l,i];return s&&o.length>s?o.slice(1):o}function Lg(l,i,s=0){const o=[i,...l];return s&&o.length>s?o.slice(0,-1):o}var or=Symbol();function _y(l,i){return!l.queryFn&&i?.initialPromise?()=>i.initialPromise:!l.queryFn||l.queryFn===or?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function rr(l,i){return typeof l=="function"?l(...i):!!l}function wg(l,i,s){let o=!1,r;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=i(),o||(o=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),l}var Ng=class extends Sl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(!Oa&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}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(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(l){this.#t!==l&&(this.#t=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},fr=new Ng;function Io(){let l,i;const s=new Promise((r,h)=>{l=r,i=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}),i(r)},s}var Bg=Ag;function jg(){let l=[],i=0,s=m=>{m()},o=m=>{m()},r=Bg;const h=m=>{i?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;i++;try{v=m()}finally{i--,i||y()}return v},batchCalls:m=>(...v)=>{h(()=>{m(...v)})},schedule:h,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{o=m},setScheduler:m=>{r=m}}}var Pt=jg(),Hg=class extends Sl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(!Oa&&window.addEventListener){const i=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),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}},is=new Hg;function qg(l){return Math.min(1e3*2**l,3e4)}function Ry(l){return(l??"online")==="online"?is.isOnline():!0}var tr=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function Ey(l){let i=!1,s=0,o;const r=Io(),h=()=>r.status!=="pending",y=O=>{if(!h()){const D=new tr(O);g(D),l.onCancel?.(D)}},m=()=>{i=!0},v=()=>{i=!1},d=()=>fr.isFocused()&&(l.networkMode==="always"||is.isOnline())&&l.canRun(),b=()=>Ry(l.networkMode)&&l.canRun(),S=O=>{h()||(o?.(),r.resolve(O))},g=O=>{h()||(o?.(),r.reject(O))},_=()=>new Promise(O=>{o=D=>{(h()||d())&&O(D)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),M=()=>{if(h())return;let O;const D=s===0?l.initialPromise:void 0;try{O=D??l.fn()}catch(w){O=Promise.reject(w)}Promise.resolve(O).then(S).catch(w=>{if(h())return;const q=l.retry??(Oa?0:3),Y=l.retryDelay??qg,X=typeof Y=="function"?Y(s,w):Y,I=q===!0||typeof q=="number"&&s<q||typeof q=="function"&&q(s,w);if(i||!I){g(w);return}s++,l.onFail?.(s,w),Dg(X).then(()=>d()?void 0:_()).then(()=>{i?g(w):M()})})};return{promise:r,status:()=>r.status,cancel:y,continue:()=>(o?.(),r),cancelRetry:m,continueRetry:v,canStart:b,start:()=>(b()?M():_().then(M),r)}}var Ty=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fo(this.gcTime)&&(this.#t=Sa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(Oa?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Sa.clearTimeout(this.#t),this.#t=void 0)}},Qg=class extends Ty{#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=Qm(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 i=Qm(this.options);i.data!==void 0&&(this.setState(qm(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(l,i){const s=$o(this.state.data,l,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(l,i){this.#i({type:"setState",state:l,setStateOptions:i})}cancel(l){const i=this.#a?.promise;return this.#a?.cancel(l),i?i.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===or||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Jn(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:!Sy(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(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(i=>i!==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,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.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=_y(this.options,i),d=(()=>{const b={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(b),b})();return this.#s=!1,this.options.persister?this.options.persister(m,d,this):m(d)},y=(()=>{const m={fetchOptions:i,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=Ey({initialPromise:i?.initialPromise,fn:y.fetchFn,onCancel:m=>{m instanceof tr&&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 tr){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 i=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,...My(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,...qm(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=i(this.state),Pt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:l})})}};function My(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ry(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function qm(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Qm(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,s=i!==void 0,o=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,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 Oy=class extends Sl{constructor(l,i){super(),this.options=i,this.#t=l,this.#i=null,this.#s=Io(),this.bindMethods(),this.setOptions(i)}#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),Ym(this.#e,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return er(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return er(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(l){const i=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.#R(),this.#e.setOptions(this.options),i._defaulted&&!ls(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Gm(this.#e,s,this.options,i)&&this.#f(),this.updateResult(),o&&(this.#e!==s||Ne(this.options.enabled,this.#e)!==Ne(i.enabled,this.#e)||Jn(this.options.staleTime,this.#e)!==Jn(i.staleTime,this.#e))&&this.#p();const r=this.#v();o&&(this.#e!==s||Ne(this.options.enabled,this.#e)!==Ne(i.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(l){const i=this.#t.getQueryCache().build(this.#t,l),s=this.createResult(i,l);return Gg(this,s)&&(this.#l=s,this.#u=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(l,i){return new Proxy(l,{get:(s,o)=>(this.trackProp(o),i?.(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 i=this.#t.defaultQueryOptions(l),s=this.#t.getQueryCache().build(this.#t,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(l){return this.#f({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(l){this.#R();let i=this.#e.fetch(this.options,l);return l?.throwOnError||(i=i.catch(ue)),i}#p(){this.#b();const l=Jn(this.options.staleTime,this.#e);if(Oa||this.#l.isStale||!Fo(l))return;const s=Sy(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,!(Oa||Ne(this.options.enabled,this.#e)===!1||!Fo(this.#c)||this.#c===0)&&(this.#r=Sa.setInterval(()=>{(this.options.refetchIntervalInBackground||fr.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,i){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 b={...d},S=!1,g;if(i._optimisticResults){const Q=this.hasListeners(),V=!Q&&Ym(l,i),ut=Q&&Gm(l,s,i,o);(V||ut)&&(b={...b,...My(d.data,l.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:M,status:O}=b;g=b.data;let D=!1;if(i.placeholderData!==void 0&&g===void 0&&O==="pending"){let Q;r?.isPlaceholderData&&i.placeholderData===y?.placeholderData?(Q=r.data,D=!0):Q=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,Q!==void 0&&(O="success",g=$o(r?.data,Q,i),S=!0)}if(i.select&&g!==void 0&&!D)if(r&&g===h?.data&&i.select===this.#y)g=this.#h;else try{this.#y=i.select,g=i.select(g),g=$o(r?.data,g,i),this.#h=g,this.#i=null}catch(Q){this.#i=Q}this.#i&&(_=this.#i,g=this.#h,M=Date.now(),O="error");const w=b.fetchStatus==="fetching",q=O==="pending",Y=O==="error",X=q&&w,I=g!==void 0,G={status:O,fetchStatus:b.fetchStatus,isPending:q,isSuccess:O==="success",isError:Y,isInitialLoading:X,isLoading:X,data:g,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:M,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:w,isRefetching:w&&!q,isLoadingError:Y&&!I,isPaused:b.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:Y&&I,isStale:hr(l,i),refetch:this.refetch,promise:this.#s,isEnabled:Ne(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const Q=G.data!==void 0,V=G.status==="error"&&!Q,ut=Rt=>{V?Rt.reject(G.error):Q&&Rt.resolve(G.data)},tt=()=>{const Rt=this.#s=G.promise=Io();ut(Rt)},W=this.#s;switch(W.status){case"pending":l.queryHash===s.queryHash&&ut(W);break;case"fulfilled":(V||G.data!==W.value)&&tt();break;case"rejected":(!V||G.error!==W.reason)&&tt();break}}return G}updateResult(){const l=this.#l,i=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),ls(i,l))return;this.#l=i;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.#E({listeners:s()})}#R(){const l=this.#t.getQueryCache().build(this.#t,this.options);if(l===this.#e)return;const i=this.#e;this.#e=l,this.#n=l.state,this.hasListeners()&&(i?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){Pt.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Yg(l,i){return Ne(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&i.retryOnMount===!1)}function Ym(l,i){return Yg(l,i)||l.state.data!==void 0&&er(l,i,i.refetchOnMount)}function er(l,i,s){if(Ne(i.enabled,l)!==!1&&Jn(i.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&hr(l,i)}return!1}function Gm(l,i,s,o){return(l!==i||Ne(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&hr(l,s)}function hr(l,i){return Ne(i.enabled,l)!==!1&&l.isStaleByTime(Jn(i.staleTime,l))}function Gg(l,i){return!ls(l.getCurrentResult(),i)}function us(l){return{onFetch:(i,s)=>{const o=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],y=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const d=async()=>{let b=!1;const S=M=>{wg(M,()=>i.signal,()=>b=!0)},g=_y(i.options,i.fetchOptions),_=async(M,O,D)=>{if(b)return Promise.reject();if(O==null&&M.pages.length)return Promise.resolve(M);const q=(()=>{const k={client:i.client,queryKey:i.queryKey,pageParam:O,direction:D?"backward":"forward",meta:i.options.meta};return S(k),k})(),Y=await g(q),{maxPages:X}=i.options,I=D?Lg:Ug;return{pages:I(M.pages,Y,X),pageParams:I(M.pageParams,O,X)}};if(r&&h.length){const M=r==="backward",O=M?Cy:nr,D={pages:h,pageParams:y},w=O(o,D);m=await _(D,w,M)}else{const M=l??h.length;do{const O=v===0?y[0]??o.initialPageParam:nr(o,m);if(v>0&&O==null)break;m=await _(m,O),v++}while(v<M)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(d,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=d}}}function nr(l,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?l.getNextPageParam(i[o],i,s[o],s):void 0}function Cy(l,{pages:i,pageParams:s}){return i.length>0?l.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function Xg(l,i){return i?nr(l,i)!=null:!1}function Vg(l,i){return!i||!l.getPreviousPageParam?!1:Cy(l,i)!=null}var Kg=class extends Oy{constructor(l,i){super(l,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){super.setOptions({...l,behavior:us()})}getOptimisticResult(l){return l.behavior=us(),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,i){const{state:s}=l,o=super.createResult(l,i),{isFetching:r,isRefetching:h,isError:y,isRefetchError:m}=o,v=s.fetchMeta?.fetchMore?.direction,d=y&&v==="forward",b=r&&v==="forward",S=y&&v==="backward",g=r&&v==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Xg(i,s.data),hasPreviousPage:Vg(i,s.data),isFetchNextPageError:d,isFetchingNextPage:b,isFetchPreviousPageError:S,isFetchingPreviousPage:g,isRefetchError:m&&!d&&!S,isRefetching:h&&!b&&!g}}},Zg=class extends Ty{#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||Ay(),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(i=>i!==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 i=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=Ey({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:i,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)i();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 i=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=i(this.state),Pt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function Ay(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Jg=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,i,s){const o=new Zg({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(i),state:s});return this.add(o),o}add(l){this.#t.add(l);const i=Fu(l);if(typeof i=="string"){const s=this.#e.get(i);s?s.push(l):this.#e.set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#t.delete(l)){const i=Fu(l);if(typeof i=="string"){const s=this.#e.get(i);if(s)if(s.length>1){const o=s.indexOf(l);o!==-1&&s.splice(o,1)}else s[0]===l&&this.#e.delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=Fu(l);if(typeof i=="string"){const o=this.#e.get(i)?.find(r=>r.state.status==="pending");return!o||o===l}else return!0}runNext(l){const i=Fu(l);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Pt.batch(()=>{this.#t.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(l){const i={exact:!0,...l};return this.getAll().find(s=>Bm(i,s))}findAll(l={}){return this.getAll().filter(i=>Bm(l,i))}notify(l){Pt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return Pt.batch(()=>Promise.all(l.map(i=>i.continue().catch(ue))))}};function Fu(l){return l.options.scope?.id}var Pg=class extends Sl{#t;#e=void 0;#n;#l;constructor(l,i){super(),this.#t=l,this.setOptions(i),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const i=this.options;this.options=this.#t.defaultMutationOptions(l),ls(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Ca(i.mutationKey)!==Ca(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,i){return this.#l=i,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??Ay();this.#e={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#u(l){Pt.batch(()=>{if(this.#l&&this.hasListeners()){const i=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,i,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(l.data,null,i,s,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#l.onError?.(l.error,i,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(void 0,l.error,i,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(i=>{i(this.#e)})})}},kg=class extends Sl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,i,s){const o=i.queryKey,r=i.queryHash??cr(o,i);let h=this.get(r);return h||(h=new Qg({client:l,queryKey:o,queryHash:r,options:l.defaultQueryOptions(i),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 i=this.#t.get(l.queryHash);i&&(l.destroy(),i===l&&this.#t.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Pt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#t.get(l)}getAll(){return[...this.#t.values()]}find(l){const i={exact:!0,...l};return this.getAll().find(s=>Nm(i,s))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(s=>Nm(l,s)):i}notify(l){Pt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){Pt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Pt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},fb=class{#t;#e;#n;#l;#a;#u;#s;#i;constructor(l={}){this.#t=l.queryCache||new kg,this.#e=l.mutationCache||new Jg,this.#n=l.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#s=fr.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=is.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 i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),s=this.#t.build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(l):(l.revalidateIfStale&&s.isStaleByTime(Jn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(l){return this.#t.findAll(l).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(l,i,s){const o=this.defaultQueryOptions({queryKey:l}),h=this.#t.get(o.queryHash)?.state.data,y=xg(i,h);if(y!==void 0)return this.#t.build(this,o).setData(y,{...s,manual:!0})}setQueriesData(l,i,s){return Pt.batch(()=>this.#t.findAll(l).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(l){const i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state}removeQueries(l){const i=this.#t;Pt.batch(()=>{i.findAll(l).forEach(s=>{i.remove(s)})})}resetQueries(l,i){const s=this.#t;return Pt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const s={revert:!0,...i},o=Pt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,i={}){return Pt.batch(()=>(this.#t.findAll(l).forEach(s=>{s.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},i)))}refetchQueries(l,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=Pt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ue)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ue)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Jn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ue).catch(ue)}fetchInfiniteQuery(l){return l.behavior=us(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l.behavior=us(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return is.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,i){this.#l.set(Ca(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...this.#l.values()],s={};return i.forEach(o=>{Ti(l,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(l,i){this.#a.set(Ca(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...this.#a.values()],s={};return i.forEach(o=>{Ti(l,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(l){if(l._defaulted)return l;const i={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=cr(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===or&&(i.enabled=!1),i}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()}},xy=F.createContext(void 0),zy=l=>{const i=F.useContext(xy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},hb=({client:l,children:i})=>(F.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),at.jsx(xy.Provider,{value:l,children:i})),Dy=F.createContext(!1),Fg=()=>F.useContext(Dy);Dy.Provider;function Wg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var $g=F.createContext(Wg()),Ig=()=>F.useContext($g),t0=(l,i,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?rr(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(i.isReset()||(l.retryOnMount=!1))},e0=l=>{F.useEffect(()=>{l.clearReset()},[l])},n0=({result:l,errorResetBoundary:i,throwOnError:s,query:o,suspense:r})=>l.isError&&!i.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||rr(s,[l.error,o])),a0=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))}},l0=(l,i)=>l.isLoading&&l.isFetching&&!i,i0=(l,i)=>l?.suspense&&i.isPending,Xm=(l,i,s)=>i.fetchOptimistic(l).catch(()=>{s.clearReset()});function Uy(l,i,s){const o=Fg(),r=Ig(),h=zy(),y=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(y);const m=h.getQueryCache().get(y.queryHash);y._optimisticResults=o?"isRestoring":"optimistic",a0(y),t0(y,r,m),e0(r);const v=!h.getQueryCache().get(y.queryHash),[d]=F.useState(()=>new i(h,y)),b=d.getOptimisticResult(y),S=!o&&l.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(g=>{const _=S?d.subscribe(Pt.batchCalls(g)):ue;return d.updateResult(),_},[d,S]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),F.useEffect(()=>{d.setOptions(y)},[y,d]),i0(y,b))throw Xm(y,d,r);if(n0({result:b,errorResetBoundary:r,throwOnError:y.throwOnError,query:m,suspense:y.suspense}))throw b.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(y,b),y.experimental_prefetchInRender&&!Oa&&l0(b,o)&&(v?Xm(y,d,r):m?.promise)?.catch(ue).finally(()=>{d.updateResult()}),y.notifyOnChangeProps?b:d.trackResult(b)}function db(l,i){return Uy(l,Oy)}function mb(l,i){const s=zy(),[o]=F.useState(()=>new Pg(s,l));F.useEffect(()=>{o.setOptions(l)},[o,l]);const r=F.useSyncExternalStore(F.useCallback(y=>o.subscribe(Pt.batchCalls(y)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=F.useCallback((y,m)=>{o.mutate(y,m).catch(ue)},[o]);if(r.error&&rr(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function yb(l,i){return Uy(l,Kg)}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 Ly({update:l,notify:i,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:y,shallowPropagate:m};function o(d,b,S){const g=b.depsTail;if(g!==void 0&&g.dep===d)return;const _=g!==void 0?g.nextDep:b.deps;if(_!==void 0&&_.dep===d){_.version=S,b.depsTail=_;return}const M=d.subsTail;if(M!==void 0&&M.version===S&&M.sub===b)return;const O=b.depsTail=d.subsTail={version:S,dep:d,sub:b,prevDep:g,nextDep:_,prevSub:M,nextSub:void 0};_!==void 0&&(_.prevDep=O),g!==void 0?g.nextDep=O:b.deps=O,M!==void 0?M.nextSub=O:d.subs=O}function r(d,b=d.sub){const S=d.dep,g=d.prevDep,_=d.nextDep,M=d.nextSub,O=d.prevSub;return _!==void 0?_.prevDep=g:b.depsTail=g,g!==void 0?g.nextDep=_:b.deps=_,M!==void 0?M.prevSub=O:S.subsTail=O,O!==void 0?O.nextSub=M:(S.subs=M)===void 0&&s(S),_}function h(d){let b=d.nextSub,S;t:do{const g=d.sub;let _=g.flags;if(_&60?_&12?_&4?!(_&48)&&v(d,g)?(g.flags=_|40,_&=1):_=0:g.flags=_&-9|32:_=0:g.flags=_|32,_&2&&i(g),_&1){const M=g.subs;if(M!==void 0){const O=(d=M).nextSub;O!==void 0&&(S={value:b,prev:S},b=O);continue}}if((d=b)!==void 0){b=d.nextSub;continue}for(;S!==void 0;)if(d=S.value,S=S.prev,d!==void 0){b=d.nextSub;continue t}break}while(!0)}function y(d,b){let S,g=0,_=!1;t:do{const M=d.dep,O=M.flags;if(b.flags&16)_=!0;else if((O&17)===17){if(l(M)){const D=M.subs;D.nextSub!==void 0&&m(D),_=!0}}else if((O&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(S={value:d,prev:S}),d=M.deps,b=M,++g;continue}if(!_){const D=d.nextDep;if(D!==void 0){d=D;continue}}for(;g--;){const D=b.subs,w=D.nextSub!==void 0;if(w?(d=S.value,S=S.prev):d=D,_){if(l(b)){w&&m(D),b=d.sub;continue}_=!1}else b.flags&=-33;b=d.sub;const q=d.nextDep;if(q!==void 0){d=q;continue t}}return _}while(!0)}function m(d){do{const b=d.sub,S=b.flags;(S&48)===32&&(b.flags=S|16,(S&6)===2&&i(b))}while((d=d.nextSub)!==void 0)}function v(d,b){let S=b.depsTail;for(;S!==void 0;){if(S===d)return!0;S=S.prevDep}return!1}}let dr=0,va=0,_i=0;const vn=[],{link:pb,unlink:wy,propagate:vb,checkDirty:u0,shallowPropagate:gb}=Ly({update(l){return l.depsTail!==void 0?r0(l):f0(l)},notify(l){let i=_i,s=i;do if(vn[i++]=l,l.flags&=-3,l=l.subs?.sub,l===void 0||!(l.flags&2))break;while(!0);for(_i=i;s<--i;){const o=vn[s];vn[s++]=vn[i],vn[i]=o}},unwatched(l){l.flags&1?l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=17,ys(l)):m0.call(l)}});function s0(){return dr}function c0(){++dr}function o0(){--dr||d0()}function r0(l){l.depsTail=void 0,l.flags=5;try{const i=l.value;return i!==(l.value=l.getter(i))}finally{l.flags&=-5,ys(l)}}function f0(l){return l.flags=1,l.currentValue!==(l.currentValue=l.pendingValue)}function h0(l){const i=l.flags;if(i&16||i&32&&u0(l.deps,l)){l.depsTail=void 0,l.flags=6;try{l.fn()}finally{l.flags&=-5,ys(l)}}else l.flags=2}function d0(){try{for(;va<_i;){const l=vn[va];vn[va++]=void 0,h0(l)}}finally{for(;va<_i;){const l=vn[va];vn[va++]=void 0,l.flags|=10}va=0,_i=0}}function m0(){this.depsTail=void 0,this.flags=0,ys(this);const l=this.subs;l!==void 0&&wy(l)}function ys(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=wy(s,l)}function mr(l,i,s){const o=typeof l=="object",r=o?l:void 0;return{next:(o?l.next:l)?.bind(r),error:(o?l.error:i)?.bind(r),complete:(o?l.complete:s)?.bind(r)}}const ar=[];let ts=0;const{link:Vm,unlink:y0,propagate:p0,checkDirty:Ny,shallowPropagate:Km}=Ly({update(l){return l._update()},notify(l){ar[lr++]=l,l.flags&=~Nt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Nt.Mutable|Nt.Dirty,ss(l))}});let Wu=0,lr=0,Pe;function ss(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=y0(s,l)}function By(){if(!(s0()>0)){for(;Wu<lr;){const l=ar[Wu];ar[Wu++]=void 0,l.notify()}Wu=0,lr=0}}function jy(l,i){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 Pe!==void 0&&Vm(r,Pe,ts),r._snapshot},subscribe(h){const y=mr(h),m={current:!1},v=v0(()=>{r.get(),m.current?y.next?.(r._snapshot):m.current=!0});return{unsubscribe:()=>{v.stop()}}},_update(h){const y=Pe,m=Object.is;if(s)Pe=r,++ts,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const v=r._snapshot,d=typeof h=="function"?h(v):h===void 0&&s?o(v):h;return v===void 0||!m(v,d)?(r._snapshot=d,!0):!1}finally{Pe=y,s&&(r.flags&=~Nt.RecursedCheck),ss(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&Ny(r.deps,r)){if(r._update()){const y=r.subs;y!==void 0&&Km(y)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return Pe!==void 0&&Vm(r,Pe,ts),r._snapshot}):r.set=function(h){if(r._update(h)){const y=r.subs;y!==void 0&&(p0(y),Km(y),By())}},r}function v0(l){const i=()=>{const o=Pe;Pe=s,++ts,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return l()}finally{Pe=o,s.flags&=~Nt.RecursedCheck,ss(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&&Ny(this.deps,this)?i():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,ss(this)}};return i(),s}class g0{constructor(i){this.atom=jy(i)}setState(i){this.atom.set(i)}get state(){return this.atom.get()}get(){return this.state}subscribe(i){return this.atom.subscribe(mr(i))}}class S0{constructor(i){this.atom=jy(i)}get state(){return this.atom.get()}get(){return this.state}subscribe(i){return this.atom.subscribe(mr(i))}}function b0(l){return typeof l=="function"?new S0(l):new g0(l)}function _0(l){try{c0(),l()}finally{o0(),By()}}const Pn="__TSR_index",Zm="popstate",Jm="beforeunload";function R0(l){let i=l.getLocation();const s=new Set,o=y=>{i=l.getLocation(),s.forEach(m=>m({location:i,action:y}))},r=y=>{l.notifyOnIndexChange??!0?o(y):i=l.getLocation()},h=async({task:y,navigateOpts:m,...v})=>{if(m?.ignoreBlocker??!1){y();return}const b=l.getBlockers?.()??[],S=v.type==="PUSH"||v.type==="REPLACE";if(typeof document<"u"&&b.length&&S)for(const g of b){const _=cs(v.path,v.state);if(await g.blockerFn({currentLocation:i,nextLocation:_,action:v.type})){l.onBlocked?.();return}}y()};return{get location(){return i},get length(){return l.getLength()},subscribers:s,subscribe:y=>(s.add(y),()=>{s.delete(y)}),push:(y,m,v)=>{const d=i.state[Pn];m=Pm(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=i.state[Pn];m=Pm(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:()=>i.state[Pn]!==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 Pm(l,i){i||(i={});const s=yr();return{...i,key:s,__TSR_key:s,[Pn]:l}}function E0(l){const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,y=Q=>r=Q,m=(Q=>Q),v=(()=>cs(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const Q=yr();i.history.replaceState({[Pn]:0,key:Q,__TSR_key:Q},"")}let d=v(),b,S=!1,g=!1,_=!1,M=!1;const O=()=>d;let D,w;const q=()=>{D&&(G._ignoreSubscribers=!0,(D.isPush?i.history.pushState:i.history.replaceState)(D.state,"",D.href),G._ignoreSubscribers=!1,D=void 0,w=void 0,b=void 0)},Y=(Q,V,ut)=>{const tt=m(V);w||(b=d),d=cs(V,ut),D={href:tt,state:ut,isPush:D?.isPush||Q==="push"},w||(w=Promise.resolve().then(()=>q()))},X=Q=>{d=v(),G.notify({type:Q})},I=async()=>{if(g){g=!1;return}const Q=v(),V=Q.state[Pn]-d.state[Pn],ut=V===1,tt=V===-1,W=!ut&&!tt||S;S=!1;const Rt=W?"GO":tt?"BACK":"FORWARD",bt=W?{type:"GO",index:V}:{type:tt?"BACK":"FORWARD"};if(_)_=!1;else{const Yt=h();if(typeof document<"u"&&Yt.length){for(const L of Yt)if(await L.blockerFn({currentLocation:d,nextLocation:Q,action:Rt})){g=!0,i.history.go(1),G.notify(bt);return}}}d=v(),G.notify(bt)},k=Q=>{if(M){M=!1;return}let V=!1;const ut=h();if(typeof document<"u"&&ut.length)for(const tt of ut){const W=tt.enableBeforeUnload??!0;if(W===!0){V=!0;break}if(typeof W=="function"&&W()===!0){V=!0;break}}if(V)return Q.preventDefault(),Q.returnValue=""},G=R0({getLocation:O,getLength:()=>i.history.length,pushState:(Q,V)=>Y("push",Q,V),replaceState:(Q,V)=>Y("replace",Q,V),back:Q=>(Q&&(_=!0),M=!0,i.history.back()),forward:Q=>{Q&&(_=!0),M=!0,i.history.forward()},go:Q=>{S=!0,i.history.go(Q)},createHref:Q=>m(Q),flush:q,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(Jm,k,{capture:!0}),i.removeEventListener(Zm,I)},onBlocked:()=>{b&&d!==b&&(d=b)},getBlockers:h,setBlockers:y,notifyOnIndexChange:!1});return i.addEventListener(Jm,k,{capture:!0}),i.addEventListener(Zm,I),i.history.pushState=function(...Q){const V=s.apply(i.history,Q);return G._ignoreSubscribers||X("PUSH"),V},i.history.replaceState=function(...Q){const V=o.apply(i.history,Q);return G._ignoreSubscribers||X("REPLACE"),V},G}function T0(l){let i=l.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function cs(l,i){const s=T0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=yr();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:i||{[Pn]:0,key:h,__TSR_key:h}}}function yr(){return(Math.random()+1).toString(36).substring(7)}const M0=!1;function Ri(l){let i;return _0(()=>{i=l()}),i}function Mi(l){return l[l.length-1]}function O0(l){return typeof l=="function"}function Kn(l,i){return O0(l)?l(i):l}const C0=Object.prototype.hasOwnProperty,km=Object.prototype.propertyIsEnumerable,A0=()=>Object.create(null),ga=(l,i)=>ba(l,i,A0);function ba(l,i,s=()=>({}),o=0){if(l===i)return l;if(o>500)return i;const r=i,h=$m(l)&&$m(r);if(!h&&!(os(l)&&os(r)))return r;const y=h?l:Fm(l);if(!y)return r;const m=h?r:Fm(r);if(!m)return r;const v=y.length,d=m.length,b=h?new Array(d):s();let S=0;for(let g=0;g<d;g++){const _=h?g:m[g],M=l[_],O=r[_];if(M===O){b[_]=M,(h?g<v:C0.call(l,_))&&S++;continue}if(M===null||O===null||typeof M!="object"||typeof O!="object"){b[_]=O;continue}const D=ba(M,O,s,o+1);b[_]=D,D===M&&S++}return v===d&&S===v?l:b}function Fm(l){const i=Object.getOwnPropertyNames(l);for(const r of i)if(!km.call(l,r))return!1;const s=Object.getOwnPropertySymbols(l);if(s.length===0)return i;const o=i;for(const r of s){if(!km.call(l,r))return!1;o.push(r)}return o}function os(l){if(!Wm(l))return!1;const i=l.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!Wm(s)||!s.hasOwnProperty("isPrototypeOf"))}function Wm(l){return Object.prototype.toString.call(l)==="[object Object]"}function $m(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Ea(l,i,s){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(Array.isArray(l)&&Array.isArray(i)){if(l.length!==i.length)return!1;for(let o=0,r=l.length;o<r;o++)if(!Ea(l[o],i[o],s))return!1;return!0}if(os(l)&&os(i)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const y in i)if((!o||i[y]!==void 0)&&!Ea(l[y],i[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 i)if((!o||i[y]!==void 0)&&(h++,h>r||!Ea(l[y],i[y],s)))return!1;return r===h}return!1}function vl(l){let i,s;const o=new Promise((r,h)=>{i=r,s=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,i(r),l?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function Oi(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function x0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Im(l){let i;try{i=decodeURI(l)}catch{i=l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return x0(i)}const z0=["http:","https:","mailto:","tel:"];function rs(l,i){if(!l)return!1;try{const s=new URL(l);return!i.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 i=/%25|%5C/gi;let s=0,o="",r;for(;(r=i.exec(l))!==null;)o+=Im(l.slice(s,r.index))+r[0],s=i.lastIndex;o=o+Im(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function D0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}var U0="Invariant failed";function Fn(l,i){if(!l)throw new Error(U0)}function fs(l){const i=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=i.get(h);if(y)return r(y),y.value},set(h,y){if(i.size>=l&&s){const v=s;i.delete(v.key),v.next&&(s=v.next,v.next.prev=void 0),v===o&&(o=void 0)}const m=i.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),i.set(h,v)}},clear(){i.clear(),s=void 0,o=void 0}}}const gl=0,Aa=1,xa=2,Ci=3,_a=4,Hy=5;function L0(l){const i=l.indexOf("{");if(i===-1)return null;const s=l.indexOf("}",i);return s===-1||i+1>=l.length?null:[i,s]}function pr(l,i,s=new Uint16Array(6)){const o=l.indexOf("/",i),r=o===-1?l.length:o,h=l.substring(i,r);if(!h||!h.includes("$"))return s[0]=gl,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const m=l.length;return s[0]=xa,s[1]=i,s[2]=i,s[3]=m,s[4]=m,s[5]=m,s}if(h.charCodeAt(0)===36)return s[0]=Aa,s[1]=i,s[2]=i+1,s[3]=r,s[4]=r,s[5]=r,s;const y=L0(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 b=m+3,S=v;if(b<S)return s[0]=Ci,s[1]=i+m,s[2]=i+b,s[3]=i+S,s[4]=i+v+1,s[5]=r,s}}else if(d===36){const b=m+1,S=m+2;return S===v?(s[0]=xa,s[1]=i+m,s[2]=i+b,s[3]=i+S,s[4]=i+v+1,s[5]=l.length,s):(s[0]=Aa,s[1]=i+m,s[2]=i+S,s[3]=i+v,s[4]=i+v+1,s[5]=r,s)}}return s[0]=gl,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s}function ps(l,i,s,o,r,h,y){y?.(s);let m=o;{const v=s.fullPath??s.from,d=v.length,b=s.options?.caseSensitive??l,S=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;m<d;){const _=pr(v,m,i);let M;const O=m,D=_[5];switch(m=D+1,h++,_[0]){case gl:{const q=v.substring(_[2],_[3]);if(b){const Y=r.static?.get(q);if(Y)M=Y;else{r.static??=new Map;const X=Ra(s.fullPath??s.from);X.parent=r,X.depth=h,M=X,r.static.set(q,X)}}else{const Y=q.toLowerCase(),X=r.staticInsensitive?.get(Y);if(X)M=X;else{r.staticInsensitive??=new Map;const I=Ra(s.fullPath??s.from);I.parent=r,I.depth=h,M=I,r.staticInsensitive.set(Y,I)}}break}case Aa:{const q=v.substring(O,_[1]),Y=v.substring(_[4],D),X=b&&!!(q||Y),I=q?X?q:q.toLowerCase():void 0,k=Y?X?Y:Y.toLowerCase():void 0,G=!S&&r.dynamic?.find(Q=>!Q.skipOnParamError&&Q.caseSensitive===X&&Q.prefix===I&&Q.suffix===k);if(G)M=G;else{const Q=Qo(Aa,s.fullPath??s.from,X,I,k);M=Q,Q.depth=h,Q.parent=r,r.dynamic??=[],r.dynamic.push(Q)}break}case Ci:{const q=v.substring(O,_[1]),Y=v.substring(_[4],D),X=b&&!!(q||Y),I=q?X?q:q.toLowerCase():void 0,k=Y?X?Y:Y.toLowerCase():void 0,G=!S&&r.optional?.find(Q=>!Q.skipOnParamError&&Q.caseSensitive===X&&Q.prefix===I&&Q.suffix===k);if(G)M=G;else{const Q=Qo(Ci,s.fullPath??s.from,X,I,k);M=Q,Q.parent=r,Q.depth=h,r.optional??=[],r.optional.push(Q)}break}case xa:{const q=v.substring(O,_[1]),Y=v.substring(_[4],D),X=b&&!!(q||Y),I=q?X?q:q.toLowerCase():void 0,k=Y?X?Y:Y.toLowerCase():void 0,G=Qo(xa,s.fullPath??s.from,X,I,k);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 _=Ra(s.fullPath??s.from);_.kind=Hy,_.parent=r,h++,_.depth=h,r.pathless??=[],r.pathless.push(_),r=_}const g=(s.path||!s.children)&&!s.isRoot;if(g&&v.endsWith("/")){const _=Ra(s.fullPath??s.from);_.kind=_a,_.parent=r,h++,_.depth=h,r.index=_,r=_}r.parse=s.options?.params?.parse??null,r.skipOnParamError=S,r.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,g&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const v of s.children)ps(l,i,v,m,r,h,y)}function qo(l,i){if(l.skipOnParamError&&!i.skipOnParamError)return-1;if(!l.skipOnParamError&&i.skipOnParamError)return 1;if(l.skipOnParamError&&i.skipOnParamError&&(l.parsingPriority||i.parsingPriority))return i.parsingPriority-l.parsingPriority;if(l.prefix&&i.prefix&&l.prefix!==i.prefix){if(l.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(l.prefix))return 1}if(l.suffix&&i.suffix&&l.suffix!==i.suffix){if(l.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(l.suffix))return 1}return l.prefix&&!i.prefix?-1:!l.prefix&&i.prefix?1:l.suffix&&!i.suffix?-1:!l.suffix&&i.suffix?1:l.caseSensitive&&!i.caseSensitive?-1:!l.caseSensitive&&i.caseSensitive?1:0}function Vn(l){if(l.pathless)for(const i of l.pathless)Vn(i);if(l.static)for(const i of l.static.values())Vn(i);if(l.staticInsensitive)for(const i of l.staticInsensitive.values())Vn(i);if(l.dynamic?.length){l.dynamic.sort(qo);for(const i of l.dynamic)Vn(i)}if(l.optional?.length){l.optional.sort(qo);for(const i of l.optional)Vn(i)}if(l.wildcard?.length){l.wildcard.sort(qo);for(const i of l.wildcard)Vn(i)}}function Ra(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 Qo(l,i,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:i,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:o,suffix:r}}function w0(l,i){const s=Ra("/"),o=new Uint16Array(6);for(const r of l)ps(!1,o,r,1,s,0);Vn(s),i.masksTree=s,i.flatCache=fs(1e3)}function N0(l,i){l||="/";const s=i.flatCache.get(l);if(s)return s;const o=vr(l,i.masksTree);return i.flatCache.set(l,o),o}function B0(l,i,s,o,r){l||="/",o||="/";const h=i?`case\0${l}`:l;let y=r.singleCache.get(h);if(!y){y=Ra("/");const m=new Uint16Array(6);ps(i,m,{from:l},1,y,0),r.singleCache.set(h,y)}return vr(o,y,s)}function j0(l,i,s=!1){const o=s?l:`nofuzz\0${l}`,r=i.matchCache.get(o);if(r!==void 0)return r;l||="/";let h;try{h=vr(l,i.segmentTree,s)}catch(y){if(y instanceof URIError)h=null;else throw y}return h&&(h.branch=Q0(h.route)),i.matchCache.set(o,h),h}function H0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function q0(l,i=!1,s){const o=Ra(l.fullPath),r=new Uint16Array(6),h={},y={};let m=0;return ps(i,r,l,1,o,0,d=>{if(s?.(d,m),Fn(!(d.id in h),`Duplicate routes found with id: ${String(d.id)}`),h[d.id]=d,m!==0&&d.path){const b=H0(d.fullPath);(!y[b]||d.fullPath.endsWith("/"))&&(y[b]=d)}m++}),Vn(o),{processedTree:{segmentTree:o,singleCache:fs(1e3),matchCache:fs(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:y}}function vr(l,i,s=!1){const o=l.split("/"),r=G0(l,o,i,s);if(!r)return null;const[h]=qy(l,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function qy(l,i,s){const o=Y0(s.node);let r=null;const h=Object.create(null);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 b=o[m];if(b.kind===_a)break;if(b.kind===Hy){d--,y--,v--;continue}const S=i[y],g=v;if(S&&(v+=S.length),b.kind===Aa){r??=s.node.fullPath.split("/");const _=r[d],M=b.prefix?.length??0;if(_.charCodeAt(M)===123){const D=b.suffix?.length??0,w=_.substring(M+2,_.length-D-1),q=S.substring(M,S.length-D);h[w]=decodeURIComponent(q)}else{const D=_.substring(1);h[D]=decodeURIComponent(S)}}else if(b.kind===Ci){if(s.skipped&1<<m){y--,v=g-1;continue}r??=s.node.fullPath.split("/");const _=r[d],M=b.prefix?.length??0,O=b.suffix?.length??0,D=_.substring(M+3,_.length-O-1),w=b.suffix||b.prefix?S.substring(M,S.length-O):S;w&&(h[D]=decodeURIComponent(w))}else if(b.kind===xa){const _=b,M=l.substring(g+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),O=decodeURIComponent(M);h["*"]=O,h._splat=O;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:y,node:m,path:v,segment:d}]}function Q0(l){const i=[l];for(;l.parentRoute;)l=l.parentRoute,i.push(l);return i.reverse(),i}function Y0(l){const i=Array(l.depth+1);do i[l.depth]=l,l=l.parent;while(l);return i}function G0(l,i,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!Mi(i),h=r&&l!=="/",y=i.length-(r?1:0),m=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let v=null,d=null,b=null;for(;m.length;){const S=m.pop(),{node:g,index:_,skipped:M,depth:O,statics:D,dynamics:w,optionals:q}=S;let{extract:Y,rawParams:X,parsedParams:I}=S;if(g.skipOnParamError){if(!Yo(l,i,S))continue;X=S.rawParams,Y=S.extract,I=S.parsedParams}o&&g.route&&g.kind!==_a&&gi(d,S)&&(d=S);const k=_===y;if(k&&(g.route&&!h&&gi(b,S)&&(b=S),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const G=k?void 0:i[_];let Q;if(k&&g.index){const V={node:g.index,index:_,skipped:M,depth:O+1,statics:D,dynamics:w,optionals:q,extract:Y,rawParams:X,parsedParams:I};let ut=!0;if(g.index.skipOnParamError&&(Yo(l,i,V)||(ut=!1)),ut){if(D===y&&!w&&!q&&!M)return V;gi(b,V)&&(b=V)}}if(g.wildcard&&gi(v,S))for(const V of g.wildcard){const{prefix:ut,suffix:tt}=V;if(ut&&(k||!(V.caseSensitive?G:Q??=G.toLowerCase()).startsWith(ut)))continue;if(tt){if(k)continue;const Rt=i.slice(_).join("/").slice(-tt.length);if((V.caseSensitive?Rt:Rt.toLowerCase())!==tt)continue}const W={node:V,index:y,skipped:M,depth:O,statics:D,dynamics:w,optionals:q,extract:Y,rawParams:X,parsedParams:I};if(!(V.skipOnParamError&&!Yo(l,i,W))){v=W;break}}if(g.optional){const V=M|1<<O,ut=O+1;for(let tt=g.optional.length-1;tt>=0;tt--){const W=g.optional[tt];m.push({node:W,index:_,skipped:V,depth:ut,statics:D,dynamics:w,optionals:q,extract:Y,rawParams:X,parsedParams:I})}if(!k)for(let tt=g.optional.length-1;tt>=0;tt--){const W=g.optional[tt],{prefix:Rt,suffix:bt}=W;if(Rt||bt){const Yt=W.caseSensitive?G:Q??=G.toLowerCase();if(Rt&&!Yt.startsWith(Rt)||bt&&!Yt.endsWith(bt))continue}m.push({node:W,index:_+1,skipped:M,depth:ut,statics:D,dynamics:w,optionals:q+1,extract:Y,rawParams:X,parsedParams:I})}}if(!k&&g.dynamic&&G)for(let V=g.dynamic.length-1;V>=0;V--){const ut=g.dynamic[V],{prefix:tt,suffix:W}=ut;if(tt||W){const Rt=ut.caseSensitive?G:Q??=G.toLowerCase();if(tt&&!Rt.startsWith(tt)||W&&!Rt.endsWith(W))continue}m.push({node:ut,index:_+1,skipped:M,depth:O+1,statics:D,dynamics:w+1,optionals:q,extract:Y,rawParams:X,parsedParams:I})}if(!k&&g.staticInsensitive){const V=g.staticInsensitive.get(Q??=G.toLowerCase());V&&m.push({node:V,index:_+1,skipped:M,depth:O+1,statics:D+1,dynamics:w,optionals:q,extract:Y,rawParams:X,parsedParams:I})}if(!k&&g.static){const V=g.static.get(G);V&&m.push({node:V,index:_+1,skipped:M,depth:O+1,statics:D+1,dynamics:w,optionals:q,extract:Y,rawParams:X,parsedParams:I})}if(g.pathless){const V=O+1;for(let ut=g.pathless.length-1;ut>=0;ut--){const tt=g.pathless[ut];m.push({node:tt,index:_,skipped:M,depth:V,statics:D,dynamics:w,optionals:q,extract:Y,rawParams:X,parsedParams:I})}}}if(b&&v)return gi(v,b)?b:v;if(b)return b;if(v)return v;if(o&&d){let S=d.index;for(let _=0;_<d.index;_++)S+=i[_].length;const g=S===l.length?"/":l.slice(S);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(g),d}return null}function Yo(l,i,s){try{const[o,r]=qy(l,i,s);s.rawParams=o,s.extract=r;const h=s.node.parse(o);return s.parsedParams=Object.assign(Object.create(null),s.parsedParams,h),!0}catch{return null}}function gi(l,i){return l?i.statics>l.statics||i.statics===l.statics&&(i.dynamics>l.dynamics||i.dynamics===l.dynamics&&(i.optionals>l.optionals||i.optionals===l.optionals&&((i.node.kind===_a)>(l.node.kind===_a)||i.node.kind===_a==(l.node.kind===_a)&&i.depth>l.depth))):!0}function es(l){return gr(l.filter(i=>i!==void 0).join("/"))}function gr(l){return l.replace(/\/{2,}/g,"/")}function Qy(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function kn(l){const i=l.length;return i>1&&l[i-1]==="/"?l.replace(/\/{1,}$/,""):l}function Yy(l){return kn(Qy(l))}function hs(l,i){return l?.endsWith("/")&&l!=="/"&&l!==`${i}/`?l.slice(0,-1):l}function X0(l,i,s){return hs(l,s)===hs(i,s)}function V0({base:l,to:i,trailingSlash:s="never",cache:o}){const r=i.startsWith("/"),h=!r&&i===".";let y;if(o){y=r?i:h?l:l+"\0"+i;const S=o.get(y);if(S)return S}let m;if(h)m=l.split("/");else if(r)m=i.split("/");else{for(m=l.split("/");m.length>1&&Mi(m)==="";)m.pop();const S=i.split("/");for(let g=0,_=S.length;g<_;g++){const M=S[g];M===""?g?g===_-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 g=m[S];if(!g)continue;v=pr(g,0,v);const _=v[0];if(_===gl){d+=g;continue}const M=v[5],O=g.substring(0,v[1]),D=g.substring(v[4],M),w=g.substring(v[2],v[3]);_===Aa?d+=O||D?`${O}{$${w}}${D}`:`$${w}`:_===xa?d+=O||D?`${O}{$}${D}`:"$":d+=`${O}{-$${w}}${D}`}d=gr(d);const b=d||"/";return y&&o&&o.set(y,b),b}function K0(l){const i=new Map(l.map(r=>[encodeURIComponent(r),r])),s=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return r=>r.replace(o,h=>i.get(h)??h)}function Go(l,i,s){const o=i[l];return typeof o!="string"?o:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>ey(r,s)).join("/"):ey(o,s)}function ty({path:l,params:i,decoder:s,...o}){let r=!1;const h=Object.create(null);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=pr(l,S,v);const g=v[5];if(m=g+1,S===g)continue;const _=v[0];if(_===gl){d+="/"+l.substring(S,g);continue}if(_===xa){const M=i._splat;h._splat=M,h["*"]=M;const O=l.substring(S,v[1]),D=l.substring(v[4],g);if(!M){r=!0,(O||D)&&(d+="/"+O+D);continue}const w=Go("_splat",i,s);d+="/"+O+w+D;continue}if(_===Aa){const M=l.substring(v[2],v[3]);!r&&!(M in i)&&(r=!0),h[M]=i[M];const O=l.substring(S,v[1]),D=l.substring(v[4],g),w=Go(M,i,s)??"undefined";d+="/"+O+w+D;continue}if(_===Ci){const M=l.substring(v[2],v[3]),O=i[M];if(O==null)continue;h[M]=O;const D=l.substring(S,v[1]),w=l.substring(v[4],g),q=Go(M,i,s)??"";d+="/"+D+q+w;continue}}return l.endsWith("/")&&(d+="/"),{usedParams:h,interpolatedPath:d||"/",isMissingParams:r}}function ey(l,i){const s=encodeURIComponent(l);return i?.(s)??s}function se(l){return!!l?.isNotFound}function Z0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const ir="tsr-scroll-restoration-v1_3",J0=(l,i)=>{let s;return(...o)=>{s||(s=setTimeout(()=>{l(...o),s=null},i))}};function P0(){const l=Z0();if(!l)return null;const i=l.getItem(ir);let s=i?JSON.parse(i):{};return{state:s,set:o=>{s=Kn(o,s)||s;try{l.setItem(ir,JSON.stringify(s))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const $u=P0(),k0=l=>l.state.__TSR_key||l.href;function F0(l){const i=[];let s;for(;s=l.parentNode;)i.push(`${l.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,l)+1})`),l=s;return`${i.reverse().join(" > ")}`.toLowerCase()}let ds=!1;function W0({storageKey:l,key:i,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=i||window.history.state?.__TSR_key,v=y[m];ds=!0;t:{if(o&&v&&Object.keys(v).length>0){for(const S in v){const g=v[S];if(S==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:s});else if(S){const _=document.querySelector(S);_&&(_.scrollLeft=g.scrollX,_.scrollTop=g.scrollY)}}break t}const d=(h??window.location).hash.split("#",2)[1];if(d){const S=window.history.state?.__hashScrollIntoViewOptions??!0;if(S){const g=document.getElementById(d);g&&g.scrollIntoView(S)}break t}const b={top:0,left:0,behavior:s};if(window.scrollTo(b),r)for(const S of r){if(S==="window")continue;const g=typeof S=="function"?S():document.querySelector(S);g&&g.scrollTo(b)}}ds=!1}function $0(l,i){if(!$u||((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!$u))return;l.isScrollRestorationSetup=!0,ds=!1;const o=l.options.getScrollRestorationKey||k0;window.history.scrollRestoration="manual";const r=h=>{if(ds||!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=F0(h.target)}const m=o(l.state.location);$u.set(v=>{const d=v[m]||={},b=d[y]||={};if(y==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(y){const S=document.querySelector(y);S&&(b.scrollX=S.scrollLeft||0,b.scrollY=S.scrollTop||0)}return v})};typeof document<"u"&&document.addEventListener("scroll",J0(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})||(W0({storageKey:ir,key:y,behavior:l.options.scrollRestorationBehavior,shouldScrollRestoration:l.isScrollRestoring,scrollToTopSelectors:l.options.scrollToTopSelectors,location:l.history.location}),l.isScrollRestoring&&$u.set(m=>(m[y]||={},m)))})}function I0(l){if(typeof document<"u"&&document.querySelector){const i=l.state.location.state.__hashScrollIntoViewOptions??!0;if(i&&l.state.location.hash!==""){const s=document.getElementById(l.state.location.hash);s&&s.scrollIntoView(i)}}}function tS(l,i=String){const s=new URLSearchParams;for(const o in l){const r=l[o];r!==void 0&&s.set(o,i(r))}return s.toString()}function Xo(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function eS(l){const i=new URLSearchParams(l),s=Object.create(null);for(const[o,r]of i.entries()){const h=s[o];h==null?s[o]=Xo(r):Array.isArray(h)?h.push(Xo(r)):s[o]=[h,Xo(r)]}return s}const nS=lS(JSON.parse),aS=iS(JSON.stringify,JSON.parse);function lS(l){return i=>{i[0]==="?"&&(i=i.substring(1));const s=eS(i);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function iS(l,i){const s=typeof i=="function";function o(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(s&&typeof r=="string")try{return i(r),l(r)}catch{}return r}return r=>{const h=tS(r,o);return h?`?${h}`:""}}const Be="__root__";function uS(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 i=new Headers(l.headers);l.href&&i.get("Location")===null&&i.set("Location",l.href);const s=new Response(null,{status:l.statusCode,headers:i});if(s.options=l,l.throw)throw s;return s}function ye(l){return l instanceof Response&&!!l.options}const ur=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},vs=(l,i)=>!!(l.preload&&!l.router.state.matches.some(s=>s.id===i)),Ta=(l,i,s=!0)=>{const o={...l.router.options.context??{}},r=s?i:i-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},ny=(l,i)=>{if(!l.matches.length)return;const s=i.routeId,o=l.matches.findIndex(y=>y.routeId===l.router.routeTree.id),r=o>=0?o:0;let h=s?l.matches.findIndex(y=>y.routeId===s):l.firstBadMatchIndex??l.matches.length-1;h<0&&(h=r);for(let y=h;y>=0;y--){const m=l.matches[y];if(l.router.looseRoutesById[m.routeId].options.notFoundComponent)return y}return s?h:r},Zn=(l,i,s)=>{if(!(!ye(s)&&!se(s)))throw ye(s)&&s.redirectHandled&&!s.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=s,l.updateMatch(i.id,o=>({...o,status:ye(s)?"redirected":o.status==="pending"?"success":o.status,context:Ta(l,i.index),isFetching:!1,error:s})),se(s)&&!s.routeId&&(s.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),ye(s)&&(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s))),s},Gy=(l,i)=>{const s=l.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},ay=(l,i,s)=>{const o=Ta(l,s);l.updateMatch(i,r=>({...r,context:o}))},Si=(l,i,s,o)=>{const{id:r,routeId:h}=l.matches[i],y=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=i,Zn(l,l.router.getMatch(r),s);try{y.options.onError?.(s)}catch(m){s=m,Zn(l,l.router.getMatch(r),s)}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})),!l.preload&&!ye(s)&&!se(s)&&(l.serialError??=s)},Xy=(l,i,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(!!(l.onReady&&!vs(l,i)&&(s.options.loader||s.options.beforeLoad||Ky(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent))){const y=setTimeout(()=>{ur(l)},r);o._nonReactive.pendingTimeout=y}},sS=(l,i,s)=>{const o=l.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Xy(l,i,s,o);const r=()=>{const h=l.router.getMatch(i);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Zn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},cS=(l,i,s,o)=>{const r=l.router.getMatch(i),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"),Xy(l,i,o,r);const v=new AbortController;let d=!1;const b=()=>{d||(d=!0,l.updateMatch(i,X=>({...X,isFetching:"beforeLoad",fetchCount:X.fetchCount+1,abortController:v})))},S=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(i,X=>({...X,isFetching:!1}))};if(!o.options.beforeLoad){Ri(()=>{b(),S()});return}r._nonReactive.beforeLoadPromise=vl();const g={...Ta(l,s,!1),...r.__routeContext},{search:_,params:M,cause:O}=r,D=vs(l,i),w={search:_,abortController:v,params:M,preload:D,context:g,location:l.location,navigate:X=>l.router.navigate({...X,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:D?"preload":O,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},q=X=>{if(X===void 0){Ri(()=>{b(),S()});return}(ye(X)||se(X))&&(b(),Si(l,s,X,"BEFORE_LOAD")),Ri(()=>{b(),l.updateMatch(i,I=>({...I,__beforeLoadContext:X})),S()})};let Y;try{if(Y=o.options.beforeLoad(w),Oi(Y))return b(),Y.catch(X=>{Si(l,s,X,"BEFORE_LOAD")}).then(q)}catch(X){b(),Si(l,s,X,"BEFORE_LOAD")}q(Y)},oS=(l,i)=>{const{id:s,routeId:o}=l.matches[i],r=l.router.looseRoutesById[o],h=()=>m(),y=()=>cS(l,s,i,r),m=()=>{if(Gy(l,s))return;const v=sS(l,s,r);return Oi(v)?v.then(y):y()};return h()},rS=(l,i,s)=>{const o=l.router.getMatch(i);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,b=h?.scripts,S=h?.styles;return{meta:v,links:d,headScripts:b,headers:m,scripts:y,styles:S}})},Vy=(l,i,s,o,r)=>{const h=i[o-1],{params:y,loaderDeps:m,abortController:v,cause:d}=l.router.getMatch(s),b=Ta(l,o),S=vs(l,s);return{params:y,deps:m,preload:!!S,parentMatchPromise:h,abortController:v,context:b,location:l.location,navigate:g=>l.router.navigate({...g,_fromLocation:l.location}),cause:S?"preload":d,route:r,...l.router.options.additionalContext}},ly=async(l,i,s,o,r)=>{try{const h=l.router.getMatch(s);try{(!(M0??l.router.isServer)||h.ssr===!0)&&Ai(r);const y=r.options.loader,m=typeof y=="function"?y:y?.handler,v=m?.(Vy(l,i,s,o,r)),d=!!m&&Oi(v);if((d||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&l.updateMatch(s,g=>({...g,isFetching:"loader"})),m){const g=d?await v:v;Zn(l,l.router.getMatch(s),g),g!==void 0&&l.updateMatch(s,_=>({..._,loaderData:g}))}r._lazyPromise&&await r._lazyPromise;const S=h._nonReactive.minPendingPromise;S&&await S,r._componentsPromise&&await r._componentsPromise,l.updateMatch(s,g=>({...g,error:void 0,context:Ta(l,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(y){let m=y;if(m?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Ta(l,o)}));return}const v=h._nonReactive.minPendingPromise;v&&await v,se(y)&&await r.options.notFoundComponent?.preload?.(),Zn(l,l.router.getMatch(s),y);try{r.options.onError?.(y)}catch(d){m=d,Zn(l,l.router.getMatch(s),d)}!ye(m)&&!se(m)&&await Ai(r,["errorComponent"]),l.updateMatch(s,d=>({...d,error:m,context:Ta(l,o),status:"error",isFetching:!1}))}}catch(h){const y=l.router.getMatch(s);y&&(y._nonReactive.loaderPromise=void 0),Zn(l,y,h)}},fS=async(l,i,s)=>{async function o(_,M,O,D,w){const q=Date.now()-M.updatedAt,Y=_?w.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:w.options.staleTime??l.router.options.defaultStaleTime??0,X=w.options.shouldReload,I=typeof X=="function"?X(Vy(l,i,r,s,w)):X,{status:k,invalid:G}=D,Q=q>Y&&(!!l.forceStaleReload||D.cause==="enter"||O!==void 0&&O!==D.id);y=k==="success"&&(G||(I??Q)),_&&w.options.preload===!1||(y&&!l.sync&&b?(m=!0,(async()=>{try{await ly(l,i,r,s,w);const V=l.router.getMatch(r);V._nonReactive.loaderPromise?.resolve(),V._nonReactive.loadPromise?.resolve(),V._nonReactive.loaderPromise=void 0}catch(V){ye(V)&&await l.router.navigate(V.options)}})()):k!=="success"||y?await ly(l,i,r,s,w):ay(l,r,s))}const{id:r,routeId:h}=l.matches[s];let y=!1,m=!1;const v=l.router.looseRoutesById[h],d=v.options.loader,b=((typeof d=="function"?void 0:d?.staleReloadMode)??l.router.options.defaultStaleReloadMode)!=="blocking";if(Gy(l,r)){if(!l.router.getMatch(r))return l.matches[s];ay(l,r,s)}else{const _=l.router.getMatch(r),M=l.router.state.matches[s]?.routeId===h?l.router.state.matches[s].id:l.router.state.matches.find(D=>D.routeId===h)?.id,O=vs(l,r);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!l.sync&&!_.preload&&b)return _;await _._nonReactive.loaderPromise;const D=l.router.getMatch(r),w=D._nonReactive.error||D.error;w&&Zn(l,D,w),D.status==="pending"&&await o(O,_,M,D,v)}else{const D=O&&!l.router.state.matches.some(q=>q.id===r),w=l.router.getMatch(r);w._nonReactive.loaderPromise=vl(),D!==w.preload&&l.updateMatch(r,q=>({...q,preload:D})),await o(O,_,M,w,v)}}const S=l.router.getMatch(r);m||(S._nonReactive.loaderPromise?.resolve(),S._nonReactive.loadPromise?.resolve()),clearTimeout(S._nonReactive.pendingTimeout),S._nonReactive.pendingTimeout=void 0,m||(S._nonReactive.loaderPromise=void 0),S._nonReactive.dehydrated=void 0;const g=m?S.isFetching:!1;return g!==S.isFetching||S.invalid!==!1?(l.updateMatch(r,_=>({..._,isFetching:g,invalid:!1})),l.router.getMatch(r)):S};async function iy(l){const i=l,s=[];i.router.state.matches.some(g=>g._forcePending)&&ur(i);let o;for(let g=0;g<i.matches.length;g++){try{const _=oS(i,g);Oi(_)&&await _}catch(_){if(ye(_))throw _;if(se(_))o=_;else if(!i.preload)throw _;break}if(i.serialError)break}const r=i.firstBadMatchIndex??i.matches.length,h=o&&!i.preload?ny(i,o):void 0,y=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let m,v;for(let g=0;g<y;g++)s.push(fS(i,s,g));try{await Promise.all(s)}catch{const g=await Promise.allSettled(s);for(const _ of g){if(_.status!=="rejected")continue;const M=_.reason;if(ye(M))throw M;se(M)?m??=M:v??=M}if(v!==void 0)throw v}const d=m??(o&&!i.preload?o:void 0);let b=i.serialError?i.firstBadMatchIndex??0:i.matches.length-1;if(!d&&o&&i.preload)return i.matches;if(d){const g=ny(i,d);Fn(g!==void 0);const _=i.matches[g],M=i.router.looseRoutesById[_.routeId],O=i.router.options?.defaultNotFoundComponent;!M.options.notFoundComponent&&O&&(M.options.notFoundComponent=O),d.routeId=_.routeId;const D=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,w=>({...w,...D?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),b=g,await Ai(M,["notFoundComponent"])}else if(!i.preload){const g=i.matches[0];g.globalNotFound||i.router.getMatch(g.id)?.globalNotFound&&i.updateMatch(g.id,M=>({...M,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const g=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Ai(g,["errorComponent"])}for(let g=0;g<=b;g++){const _=i.matches[g],{id:M,routeId:O}=_,D=i.router.looseRoutesById[O];try{const w=rS(i,M,D);if(w){const q=await w;i.updateMatch(M,Y=>({...Y,...q}))}}catch(w){console.error(`Error executing head for route ${O}:`,w)}}const S=ur(i);if(Oi(S)&&await S,d)throw d;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function uy(l,i){const s=i.map(o=>l.options[o]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Ai(l,i=ns){!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(o=>{const{id:r,...h}=o.options;Object.assign(l.options,h),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0);const s=()=>l._componentsLoaded?void 0:i===ns?(()=>{if(l._componentsPromise===void 0){const o=uy(l,ns);o?l._componentsPromise=o.then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0}):l._componentsLoaded=!0}return l._componentsPromise})():uy(l,i);return l._lazyPromise?l._lazyPromise.then(s):s()}function Ky(l){for(const i of ns)if(l.options[i]?.preload)return!0;return!1}const ns=["component","errorComponent","pendingComponent","notFoundComponent"];function hS(l){return{input:({url:i})=>{for(const s of l)i=sr(s,i);return i},output:({url:i})=>{for(let s=l.length-1;s>=0;s--)i=Zy(l[s],i);return i}}}function dS(l){const i=Yy(l.basepath),s=`/${i}`,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=es(["/",i,y.pathname]),y)}}function sr(l,i){const s=l?.input?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Zy(l,i){const s=l?.output?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Ma(l){const i=l.resolvedLocation,s=l.location,o=i?.pathname!==s.pathname,r=i?.href!==s.href,h=i?.hash!==s.hash;return{fromLocation:i,toLocation:s,pathChanged:o,hrefChanged:r,hashChanged:h}}function mS(l){const i=l.filter(s=>s.status!=="redirected");return i.length===l.length?l:i}class yS{constructor(i){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=K0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=E0()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let g;this.resolvePathCache=fs(1e3),g=this.buildRouteTree(),this.setRoutes(g)}!this.__store&&this.latestLocation&&(this.__store=b0(vS(this.latestLocation)),$0(this));let m=!1;const v=this.options.basepath??"/",d=this.options.rewrite;if(h||r!==v||y!==d){this.basepath=v;const g=[],_=Yy(v);_&&_!=="/"&&g.push(dS({basepath:v})),d&&g.push(d),this.rewrite=g.length===0?void 0:g.length===1?g[0]:hS(g),this.history&&this.updateLatestLocation(),m=!0}m&&this.__store&&this.__store.setState(g=>({...g,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=q0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&w0(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const r={eventType:s,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const r=({pathname:v,search:d,hash:b,href:S,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(v)){const q=this.options.parseSearch(d),Y=this.options.stringifySearch(q);return{href:v+Y+b,publicHref:S,pathname:vi(v).path,external:!1,searchStr:Y,search:ga(o?.search,q),hash:vi(b.slice(1)).path,state:ba(o?.state,g)}}const _=new URL(S,this.origin),M=sr(this.rewrite,_),O=this.options.parseSearch(M.search),D=this.options.stringifySearch(O);return M.search=D,{href:M.href.replace(M.origin,""),publicHref:S,pathname:vi(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:D,search:ga(o?.search,O),hash:vi(M.hash.slice(1)).path,state:ba(o?.state,g)}},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)=>V0({base:s,to:gr(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=>gS({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,"."),b=m.search,S=Object.assign(Object.create(null),m.params),g=h.to?this.resolvePathWithBase(d,`${h.to}`):this.resolvePathWithBase(d,"."),_=h.params===!1||h.params===null?Object.create(null):(h.params??!0)===!0?S:Object.assign(S,Kn(h.params,S)),M=this.getMatchedRoutes(g);let O=M.matchedRoutes;if((!M.foundRoute||M.foundRoute.path!=="/"&&M.routeParams["**"])&&this.options.notFoundRoute&&(O=[...O,this.options.notFoundRoute]),Object.keys(_).length>0)for(const tt of O){const W=tt.options.params?.stringify??tt.options.stringifyParams;if(W)try{Object.assign(_,W(_))}catch{}}const w=s.leaveParams?g:vi(ty({path:g,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let q=b;if(s._includeValidateSearch&&this.options.search?.strict){const tt={};O.forEach(W=>{if(W.options.validateSearch)try{Object.assign(tt,as(W.options.validateSearch,{...tt,...q}))}catch{}}),q=tt}q=SS({search:q,dest:h,destRoutes:O,_includeValidateSearch:s._includeValidateSearch}),q=ga(b,q);const Y=this.options.stringifySearch(q),X=h.hash===!0?y.hash:h.hash?Kn(h.hash,y.hash):void 0,I=X?`#${X}`:"";let k=h.state===!0?y.state:h.state?Kn(h.state,y.state):{};k=ba(y.state,k);const G=`${w}${Y}${I}`;let Q,V,ut=!1;if(this.rewrite){const tt=new URL(G,this.origin),W=Zy(this.rewrite,tt);Q=tt.href.replace(tt.origin,""),W.origin!==this.origin?(V=W.href,ut=!0):V=W.pathname+W.search+W.hash}else Q=D0(G),V=Q;return{publicHref:V,href:Q,pathname:w,search:q,searchStr:Y,state:k,hash:X??"",external:ut,unmaskOnReload:h.unmaskOnReload}},r=(h={},y)=>{const m=o(h);let v=y?o(y):void 0;if(!v){const d=Object.create(null);if(this.options.routeMasks){const b=N0(m.pathname,this.processedTree);if(b){Object.assign(d,b.rawParams);const{from:S,params:g,..._}=b.route,M=g===!1||g===null?Object.create(null):(g??!0)===!0?d:Object.assign(d,Kn(g,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(b=>{r.state[b]=this.latestLocation.state[b]});const d=Ea(r.state,this.latestLocation.state);return v.forEach(b=>{delete r.state[b]}),d},y=kn(this.latestLocation.href)===kn(r.href),m=this.commitLocationPromise;if(this.commitLocationPromise=vl(()=>{m?.resolve()}),y&&h())this.load();else{let{maskedLocation:v,hashScrollIntoView:d,...b}=r;v&&(b={...v,state:{...v.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:y,href:m,...v}={})=>{if(m){const S=this.history.location.state.__TSR_index,g=cs(m,{__TSR_index:s?S:S+1}),_=new URL(g.pathname,this.origin),M=sr(this.rewrite,_);v.to=M.pathname,v.search=this.options.parseSearch(g.search),v.hash=g.hash.slice(1)}const d=this.buildLocation({...v,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const b=this.commitLocation({...d,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:y});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),b},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(rs(v,this.protocolAllowlist))return Promise.resolve();if(!y.ignoreBlocker){const b=this.history.getBlockers?.()??[];for(const S of b)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return 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;const y=this.state.resolvedLocation??this.state.location;for(h=new Promise(v=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,b=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ma({resolvedLocation:b,location:d})}),this.emit({type:"onBeforeLoad",...Ma({resolvedLocation:b,location:d})}),await iy({router:this,sync:s?.sync,forceStaleReload:y.href===d.href,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let S=[],g=[],_=[],M=[];Ri(()=>{this.__store.setState(O=>{const D=O.matches,w=O.pendingMatches||O.matches;return S=D.filter(q=>!w.some(Y=>Y.id===q.id)),g=D.filter(q=>!w.some(Y=>Y.routeId===q.routeId)),_=w.filter(q=>!D.some(Y=>Y.routeId===q.routeId)),M=w.filter(q=>D.some(Y=>Y.routeId===q.routeId)),{...O,isLoading:!1,loadedAt:Date.now(),matches:w,pendingMatches:void 0,cachedMatches:[...O.cachedMatches,...S.filter(q=>q.status!=="error"&&q.status!=="notFound"&&q.status!=="redirected")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[_,"onEnter"],[M,"onStay"]].forEach(([O,D])=>{O.forEach(w=>{this.looseRoutesById[w.routeId].options[D]?.(w)})})})})}})}catch(d){ye(d)?(o=d,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):se(d)&&(r=d),this.__store.setState(b=>({...b,statusCode:o?o.status:r?404:b.matches.some(S=>S.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),v()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let m;this.hasNotFoundMatch()?m=404:this.__store.state.matches.some(v=>v.status==="error")&&(m=500),m!==void 0&&this.__store.setState(v=>({...v,statusCode:m}))},this.startViewTransition=s=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const h=this.latestLocation,y=this.state.resolvedLocation,m=typeof o.types=="function"?o.types(Ma({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:mS(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&&rs(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=Ai,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)]);Ri(()=>{r.forEach(m=>{y.has(m.id)||this.__store.setState(v=>({...v,cachedMatches:[...v.cachedMatches,m]}))})});try{return r=await iy({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(ye(m))return m.options.reloadDocument?void 0:await this.preloadRoute({...m.options,_fromLocation:o});se(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=B0(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,...i,caseSensitive:i.caseSensitive??!1,notFoundMode:i.notFoundMode??"fuzzy",stringifySearch:i.stringifySearch??aS,parseSearch:i.parseSearch??nS,protocolAllowlist:i.protocolAllowlist??z0}),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:i,routesByPath:s,processedTree:o}){this.routesById=i,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(i){return i?.id?i.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(i,s){const o=this.getMatchedRoutes(i.pathname),{foundRoute:r,routeParams:h,parsedParams:y}=o;let{matchedRoutes:m}=o,v=!1;(r?r.path!=="/"&&h["**"]:kn(i.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:v=!0);const d=v?_S(this.options.notFoundMode,m):void 0,b=new Array(m.length),S=new Map(this.state.matches.map(g=>[g.routeId,g]));for(let g=0;g<m.length;g++){const _=m[g],M=b[g-1];let O,D,w;{const bt=M?.search??i.search,Yt=M?._strictSearch??void 0;try{const L=as(_.options.validateSearch,{...bt})??void 0;O={...bt,...L},D={...Yt,...L},w=void 0}catch(L){let K=L;if(L instanceof ms||(K=new ms(L.message,{cause:L})),s?.throwOnError)throw K;O=bt,D={},w=K}}const q=_.options.loaderDeps?.({search:O})??"",Y=q?JSON.stringify(q):"",{interpolatedPath:X,usedParams:I}=ty({path:_.fullPath,params:h,decoder:this.pathParamsDecoder,server:this.isServer}),k=_.id+X+Y,G=this.getMatch(k),Q=S.get(_.id),V=G?._strictParams??I;let ut;if(!G)try{sy(_,I,y,V)}catch(bt){if(se(bt)||ye(bt)?ut=bt:ut=new pS(bt.message,{cause:bt}),s?.throwOnError)throw ut}Object.assign(h,V);const tt=Q?"stay":"enter";let W;if(G)W={...G,cause:tt,params:Q?.params??h,_strictParams:V,search:ga(Q?Q.search:G.search,O),_strictSearch:D};else{const bt=_.options.loader||_.options.beforeLoad||_.lazyFn||Ky(_)?"pending":"success";W={id:k,ssr:_.options.ssr,index:g,routeId:_.id,params:Q?.params??h,_strictParams:V,pathname:X,updatedAt:Date.now(),search:Q?ga(Q.search,O):O,_strictSearch:D,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:Q?ba(Q.loaderDeps,q):q,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:_.options.staticData||{},fullPath:_.fullPath}}s?.preload||(W.globalNotFound=d===_.id),W.searchError=w;const Rt=this.getParentContext(M);W.context={...Rt,...W.__routeContext,...W.__beforeLoadContext},b[g]=W}for(let g=0;g<b.length;g++){const _=b[g],M=this.looseRoutesById[_.routeId],O=this.getMatch(_.id),D=S.get(_.routeId);if(_.params=D?ga(D.params,h):h,!O){const w=b[g-1],q=this.getParentContext(w);if(M.options.context){const Y={deps:_.loaderDeps,params:_.params,context:q??{},location:i,navigate:X=>this.navigate({...X,_fromLocation:i}),buildLocation:this.buildLocation,cause:_.cause,abortController:_.abortController,preload:!!_.preload,matches:b,routeId:M.id};_.__routeContext=M.options.context(Y)??void 0}_.context={...q,..._.__routeContext,..._.__beforeLoadContext}}}return b}matchRoutesLightweight(i){const{matchedRoutes:s,routeParams:o,parsedParams:r}=this.getMatchedRoutes(i.pathname),h=Mi(s),y={...i.search};for(const b of s)try{Object.assign(y,as(b.options.validateSearch,y))}catch{}const m=Mi(this.state.matches),v=m&&m.routeId===h.id&&i.pathname===this.state.location.pathname;let d;if(v)d=m.params;else{const b=Object.assign(Object.create(null),o);for(const S of s)try{sy(S,o,r??{},b)}catch{}d=b}return{matchedRoutes:s,fullPath:h.fullPath,search:y,params:d}}}class ms extends Error{}class pS extends Error{}function vS(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function as(l,i){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(i);if(s instanceof Promise)throw new ms("Async validation not supported");if(s.issues)throw new ms(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in l?l.parse(i):typeof l=="function"?l(i):{}}function gS({pathname:l,routesById:i,processedTree:s}){const o=Object.create(null),r=kn(l);let h,y;const m=j0(r,s,!0);return m&&(h=m.route,Object.assign(o,m.rawParams),y=Object.assign(Object.create(null),m.parsedParams)),{matchedRoutes:m?.branch||[i[Be]],routeParams:o,foundRoute:h,parsedParams:y}}function SS({search:l,dest:i,destRoutes:s,_includeValidateSearch:o}){return bS(s)(l,i,o??!1)}function bS(l){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of l){if("search"in r.options)r.options.search?.middlewares&&i.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((b,S)=>S(b),y));const d=m(v);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((b,S)=>S(b),d):d};i.middlewares.push(h)}if(r.options.validateSearch){const h=({search:y,next:m})=>{const v=m(y);if(!i._includeValidateSearch)return v;try{return{...v,...as(r.options.validateSearch,v)??void 0}}catch{return v}};i.middlewares.push(h)}}const s=({search:r})=>{const h=i.dest;return h.search?h.search===!0?r:Kn(h.search,r):{}};i.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 i.dest=y,i._includeValidateSearch=m,o(0,h,i.middlewares)}}function _S(l,i){if(l!=="root")for(let s=i.length-1;s>=0;s--){const o=i[s];if(o.children)return o.id}return Be}function sy(l,i,s,o){const r=l.options.params?.parse??l.options.parseParams;if(r)if(l.options.skipRouteOnParseError)for(const h in i)h in s&&(o[h]=s[h]);else{const h=r(o);Object.assign(o,h)}}const RS="Error preloading route! ☝️";class Jy{constructor(i){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||Fn(!1);let h=r?Be:o?.path;h&&h!=="/"&&(h=Qy(h));const y=o?.id||h;let m=r?Be:es([this.parentRoute.id===Be?"":this.parentRoute.id,y]);h===Be&&(h="/"),m!==Be&&(m=es(["/",m]));const v=m===Be?"/":es([this.parentRoute.fullPath,h]);this._path=h,this._id=m,this._fullPath=v,this._to=kn(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=>uS({from:this.fullPath,...s}),this.options=i||{},this.isRoot=!i?.getParentRoute,i?.id&&i?.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 ES extends Jy{constructor(i){super(i)}}const Iu=typeof window<"u"?F.useLayoutEffect:F.useEffect;function Vo(l){const i=F.useRef({value:l,prev:null}),s=i.current.value;return l!==s&&(i.current={value:l,prev:s}),i.current.prev}function TS(l,i,s={},o={}){F.useEffect(()=>{if(!l.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{i(h)},s);return r.observe(l.current),()=>{r.disconnect()}},[i,s,o.disabled,l])}function MS(l){const i=F.useRef(null);return F.useImperativeHandle(l,()=>i.current,[]),i}function Sr(l){const i=l.errorComponent??br;return at.jsx(OS,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?F.createElement(i,{error:s,reset:o}):l.children})}class OS extends F.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(i){return{resetKey:i.getResetKey()}}static getDerivedStateFromError(i){return{error:i}}reset(){this.setState({error:null})}componentDidUpdate(i,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(i,s){this.props.onCatch&&this.props.onCatch(i,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function br({error:l}){const[i,s]=F.useState(!1);return at.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[at.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[at.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),at.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:i?"Hide Error":"Show Error"})]}),at.jsx("div",{style:{height:".25rem"}}),i?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 CS({children:l,fallback:i=null}){return Py()?at.jsx(Ei.Fragment,{children:l}):at.jsx(Ei.Fragment,{children:i})}function Py(){return Ei.useSyncExternalStore(AS,()=>!0,()=>!1)}function AS(){return()=>{}}var Ko={exports:{}},Zo={},Jo={exports:{}},Po={};var cy;function xS(){if(cy)return Po;cy=1;var l=xi();function i(S,g){return S===g&&(S!==0||1/S===1/g)||S!==S&&g!==g}var s=typeof Object.is=="function"?Object.is:i,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,y=l.useDebugValue;function m(S,g){var _=g(),M=o({inst:{value:_,getSnapshot:g}}),O=M[0].inst,D=M[1];return h(function(){O.value=_,O.getSnapshot=g,v(O)&&D({inst:O})},[S,_,g]),r(function(){return v(O)&&D({inst:O}),S(function(){v(O)&&D({inst:O})})},[S]),y(_),_}function v(S){var g=S.getSnapshot;S=S.value;try{var _=g();return!s(S,_)}catch{return!0}}function d(S,g){return g()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:m;return Po.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:b,Po}var oy;function zS(){return oy||(oy=1,Jo.exports=xS()),Jo.exports}var ry;function DS(){if(ry)return Zo;ry=1;var l=xi(),i=zS();function s(d,b){return d===b&&(d!==0||1/d===1/b)||d!==d&&b!==b}var o=typeof Object.is=="function"?Object.is:s,r=i.useSyncExternalStore,h=l.useRef,y=l.useEffect,m=l.useMemo,v=l.useDebugValue;return Zo.useSyncExternalStoreWithSelector=function(d,b,S,g,_){var M=h(null);if(M.current===null){var O={hasValue:!1,value:null};M.current=O}else O=M.current;M=m(function(){function w(k){if(!q){if(q=!0,Y=k,k=g(k),_!==void 0&&O.hasValue){var G=O.value;if(_(G,k))return X=G}return X=k}if(G=X,o(Y,k))return G;var Q=g(k);return _!==void 0&&_(G,Q)?(Y=k,G):(Y=k,X=Q)}var q=!1,Y,X,I=S===void 0?null:S;return[function(){return w(b())},I===null?void 0:function(){return w(I())}]},[b,S,g,_]);var D=r(d,M[0],M[1]);return y(function(){O.hasValue=!0,O.value=D},[D]),v(D),D},Zo}var fy;function US(){return fy||(fy=1,Ko.exports=DS()),Ko.exports}var LS=US();function wS(l,i){return l===i}function NS(l,i,s=wS){const o=F.useCallback(y=>{if(!l)return()=>{};const{unsubscribe:m}=l.subscribe(y);return m},[l]),r=F.useCallback(()=>l?.get(),[l]);return LS.useSyncExternalStoreWithSelector(o,r,r,i,s)}const ky=F.createContext(null);function He(l){const i=F.useContext(ky);return l?.warn,i}function je(l){const i=He({warn:l?.router===void 0}),s=l?.router||i,o=F.useRef(void 0);return NS(s.__store,r=>{if(l?.select){if(l.structuralSharing??s.options.defaultStructuralSharing){const h=ba(o.current,l.select(r));return o.current=h,h}return l.select(r)}return r})}const gs=F.createContext(void 0),BS=F.createContext(void 0);function Wn(l){const i=F.useContext(l.from?BS:gs);return je({select:o=>{const r=o.matches.find(h=>l.from?l.from===h.routeId:h.id===i);if(Fn(!((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 _r(l){return Wn({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.loaderData):i.loaderData})}function Rr(l){const{select:i,...s}=l;return Wn({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function Er(l){return Wn({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:i=>{const s=l.strict===!1?i.params:i._strictParams;return l.select?l.select(s):s}})}function Tr(l){return Wn({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.search):i.search})}function Mr(l){const i=He();return F.useCallback(s=>i.navigate({...s,from:s.from??l?.from}),[l?.from,i])}function Or(l){return Wn({...l,select:i=>l.select?l.select(i.context):i.context})}var jS=gy();function HS(l,i){const s=He(),o=MS(i),{activeProps:r,inactiveProps:h,activeOptions:y,to:m,preload:v,preloadDelay:d,hashScrollIntoView:b,replace:S,startTransition:g,resetScroll:_,viewTransition:M,children:O,target:D,disabled:w,style:q,className:Y,onClick:X,onBlur:I,onFocus:k,onMouseEnter:G,onMouseLeave:Q,onTouchStart:V,ignoreBlocker:ut,params:tt,search:W,hash:Rt,state:bt,mask:Yt,reloadDocument:L,unsafeRelative:K,from:it,_fromLocation:Et,..._t}=l,T=Py(),H=je({select:xt=>{const Gt=xt.matches[xt.matches.length-1];return{search:Gt?.search,hash:xt.location.hash,path:Gt?.pathname}},structuralSharing:!0}),Z=l.from,J=F.useMemo(()=>({...l,from:Z}),[s,H,Z,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),et=F.useMemo(()=>s.buildLocation({...J}),[s,J]),rt=et.maskedLocation?et.maskedLocation.publicHref:et.publicHref,pt=et.maskedLocation?et.maskedLocation.external:et.external,Ht=F.useMemo(()=>VS(rt,pt,s.history,w),[w,pt,rt,s.history]),Dt=F.useMemo(()=>{if(Ht?.external)return rs(Ht.href,s.protocolAllowlist)?void 0:Ht.href;if(!KS(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),rs(m,s.protocolAllowlist)?void 0:m}catch{}},[m,Ht,s.protocolAllowlist]),ke=je({select:xt=>{if(Dt)return!1;if(y?.exact){if(!X0(xt.location.pathname,et.pathname,s.basepath))return!1}else{const Gt=hs(xt.location.pathname,s.basepath),ne=hs(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}}),Fe=ke?Kn(r,{})??qS:ko,gn=ke?ko:Kn(h,{})??ko,bl=[Y,Fe.className,gn.className].filter(Boolean).join(" "),Xe=(q||Fe.style||gn.style)&&{...q,...Fe.style,...gn.style},[_l,za]=F.useState(!1),zi=F.useRef(!1),We=l.reloadDocument||Dt?!1:v??s.options.defaultPreload,$n=d??s.options.defaultPreloadDelay??0,qe=F.useCallback(()=>{s.preloadRoute({...J,_builtLocation:et}).catch(xt=>{console.warn(xt),console.warn(RS)})},[s,J,et]),Rl=F.useCallback(xt=>{xt?.isIntersecting&&qe()},[qe]);TS(o,Rl,XS,{disabled:!!w||We!=="viewport"}),F.useEffect(()=>{zi.current||!w&&We==="render"&&(qe(),zi.current=!0)},[w,qe,We]);const Ss=xt=>{const Gt=xt.currentTarget.getAttribute("target"),ne=D!==void 0?D:Gt;if(!w&&!ZS(xt)&&!xt.defaultPrevented&&(!ne||ne==="_self")&&xt.button===0){xt.preventDefault(),jS.flushSync(()=>{za(!0)});const Li=s.subscribe("onResolved",()=>{Li(),za(!1)});s.navigate({...J,replace:S,resetScroll:_,hashScrollIntoView:b,startTransition:g,viewTransition:M,ignoreBlocker:ut})}};if(Dt)return{..._t,ref:o,href:Dt,...O&&{children:O},...D&&{target:D},...w&&{disabled:w},...q&&{style:q},...Y&&{className:Y},...X&&{onClick:X},...I&&{onBlur:I},...k&&{onFocus:k},...G&&{onMouseEnter:G},...Q&&{onMouseLeave:Q},...V&&{onTouchStart:V}};const Di=xt=>{if(w||We!=="intent")return;if(!$n){qe();return}const Gt=xt.currentTarget;if(bi.has(Gt))return;const ne=setTimeout(()=>{bi.delete(Gt),qe()},$n);bi.set(Gt,ne)},le=xt=>{w||We!=="intent"||qe()},Ui=xt=>{if(w||!We||!$n)return;const Gt=xt.currentTarget,ne=bi.get(Gt);ne&&(clearTimeout(ne),bi.delete(Gt))};return{..._t,...Fe,...gn,href:Ht?.href,ref:o,onClick:yl([X,Ss]),onBlur:yl([I,Ui]),onFocus:yl([k,Di]),onMouseEnter:yl([G,Di]),onMouseLeave:yl([Q,Ui]),onTouchStart:yl([V,le]),disabled:!!w,target:D,...Xe&&{style:Xe},...bl&&{className:bl},...w&&QS,...ke&&YS,...T&&_l&&GS}}const ko={},qS={className:"active"},QS={role:"link","aria-disabled":!0},YS={"data-status":"active","aria-current":"page"},GS={"data-transitioning":"transitioning"},bi=new WeakMap,XS={rootMargin:"100px"},yl=l=>i=>{for(const s of l)if(s){if(i.defaultPrevented)return;s(i)}};function VS(l,i,s,o){if(!o)return i?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function KS(l){if(typeof l!="string")return!1;const i=l.charCodeAt(0);return i===47?l.charCodeAt(1)!==47:i===46}const Fy=F.forwardRef((l,i)=>{const{_asChild:s,...o}=l,{type:r,...h}=HS(o,i),y=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:m,...v}=h;return F.createElement("a",v,y)}return F.createElement(s,h,y)});function ZS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}class JS extends Jy{constructor(i){super(i),this.useMatch=s=>Wn({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Or({...s,from:this.id}),this.useSearch=s=>Tr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>Er({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Rr({...s,from:this.id}),this.useLoaderData=s=>_r({...s,from:this.id}),this.useNavigate=()=>Mr({from:this.fullPath}),this.Link=Ei.forwardRef((s,o)=>at.jsx(Fy,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function PS(l){return new JS(l)}class kS extends ES{constructor(i){super(i),this.useMatch=s=>Wn({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Or({...s,from:this.id}),this.useSearch=s=>Tr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>Er({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Rr({...s,from:this.id}),this.useLoaderData=s=>_r({...s,from:this.id}),this.useNavigate=()=>Mr({from:this.fullPath}),this.Link=Ei.forwardRef((s,o)=>at.jsx(Fy,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function Sb(l){return new kS(l)}function hy(l){return typeof l=="object"?new dy(l,{silent:!0}).createRoute(l):new dy(l,{silent:!0}).createRoute}class dy{constructor(i,s){this.path=i,this.createRoute=o=>{const r=PS(o);return r.isRoot=!1,r},this.silent=s?.silent}}class my{constructor(i){this.useMatch=s=>Wn({select:s?.select,from:this.options.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Or({...s,from:this.options.id}),this.useSearch=s=>Tr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>Er({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>Rr({...s,from:this.options.id}),this.useLoaderData=s=>_r({...s,from:this.options.id}),this.useNavigate=()=>{const s=He();return Mr({from:s.routesById[this.options.id].fullPath})},this.options=i,this.$$typeof=Symbol.for("react.memo")}}function yy(l){return typeof l=="object"?new my(l):i=>new my({id:l,...i})}function FS(){const l=He(),i=F.useRef({router:l,mounted:!1}),[s,o]=F.useState(!1),{hasPendingMatches:r,isLoading:h}=je({select:S=>({isLoading:S.isLoading,hasPendingMatches:S.matches.some(g=>g.status==="pending")}),structuralSharing:!0}),y=Vo(h),m=h||s||r,v=Vo(m),d=h||r,b=Vo(d);return l.startTransition=S=>{o(!0),F.startTransition(()=>{S(),o(!1)})},F.useEffect(()=>{const S=l.history.subscribe(l.load),g=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return kn(l.latestLocation.publicHref)!==kn(g.publicHref)&&l.commitLocation({...g,replace:!0}),()=>{S()}},[l,l.history]),Iu(()=>{if(typeof window<"u"&&l.ssr||i.current.router===l&&i.current.mounted)return;i.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(g){console.error(g)}})()},[l]),Iu(()=>{y&&!h&&l.emit({type:"onLoad",...Ma(l.state)})},[y,l,h]),Iu(()=>{b&&!d&&l.emit({type:"onBeforeRouteMount",...Ma(l.state)})},[d,b,l]),Iu(()=>{if(v&&!m){const S=Ma(l.state);l.emit({type:"onResolved",...S}),l.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),S.hrefChanged&&I0(l)}},[m,v,l]),null}function WS(l){const i=je({select:s=>`not-found-${s.location.pathname}-${s.status}`});return at.jsx(Sr,{getResetKey:()=>i,onCatch:(s,o)=>{if(se(s))l.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(se(s))return l.fallback?.(s);throw s},children:l.children})}function $S(){return at.jsx("p",{children:"Not Found"})}function pl(l){return at.jsx(at.Fragment,{children:l.children})}function Wy(l,i,s){return i.options.notFoundComponent?at.jsx(i.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?at.jsx(l.options.defaultNotFoundComponent,{...s}):at.jsx($S,{})}function IS(){return He().isScrollRestoring,null}const $y=F.memo(function({matchId:i}){const s=He(),o=je({select:O=>{const D=O.matches.findIndex(q=>q.id===i),w=O.matches[D];return Fn(w),{routeId:w.routeId,ssr:w.ssr,_displayPending:w._displayPending,resetKey:O.loadedAt,parentRouteId:O.matches[D-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,b=o.ssr===!1||o.ssr==="data-only",S=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||b))?F.Suspense:pl,g=m?Sr:pl,_=d?WS:pl,M=r.isRoot?r.options.shellComponent??pl:pl;return at.jsxs(M,{children:[at.jsx(gs.Provider,{value:i,children:at.jsx(S,{fallback:y,children:at.jsx(g,{getResetKey:()=>o.resetKey,errorComponent:m||br,onCatch:(O,D)=>{if(se(O))throw O;v?.(O,D)},children:at.jsx(_,{fallback:O=>{if(!d||O.routeId&&O.routeId!==o.routeId||!O.routeId&&!r.isRoot)throw O;return F.createElement(d,O)},children:b||o._displayPending?at.jsx(CS,{fallback:y,children:at.jsx(py,{matchId:i})}):at.jsx(py,{matchId:i})})})})}),o.parentRouteId===Be&&s.options.scrollRestoration?at.jsxs(at.Fragment,{children:[at.jsx(tb,{}),at.jsx(IS,{})]}):null]})});function tb(){const l=He(),i=F.useRef(void 0);return at.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(i.current===void 0||i.current.href!==l.latestLocation.href)&&(l.emit({type:"onRendered",...Ma(l.state)}),i.current=l.latestLocation)}},l.latestLocation.state.__TSR_key)}const py=F.memo(function({matchId:i}){const s=He(),{match:o,key:r,routeId:h}=je({select:v=>{const d=v.matches.find(M=>M.id===i),b=d.routeId,g=(s.routesById[b].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:b,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:b,match:{id:d.id,status:d.status,error:d.error,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),y=s.routesById[h],m=F.useMemo(()=>{const v=y.options.component??s.options.defaultComponent;return v?at.jsx(v,{},r):at.jsx(eb,{})},[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 b=vl();d._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),d._nonReactive.minPendingPromise=void 0},v)}}throw s.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return Fn(se(o.error)),Wy(s,y,o.error);if(o.status==="redirected")throw Fn(ye(o.error)),s.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return m}),eb=F.memo(function(){const i=He(),s=F.useContext(gs),o=je({select:d=>d.matches.find(b=>b.id===s)?.routeId}),r=i.routesById[o],h=je({select:d=>{const S=d.matches.find(g=>g.id===s);return Fn(S),S.globalNotFound}}),y=je({select:d=>{const b=d.matches,S=b.findIndex(g=>g.id===s);return b[S+1]?.id}}),m=i.options.defaultPendingComponent?at.jsx(i.options.defaultPendingComponent,{}):null;if(h)return Wy(i,r,void 0);if(!y)return null;const v=at.jsx($y,{matchId:y});return o===Be?at.jsx(F.Suspense,{fallback:m,children:v}):v});function nb(){const l=He(),s=l.routesById[Be].options.pendingComponent??l.options.defaultPendingComponent,o=s?at.jsx(s,{}):null,r=typeof document<"u"&&l.ssr?pl:F.Suspense,h=at.jsxs(r,{fallback:o,children:[at.jsx(FS,{}),at.jsx(ab,{})]});return l.options.InnerWrap?at.jsx(l.options.InnerWrap,{children:h}):h}function ab(){const l=He(),i=je({select:r=>r.matches[0]?.id}),s=je({select:r=>r.loadedAt}),o=i?at.jsx($y,{matchId:i}):null;return at.jsx(gs.Provider,{value:i,children:l.options.disableGlobalCatchBoundary?o:at.jsx(Sr,{getResetKey:()=>s,errorComponent:br,onCatch:void 0,children:o})})}const bb=l=>new lb(l);class lb extends yS{constructor(i){super(i)}}typeof globalThis<"u"?(globalThis.createFileRoute=hy,globalThis.createLazyFileRoute=yy):typeof window<"u"&&(window.createFileRoute=hy,window.createLazyFileRoute=yy);function ib({router:l,children:i,...s}){Object.keys(s).length>0&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=at.jsx(ky.Provider,{value:l,children:i});return l.options.Wrap?at.jsx(l.options.Wrap,{children:o}):o}function _b({router:l,...i}){return at.jsx(ib,{router:l,...i,children:at.jsx(nb,{})})}const ub="modulepreload",sb=function(l){return"/"+l},vy={},Rb=function(i,s,o){let r=Promise.resolve();if(s&&s.length>0){let v=function(d){return Promise.all(d.map(b=>Promise.resolve(b).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),m=y?.nonce||y?.getAttribute("nonce");r=v(s.map(d=>{if(d=sb(d),d in vy)return;vy[d]=!0;const b=d.endsWith(".css"),S=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${S}`))return;const g=document.createElement("link");if(g.rel=b?"stylesheet":ub,b||(g.as="script"),g.crossOrigin="",g.href=d,m&&g.setAttribute("nonce",m),document.head.appendChild(g),b)return new Promise((_,M)=>{g.addEventListener("load",_),g.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 i().catch(h)})};export{eb as O,fb as Q,Ei as R,Rb as _,zy as a,mb as b,cb as c,yb as d,ob as e,Sb as f,vg as g,hy as h,uS as i,at as j,Mr as k,bb as l,hb as m,_b as n,rb as o,F as r,db as u};
|