@ottocode/web-ui 0.1.259 → 0.1.261

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.
@@ -1,9 +0,0 @@
1
- var ZS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ug(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function JS(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 Eo={exports:{}},fi={};var cm;function sg(){if(cm)return fi;cm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,r,h){var d=null;if(h!==void 0&&(d=""+h),r.key!==void 0&&(d=""+r.key),"key"in r){h={};for(var p in r)p!=="key"&&(h[p]=r[p])}else h=r;return r=h.ref,{$$typeof:l,type:o,key:d,ref:r!==void 0?r:null,props:h}}return fi.Fragment=i,fi.jsx=s,fi.jsxs=s,fi}var om;function cg(){return om||(om=1,Eo.exports=sg()),Eo.exports}var lt=cg(),To={exports:{}},ut={};var rm;function og(){if(rm)return ut;rm=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"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function _(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,L={};function D(M,j,K){this.props=M,this.context=j,this.refs=L,this.updater=K||E}D.prototype.isReactComponent={},D.prototype.setState=function(M,j){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,j,"setState")},D.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function Q(){}Q.prototype=D.prototype;function X(M,j,K){this.props=M,this.context=j,this.refs=L,this.updater=K||E}var G=X.prototype=new Q;G.constructor=X,O(G,D.prototype),G.isPureReactComponent=!0;var $=Array.isArray;function J(){}var q={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function Z(M,j,K){var P=K.ref;return{$$typeof:l,type:M,key:j,ref:P!==void 0?P:null,props:K}}function et(M,j){return Z(M.type,j,M.props)}function W(M){return typeof M=="object"&&M!==null&&M.$$typeof===l}function ct(M){var j={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(K){return j[K]})}var vt=/\/+/g;function Ht(M,j){return typeof M=="object"&&M!==null&&M.key!=null?ct(""+M.key):j.toString(36)}function Dt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(J,J):(M.status="pending",M.then(function(j){M.status==="pending"&&(M.status="fulfilled",M.value=j)},function(j){M.status==="pending"&&(M.status="rejected",M.reason=j)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function w(M,j,K,P,tt){var rt=typeof M;(rt==="undefined"||rt==="boolean")&&(M=null);var pt=!1;if(M===null)pt=!0;else switch(rt){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(M.$$typeof){case l:case i:pt=!0;break;case S:return pt=M._init,w(pt(M._payload),j,K,P,tt)}}if(pt)return tt=tt(M),pt=P===""?"."+Ht(M,0):P,$(tt)?(K="",pt!=null&&(K=pt.replace(vt,"$&/")+"/"),w(tt,j,K,"",function(Pe){return Pe})):tt!=null&&(W(tt)&&(tt=et(tt,K+(tt.key==null||M&&M.key===tt.key?"":(""+tt.key).replace(vt,"$&/")+"/")+pt)),j.push(tt)),1;pt=0;var qt=P===""?".":P+":";if($(M))for(var At=0;At<M.length;At++)P=M[At],rt=qt+Ht(P,At),pt+=w(P,j,K,rt,tt);else if(At=_(M),typeof At=="function")for(M=At.call(M),At=0;!(P=M.next()).done;)P=P.value,rt=qt+Ht(P,At++),pt+=w(P,j,K,rt,tt);else if(rt==="object"){if(typeof M.then=="function")return w(Dt(M),j,K,P,tt);throw j=String(M),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return pt}function V(M,j,K){if(M==null)return M;var P=[],tt=0;return w(M,P,"","",function(rt){return j.call(K,rt,tt++)}),P}function at(M){if(M._status===-1){var j=M._result;j=j(),j.then(function(K){(M._status===0||M._status===-1)&&(M._status=1,M._result=K)},function(K){(M._status===0||M._status===-1)&&(M._status=2,M._result=K)}),M._status===-1&&(M._status=0,M._result=j)}if(M._status===1)return M._result.default;throw M._result}var bt=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Rt={map:V,forEach:function(M,j,K){V(M,function(){j.apply(this,arguments)},K)},count:function(M){var j=0;return V(M,function(){j++}),j},toArray:function(M){return V(M,function(j){return j})||[]},only:function(M){if(!W(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ut.Activity=g,ut.Children=Rt,ut.Component=D,ut.Fragment=s,ut.Profiler=r,ut.PureComponent=X,ut.StrictMode=o,ut.Suspense=y,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,ut.__COMPILER_RUNTIME={__proto__:null,c:function(M){return q.H.useMemoCache(M)}},ut.cache=function(M){return function(){return M.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(M,j,K){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var P=O({},M.props),tt=M.key;if(j!=null)for(rt in j.key!==void 0&&(tt=""+j.key),j)!Y.call(j,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&j.ref===void 0||(P[rt]=j[rt]);var rt=arguments.length-2;if(rt===1)P.children=K;else if(1<rt){for(var pt=Array(rt),qt=0;qt<rt;qt++)pt[qt]=arguments[qt+2];P.children=pt}return Z(M.type,tt,P)},ut.createContext=function(M){return M={$$typeof:d,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:h,_context:M},M},ut.createElement=function(M,j,K){var P,tt={},rt=null;if(j!=null)for(P in j.key!==void 0&&(rt=""+j.key),j)Y.call(j,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(tt[P]=j[P]);var pt=arguments.length-2;if(pt===1)tt.children=K;else if(1<pt){for(var qt=Array(pt),At=0;At<pt;At++)qt[At]=arguments[At+2];tt.children=qt}if(M&&M.defaultProps)for(P in pt=M.defaultProps,pt)tt[P]===void 0&&(tt[P]=pt[P]);return Z(M,rt,tt)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(M){return{$$typeof:p,render:M}},ut.isValidElement=W,ut.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:at}},ut.memo=function(M,j){return{$$typeof:m,type:M,compare:j===void 0?null:j}},ut.startTransition=function(M){var j=q.T,K={};q.T=K;try{var P=M(),tt=q.S;tt!==null&&tt(K,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(J,bt)}catch(rt){bt(rt)}finally{j!==null&&K.types!==null&&(j.types=K.types),q.T=j}},ut.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},ut.use=function(M){return q.H.use(M)},ut.useActionState=function(M,j,K){return q.H.useActionState(M,j,K)},ut.useCallback=function(M,j){return q.H.useCallback(M,j)},ut.useContext=function(M){return q.H.useContext(M)},ut.useDebugValue=function(){},ut.useDeferredValue=function(M,j){return q.H.useDeferredValue(M,j)},ut.useEffect=function(M,j){return q.H.useEffect(M,j)},ut.useEffectEvent=function(M){return q.H.useEffectEvent(M)},ut.useId=function(){return q.H.useId()},ut.useImperativeHandle=function(M,j,K){return q.H.useImperativeHandle(M,j,K)},ut.useInsertionEffect=function(M,j){return q.H.useInsertionEffect(M,j)},ut.useLayoutEffect=function(M,j){return q.H.useLayoutEffect(M,j)},ut.useMemo=function(M,j){return q.H.useMemo(M,j)},ut.useOptimistic=function(M,j){return q.H.useOptimistic(M,j)},ut.useReducer=function(M,j,K){return q.H.useReducer(M,j,K)},ut.useRef=function(M){return q.H.useRef(M)},ut.useState=function(M){return q.H.useState(M)},ut.useSyncExternalStore=function(M,j,K){return q.H.useSyncExternalStore(M,j,K)},ut.useTransition=function(){return q.H.useTransition()},ut.version="19.2.0",ut}var fm;function Mi(){return fm||(fm=1,To.exports=og()),To.exports}var k=Mi();const gi=ug(k);var Mo={exports:{}},hi={},Oo={exports:{}},Co={};var hm;function rg(){return hm||(hm=1,(function(l){function i(w,V){var at=w.length;w.push(V);t:for(;0<at;){var bt=at-1>>>1,Rt=w[bt];if(0<r(Rt,V))w[bt]=V,w[at]=Rt,at=bt;else break t}}function s(w){return w.length===0?null:w[0]}function o(w){if(w.length===0)return null;var V=w[0],at=w.pop();if(at!==V){w[0]=at;t:for(var bt=0,Rt=w.length,M=Rt>>>1;bt<M;){var j=2*(bt+1)-1,K=w[j],P=j+1,tt=w[P];if(0>r(K,at))P<Rt&&0>r(tt,K)?(w[bt]=tt,w[P]=at,bt=P):(w[bt]=K,w[j]=at,bt=j);else if(P<Rt&&0>r(tt,at))w[bt]=tt,w[P]=at,bt=P;else break t}}return V}function r(w,V){var at=w.sortIndex-V.sortIndex;return at!==0?at:w.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var d=Date,p=d.now();l.unstable_now=function(){return d.now()-p}}var y=[],m=[],S=1,g=null,b=3,_=!1,E=!1,O=!1,L=!1,D=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function G(w){for(var V=s(m);V!==null;){if(V.callback===null)o(m);else if(V.startTime<=w)o(m),V.sortIndex=V.expirationTime,i(y,V);else break;V=s(m)}}function $(w){if(O=!1,G(w),!E)if(s(y)!==null)E=!0,J||(J=!0,ct());else{var V=s(m);V!==null&&Dt($,V.startTime-w)}}var J=!1,q=-1,Y=5,Z=-1;function et(){return L?!0:!(l.unstable_now()-Z<Y)}function W(){if(L=!1,J){var w=l.unstable_now();Z=w;var V=!0;try{t:{E=!1,O&&(O=!1,Q(q),q=-1),_=!0;var at=b;try{e:{for(G(w),g=s(y);g!==null&&!(g.expirationTime>w&&et());){var bt=g.callback;if(typeof bt=="function"){g.callback=null,b=g.priorityLevel;var Rt=bt(g.expirationTime<=w);if(w=l.unstable_now(),typeof Rt=="function"){g.callback=Rt,G(w),V=!0;break e}g===s(y)&&o(y),G(w)}else o(y);g=s(y)}if(g!==null)V=!0;else{var M=s(m);M!==null&&Dt($,M.startTime-w),V=!1}}break t}finally{g=null,b=at,_=!1}V=void 0}}finally{V?ct():J=!1}}}var ct;if(typeof X=="function")ct=function(){X(W)};else if(typeof MessageChannel<"u"){var vt=new MessageChannel,Ht=vt.port2;vt.port1.onmessage=W,ct=function(){Ht.postMessage(null)}}else ct=function(){D(W,0)};function Dt(w,V){q=D(function(){w(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(w){w.callback=null},l.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<w?Math.floor(1e3/w):5},l.unstable_getCurrentPriorityLevel=function(){return b},l.unstable_next=function(w){switch(b){case 1:case 2:case 3:var V=3;break;default:V=b}var at=b;b=V;try{return w()}finally{b=at}},l.unstable_requestPaint=function(){L=!0},l.unstable_runWithPriority=function(w,V){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var at=b;b=w;try{return V()}finally{b=at}},l.unstable_scheduleCallback=function(w,V,at){var bt=l.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?bt+at:bt):at=bt,w){case 1:var Rt=-1;break;case 2:Rt=250;break;case 5:Rt=1073741823;break;case 4:Rt=1e4;break;default:Rt=5e3}return Rt=at+Rt,w={id:S++,callback:V,priorityLevel:w,startTime:at,expirationTime:Rt,sortIndex:-1},at>bt?(w.sortIndex=at,i(m,w),s(y)===null&&w===s(m)&&(O?(Q(q),q=-1):O=!0,Dt($,at-bt))):(w.sortIndex=Rt,i(y,w),E||_||(E=!0,J||(J=!0,ct()))),w},l.unstable_shouldYield=et,l.unstable_wrapCallback=function(w){var V=b;return function(){var at=b;b=V;try{return w.apply(this,arguments)}finally{b=at}}}})(Co)),Co}var dm;function fg(){return dm||(dm=1,Oo.exports=rg()),Oo.exports}var Ao={exports:{}},ae={};var mm;function hg(){if(mm)return ae;mm=1;var l=Mi();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)m+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+m+" 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(y,m,S){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:g==null?null:""+g,children:y,containerInfo:m,implementation:S}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(y,m){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return h(y,m,null,S)},ae.flushSync=function(y){var m=d.T,S=o.p;try{if(d.T=null,o.p=2,y)return y()}finally{d.T=m,o.p=S,o.d.f()}},ae.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(y,m))},ae.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},ae.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var S=m.as,g=p(S,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;S==="style"?o.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:_}):S==="script"&&o.d.X(y,{crossOrigin:g,integrity:b,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ae.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var S=p(m.as,m.crossOrigin);o.d.M(y,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(y)},ae.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var S=m.as,g=p(S,m.crossOrigin);o.d.L(y,S,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ae.preloadModule=function(y,m){if(typeof y=="string")if(m){var S=p(m.as,m.crossOrigin);o.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(y)},ae.requestFormReset=function(y){o.d.r(y)},ae.unstable_batchedUpdates=function(y,m){return y(m)},ae.useFormState=function(y,m,S){return d.H.useFormState(y,m,S)},ae.useFormStatus=function(){return d.H.useHostTransitionStatus()},ae.version="19.2.0",ae}var ym;function ey(){if(ym)return Ao.exports;ym=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(),Ao.exports=hg(),Ao.exports}var vm;function dg(){if(vm)return hi;vm=1;var l=fg(),i=Mi(),s=ey();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 d(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 p(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 y(t){if(h(t)!==t)throw Error(o(188))}function m(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 y(u),t;if(c===a)return y(u),e;c=c.sibling}throw Error(o(188))}if(n.return!==a.return)n=u,a=c;else{for(var f=!1,v=u.child;v;){if(v===n){f=!0,n=u,a=c;break}if(v===a){f=!0,a=u,n=c;break}v=v.sibling}if(!f){for(v=c.child;v;){if(v===n){f=!0,n=c,a=u;break}if(v===a){f=!0,a=c,n=u;break}v=v.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 S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function ct(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var vt=Symbol.for("react.client.reference");function Ht(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===vt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case D:return"Profiler";case L:return"StrictMode";case $:return"Suspense";case J:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case X:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q:return e=t.displayName||null,e!==null?e:Ht(t.type)||"Memo";case Y:e=t._payload,t=t._init;try{return Ht(t(e))}catch{}}return null}var Dt=Array.isArray,w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at={pending:!1,data:null,method:null,action:null},bt=[],Rt=-1;function M(t){return{current:t}}function j(t){0>Rt||(t.current=bt[Rt],bt[Rt]=null,Rt--)}function K(t,e){Rt++,bt[Rt]=t.current,t.current=e}var P=M(null),tt=M(null),rt=M(null),pt=M(null);function qt(t,e){switch(K(rt,e),K(tt,t),K(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Dd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Dd(e),t=Ud(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(P),K(P,t)}function At(){j(P),j(tt),j(rt)}function Pe(t){t.memoizedState!==null&&K(pt,t);var e=P.current,n=Ud(e,t.type);e!==n&&(K(tt,t),K(P,n))}function Fe(t){tt.current===t&&(j(P),j(tt)),pt.current===t&&(j(pt),si._currentValue=at)}var pn,vl;function Ye(t){if(pn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);pn=e&&e[1]||"",vl=-1<n.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+pn+t+vl}var pl=!1;function Ta(t,e){if(!t||pl)return"";pl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(U){var z=U}Reflect.construct(t,[],H)}else{try{H.call()}catch(U){z=U}t.call(H.prototype)}}else{try{throw Error()}catch(U){z=U}(H=t())&&typeof H.catch=="function"&&H.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],v=c[1];if(f&&v){var R=f.split(`
4
- `),x=v.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{pl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ye(n):""}function Oi(t,e){switch(t.tag){case 26:case 27:case 5:return Ye(t.type);case 16:return Ye("Lazy");case 13:return t.child!==e&&e!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return Ta(t.type,!1);case 11:return Ta(t.type.render,!1);case 1:return Ta(t.type,!0);case 31:return Ye("Activity");default:return""}}function ke(t){try{var e="",n=null;do e+=Oi(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var kn=Object.prototype.hasOwnProperty,je=l.unstable_scheduleCallback,gl=l.unstable_cancelCallback,Ci=l.unstable_shouldYield,os=l.unstable_requestPaint,ne=l.unstable_now,zt=l.unstable_getCurrentPriorityLevel,kt=l.unstable_ImmediatePriority,Ge=l.unstable_UserBlockingPriority,Ma=l.unstable_NormalPriority,Yy=l.unstable_LowPriority,rr=l.unstable_IdlePriority,Gy=l.log,Xy=l.unstable_setDisableYieldValue,Sl=null,ye=null;function gn(t){if(typeof Gy=="function"&&Xy(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(Sl,t)}catch{}}var ve=Math.clz32?Math.clz32:Zy,Vy=Math.log,Ky=Math.LN2;function Zy(t){return t>>>=0,t===0?32:31-(Vy(t)/Ky|0)|0}var Ai=256,xi=262144,zi=4194304;function Wn(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 Di(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 v=a&134217727;return v!==0?(a=v&~c,a!==0?u=Wn(a):(f&=v,f!==0?u=Wn(f):n||(n=v&~t,n!==0&&(u=Wn(n))))):(v=a&~c,v!==0?u=Wn(v):f!==0?u=Wn(f):n||(n=a&~t,n!==0&&(u=Wn(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 bl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Jy(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 fr(){var t=zi;return zi<<=1,(zi&62914560)===0&&(zi=4194304),t}function rs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function _l(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Py(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 v=t.entanglements,R=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var N=31-ve(n),H=1<<N;v[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&=~H}a!==0&&hr(t,a,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function hr(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 dr(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 mr(t,e){var n=e&-e;return n=(n&42)!==0?1:fs(n),(n&(t.suspendedLanes|e))!==0?0:n}function fs(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 hs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function yr(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:em(t.type))}function vr(t,e){var n=V.p;try{return V.p=t,e()}finally{V.p=n}}var Sn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Sn,se="__reactProps$"+Sn,Oa="__reactContainer$"+Sn,ds="__reactEvents$"+Sn,Fy="__reactListeners$"+Sn,ky="__reactHandles$"+Sn,pr="__reactResources$"+Sn,Rl="__reactMarker$"+Sn;function ms(t){delete t[Wt],delete t[se],delete t[ds],delete t[Fy],delete t[ky]}function Ca(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Oa]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=qd(t);t!==null;){if(n=t[Wt])return n;t=qd(t)}return e}t=n,n=t.parentNode}return null}function Aa(t){if(t=t[Wt]||t[Oa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function El(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function xa(t){var e=t[pr];return e||(e=t[pr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[Rl]=!0}var gr=new Set,Sr={};function In(t,e){za(t,e),za(t+"Capture",e)}function za(t,e){for(Sr[t]=e,t=0;t<e.length;t++)gr.add(e[t])}var Wy=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]*$"),br={},_r={};function Iy(t){return kn.call(_r,t)?!0:kn.call(br,t)?!1:Wy.test(t)?_r[t]=!0:(br[t]=!0,!1)}function Ui(t,e,n){if(Iy(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 Li(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 We(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Rr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function $y(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 ys(t){if(!t._valueTracker){var e=Rr(t)?"checked":"value";t._valueTracker=$y(t,e,""+t[e])}}function Er(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Rr(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function wi(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 tv=/[\n"\\]/g;function Ce(t){return t.replace(tv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vs(t,e,n,a,u,c,f,v){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?ps(t,f,Oe(e)):n!=null?ps(t,f,Oe(n)):a!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Oe(v):t.removeAttribute("name")}function Tr(t,e,n,a,u,c,f,v){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)){ys(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=v?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ys(t)}function ps(t,e,n){e==="number"&&wi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Da(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=""+Oe(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 Mr(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function Or(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Dt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),ys(t)}function Ua(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ev=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 Cr(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||ev.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Ar(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&&Cr(t,u,a)}else for(var c in e)e.hasOwnProperty(c)&&Cr(t,c,e[c])}function gs(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 nv=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"]]),av=/^[\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 Ni(t){return av.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ie(){}var Ss=null;function bs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var La=null,wa=null;function xr(t){var e=Aa(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(vs(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var u=a[se]||null;if(!u)throw Error(o(90));vs(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&&Er(a)}break t;case"textarea":Mr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Da(t,!!n.multiple,e,!1)}}}var _s=!1;function zr(t,e,n){if(_s)return t(e,n);_s=!0;try{var a=t(e);return a}finally{if(_s=!1,(La!==null||wa!==null)&&(Ru(),La&&(e=La,t=wa,wa=La=null,xr(e),t)))for(e=0;e<t.length;e++)xr(t[e])}}function Tl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[se]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var $e=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rs=!1;if($e)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Rs=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Rs=!1}var bn=null,Es=null,Bi=null;function Dr(){if(Bi)return Bi;var t,e=Es,n=e.length,a,u="value"in bn?bn.value:bn.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 Bi=u.slice(t,1<a?1-a:void 0)}function ji(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 Hi(){return!0}function Ur(){return!1}function ce(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 v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Hi:Ur,this.isPropagationStopped=Ur,this}return g(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=Hi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),e}var $n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qi=ce($n),Ol=g({},$n,{view:0,detail:0}),lv=ce(Ol),Ts,Ms,Cl,Qi=g({},Ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cs,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!==Cl&&(Cl&&t.type==="mousemove"?(Ts=t.screenX-Cl.screenX,Ms=t.screenY-Cl.screenY):Ms=Ts=0,Cl=t),Ts)},movementY:function(t){return"movementY"in t?t.movementY:Ms}}),Lr=ce(Qi),iv=g({},Qi,{dataTransfer:0}),uv=ce(iv),sv=g({},Ol,{relatedTarget:0}),Os=ce(sv),cv=g({},$n,{animationName:0,elapsedTime:0,pseudoElement:0}),ov=ce(cv),rv=g({},$n,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),fv=ce(rv),hv=g({},$n,{data:0}),wr=ce(hv),dv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mv={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"},yv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=yv[t])?!!e[t]:!1}function Cs(){return vv}var pv=g({},Ol,{key:function(t){if(t.key){var e=dv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ji(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?mv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cs,charCode:function(t){return t.type==="keypress"?ji(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ji(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),gv=ce(pv),Sv=g({},Qi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nr=ce(Sv),bv=g({},Ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cs}),_v=ce(bv),Rv=g({},$n,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ev=ce(Rv),Tv=g({},Qi,{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}),Mv=ce(Tv),Ov=g({},$n,{newState:0,oldState:0}),Cv=ce(Ov),Av=[9,13,27,32],As=$e&&"CompositionEvent"in window,Al=null;$e&&"documentMode"in document&&(Al=document.documentMode);var xv=$e&&"TextEvent"in window&&!Al,Br=$e&&(!As||Al&&8<Al&&11>=Al),jr=" ",Hr=!1;function qr(t,e){switch(t){case"keyup":return Av.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Na=!1;function zv(t,e){switch(t){case"compositionend":return Qr(e);case"keypress":return e.which!==32?null:(Hr=!0,jr);case"textInput":return t=e.data,t===jr&&Hr?null:t;default:return null}}function Dv(t,e){if(Na)return t==="compositionend"||!As&&qr(t,e)?(t=Dr(),Bi=Es=bn=null,Na=!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 Br&&e.locale!=="ko"?null:e.data;default:return null}}var Uv={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 Yr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Uv[t.type]:e==="textarea"}function Gr(t,e,n,a){La?wa?wa.push(a):wa=[a]:La=a,e=xu(e,"onChange"),0<e.length&&(n=new qi("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var xl=null,zl=null;function Lv(t){Md(t,0)}function Yi(t){var e=El(t);if(Er(e))return t}function Xr(t,e){if(t==="change")return e}var Vr=!1;if($e){var xs;if($e){var zs="oninput"in document;if(!zs){var Kr=document.createElement("div");Kr.setAttribute("oninput","return;"),zs=typeof Kr.oninput=="function"}xs=zs}else xs=!1;Vr=xs&&(!document.documentMode||9<document.documentMode)}function Zr(){xl&&(xl.detachEvent("onpropertychange",Jr),zl=xl=null)}function Jr(t){if(t.propertyName==="value"&&Yi(zl)){var e=[];Gr(e,zl,t,bs(t)),zr(Lv,e)}}function wv(t,e,n){t==="focusin"?(Zr(),xl=e,zl=n,xl.attachEvent("onpropertychange",Jr)):t==="focusout"&&Zr()}function Nv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Yi(zl)}function Bv(t,e){if(t==="click")return Yi(e)}function jv(t,e){if(t==="input"||t==="change")return Yi(e)}function Hv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:Hv;function Dl(t,e){if(pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!kn.call(e,u)||!pe(t[u],e[u]))return!1}return!0}function Pr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Fr(t,e){var n=Pr(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=Pr(n)}}function kr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?kr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Wr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=wi(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=wi(t.document)}return e}function Ds(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 qv=$e&&"documentMode"in document&&11>=document.documentMode,Ba=null,Us=null,Ul=null,Ls=!1;function Ir(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ls||Ba==null||Ba!==wi(a)||(a=Ba,"selectionStart"in a&&Ds(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}),Ul&&Dl(Ul,a)||(Ul=a,a=xu(Us,"onSelect"),0<a.length&&(e=new qi("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Ba)))}function ta(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ja={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionrun:ta("Transition","TransitionRun"),transitionstart:ta("Transition","TransitionStart"),transitioncancel:ta("Transition","TransitionCancel"),transitionend:ta("Transition","TransitionEnd")},ws={},$r={};$e&&($r=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);function ea(t){if(ws[t])return ws[t];if(!ja[t])return t;var e=ja[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in $r)return ws[t]=e[n];return t}var tf=ea("animationend"),ef=ea("animationiteration"),nf=ea("animationstart"),Qv=ea("transitionrun"),Yv=ea("transitionstart"),Gv=ea("transitioncancel"),af=ea("transitionend"),lf=new Map,Ns="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(" ");Ns.push("scrollEnd");function He(t,e){lf.set(t,e),In(e,[t])}var Gi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],Ha=0,Bs=0;function Xi(){for(var t=Ha,e=Bs=Ha=0;e<t;){var n=Ae[e];Ae[e++]=null;var a=Ae[e];Ae[e++]=null;var u=Ae[e];Ae[e++]=null;var c=Ae[e];if(Ae[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&&uf(n,u,c)}}function Vi(t,e,n,a){Ae[Ha++]=t,Ae[Ha++]=e,Ae[Ha++]=n,Ae[Ha++]=a,Bs|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function js(t,e,n,a){return Vi(t,e,n,a),Ki(t)}function na(t,e){return Vi(t,null,null,e),Ki(t)}function uf(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 Ki(t){if(50<ti)throw ti=0,Zc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var qa={};function Xv(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ge(t,e,n,a){return new Xv(t,e,n,a)}function Hs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function sf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Zi(t,e,n,a,u,c){var f=0;if(a=t,typeof t=="function")Hs(t)&&(f=1);else if(typeof t=="string")f=Pp(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=ge(31,n,e,u),t.elementType=Z,t.lanes=c,t;case O:return aa(n.children,u,c,e);case L:f=8,u|=24;break;case D:return t=ge(12,n,e,u|2),t.elementType=D,t.lanes=c,t;case $:return t=ge(13,n,e,u),t.elementType=$,t.lanes=c,t;case J:return t=ge(19,n,e,u),t.elementType=J,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case Q:f=9;break t;case G:f=11;break t;case q:f=14;break t;case Y:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ge(f,n,e,u),e.elementType=t,e.type=a,e.lanes=c,e}function aa(t,e,n,a){return t=ge(7,t,a,e),t.lanes=n,t}function qs(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function cf(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function Qs(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var of=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=of.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ke(e)},of.set(t,e),e)}return{value:t,source:e,stack:ke(e)}}var Qa=[],Ya=0,Ji=null,Ll=0,ze=[],De=0,_n=null,Xe=1,Ve="";function en(t,e){Qa[Ya++]=Ll,Qa[Ya++]=Ji,Ji=t,Ll=e}function rf(t,e,n){ze[De++]=Xe,ze[De++]=Ve,ze[De++]=_n,_n=t;var a=Xe;t=Ve;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,Xe=1<<32-ve(e)+u|n<<u|a,Ve=c+t}else Xe=1<<c|n<<u|a,Ve=t}function Ys(t){t.return!==null&&(en(t,1),rf(t,1,0))}function Gs(t){for(;t===Ji;)Ji=Qa[--Ya],Qa[Ya]=null,Ll=Qa[--Ya],Qa[Ya]=null;for(;t===_n;)_n=ze[--De],ze[De]=null,Ve=ze[--De],ze[De]=null,Xe=ze[--De],ze[De]=null}function ff(t,e){ze[De++]=Xe,ze[De++]=Ve,ze[De++]=_n,Xe=e.id,Ve=e.overflow,_n=t}var It=null,Ut=null,yt=!1,Rn=null,Ue=!1,Xs=Error(o(519));function En(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wl(xe(e,t)),Xs}function hf(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[se]=a,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<ni.length;n++)ht(ni[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),Tr(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),Or(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||xd(e.textContent,n)?(a.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),a.onScroll!=null&&ht("scroll",e),a.onScrollEnd!=null&&ht("scrollend",e),a.onClick!=null&&(e.onclick=Ie),e=!0):e=!1,e||En(t,!0)}function df(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:It=It.return}}function Ga(t){if(t!==It)return!1;if(!yt)return df(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")||so(t.type,t.memoizedProps)),n=!n),n&&Ut&&En(t),df(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Hd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Hd(t)}else e===27?(e=Ut,jn(t.type)?(t=ho,ho=null,Ut=t):Ut=e):Ut=It?we(t.stateNode.nextSibling):null;return!0}function la(){Ut=It=null,yt=!1}function Vs(){var t=Rn;return t!==null&&(he===null?he=t:he.push.apply(he,t),Rn=null),t}function wl(t){Rn===null?Rn=[t]:Rn.push(t)}var Ks=M(null),ia=null,nn=null;function Tn(t,e,n){K(Ks,e._currentValue),e._currentValue=n}function an(t){t._currentValue=Ks.current,j(Ks)}function Zs(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 Js(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 v=c;c=u;for(var R=0;R<e.length;R++)if(v.context===e[R]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),Zs(c.return,n,t),a||(f=null);break t}c=v.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),Zs(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 Xa(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 v=u.type;pe(u.pendingProps.value,f.value)||(t!==null?t.push(v):t=[v])}}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(si):t=[si])}u=u.return}t!==null&&Js(e,t,n,a),e.flags|=262144}function Pi(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ua(t){ia=t,nn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return mf(ia,t)}function Fi(t,e){return ia===null&&ua(t),mf(t,e)}function mf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},nn===null){if(t===null)throw Error(o(308));nn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else nn=nn.next=e;return n}var Vv=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()})}},Kv=l.unstable_scheduleCallback,Zv=l.unstable_NormalPriority,Gt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ps(){return{controller:new Vv,data:new Map,refCount:0}}function Nl(t){t.refCount--,t.refCount===0&&Kv(Zv,function(){t.controller.abort()})}var Bl=null,Fs=0,Va=0,Ka=null;function Jv(t,e){if(Bl===null){var n=Bl=[];Fs=0,Va=Ic(),Ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Fs++,e.then(yf,yf),e}function yf(){if(--Fs===0&&Bl!==null){Ka!==null&&(Ka.status="fulfilled");var t=Bl;Bl=null,Va=0,Ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Pv(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 vf=w.S;w.S=function(t,e){$h=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Jv(t,e),vf!==null&&vf(t,e)};var sa=M(null);function ks(){var t=sa.current;return t!==null?t:xt.pooledCache}function ki(t,e){e===null?K(sa,sa.current):K(sa,e.pool)}function pf(){var t=ks();return t===null?null:{parent:Gt._currentValue,pool:t}}var Za=Error(o(460)),Ws=Error(o(474)),Wi=Error(o(542)),Ii={then:function(){}};function gf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Sf(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,_f(t),t;default:if(typeof e.status=="string")e.then(Ie,Ie);else{if(t=xt,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,_f(t),t}throw oa=e,Za}}function ca(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(oa=n,Za):n}}var oa=null;function bf(){if(oa===null)throw Error(o(459));var t=oa;return oa=null,t}function _f(t){if(t===Za||t===Wi)throw Error(o(483))}var Ja=null,jl=0;function $i(t){var e=jl;return jl+=1,Ja===null&&(Ja=[]),Sf(Ja,t,e)}function Hl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function tu(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Rf(t){function e(C,T){if(t){var A=C.deletions;A===null?(C.deletions=[T],C.flags|=16):A.push(T)}}function n(C,T){if(!t)return null;for(;T!==null;)e(C,T),T=T.sibling;return null}function a(C){for(var T=new Map;C!==null;)C.key!==null?T.set(C.key,C):T.set(C.index,C),C=C.sibling;return T}function u(C,T){return C=tn(C,T),C.index=0,C.sibling=null,C}function c(C,T,A){return C.index=A,t?(A=C.alternate,A!==null?(A=A.index,A<T?(C.flags|=67108866,T):A):(C.flags|=67108866,T)):(C.flags|=1048576,T)}function f(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function v(C,T,A,B){return T===null||T.tag!==6?(T=qs(A,C.mode,B),T.return=C,T):(T=u(T,A),T.return=C,T)}function R(C,T,A,B){var nt=A.type;return nt===O?N(C,T,A.props.children,B,A.key):T!==null&&(T.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Y&&ca(nt)===T.type)?(T=u(T,A.props),Hl(T,A),T.return=C,T):(T=Zi(A.type,A.key,A.props,null,C.mode,B),Hl(T,A),T.return=C,T)}function x(C,T,A,B){return T===null||T.tag!==4||T.stateNode.containerInfo!==A.containerInfo||T.stateNode.implementation!==A.implementation?(T=Qs(A,C.mode,B),T.return=C,T):(T=u(T,A.children||[]),T.return=C,T)}function N(C,T,A,B,nt){return T===null||T.tag!==7?(T=aa(A,C.mode,B,nt),T.return=C,T):(T=u(T,A),T.return=C,T)}function H(C,T,A){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=qs(""+T,C.mode,A),T.return=C,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case _:return A=Zi(T.type,T.key,T.props,null,C.mode,A),Hl(A,T),A.return=C,A;case E:return T=Qs(T,C.mode,A),T.return=C,T;case Y:return T=ca(T),H(C,T,A)}if(Dt(T)||ct(T))return T=aa(T,C.mode,A,null),T.return=C,T;if(typeof T.then=="function")return H(C,$i(T),A);if(T.$$typeof===X)return H(C,Fi(C,T),A);tu(C,T)}return null}function z(C,T,A,B){var nt=T!==null?T.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:v(C,T,""+A,B);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?R(C,T,A,B):null;case E:return A.key===nt?x(C,T,A,B):null;case Y:return A=ca(A),z(C,T,A,B)}if(Dt(A)||ct(A))return nt!==null?null:N(C,T,A,B,null);if(typeof A.then=="function")return z(C,T,$i(A),B);if(A.$$typeof===X)return z(C,T,Fi(C,A),B);tu(C,A)}return null}function U(C,T,A,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return C=C.get(A)||null,v(T,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(T,C,B,nt);case E:return C=C.get(B.key===null?A:B.key)||null,x(T,C,B,nt);case Y:return B=ca(B),U(C,T,A,B,nt)}if(Dt(B)||ct(B))return C=C.get(A)||null,N(T,C,B,nt,null);if(typeof B.then=="function")return U(C,T,A,$i(B),nt);if(B.$$typeof===X)return U(C,T,A,Fi(T,B),nt);tu(T,B)}return null}function F(C,T,A,B){for(var nt=null,gt=null,I=T,ot=T=0,mt=null;I!==null&&ot<A.length;ot++){I.index>ot?(mt=I,I=null):mt=I.sibling;var St=z(C,I,A[ot],B);if(St===null){I===null&&(I=mt);break}t&&I&&St.alternate===null&&e(C,I),T=c(St,T,ot),gt===null?nt=St:gt.sibling=St,gt=St,I=mt}if(ot===A.length)return n(C,I),yt&&en(C,ot),nt;if(I===null){for(;ot<A.length;ot++)I=H(C,A[ot],B),I!==null&&(T=c(I,T,ot),gt===null?nt=I:gt.sibling=I,gt=I);return yt&&en(C,ot),nt}for(I=a(I);ot<A.length;ot++)mt=U(I,C,ot,A[ot],B),mt!==null&&(t&&mt.alternate!==null&&I.delete(mt.key===null?ot:mt.key),T=c(mt,T,ot),gt===null?nt=mt:gt.sibling=mt,gt=mt);return t&&I.forEach(function(Gn){return e(C,Gn)}),yt&&en(C,ot),nt}function it(C,T,A,B){if(A==null)throw Error(o(151));for(var nt=null,gt=null,I=T,ot=T=0,mt=null,St=A.next();I!==null&&!St.done;ot++,St=A.next()){I.index>ot?(mt=I,I=null):mt=I.sibling;var Gn=z(C,I,St.value,B);if(Gn===null){I===null&&(I=mt);break}t&&I&&Gn.alternate===null&&e(C,I),T=c(Gn,T,ot),gt===null?nt=Gn:gt.sibling=Gn,gt=Gn,I=mt}if(St.done)return n(C,I),yt&&en(C,ot),nt;if(I===null){for(;!St.done;ot++,St=A.next())St=H(C,St.value,B),St!==null&&(T=c(St,T,ot),gt===null?nt=St:gt.sibling=St,gt=St);return yt&&en(C,ot),nt}for(I=a(I);!St.done;ot++,St=A.next())St=U(I,C,ot,St.value,B),St!==null&&(t&&St.alternate!==null&&I.delete(St.key===null?ot:St.key),T=c(St,T,ot),gt===null?nt=St:gt.sibling=St,gt=St);return t&&I.forEach(function(ig){return e(C,ig)}),yt&&en(C,ot),nt}function Ct(C,T,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;T!==null;){if(T.key===nt){if(nt=A.type,nt===O){if(T.tag===7){n(C,T.sibling),B=u(T,A.props.children),B.return=C,C=B;break t}}else if(T.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Y&&ca(nt)===T.type){n(C,T.sibling),B=u(T,A.props),Hl(B,A),B.return=C,C=B;break t}n(C,T);break}else e(C,T);T=T.sibling}A.type===O?(B=aa(A.props.children,C.mode,B,A.key),B.return=C,C=B):(B=Zi(A.type,A.key,A.props,null,C.mode,B),Hl(B,A),B.return=C,C=B)}return f(C);case E:t:{for(nt=A.key;T!==null;){if(T.key===nt)if(T.tag===4&&T.stateNode.containerInfo===A.containerInfo&&T.stateNode.implementation===A.implementation){n(C,T.sibling),B=u(T,A.children||[]),B.return=C,C=B;break t}else{n(C,T);break}else e(C,T);T=T.sibling}B=Qs(A,C.mode,B),B.return=C,C=B}return f(C);case Y:return A=ca(A),Ct(C,T,A,B)}if(Dt(A))return F(C,T,A,B);if(ct(A)){if(nt=ct(A),typeof nt!="function")throw Error(o(150));return A=nt.call(A),it(C,T,A,B)}if(typeof A.then=="function")return Ct(C,T,$i(A),B);if(A.$$typeof===X)return Ct(C,T,Fi(C,A),B);tu(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,T!==null&&T.tag===6?(n(C,T.sibling),B=u(T,A),B.return=C,C=B):(n(C,T),B=qs(A,C.mode,B),B.return=C,C=B),f(C)):n(C,T)}return function(C,T,A,B){try{jl=0;var nt=Ct(C,T,A,B);return Ja=null,nt}catch(I){if(I===Za||I===Wi)throw I;var gt=ge(29,I,null,C.mode);return gt.lanes=B,gt.return=C,gt}}}var ra=Rf(!0),Ef=Rf(!1),Mn=!1;function Is(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $s(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 On(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(_t&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=Ki(t),uf(t,null,n),e}return Vi(t,a,e,n),Ki(t)}function ql(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,dr(t,n)}}function tc(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 ec=!1;function Ql(){if(ec){var t=Ka;if(t!==null)throw t}}function Yl(t,e,n,a){ec=!1;var u=t.updateQueue;Mn=!1;var c=u.firstBaseUpdate,f=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var R=v,x=R.next;R.next=null,f===null?c=x:f.next=x,f=R;var N=t.alternate;N!==null&&(N=N.updateQueue,v=N.lastBaseUpdate,v!==f&&(v===null?N.firstBaseUpdate=x:v.next=x,N.lastBaseUpdate=R))}if(c!==null){var H=u.baseState;f=0,N=x=R=null,v=c;do{var z=v.lane&-536870913,U=z!==v.lane;if(U?(dt&z)===z:(a&z)===z){z!==0&&z===Va&&(ec=!0),N!==null&&(N=N.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var F=t,it=v;z=e;var Ct=n;switch(it.tag){case 1:if(F=it.payload,typeof F=="function"){H=F.call(Ct,H,z);break t}H=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=it.payload,z=typeof F=="function"?F.call(Ct,H,z):F,z==null)break t;H=g({},H,z);break t;case 2:Mn=!0}}z=v.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:v.tag,payload:v.payload,callback:v.callback,next:null},N===null?(x=N=U,R=H):N=N.next=U,f|=z;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;U=v,v=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);N===null&&(R=H),u.baseState=R,u.firstBaseUpdate=x,u.lastBaseUpdate=N,c===null&&(u.shared.lanes=0),Un|=f,t.lanes=f,t.memoizedState=H}}function Tf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Mf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Tf(n[t],e)}var Pa=M(null),eu=M(0);function Of(t,e){t=dn,K(eu,t),K(Pa,e),dn=t|e.baseLanes}function nc(){K(eu,dn),K(Pa,Pa.current)}function ac(){dn=eu.current,j(Pa),j(eu)}var Se=M(null),Le=null;function An(t){var e=t.alternate;K(Qt,Qt.current&1),K(Se,t),Le===null&&(e===null||Pa.current!==null||e.memoizedState!==null)&&(Le=t)}function lc(t){K(Qt,Qt.current),K(Se,t),Le===null&&(Le=t)}function Cf(t){t.tag===22?(K(Qt,Qt.current),K(Se,t),Le===null&&(Le=t)):xn()}function xn(){K(Qt,Qt.current),K(Se,Se.current)}function be(t){j(Se),Le===t&&(Le=null),j(Qt)}var Qt=M(0);function nu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ro(n)||fo(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 ln=0,st=null,Mt=null,Xt=null,au=!1,Fa=!1,fa=!1,lu=0,Gl=0,ka=null,Fv=0;function Bt(){throw Error(o(321))}function ic(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pe(t[n],e[n]))return!1;return!0}function uc(t,e,n,a,u,c){return ln=c,st=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,w.H=t===null||t.memoizedState===null?rh:_c,fa=!1,c=n(a,u),fa=!1,Fa&&(c=xf(e,n,a,u)),Af(t),c}function Af(t){w.H=Kl;var e=Mt!==null&&Mt.next!==null;if(ln=0,Xt=Mt=st=null,au=!1,Gl=0,ka=null,e)throw Error(o(300));t===null||Vt||(t=t.dependencies,t!==null&&Pi(t)&&(Vt=!0))}function xf(t,e,n,a){st=t;var u=0;do{if(Fa&&(ka=null),Gl=0,Fa=!1,25<=u)throw Error(o(301));if(u+=1,Xt=Mt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}w.H=fh,c=e(n,a)}while(Fa);return c}function kv(){var t=w.H,e=t.useState()[0];return e=typeof e.then=="function"?Xl(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(st.flags|=1024),e}function sc(){var t=lu!==0;return lu=0,t}function cc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function oc(t){if(au){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}au=!1}ln=0,Xt=Mt=st=null,Fa=!1,Gl=lu=0,ka=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?st.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Mt===null){var t=st.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Xt===null?st.memoizedState:Xt.next;if(e!==null)Xt=e,Mt=t;else{if(t===null)throw st.alternate===null?Error(o(467)):Error(o(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Xt===null?st.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function iu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xl(t){var e=Gl;return Gl+=1,ka===null&&(ka=[]),t=Sf(ka,t,e),e=st,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,w.H=e===null||e.memoizedState===null?rh:_c),t}function uu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Xl(t);if(t.$$typeof===X)return $t(t)}throw Error(o(438,String(t)))}function rc(t){var e=null,n=st.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=st.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=iu(),st.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]=et;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function su(t){var e=Yt();return fc(e,Mt,t)}function fc(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 v=f=null,R=null,x=e,N=!1;do{var H=x.lane&-536870913;if(H!==x.lane?(dt&H)===H:(ln&H)===H){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}),H===Va&&(N=!0);else if((ln&z)===z){x=x.next,z===Va&&(N=!0);continue}else H={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(v=R=H,f=c):R=R.next=H,st.lanes|=z,Un|=z;H=x.action,fa&&n(c,H),c=x.hasEagerState?x.eagerState:n(c,H)}else z={lane:H,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(v=R=z,f=c):R=R.next=z,st.lanes|=H,Un|=H;x=x.next}while(x!==null&&x!==e);if(R===null?f=c:R.next=v,!pe(c,t.memoizedState)&&(Vt=!0,N&&(n=Ka,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 hc(t){var e=Yt(),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);pe(c,e.memoizedState)||(Vt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function zf(t,e,n){var a=st,u=Yt(),c=yt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!pe((Mt||u).memoizedState,n);if(f&&(u.memoizedState=n,Vt=!0),u=u.queue,yc(Lf.bind(null,a,u,t),[t]),u.getSnapshot!==e||f||Xt!==null&&Xt.memoizedState.tag&1){if(a.flags|=2048,Wa(9,{destroy:void 0},Uf.bind(null,a,u,n,e),null),xt===null)throw Error(o(349));c||(ln&127)!==0||Df(a,e,n)}return n}function Df(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=st.updateQueue,e===null?(e=iu(),st.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Uf(t,e,n,a){e.value=n,e.getSnapshot=a,wf(e)&&Nf(t)}function Lf(t,e,n){return n(function(){wf(e)&&Nf(t)})}function wf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function Nf(t){var e=na(t,2);e!==null&&de(e,t,2)}function dc(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),fa){gn(!0);try{n()}finally{gn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function Bf(t,e,n,a){return t.baseState=n,fc(t,Mt,typeof a=="function"?a:un)}function Wv(t,e,n,a,u){if(ru(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)}};w.T!==null?n(!0):c.isTransition=!1,a(c),n=e.pending,n===null?(c.next=e.pending=c,jf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function jf(t,e){var n=e.action,a=e.payload,u=t.state;if(e.isTransition){var c=w.T,f={};w.T=f;try{var v=n(u,a),R=w.S;R!==null&&R(f,v),Hf(t,e,v)}catch(x){mc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),w.T=c}}else try{c=n(u,a),Hf(t,e,c)}catch(x){mc(t,e,x)}}function Hf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){qf(t,e,a)},function(a){return mc(t,e,a)}):qf(t,e,n)}function qf(t,e,n){e.status="fulfilled",e.value=n,Qf(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,jf(t,n)))}function mc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Qf(e),e=e.next;while(e!==a)}t.action=null}function Qf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Yf(t,e){return e}function Gf(t,e){if(yt){var n=xt.formState;if(n!==null){t:{var a=st;if(yt){if(Ut){e:{for(var u=Ut,c=Ue;u.nodeType!==8;){if(!c){u=null;break e}if(u=we(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ut=we(u.nextSibling),a=u.data==="F!";break t}}En(a)}a=!1}a&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yf,lastRenderedState:e},n.queue=a,n=sh.bind(null,st,a),a.dispatch=n,a=dc(!1),c=bc.bind(null,st,!1,a.queue),a=ie(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,n=Wv.bind(null,st,u,c,n),u.dispatch=n,a.memoizedState=t,[e,n,!1]}function Xf(t){var e=Yt();return Vf(e,Mt,t)}function Vf(t,e,n){if(e=fc(t,e,Yf)[0],t=su(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Xl(e)}catch(f){throw f===Za?Wi:f}else a=e;e=Yt();var u=e.queue,c=u.dispatch;return n!==e.memoizedState&&(st.flags|=2048,Wa(9,{destroy:void 0},Iv.bind(null,u,n),null)),[a,c,t]}function Iv(t,e){t.action=e}function Kf(t){var e=Yt(),n=Mt;if(n!==null)return Vf(e,n,t);Yt(),e=e.memoizedState,n=Yt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Wa(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=st.updateQueue,e===null&&(e=iu(),st.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 Zf(){return Yt().memoizedState}function cu(t,e,n,a){var u=ie();st.flags|=t,u.memoizedState=Wa(1|e,{destroy:void 0},n,a===void 0?null:a)}function ou(t,e,n,a){var u=Yt();a=a===void 0?null:a;var c=u.memoizedState.inst;Mt!==null&&a!==null&&ic(a,Mt.memoizedState.deps)?u.memoizedState=Wa(e,c,n,a):(st.flags|=t,u.memoizedState=Wa(1|e,c,n,a))}function Jf(t,e){cu(8390656,8,t,e)}function yc(t,e){ou(2048,8,t,e)}function $v(t){st.flags|=4;var e=st.updateQueue;if(e===null)e=iu(),st.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Pf(t){var e=Yt().memoizedState;return $v({ref:e,nextImpl:t}),function(){if((_t&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Ff(t,e){return ou(4,2,t,e)}function kf(t,e){return ou(4,4,t,e)}function Wf(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 If(t,e,n){n=n!=null?n.concat([t]):null,ou(4,4,Wf.bind(null,e,t),n)}function vc(){}function $f(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&ic(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function th(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&ic(e,a[1]))return a[0];if(a=t(),fa){gn(!0);try{t()}finally{gn(!1)}}return n.memoizedState=[a,e],a}function pc(t,e,n){return n===void 0||(ln&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ed(),st.lanes|=t,Un|=t,n)}function eh(t,e,n,a){return pe(n,e)?n:Pa.current!==null?(t=pc(t,n,a),pe(t,e)||(Vt=!0),t):(ln&42)===0||(ln&1073741824)!==0&&(dt&261930)===0?(Vt=!0,t.memoizedState=n):(t=ed(),st.lanes|=t,Un|=t,e)}function nh(t,e,n,a,u){var c=V.p;V.p=c!==0&&8>c?c:8;var f=w.T,v={};w.T=v,bc(t,!1,e,n);try{var R=u(),x=w.S;if(x!==null&&x(v,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var N=Pv(R,a);Vl(t,e,N,Ee(t))}else Vl(t,e,a,Ee(t))}catch(H){Vl(t,e,{then:function(){},status:"rejected",reason:H},Ee())}finally{V.p=c,f!==null&&v.types!==null&&(f.types=v.types),w.T=f}}function tp(){}function gc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=ah(t).queue;nh(t,u,e,at,n===null?tp:function(){return lh(t),n(a)})}function ah(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:at,baseState:at,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:at},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function lh(t){var e=ah(t);e.next===null&&(e=t.alternate.memoizedState),Vl(t,e.next.queue,{},Ee())}function Sc(){return $t(si)}function ih(){return Yt().memoizedState}function uh(){return Yt().memoizedState}function ep(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ee();t=On(n);var a=Cn(e,t,n);a!==null&&(de(a,e,n),ql(a,e,n)),e={cache:Ps()},t.payload=e;return}e=e.return}}function np(t,e,n){var a=Ee();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ru(t)?ch(e,n):(n=js(t,e,n,a),n!==null&&(de(n,t,a),oh(n,e,a)))}function sh(t,e,n){var a=Ee();Vl(t,e,n,a)}function Vl(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ru(t))ch(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,v=c(f,n);if(u.hasEagerState=!0,u.eagerState=v,pe(v,f))return Vi(t,e,u,0),xt===null&&Xi(),!1}catch{}if(n=js(t,e,u,a),n!==null)return de(n,t,a),oh(n,e,a),!0}return!1}function bc(t,e,n,a){if(a={lane:2,revertLane:Ic(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ru(t)){if(e)throw Error(o(479))}else e=js(t,n,a,2),e!==null&&de(e,t,2)}function ru(t){var e=t.alternate;return t===st||e!==null&&e===st}function ch(t,e){Fa=au=!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,dr(t,n)}}var Kl={readContext:$t,use:uu,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 rh={readContext:$t,use:uu,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:Jf,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,cu(4194308,4,Wf.bind(null,e,t),n)},useLayoutEffect:function(t,e){return cu(4194308,4,t,e)},useInsertionEffect:function(t,e){cu(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var a=t();if(fa){gn(!0);try{t()}finally{gn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ie();if(n!==void 0){var u=n(e);if(fa){gn(!0);try{n(e)}finally{gn(!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=np.bind(null,st,t),[a.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=dc(t);var e=t.queue,n=sh.bind(null,st,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:vc,useDeferredValue:function(t,e){var n=ie();return pc(n,t,e)},useTransition:function(){var t=dc(!1);return t=nh.bind(null,st,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=st,u=ie();if(yt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),xt===null)throw Error(o(349));(dt&127)!==0||Df(a,e,n)}u.memoizedState=n;var c={value:n,getSnapshot:e};return u.queue=c,Jf(Lf.bind(null,a,c,t),[t]),a.flags|=2048,Wa(9,{destroy:void 0},Uf.bind(null,a,c,n,e),null),n},useId:function(){var t=ie(),e=xt.identifierPrefix;if(yt){var n=Ve,a=Xe;n=(a&~(1<<32-ve(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=lu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Fv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Sc,useFormState:Gf,useActionState:Gf,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=bc.bind(null,st,!0,n),n.dispatch=e,[t,e]},useMemoCache:rc,useCacheRefresh:function(){return ie().memoizedState=ep.bind(null,st)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((_t&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},_c={readContext:$t,use:uu,useCallback:$f,useContext:$t,useEffect:yc,useImperativeHandle:If,useInsertionEffect:Ff,useLayoutEffect:kf,useMemo:th,useReducer:su,useRef:Zf,useState:function(){return su(un)},useDebugValue:vc,useDeferredValue:function(t,e){var n=Yt();return eh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=su(un)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:zf,useId:ih,useHostTransitionStatus:Sc,useFormState:Xf,useActionState:Xf,useOptimistic:function(t,e){var n=Yt();return Bf(n,Mt,t,e)},useMemoCache:rc,useCacheRefresh:uh};_c.useEffectEvent=Pf;var fh={readContext:$t,use:uu,useCallback:$f,useContext:$t,useEffect:yc,useImperativeHandle:If,useInsertionEffect:Ff,useLayoutEffect:kf,useMemo:th,useReducer:hc,useRef:Zf,useState:function(){return hc(un)},useDebugValue:vc,useDeferredValue:function(t,e){var n=Yt();return Mt===null?pc(n,t,e):eh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=hc(un)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:zf,useId:ih,useHostTransitionStatus:Sc,useFormState:Kf,useActionState:Kf,useOptimistic:function(t,e){var n=Yt();return Mt!==null?Bf(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:rc,useCacheRefresh:uh};fh.useEffectEvent=Pf;function Rc(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ec={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ee(),u=On(a);u.payload=e,n!=null&&(u.callback=n),e=Cn(t,u,a),e!==null&&(de(e,t,a),ql(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ee(),u=On(a);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=Cn(t,u,a),e!==null&&(de(e,t,a),ql(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ee(),a=On(n);a.tag=2,e!=null&&(a.callback=e),e=Cn(t,a,n),e!==null&&(de(e,t,n),ql(e,t,n))}};function hh(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?!Dl(n,a)||!Dl(u,c):!0}function dh(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&&Ec.enqueueReplaceState(e,e.state,null)}function ha(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=g({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function mh(t){Gi(t)}function yh(t){console.error(t)}function vh(t){Gi(t)}function fu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function ph(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 Tc(t,e,n){return n=On(n),n.tag=3,n.payload={element:null},n.callback=function(){fu(t,e)},n}function gh(t){return t=On(t),t.tag=3,t}function Sh(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(){ph(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){ph(e,n,a),typeof u!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function ap(t,e,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Xa(e,n,u,!0),n=Se.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Eu():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===Ii?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Fc(t,a,u)),!1;case 22:return n.flags|=65536,a===Ii?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)),Fc(t,a,u)),!1}throw Error(o(435,n.tag))}return Fc(t,a,u),Eu(),!1}if(yt)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Xs&&(t=Error(o(422),{cause:a}),wl(xe(t,n)))):(a!==Xs&&(e=Error(o(423),{cause:a}),wl(xe(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=xe(a,n),u=Tc(t.stateNode,a,u),tc(t,u),jt!==4&&(jt=2)),!1;var c=Error(o(520),{cause:a});if(c=xe(c,n),$l===null?$l=[c]:$l.push(c),jt!==4&&(jt=2),e===null)return!0;a=xe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Tc(n.stateNode,a,t),tc(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"&&(Ln===null||!Ln.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=gh(u),Sh(u,t,n,a),tc(n,u),!1}n=n.return}while(n!==null);return!1}var Mc=Error(o(461)),Vt=!1;function te(t,e,n,a){e.child=t===null?Ef(e,null,n,a):ra(e,t.child,n,a)}function bh(t,e,n,a,u){n=n.render;var c=e.ref;if("ref"in a){var f={};for(var v in a)v!=="ref"&&(f[v]=a[v])}else f=a;return ua(e),a=uc(t,e,n,f,c,u),v=sc(),t!==null&&!Vt?(cc(t,e,u),sn(t,e,u)):(yt&&v&&Ys(e),e.flags|=1,te(t,e,a,u),e.child)}function _h(t,e,n,a,u){if(t===null){var c=n.type;return typeof c=="function"&&!Hs(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Rh(t,e,c,a,u)):(t=Zi(n.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Lc(t,u)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Dl,n(f,a)&&t.ref===e.ref)return sn(t,e,u)}return e.flags|=1,t=tn(c,a),t.ref=e.ref,t.return=e,e.child=t}function Rh(t,e,n,a,u){if(t!==null){var c=t.memoizedProps;if(Dl(c,a)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=a=c,Lc(t,u))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,sn(t,e,u)}return Oc(t,e,n,a,u)}function Eh(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 Th(t,e,c,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ki(e,c!==null?c.cachePool:null),c!==null?Of(e,c):nc(),Cf(e);else return a=e.lanes=536870912,Th(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ki(e,c.cachePool),Of(e,c),xn(),e.memoizedState=null):(t!==null&&ki(e,null),nc(),xn());return te(t,e,u,n),e.child}function Zl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Th(t,e,n,a,u){var c=ks();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&ki(e,null),nc(),Cf(e),t!==null&&Xa(t,e,a,!0),e.childLanes=u,null}function hu(t,e){return e=mu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Mh(t,e,n){return ra(e,t.child,null,n),t=hu(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function lp(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=hu(e,a),e.lanes=536870912,Zl(null,t);if(lc(e),(t=Ut)?(t=jd(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_n!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=cf(t),n.return=e,e.child=n,It=e,Ut=null)):t=null,t===null)throw En(e);return e.lanes=536870912,null}return hu(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(lc(e),u)if(e.flags&256)e.flags&=-257,e=Mh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Vt||Xa(t,e,n,!1),u=(n&t.childLanes)!==0,Vt||u){if(a=xt,a!==null&&(f=mr(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,na(t,f),de(a,t,f),Mc;Eu(),e=Mh(t,e,n)}else t=c.treeContext,Ut=we(f.nextSibling),It=e,yt=!0,Rn=null,Ue=!1,t!==null&&ff(e,t),e=hu(e,a),e.flags|=4096;return e}return t=tn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function du(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 Oc(t,e,n,a,u){return ua(e),n=uc(t,e,n,a,void 0,u),a=sc(),t!==null&&!Vt?(cc(t,e,u),sn(t,e,u)):(yt&&a&&Ys(e),e.flags|=1,te(t,e,n,u),e.child)}function Oh(t,e,n,a,u,c){return ua(e),e.updateQueue=null,n=xf(e,a,n,u),Af(t),a=sc(),t!==null&&!Vt?(cc(t,e,c),sn(t,e,c)):(yt&&a&&Ys(e),e.flags|=1,te(t,e,n,c),e.child)}function Ch(t,e,n,a,u){if(ua(e),e.stateNode===null){var c=qa,f=n.contextType;typeof f=="object"&&f!==null&&(c=$t(f)),c=new n(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ec,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},Is(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?$t(f):qa,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Rc(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&&Ec.enqueueReplaceState(c,c.state,null),Yl(e,a,c,u),Ql(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,R=ha(n,v);c.props=R;var x=c.context,N=n.contextType;f=qa,typeof N=="object"&&N!==null&&(f=$t(N));var H=n.getDerivedStateFromProps;N=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,N||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||x!==f)&&dh(e,c,a,f),Mn=!1;var z=e.memoizedState;c.state=z,Yl(e,a,c,u),Ql(),x=e.memoizedState,v||z!==x||Mn?(typeof H=="function"&&(Rc(e,n,H,a),x=e.memoizedState),(R=Mn||hh(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,$s(t,e),f=e.memoizedProps,N=ha(n,f),c.props=N,H=e.pendingProps,z=c.context,x=n.contextType,R=qa,typeof x=="object"&&x!==null&&(R=$t(x)),v=n.getDerivedStateFromProps,(x=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==H||z!==R)&&dh(e,c,a,R),Mn=!1,z=e.memoizedState,c.state=z,Yl(e,a,c,u),Ql();var U=e.memoizedState;f!==H||z!==U||Mn||t!==null&&t.dependencies!==null&&Pi(t.dependencies)?(typeof v=="function"&&(Rc(e,n,v,a),U=e.memoizedState),(N=Mn||hh(e,n,N,a,z,U,R)||t!==null&&t.dependencies!==null&&Pi(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,du(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=ra(e,t.child,null,u),e.child=ra(e,null,n,u)):te(t,e,n,u),e.memoizedState=c.state,t=e.child):t=sn(t,e,u),t}function Ah(t,e,n,a){return la(),e.flags|=256,te(t,e,n,a),e.child}var Cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ac(t){return{baseLanes:t,cachePool:pf()}}function xc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function xh(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?An(e):xn(),(t=Ut)?(t=jd(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_n!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=cf(t),n.return=e,e.child=n,It=e,Ut=null)):t=null,t===null)throw En(e);return fo(t)?e.lanes=32:e.lanes=536870912,null}var v=a.children;return a=a.fallback,u?(xn(),u=e.mode,v=mu({mode:"hidden",children:v},u),a=aa(a,u,n,null),v.return=e,a.return=e,v.sibling=a,e.child=v,a=e.child,a.memoizedState=Ac(n),a.childLanes=xc(t,f,n),e.memoizedState=Cc,Zl(null,a)):(An(e),zc(e,v))}var R=t.memoizedState;if(R!==null&&(v=R.dehydrated,v!==null)){if(c)e.flags&256?(An(e),e.flags&=-257,e=Dc(t,e,n)):e.memoizedState!==null?(xn(),e.child=t.child,e.flags|=128,e=null):(xn(),v=a.fallback,u=e.mode,a=mu({mode:"visible",children:a.children},u),v=aa(v,u,n,null),v.flags|=2,a.return=e,v.return=e,a.sibling=v,e.child=a,ra(e,t.child,null,n),a=e.child,a.memoizedState=Ac(n),a.childLanes=xc(t,f,n),e.memoizedState=Cc,e=Zl(null,a));else if(An(e),fo(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var x=f.dgst;f=x,a=Error(o(419)),a.stack="",a.digest=f,wl({value:a,source:null,stack:null}),e=Dc(t,e,n)}else if(Vt||Xa(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=xt,f!==null&&(a=mr(f,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,na(t,a),de(f,t,a),Mc;ro(v)||Eu(),e=Dc(t,e,n)}else ro(v)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Ut=we(v.nextSibling),It=e,yt=!0,Rn=null,Ue=!1,t!==null&&ff(e,t),e=zc(e,a.children),e.flags|=4096);return e}return u?(xn(),v=a.fallback,u=e.mode,R=t.child,x=R.sibling,a=tn(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,x!==null?v=tn(x,v):(v=aa(v,u,n,null),v.flags|=2),v.return=e,a.return=e,a.sibling=v,e.child=a,Zl(null,a),a=e.child,v=t.child.memoizedState,v===null?v=Ac(n):(u=v.cachePool,u!==null?(R=Gt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=pf(),v={baseLanes:v.baseLanes|n,cachePool:u}),a.memoizedState=v,a.childLanes=xc(t,f,n),e.memoizedState=Cc,Zl(t.child,a)):(An(e),n=t.child,t=n.sibling,n=tn(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 zc(t,e){return e=mu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function mu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function Dc(t,e,n){return ra(e,t.child,null,n),t=zc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function zh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Zs(t.return,e,n)}function Uc(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 Dh(t,e,n){var a=e.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var f=Qt.current,v=(f&2)!==0;if(v?(f=f&1|2,e.flags|=128):f&=1,K(Qt,f),te(t,e,a,n),a=yt?Ll:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&zh(t,n,e);else if(t.tag===19)zh(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&&nu(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),Uc(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&&nu(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}Uc(e,!0,n,null,c,a);break;case"together":Uc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function sn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Un|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Xa(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=tn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=tn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Lc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Pi(t)))}function ip(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Tn(e,Gt,t.memoizedState.cache),la();break;case 27:case 5:Pe(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Tn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,lc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(An(e),e.flags|=128,null):(n&e.child.childLanes)!==0?xh(t,e,n):(An(e),t=sn(t,e,n),t!==null?t.sibling:null);An(e);break;case 19:var u=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Xa(t,e,n,!1),a=(n&e.childLanes)!==0),u){if(a)return Dh(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,Eh(t,e,n,e.pendingProps);case 24:Tn(e,Gt,t.memoizedState.cache)}return sn(t,e,n)}function Uh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!Lc(t,n)&&(e.flags&128)===0)return Vt=!1,ip(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,yt&&(e.flags&1048576)!==0&&rf(e,Ll,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ca(e.elementType),e.type=t,typeof t=="function")Hs(t)?(a=ha(t,a),e.tag=1,e=Ch(null,e,t,a,n)):(e.tag=0,e=Oc(null,e,t,a,n));else{if(t!=null){var u=t.$$typeof;if(u===G){e.tag=11,e=bh(null,e,t,a,n);break t}else if(u===q){e.tag=14,e=_h(null,e,t,a,n);break t}}throw e=Ht(t)||t,Error(o(306,e,""))}}return e;case 0:return Oc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,u=ha(a,e.pendingProps),Ch(t,e,a,u,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;u=c.element,$s(t,e),Yl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Tn(e,Gt,a),a!==c.cache&&Js(e,[Gt],n,!0),Ql(),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=Ah(t,e,a,n);break t}else if(a!==u){u=xe(Error(o(424)),e),wl(u),e=Ah(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ut=we(t.firstChild),It=e,yt=!0,Rn=null,Ue=!0,n=Ef(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(la(),a===u){e=sn(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return du(t,e),t===null?(n=Xd(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,a=zu(rt.current).createElement(n),a[Wt]=e,a[se]=t,ee(a,n,t),Pt(a),e.stateNode=a):e.memoizedState=Xd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pe(e),t===null&&yt&&(a=e.stateNode=Qd(e.type,e.pendingProps,rt.current),It=e,Ue=!0,u=Ut,jn(e.type)?(ho=u,Ut=we(a.firstChild)):Ut=u),te(t,e,e.pendingProps.children,n),du(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((u=a=Ut)&&(a=Np(a,e.type,e.pendingProps,Ue),a!==null?(e.stateNode=a,It=e,Ut=we(a.firstChild),Ue=!1,u=!0):u=!1),u||En(e)),Pe(e),u=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,so(u,c)?a=null:f!==null&&so(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=uc(t,e,kv,null,null,n),si._currentValue=u),du(t,e),te(t,e,a,n),e.child;case 6:return t===null&&yt&&((t=n=Ut)&&(n=Bp(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,It=e,Ut=null,t=!0):t=!1),t||En(e)),null;case 13:return xh(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ra(e,null,a,n):te(t,e,a,n),e.child;case 11:return bh(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,Tn(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,ua(e),u=$t(u),a=a(u),e.flags|=1,te(t,e,a,n),e.child;case 14:return _h(t,e,e.type,e.pendingProps,n);case 15:return Rh(t,e,e.type,e.pendingProps,n);case 19:return Dh(t,e,n);case 31:return lp(t,e,n);case 22:return Eh(t,e,n,e.pendingProps);case 24:return ua(e),a=$t(Gt),t===null?(u=ks(),u===null&&(u=xt,c=Ps(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),e.memoizedState={parent:a,cache:u},Is(e),Tn(e,Gt,u)):((t.lanes&n)!==0&&($s(t,e),Yl(e,null,null,n),Ql()),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),Tn(e,Gt,a)):(a=c.cache,Tn(e,Gt,a),a!==u.cache&&Js(e,[Gt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function cn(t){t.flags|=4}function wc(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(id())t.flags|=8192;else throw oa=Ii,Ws}else t.flags&=-16777217}function Lh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Pd(e))if(id())t.flags|=8192;else throw oa=Ii,Ws}function yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?fr():536870912,t.lanes|=e,el|=e)}function Jl(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 up(t,e,n){var a=e.pendingProps;switch(Gs(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),an(Gt),At(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ga(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Vs())),Lt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(cn(e),c!==null?(Lt(e),Lh(e,c)):(Lt(e),wc(e,u,null,a,n))):c?c!==t.memoizedState?(cn(e),Lt(e),Lh(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&cn(e),Lt(e),wc(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&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=P.current,Ga(e)?hf(e):(t=Qd(u,a,n),e.stateNode=t,cn(e))}return Lt(e),null;case 5:if(Fe(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=P.current,Ga(e))hf(e);else{var f=zu(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[se]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(ee(c,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&&cn(e)}}return Lt(e),wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,Ga(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=It,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||xd(t.nodeValue,n)),t||En(e,!0)}else t=zu(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=Ga(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 la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=Vs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Lt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ga(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 la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),u=!1}else u=Vs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,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),yu(e,e.updateQueue),Lt(e),null);case 4:return At(),t===null&&no(e.stateNode.containerInfo),Lt(e),null;case 10:return an(e.type),Lt(e),null;case 19:if(j(Qt),a=e.memoizedState,a===null)return Lt(e),null;if(u=(e.flags&128)!==0,c=a.rendering,c===null)if(u)Jl(a,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=nu(t),c!==null){for(e.flags|=128,Jl(a,!1),t=c.updateQueue,e.updateQueue=t,yu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)sf(n,t),n=n.sibling;return K(Qt,Qt.current&1|2),yt&&en(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ne()>bu&&(e.flags|=128,u=!0,Jl(a,!1),e.lanes=4194304)}else{if(!u)if(t=nu(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,yu(e,t),Jl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!yt)return Lt(e),null}else 2*ne()-a.renderingStartTime>bu&&n!==536870912&&(e.flags|=128,u=!0,Jl(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=ne(),t.sibling=null,n=Qt.current,K(Qt,u?n&1|2:n&1),yt&&en(e,a.treeForkCount),t):(Lt(e),null);case 22:case 23:return be(e),ac(),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&&yu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&j(sa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),an(Gt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function sp(t,e){switch(Gs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return an(Gt),At(),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(be(e),e.alternate===null)throw Error(o(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Qt),null;case 4:return At(),null;case 10:return an(e.type),null;case 22:case 23:return be(e),ac(),t!==null&&j(sa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return an(Gt),null;case 25:return null;default:return null}}function wh(t,e){switch(Gs(e),e.tag){case 3:an(Gt),At();break;case 26:case 27:case 5:Fe(e);break;case 4:At();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:j(Qt);break;case 10:an(e.type);break;case 22:case 23:be(e),ac(),t!==null&&j(sa);break;case 24:an(Gt)}}function Pl(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(v){Tt(e,e.return,v)}}function zn(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,v=f.destroy;if(v!==void 0){f.destroy=void 0,u=e;var R=n,x=v;try{x()}catch(N){Tt(u,R,N)}}}a=a.next}while(a!==c)}}catch(N){Tt(e,e.return,N)}}function Nh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Mf(e,n)}catch(a){Tt(t,t.return,a)}}}function Bh(t,e,n){n.props=ha(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Tt(t,e,a)}}function Fl(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){Tt(t,e,u)}}function Ke(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Tt(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){Tt(t,e,u)}else n.current=null}function jh(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){Tt(t,t.return,u)}}function Nc(t,e,n){try{var a=t.stateNode;xp(a,t.type,n,e),a[se]=e}catch(u){Tt(t,t.return,u)}}function Hh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&jn(t.type)||t.tag===4}function Bc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Hh(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&&jn(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&&jn(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 vu(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&&jn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(vu(t,e,n),t=t.sibling;t!==null;)vu(t,e,n),t=t.sibling}function qh(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[se]=n}catch(c){Tt(t,t.return,c)}}var on=!1,Kt=!1,Hc=!1,Qh=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function cp(t,e){if(t=t.containerInfo,io=ju,t=Wr(t),Ds(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,v=-1,R=-1,x=0,N=0,H=t,z=null;e:for(;;){for(var U;H!==n||u!==0&&H.nodeType!==3||(v=f+u),H!==c||a!==0&&H.nodeType!==3||(R=f+a),H.nodeType===3&&(f+=H.nodeValue.length),(U=H.firstChild)!==null;)z=H,H=U;for(;;){if(H===t)break e;if(z===n&&++x===u&&(v=f),z===c&&++N===a&&(R=f),(U=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=U}n=v===-1||R===-1?null:{start:v,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(uo={focusedElem:t,selectionRange:n},ju=!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 F=ha(n.type,u);t=a.getSnapshotBeforeUpdate(F,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(it){Tt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)oo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":oo(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 Yh(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:fn(t,n),a&4&&Pl(5,n);break;case 1:if(fn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var u=ha(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}a&64&&Nh(n),a&512&&Fl(n,n.return);break;case 3:if(fn(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{Mf(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&a&4&&qh(n);case 26:case 5:fn(t,n),e===null&&a&4&&jh(n),a&512&&Fl(n,n.return);break;case 12:fn(t,n);break;case 31:fn(t,n),a&4&&Vh(t,n);break;case 13:fn(t,n),a&4&&Kh(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=pp.bind(null,n),jp(t,n))));break;case 22:if(a=n.memoizedState!==null||on,!a){e=e!==null&&e.memoizedState!==null||Kt,u=on;var c=Kt;on=a,(Kt=e)&&!c?hn(t,n,(n.subtreeFlags&8772)!==0):fn(t,n),on=u,Kt=c}break;case 30:break;default:fn(t,n)}}function Gh(t){var e=t.alternate;e!==null&&(t.alternate=null,Gh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ms(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var wt=null,oe=!1;function rn(t,e,n){for(n=n.child;n!==null;)Xh(t,e,n),n=n.sibling}function Xh(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 26:Kt||Ke(n,e),rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||Ke(n,e);var a=wt,u=oe;jn(n.type)&&(wt=n.stateNode,oe=!1),rn(t,e,n),li(n.stateNode),wt=a,oe=u;break;case 5:Kt||Ke(n,e);case 6:if(a=wt,u=oe,wt=null,rn(t,e,n),wt=a,oe=u,wt!==null)if(oe)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(c){Tt(n,e,c)}else try{wt.removeChild(n.stateNode)}catch(c){Tt(n,e,c)}break;case 18:wt!==null&&(oe?(t=wt,Nd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ol(t)):Nd(wt,n.stateNode));break;case 4:a=wt,u=oe,wt=n.stateNode.containerInfo,oe=!0,rn(t,e,n),wt=a,oe=u;break;case 0:case 11:case 14:case 15:zn(2,n,e),Kt||zn(4,n,e),rn(t,e,n);break;case 1:Kt||(Ke(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Bh(n,e,a)),rn(t,e,n);break;case 21:rn(t,e,n);break;case 22:Kt=(a=Kt)||n.memoizedState!==null,rn(t,e,n),Kt=a;break;default:rn(t,e,n)}}function Vh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ol(t)}catch(n){Tt(e,e.return,n)}}}function Kh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ol(t)}catch(n){Tt(e,e.return,n)}}function op(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Qh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Qh),e;default:throw Error(o(435,t.tag))}}function pu(t,e){var n=op(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var u=gp.bind(null,t,a);a.then(u,u)}})}function re(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,v=f;t:for(;v!==null;){switch(v.tag){case 27:if(jn(v.type)){wt=v.stateNode,oe=!1;break t}break;case 5:wt=v.stateNode,oe=!1;break t;case 3:case 4:wt=v.stateNode.containerInfo,oe=!0;break t}v=v.return}if(wt===null)throw Error(o(160));Xh(c,f,u),wt=null,oe=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Zh(e,t),e=e.sibling}var qe=null;function Zh(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:re(e,t),fe(t),a&4&&(zn(3,t,t.return),Pl(3,t),zn(5,t,t.return));break;case 1:re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),a&64&&on&&(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=qe;if(re(e,t),fe(t),a&512&&(Kt||n===null||Ke(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[Rl]||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,Pt(c),a=c;break t;case"link":var f=Zd("link","href",u).get(a+(n.href||""));if(f){for(var v=0;v<f.length;v++)if(c=f[v],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(v,1);break e}}c=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;case"meta":if(f=Zd("meta","content",u).get(a+(n.content||""))){for(v=0;v<f.length;v++)if(c=f[v],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(v,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,Pt(c),a=c}t.stateNode=a}else Jd(u,t.type,t.stateNode);else t.stateNode=Kd(u,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Jd(u,t.type,t.stateNode):Kd(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Nc(t,t.memoizedProps,n.memoizedProps)}break;case 27:re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),n!==null&&a&4&&Nc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),t.flags&32){u=t.stateNode;try{Ua(u,"")}catch(F){Tt(t,t.return,F)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,Nc(t,u,n!==null?n.memoizedProps:u)),a&1024&&(Hc=!0);break;case 6:if(re(e,t),fe(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(F){Tt(t,t.return,F)}}break;case 3:if(Lu=null,u=qe,qe=Du(e.containerInfo),re(e,t),qe=u,fe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ol(e.containerInfo)}catch(F){Tt(t,t.return,F)}Hc&&(Hc=!1,Jh(t));break;case 4:a=qe,qe=Du(t.stateNode.containerInfo),re(e,t),fe(t),qe=a;break;case 12:re(e,t),fe(t);break;case 31:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 13:re(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Su=ne()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 22:u=t.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,x=on,N=Kt;if(on=x||u,Kt=N||R,re(e,t),Kt=N,on=x,fe(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||R||on||Kt||da(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{v=R.stateNode;var H=R.memoizedProps.style,z=H!=null&&H.hasOwnProperty("display")?H.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(F){Tt(R,R.return,F)}}}else if(e.tag===6){if(n===null){R=e;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(F){Tt(R,R.return,F)}}}else if(e.tag===18){if(n===null){R=e;try{var U=R.stateNode;u?Bd(U,!0):Bd(R.stateNode,!1)}catch(F){Tt(R,R.return,F)}}}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,pu(t,n))));break;case 19:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 30:break;case 21:break;default:re(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Hh(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var u=n.stateNode,c=Bc(t);vu(t,c,u);break;case 5:var f=n.stateNode;n.flags&32&&(Ua(f,""),n.flags&=-33);var v=Bc(t);vu(t,v,f);break;case 3:case 4:var R=n.stateNode.containerInfo,x=Bc(t);jc(t,x,R);break;default:throw Error(o(161))}}catch(N){Tt(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Jh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Jh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Yh(t,e.alternate,e),e=e.sibling}function da(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:zn(4,e,e.return),da(e);break;case 1:Ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Bh(e,e.return,n),da(e);break;case 27:li(e.stateNode);case 26:case 5:Ke(e,e.return),da(e);break;case 22:e.memoizedState===null&&da(e);break;case 30:da(e);break;default:da(e)}t=t.sibling}}function hn(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:hn(u,c,n),Pl(4,c);break;case 1:if(hn(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(x){Tt(a,a.return,x)}if(a=c,u=a.updateQueue,u!==null){var v=a.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)Tf(R[u],v)}catch(x){Tt(a,a.return,x)}}n&&f&64&&Nh(c),Fl(c,c.return);break;case 27:qh(c);case 26:case 5:hn(u,c,n),n&&a===null&&f&4&&jh(c),Fl(c,c.return);break;case 12:hn(u,c,n);break;case 31:hn(u,c,n),n&&f&4&&Vh(u,c);break;case 13:hn(u,c,n),n&&f&4&&Kh(u,c);break;case 22:c.memoizedState===null&&hn(u,c,n),Fl(c,c.return);break;case 30:break;default:hn(u,c,n)}e=e.sibling}}function qc(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&&Nl(n))}function Qc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Nl(t))}function Qe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ph(t,e,n,a),e=e.sibling}function Ph(t,e,n,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Qe(t,e,n,a),u&2048&&Pl(9,e);break;case 1:Qe(t,e,n,a);break;case 3:Qe(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&&Nl(t)));break;case 12:if(u&2048){Qe(t,e,n,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,v=c.onPostCommit;typeof v=="function"&&v(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Tt(e,e.return,R)}}else Qe(t,e,n,a);break;case 31:Qe(t,e,n,a);break;case 13:Qe(t,e,n,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Qe(t,e,n,a):kl(t,e):c._visibility&2?Qe(t,e,n,a):(c._visibility|=2,Ia(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),u&2048&&qc(f,e);break;case 24:Qe(t,e,n,a),u&2048&&Qc(e.alternate,e);break;default:Qe(t,e,n,a)}}function Ia(t,e,n,a,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,v=n,R=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:Ia(c,f,v,R,u),Pl(8,f);break;case 23:break;case 22:var N=f.stateNode;f.memoizedState!==null?N._visibility&2?Ia(c,f,v,R,u):kl(c,f):(N._visibility|=2,Ia(c,f,v,R,u)),u&&x&2048&&qc(f.alternate,f);break;case 24:Ia(c,f,v,R,u),u&&x&2048&&Qc(f.alternate,f);break;default:Ia(c,f,v,R,u)}e=e.sibling}}function kl(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:kl(n,a),u&2048&&qc(a.alternate,a);break;case 24:kl(n,a),u&2048&&Qc(a.alternate,a);break;default:kl(n,a)}e=e.sibling}}var Wl=8192;function $a(t,e,n){if(t.subtreeFlags&Wl)for(t=t.child;t!==null;)Fh(t,e,n),t=t.sibling}function Fh(t,e,n){switch(t.tag){case 26:$a(t,e,n),t.flags&Wl&&t.memoizedState!==null&&Fp(n,qe,t.memoizedState,t.memoizedProps);break;case 5:$a(t,e,n);break;case 3:case 4:var a=qe;qe=Du(t.stateNode.containerInfo),$a(t,e,n),qe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Wl,Wl=16777216,$a(t,e,n),Wl=a):$a(t,e,n));break;default:$a(t,e,n)}}function kh(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 Il(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,Ih(a,t)}kh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wh(t),t=t.sibling}function Wh(t){switch(t.tag){case 0:case 11:case 15:Il(t),t.flags&2048&&zn(9,t,t.return);break;case 3:Il(t);break;case 12:Il(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,gu(t)):Il(t);break;default:Il(t)}}function gu(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,Ih(a,t)}kh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:zn(8,e,e.return),gu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,gu(e));break;default:gu(e)}t=t.sibling}}function Ih(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:zn(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:Nl(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(Gh(a),a===n){Ft=null;break t}if(u!==null){u.return=c,Ft=u;break t}Ft=c}}}var rp={getCacheForType:function(t){var e=$t(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return $t(Gt).controller.signal}},fp=typeof WeakMap=="function"?WeakMap:Map,_t=0,xt=null,ft=null,dt=0,Et=0,_e=null,Dn=!1,tl=!1,Yc=!1,dn=0,jt=0,Un=0,ma=0,Gc=0,Re=0,el=0,$l=null,he=null,Xc=!1,Su=0,$h=0,bu=1/0,_u=null,Ln=null,Zt=0,wn=null,nl=null,mn=0,Vc=0,Kc=null,td=null,ti=0,Zc=null;function Ee(){return(_t&2)!==0&&dt!==0?dt&-dt:w.T!==null?Ic():yr()}function ed(){if(Re===0)if((dt&536870912)===0||yt){var t=xi;xi<<=1,(xi&3932160)===0&&(xi=262144),Re=t}else Re=536870912;return t=Se.current,t!==null&&(t.flags|=32),Re}function de(t,e,n){(t===xt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(al(t,0),Nn(t,dt,Re,!1)),_l(t,n),((_t&2)===0||t!==xt)&&(t===xt&&((_t&2)===0&&(ma|=n),jt===4&&Nn(t,dt,Re,!1)),Ze(t))}function nd(t,e,n){if((_t&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||bl(t,e),u=a?mp(t,e):Pc(t,e,!0),c=a;do{if(u===0){tl&&!a&&Nn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!hp(n)){u=Pc(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 v=t;u=$l;var R=v.current.memoizedState.isDehydrated;if(R&&(al(v,f).flags|=256),f=Pc(v,f,!1),f!==2){if(Yc&&!R){v.errorRecoveryDisabledLanes|=c,ma|=c,u=4;break t}c=he,he=u,c!==null&&(he===null?he=c:he.push.apply(he,c))}u=f}if(c=!1,u!==2)continue}}if(u===1){al(t,0),Nn(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:Nn(a,e,Re,!Dn);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=Su+300-ne(),10<u)){if(Nn(a,e,Re,!Dn),Di(a,0,!0)!==0)break t;mn=e,a.timeoutHandle=Ld(ad.bind(null,a,n,he,_u,Xc,e,Re,ma,el,Dn,c,"Throttled",-0,0),u);break t}ad(a,n,he,_u,Xc,e,Re,ma,el,Dn,c,null,-0,0)}}break}while(!0);Ze(t)}function ad(t,e,n,a,u,c,f,v,R,x,N,H,z,U){if(t.timeoutHandle=-1,H=e.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ie},Fh(e,c,H);var F=(c&62914560)===c?Su-ne():(c&4194048)===c?$h-ne():0;if(F=kp(H,F),F!==null){mn=c,t.cancelPendingCommit=F(fd.bind(null,t,e,c,n,a,u,f,v,R,N,H,null,z,U)),Nn(t,c,f,!x);return}}fd(t,e,c,n,a,u,f,v,R)}function hp(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(!pe(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 Nn(t,e,n,a){e&=~Gc,e&=~ma,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&&hr(t,n,e)}function Ru(){return(_t&6)===0?(ei(0),!1):!0}function Jc(){if(ft!==null){if(Et===0)var t=ft.return;else t=ft,nn=ia=null,oc(t),Ja=null,jl=0,t=ft;for(;t!==null;)wh(t.alternate,t),t=t.return;ft=null}}function al(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Up(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),mn=0,Jc(),xt=t,ft=n=tn(t.current,null),dt=e,Et=0,_e=null,Dn=!1,tl=bl(t,e),Yc=!1,el=Re=Gc=ma=Un=jt=0,he=$l=null,Xc=!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 dn=e,Xi(),n}function ld(t,e){st=null,w.H=Kl,e===Za||e===Wi?(e=bf(),Et=3):e===Ws?(e=bf(),Et=4):Et=e===Mc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,ft===null&&(jt=1,fu(t,xe(e,t.current)))}function id(){var t=Se.current;return t===null?!0:(dt&4194048)===dt?Le===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Le:!1}function ud(){var t=w.H;return w.H=Kl,t===null?Kl:t}function sd(){var t=w.A;return w.A=rp,t}function Eu(){jt=4,Dn||(dt&4194048)!==dt&&Se.current!==null||(tl=!0),(Un&134217727)===0&&(ma&134217727)===0||xt===null||Nn(xt,dt,Re,!1)}function Pc(t,e,n){var a=_t;_t|=2;var u=ud(),c=sd();(xt!==t||dt!==e)&&(_u=null,al(t,e)),e=!1;var f=jt;t:do try{if(Et!==0&&ft!==null){var v=ft,R=_e;switch(Et){case 8:Jc(),f=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var x=Et;if(Et=0,_e=null,ll(t,v,R,x),n&&tl){f=0;break t}break;default:x=Et,Et=0,_e=null,ll(t,v,R,x)}}dp(),f=jt;break}catch(N){ld(t,N)}while(!0);return e&&t.shellSuspendCounter++,nn=ia=null,_t=a,w.H=u,w.A=c,ft===null&&(xt=null,dt=0,Xi()),f}function dp(){for(;ft!==null;)cd(ft)}function mp(t,e){var n=_t;_t|=2;var a=ud(),u=sd();xt!==t||dt!==e?(_u=null,bu=ne()+500,al(t,e)):tl=bl(t,e);t:do try{if(Et!==0&&ft!==null){e=ft;var c=_e;e:switch(Et){case 1:Et=0,_e=null,ll(t,e,c,1);break;case 2:case 9:if(gf(c)){Et=0,_e=null,od(e);break}e=function(){Et!==2&&Et!==9||xt!==t||(Et=7),Ze(t)},c.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:gf(c)?(Et=0,_e=null,od(e)):(Et=0,_e=null,ll(t,e,c,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var v=ft;if(f?Pd(f):v.stateNode.complete){Et=0,_e=null;var R=v.sibling;if(R!==null)ft=R;else{var x=v.return;x!==null?(ft=x,Tu(x)):ft=null}break e}}Et=0,_e=null,ll(t,e,c,5);break;case 6:Et=0,_e=null,ll(t,e,c,6);break;case 8:Jc(),jt=6;break t;default:throw Error(o(462))}}yp();break}catch(N){ld(t,N)}while(!0);return nn=ia=null,w.H=a,w.A=u,_t=n,ft!==null?0:(xt=null,dt=0,Xi(),jt)}function yp(){for(;ft!==null&&!Ci();)cd(ft)}function cd(t){var e=Uh(t.alternate,t,dn);t.memoizedProps=t.pendingProps,e===null?Tu(t):ft=e}function od(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Oh(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Oh(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:oc(e);default:wh(n,e),e=ft=sf(e,dn),e=Uh(n,e,dn)}t.memoizedProps=t.pendingProps,e===null?Tu(t):ft=e}function ll(t,e,n,a){nn=ia=null,oc(e),Ja=null,jl=0;var u=e.return;try{if(ap(t,u,e,n,dt)){jt=1,fu(t,xe(n,t.current)),ft=null;return}}catch(c){if(u!==null)throw ft=u,c;jt=1,fu(t,xe(n,t.current)),ft=null;return}e.flags&32768?(yt||a===1?t=!0:tl||(dt&536870912)!==0?t=!1:(Dn=t=!0,(a===2||a===9||a===3||a===6)&&(a=Se.current,a!==null&&a.tag===13&&(a.flags|=16384))),rd(e,t)):Tu(e)}function Tu(t){var e=t;do{if((e.flags&32768)!==0){rd(e,Dn);return}t=e.return;var n=up(e.alternate,e,dn);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 rd(t,e){do{var n=sp(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 fd(t,e,n,a,u,c,f,v,R){t.cancelPendingCommit=null;do Mu();while(Zt!==0);if((_t&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Bs,Py(t,n,c,f,v,R),t===xt&&(ft=xt=null,dt=0),nl=e,wn=t,mn=n,Vc=c,Kc=u,td=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Sp(Ma,function(){return vd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=w.T,w.T=null,u=V.p,V.p=2,f=_t,_t|=4;try{cp(t,e,n)}finally{_t=f,V.p=u,w.T=a}}Zt=1,hd(),dd(),md()}}function hd(){if(Zt===1){Zt=0;var t=wn,e=nl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=w.T,w.T=null;var a=V.p;V.p=2;var u=_t;_t|=4;try{Zh(e,t);var c=uo,f=Wr(t.containerInfo),v=c.focusedElem,R=c.selectionRange;if(f!==v&&v&&v.ownerDocument&&kr(v.ownerDocument.documentElement,v)){if(R!==null&&Ds(v)){var x=R.start,N=R.end;if(N===void 0&&(N=x),"selectionStart"in v)v.selectionStart=x,v.selectionEnd=Math.min(N,v.value.length);else{var H=v.ownerDocument||document,z=H&&H.defaultView||window;if(z.getSelection){var U=z.getSelection(),F=v.textContent.length,it=Math.min(R.start,F),Ct=R.end===void 0?it:Math.min(R.end,F);!U.extend&&it>Ct&&(f=Ct,Ct=it,it=f);var C=Fr(v,it),T=Fr(v,Ct);if(C&&T&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==T.node||U.focusOffset!==T.offset)){var A=H.createRange();A.setStart(C.node,C.offset),U.removeAllRanges(),it>Ct?(U.addRange(A),U.extend(T.node,T.offset)):(A.setEnd(T.node,T.offset),U.addRange(A))}}}}for(H=[],U=v;U=U.parentNode;)U.nodeType===1&&H.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<H.length;v++){var B=H[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ju=!!io,uo=io=null}finally{_t=u,V.p=a,w.T=n}}t.current=e,Zt=2}}function dd(){if(Zt===2){Zt=0;var t=wn,e=nl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=w.T,w.T=null;var a=V.p;V.p=2;var u=_t;_t|=4;try{Yh(t,e.alternate,e)}finally{_t=u,V.p=a,w.T=n}}Zt=3}}function md(){if(Zt===4||Zt===3){Zt=0,os();var t=wn,e=nl,n=mn,a=td;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,nl=wn=null,yd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Ln=null),hs(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(Sl,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=w.T,u=V.p,V.p=2,w.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var v=a[f];c(v.value,{componentStack:v.stack})}}finally{w.T=e,V.p=u}}(mn&3)!==0&&Mu(),Ze(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Zc?ti++:(ti=0,Zc=t):ti=0,ei(0)}}function yd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Nl(e)))}function Mu(){return hd(),dd(),md(),vd()}function vd(){if(Zt!==5)return!1;var t=wn,e=Vc;Vc=0;var n=hs(mn),a=w.T,u=V.p;try{V.p=32>n?32:n,w.T=null,n=Kc,Kc=null;var c=wn,f=mn;if(Zt=0,nl=wn=null,mn=0,(_t&6)!==0)throw Error(o(331));var v=_t;if(_t|=4,Wh(c.current),Ph(c,c.current,f,n),_t=v,ei(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(Sl,c)}catch{}return!0}finally{V.p=u,w.T=a,yd(t,e)}}function pd(t,e,n){e=xe(n,e),e=Tc(t.stateNode,e,2),t=Cn(t,e,2),t!==null&&(_l(t,2),Ze(t))}function Tt(t,e,n){if(t.tag===3)pd(t,t,n);else for(;e!==null;){if(e.tag===3){pd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ln===null||!Ln.has(a))){t=xe(n,t),n=gh(2),a=Cn(e,n,2),a!==null&&(Sh(n,a,e,t),_l(a,2),Ze(a));break}}e=e.return}}function Fc(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new fp;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)||(Yc=!0,u.add(n),t=vp.bind(null,t,e,n),e.then(t,t))}function vp(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,xt===t&&(dt&n)===n&&(jt===4||jt===3&&(dt&62914560)===dt&&300>ne()-Su?(_t&2)===0&&al(t,0):Gc|=n,el===dt&&(el=0)),Ze(t)}function gd(t,e){e===0&&(e=fr()),t=na(t,e),t!==null&&(_l(t,e),Ze(t))}function pp(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),gd(t,n)}function gp(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),gd(t,n)}function Sp(t,e){return je(t,e)}var Ou=null,il=null,kc=!1,Cu=!1,Wc=!1,Bn=0;function Ze(t){t!==il&&t.next===null&&(il===null?Ou=il=t:il=il.next=t),Cu=!0,kc||(kc=!0,_p())}function ei(t,e){if(!Wc&&Cu){Wc=!0;do for(var n=!1,a=Ou;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var f=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-ve(42|t)+1)-1,c&=u&~(f&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Rd(a,c))}else c=dt,c=Di(a,a===xt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||bl(a,c)||(n=!0,Rd(a,c));a=a.next}while(n);Wc=!1}}function bp(){Sd()}function Sd(){Cu=kc=!1;var t=0;Bn!==0&&Dp()&&(t=Bn);for(var e=ne(),n=null,a=Ou;a!==null;){var u=a.next,c=bd(a,e);c===0?(a.next=null,n===null?Ou=u:n.next=u,u===null&&(il=n)):(n=a,(t!==0||(c&3)!==0)&&(Cu=!0)),a=u}Zt!==0&&Zt!==5||ei(t),Bn!==0&&(Bn=0)}function bd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-ve(c),v=1<<f,R=u[f];R===-1?((v&n)===0||(v&a)!==0)&&(u[f]=Jy(v,e)):R<=e&&(t.expiredLanes|=v),c&=~v}if(e=xt,n=dt,n=Di(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&gl(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||bl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&gl(a),hs(n)){case 2:case 8:n=Ge;break;case 32:n=Ma;break;case 268435456:n=rr;break;default:n=Ma}return a=_d.bind(null,t),n=je(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&gl(a),t.callbackPriority=2,t.callbackNode=null,2}function _d(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Mu()&&t.callbackNode!==n)return null;var a=dt;return a=Di(t,t===xt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(nd(t,a,e),bd(t,ne()),t.callbackNode!=null&&t.callbackNode===n?_d.bind(null,t):null)}function Rd(t,e){if(Mu())return null;nd(t,e,!0)}function _p(){Lp(function(){(_t&6)!==0?je(kt,bp):Sd()})}function Ic(){if(Bn===0){var t=Va;t===0&&(t=Ai,Ai<<=1,(Ai&261888)===0&&(Ai=256)),Bn=t}return Bn}function Ed(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ni(""+t)}function Td(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 Rp(t,e,n,a,u){if(e==="submit"&&n&&n.stateNode===u){var c=Ed((u[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?Ed(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var v=new qi("action","action",null,a,u);t.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Bn!==0){var R=f?Td(u,f):new FormData(u);gc(n,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(v.preventDefault(),R=f?Td(u,f):new FormData(u),gc(n,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var $c=0;$c<Ns.length;$c++){var to=Ns[$c],Ep=to.toLowerCase(),Tp=to[0].toUpperCase()+to.slice(1);He(Ep,"on"+Tp)}He(tf,"onAnimationEnd"),He(ef,"onAnimationIteration"),He(nf,"onAnimationStart"),He("dblclick","onDoubleClick"),He("focusin","onFocus"),He("focusout","onBlur"),He(Qv,"onTransitionRun"),He(Yv,"onTransitionStart"),He(Gv,"onTransitionCancel"),He(af,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),In("onBeforeInput",["compositionend","keypress","textInput","paste"]),In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ni="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(" "),Mp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ni));function Md(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 v=a[f],R=v.instance,x=v.currentTarget;if(v=v.listener,R!==c&&u.isPropagationStopped())break t;c=v,u.currentTarget=x;try{c(u)}catch(N){Gi(N)}u.currentTarget=null,c=R}else for(f=0;f<a.length;f++){if(v=a[f],R=v.instance,x=v.currentTarget,v=v.listener,R!==c&&u.isPropagationStopped())break t;c=v,u.currentTarget=x;try{c(u)}catch(N){Gi(N)}u.currentTarget=null,c=R}}}}function ht(t,e){var n=e[ds];n===void 0&&(n=e[ds]=new Set);var a=t+"__bubble";n.has(a)||(Od(e,t,2,!1),n.add(a))}function eo(t,e,n){var a=0;e&&(a|=4),Od(n,t,a,e)}var Au="_reactListening"+Math.random().toString(36).slice(2);function no(t){if(!t[Au]){t[Au]=!0,gr.forEach(function(n){n!=="selectionchange"&&(Mp.has(n)||eo(n,!1,t),eo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Au]||(e[Au]=!0,eo("selectionchange",!1,e))}}function Od(t,e,n,a){switch(em(e)){case 2:var u=$p;break;case 8:u=tg;break;default:u=go}n=u.bind(null,e,n,t),u=void 0,!Rs||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 ao(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 v=a.stateNode.containerInfo;if(v===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(;v!==null;){if(f=Ca(v),f===null)return;if(R=f.tag,R===5||R===6||R===26||R===27){a=c=f;continue t}v=v.parentNode}}a=a.return}zr(function(){var x=c,N=bs(n),H=[];t:{var z=lf.get(t);if(z!==void 0){var U=qi,F=t;switch(t){case"keypress":if(ji(n)===0)break t;case"keydown":case"keyup":U=gv;break;case"focusin":F="focus",U=Os;break;case"focusout":F="blur",U=Os;break;case"beforeblur":case"afterblur":U=Os;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=Lr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=uv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=_v;break;case tf:case ef:case nf:U=ov;break;case af:U=Ev;break;case"scroll":case"scrollend":U=lv;break;case"wheel":U=Mv;break;case"copy":case"cut":case"paste":U=fv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Nr;break;case"toggle":case"beforetoggle":U=Cv}var it=(e&4)!==0,Ct=!it&&(t==="scroll"||t==="scrollend"),C=it?z!==null?z+"Capture":null:z;it=[];for(var T=x,A;T!==null;){var B=T;if(A=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||A===null||C===null||(B=Tl(T,C),B!=null&&it.push(ai(T,B,A))),Ct)break;T=T.return}0<it.length&&(z=new U(z,F,null,n,N),H.push({event:z,listeners:it}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",z&&n!==Ss&&(F=n.relatedTarget||n.fromElement)&&(Ca(F)||F[Oa]))break t;if((U||z)&&(z=N.window===N?N:(z=N.ownerDocument)?z.defaultView||z.parentWindow:window,U?(F=n.relatedTarget||n.toElement,U=x,F=F?Ca(F):null,F!==null&&(Ct=h(F),it=F.tag,F!==Ct||it!==5&&it!==27&&it!==6)&&(F=null)):(U=null,F=x),U!==F)){if(it=Lr,B="onMouseLeave",C="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(it=Nr,B="onPointerLeave",C="onPointerEnter",T="pointer"),Ct=U==null?z:El(U),A=F==null?z:El(F),z=new it(B,T+"leave",U,n,N),z.target=Ct,z.relatedTarget=A,B=null,Ca(N)===x&&(it=new it(C,T+"enter",F,n,N),it.target=A,it.relatedTarget=Ct,B=it),Ct=B,U&&F)e:{for(it=Op,C=U,T=F,A=0,B=C;B;B=it(B))A++;B=0;for(var nt=T;nt;nt=it(nt))B++;for(;0<A-B;)C=it(C),A--;for(;0<B-A;)T=it(T),B--;for(;A--;){if(C===T||T!==null&&C===T.alternate){it=C;break e}C=it(C),T=it(T)}it=null}else it=null;U!==null&&Cd(H,z,U,it,!1),F!==null&&Ct!==null&&Cd(H,Ct,F,it,!0)}}t:{if(z=x?El(x):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var gt=Xr;else if(Yr(z))if(Vr)gt=jv;else{gt=Nv;var I=wv}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&gs(x.elementType)&&(gt=Xr):gt=Bv;if(gt&&(gt=gt(t,x))){Gr(H,gt,n,N);break t}I&&I(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&ps(z,"number",z.value)}switch(I=x?El(x):window,t){case"focusin":(Yr(I)||I.contentEditable==="true")&&(Ba=I,Us=x,Ul=null);break;case"focusout":Ul=Us=Ba=null;break;case"mousedown":Ls=!0;break;case"contextmenu":case"mouseup":case"dragend":Ls=!1,Ir(H,n,N);break;case"selectionchange":if(qv)break;case"keydown":case"keyup":Ir(H,n,N)}var ot;if(As)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 Na?qr(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Br&&n.locale!=="ko"&&(Na||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Na&&(ot=Dr()):(bn=N,Es="value"in bn?bn.value:bn.textContent,Na=!0)),I=xu(x,mt),0<I.length&&(mt=new wr(mt,t,null,n,N),H.push({event:mt,listeners:I}),ot?mt.data=ot:(ot=Qr(n),ot!==null&&(mt.data=ot)))),(ot=xv?zv(t,n):Dv(t,n))&&(mt=xu(x,"onBeforeInput"),0<mt.length&&(I=new wr("onBeforeInput","beforeinput",null,n,N),H.push({event:I,listeners:mt}),I.data=ot)),Rp(H,t,x,n,N)}Md(H,e)})}function ai(t,e,n){return{instance:t,listener:e,currentTarget:n}}function xu(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=Tl(t,n),u!=null&&a.unshift(ai(t,u,c)),u=Tl(t,e),u!=null&&a.push(ai(t,u,c))),t.tag===3)return a;t=t.return}return[]}function Op(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Cd(t,e,n,a,u){for(var c=e._reactName,f=[];n!==null&&n!==a;){var v=n,R=v.alternate,x=v.stateNode;if(v=v.tag,R!==null&&R===a)break;v!==5&&v!==26&&v!==27||x===null||(R=x,u?(x=Tl(n,c),x!=null&&f.unshift(ai(n,x,R))):u||(x=Tl(n,c),x!=null&&f.push(ai(n,x,R)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Cp=/\r\n?/g,Ap=/\u0000|\uFFFD/g;function Ad(t){return(typeof t=="string"?t:""+t).replace(Cp,`
9
- `).replace(Ap,"")}function xd(t,e){return e=Ad(e),Ad(t)===e}function Ot(t,e,n,a,u,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ua(t,""+a);break;case"className":Li(t,"class",a);break;case"tabIndex":Li(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Li(t,n,a);break;case"style":Ar(t,a,c);break;case"data":if(e!=="object"){Li(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=Ni(""+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"&&Ot(t,e,"name",u.name,u,null),Ot(t,e,"formEncType",u.formEncType,u,null),Ot(t,e,"formMethod",u.formMethod,u,null),Ot(t,e,"formTarget",u.formTarget,u,null)):(Ot(t,e,"encType",u.encType,u,null),Ot(t,e,"method",u.method,u,null),Ot(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ni(""+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=Ni(""+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),Ui(t,"popover",a);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ui(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=nv.get(n)||n,Ui(t,n,a))}}function lo(t,e,n,a,u,c){switch(n){case"style":Ar(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"?Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&Ua(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(!Sr.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[se]||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,""):Ui(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:Ot(t,e,c,f,n,null)}}u&&Ot(t,e,"srcSet",n.srcSet,n,null),a&&Ot(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var v=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":v=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:Ot(t,e,a,N,n,null)}}Tr(t,c,v,R,x,f,u,!1);return;case"select":ht("invalid",t),a=f=c=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":a=v;default:Ot(t,e,u,v,n,null)}e=c,n=f,t.multiple=!!a,e!=null?Da(t,!!a,e,!1):n!=null&&Da(t,!!a,n,!0);return;case"textarea":ht("invalid",t),c=u=a=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":a=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Ot(t,e,f,v,n,null)}Or(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":Ot(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<ni.length;a++)ht(ni[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:Ot(t,e,x,a,n,null)}return;default:if(gs(e)){for(N in n)n.hasOwnProperty(N)&&(a=n[N],a!==void 0&&lo(t,e,N,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ot(t,e,v,a,n,null))}function xp(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,v=null,R=null,x=null,N=null;for(U in n){var H=n[U];if(n.hasOwnProperty(U)&&H!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":R=H;default:a.hasOwnProperty(U)||Ot(t,e,U,null,a,H)}}for(var z in a){var U=a[z];if(H=n[z],a.hasOwnProperty(z)&&(U!=null||H!=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":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:U!==H&&Ot(t,e,z,U,a,H)}}vs(t,f,v,R,x,N,c,u);return;case"select":U=f=v=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)||Ot(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":v=c;break;case"multiple":f=c;default:c!==R&&Ot(t,e,u,c,a,R)}e=v,n=f,a=U,z!=null?Da(t,!!n,z,!1):!!a!=!!n&&(e!=null?Da(t,!!n,e,!0):Da(t,!!n,n?[]:"",!1));return;case"textarea":U=z=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ot(t,e,v,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&&Ot(t,e,f,u,a,c)}Mr(t,z,U);return;case"option":for(var F in n)z=n[F],n.hasOwnProperty(F)&&z!=null&&!a.hasOwnProperty(F)&&(F==="selected"?t.selected=!1:Ot(t,e,F,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":Ot(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 it in n)z=n[it],n.hasOwnProperty(it)&&z!=null&&!a.hasOwnProperty(it)&&Ot(t,e,it,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:Ot(t,e,x,z,a,U)}return;default:if(gs(e)){for(var Ct in n)z=n[Ct],n.hasOwnProperty(Ct)&&z!==void 0&&!a.hasOwnProperty(Ct)&&lo(t,e,Ct,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||lo(t,e,N,z,a,U);return}}for(var C in n)z=n[C],n.hasOwnProperty(C)&&z!=null&&!a.hasOwnProperty(C)&&Ot(t,e,C,null,a,z);for(H in a)z=a[H],U=n[H],!a.hasOwnProperty(H)||z===U||z==null&&U==null||Ot(t,e,H,z,a,U)}function zd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zp(){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,v=u.duration;if(c&&v&&zd(f)){for(f=0,v=u.responseEnd,a+=1;a<n.length;a++){var R=n[a],x=R.startTime;if(x>v)break;var N=R.transferSize,H=R.initiatorType;N&&zd(H)&&(R=R.responseEnd,f+=N*(R<v?1:(v-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 io=null,uo=null;function zu(t){return t.nodeType===9?t:t.ownerDocument}function Dd(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 Ud(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 so(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 co=null;function Dp(){var t=window.event;return t&&t.type==="popstate"?t===co?!1:(co=t,!0):(co=null,!1)}var Ld=typeof setTimeout=="function"?setTimeout:void 0,Up=typeof clearTimeout=="function"?clearTimeout:void 0,wd=typeof Promise=="function"?Promise:void 0,Lp=typeof queueMicrotask=="function"?queueMicrotask:typeof wd<"u"?function(t){return wd.resolve(null).then(t).catch(wp)}:Ld;function wp(t){setTimeout(function(){throw t})}function jn(t){return t==="head"}function Nd(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),ol(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")li(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,li(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[Rl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&li(t.ownerDocument.body);n=u}while(n);ol(e)}function Bd(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 oo(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":oo(n),ms(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Np(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[Rl])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=we(t.nextSibling),t===null)break}return null}function Bp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=we(t.nextSibling),t===null))return null;return t}function jd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function ro(t){return t.data==="$?"||t.data==="$~"}function fo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function jp(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function we(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ho=null;function Hd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return we(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function qd(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 Qd(t,e,n){switch(e=zu(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 li(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ms(t)}var Ne=new Map,Yd=new Set;function Du(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=V.d;V.d={f:Hp,r:qp,D:Qp,C:Yp,L:Gp,m:Xp,X:Kp,S:Vp,M:Zp};function Hp(){var t=yn.f(),e=Ru();return t||e}function qp(t){var e=Aa(t);e!==null&&e.tag===5&&e.type==="form"?lh(e):yn.r(t)}var ul=typeof document>"u"?null:document;function Gd(t,e,n){var a=ul;if(a&&typeof e=="string"&&e){var u=Ce(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Yd.has(u)||(Yd.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ee(e,"link",t),Pt(e),a.head.appendChild(e)))}}function Qp(t){yn.D(t),Gd("dns-prefetch",t,null)}function Yp(t,e){yn.C(t,e),Gd("preconnect",t,e)}function Gp(t,e,n){yn.L(t,e,n);var a=ul;if(a&&t&&e){var u='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ce(n.imageSizes)+'"]')):u+='[href="'+Ce(t)+'"]';var c=u;switch(e){case"style":c=sl(t);break;case"script":c=cl(t)}Ne.has(c)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ne.set(c,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(ii(c))||e==="script"&&a.querySelector(ui(c))||(e=a.createElement("link"),ee(e,"link",t),Pt(e),a.head.appendChild(e)))}}function Xp(t,e){yn.m(t,e);var n=ul;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ce(a)+'"][href="'+Ce(t)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=cl(t)}if(!Ne.has(c)&&(t=g({rel:"modulepreload",href:t},e),Ne.set(c,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ui(c)))return}a=n.createElement("link"),ee(a,"link",t),Pt(a),n.head.appendChild(a)}}}function Vp(t,e,n){yn.S(t,e,n);var a=ul;if(a&&t){var u=xa(a).hoistableStyles,c=sl(t);e=e||"default";var f=u.get(c);if(!f){var v={loading:0,preload:null};if(f=a.querySelector(ii(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ne.get(c))&&mo(t,n);var R=f=a.createElement("link");Pt(R),ee(R,"link",t),R._p=new Promise(function(x,N){R.onload=x,R.onerror=N}),R.addEventListener("load",function(){v.loading|=1}),R.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Uu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:v},u.set(c,f)}}}function Kp(t,e){yn.X(t,e);var n=ul;if(n&&t){var a=xa(n).hoistableScripts,u=cl(t),c=a.get(u);c||(c=n.querySelector(ui(u)),c||(t=g({src:t,async:!0},e),(e=Ne.get(u))&&yo(t,e),c=n.createElement("script"),Pt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Zp(t,e){yn.M(t,e);var n=ul;if(n&&t){var a=xa(n).hoistableScripts,u=cl(t),c=a.get(u);c||(c=n.querySelector(ui(u)),c||(t=g({src:t,async:!0,type:"module"},e),(e=Ne.get(u))&&yo(t,e),c=n.createElement("script"),Pt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Xd(t,e,n,a){var u=(u=rt.current)?Du(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=sl(n.href),n=xa(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=sl(n.href);var c=xa(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(ii(t)))&&!c._p&&(f.instance=c,f.state.loading=5),Ne.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ne.set(t,n),c||Jp(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=cl(n),n=xa(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 sl(t){return'href="'+Ce(t)+'"'}function ii(t){return'link[rel="stylesheet"]['+t+"]"}function Vd(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function Jp(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),Pt(e),t.head.appendChild(e))}function cl(t){return'[src="'+Ce(t)+'"]'}function ui(t){return"script[async]"+t}function Kd(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(a)return e.instance=a,Pt(a),a;var u=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Pt(a),ee(a,"style",u),Uu(a,n.precedence,t),e.instance=a;case"stylesheet":u=sl(n.href);var c=t.querySelector(ii(u));if(c)return e.state.loading|=4,e.instance=c,Pt(c),c;a=Vd(n),(u=Ne.get(u))&&mo(a,u),c=(t.ownerDocument||t).createElement("link"),Pt(c);var f=c;return f._p=new Promise(function(v,R){f.onload=v,f.onerror=R}),ee(c,"link",a),e.state.loading|=4,Uu(c,n.precedence,t),e.instance=c;case"script":return c=cl(n.src),(u=t.querySelector(ui(c)))?(e.instance=u,Pt(u),u):(a=n,(u=Ne.get(c))&&(a=g({},n),yo(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Pt(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,Uu(a,n.precedence,t));return e.instance}function Uu(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 v=a[f];if(v.dataset.precedence===e)c=v;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 mo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function yo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Lu=null;function Zd(t,e,n){if(Lu===null){var a=new Map,u=Lu=new Map;u.set(n,a)}else u=Lu,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[Rl]||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 v=a.get(f);v?v.push(c):a.set(f,[c])}}return a}function Jd(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Pp(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 Pd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Fp(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=sl(a.href),c=e.querySelector(ii(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=wu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,Pt(c);return}c=e.ownerDocument||e,a=Vd(a),(u=Ne.get(u))&&mo(a,u),c=c.createElement("link"),Pt(c);var f=c;f._p=new Promise(function(v,R){f.onload=v,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=wu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var vo=0;function kp(t,e){return t.stylesheets&&t.count===0&&Bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&vo===0&&(vo=62500*zp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>vo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function wu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Nu=null;function Bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Nu=new Map,e.forEach(Wp,t),Nu=null,wu.call(t))}function Wp(t,e){if(!(e.state.loading&4)){var n=Nu.get(t);if(n)var a=n.get(null);else{n=new Map,Nu.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=wu.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 si={$$typeof:X,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function Ip(t,e,n,a,u,c,f,v,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=rs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.hiddenUpdates=rs(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 Fd(t,e,n,a,u,c,f,v,R,x,N,H){return t=new Ip(t,e,n,f,R,x,N,H,v),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=Ps(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},Is(c),t}function kd(t){return t?(t=qa,t):qa}function Wd(t,e,n,a,u,c){u=kd(u),a.context===null?a.context=u:a.pendingContext=u,a=On(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Cn(t,a,e),n!==null&&(de(n,t,e),ql(n,t,e))}function Id(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function po(t,e){Id(t,e),(t=t.alternate)&&Id(t,e)}function $d(t){if(t.tag===13||t.tag===31){var e=na(t,67108864);e!==null&&de(e,t,67108864),po(t,67108864)}}function tm(t){if(t.tag===13||t.tag===31){var e=Ee();e=fs(e);var n=na(t,e);n!==null&&de(n,t,e),po(t,e)}}var ju=!0;function $p(t,e,n,a){var u=w.T;w.T=null;var c=V.p;try{V.p=2,go(t,e,n,a)}finally{V.p=c,w.T=u}}function tg(t,e,n,a){var u=w.T;w.T=null;var c=V.p;try{V.p=8,go(t,e,n,a)}finally{V.p=c,w.T=u}}function go(t,e,n,a){if(ju){var u=So(a);if(u===null)ao(t,e,a,Hu,n),nm(t,a);else if(ng(u,t,e,n,a))a.stopPropagation();else if(nm(t,a),e&4&&-1<eg.indexOf(t)){for(;u!==null;){var c=Aa(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Wn(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var R=1<<31-ve(f);v.entanglements[1]|=R,f&=~R}Ze(c),(_t&6)===0&&(bu=ne()+500,ei(0))}}break;case 31:case 13:v=na(c,2),v!==null&&de(v,c,2),Ru(),po(c,2)}if(c=So(a),c===null&&ao(t,e,a,Hu,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else ao(t,e,a,null,n)}}function So(t){return t=bs(t),bo(t)}var Hu=null;function bo(t){if(Hu=null,t=Ca(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=p(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 Hu=t,null}function em(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(zt()){case kt:return 2;case Ge:return 8;case Ma:case Yy:return 32;case rr:return 268435456;default:return 32}default:return 32}}var _o=!1,Hn=null,qn=null,Qn=null,ci=new Map,oi=new Map,Yn=[],eg="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 nm(t,e){switch(t){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":ci.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(e.pointerId)}}function ri(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=Aa(e),e!==null&&$d(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function ng(t,e,n,a,u){switch(e){case"focusin":return Hn=ri(Hn,t,e,n,a,u),!0;case"dragenter":return qn=ri(qn,t,e,n,a,u),!0;case"mouseover":return Qn=ri(Qn,t,e,n,a,u),!0;case"pointerover":var c=u.pointerId;return ci.set(c,ri(ci.get(c)||null,t,e,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,oi.set(c,ri(oi.get(c)||null,t,e,n,a,u)),!0}return!1}function am(t){var e=Ca(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,vr(t.priority,function(){tm(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,vr(t.priority,function(){tm(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 qu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=So(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Ss=a,n.target.dispatchEvent(a),Ss=null}else return e=Aa(n),e!==null&&$d(e),t.blockedOn=n,!1;e.shift()}return!0}function lm(t,e,n){qu(t)&&n.delete(e)}function ag(){_o=!1,Hn!==null&&qu(Hn)&&(Hn=null),qn!==null&&qu(qn)&&(qn=null),Qn!==null&&qu(Qn)&&(Qn=null),ci.forEach(lm),oi.forEach(lm)}function Qu(t,e){t.blockedOn===e&&(t.blockedOn=null,_o||(_o=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ag)))}var Yu=null;function im(t){Yu!==t&&(Yu=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Yu===t&&(Yu=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(bo(a||n)===null)continue;break}var c=Aa(n);c!==null&&(t.splice(e,3),e-=3,gc(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function ol(t){function e(R){return Qu(R,t)}Hn!==null&&Qu(Hn,t),qn!==null&&Qu(qn,t),Qn!==null&&Qu(Qn,t),ci.forEach(e),oi.forEach(e);for(var n=0;n<Yn.length;n++){var a=Yn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Yn.length&&(n=Yn[0],n.blockedOn===null);)am(n),n.blockedOn===null&&Yn.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[se]||null;if(typeof c=="function")f||im(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,f=c[se]||null)v=f.formAction;else if(bo(u)!==null)continue}else v=f.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),im(n)}}}function um(){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 Ro(t){this._internalRoot=t}Gu.prototype.render=Ro.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Ee();Wd(n,a,t,e,null,null)},Gu.prototype.unmount=Ro.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Wd(t.current,2,null,t,null,null),Ru(),e[Oa]=null}};function Gu(t){this._internalRoot=t}Gu.prototype.unstable_scheduleHydration=function(t){if(t){var e=yr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Yn.length&&e!==0&&e<Yn[n].priority;n++);Yn.splice(n,0,t),n===0&&am(t)}};var sm=i.version;if(sm!=="19.2.0")throw Error(o(527,sm,"19.2.0"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var lg={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xu.isDisabled&&Xu.supportsFiber)try{Sl=Xu.inject(lg),ye=Xu}catch{}}return hi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",u=mh,c=yh,f=vh;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=Fd(t,1,!1,null,null,n,a,null,u,c,f,um),t[Oa]=e.current,no(t),new Ro(e)},hi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,u="",c=mh,f=yh,v=vh,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&&(v=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),e=Fd(t,1,!0,e,n??null,a,u,R,c,f,v,um),e.context=kd(null),n=e.current,a=Ee(),a=fs(a),u=On(a),u.callback=null,Cn(n,u,a),n=a,e.current.lanes=n,_l(e,n),Ze(e),t[Oa]=e.current,no(t),new Gu(e)},hi.version="19.2.0",hi}var pm;function mg(){if(pm)return Mo.exports;pm=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(),Mo.exports=dg(),Mo.exports}var PS=mg(),yl=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(){}},yg=class extends yl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(typeof window<"u"&&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"}},$o=new yg,vg={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},pg=class{#t=vg;#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)}},va=new pg;function gg(l){setTimeout(l,0)}var Sg=typeof window>"u"||"Deno"in globalThis;function ue(){}function bg(l,i){return typeof l=="function"?l(i):l}function Yo(l){return typeof l=="number"&&l>=0&&l!==1/0}function ny(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Jn(l,i){return typeof l=="function"?l(i):l}function Te(l,i){return typeof l=="function"?l(i):l}function gm(l,i){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:d,stale:p}=l;if(d){if(o){if(i.queryHash!==tr(d,i.options))return!1}else if(!Si(i.queryKey,d))return!1}if(s!=="all"){const y=i.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||r&&r!==i.state.fetchStatus||h&&!h(i))}function Sm(l,i){const{exact:s,status:o,predicate:r,mutationKey:h}=l;if(h){if(!i.options.mutationKey)return!1;if(s){if(Ra(i.options.mutationKey)!==Ra(h))return!1}else if(!Si(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function tr(l,i){return(i?.queryKeyHashFn||Ra)(l)}function Ra(l){return JSON.stringify(l,(i,s)=>Go(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Si(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(s=>Si(l[s],i[s])):!1}var _g=Object.prototype.hasOwnProperty;function ay(l,i,s=0){if(l===i)return l;if(s>500)return i;const o=bm(l)&&bm(i);if(!o&&!(Go(l)&&Go(i)))return i;const h=(o?l:Object.keys(l)).length,d=o?i:Object.keys(i),p=d.length,y=o?new Array(p):{};let m=0;for(let S=0;S<p;S++){const g=o?S:d[S],b=l[g],_=i[g];if(b===_){y[g]=b,(o?S<h:_g.call(l,g))&&m++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){y[g]=_;continue}const E=ay(b,_,s+1);y[g]=E,E===b&&m++}return h===p&&m===h?l:y}function $u(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 bm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Go(l){if(!_m(l))return!1;const i=l.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!_m(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function _m(l){return Object.prototype.toString.call(l)==="[object Object]"}function Rg(l){return new Promise(i=>{va.setTimeout(i,l)})}function Xo(l,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,i):s.structuralSharing!==!1?ay(l,i):i}function Eg(l,i,s=0){const o=[...l,i];return s&&o.length>s?o.slice(1):o}function Tg(l,i,s=0){const o=[i,...l];return s&&o.length>s?o.slice(0,-1):o}var er=Symbol();function ly(l,i){return!l.queryFn&&i?.initialPromise?()=>i.initialPromise:!l.queryFn||l.queryFn===er?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function nr(l,i){return typeof l=="function"?l(...i):!!l}function Mg(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 bi=(()=>{let l=()=>Sg;return{isServer(){return l()},setIsServer(i){l=i}}})();function Vo(){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 Og=gg;function Cg(){let l=[],i=0,s=p=>{p()},o=p=>{p()},r=Og;const h=p=>{i?l.push(p):r(()=>{s(p)})},d=()=>{const p=l;l=[],p.length&&r(()=>{o(()=>{p.forEach(y=>{s(y)})})})};return{batch:p=>{let y;i++;try{y=p()}finally{i--,i||d()}return y},batchCalls:p=>(...y)=>{h(()=>{p(...y)})},schedule:h,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{o=p},setScheduler:p=>{r=p}}}var Jt=Cg(),Ag=class extends yl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(typeof window<"u"&&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}},ts=new Ag;function xg(l){return Math.min(1e3*2**l,3e4)}function iy(l){return(l??"online")==="online"?ts.isOnline():!0}var Ko=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function uy(l){let i=!1,s=0,o;const r=Vo(),h=()=>r.status!=="pending",d=O=>{if(!h()){const L=new Ko(O);b(L),l.onCancel?.(L)}},p=()=>{i=!0},y=()=>{i=!1},m=()=>$o.isFocused()&&(l.networkMode==="always"||ts.isOnline())&&l.canRun(),S=()=>iy(l.networkMode)&&l.canRun(),g=O=>{h()||(o?.(),r.resolve(O))},b=O=>{h()||(o?.(),r.reject(O))},_=()=>new Promise(O=>{o=L=>{(h()||m())&&O(L)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),E=()=>{if(h())return;let O;const L=s===0?l.initialPromise:void 0;try{O=L??l.fn()}catch(D){O=Promise.reject(D)}Promise.resolve(O).then(g).catch(D=>{if(h())return;const Q=l.retry??(bi.isServer()?0:3),X=l.retryDelay??xg,G=typeof X=="function"?X(s,D):X,$=Q===!0||typeof Q=="number"&&s<Q||typeof Q=="function"&&Q(s,D);if(i||!$){b(D);return}s++,l.onFail?.(s,D),Rg(G).then(()=>m()?void 0:_()).then(()=>{i?b(D):E()})})};return{promise:r,status:()=>r.status,cancel:d,continue:()=>(o?.(),r),cancelRetry:p,continueRetry:y,canStart:S,start:()=>(S()?E():_().then(E),r)}}var sy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yo(this.gcTime)&&(this.#t=va.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(bi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(va.clearTimeout(this.#t),this.#t=void 0)}};function zg(l){return{onFetch:(i,s)=>{const o=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},y=0;const m=async()=>{let S=!1;const g=E=>{Mg(E,()=>i.signal,()=>S=!0)},b=ly(i.options,i.fetchOptions),_=async(E,O,L)=>{if(S)return Promise.reject(i.signal.reason);if(O==null&&E.pages.length)return Promise.resolve(E);const Q=(()=>{const J={client:i.client,queryKey:i.queryKey,pageParam:O,direction:L?"backward":"forward",meta:i.options.meta};return g(J),J})(),X=await b(Q),{maxPages:G}=i.options,$=L?Tg:Eg;return{pages:$(E.pages,X,G),pageParams:$(E.pageParams,O,G)}};if(r&&h.length){const E=r==="backward",O=E?cy:Zo,L={pages:h,pageParams:d},D=O(o,L);p=await _(L,D,E)}else{const E=l??h.length;do{const O=y===0?d[0]??o.initialPageParam:Zo(o,p);if(y>0&&O==null)break;p=await _(p,O),y++}while(y<E)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=m}}}function Zo(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 Dg(l,i){return i?Zo(l,i)!=null:!1}function Ug(l,i){return!i||!l.getPreviousPageParam?!1:cy(l,i)!=null}var Lg=class extends sy{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l){super(),this.#u=!1,this.#s=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#i=l.client,this.#a=this.#i.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#e=Em(this.options),this.state=l.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#l?.promise}setOptions(l){if(this.options={...this.#s,...l},l?._type&&(this.#t=l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Em(this.options);i.data!==void 0&&(this.setState(Rm(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(l,i){const s=Xo(this.state.data,l,this.options);return this.#c({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(l){this.#c({type:"setState",state:l})}cancel(l){const i=this.#l?.promise;return this.#l?.cancel(l),i?i.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>Te(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===er||!this.isFetched()}isFetched(){return 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:!ny(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#a.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.#l&&(this.#u||this.#r()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#c({type:"invalidate"})}async fetch(l,i){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(l&&this.setOptions(l),!this.options.queryFn){const y=this.observers.find(m=>m.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,s.signal)})},r=()=>{const y=ly(this.options,i),S=(()=>{const g={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#u=!1,this.options.persister?this.options.persister(y,S,this):y(S)},d=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return o(y),y})();(this.#t==="infinite"?zg(this.options.pages):this.options.behavior)?.onFetch(d,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#c({type:"fetch",meta:d.fetchOptions?.meta}),this.#l=uy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:y=>{y instanceof Ko&&y.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(y,m)=>{this.#c({type:"failed",failureCount:y,error:m})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const y=await this.#l.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Ko){if(y.silent)return this.#l.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#c({type:"error",error:y}),this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#c(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,...oy(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,...Rm(l.data,l.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=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),Jt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:l})})}};function oy(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iy(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Rm(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Em(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 ry=class extends yl{constructor(l,i){super(),this.options=i,this.#t=l,this.#u=null,this.#s=Vo(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#a=void 0;#i;#l;#s;#u;#r;#c;#m;#f;#h;#o;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Tm(this.#e,this.options)?this.#d():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Jo(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jo(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 Te(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&&!$u(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Mm(this.#e,s,this.options,i)&&this.#d(),this.updateResult(),o&&(this.#e!==s||Te(this.options.enabled,this.#e)!==Te(i.enabled,this.#e)||Jn(this.options.staleTime,this.#e)!==Jn(i.staleTime,this.#e))&&this.#v();const r=this.#p();o&&(this.#e!==s||Te(this.options.enabled,this.#e)!==Te(i.enabled,this.#e)||r!==this.#o)&&this.#g(r)}getOptimisticResult(l){const i=this.#t.getQueryCache().build(this.#t,l),s=this.createResult(i,l);return Ng(this,s)&&(this.#a=s,this.#l=this.options,this.#i=this.#e.state),s}getCurrentResult(){return this.#a}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.#y.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.#d({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(l){this.#R();let i=this.#e.fetch(this.options,l);return l?.throwOnError||(i=i.catch(ue)),i}#v(){this.#b();const l=Jn(this.options.staleTime,this.#e);if(bi.isServer()||this.#a.isStale||!Yo(l))return;const s=ny(this.#a.dataUpdatedAt,l)+1;this.#f=va.setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(l){this.#_(),this.#o=l,!(bi.isServer()||Te(this.options.enabled,this.#e)===!1||!Yo(this.#o)||this.#o===0)&&(this.#h=va.setInterval(()=>{(this.options.refetchIntervalInBackground||$o.isFocused())&&this.#d()},this.#o))}#S(){this.#v(),this.#g(this.#p())}#b(){this.#f!==void 0&&(va.clearTimeout(this.#f),this.#f=void 0)}#_(){this.#h!==void 0&&(va.clearInterval(this.#h),this.#h=void 0)}createResult(l,i){const s=this.#e,o=this.options,r=this.#a,h=this.#i,d=this.#l,y=l!==s?l.state:this.#n,{state:m}=l;let S={...m},g=!1,b;if(i._optimisticResults){const Y=this.hasListeners(),Z=!Y&&Tm(l,i),et=Y&&Mm(l,s,i,o);(Z||et)&&(S={...S,...oy(m.data,l.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:_,errorUpdatedAt:E,status:O}=S;b=S.data;let L=!1;if(i.placeholderData!==void 0&&b===void 0&&O==="pending"){let Y;r?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(Y=r.data,L=!0):Y=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,Y!==void 0&&(O="success",b=Xo(r?.data,Y,i),g=!0)}if(i.select&&b!==void 0&&!L)if(r&&b===h?.data&&i.select===this.#r)b=this.#c;else try{this.#r=i.select,b=i.select(b),b=Xo(r?.data,b,i),this.#c=b,this.#u=null}catch(Y){this.#u=Y}this.#u&&(_=this.#u,b=this.#c,E=Date.now(),O="error");const D=S.fetchStatus==="fetching",Q=O==="pending",X=O==="error",G=Q&&D,$=b!==void 0,q={status:O,fetchStatus:S.fetchStatus,isPending:Q,isSuccess:O==="success",isError:X,isInitialLoading:G,isLoading:G,data:b,dataUpdatedAt:S.dataUpdatedAt,error:_,errorUpdatedAt:E,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:D,isRefetching:D&&!Q,isLoadingError:X&&!$,isPaused:S.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:X&&$,isStale:ar(l,i),refetch:this.refetch,promise:this.#s,isEnabled:Te(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const Y=q.data!==void 0,Z=q.status==="error"&&!Y,et=vt=>{Z?vt.reject(q.error):Y&&vt.resolve(q.data)},W=()=>{const vt=this.#s=q.promise=Vo();et(vt)},ct=this.#s;switch(ct.status){case"pending":l.queryHash===s.queryHash&&et(ct);break;case"fulfilled":(Z||q.data!==ct.value)&&W();break;case"rejected":(!Z||q.error!==ct.reason)&&W();break}}return q}updateResult(){const l=this.#a,i=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#l=this.options,this.#i.data!==void 0&&(this.#m=this.#e),$u(i,l))return;this.#a=i;const s=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#y.size)return!0;const h=new Set(r??this.#y);return this.options.throwOnError&&h.add("error"),Object.keys(this.#a).some(d=>{const p=d;return this.#a[p]!==l[p]&&h.has(p)})};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){Jt.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function wg(l,i){return Te(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&Te(i.retryOnMount,l)===!1)}function Tm(l,i){return wg(l,i)||l.state.data!==void 0&&Jo(l,i,i.refetchOnMount)}function Jo(l,i,s){if(Te(i.enabled,l)!==!1&&Jn(i.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&ar(l,i)}return!1}function Mm(l,i,s,o){return(l!==i||Te(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&ar(l,s)}function ar(l,i){return Te(i.enabled,l)!==!1&&l.isStaleByTime(Jn(i.staleTime,l))}function Ng(l,i){return!$u(l.getCurrentResult(),i)}var Bg=class extends ry{constructor(l,i){super(l,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){l._type="infinite",super.setOptions(l)}getOptimisticResult(l){return l._type="infinite",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:d,isRefetchError:p}=o,y=s.fetchMeta?.fetchMore?.direction,m=d&&y==="forward",S=r&&y==="forward",g=d&&y==="backward",b=r&&y==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Dg(i,s.data),hasPreviousPage:Ug(i,s.data),isFetchNextPageError:m,isFetchingNextPage:S,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:p&&!m&&!g,isRefetching:h&&!S&&!b}}},jg=class extends sy{#t;#e;#n;#a;constructor(l){super(),this.#t=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#e=[],this.state=l.state||fy(),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.#a?.continue()??this.execute(this.state.variables)}async execute(l){const i=()=>{this.#i({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=uy({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,d)=>{this.#i({type:"failed",failureCount:h,error:d})},onPause:()=>{this.#i({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.#a.canStart();try{if(o)i();else{this.#i({type:"pending",variables:l,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(l,this,s);const d=await this.options.onMutate?.(l,s);d!==this.state.context&&this.#i({type:"pending",context:d,variables:l,isPaused:r})}const h=await this.#a.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.#i({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,l,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(d){Promise.reject(d)}throw this.#i({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#i(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),Jt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function fy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hg=class extends yl{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 jg({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=Vu(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=Vu(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=Vu(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=Vu(l);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Jt.batch(()=>{this.#t.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(l){const i={exact:!0,...l};return this.getAll().find(s=>Sm(i,s))}findAll(l={}){return this.getAll().filter(i=>Sm(l,i))}notify(l){Jt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return Jt.batch(()=>Promise.all(l.map(i=>i.continue().catch(ue))))}};function Vu(l){return l.options.scope?.id}var qg=class extends yl{#t;#e=void 0;#n;#a;constructor(l,i){super(),this.#t=l,this.setOptions(i),this.bindMethods(),this.#i()}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),$u(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Ra(i.mutationKey)!==Ra(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.#i(),this.#l(l)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#l()}mutate(l,i){return this.#a=i,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(l)}#i(){const l=this.#n?.state??fy();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}}#l(l){Jt.batch(()=>{if(this.#a&&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.#a.onSuccess?.(l.data,i,s,o)}catch(r){Promise.reject(r)}try{this.#a.onSettled?.(l.data,null,i,s,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#a.onError?.(l.error,i,s,o)}catch(r){Promise.reject(r)}try{this.#a.onSettled?.(void 0,l.error,i,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(i=>{i(this.#e)})})}},Qg=class extends yl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,i,s){const o=i.queryKey,r=i.queryHash??tr(o,i);let h=this.get(r);return h||(h=new Lg({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(){Jt.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=>gm(i,s))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(s=>gm(l,s)):i}notify(l){Jt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},FS=class{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l={}){this.#t=l.queryCache||new Qg,this.#e=l.mutationCache||new Hg,this.#n=l.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=$o.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#u=ts.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#u?.(),this.#u=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,d=bg(i,h);if(d!==void 0)return this.#t.build(this,o).setData(d,{...s,manual:!0})}setQueriesData(l,i,s){return Jt.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;Jt.batch(()=>{i.findAll(l).forEach(s=>{i.remove(s)})})}resetQueries(l,i){const s=this.#t;return Jt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const s={revert:!0,...i},o=Jt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,i={}){return Jt.batch(()=>(this.#t.findAll(l).forEach(s=>{s.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},i)))}refetchQueries(l,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=Jt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ue)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ue)}fetchQuery(l){const 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._type="infinite",this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l._type="infinite",this.ensureQueryData(l)}resumePausedMutations(){return ts.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.#a.set(Ra(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...this.#a.values()],s={};return i.forEach(o=>{Si(l,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(l,i){this.#i.set(Ra(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...this.#i.values()],s={};return i.forEach(o=>{Si(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=tr(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===er&&(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()}},hy=k.createContext(void 0),dy=l=>{const i=k.useContext(hy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},kS=({client:l,children:i})=>(k.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),lt.jsx(hy.Provider,{value:l,children:i})),my=k.createContext(!1),Yg=()=>k.useContext(my);my.Provider;function Gg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Xg=k.createContext(Gg()),Vg=()=>k.useContext(Xg),Kg=(l,i,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?nr(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(i.isReset()||(l.retryOnMount=!1))},Zg=l=>{k.useEffect(()=>{l.clearReset()},[l])},Jg=({result:l,errorResetBoundary:i,throwOnError:s,query:o,suspense:r})=>l.isError&&!i.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||nr(s,[l.error,o])),Pg=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))}},Fg=(l,i)=>l.isLoading&&l.isFetching&&!i,kg=(l,i)=>l?.suspense&&i.isPending,Om=(l,i,s)=>i.fetchOptimistic(l).catch(()=>{s.clearReset()});function yy(l,i,s){const o=Yg(),r=Vg(),h=dy(),d=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const p=h.getQueryCache().get(d.queryHash);d._optimisticResults=o?"isRestoring":"optimistic",Pg(d),Kg(d,r,p),Zg(r);const y=!h.getQueryCache().get(d.queryHash),[m]=k.useState(()=>new i(h,d)),S=m.getOptimisticResult(d),g=!o&&l.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(b=>{const _=g?m.subscribe(Jt.batchCalls(b)):ue;return m.updateResult(),_},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),k.useEffect(()=>{m.setOptions(d)},[d,m]),kg(d,S))throw Om(d,m,r);if(Jg({result:S,errorResetBoundary:r,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw S.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(d,S),d.experimental_prefetchInRender&&!bi.isServer()&&Fg(S,o)&&(y?Om(d,m,r):p?.promise)?.catch(ue).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?S:m.trackResult(S)}function WS(l,i){return yy(l,ry)}function IS(l,i){const s=dy(),[o]=k.useState(()=>new qg(s,l));k.useEffect(()=>{o.setOptions(l)},[o,l]);const r=k.useSyncExternalStore(k.useCallback(d=>o.subscribe(Jt.batchCalls(d)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=k.useCallback((d,p)=>{o.mutate(d,p).catch(ue)},[o]);if(r.error&&nr(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function $S(l,i){return yy(l,Bg)}var pi=typeof window<"u"?k.useLayoutEffect:k.useEffect;function xo(l){const i=k.useRef({value:l,prev:null}),s=i.current.value;return l!==s&&(i.current={value:l,prev:s}),i.current.prev}function Wg(l,i,s={},o={}){k.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 Ig(l){const i=k.useRef(null);return k.useImperativeHandle(l,()=>i.current,[]),i}var vy=!1;function _i(l){return l[l.length-1]}function $g(l){return typeof l=="function"}function Vn(l,i){return $g(l)?l(i):l}var t0=Object.prototype.hasOwnProperty,Cm=Object.prototype.propertyIsEnumerable,e0=()=>Object.create(null),ya=(l,i)=>pa(l,i,e0);function pa(l,i,s=()=>({}),o=0){if(l===i)return l;if(o>500)return i;const r=i,h=zm(l)&&zm(r);if(!h&&!(dl(l)&&dl(r)))return r;const d=h?l:Am(l);if(!d)return r;const p=h?r:Am(r);if(!p)return r;const y=d.length,m=p.length,S=h?new Array(m):s();let g=0;for(let b=0;b<m;b++){const _=h?b:p[b],E=l[_],O=r[_];if(E===O){S[_]=E,(h?b<y:t0.call(l,_))&&g++;continue}if(E===null||O===null||typeof E!="object"||typeof O!="object"){S[_]=O;continue}const L=pa(E,O,s,o+1);S[_]=L,L===E&&g++}return y===m&&g===y?l:S}function Am(l){const i=Object.getOwnPropertyNames(l);for(const r of i)if(!Cm.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(!Cm.call(l,r))return!1;o.push(r)}return o}function dl(l){if(!xm(l))return!1;const i=l.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!xm(s)||!s.hasOwnProperty("isPrototypeOf"))}function xm(l){return Object.prototype.toString.call(l)==="[object Object]"}function zm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Sa(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(!Sa(l[o],i[o],s))return!1;return!0}if(dl(l)&&dl(i)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const d in i)if((!o||i[d]!==void 0)&&!Sa(l[d],i[d],s))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const d in l)l[d]!==void 0&&r++;let h=0;for(const d in i)if((!o||i[d]!==void 0)&&(h++,h>r||!Sa(l[d],i[d],s)))return!1;return r===h}return!1}function ml(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 Ri(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function n0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Dm(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 n0(i)}var a0=["http:","https:","mailto:","tel:"];function es(l,i){if(!l)return!1;try{const s=new URL(l);return!i.has(s.protocol)}catch{return!1}}function di(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+=Dm(l.slice(s,r.index))+r[0],s=i.lastIndex;o=o+Dm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function l0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}function i0(l,i){if(l===i)return!0;if(l.length!==i.length)return!1;for(let s=0;s<l.length;s++)if(l[s]!==i[s])return!1;return!0}function vn(){throw new Error("Invariant failed")}function Ei(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 d=i.get(h);if(d)return r(d),d.value},set(h,d){if(i.size>=l&&s){const y=s;i.delete(y.key),y.next&&(s=y.next,y.next.prev=void 0),y===o&&(o=void 0)}const p=i.get(h);if(p)p.value=d,r(p);else{const y={key:h,value:d,prev:o};o&&(o.next=y),o=y,s||(s=y),i.set(h,y)}},clear(){i.clear(),s=void 0,o=void 0}}}var Kn=4,py=5;function u0(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 lr(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]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const p=l.length;return s[0]=2,s[1]=i,s[2]=i,s[3]=p,s[4]=p,s[5]=p,s}if(h.charCodeAt(0)===36)return s[0]=1,s[1]=i,s[2]=i+1,s[3]=r,s[4]=r,s[5]=r,s;const d=u0(h);if(d){const[p,y]=d,m=h.charCodeAt(p+1);if(m===45){if(p+2<h.length&&h.charCodeAt(p+2)===36){const S=p+3,g=y;if(S<g)return s[0]=3,s[1]=i+p,s[2]=i+S,s[3]=i+g,s[4]=i+y+1,s[5]=r,s}}else if(m===36){const S=p+1,g=p+2;return g===y?(s[0]=2,s[1]=i+p,s[2]=i+S,s[3]=i+g,s[4]=i+y+1,s[5]=l.length,s):(s[0]=1,s[1]=i+p,s[2]=i+g,s[3]=i+y,s[4]=i+y+1,s[5]=r,s)}}return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s}function us(l,i,s,o,r,h,d){d?.(s);let p=o;{const y=s.fullPath??s.from,m=y.length,S=s.options?.caseSensitive??l,g=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;p<m;){const _=lr(y,p,i);let E;const O=p,L=_[5];switch(p=L+1,h++,_[0]){case 0:{const D=y.substring(_[2],_[3]);if(S){const Q=r.static?.get(D);if(Q)E=Q;else{r.static??=new Map;const X=ga(s.fullPath??s.from);X.parent=r,X.depth=h,E=X,r.static.set(D,X)}}else{const Q=D.toLowerCase(),X=r.staticInsensitive?.get(Q);if(X)E=X;else{r.staticInsensitive??=new Map;const G=ga(s.fullPath??s.from);G.parent=r,G.depth=h,E=G,r.staticInsensitive.set(Q,G)}}break}case 1:{const D=y.substring(O,_[1]),Q=y.substring(_[4],L),X=S&&!!(D||Q),G=D?X?D:D.toLowerCase():void 0,$=Q?X?Q:Q.toLowerCase():void 0,J=!g&&r.dynamic?.find(q=>!q.skipOnParamError&&q.caseSensitive===X&&q.prefix===G&&q.suffix===$);if(J)E=J;else{const q=Do(1,s.fullPath??s.from,X,G,$);E=q,q.depth=h,q.parent=r,r.dynamic??=[],r.dynamic.push(q)}break}case 3:{const D=y.substring(O,_[1]),Q=y.substring(_[4],L),X=S&&!!(D||Q),G=D?X?D:D.toLowerCase():void 0,$=Q?X?Q:Q.toLowerCase():void 0,J=!g&&r.optional?.find(q=>!q.skipOnParamError&&q.caseSensitive===X&&q.prefix===G&&q.suffix===$);if(J)E=J;else{const q=Do(3,s.fullPath??s.from,X,G,$);E=q,q.parent=r,q.depth=h,r.optional??=[],r.optional.push(q)}break}case 2:{const D=y.substring(O,_[1]),Q=y.substring(_[4],L),X=S&&!!(D||Q),G=D?X?D:D.toLowerCase():void 0,$=Q?X?Q:Q.toLowerCase():void 0,J=Do(2,s.fullPath??s.from,X,G,$);E=J,J.parent=r,J.depth=h,r.wildcard??=[],r.wildcard.push(J)}}r=E}if(g&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=ga(s.fullPath??s.from);_.kind=py,_.parent=r,h++,_.depth=h,r.pathless??=[],r.pathless.push(_),r=_}const b=(s.path||!s.children)&&!s.isRoot;if(b&&y.endsWith("/")){const _=ga(s.fullPath??s.from);_.kind=Kn,_.parent=r,h++,_.depth=h,r.index=_,r=_}r.parse=s.options?.params?.parse??null,r.skipOnParamError=g,r.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,b&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const y of s.children)us(l,i,y,p,r,h,d)}function zo(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 Xn(l){if(l.pathless)for(const i of l.pathless)Xn(i);if(l.static)for(const i of l.static.values())Xn(i);if(l.staticInsensitive)for(const i of l.staticInsensitive.values())Xn(i);if(l.dynamic?.length){l.dynamic.sort(zo);for(const i of l.dynamic)Xn(i)}if(l.optional?.length){l.optional.sort(zo);for(const i of l.optional)Xn(i)}if(l.wildcard?.length){l.wildcard.sort(zo);for(const i of l.wildcard)Xn(i)}}function ga(l){return{kind:0,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 Do(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 s0(l,i){const s=ga("/"),o=new Uint16Array(6);for(const r of l)us(!1,o,r,1,s,0);Xn(s),i.masksTree=s,i.flatCache=Ei(1e3)}function c0(l,i){l||="/";const s=i.flatCache.get(l);if(s)return s;const o=ir(l,i.masksTree);return i.flatCache.set(l,o),o}function o0(l,i,s,o,r){l||="/",o||="/";const h=i?`case\0${l}`:l;let d=r.singleCache.get(h);return d||(d=ga("/"),us(i,new Uint16Array(6),{from:l},1,d,0),r.singleCache.set(h,d)),ir(o,d,s)}function r0(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=ir(l,i.segmentTree,s)}catch(d){if(d instanceof URIError)h=null;else throw d}return h&&(h.branch=d0(h.route)),i.matchCache.set(o,h),h}function f0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function h0(l,i=!1,s){const o=ga(l.fullPath),r=new Uint16Array(6),h={},d={};let p=0;return us(i,r,l,1,o,0,y=>{if(s?.(y,p),y.id in h&&vn(),h[y.id]=y,p!==0&&y.path){const m=f0(y.fullPath);(!d[m]||y.fullPath.endsWith("/"))&&(d[m]=y)}p++}),Xn(o),{processedTree:{segmentTree:o,singleCache:Ei(1e3),matchCache:Ei(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:d}}function ir(l,i,s=!1){const o=l.split("/"),r=y0(l,o,i,s);if(!r)return null;const[h]=gy(l,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function gy(l,i,s){const o=m0(s.node);let r=null;const h=Object.create(null);let d=s.extract?.part??0,p=s.extract?.node??0,y=s.extract?.path??0,m=s.extract?.segment??0;for(;p<o.length;d++,p++,y++,m++){const S=o[p];if(S.kind===Kn)break;if(S.kind===py){m--,d--,y--;continue}const g=i[d],b=y;if(g&&(y+=g.length),S.kind===1){r??=s.node.fullPath.split("/");const _=r[m],E=S.prefix?.length??0;if(_.charCodeAt(E)===123){const O=S.suffix?.length??0,L=_.substring(E+2,_.length-O-1),D=g.substring(E,g.length-O);h[L]=decodeURIComponent(D)}else{const O=_.substring(1);h[O]=decodeURIComponent(g)}}else if(S.kind===3){if(s.skipped&1<<p){d--,y=b-1;continue}r??=s.node.fullPath.split("/");const _=r[m],E=S.prefix?.length??0,O=S.suffix?.length??0,L=_.substring(E+3,_.length-O-1),D=S.suffix||S.prefix?g.substring(E,g.length-O):g;D&&(h[L]=decodeURIComponent(D))}else if(S.kind===2){const _=S,E=l.substring(b+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),O=decodeURIComponent(E);h["*"]=O,h._splat=O;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:d,node:p,path:y,segment:m}]}function d0(l){const i=[l];for(;l.parentRoute;)l=l.parentRoute,i.push(l);return i.reverse(),i}function m0(l){const i=Array(l.depth+1);do i[l.depth]=l,l=l.parent;while(l);return i}function y0(l,i,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!_i(i),h=r&&l!=="/",d=i.length-(r?1:0),p=[{node:s,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let y=null,m=null;for(;p.length;){const S=p.pop(),{node:g,index:b,skipped:_,depth:E,statics:O,dynamics:L,optionals:D}=S;let{extract:Q,rawParams:X,parsedParams:G}=S;if(g.kind===2&&g.route&&!Zu(m,S))continue;if(g.skipOnParamError){if(!Um(l,i,S))continue;X=S.rawParams,Q=S.extract,G=S.parsedParams}o&&g.route&&g.kind!==Kn&&Zu(y,S)&&(y=S);const $=b===d;if($&&(g.route&&(!h||g.kind===Kn||g.kind===2)&&Zu(m,S)&&(m=S),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const J=$?void 0:i[b];let q;if($&&g.index){const Y={node:g.index,index:b,skipped:_,depth:E+1,statics:O,dynamics:L,optionals:D,extract:Q,rawParams:X,parsedParams:G};let Z=!0;if(g.index.skipOnParamError&&(Um(l,i,Y)||(Z=!1)),Z){if(!L&&!D&&!_&&v0(O,d))return Y;Zu(m,Y)&&(m=Y)}}if(g.wildcard)for(let Y=g.wildcard.length-1;Y>=0;Y--){const Z=g.wildcard[Y],{prefix:et,suffix:W}=Z;if(!(et&&($||!(Z.caseSensitive?J:q??=J.toLowerCase()).startsWith(et)))){if(W){if($)continue;const ct=i.slice(b).join("/").slice(-W.length);if((Z.caseSensitive?ct:ct.toLowerCase())!==W)continue}p.push({node:Z,index:d,skipped:_,depth:E+1,statics:O,dynamics:L,optionals:D,extract:Q,rawParams:X,parsedParams:G})}}if(g.optional){const Y=_|1<<E,Z=E+1;for(let et=g.optional.length-1;et>=0;et--){const W=g.optional[et];p.push({node:W,index:b,skipped:Y,depth:Z,statics:O,dynamics:L,optionals:D,extract:Q,rawParams:X,parsedParams:G})}if(!$)for(let et=g.optional.length-1;et>=0;et--){const W=g.optional[et],{prefix:ct,suffix:vt}=W;if(ct||vt){const Ht=W.caseSensitive?J:q??=J.toLowerCase();if(ct&&!Ht.startsWith(ct)||vt&&!Ht.endsWith(vt))continue}p.push({node:W,index:b+1,skipped:_,depth:Z,statics:O,dynamics:L,optionals:D+Ku(d,b),extract:Q,rawParams:X,parsedParams:G})}}if(!$&&g.dynamic&&J)for(let Y=g.dynamic.length-1;Y>=0;Y--){const Z=g.dynamic[Y],{prefix:et,suffix:W}=Z;if(et||W){const ct=Z.caseSensitive?J:q??=J.toLowerCase();if(et&&!ct.startsWith(et)||W&&!ct.endsWith(W))continue}p.push({node:Z,index:b+1,skipped:_,depth:E+1,statics:O,dynamics:L+Ku(d,b),optionals:D,extract:Q,rawParams:X,parsedParams:G})}if(!$&&g.staticInsensitive){const Y=g.staticInsensitive.get(q??=J.toLowerCase());Y&&p.push({node:Y,index:b+1,skipped:_,depth:E+1,statics:O+Ku(d,b),dynamics:L,optionals:D,extract:Q,rawParams:X,parsedParams:G})}if(!$&&g.static){const Y=g.static.get(J);Y&&p.push({node:Y,index:b+1,skipped:_,depth:E+1,statics:O+Ku(d,b),dynamics:L,optionals:D,extract:Q,rawParams:X,parsedParams:G})}if(g.pathless){const Y=E+1;for(let Z=g.pathless.length-1;Z>=0;Z--){const et=g.pathless[Z];p.push({node:et,index:b,skipped:_,depth:Y,statics:O,dynamics:L,optionals:D,extract:Q,rawParams:X,parsedParams:G})}}}if(m)return m;if(o&&y){let S=y.index;for(let b=0;b<y.index;b++)S+=i[b].length;const g=S===l.length?"/":l.slice(S);return y.rawParams??=Object.create(null),y.rawParams["**"]=decodeURIComponent(g),y}return null}function Ku(l,i){return 2**(l-i-1)}function v0(l,i){return l===2**(i-1)-1}function Um(l,i,s){try{const[o,r]=gy(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 Zu(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===Kn)>(l.node.kind===Kn)||i.node.kind===Kn==(l.node.kind===Kn)&&i.depth>l.depth))):!0}function Fu(l){return ur(l.filter(i=>i!==void 0).join("/"))}function ur(l){return l.replace(/\/{2,}/g,"/")}function Sy(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function Pn(l){const i=l.length;return i>1&&l[i-1]==="/"?l.replace(/\/{1,}$/,""):l}function by(l){return Pn(Sy(l))}function ns(l,i){return l?.endsWith("/")&&l!=="/"&&l!==`${i}/`?l.slice(0,-1):l}function p0(l,i,s){return ns(l,s)===ns(i,s)}function g0({base:l,to:i,trailingSlash:s="never",cache:o}){const r=i.startsWith("/"),h=!r&&i===".";let d;if(o){d=r?i:h?l:l+"\0"+i;const g=o.get(d);if(g)return g}let p;if(h)p=l.split("/");else if(r)p=i.split("/");else{for(p=l.split("/");p.length>1&&_i(p)==="";)p.pop();const g=i.split("/");for(let b=0,_=g.length;b<_;b++){const E=g[b];E===""?b?b===_-1&&p.push(E):p=[E]:E===".."?p.pop():E==="."||p.push(E)}}p.length>1&&(_i(p)===""?s==="never"&&p.pop():s==="always"&&p.push(""));let y,m="";for(let g=0;g<p.length;g++){g>0&&(m+="/");const b=p[g];if(!b)continue;y=lr(b,0,y);const _=y[0];if(_===0){m+=b;continue}const E=y[5],O=b.substring(0,y[1]),L=b.substring(y[4],E),D=b.substring(y[2],y[3]);_===1?m+=O||L?`${O}{$${D}}${L}`:`$${D}`:_===2?m+=O||L?`${O}{$}${L}`:"$":m+=`${O}{-$${D}}${L}`}m=ur(m);const S=m||"/";return d&&o&&o.set(d,S),S}function S0(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 Uo(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=>wm(r,s)).join("/"):wm(o,s)}function Lm({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 d=l.length;let p=0,y,m="";for(;p<d;){const S=p;y=lr(l,S,y);const g=y[5];if(p=g+1,S===g)continue;const b=y[0];if(b===0){m+="/"+l.substring(S,g);continue}if(b===2){const _=i._splat;h._splat=_,h["*"]=_;const E=l.substring(S,y[1]),O=l.substring(y[4],g);if(!_){r=!0,(E||O)&&(m+="/"+E+O);continue}const L=Uo("_splat",i,s);m+="/"+E+L+O;continue}if(b===1){const _=l.substring(y[2],y[3]);!r&&!(_ in i)&&(r=!0),h[_]=i[_];const E=l.substring(S,y[1]),O=l.substring(y[4],g),L=Uo(_,i,s)??"undefined";m+="/"+E+L+O;continue}if(b===3){const _=l.substring(y[2],y[3]),E=i[_];if(E==null)continue;h[_]=E;const O=l.substring(S,y[1]),L=l.substring(y[4],g),D=Uo(_,i,s)??"";m+="/"+O+D+L;continue}}return l.endsWith("/")&&(m+="/"),{usedParams:h,interpolatedPath:m||"/",isMissingParams:r}}function wm(l,i){const s=encodeURIComponent(l);return i?.(s)??s}function le(l){return l?.isNotFound===!0}function b0(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var _0="tsr-scroll-restoration-v1_3";function R0(){const l=b0();if(!l)return null;let i={};try{const o=JSON.parse(l.getItem("tsr-scroll-restoration-v1_3")||"{}");dl(o)&&(i=o)}catch{}return{get state(){return i},set:o=>{i=Vn(o,i)||i},persist:()=>{try{l.setItem(_0,JSON.stringify(i))}catch{}}}}var Nm=R0(),E0=l=>l.state.__TSR_key||l.href;function T0(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()}var Ju=!1,mi="window",Bm="data-scroll-restoration-id";function M0(l,i){if(!Nm)return;const s=Nm;if((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!s)return;l.isScrollRestorationSetup=!0,Ju=!1;const o=l.options.getScrollRestorationKey||E0,r=new Map;window.history.scrollRestoration="manual";const h=p=>{if(!(Ju||!l.isScrollRestoring))if(p.target===document||p.target===window)r.set(mi,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const y=p.target;r.set(y,{scrollX:y.scrollLeft||0,scrollY:y.scrollTop||0})}},d=p=>{if(!l.isScrollRestoring||!p||r.size===0||!s)return;const y=s.state[p]||={};for(const[m,S]of r){let g;if(m===mi)g=mi;else if(m.isConnected){const b=m.getAttribute(Bm);g=b?`[${Bm}="${b}"]`:T0(m)}g&&(y[g]=S)}};document.addEventListener("scroll",h,!0),l.subscribe("onBeforeLoad",p=>{d(p.fromLocation?o(p.fromLocation):void 0),r.clear()}),window.addEventListener("pagehide",()=>{d(o(l.stores.resolvedLocation.get()??l.stores.location.get())),s.persist()}),l.subscribe("onRendered",p=>{const y=o(p.toLocation),m=l.options.scrollRestorationBehavior,S=l.options.scrollToTopSelectors;if(r.clear(),!l.resetNextScroll){l.resetNextScroll=!0;return}if(!(typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation}))){Ju=!0;try{const g=l.isScrollRestoring?s.state[y]:void 0;let b=!1;if(g)for(const _ in g){const E=g[_];if(!dl(E))continue;const{scrollX:O,scrollY:L}=E;if(!(!Number.isFinite(O)||!Number.isFinite(L))){if(_===mi)window.scrollTo({top:L,left:O,behavior:m}),b=!0;else if(_){let D;try{D=document.querySelector(_)}catch{continue}D&&(D.scrollLeft=O,D.scrollTop=L,b=!0)}}}if(!b){const _=l.history.location.hash.slice(1);if(_){const E=window.history.state?.__hashScrollIntoViewOptions??!0;if(E){const O=document.getElementById(_);O&&O.scrollIntoView(E)}}else{const E={top:0,left:0,behavior:m};if(window.scrollTo(E),S)for(const O of S){if(O===mi)continue;const L=typeof O=="function"?O():document.querySelector(O);L&&L.scrollTo(E)}}}}finally{Ju=!1}l.isScrollRestoring&&s.set(g=>(g[y]||={},g))}})}function O0(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 Lo(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function C0(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]=Lo(r):Array.isArray(h)?h.push(Lo(r)):s[o]=[h,Lo(r)]}return s}var A0=z0(JSON.parse),x0=D0(JSON.stringify,JSON.parse);function z0(l){return i=>{i[0]==="?"&&(i=i.substring(1));const s=C0(i);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function D0(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=O0(r,o);return h?`?${h}`:""}}var ba="__root__";function U0(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 me(l){return l instanceof Response&&!!l.options}function L0(l){return{input:({url:i})=>{for(const s of l)i=Po(s,i);return i},output:({url:i})=>{for(let s=l.length-1;s>=0;s--)i=_y(l[s],i);return i}}}function w0(l){const i=by(l.basepath),s=`/${i}`,o=`${s}/`,r=l.caseSensitive?s:s.toLowerCase(),h=l.caseSensitive?o:o.toLowerCase();return{input:({url:d})=>{const p=l.caseSensitive?d.pathname:d.pathname.toLowerCase();return p===r?d.pathname="/":p.startsWith(h)&&(d.pathname=d.pathname.slice(s.length)),d},output:({url:d})=>(d.pathname=Fu(["/",i,d.pathname]),d)}}function Po(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 _y(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 N0(l,i){const{createMutableStore:s,createReadonlyStore:o,batch:r,init:h}=i,d=new Map,p=new Map,y=new Map,m=s(l.status),S=s(l.loadedAt),g=s(l.isLoading),b=s(l.isTransitioning),_=s(l.location),E=s(l.resolvedLocation),O=s(l.statusCode),L=s(l.redirect),D=s([]),Q=s([]),X=s([]),G=o(()=>wo(d,D.get())),$=o(()=>wo(p,Q.get())),J=o(()=>wo(y,X.get())),q=o(()=>D.get()[0]),Y=o(()=>D.get().some(V=>d.get(V)?.get().status==="pending")),Z=o(()=>({locationHref:_.get().href,resolvedLocationHref:E.get()?.href,status:m.get()})),et=o(()=>({status:m.get(),loadedAt:S.get(),isLoading:g.get(),isTransitioning:b.get(),matches:G.get(),location:_.get(),resolvedLocation:E.get(),statusCode:O.get(),redirect:L.get()})),W=Ei(64);function ct(V){let at=W.get(V);return at||(at=o(()=>{const bt=D.get();for(const Rt of bt){const M=d.get(Rt);if(M&&M.routeId===V)return M.get()}}),W.set(V,at)),at}const vt={status:m,loadedAt:S,isLoading:g,isTransitioning:b,location:_,resolvedLocation:E,statusCode:O,redirect:L,matchesId:D,pendingIds:Q,cachedIds:X,matches:G,pendingMatches:$,cachedMatches:J,firstId:q,hasPending:Y,matchRouteDeps:Z,matchStores:d,pendingMatchStores:p,cachedMatchStores:y,__store:et,getRouteMatchStore:ct,setMatches:Ht,setPending:Dt,setCached:w};Ht(l.matches),h?.(vt);function Ht(V){No(V,d,D,s,r)}function Dt(V){No(V,p,Q,s,r)}function w(V){No(V,y,X,s,r)}return vt}function wo(l,i){const s=[];for(const o of i){const r=l.get(o);r&&s.push(r.get())}return s}function No(l,i,s,o,r){const h=l.map(p=>p.id),d=new Set(h);r(()=>{for(const p of i.keys())d.has(p)||i.delete(p);for(const p of l){const y=i.get(p.id);if(!y){const m=o(p);m.routeId=p.routeId,i.set(p.id,m);continue}y.routeId=p.routeId,y.get()!==p&&y.set(p)}i0(s.get(),h)||s.set(h)})}var Fo=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},B0=l=>l.stores.matchesId.get().some(i=>l.stores.matchStores.get(i)?.get()._forcePending),ss=(l,i)=>!!(l.preload&&!l.router.stores.matchStores.has(i)),_a=(l,i,s=!0)=>{const o={...l.router.options.context??{}},r=s?i:i-1;for(let h=0;h<=r;h++){const d=l.matches[h];if(!d)continue;const p=l.router.getMatch(d.id);p&&Object.assign(o,p.__routeContext,p.__beforeLoadContext)}return o},jm=(l,i)=>{if(!l.matches.length)return;const s=i.routeId,o=l.matches.findIndex(d=>d.routeId===l.router.routeTree.id),r=o>=0?o:0;let h=s?l.matches.findIndex(d=>d.routeId===s):l.firstBadMatchIndex??l.matches.length-1;h<0&&(h=r);for(let d=h;d>=0;d--){const p=l.matches[d];if(l.router.looseRoutesById[p.routeId].options.notFoundComponent)return d}return s?h:r},Zn=(l,i,s)=>{if(!(!me(s)&&!le(s)))throw me(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:me(s)?"redirected":le(s)?"notFound":o.status==="pending"?"success":o.status,context:_a(l,i.index),isFetching:!1,error:s})),le(s)&&!s.routeId&&(s.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),me(s)&&(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s))),s},Ry=(l,i)=>{const s=l.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},Hm=(l,i,s)=>{const o=_a(l,s);l.updateMatch(i,r=>({...r,context:o}))},yi=(l,i,s,o)=>{const{id:r,routeId:h}=l.matches[i],d=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=i,Zn(l,l.router.getMatch(r),s);try{d.options.onError?.(s)}catch(p){s=p,Zn(l,l.router.getMatch(r),s)}l.updateMatch(r,p=>(p._nonReactive.beforeLoadPromise?.resolve(),p._nonReactive.beforeLoadPromise=void 0,p._nonReactive.loadPromise?.resolve(),{...p,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!l.preload&&!me(s)&&!le(s)&&(l.serialError??=s)},Ey=(l,i,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(l.onReady&&!ss(l,i)&&(s.options.loader||s.options.beforeLoad||My(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent)){const h=setTimeout(()=>{Fo(l)},r);o._nonReactive.pendingTimeout=h}},j0=(l,i,s)=>{const o=l.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Ey(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()},H0=(l,i,s,o)=>{const r=l.router.getMatch(i);let h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=ml(()=>{h?.resolve(),h=void 0});const{paramsError:d,searchError:p}=r;d&&yi(l,s,d,"PARSE_PARAMS"),p&&yi(l,s,p,"VALIDATE_SEARCH"),Ey(l,i,o,r);const y=new AbortController;let m=!1;const S=()=>{m||(m=!0,l.updateMatch(i,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:y})))},g=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(i,G=>({...G,isFetching:!1}))};if(!o.options.beforeLoad){l.router.batch(()=>{S(),g()});return}r._nonReactive.beforeLoadPromise=ml();const b={..._a(l,s,!1),...r.__routeContext},{search:_,params:E,cause:O}=r,L=ss(l,i),D={search:_,abortController:y,params:E,preload:L,context:b,location:l.location,navigate:G=>l.router.navigate({...G,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:L?"preload":O,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},Q=G=>{if(G===void 0){l.router.batch(()=>{S(),g()});return}(me(G)||le(G))&&(S(),yi(l,s,G,"BEFORE_LOAD")),l.router.batch(()=>{S(),l.updateMatch(i,$=>({...$,__beforeLoadContext:G})),g()})};let X;try{if(X=o.options.beforeLoad(D),Ri(X))return S(),X.catch(G=>{yi(l,s,G,"BEFORE_LOAD")}).then(Q)}catch(G){S(),yi(l,s,G,"BEFORE_LOAD")}Q(X)},q0=(l,i)=>{const{id:s,routeId:o}=l.matches[i],r=l.router.looseRoutesById[o],h=()=>p(),d=()=>H0(l,s,i,r),p=()=>{if(Ry(l,s))return;const y=j0(l,s,r);return Ri(y)?y.then(d):d()};return h()},Q0=(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,d,p])=>({meta:h?.meta,links:h?.links,headScripts:h?.scripts,headers:p,scripts:d,styles:h?.styles}))},Ty=(l,i,s,o,r)=>{const h=i[o-1],{params:d,loaderDeps:p,abortController:y,cause:m}=l.router.getMatch(s),S=_a(l,o),g=ss(l,s);return{params:d,deps:p,preload:!!g,parentMatchPromise:h,abortController:y,context:S,location:l.location,navigate:b=>l.router.navigate({...b,_fromLocation:l.location}),cause:g?"preload":m,route:r,...l.router.options.additionalContext}},qm=async(l,i,s,o,r)=>{try{const h=l.router.getMatch(s);try{(!(vy??l.router.isServer)||h.ssr===!0)&&Ti(r);const d=r.options.loader,p=typeof d=="function"?d:d?.handler,y=p?.(Ty(l,i,s,o,r)),m=!!p&&Ri(y);if((m||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&l.updateMatch(s,g=>({...g,isFetching:"loader"})),p){const g=m?await y:y;Zn(l,l.router.getMatch(s),g),g!==void 0&&l.updateMatch(s,b=>({...b,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:_a(l,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(d){let p=d;if(p?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:_a(l,o)}));return}const y=h._nonReactive.minPendingPromise;y&&await y,le(d)&&await r.options.notFoundComponent?.preload?.(),Zn(l,l.router.getMatch(s),d);try{r.options.onError?.(d)}catch(m){p=m,Zn(l,l.router.getMatch(s),m)}!me(p)&&!le(p)&&await Ti(r,["errorComponent"]),l.updateMatch(s,m=>({...m,error:p,context:_a(l,o),status:"error",isFetching:!1}))}}catch(h){const d=l.router.getMatch(s);d&&(d._nonReactive.loaderPromise=void 0),Zn(l,d,h)}},Y0=async(l,i,s)=>{async function o(_,E,O,L,D){const Q=Date.now()-E.updatedAt,X=_?D.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:D.options.staleTime??l.router.options.defaultStaleTime??0,G=D.options.shouldReload,$=typeof G=="function"?G(Ty(l,i,r,s,D)):G,{status:J,invalid:q}=L,Y=Q>=X&&(!!l.forceStaleReload||L.cause==="enter"||O!==void 0&&O!==L.id);d=J==="success"&&(q||($??Y)),_&&D.options.preload===!1||(d&&!l.sync&&S?(p=!0,(async()=>{try{await qm(l,i,r,s,D);const Z=l.router.getMatch(r);Z._nonReactive.loaderPromise?.resolve(),Z._nonReactive.loadPromise?.resolve(),Z._nonReactive.loaderPromise=void 0,Z._nonReactive.loadPromise=void 0}catch(Z){me(Z)&&await l.router.navigate(Z.options)}})()):J!=="success"||d?await qm(l,i,r,s,D):Hm(l,r,s))}const{id:r,routeId:h}=l.matches[s];let d=!1,p=!1;const y=l.router.looseRoutesById[h],m=y.options.loader,S=((typeof m=="function"?void 0:m?.staleReloadMode)??l.router.options.defaultStaleReloadMode)!=="blocking";if(Ry(l,r)){if(!l.router.getMatch(r))return l.matches[s];Hm(l,r,s)}else{const _=l.router.getMatch(r),E=l.router.stores.matchesId.get()[s],O=(E&&l.router.stores.matchStores.get(E)||null)?.routeId===h?E:l.router.stores.matches.get().find(D=>D.routeId===h)?.id,L=ss(l,r);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!l.sync&&!_.preload&&S)return _;await _._nonReactive.loaderPromise;const D=l.router.getMatch(r),Q=D._nonReactive.error||D.error;Q&&Zn(l,D,Q),D.status==="pending"&&await o(L,_,O,D,y)}else{const D=L&&!l.router.stores.matchStores.has(r),Q=l.router.getMatch(r);Q._nonReactive.loaderPromise=ml(),D!==Q.preload&&l.updateMatch(r,X=>({...X,preload:D})),await o(L,_,O,Q,y)}}const g=l.router.getMatch(r);p||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,p||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const b=p?g.isFetching:!1;return b!==g.isFetching||g.invalid!==!1?(l.updateMatch(r,_=>({..._,isFetching:b,invalid:!1})),l.router.getMatch(r)):g};async function Qm(l){const i=l,s=[];B0(i.router)&&Fo(i);let o;for(let b=0;b<i.matches.length;b++){try{const _=q0(i,b);Ri(_)&&await _}catch(_){if(me(_))throw _;if(le(_))o=_;else if(!i.preload)throw _;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const r=i.firstBadMatchIndex??i.matches.length,h=o&&!i.preload?jm(i,o):void 0,d=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let p,y;for(let b=0;b<d;b++)s.push(Y0(i,s,b));try{await Promise.all(s)}catch{const b=await Promise.allSettled(s);for(const _ of b){if(_.status!=="rejected")continue;const E=_.reason;if(me(E))throw E;le(E)?p??=E:y??=E}if(y!==void 0)throw y}const m=p??(o&&!i.preload?o:void 0);let S=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!m&&o&&i.preload)return i.matches;if(m){const b=jm(i,m);b===void 0&&vn();const _=i.matches[b],E=i.router.looseRoutesById[_.routeId],O=i.router.options?.defaultNotFoundComponent;!E.options.notFoundComponent&&O&&(E.options.notFoundComponent=O),m.routeId=_.routeId;const L=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,D=>({...D,...L?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),S=b,await Ti(E,["notFoundComponent"])}else if(!i.preload){const b=i.matches[0];b.globalNotFound||i.router.getMatch(b.id)?.globalNotFound&&i.updateMatch(b.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const b=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Ti(b,["errorComponent"])}for(let b=0;b<=S;b++){const{id:_,routeId:E}=i.matches[b],O=i.router.looseRoutesById[E];try{const L=Q0(i,_,O);if(L){const D=await L;i.updateMatch(_,Q=>({...Q,...D}))}}catch(L){console.error(`Error executing head for route ${E}:`,L)}}const g=Fo(i);if(Ri(g)&&await g,m)throw m;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Ym(l,i){const s=i.map(o=>l.options[o]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Ti(l,i=ku){!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===ku?(()=>{if(l._componentsPromise===void 0){const o=Ym(l,ku);o?l._componentsPromise=o.then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0}):l._componentsLoaded=!0}return l._componentsPromise})():Ym(l,i);return l._lazyPromise?l._lazyPromise.then(s):s()}function My(l){for(const i of ku)if(l.options[i]?.preload)return!0;return!1}var ku=["component","errorComponent","pendingComponent","notFoundComponent"],Fn="__TSR_index",Gm="popstate",Xm="beforeunload";function G0(l){let i=l.getLocation();const s=new Set,o=d=>{i=l.getLocation(),s.forEach(p=>p({location:i,action:d}))},r=d=>{l.notifyOnIndexChange??!0?o(d):i=l.getLocation()},h=async({task:d,navigateOpts:p,...y})=>{if(p?.ignoreBlocker??!1){d();return}const m=l.getBlockers?.()??[],S=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&m.length&&S)for(const g of m){const b=as(y.path,y.state);if(await g.blockerFn({currentLocation:i,nextLocation:b,action:y.type})){l.onBlocked?.();return}}d()};return{get location(){return i},get length(){return l.getLength()},subscribers:s,subscribe:d=>(s.add(d),()=>{s.delete(d)}),push:(d,p,y)=>{const m=i.state[Fn];p=Vm(m+1,p),h({task:()=>{l.pushState(d,p),o({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:d,state:p})},replace:(d,p,y)=>{const m=i.state[Fn];p=Vm(m,p),h({task:()=>{l.replaceState(d,p),o({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:d,state:p})},go:(d,p)=>{h({task:()=>{l.go(d),r({type:"GO",index:d})},navigateOpts:p,type:"GO"})},back:d=>{h({task:()=>{l.back(d?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{h({task:()=>{l.forward(d?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>i.state[Fn]!==0,createHref:d=>l.createHref(d),block:d=>{if(!l.setBlockers)return()=>{};const p=l.getBlockers?.()??[];return l.setBlockers([...p,d]),()=>{const y=l.getBlockers?.()??[];l.setBlockers?.(y.filter(m=>m!==d))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Vm(l,i){i||(i={});const s=sr();return{...i,key:s,__TSR_key:s,[Fn]:l}}function X0(l){const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,d=Y=>r=Y,p=(Y=>Y),y=(()=>as(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const Y=sr();i.history.replaceState({[Fn]:0,key:Y,__TSR_key:Y},"")}let m=y(),S,g=!1,b=!1,_=!1,E=!1;const O=()=>m;let L,D;const Q=()=>{L&&(q._ignoreSubscribers=!0,(L.isPush?i.history.pushState:i.history.replaceState)(L.state,"",L.href),q._ignoreSubscribers=!1,L=void 0,D=void 0,S=void 0)},X=(Y,Z,et)=>{const W=p(Z);D||(S=m),m=as(Z,et),L={href:W,state:et,isPush:L?.isPush||Y==="push"},D||(D=Promise.resolve().then(()=>Q()))},G=Y=>{m=y(),q.notify({type:Y})},$=async()=>{if(b){b=!1;return}const Y=y(),Z=Y.state[Fn]-m.state[Fn],et=Z===1,W=Z===-1,ct=!et&&!W||g;g=!1;const vt=ct?"GO":W?"BACK":"FORWARD",Ht=ct?{type:"GO",index:Z}:{type:W?"BACK":"FORWARD"};if(_)_=!1;else{const Dt=h();if(typeof document<"u"&&Dt.length){for(const w of Dt)if(await w.blockerFn({currentLocation:m,nextLocation:Y,action:vt})){b=!0,i.history.go(1),q.notify(Ht);return}}}m=y(),q.notify(Ht)},J=Y=>{if(E){E=!1;return}let Z=!1;const et=h();if(typeof document<"u"&&et.length)for(const W of et){const ct=W.enableBeforeUnload??!0;if(ct===!0){Z=!0;break}if(typeof ct=="function"&&ct()===!0){Z=!0;break}}if(Z)return Y.preventDefault(),Y.returnValue=""},q=G0({getLocation:O,getLength:()=>i.history.length,pushState:(Y,Z)=>X("push",Y,Z),replaceState:(Y,Z)=>X("replace",Y,Z),back:Y=>(Y&&(_=!0),E=!0,i.history.back()),forward:Y=>{Y&&(_=!0),E=!0,i.history.forward()},go:Y=>{g=!0,i.history.go(Y)},createHref:Y=>p(Y),flush:Q,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(Xm,J,{capture:!0}),i.removeEventListener(Gm,$)},onBlocked:()=>{S&&m!==S&&(m=S)},getBlockers:h,setBlockers:d,notifyOnIndexChange:!1});return i.addEventListener(Xm,J,{capture:!0}),i.addEventListener(Gm,$),i.history.pushState=function(...Y){const Z=s.apply(i.history,Y);return q._ignoreSubscribers||G("PUSH"),Z},i.history.replaceState=function(...Y){const Z=o.apply(i.history,Y);return q._ignoreSubscribers||G("REPLACE"),Z},q}function V0(l){let i=l.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function as(l,i){const s=V0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=sr();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||{[Fn]:0,key:h,__TSR_key:h}}}function sr(){return(Math.random()+1).toString(36).substring(7)}function hl(l,i){const s=i,o=l;return{fromLocation:s,toLocation:o,pathChanged:s?.pathname!==o.pathname,hrefChanged:s?.href!==o.href,hashChanged:s?.hash!==o.hash}}var K0=class{constructor(l,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,d=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=S0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=X0()),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 S;this.resolvePathCache=Ei(1e3),S=this.buildRouteTree(),this.setRoutes(S)}if(!this.stores&&this.latestLocation){const S=this.getStoreConfig(this);this.batch=S.batch,this.stores=N0(J0(this.latestLocation),S),M0(this)}let p=!1;const y=this.options.basepath??"/",m=this.options.rewrite;if(h||r!==y||d!==m){this.basepath=y;const S=[],g=by(y);g&&g!=="/"&&S.push(w0({basepath:y})),m&&S.push(m),this.rewrite=S.length===0?void 0:S.length===1?S[0]:L0(S),this.history&&this.updateLatestLocation(),p=!0}p&&this.stores&&this.stores.location.set(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=h0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&s0(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:y,search:m,hash:S,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(y)){const D=this.options.parseSearch(m),Q=this.options.stringifySearch(D);return{href:y+Q+S,publicHref:y+Q+S,pathname:di(y).path,external:!1,searchStr:Q,search:ya(o?.search,D),hash:di(S.slice(1)).path,state:pa(o?.state,b)}}const _=new URL(g,this.origin),E=Po(this.rewrite,_),O=this.options.parseSearch(E.search),L=this.options.stringifySearch(O);return E.search=L,{href:E.href.replace(E.origin,""),publicHref:g,pathname:di(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:L,search:ya(o?.search,O),hash:di(E.hash.slice(1)).path,state:pa(o?.state,b)}},h=r(s),{__tempLocation:d,__tempKey:p}=h.state;if(d&&(!p||p===this.tempLocationKey)){const y=r(d);return y.state.key=h.state.key,y.state.__TSR_key=h.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:h}}return h},this.resolvePathWithBase=(s,o)=>g0({base:s,to:ur(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=>P0({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=()=>{this.stores.pendingIds.get().forEach(s=>{this.cancelMatch(s)}),this.stores.matchesId.get().forEach(s=>{if(this.stores.pendingMatchStores.has(s))return;const o=this.stores.matchStores.get(s)?.get();o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(s)})},this.buildLocation=s=>{const o=(h={})=>{const d=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutesLightweight(d);h.from;const y=h.unsafeRelative==="path"?d.pathname:h.from??p.fullPath,m=this.resolvePathWithBase(y,"."),S=p.search,g=Object.assign(Object.create(null),p.params),b=h.to?this.resolvePathWithBase(m,`${h.to}`):this.resolvePathWithBase(m,"."),_=h.params===!1||h.params===null?Object.create(null):(h.params??!0)===!0?g:Object.assign(g,Vn(h.params,g)),E=this.getMatchedRoutes(b);let O=E.matchedRoutes;if((!E.foundRoute||E.foundRoute.path!=="/"&&E.routeParams["**"])&&this.options.notFoundRoute&&(O=[...O,this.options.notFoundRoute]),Object.keys(_).length>0)for(const et of O){const W=et.options.params?.stringify??et.options.stringifyParams;if(W)try{Object.assign(_,W(_))}catch{}}const L=s.leaveParams?b:di(Lm({path:b,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let D=S;if(s._includeValidateSearch&&this.options.search?.strict){const et={};O.forEach(W=>{if(W.options.validateSearch)try{Object.assign(et,Wu(W.options.validateSearch,{...et,...D}))}catch{}}),D=et}D=F0({search:D,dest:h,destRoutes:O,_includeValidateSearch:s._includeValidateSearch}),D=ya(S,D);const Q=this.options.stringifySearch(D),X=h.hash===!0?d.hash:h.hash?Vn(h.hash,d.hash):void 0,G=X?`#${X}`:"";let $=h.state===!0?d.state:h.state?Vn(h.state,d.state):{};$=pa(d.state,$);const J=`${L}${Q}${G}`;let q,Y,Z=!1;if(this.rewrite){const et=new URL(J,this.origin),W=_y(this.rewrite,et);q=et.href.replace(et.origin,""),W.origin!==this.origin?(Y=W.href,Z=!0):Y=W.pathname+W.search+W.hash}else q=l0(J),Y=q;return{publicHref:Y,href:q,pathname:L,search:D,searchStr:Q,state:$,hash:X??"",external:Z,unmaskOnReload:h.unmaskOnReload}},r=(h={},d)=>{const p=o(h);let y=d?o(d):void 0;if(!y){const m=Object.create(null);if(this.options.routeMasks){const S=c0(p.pathname,this.processedTree);if(S){Object.assign(m,S.rawParams);const{from:g,params:b,..._}=S.route,E=b===!1||b===null?Object.create(null):(b??!0)===!0?m:Object.assign(m,Vn(b,m));d={from:s.from,..._,params:E},y=o(d)}}}return y&&(p.maskedLocation=y),p};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...r})=>{const h=()=>{const y=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];y.forEach(S=>{r.state[S]=this.latestLocation.state[S]});const m=Sa(r.state,this.latestLocation.state);return y.forEach(S=>{delete r.state[S]}),m},d=Pn(this.latestLocation.href)===Pn(r.href);let p=this.commitLocationPromise;if(this.commitLocationPromise=ml(()=>{p?.resolve(),p=void 0}),d&&h())this.load();else{let{maskedLocation:y,hashScrollIntoView:m,...S}=r;y&&(S={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{...S,search:S.searchStr,state:{...S.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(S.unmaskOnReload??this.options.unmaskOnReload??!1)&&(S.state.__tempKey=this.tempLocationKey)),S.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](S.publicHref,S.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:d,href:p,...y}={})=>{if(p){const g=this.history.location.state.__TSR_index,b=as(p,{__TSR_index:s?g:g+1}),_=new URL(b.pathname,this.origin);y.to=Po(this.rewrite,_).pathname,y.search=this.options.parseSearch(b.search),y.hash=b.hash.slice(1)}const m=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const S=this.commitLocation({...m,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),S},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...d})=>{let p=!1;if(r)try{new URL(`${r}`),p=!0}catch{}if(p&&!o&&(o=!0),o){if(s!==void 0||!r){const m=this.buildLocation({to:s,...d});r=r??m.publicHref,h=h??m.publicHref}const y=!p&&h?h:r;if(es(y,this.protocolAllowlist))return Promise.resolve();if(!d.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const S of m)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(y):window.location.href=y,Promise.resolve()}return this.buildAndCommitLocation({...d,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatches.get().filter(r=>!s.some(h=>h.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(s),this.stores.setCached(o)})},this.load=async s=>{let o,r,h;const d=this.stores.resolvedLocation.get()??this.stores.location.get();for(h=new Promise(y=>{this.startTransition(async()=>{try{this.beforeLoad();const m=this.latestLocation,S=hl(m,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await Qm({router:this,sync:s?.sync,forceStaleReload:d.href===m.href,matches:this.stores.pendingMatches.get(),location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=null,b=null,_=null,E=null;this.batch(()=>{const O=this.stores.pendingMatches.get(),L=O.length,D=this.stores.matches.get();g=L?D.filter(G=>!this.stores.pendingMatchStores.has(G.id)):null;const Q=new Set;for(const G of this.stores.pendingMatchStores.values())G.routeId&&Q.add(G.routeId);const X=new Set;for(const G of this.stores.matchStores.values())G.routeId&&X.add(G.routeId);b=L?D.filter(G=>!Q.has(G.routeId)):null,_=L?O.filter(G=>!X.has(G.routeId)):null,E=L?O.filter(G=>X.has(G.routeId)):D,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),L&&(this.stores.setMatches(O),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...g.filter(G=>G.status!=="error"&&G.status!=="notFound"&&G.status!=="redirected")]),this.clearExpiredCache())});for(const[O,L]of[[b,"onLeave"],[_,"onEnter"],[E,"onStay"]])if(O)for(const D of O)this.looseRoutesById[D.routeId].options[L]?.(D)})})}})}catch(m){me(m)?(o=m,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):le(m)&&(r=m);const S=o?o.status:r?404:this.stores.matches.get().some(g=>g.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(S),this.stores.redirect.set(o)})}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),y()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let p;this.hasNotFoundMatch()?p=404:this.stores.matches.get().some(y=>y.status==="error")&&(p=500),p!==void 0&&this.stores.statusCode.set(p)},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,d=this.stores.resolvedLocation.get(),p=typeof o.types=="function"?o.types(hl(h,d)):o.types;if(p===!1){s();return}r={update:s,types:p}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(s);if(r){r.set(o);return}const h=this.stores.matchStores.get(s);if(h){h.set(o);return}const d=this.stores.cachedMatchStores.get(s);if(d){const p=o(d.get());p.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(y=>y.filter(m=>m!==s)):d.set(p)}})},this.getMatch=s=>this.stores.cachedMatchStores.get(s)?.get()??this.stores.pendingMatchStores.get(s)?.get()??this.stores.matchStores.get(s)?.get(),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.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(o)),this.stores.setCached(this.stores.cachedMatches.get().map(o)),this.stores.setPending(this.stores.pendingMatches.get().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&&es(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.stores.setCached(this.stores.cachedMatches.get().filter(r=>!o(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const s=Date.now(),o=r=>{const h=this.looseRoutesById[r.routeId];if(!h.options.loader)return!0;const d=(r.preload?h.options.preloadGcTime??this.options.defaultPreloadGcTime:h.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:s-r.updatedAt>=d};this.clearCache({filter:o})},this.loadRouteChunk=Ti,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.stores.matchesId.get(),...this.stores.pendingIds.get()]),d=new Set([...h,...this.stores.cachedIds.get()]),p=r.filter(y=>!d.has(y.id));if(p.length){const y=this.stores.cachedMatches.get();this.stores.setCached([...y,...p])}try{return r=await Qm({router:this,matches:r,location:o,preload:!0,updateMatch:(y,m)=>{h.has(y)?r=r.map(S=>S.id===y?m(S):S):this.updateMatch(y,m)}}),r}catch(y){if(me(y))return y.options.reloadDocument?void 0:await this.preloadRoute({...y.options,_fromLocation:o});le(y)||console.error(y);return}},this.matchRoute=(s,o)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.stores.status.get()!=="pending")return!1;const d=(o?.pending===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=o0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,d.pathname,this.processedTree);return!p||s.params&&!Sa(p.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?Sa(d.search,h.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(s=>s.status==="notFound"||s.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...l,caseSensitive:l.caseSensitive??!1,notFoundMode:l.notFoundMode??"fuzzy",stringifySearch:l.stringifySearch??x0,parseSearch:l.parseSearch??A0,protocolAllowlist:l.protocolAllowlist??a0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:l,routesByPath:i,processedTree:s}){this.routesById=l,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}get looseRoutesById(){return this.routesById}getParentContext(l){return l?.id?l.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(l,i){const s=this.getMatchedRoutes(l.pathname),{foundRoute:o,routeParams:r,parsedParams:h}=s;let{matchedRoutes:d}=s,p=!1;(o?o.path!=="/"&&r["**"]:Pn(l.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:p=!0);const y=p?W0(this.options.notFoundMode,d):void 0,m=new Array(d.length),S=new Map;for(const g of this.stores.matchStores.values())g.routeId&&S.set(g.routeId,g.get());for(let g=0;g<d.length;g++){const b=d[g],_=m[g-1];let E,O,L;{const vt=_?.search??l.search,Ht=_?._strictSearch??void 0;try{const Dt=Wu(b.options.validateSearch,{...vt})??void 0;E={...vt,...Dt},O={...Ht,...Dt},L=void 0}catch(Dt){let w=Dt;if(Dt instanceof ls||(w=new ls(Dt.message,{cause:Dt})),i?.throwOnError)throw w;E=vt,O={},L=w}}const D=b.options.loaderDeps?.({search:E})??"",Q=D?JSON.stringify(D):"",{interpolatedPath:X,usedParams:G}=Lm({path:b.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),$=b.id+X+Q,J=this.getMatch($),q=S.get(b.id),Y=J?._strictParams??G;let Z;if(!J)try{Km(b,G,h,Y)}catch(vt){if(le(vt)||me(vt)?Z=vt:Z=new Z0(vt.message,{cause:vt}),i?.throwOnError)throw Z}Object.assign(r,Y);const et=q?"stay":"enter";let W;if(J)W={...J,cause:et,params:q?.params??r,_strictParams:Y,search:ya(q?q.search:J.search,E),_strictSearch:O};else{const vt=b.options.loader||b.options.beforeLoad||b.lazyFn||My(b)?"pending":"success";W={id:$,ssr:b.options.ssr,index:g,routeId:b.id,params:q?.params??r,_strictParams:Y,pathname:X,updatedAt:Date.now(),search:q?ya(q.search,E):E,_strictSearch:O,searchError:void 0,status:vt,isFetching:!1,error:void 0,paramsError:Z,__routeContext:void 0,_nonReactive:{loadPromise:ml()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:et,loaderDeps:q?pa(q.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:b.options.staticData||{},fullPath:b.fullPath}}i?.preload||(W.globalNotFound=y===b.id),W.searchError=L;const ct=this.getParentContext(_);W.context={...ct,...W.__routeContext,...W.__beforeLoadContext},m[g]=W}for(let g=0;g<m.length;g++){const b=m[g],_=this.looseRoutesById[b.routeId],E=this.getMatch(b.id),O=S.get(b.routeId);if(b.params=O?ya(O.params,r):r,!E){const L=m[g-1],D=this.getParentContext(L);if(_.options.context){const Q={deps:b.loaderDeps,params:b.params,context:D??{},location:l,navigate:X=>this.navigate({...X,_fromLocation:l}),buildLocation:this.buildLocation,cause:b.cause,abortController:b.abortController,preload:!!b.preload,matches:m,routeId:_.id};b.__routeContext=_.options.context(Q)??void 0}b.context={...D,...b.__routeContext,...b.__beforeLoadContext}}}return m}matchRoutesLightweight(l){const{matchedRoutes:i,routeParams:s,parsedParams:o}=this.getMatchedRoutes(l.pathname),r=_i(i),h={...l.search};for(const S of i)try{Object.assign(h,Wu(S.options.validateSearch,h))}catch{}const d=_i(this.stores.matchesId.get()),p=d&&this.stores.matchStores.get(d)?.get(),y=p&&p.routeId===r.id&&p.pathname===l.pathname;let m;if(y)m=p.params;else{const S=Object.assign(Object.create(null),s);for(const g of i)try{Km(g,s,o??{},S)}catch{}m=S}return{matchedRoutes:i,fullPath:r.fullPath,search:h,params:m}}},ls=class extends Error{},Z0=class extends Error{};function J0(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],statusCode:200}}function Wu(l,i){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(i);if(s instanceof Promise)throw new ls("Async validation not supported");if(s.issues)throw new ls(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 P0({pathname:l,routesById:i,processedTree:s}){const o=Object.create(null),r=Pn(l);let h,d;const p=r0(r,s,!0);return p&&(h=p.route,Object.assign(o,p.rawParams),d=Object.assign(Object.create(null),p.parsedParams)),{matchedRoutes:p?.branch||[i.__root__],routeParams:o,foundRoute:h,parsedParams:d}}function F0({search:l,dest:i,destRoutes:s,_includeValidateSearch:o}){return k0(s)(l,i,o??!1)}function k0(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:d,next:p})=>{let y=d;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(y=r.options.preSearchFilters.reduce((S,g)=>g(S),d));const m=p(y);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((S,g)=>g(S),m):m};i.middlewares.push(h)}if(r.options.validateSearch){const h=({search:d,next:p})=>{const y=p(d);if(!i._includeValidateSearch)return y;try{return{...y,...Wu(r.options.validateSearch,y)??void 0}}catch{return y}};i.middlewares.push(h)}}const s=({search:r})=>{const h=i.dest;return h.search?h.search===!0?r:Vn(h.search,r):{}};i.middlewares.push(s);const o=(r,h,d)=>{if(r>=d.length)return h;const p=d[r];return p({search:h,next:m=>o(r+1,m,d)})};return function(h,d,p){return i.dest=d,i._includeValidateSearch=p,o(0,h,i.middlewares)}}function W0(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 ba}function Km(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)}}var I0="Error preloading route! ☝️",Oy=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(l){if(this.init=i=>{this.originalIndex=i.originalIndex;const s=this.options,o=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=ba:this.parentRoute||vn();let r=o?ba:s?.path;r&&r!=="/"&&(r=Sy(r));const h=s?.id||r;let d=o?ba:Fu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,h]);r==="__root__"&&(r="/"),d!=="__root__"&&(d=Fu(["/",d]));const p=d==="__root__"?"/":Fu([this.parentRoute.fullPath,r]);this._path=r,this._id=d,this._fullPath=p,this._to=Pn(p)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>U0({from:this.fullPath,...i}),this.options=l||{},this.isRoot=!l?.getParentRoute,l?.id&&l?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},$0=class extends Oy{constructor(l){super(l)}};function tS(l){if(typeof document<"u"&&document.querySelector){const i=l.stores.location.get(),s=i.state.__hashScrollIntoViewOptions??!0;if(s&&i.hash!==""){const o=document.getElementById(i.hash);o&&o.scrollIntoView(s)}}}function cr(l){const i=l.errorComponent??or;return lt.jsx(eS,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?k.createElement(i,{error:s,reset:o}):l.children})}var eS=class extends k.Component{constructor(...l){super(...l),this.state={error:null}}static getDerivedStateFromProps(l,i){const s=l.getResetKey();return i.error&&i.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(l){return{error:l}}reset(){this.setState({error:null})}componentDidCatch(l,i){this.props.onCatch&&this.props.onCatch(l,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function or({error:l}){const[i,s]=k.useState(!1);return lt.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[lt.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[lt.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),lt.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"})]}),lt.jsx("div",{style:{height:".25rem"}}),i?lt.jsx("div",{children:lt.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?lt.jsx("code",{children:l.message}):null})}):null]})}function nS({children:l,fallback:i=null}){return Cy()?lt.jsx(gi.Fragment,{children:l}):lt.jsx(gi.Fragment,{children:i})}function Cy(){return gi.useSyncExternalStore(aS,()=>!0,()=>!1)}function aS(){return()=>{}}var Ay=k.createContext(null);function Be(l){return k.useContext(Ay)}var cs=k.createContext(void 0),lS=k.createContext(void 0),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 iS({update:l,notify:i,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:d,shallowPropagate:p};function o(m,S,g){const b=S.depsTail;if(b!==void 0&&b.dep===m)return;const _=b!==void 0?b.nextDep:S.deps;if(_!==void 0&&_.dep===m){_.version=g,S.depsTail=_;return}const E=m.subsTail;if(E!==void 0&&E.version===g&&E.sub===S)return;const O=S.depsTail=m.subsTail={version:g,dep:m,sub:S,prevDep:b,nextDep:_,prevSub:E,nextSub:void 0};_!==void 0&&(_.prevDep=O),b!==void 0?b.nextDep=O:S.deps=O,E!==void 0?E.nextSub=O:m.subs=O}function r(m,S=m.sub){const g=m.dep,b=m.prevDep,_=m.nextDep,E=m.nextSub,O=m.prevSub;return _!==void 0?_.prevDep=b:S.depsTail=b,b!==void 0?b.nextDep=_:S.deps=_,E!==void 0?E.prevSub=O:g.subsTail=O,O!==void 0?O.nextSub=E:(g.subs=E)===void 0&&s(g),_}function h(m){let S=m.nextSub,g;t:do{const b=m.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&y(m,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&i(b),_&1){const E=b.subs;if(E!==void 0){const O=(m=E).nextSub;O!==void 0&&(g={value:S,prev:g},S=O);continue}}if((m=S)!==void 0){S=m.nextSub;continue}for(;g!==void 0;)if(m=g.value,g=g.prev,m!==void 0){S=m.nextSub;continue t}break}while(!0)}function d(m,S){let g,b=0,_=!1;t:do{const E=m.dep,O=E.flags;if(S.flags&16)_=!0;else if((O&17)===17){if(l(E)){const L=E.subs;L.nextSub!==void 0&&p(L),_=!0}}else if((O&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(g={value:m,prev:g}),m=E.deps,S=E,++b;continue}if(!_){const L=m.nextDep;if(L!==void 0){m=L;continue}}for(;b--;){const L=S.subs,D=L.nextSub!==void 0;if(D?(m=g.value,g=g.prev):m=L,_){if(l(S)){D&&p(L),S=m.sub;continue}_=!1}else S.flags&=-33;S=m.sub;const Q=m.nextDep;if(Q!==void 0){m=Q;continue t}}return _}while(!0)}function p(m){do{const S=m.sub,g=S.flags;(g&48)===32&&(S.flags=g|16,(g&6)===2&&i(S))}while((m=m.nextSub)!==void 0)}function y(m,S){let g=S.depsTail;for(;g!==void 0;){if(g===m)return!0;g=g.prevDep}return!1}}function uS(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 ko=[];let Iu=0;const{link:Zm,unlink:sS,propagate:cS,checkDirty:xy,shallowPropagate:Jm}=iS({update(l){return l._update()},notify(l){ko[Wo++]=l,l.flags&=~Nt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Nt.Mutable|Nt.Dirty,is(l))}});let Pu=0,Wo=0,Je,Io=0;function zy(l){try{++Io,l()}finally{--Io||Dy()}}function is(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=sS(s,l)}function Dy(){if(!(Io>0)){for(;Pu<Wo;){const l=ko[Pu];ko[Pu++]=void 0,l.notify()}Pu=0,Wo=0}}function Pm(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 Je!==void 0&&Zm(r,Je,Iu),r._snapshot},subscribe(h){const d=uS(h),p={current:!1},y=oS(()=>{r.get(),p.current?d.next?.(r._snapshot):p.current=!0});return{unsubscribe:()=>{y.stop()}}},_update(h){const d=Je,p=i?.compare??Object.is;if(s)Je=r,++Iu,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const y=r._snapshot,m=typeof h=="function"?h(y):h===void 0&&s?o(y):h;return y===void 0||!p(y,m)?(r._snapshot=m,!0):!1}finally{Je=d,s&&(r.flags&=~Nt.RecursedCheck),is(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&xy(r.deps,r)){if(r._update()){const d=r.subs;d!==void 0&&Jm(d)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return Je!==void 0&&Zm(r,Je,Iu),r._snapshot}):r.set=function(h){if(r._update(h)){const d=r.subs;d!==void 0&&(cS(d),Jm(d),Dy())}},r}function oS(l){const i=()=>{const o=Je;Je=s,++Iu,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return l()}finally{Je=o,s.flags&=~Nt.RecursedCheck,is(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Nt.Watching|Nt.RecursedCheck,notify(){const o=this.flags;o&Nt.Dirty||o&Nt.Pending&&xy(this.deps,this)?i():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,is(this)}};return i(),s}var Bo={exports:{}},jo={},Ho={exports:{}},qo={};var Fm;function rS(){if(Fm)return qo;Fm=1;var l=Mi();function i(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var s=typeof Object.is=="function"?Object.is:i,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,d=l.useDebugValue;function p(g,b){var _=b(),E=o({inst:{value:_,getSnapshot:b}}),O=E[0].inst,L=E[1];return h(function(){O.value=_,O.getSnapshot=b,y(O)&&L({inst:O})},[g,_,b]),r(function(){return y(O)&&L({inst:O}),g(function(){y(O)&&L({inst:O})})},[g]),d(_),_}function y(g){var b=g.getSnapshot;g=g.value;try{var _=b();return!s(g,_)}catch{return!0}}function m(g,b){return b()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return qo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:S,qo}var km;function fS(){return km||(km=1,Ho.exports=rS()),Ho.exports}var Wm;function hS(){if(Wm)return jo;Wm=1;var l=Mi(),i=fS();function s(m,S){return m===S&&(m!==0||1/m===1/S)||m!==m&&S!==S}var o=typeof Object.is=="function"?Object.is:s,r=i.useSyncExternalStore,h=l.useRef,d=l.useEffect,p=l.useMemo,y=l.useDebugValue;return jo.useSyncExternalStoreWithSelector=function(m,S,g,b,_){var E=h(null);if(E.current===null){var O={hasValue:!1,value:null};E.current=O}else O=E.current;E=p(function(){function D(J){if(!Q){if(Q=!0,X=J,J=b(J),_!==void 0&&O.hasValue){var q=O.value;if(_(q,J))return G=q}return G=J}if(q=G,o(X,J))return q;var Y=b(J);return _!==void 0&&_(q,Y)?(X=J,q):(X=J,G=Y)}var Q=!1,X,G,$=g===void 0?null:g;return[function(){return D(S())},$===null?void 0:function(){return D($())}]},[S,g,b,_]);var L=r(m,E[0],E[1]);return d(function(){O.hasValue=!0,O.value=L},[L]),y(L),L},jo}var Im;function dS(){return Im||(Im=1,Bo.exports=hS()),Bo.exports}var mS=dS();function yS(l,i){return l===i}function Me(l,i,s=yS){const o=k.useCallback(d=>{if(!l)return()=>{};const{unsubscribe:p}=l.subscribe(d);return p},[l]),r=k.useCallback(()=>l?.get(),[l]);return mS.useSyncExternalStoreWithSelector(o,r,r,i,s)}var vS={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Ea(l){const i=Be(),s=k.useContext(l.from?lS:cs),o=l.from??s,r=o?l.from?i.stores.getRouteMatchStore(o):i.stores.matchStores.get(o):void 0,h=k.useRef(void 0);return Me(r??vS,d=>{if((l.shouldThrow??!0)&&!d&&vn(),d===void 0)return;const p=l.select?l.select(d):d;if(l.structuralSharing??i.options.defaultStructuralSharing){const y=pa(h.current,p);return h.current=y,y}return p})}function Uy(l){return Ea({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.loaderData):i.loaderData})}function Ly(l){const{select:i,...s}=l;return Ea({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function wy(l){return Ea({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 Ny(l){return Ea({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.search):i.search})}function By(l){const i=Be();return k.useCallback(s=>i.navigate({...s,from:s.from??l?.from}),[l?.from,i])}function jy(l){return Ea({...l,select:i=>l.select?l.select(i.context):i.context})}var pS=ey();function gS(l,i){const s=Be(),o=Ig(i),{activeProps:r,inactiveProps:h,activeOptions:d,to:p,preload:y,preloadDelay:m,preloadIntentProximity:S,hashScrollIntoView:g,replace:b,startTransition:_,resetScroll:E,viewTransition:O,children:L,target:D,disabled:Q,style:X,className:G,onClick:$,onBlur:J,onFocus:q,onMouseEnter:Y,onMouseLeave:Z,onTouchStart:et,ignoreBlocker:W,params:ct,search:vt,hash:Ht,state:Dt,mask:w,reloadDocument:V,unsafeRelative:at,from:bt,_fromLocation:Rt,...M}=l,j=Cy(),K=k.useMemo(()=>l,[s,l.from,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),P=Me(s.stores.location,zt=>zt,(zt,kt)=>zt.href===kt.href),tt=k.useMemo(()=>{const zt={_fromLocation:P,...K};return s.buildLocation(zt)},[s,P,K]),rt=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,pt=tt.maskedLocation?tt.maskedLocation.external:tt.external,qt=k.useMemo(()=>TS(rt,pt,s.history,Q),[Q,pt,rt,s.history]),At=k.useMemo(()=>{if(qt?.external)return es(qt.href,s.protocolAllowlist)?void 0:qt.href;if(!MS(p)&&!(typeof p!="string"||p.indexOf(":")===-1))try{return new URL(p),es(p,s.protocolAllowlist)?void 0:p}catch{}},[p,qt,s.protocolAllowlist]),Pe=k.useMemo(()=>{if(At)return!1;if(d?.exact){if(!p0(P.pathname,tt.pathname,s.basepath))return!1}else{const zt=ns(P.pathname,s.basepath),kt=ns(tt.pathname,s.basepath);if(!(zt.startsWith(kt)&&(zt.length===kt.length||zt[kt.length]==="/")))return!1}return(d?.includeSearch??!0)&&!Sa(P.search,tt.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?j&&P.hash===tt.hash:!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,P,At,j,tt.hash,tt.pathname,tt.search,s.basepath]),Fe=Pe?Vn(r,{})??SS:Qo,pn=Pe?Qo:Vn(h,{})??Qo,vl=[G,Fe.className,pn.className].filter(Boolean).join(" "),Ye=(X||Fe.style||pn.style)&&{...X,...Fe.style,...pn.style},[pl,Ta]=k.useState(!1),Oi=k.useRef(!1),ke=l.reloadDocument||At?!1:y??s.options.defaultPreload,kn=m??s.options.defaultPreloadDelay??0,je=k.useCallback(()=>{s.preloadRoute({...K,_builtLocation:tt}).catch(zt=>{console.warn(zt),console.warn(I0)})},[s,K,tt]);Wg(o,k.useCallback(zt=>{zt?.isIntersecting&&je()},[je]),ES,{disabled:!!Q||ke!=="viewport"}),k.useEffect(()=>{Oi.current||!Q&&ke==="render"&&(je(),Oi.current=!0)},[Q,je,ke]);const gl=zt=>{const kt=zt.currentTarget.getAttribute("target"),Ge=D!==void 0?D:kt;if(!Q&&!OS(zt)&&!zt.defaultPrevented&&(!Ge||Ge==="_self")&&zt.button===0){zt.preventDefault(),pS.flushSync(()=>{Ta(!0)});const Ma=s.subscribe("onResolved",()=>{Ma(),Ta(!1)});s.navigate({...K,replace:b,resetScroll:E,hashScrollIntoView:g,startTransition:_,viewTransition:O,ignoreBlocker:W})}};if(At)return{...M,ref:o,href:At,...L&&{children:L},...D&&{target:D},...Q&&{disabled:Q},...X&&{style:X},...G&&{className:G},...$&&{onClick:$},...J&&{onBlur:J},...q&&{onFocus:q},...Y&&{onMouseEnter:Y},...Z&&{onMouseLeave:Z},...et&&{onTouchStart:et}};const Ci=zt=>{if(Q||ke!=="intent")return;if(!kn){je();return}const kt=zt.currentTarget;if(vi.has(kt))return;const Ge=setTimeout(()=>{vi.delete(kt),je()},kn);vi.set(kt,Ge)},os=zt=>{Q||ke!=="intent"||je()},ne=zt=>{if(Q||!ke||!kn)return;const kt=zt.currentTarget,Ge=vi.get(kt);Ge&&(clearTimeout(Ge),vi.delete(kt))};return{...M,...Fe,...pn,href:qt?.href,ref:o,onClick:rl([$,gl]),onBlur:rl([J,ne]),onFocus:rl([q,Ci]),onMouseEnter:rl([Y,Ci]),onMouseLeave:rl([Z,ne]),onTouchStart:rl([et,os]),disabled:!!Q,target:D,...Ye&&{style:Ye},...vl&&{className:vl},...Q&&bS,...Pe&&_S,...j&&pl&&RS}}var Qo={},SS={className:"active"},bS={role:"link","aria-disabled":!0},_S={"data-status":"active","aria-current":"page"},RS={"data-transitioning":"transitioning"},vi=new WeakMap,ES={rootMargin:"100px"},rl=l=>i=>{for(const s of l)if(s){if(i.defaultPrevented)return;s(i)}};function TS(l,i,s,o){if(!o)return i?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function MS(l){if(typeof l!="string")return!1;const i=l.charCodeAt(0);return i===47?l.charCodeAt(1)!==47:i===46}var Hy=k.forwardRef((l,i)=>{const{_asChild:s,...o}=l,{type:r,...h}=gS(o,i),d=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:p,...y}=h;return k.createElement("a",y,d)}return k.createElement(s,h,d)});function OS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}var CS=class extends Oy{constructor(l){super(l),this.useMatch=i=>Ea({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>jy({...i,from:this.id}),this.useSearch=i=>Ny({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>wy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Ly({...i,from:this.id}),this.useLoaderData=i=>Uy({...i,from:this.id}),this.useNavigate=()=>By({from:this.fullPath}),this.Link=gi.forwardRef((i,s)=>lt.jsx(Hy,{ref:s,from:this.fullPath,...i}))}};function AS(l){return new CS(l)}var xS=class extends $0{constructor(l){super(l),this.useMatch=i=>Ea({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>jy({...i,from:this.id}),this.useSearch=i=>Ny({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>wy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Ly({...i,from:this.id}),this.useLoaderData=i=>Uy({...i,from:this.id}),this.useNavigate=()=>By({from:this.fullPath}),this.Link=gi.forwardRef((i,s)=>lt.jsx(Hy,{ref:s,from:this.fullPath,...i}))}};function tb(l){return new xS(l)}function eb(l){return new zS(l,{silent:!0}).createRoute}var zS=class{constructor(l,i){this.path=l,this.createRoute=s=>{const o=AS(s);return o.isRoot=!1,o},this.silent=i?.silent}};function DS(l){const i=Be(),s=`not-found-${Me(i.stores.location,o=>o.pathname)}-${Me(i.stores.status,o=>o)}`;return lt.jsx(cr,{getResetKey:()=>s,onCatch:(o,r)=>{if(le(o))l.onCatch?.(o,r);else throw o},errorComponent:({error:o})=>{if(le(o))return l.fallback?.(o);throw o},children:l.children})}function US(){return lt.jsx("p",{children:"Not Found"})}function fl(l){return lt.jsx(lt.Fragment,{children:l.children})}function qy(l,i,s){return i.options.notFoundComponent?lt.jsx(i.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?lt.jsx(l.options.defaultNotFoundComponent,{...s}):lt.jsx(US,{})}function LS(l){return null}function wS(){return LS(Be()),null}var Qy=k.memo(function({matchId:i}){const s=Be(),o=s.stores.matchStores.get(i);o||vn();const r=Me(s.stores.loadedAt,d=>d),h=Me(o,d=>d);return lt.jsx(NS,{router:s,matchId:i,resetKey:r,matchState:k.useMemo(()=>{const d=h.routeId,p=s.routesById[d].parentRoute?.id;return{routeId:d,ssr:h.ssr,_displayPending:h._displayPending,parentRouteId:p}},[h._displayPending,h.routeId,h.ssr,s.routesById])})});function NS({router:l,matchId:i,resetKey:s,matchState:o}){const r=l.routesById[o.routeId],h=r.options.pendingComponent??l.options.defaultPendingComponent,d=h?lt.jsx(h,{}):null,p=r.options.errorComponent??l.options.defaultErrorComponent,y=r.options.onCatch??l.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??l.options.notFoundRoute?.options.component:r.options.notFoundComponent,S=o.ssr===!1||o.ssr==="data-only",g=(!r.isRoot||r.options.wrapInSuspense||S)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||S))?k.Suspense:fl,b=p?cr:fl,_=m?DS:fl;return lt.jsxs(r.isRoot?r.options.shellComponent??fl:fl,{children:[lt.jsx(cs.Provider,{value:i,children:lt.jsx(g,{fallback:d,children:lt.jsx(b,{getResetKey:()=>s,errorComponent:p||or,onCatch:(E,O)=>{if(le(E))throw E.routeId??=o.routeId,E;y?.(E,O)},children:lt.jsx(_,{fallback:E=>{if(E.routeId??=o.routeId,!m||E.routeId&&E.routeId!==o.routeId||!E.routeId&&!r.isRoot)throw E;return k.createElement(m,E)},children:S||o._displayPending?lt.jsx(nS,{fallback:d,children:lt.jsx($m,{matchId:i})}):lt.jsx($m,{matchId:i})})})})}),o.parentRouteId===ba?lt.jsxs(lt.Fragment,{children:[lt.jsx(BS,{resetKey:s}),l.options.scrollRestoration&&vy?lt.jsx(wS,{}):null]}):null]})}function BS({resetKey:l}){const i=Be(),s=k.useRef(void 0);return pi(()=>{const o=i.latestLocation.href;(s.current===void 0||s.current!==o)&&(i.emit({type:"onRendered",...hl(i.stores.location.get(),i.stores.resolvedLocation.get())}),s.current=o)},[i.latestLocation.state.__TSR_key,l,i]),null}var $m=k.memo(function({matchId:i}){const s=Be(),o=(S,g)=>s.getMatch(S.id)?._nonReactive[g]??S._nonReactive[g],r=s.stores.matchStores.get(i);r||vn();const h=Me(r,S=>S),d=h.routeId,p=s.routesById[d],y=k.useMemo(()=>{const S=(s.routesById[d].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:d,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return S?JSON.stringify(S):void 0},[d,h.loaderDeps,h._strictParams,h._strictSearch,s.options.defaultRemountDeps,s.routesById]),m=k.useMemo(()=>{const S=p.options.component??s.options.defaultComponent;return S?lt.jsx(S,{},y):lt.jsx(jS,{})},[y,p.options.component,s.options.defaultComponent]);if(h._displayPending)throw o(h,"displayPendingPromise");if(h._forcePending)throw o(h,"minPendingPromise");if(h.status==="pending"){const S=p.options.pendingMinMs??s.options.defaultPendingMinMs;if(S){const g=s.getMatch(h.id);if(g&&!g._nonReactive.minPendingPromise){const b=ml();g._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),g._nonReactive.minPendingPromise=void 0},S)}}throw o(h,"loadPromise")}if(h.status==="notFound")return le(h.error)||vn(),qy(s,p,h.error);if(h.status==="redirected")throw me(h.error)||vn(),o(h,"loadPromise");if(h.status==="error")throw h.error;return m}),jS=k.memo(function(){const i=Be(),s=k.useContext(cs);let o,r=!1,h;{const m=s?i.stores.matchStores.get(s):void 0;[o,r]=Me(m,S=>[S?.routeId,S?.globalNotFound??!1]),h=Me(i.stores.matchesId,S=>S[S.findIndex(g=>g===s)+1])}const d=o?i.routesById[o]:void 0,p=i.options.defaultPendingComponent?lt.jsx(i.options.defaultPendingComponent,{}):null;if(r)return d||vn(),qy(i,d,void 0);if(!h)return null;const y=lt.jsx(Qy,{matchId:h});return o===ba?lt.jsx(k.Suspense,{fallback:p,children:y}):y});function HS(){const l=Be(),i=k.useRef({router:l,mounted:!1}),[s,o]=k.useState(!1),r=Me(l.stores.isLoading,g=>g),h=Me(l.stores.hasPending,g=>g),d=xo(r),p=r||s||h,y=xo(p),m=r||h,S=xo(m);return l.startTransition=g=>{o(!0),k.startTransition(()=>{g(),o(!1)})},k.useEffect(()=>{const g=l.history.subscribe(l.load),b=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Pn(l.latestLocation.publicHref)!==Pn(b.publicHref)&&l.commitLocation({...b,replace:!0}),()=>{g()}},[l,l.history]),pi(()=>{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(b){console.error(b)}})()},[l]),pi(()=>{d&&!r&&l.emit({type:"onLoad",...hl(l.stores.location.get(),l.stores.resolvedLocation.get())})},[d,l,r]),pi(()=>{S&&!m&&l.emit({type:"onBeforeRouteMount",...hl(l.stores.location.get(),l.stores.resolvedLocation.get())})},[m,S,l]),pi(()=>{if(y&&!p){const g=hl(l.stores.location.get(),l.stores.resolvedLocation.get());l.emit({type:"onResolved",...g}),zy(()=>{l.stores.status.set("idle"),l.stores.resolvedLocation.set(l.stores.location.get())}),g.hrefChanged&&tS(l)}},[p,y,l]),null}function qS(){const l=Be(),i=l.routesById[ba].options.pendingComponent??l.options.defaultPendingComponent,s=i?lt.jsx(i,{}):null,o=lt.jsxs(typeof document<"u"&&l.ssr?fl:k.Suspense,{fallback:s,children:[lt.jsx(HS,{}),lt.jsx(QS,{})]});return l.options.InnerWrap?lt.jsx(l.options.InnerWrap,{children:o}):o}function QS(){const l=Be(),i=Me(l.stores.firstId,r=>r),s=Me(l.stores.loadedAt,r=>r),o=i?lt.jsx(Qy,{matchId:i}):null;return lt.jsx(cs.Provider,{value:i,children:l.options.disableGlobalCatchBoundary?o:lt.jsx(cr,{getResetKey:()=>s,errorComponent:or,onCatch:void 0,children:o})})}var YS=l=>({createMutableStore:Pm,createReadonlyStore:Pm,batch:zy}),nb=l=>new GS(l),GS=class extends K0{constructor(l){super(l,YS)}};function XS({router:l,children:i,...s}){Object.keys(s).length>0&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=lt.jsx(Ay.Provider,{value:l,children:i});return l.options.Wrap?lt.jsx(l.options.Wrap,{children:o}):o}function ab({router:l,...i}){return lt.jsx(XS,{router:l,...i,children:lt.jsx(qS,{})})}const VS="modulepreload",KS=function(l){return"/"+l},ty={},lb=function(i,s,o){let r=Promise.resolve();if(s&&s.length>0){let y=function(m){return Promise.all(m.map(S=>Promise.resolve(S).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");r=y(s.map(m=>{if(m=KS(m),m in ty)return;ty[m]=!0;const S=m.endsWith(".css"),g=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":VS,S||(b.as="script"),b.crossOrigin="",b.href=m,p&&b.setAttribute("nonce",p),document.head.appendChild(b),S)return new Promise((_,E)=>{b.addEventListener("load",_),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function h(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return r.then(d=>{for(const p of d||[])p.status==="rejected"&&h(p.reason);return i().catch(h)})};export{jS as O,FS as Q,gi as R,lb as _,dy as a,IS as b,ZS as c,$S as d,JS as e,pS as f,ug as g,tb as h,eb as i,lt as j,U0 as k,By as l,nb as m,kS as n,ab as o,PS as p,k as r,WS as u};