office-viewer-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +390 -0
- package/dist/client/assets/DocxViewer-NgAiZAEg.css +1 -0
- package/dist/client/assets/DocxViewer-gwdjm0mw.js +60 -0
- package/dist/client/assets/LogoIcon-BcnkueZW.js +1 -0
- package/dist/client/assets/PptxViewer-CLNaZa_4.js +59 -0
- package/dist/client/assets/PptxViewer-CYMXzyIj.css +1 -0
- package/dist/client/assets/XlsxViewer-BNso6L-X.css +1 -0
- package/dist/client/assets/XlsxViewer-C2ErMokS.js +64 -0
- package/dist/client/assets/_commonjs-dynamic-modules-DaXrHM_S.js +1 -0
- package/dist/client/assets/form-C1byQJR4.js +1 -0
- package/dist/client/assets/index-BDMLGHcR.js +2 -0
- package/dist/client/assets/index-CKjGwz9R.js +12 -0
- package/dist/client/assets/jszip.min-BwIaN_vk.js +2 -0
- package/dist/client/assets/login-DEy3R1iD.js +1 -0
- package/dist/client/assets/register-CUUVGLJE.js +1 -0
- package/dist/client/assets/styles-3a3CPFIV.css +1 -0
- package/dist/client/robots.txt +2 -0
- package/dist/index.cjs +1806 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1769 -0
- package/dist/server/assets/DocxViewer-Bm8UJY-7.js +469 -0
- package/dist/server/assets/LogoIcon-Dx0LU3or.js +26 -0
- package/dist/server/assets/PptxViewer-DS7Atucw.js +213 -0
- package/dist/server/assets/XlsxViewer-jzIgKmN2.js +841 -0
- package/dist/server/assets/_tanstack-start-manifest_v-CpFqMvFH.js +4 -0
- package/dist/server/assets/empty-plugin-adapters-BFgPZ6_d.js +6 -0
- package/dist/server/assets/form-CD9otjw-.js +236 -0
- package/dist/server/assets/index-gQHSGxNv.js +365 -0
- package/dist/server/assets/login-DvbAXNSQ.js +81 -0
- package/dist/server/assets/register-C2G9K9kP.js +102 -0
- package/dist/server/assets/router-F5YKPXkV.js +229 -0
- package/dist/server/assets/server-6Sfy37dh.js +1523 -0
- package/dist/server/assets/start-dMGD6DUy.js +56 -0
- package/dist/server/server.js +94 -0
- package/package.json +120 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/register-CUUVGLJE.js","assets/form-C1byQJR4.js","assets/LogoIcon-BcnkueZW.js","assets/login-DEy3R1iD.js","assets/index-BDMLGHcR.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function Wb(n,a){for(var s=0;s<a.length;s++){const l=a[s];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(l,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var tw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eS(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Bc={exports:{}},nr={};var Bp;function tS(){if(Bp)return nr;Bp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(l,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:l,key:d,ref:u!==void 0?u:null,props:f}}return nr.Fragment=a,nr.jsx=s,nr.jsxs=s,nr}var Hp;function nS(){return Hp||(Hp=1,Bc.exports=tS()),Bc.exports}var K=nS(),Hc={exports:{}},he={};var kp;function aS(){if(kp)return he;kp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),S=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=S&&O[S]||O["@@iterator"],typeof O=="function"?O:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,E={};function C(O,V,I){this.props=O,this.context=V,this.refs=E,this.updater=I||w}C.prototype.isReactComponent={},C.prototype.setState=function(O,V){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,V,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function j(){}j.prototype=C.prototype;function Z(O,V,I){this.props=O,this.context=V,this.refs=E,this.updater=I||w}var Q=Z.prototype=new j;Q.constructor=Z,z(Q,C.prototype),Q.isPureReactComponent=!0;var X=Array.isArray;function J(){}var k={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function $(O,V,I){var W=I.ref;return{$$typeof:n,type:O,key:V,ref:W!==void 0?W:null,props:I}}function de(O,V){return $(O.type,V,O.props)}function ce(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function oe(O){var V={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(I){return V[I]})}var ot=/\/+/g;function Ge(O,V){return typeof O=="object"&&O!==null&&O.key!=null?oe(""+O.key):V.toString(36)}function Je(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(J,J):(O.status="pending",O.then(function(V){O.status==="pending"&&(O.status="fulfilled",O.value=V)},function(V){O.status==="pending"&&(O.status="rejected",O.reason=V)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function B(O,V,I,W,re){var ve=typeof O;(ve==="undefined"||ve==="boolean")&&(O=null);var Re=!1;if(O===null)Re=!0;else switch(ve){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(O.$$typeof){case n:case a:Re=!0;break;case v:return Re=O._init,B(Re(O._payload),V,I,W,re)}}if(Re)return re=re(O),Re=W===""?"."+Ge(O,0):W,X(re)?(I="",Re!=null&&(I=Re.replace(ot,"$&/")+"/"),B(re,V,I,"",function(yn){return yn})):re!=null&&(ce(re)&&(re=de(re,I+(re.key==null||O&&O.key===re.key?"":(""+re.key).replace(ot,"$&/")+"/")+Re)),V.push(re)),1;Re=0;var Ie=W===""?".":W+":";if(X(O))for(var ke=0;ke<O.length;ke++)W=O[ke],ve=Ie+Ge(W,ke),Re+=B(W,V,I,ve,re);else if(ke=x(O),typeof ke=="function")for(O=ke.call(O),ke=0;!(W=O.next()).done;)W=W.value,ve=Ie+Ge(W,ke++),Re+=B(W,V,I,ve,re);else if(ve==="object"){if(typeof O.then=="function")return B(Je(O),V,I,W,re);throw V=String(O),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Re}function F(O,V,I){if(O==null)return O;var W=[],re=0;return B(O,W,"","",function(ve){return V.call(I,ve,re++)}),W}function ue(O){if(O._status===-1){var V=O._result;V=V(),V.then(function(I){(O._status===0||O._status===-1)&&(O._status=1,O._result=I)},function(I){(O._status===0||O._status===-1)&&(O._status=2,O._result=I)}),O._status===-1&&(O._status=0,O._result=V)}if(O._status===1)return O._result.default;throw O._result}var ze=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Ne={map:F,forEach:function(O,V,I){F(O,function(){V.apply(this,arguments)},I)},count:function(O){var V=0;return F(O,function(){V++}),V},toArray:function(O){return F(O,function(V){return V})||[]},only:function(O){if(!ce(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return he.Activity=g,he.Children=Ne,he.Component=C,he.Fragment=s,he.Profiler=u,he.PureComponent=Z,he.StrictMode=l,he.Suspense=p,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,he.__COMPILER_RUNTIME={__proto__:null,c:function(O){return k.H.useMemoCache(O)}},he.cache=function(O){return function(){return O.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(O,V,I){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var W=z({},O.props),re=O.key;if(V!=null)for(ve in V.key!==void 0&&(re=""+V.key),V)!G.call(V,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&V.ref===void 0||(W[ve]=V[ve]);var ve=arguments.length-2;if(ve===1)W.children=I;else if(1<ve){for(var Re=Array(ve),Ie=0;Ie<ve;Ie++)Re[Ie]=arguments[Ie+2];W.children=Re}return $(O.type,re,W)},he.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},he.createElement=function(O,V,I){var W,re={},ve=null;if(V!=null)for(W in V.key!==void 0&&(ve=""+V.key),V)G.call(V,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(re[W]=V[W]);var Re=arguments.length-2;if(Re===1)re.children=I;else if(1<Re){for(var Ie=Array(Re),ke=0;ke<Re;ke++)Ie[ke]=arguments[ke+2];re.children=Ie}if(O&&O.defaultProps)for(W in Re=O.defaultProps,Re)re[W]===void 0&&(re[W]=Re[W]);return $(O,ve,re)},he.createRef=function(){return{current:null}},he.forwardRef=function(O){return{$$typeof:m,render:O}},he.isValidElement=ce,he.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:ue}},he.memo=function(O,V){return{$$typeof:y,type:O,compare:V===void 0?null:V}},he.startTransition=function(O){var V=k.T,I={};k.T=I;try{var W=O(),re=k.S;re!==null&&re(I,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(J,ze)}catch(ve){ze(ve)}finally{V!==null&&I.types!==null&&(V.types=I.types),k.T=V}},he.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},he.use=function(O){return k.H.use(O)},he.useActionState=function(O,V,I){return k.H.useActionState(O,V,I)},he.useCallback=function(O,V){return k.H.useCallback(O,V)},he.useContext=function(O){return k.H.useContext(O)},he.useDebugValue=function(){},he.useDeferredValue=function(O,V){return k.H.useDeferredValue(O,V)},he.useEffect=function(O,V){return k.H.useEffect(O,V)},he.useEffectEvent=function(O){return k.H.useEffectEvent(O)},he.useId=function(){return k.H.useId()},he.useImperativeHandle=function(O,V,I){return k.H.useImperativeHandle(O,V,I)},he.useInsertionEffect=function(O,V){return k.H.useInsertionEffect(O,V)},he.useLayoutEffect=function(O,V){return k.H.useLayoutEffect(O,V)},he.useMemo=function(O,V){return k.H.useMemo(O,V)},he.useOptimistic=function(O,V){return k.H.useOptimistic(O,V)},he.useReducer=function(O,V,I){return k.H.useReducer(O,V,I)},he.useRef=function(O){return k.H.useRef(O)},he.useState=function(O){return k.H.useState(O)},he.useSyncExternalStore=function(O,V,I){return k.H.useSyncExternalStore(O,V,I)},he.useTransition=function(){return k.H.useTransition()},he.version="19.2.7",he}var qp;function _r(){return qp||(qp=1,Hc.exports=aS()),Hc.exports}var ie=_r();const ns=eS(ie),nw=Wb({__proto__:null,default:ns},[ie]);var kc={exports:{}},ar={},qc={exports:{}},Zc={};var Zp;function iS(){return Zp||(Zp=1,(function(n){function a(B,F){var ue=B.length;B.push(F);e:for(;0<ue;){var ze=ue-1>>>1,Ne=B[ze];if(0<u(Ne,F))B[ze]=F,B[ue]=Ne,ue=ze;else break e}}function s(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var F=B[0],ue=B.pop();if(ue!==F){B[0]=ue;e:for(var ze=0,Ne=B.length,O=Ne>>>1;ze<O;){var V=2*(ze+1)-1,I=B[V],W=V+1,re=B[W];if(0>u(I,ue))W<Ne&&0>u(re,I)?(B[ze]=re,B[W]=ue,ze=W):(B[ze]=I,B[V]=ue,ze=V);else if(W<Ne&&0>u(re,ue))B[ze]=re,B[W]=ue,ze=W;else break e}}return F}function u(B,F){var ue=B.sortIndex-F.sortIndex;return ue!==0?ue:B.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var p=[],y=[],v=1,g=null,S=3,x=!1,w=!1,z=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function Q(B){for(var F=s(y);F!==null;){if(F.callback===null)l(y);else if(F.startTime<=B)l(y),F.sortIndex=F.expirationTime,a(p,F);else break;F=s(y)}}function X(B){if(z=!1,Q(B),!w)if(s(p)!==null)w=!0,J||(J=!0,oe());else{var F=s(y);F!==null&&Je(X,F.startTime-B)}}var J=!1,k=-1,G=5,$=-1;function de(){return E?!0:!(n.unstable_now()-$<G)}function ce(){if(E=!1,J){var B=n.unstable_now();$=B;var F=!0;try{e:{w=!1,z&&(z=!1,j(k),k=-1),x=!0;var ue=S;try{t:{for(Q(B),g=s(p);g!==null&&!(g.expirationTime>B&&de());){var ze=g.callback;if(typeof ze=="function"){g.callback=null,S=g.priorityLevel;var Ne=ze(g.expirationTime<=B);if(B=n.unstable_now(),typeof Ne=="function"){g.callback=Ne,Q(B),F=!0;break t}g===s(p)&&l(p),Q(B)}else l(p);g=s(p)}if(g!==null)F=!0;else{var O=s(y);O!==null&&Je(X,O.startTime-B),F=!1}}break e}finally{g=null,S=ue,x=!1}F=void 0}}finally{F?oe():J=!1}}}var oe;if(typeof Z=="function")oe=function(){Z(ce)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,Ge=ot.port2;ot.port1.onmessage=ce,oe=function(){Ge.postMessage(null)}}else oe=function(){C(ce,0)};function Je(B,F){k=C(function(){B(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(B){switch(S){case 1:case 2:case 3:var F=3;break;default:F=S}var ue=S;S=F;try{return B()}finally{S=ue}},n.unstable_requestPaint=function(){E=!0},n.unstable_runWithPriority=function(B,F){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ue=S;S=B;try{return F()}finally{S=ue}},n.unstable_scheduleCallback=function(B,F,ue){var ze=n.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?ze+ue:ze):ue=ze,B){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=ue+Ne,B={id:v++,callback:F,priorityLevel:B,startTime:ue,expirationTime:Ne,sortIndex:-1},ue>ze?(B.sortIndex=ue,a(y,B),s(p)===null&&B===s(y)&&(z?(j(k),k=-1):z=!0,Je(X,ue-ze))):(B.sortIndex=Ne,a(p,B),w||x||(w=!0,J||(J=!0,oe()))),B},n.unstable_shouldYield=de,n.unstable_wrapCallback=function(B){var F=S;return function(){var ue=S;S=F;try{return B.apply(this,arguments)}finally{S=ue}}}})(Zc)),Zc}var Vp;function sS(){return Vp||(Vp=1,qc.exports=iS()),qc.exports}var Vc={exports:{}},_t={};var Yp;function rS(){if(Yp)return _t;Yp=1;var n=_r();function a(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var l={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(p,y,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:g==null?null:""+g,children:p,containerInfo:y,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,_t.createPortal=function(p,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(p,y,null,v)},_t.flushSync=function(p){var y=d.T,v=l.p;try{if(d.T=null,l.p=2,p)return p()}finally{d.T=y,l.p=v,l.d.f()}},_t.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,l.d.C(p,y))},_t.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},_t.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var v=y.as,g=m(v,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,x=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?l.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:x}):v==="script"&&l.d.X(p,{crossOrigin:g,integrity:S,fetchPriority:x,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},_t.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=m(y.as,y.crossOrigin);l.d.M(p,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&l.d.M(p)},_t.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,g=m(v,y.crossOrigin);l.d.L(p,v,{crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},_t.preloadModule=function(p,y){if(typeof p=="string")if(y){var v=m(y.as,y.crossOrigin);l.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else l.d.m(p)},_t.requestFormReset=function(p){l.d.r(p)},_t.unstable_batchedUpdates=function(p,y){return p(y)},_t.useFormState=function(p,y,v){return d.H.useFormState(p,y,v)},_t.useFormStatus=function(){return d.H.useHostTransitionStatus()},_t.version="19.2.7",_t}var Qp;function sg(){if(Qp)return Vc.exports;Qp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Vc.exports=rS(),Vc.exports}var Gp;function lS(){if(Gp)return ar;Gp=1;var n=sS(),a=_r(),s=sg();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(l(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var i=e,r=t;;){var o=i.return;if(o===null)break;var c=o.alternate;if(c===null){if(r=o.return,r!==null){i=r;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===i)return p(o),e;if(c===r)return p(o),t;c=c.sibling}throw Error(l(188))}if(i.return!==r.return)i=o,r=c;else{for(var h=!1,b=o.child;b;){if(b===i){h=!0,i=o,r=c;break}if(b===r){h=!0,r=o,i=c;break}b=b.sibling}if(!h){for(b=c.child;b;){if(b===i){h=!0,i=c,r=o;break}if(b===r){h=!0,r=c,i=o;break}b=b.sibling}if(!h)throw Error(l(189))}}if(i.alternate!==r)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var ot=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ot?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case C:return"Profiler";case E:return"StrictMode";case X:return"Suspense";case J:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case Z:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:Ge(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var Je=Array.isArray,B=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},ze=[],Ne=-1;function O(e){return{current:e}}function V(e){0>Ne||(e.current=ze[Ne],ze[Ne]=null,Ne--)}function I(e,t){Ne++,ze[Ne]=e.current,e.current=t}var W=O(null),re=O(null),ve=O(null),Re=O(null);function Ie(e,t){switch(I(ve,t),I(re,e),I(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rp(t),e=lp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(W),I(W,e)}function ke(){V(W),V(re),V(ve)}function yn(e){e.memoizedState!==null&&I(Re,e);var t=W.current,i=lp(t,e.type);t!==i&&(I(re,e),I(W,i))}function gn(e){re.current===e&&(V(W),V(re)),Re.current===e&&(V(Re),$s._currentValue=ue)}var Qn,ls;function ln(e){if(Qn===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Qn=t&&t[1]||"",ls=-1<i.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+Qn+e+ls}var us=!1;function si(e,t){if(!e||us)return"";us=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(U){var L=U}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(U){L=U}e.call(Y.prototype)}}else{try{throw Error()}catch(U){L=U}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(U){if(U&&L&&typeof U.stack=="string")return[U.stack,L.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),h=c[0],b=c[1];if(h&&b){var R=h.split(`
|
|
5
|
+
`),N=b.split(`
|
|
6
|
+
`);for(o=r=0;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(r===R.length||o===N.length)for(r=R.length-1,o=N.length-1;1<=r&&0<=o&&R[r]!==N[o];)o--;for(;1<=r&&0<=o;r--,o--)if(R[r]!==N[o]){if(r!==1||o!==1)do if(r--,o--,0>o||R[r]!==N[o]){var H=`
|
|
7
|
+
`+R[r].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=r&&0<=o);break}}}finally{us=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?ln(i):""}function Rr(e,t){switch(e.tag){case 26:case 27:case 5:return ln(e.type);case 16:return ln("Lazy");case 13:return e.child!==t&&t!==null?ln("Suspense Fallback"):ln("Suspense");case 19:return ln("SuspenseList");case 0:case 15:return si(e.type,!1);case 11:return si(e.type.render,!1);case 1:return si(e.type,!0);case 31:return ln("Activity");default:return""}}function vn(e){try{var t="",i=null;do t+=Rr(e,i),i=e,e=e.return;while(e);return t}catch(r){return`
|
|
8
|
+
Error generating stack: `+r.message+`
|
|
9
|
+
`+r.stack}}var Ca=Object.prototype.hasOwnProperty,tn=n.unstable_scheduleCallback,os=n.unstable_cancelCallback,wr=n.unstable_shouldYield,Eu=n.unstable_requestPaint,St=n.unstable_now,Ve=n.unstable_getCurrentPriorityLevel,ht=n.unstable_ImmediatePriority,un=n.unstable_UserBlockingPriority,ri=n.unstable_NormalPriority,Lv=n.unstable_LowPriority,qf=n.unstable_IdlePriority,jv=n.log,Uv=n.unstable_setDisableYieldValue,cs=null,Lt=null;function Gn(e){if(typeof jv=="function"&&Uv(e),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(cs,e)}catch{}}var jt=Math.clz32?Math.clz32:kv,Bv=Math.log,Hv=Math.LN2;function kv(e){return e>>>=0,e===0?32:31-(Bv(e)/Hv|0)|0}var Ar=256,Or=262144,Cr=4194304;function Ma(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Mr(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=r&134217727;return b!==0?(r=b&~c,r!==0?o=Ma(r):(h&=b,h!==0?o=Ma(h):i||(i=b&~e,i!==0&&(o=Ma(i))))):(b=r&~c,b!==0?o=Ma(b):h!==0?o=Ma(h):i||(i=r&~e,i!==0&&(o=Ma(i)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,i=t&-t,c>=i||c===32&&(i&4194048)!==0)?t:o}function fs(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Zf(){var e=Cr;return Cr<<=1,(Cr&62914560)===0&&(Cr=4194304),e}function Tu(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function ds(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zv(e,t,i,r,o,c){var h=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var b=e.entanglements,R=e.expirationTimes,N=e.hiddenUpdates;for(i=h&~i;0<i;){var H=31-jt(i),Y=1<<H;b[H]=0,R[H]=-1;var L=N[H];if(L!==null)for(N[H]=null,H=0;H<L.length;H++){var U=L[H];U!==null&&(U.lane&=-536870913)}i&=~Y}r!==0&&Vf(e,r,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Vf(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-jt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function Yf(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-jt(i),o=1<<r;o&t|e[r]&t&&(e[r]|=t),i&=~o}}function Qf(e,t){var i=t&-t;return i=(i&42)!==0?1:Ru(i),(i&(e.suspendedLanes|t))!==0?0:i}function Ru(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Gf(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Mp(e.type))}function Xf(e,t){var i=F.p;try{return F.p=e,t()}finally{F.p=i}}var Xn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Xn,Rt="__reactProps$"+Xn,li="__reactContainer$"+Xn,Au="__reactEvents$"+Xn,Vv="__reactListeners$"+Xn,Yv="__reactHandles$"+Xn,Kf="__reactResources$"+Xn,hs="__reactMarker$"+Xn;function Ou(e){delete e[mt],delete e[Rt],delete e[Au],delete e[Vv],delete e[Yv]}function ui(e){var t=e[mt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[li]||i[mt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=mp(e);e!==null;){if(i=e[mt])return i;e=mp(e)}return t}e=i,i=e.parentNode}return null}function oi(e){if(e=e[mt]||e[li]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ms(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ci(e){var t=e[Kf];return t||(t=e[Kf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ct(e){e[hs]=!0}var Pf=new Set,Ff={};function za(e,t){fi(e,t),fi(e+"Capture",t)}function fi(e,t){for(Ff[e]=t,e=0;e<t.length;e++)Pf.add(t[e])}var Qv=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]*$"),Jf={},If={};function Gv(e){return Ca.call(If,e)?!0:Ca.call(Jf,e)?!1:Qv.test(e)?If[e]=!0:(Jf[e]=!0,!1)}function zr(e,t,i){if(Gv(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Dr(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function bn(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xv(e,t,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){i=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(h){i=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){if(!e._valueTracker){var t=$f(e)?"checked":"value";e._valueTracker=Xv(e,t,""+e[t])}}function Wf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=$f(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function Nr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Kv=/[\n"\\]/g;function Gt(e){return e.replace(Kv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mu(e,t,i,r,o,c,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?zu(e,h,Qt(t)):i!=null?zu(e,h,Qt(i)):r!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Qt(b):e.removeAttribute("name")}function ed(e,t,i,r,o,c,h,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Cu(e);return}i=i!=null?""+Qt(i):"",t=t!=null?""+Qt(t):i,b||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=b?e.checked:!!r,e.defaultChecked=!!r,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Cu(e)}function zu(e,t,i){t==="number"&&Nr(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function di(e,t,i,r){if(e=e.options,t){t={};for(var o=0;o<i.length;o++)t["$"+i[o]]=!0;for(i=0;i<e.length;i++)o=t.hasOwnProperty("$"+e[i].value),e[i].selected!==o&&(e[i].selected=o),o&&r&&(e[i].defaultSelected=!0)}else{for(i=""+Qt(i),t=null,o=0;o<e.length;o++){if(e[o].value===i){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function td(e,t,i){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Qt(i):""}function nd(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(l(92));if(Je(r)){if(1<r.length)throw Error(l(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=Qt(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),Cu(e)}function hi(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Pv=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 ad(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||Pv.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function id(e,t,i){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&i[o]!==r&&ad(e,o,r)}else for(var c in t)t.hasOwnProperty(c)&&ad(e,c,t[c])}function Du(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Fv=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"]]),Jv=/^[\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 Lr(e){return Jv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sn(){}var Nu=null;function Lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mi=null,pi=null;function sd(e){var t=oi(e);if(t&&(e=t.stateNode)){var i=e[Rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var o=r[Rt]||null;if(!o)throw Error(l(90));Mu(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&Wf(r)}break e;case"textarea":td(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&di(e,!!i.multiple,t,!1)}}}var ju=!1;function rd(e,t,i){if(ju)return e(t,i);ju=!0;try{var r=e(t);return r}finally{if(ju=!1,(mi!==null||pi!==null)&&(_l(),mi&&(t=mi,e=pi,pi=mi=null,sd(t),e)))for(t=0;t<e.length;t++)sd(e[t])}}function ps(e,t){var i=e.stateNode;if(i===null)return null;var r=i[Rt]||null;if(r===null)return null;i=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,t,typeof i));return i}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=!1;if(_n)try{var ys={};Object.defineProperty(ys,"passive",{get:function(){Uu=!0}}),window.addEventListener("test",ys,ys),window.removeEventListener("test",ys,ys)}catch{Uu=!1}var Kn=null,Bu=null,jr=null;function ld(){if(jr)return jr;var e,t=Bu,i=t.length,r,o="value"in Kn?Kn.value:Kn.textContent,c=o.length;for(e=0;e<i&&t[e]===o[e];e++);var h=i-e;for(r=1;r<=h&&t[i-r]===o[c-r];r++);return jr=o.slice(e,1<r?1-r:void 0)}function Ur(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Br(){return!0}function ud(){return!1}function wt(e){function t(i,r,o,c,h){this._reactName=i,this._targetInst=o,this.type=r,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(i=e[b],this[b]=i?i(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Br:ud,this.isPropagationStopped=ud,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Br)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Br)},persist:function(){},isPersistent:Br}),t}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hr=wt(Da),gs=g({},Da,{view:0,detail:0}),Iv=wt(gs),Hu,ku,vs,kr=g({},gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vs&&(vs&&e.type==="mousemove"?(Hu=e.screenX-vs.screenX,ku=e.screenY-vs.screenY):ku=Hu=0,vs=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:ku}}),od=wt(kr),$v=g({},kr,{dataTransfer:0}),Wv=wt($v),e0=g({},gs,{relatedTarget:0}),qu=wt(e0),t0=g({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),n0=wt(t0),a0=g({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),i0=wt(a0),s0=g({},Da,{data:0}),cd=wt(s0),r0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l0={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"},u0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=u0[e])?!!t[e]:!1}function Zu(){return o0}var c0=g({},gs,{key:function(e){if(e.key){var t=r0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ur(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?l0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zu,charCode:function(e){return e.type==="keypress"?Ur(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ur(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f0=wt(c0),d0=g({},kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fd=wt(d0),h0=g({},gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zu}),m0=wt(h0),p0=g({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),y0=wt(p0),g0=g({},kr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),v0=wt(g0),b0=g({},Da,{newState:0,oldState:0}),S0=wt(b0),_0=[9,13,27,32],Vu=_n&&"CompositionEvent"in window,bs=null;_n&&"documentMode"in document&&(bs=document.documentMode);var x0=_n&&"TextEvent"in window&&!bs,dd=_n&&(!Vu||bs&&8<bs&&11>=bs),hd=" ",md=!1;function pd(e,t){switch(e){case"keyup":return _0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yi=!1;function E0(e,t){switch(e){case"compositionend":return yd(t);case"keypress":return t.which!==32?null:(md=!0,hd);case"textInput":return e=t.data,e===hd&&md?null:e;default:return null}}function T0(e,t){if(yi)return e==="compositionend"||!Vu&&pd(e,t)?(e=ld(),jr=Bu=Kn=null,yi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dd&&t.locale!=="ko"?null:t.data;default:return null}}var R0={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 gd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!R0[e.type]:t==="textarea"}function vd(e,t,i,r){mi?pi?pi.push(r):pi=[r]:mi=r,t=Ol(t,"onChange"),0<t.length&&(i=new Hr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var Ss=null,_s=null;function w0(e){ep(e,0)}function qr(e){var t=ms(e);if(Wf(t))return e}function bd(e,t){if(e==="change")return t}var Sd=!1;if(_n){var Yu;if(_n){var Qu="oninput"in document;if(!Qu){var _d=document.createElement("div");_d.setAttribute("oninput","return;"),Qu=typeof _d.oninput=="function"}Yu=Qu}else Yu=!1;Sd=Yu&&(!document.documentMode||9<document.documentMode)}function xd(){Ss&&(Ss.detachEvent("onpropertychange",Ed),_s=Ss=null)}function Ed(e){if(e.propertyName==="value"&&qr(_s)){var t=[];vd(t,_s,e,Lu(e)),rd(w0,t)}}function A0(e,t,i){e==="focusin"?(xd(),Ss=t,_s=i,Ss.attachEvent("onpropertychange",Ed)):e==="focusout"&&xd()}function O0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qr(_s)}function C0(e,t){if(e==="click")return qr(t)}function M0(e,t){if(e==="input"||e==="change")return qr(t)}function z0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:z0;function xs(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var o=i[r];if(!Ca.call(t,o)||!Ut(e[o],t[o]))return!1}return!0}function Td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rd(e,t){var i=Td(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Td(i)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nr(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Nr(e.document)}return t}function Gu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var D0=_n&&"documentMode"in document&&11>=document.documentMode,gi=null,Xu=null,Es=null,Ku=!1;function Od(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ku||gi==null||gi!==Nr(r)||(r=gi,"selectionStart"in r&&Gu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Es&&xs(Es,r)||(Es=r,r=Ol(Xu,"onSelect"),0<r.length&&(t=new Hr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=gi)))}function Na(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var vi={animationend:Na("Animation","AnimationEnd"),animationiteration:Na("Animation","AnimationIteration"),animationstart:Na("Animation","AnimationStart"),transitionrun:Na("Transition","TransitionRun"),transitionstart:Na("Transition","TransitionStart"),transitioncancel:Na("Transition","TransitionCancel"),transitionend:Na("Transition","TransitionEnd")},Pu={},Cd={};_n&&(Cd=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function La(e){if(Pu[e])return Pu[e];if(!vi[e])return e;var t=vi[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Cd)return Pu[e]=t[i];return e}var Md=La("animationend"),zd=La("animationiteration"),Dd=La("animationstart"),N0=La("transitionrun"),L0=La("transitionstart"),j0=La("transitioncancel"),Nd=La("transitionend"),Ld=new Map,Fu="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(" ");Fu.push("scrollEnd");function nn(e,t){Ld.set(e,t),za(t,[e])}var Zr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Xt=[],bi=0,Ju=0;function Vr(){for(var e=bi,t=Ju=bi=0;t<e;){var i=Xt[t];Xt[t++]=null;var r=Xt[t];Xt[t++]=null;var o=Xt[t];Xt[t++]=null;var c=Xt[t];if(Xt[t++]=null,r!==null&&o!==null){var h=r.pending;h===null?o.next=o:(o.next=h.next,h.next=o),r.pending=o}c!==0&&jd(i,o,c)}}function Yr(e,t,i,r){Xt[bi++]=e,Xt[bi++]=t,Xt[bi++]=i,Xt[bi++]=r,Ju|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Iu(e,t,i,r){return Yr(e,t,i,r),Qr(e)}function ja(e,t){return Yr(e,null,null,t),Qr(e)}function jd(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var o=!1,c=e.return;c!==null;)c.childLanes|=i,r=c.alternate,r!==null&&(r.childLanes|=i),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-jt(i),e=c.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=i|536870912),c):null}function Qr(e){if(50<Gs)throw Gs=0,lc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Si={};function U0(e,t,i,r){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,i,r){return new U0(e,t,i,r)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xn(e,t){var i=e.alternate;return i===null?(i=Bt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Ud(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gr(e,t,i,r,o,c){var h=0;if(r=e,typeof e=="function")$u(e)&&(h=1);else if(typeof e=="string")h=Zb(e,i,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $:return e=Bt(31,i,t,o),e.elementType=$,e.lanes=c,e;case z:return Ua(i.children,o,c,t);case E:h=8,o|=24;break;case C:return e=Bt(12,i,t,o|2),e.elementType=C,e.lanes=c,e;case X:return e=Bt(13,i,t,o),e.elementType=X,e.lanes=c,e;case J:return e=Bt(19,i,t,o),e.elementType=J,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:h=10;break e;case j:h=9;break e;case Q:h=11;break e;case k:h=14;break e;case G:h=16,r=null;break e}h=29,i=Error(l(130,e===null?"null":typeof e,"")),r=null}return t=Bt(h,i,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function Ua(e,t,i,r){return e=Bt(7,e,r,t),e.lanes=i,e}function Wu(e,t,i){return e=Bt(6,e,null,t),e.lanes=i,e}function Bd(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function eo(e,t,i){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hd=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var i=Hd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:vn(t)},Hd.set(e,t),t)}return{value:e,source:t,stack:vn(t)}}var _i=[],xi=0,Xr=null,Ts=0,Pt=[],Ft=0,Pn=null,on=1,cn="";function En(e,t){_i[xi++]=Ts,_i[xi++]=Xr,Xr=e,Ts=t}function kd(e,t,i){Pt[Ft++]=on,Pt[Ft++]=cn,Pt[Ft++]=Pn,Pn=e;var r=on;e=cn;var o=32-jt(r)-1;r&=~(1<<o),i+=1;var c=32-jt(t)+o;if(30<c){var h=o-o%5;c=(r&(1<<h)-1).toString(32),r>>=h,o-=h,on=1<<32-jt(t)+o|i<<o|r,cn=c+e}else on=1<<c|i<<o|r,cn=e}function to(e){e.return!==null&&(En(e,1),kd(e,1,0))}function no(e){for(;e===Xr;)Xr=_i[--xi],_i[xi]=null,Ts=_i[--xi],_i[xi]=null;for(;e===Pn;)Pn=Pt[--Ft],Pt[Ft]=null,cn=Pt[--Ft],Pt[Ft]=null,on=Pt[--Ft],Pt[Ft]=null}function qd(e,t){Pt[Ft++]=on,Pt[Ft++]=cn,Pt[Ft++]=Pn,on=t.id,cn=t.overflow,Pn=e}var pt=null,Ye=null,Te=!1,Fn=null,Jt=!1,ao=Error(l(519));function Jn(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rs(Kt(t,e)),ao}function Zd(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[mt]=e,t[Rt]=r,i){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(i=0;i<Ks.length;i++)_e(Ks[i],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),ed(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),nd(t,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||ip(t.textContent,i)?(r.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),r.onScroll!=null&&_e("scroll",t),r.onScrollEnd!=null&&_e("scrollend",t),r.onClick!=null&&(t.onclick=Sn),t=!0):t=!1,t||Jn(e,!0)}function Vd(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:pt=pt.return}}function Ei(e){if(e!==pt)return!1;if(!Te)return Vd(e),Te=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||xc(e.type,e.memoizedProps)),i=!i),i&&Ye&&Jn(e),Vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ye=hp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ye=hp(e)}else t===27?(t=Ye,ca(e.type)?(e=Ac,Ac=null,Ye=e):Ye=t):Ye=pt?$t(e.stateNode.nextSibling):null;return!0}function Ba(){Ye=pt=null,Te=!1}function io(){var e=Fn;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),Fn=null),e}function Rs(e){Fn===null?Fn=[e]:Fn.push(e)}var so=O(null),Ha=null,Tn=null;function In(e,t,i){I(so,t._currentValue),t._currentValue=i}function Rn(e){e._currentValue=so.current,V(so)}function ro(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function lo(e,t,i,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=o;for(var R=0;R<t.length;R++)if(b.context===t[R]){c.lanes|=i,b=c.alternate,b!==null&&(b.lanes|=i),ro(c.return,i,e),r||(h=null);break e}c=b.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(l(341));h.lanes|=i,c=h.alternate,c!==null&&(c.lanes|=i),ro(h,i,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function Ti(e,t,i,r){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var b=o.type;Ut(o.pendingProps.value,h.value)||(e!==null?e.push(b):e=[b])}}else if(o===Re.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push($s):e=[$s])}o=o.return}e!==null&&lo(t,e,i,r),t.flags|=262144}function Kr(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ka(e){Ha=e,Tn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return Yd(Ha,e)}function Pr(e,t){return Ha===null&&ka(e),Yd(e,t)}function Yd(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Tn===null){if(e===null)throw Error(l(308));Tn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Tn=Tn.next=t;return i}var B0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},H0=n.unstable_scheduleCallback,k0=n.unstable_NormalPriority,tt={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uo(){return{controller:new B0,data:new Map,refCount:0}}function ws(e){e.refCount--,e.refCount===0&&H0(k0,function(){e.controller.abort()})}var As=null,oo=0,Ri=0,wi=null;function q0(e,t){if(As===null){var i=As=[];oo=0,Ri=hc(),wi={status:"pending",value:void 0,then:function(r){i.push(r)}}}return oo++,t.then(Qd,Qd),t}function Qd(){if(--oo===0&&As!==null){wi!==null&&(wi.status="fulfilled");var e=As;As=null,Ri=0,wi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Z0(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(o){i.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<i.length;o++)(0,i[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<i.length;o++)(0,i[o])(void 0)}),r}var Gd=B.S;B.S=function(e,t){Om=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&q0(e,t),Gd!==null&&Gd(e,t)};var qa=O(null);function co(){var e=qa.current;return e!==null?e:qe.pooledCache}function Fr(e,t){t===null?I(qa,qa.current):I(qa,t.pool)}function Xd(){var e=co();return e===null?null:{parent:tt._currentValue,pool:e}}var Ai=Error(l(460)),fo=Error(l(474)),Jr=Error(l(542)),Ir={then:function(){}};function Kd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Pd(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(Sn,Sn),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jd(e),e;default:if(typeof t.status=="string")t.then(Sn,Sn);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jd(e),e}throw Va=t,Ai}}function Za(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Va=i,Ai):i}}var Va=null;function Fd(){if(Va===null)throw Error(l(459));var e=Va;return Va=null,e}function Jd(e){if(e===Ai||e===Jr)throw Error(l(483))}var Oi=null,Os=0;function $r(e){var t=Os;return Os+=1,Oi===null&&(Oi=[]),Pd(Oi,e,t)}function Cs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wr(e,t){throw t.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Id(e){function t(M,A){if(e){var D=M.deletions;D===null?(M.deletions=[A],M.flags|=16):D.push(A)}}function i(M,A){if(!e)return null;for(;A!==null;)t(M,A),A=A.sibling;return null}function r(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function o(M,A){return M=xn(M,A),M.index=0,M.sibling=null,M}function c(M,A,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<A?(M.flags|=67108866,A):D):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function h(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,A,D,q){return A===null||A.tag!==6?(A=Wu(D,M.mode,q),A.return=M,A):(A=o(A,D),A.return=M,A)}function R(M,A,D,q){var le=D.type;return le===z?H(M,A,D.props.children,q,D.key):A!==null&&(A.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===G&&Za(le)===A.type)?(A=o(A,D.props),Cs(A,D),A.return=M,A):(A=Gr(D.type,D.key,D.props,null,M.mode,q),Cs(A,D),A.return=M,A)}function N(M,A,D,q){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=eo(D,M.mode,q),A.return=M,A):(A=o(A,D.children||[]),A.return=M,A)}function H(M,A,D,q,le){return A===null||A.tag!==7?(A=Ua(D,M.mode,q,le),A.return=M,A):(A=o(A,D),A.return=M,A)}function Y(M,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Wu(""+A,M.mode,D),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case x:return D=Gr(A.type,A.key,A.props,null,M.mode,D),Cs(D,A),D.return=M,D;case w:return A=eo(A,M.mode,D),A.return=M,A;case G:return A=Za(A),Y(M,A,D)}if(Je(A)||oe(A))return A=Ua(A,M.mode,D,null),A.return=M,A;if(typeof A.then=="function")return Y(M,$r(A),D);if(A.$$typeof===Z)return Y(M,Pr(M,A),D);Wr(M,A)}return null}function L(M,A,D,q){var le=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return le!==null?null:b(M,A,""+D,q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===le?R(M,A,D,q):null;case w:return D.key===le?N(M,A,D,q):null;case G:return D=Za(D),L(M,A,D,q)}if(Je(D)||oe(D))return le!==null?null:H(M,A,D,q,null);if(typeof D.then=="function")return L(M,A,$r(D),q);if(D.$$typeof===Z)return L(M,A,Pr(M,D),q);Wr(M,D)}return null}function U(M,A,D,q,le){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return M=M.get(D)||null,b(A,M,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return M=M.get(q.key===null?D:q.key)||null,R(A,M,q,le);case w:return M=M.get(q.key===null?D:q.key)||null,N(A,M,q,le);case G:return q=Za(q),U(M,A,D,q,le)}if(Je(q)||oe(q))return M=M.get(D)||null,H(A,M,q,le,null);if(typeof q.then=="function")return U(M,A,D,$r(q),le);if(q.$$typeof===Z)return U(M,A,D,Pr(A,q),le);Wr(A,q)}return null}function te(M,A,D,q){for(var le=null,Ae=null,ae=A,ge=A=0,Ee=null;ae!==null&&ge<D.length;ge++){ae.index>ge?(Ee=ae,ae=null):Ee=ae.sibling;var Oe=L(M,ae,D[ge],q);if(Oe===null){ae===null&&(ae=Ee);break}e&&ae&&Oe.alternate===null&&t(M,ae),A=c(Oe,A,ge),Ae===null?le=Oe:Ae.sibling=Oe,Ae=Oe,ae=Ee}if(ge===D.length)return i(M,ae),Te&&En(M,ge),le;if(ae===null){for(;ge<D.length;ge++)ae=Y(M,D[ge],q),ae!==null&&(A=c(ae,A,ge),Ae===null?le=ae:Ae.sibling=ae,Ae=ae);return Te&&En(M,ge),le}for(ae=r(ae);ge<D.length;ge++)Ee=U(ae,M,ge,D[ge],q),Ee!==null&&(e&&Ee.alternate!==null&&ae.delete(Ee.key===null?ge:Ee.key),A=c(Ee,A,ge),Ae===null?le=Ee:Ae.sibling=Ee,Ae=Ee);return e&&ae.forEach(function(pa){return t(M,pa)}),Te&&En(M,ge),le}function fe(M,A,D,q){if(D==null)throw Error(l(151));for(var le=null,Ae=null,ae=A,ge=A=0,Ee=null,Oe=D.next();ae!==null&&!Oe.done;ge++,Oe=D.next()){ae.index>ge?(Ee=ae,ae=null):Ee=ae.sibling;var pa=L(M,ae,Oe.value,q);if(pa===null){ae===null&&(ae=Ee);break}e&&ae&&pa.alternate===null&&t(M,ae),A=c(pa,A,ge),Ae===null?le=pa:Ae.sibling=pa,Ae=pa,ae=Ee}if(Oe.done)return i(M,ae),Te&&En(M,ge),le;if(ae===null){for(;!Oe.done;ge++,Oe=D.next())Oe=Y(M,Oe.value,q),Oe!==null&&(A=c(Oe,A,ge),Ae===null?le=Oe:Ae.sibling=Oe,Ae=Oe);return Te&&En(M,ge),le}for(ae=r(ae);!Oe.done;ge++,Oe=D.next())Oe=U(ae,M,ge,Oe.value,q),Oe!==null&&(e&&Oe.alternate!==null&&ae.delete(Oe.key===null?ge:Oe.key),A=c(Oe,A,ge),Ae===null?le=Oe:Ae.sibling=Oe,Ae=Oe);return e&&ae.forEach(function($b){return t(M,$b)}),Te&&En(M,ge),le}function He(M,A,D,q){if(typeof D=="object"&&D!==null&&D.type===z&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case x:e:{for(var le=D.key;A!==null;){if(A.key===le){if(le=D.type,le===z){if(A.tag===7){i(M,A.sibling),q=o(A,D.props.children),q.return=M,M=q;break e}}else if(A.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===G&&Za(le)===A.type){i(M,A.sibling),q=o(A,D.props),Cs(q,D),q.return=M,M=q;break e}i(M,A);break}else t(M,A);A=A.sibling}D.type===z?(q=Ua(D.props.children,M.mode,q,D.key),q.return=M,M=q):(q=Gr(D.type,D.key,D.props,null,M.mode,q),Cs(q,D),q.return=M,M=q)}return h(M);case w:e:{for(le=D.key;A!==null;){if(A.key===le)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){i(M,A.sibling),q=o(A,D.children||[]),q.return=M,M=q;break e}else{i(M,A);break}else t(M,A);A=A.sibling}q=eo(D,M.mode,q),q.return=M,M=q}return h(M);case G:return D=Za(D),He(M,A,D,q)}if(Je(D))return te(M,A,D,q);if(oe(D)){if(le=oe(D),typeof le!="function")throw Error(l(150));return D=le.call(D),fe(M,A,D,q)}if(typeof D.then=="function")return He(M,A,$r(D),q);if(D.$$typeof===Z)return He(M,A,Pr(M,D),q);Wr(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(i(M,A.sibling),q=o(A,D),q.return=M,M=q):(i(M,A),q=Wu(D,M.mode,q),q.return=M,M=q),h(M)):i(M,A)}return function(M,A,D,q){try{Os=0;var le=He(M,A,D,q);return Oi=null,le}catch(ae){if(ae===Ai||ae===Jr)throw ae;var Ae=Bt(29,ae,null,M.mode);return Ae.lanes=q,Ae.return=M,Ae}}}var Ya=Id(!0),$d=Id(!1),$n=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ea(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(De&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Qr(e),jd(e,null,i),t}return Yr(e,r,t,i),Qr(e)}function Ms(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Yf(e,i)}}function po(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var h={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,i=i.next}while(i!==null);c===null?o=c=t:c=c.next=t}else o=c=t;i={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var yo=!1;function zs(){if(yo){var e=wi;if(e!==null)throw e}}function Ds(e,t,i,r){yo=!1;var o=e.updateQueue;$n=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var R=b,N=R.next;R.next=null,h===null?c=N:h.next=N,h=R;var H=e.alternate;H!==null&&(H=H.updateQueue,b=H.lastBaseUpdate,b!==h&&(b===null?H.firstBaseUpdate=N:b.next=N,H.lastBaseUpdate=R))}if(c!==null){var Y=o.baseState;h=0,H=N=R=null,b=c;do{var L=b.lane&-536870913,U=L!==b.lane;if(U?(xe&L)===L:(r&L)===L){L!==0&&L===Ri&&(yo=!0),H!==null&&(H=H.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var te=e,fe=b;L=t;var He=i;switch(fe.tag){case 1:if(te=fe.payload,typeof te=="function"){Y=te.call(He,Y,L);break e}Y=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=fe.payload,L=typeof te=="function"?te.call(He,Y,L):te,L==null)break e;Y=g({},Y,L);break e;case 2:$n=!0}}L=b.callback,L!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[L]:U.push(L))}else U={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},H===null?(N=H=U,R=Y):H=H.next=U,h|=L;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;U=b,b=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);H===null&&(R=Y),o.baseState=R,o.firstBaseUpdate=N,o.lastBaseUpdate=H,c===null&&(o.shared.lanes=0),sa|=h,e.lanes=h,e.memoizedState=Y}}function Wd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function eh(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Wd(i[e],t)}var Ci=O(null),el=O(0);function th(e,t){e=Ln,I(el,e),I(Ci,t),Ln=e|t.baseLanes}function go(){I(el,Ln),I(Ci,Ci.current)}function vo(){Ln=el.current,V(Ci),V(el)}var Ht=O(null),It=null;function ta(e){var t=e.alternate;I($e,$e.current&1),I(Ht,e),It===null&&(t===null||Ci.current!==null||t.memoizedState!==null)&&(It=e)}function bo(e){I($e,$e.current),I(Ht,e),It===null&&(It=e)}function nh(e){e.tag===22?(I($e,$e.current),I(Ht,e),It===null&&(It=e)):na()}function na(){I($e,$e.current),I(Ht,Ht.current)}function kt(e){V(Ht),It===e&&(It=null),V($e)}var $e=O(0);function tl(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Rc(i)||wc(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wn=0,ye=null,Ue=null,nt=null,nl=!1,Mi=!1,Qa=!1,al=0,Ns=0,zi=null,V0=0;function Pe(){throw Error(l(321))}function So(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Ut(e[i],t[i]))return!1;return!0}function _o(e,t,i,r,o,c){return wn=c,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?kh:Uo,Qa=!1,c=i(r,o),Qa=!1,Mi&&(c=ih(t,i,r,o)),ah(e),c}function ah(e){B.H=Us;var t=Ue!==null&&Ue.next!==null;if(wn=0,nt=Ue=ye=null,nl=!1,Ns=0,zi=null,t)throw Error(l(300));e===null||at||(e=e.dependencies,e!==null&&Kr(e)&&(at=!0))}function ih(e,t,i,r){ye=e;var o=0;do{if(Mi&&(zi=null),Ns=0,Mi=!1,25<=o)throw Error(l(301));if(o+=1,nt=Ue=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}B.H=qh,c=t(i,r)}while(Mi);return c}function Y0(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Ls(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(ye.flags|=1024),t}function xo(){var e=al!==0;return al=0,e}function Eo(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function To(e){if(nl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}nl=!1}wn=0,nt=Ue=ye=null,Mi=!1,Ns=al=0,zi=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?ye.memoizedState=nt=e:nt=nt.next=e,nt}function We(){if(Ue===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=nt===null?ye.memoizedState:nt.next;if(t!==null)nt=t,Ue=e;else{if(e===null)throw ye.alternate===null?Error(l(467)):Error(l(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},nt===null?ye.memoizedState=nt=e:nt=nt.next=e}return nt}function il(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ls(e){var t=Ns;return Ns+=1,zi===null&&(zi=[]),e=Pd(zi,e,t),t=ye,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?kh:Uo),e}function sl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ls(e);if(e.$$typeof===Z)return yt(e)}throw Error(l(438,String(e)))}function Ro(e){var t=null,i=ye.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=ye.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=il(),ye.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=de;return t.index++,i}function An(e,t){return typeof t=="function"?t(e):t}function rl(e){var t=We();return wo(t,Ue,e)}function wo(e,t,i){var r=e.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=i;var o=e.baseQueue,c=r.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,r.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var b=h=null,R=null,N=t,H=!1;do{var Y=N.lane&-536870913;if(Y!==N.lane?(xe&Y)===Y:(wn&Y)===Y){var L=N.revertLane;if(L===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),Y===Ri&&(H=!0);else if((wn&L)===L){N=N.next,L===Ri&&(H=!0);continue}else Y={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},R===null?(b=R=Y,h=c):R=R.next=Y,ye.lanes|=L,sa|=L;Y=N.action,Qa&&i(c,Y),c=N.hasEagerState?N.eagerState:i(c,Y)}else L={lane:Y,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},R===null?(b=R=L,h=c):R=R.next=L,ye.lanes|=Y,sa|=Y;N=N.next}while(N!==null&&N!==t);if(R===null?h=c:R.next=b,!Ut(c,e.memoizedState)&&(at=!0,H&&(i=wi,i!==null)))throw i;e.memoizedState=c,e.baseState=h,e.baseQueue=R,r.lastRenderedState=c}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ao(e){var t=We(),i=t.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var r=i.dispatch,o=i.pending,c=t.memoizedState;if(o!==null){i.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Ut(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),i.lastRenderedState=c}return[c,r]}function sh(e,t,i){var r=ye,o=We(),c=Te;if(c){if(i===void 0)throw Error(l(407));i=i()}else i=t();var h=!Ut((Ue||o).memoizedState,i);if(h&&(o.memoizedState=i,at=!0),o=o.queue,Mo(uh.bind(null,r,o,e),[e]),o.getSnapshot!==t||h||nt!==null&&nt.memoizedState.tag&1){if(r.flags|=2048,Di(9,{destroy:void 0},lh.bind(null,r,o,i,t),null),qe===null)throw Error(l(349));c||(wn&127)!==0||rh(r,t,i)}return i}function rh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=ye.updateQueue,t===null?(t=il(),ye.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function lh(e,t,i,r){t.value=i,t.getSnapshot=r,oh(t)&&ch(e)}function uh(e,t,i){return i(function(){oh(t)&&ch(e)})}function oh(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Ut(e,i)}catch{return!0}}function ch(e){var t=ja(e,2);t!==null&&zt(t,e,2)}function Oo(e){var t=xt();if(typeof e=="function"){var i=e;if(e=i(),Qa){Gn(!0);try{i()}finally{Gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},t}function fh(e,t,i,r){return e.baseState=i,wo(e,Ue,typeof r=="function"?r:An)}function Q0(e,t,i,r,o){if(ol(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};B.T!==null?i(!0):c.isTransition=!1,r(c),i=t.pending,i===null?(c.next=t.pending=c,dh(t,c)):(c.next=i.next,t.pending=i.next=c)}}function dh(e,t){var i=t.action,r=t.payload,o=e.state;if(t.isTransition){var c=B.T,h={};B.T=h;try{var b=i(o,r),R=B.S;R!==null&&R(h,b),hh(e,t,b)}catch(N){Co(e,t,N)}finally{c!==null&&h.types!==null&&(c.types=h.types),B.T=c}}else try{c=i(o,r),hh(e,t,c)}catch(N){Co(e,t,N)}}function hh(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){mh(e,t,r)},function(r){return Co(e,t,r)}):mh(e,t,i)}function mh(e,t,i){t.status="fulfilled",t.value=i,ph(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,dh(e,i)))}function Co(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,ph(t),t=t.next;while(t!==r)}e.action=null}function ph(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yh(e,t){return t}function gh(e,t){if(Te){var i=qe.formState;if(i!==null){e:{var r=ye;if(Te){if(Ye){t:{for(var o=Ye,c=Jt;o.nodeType!==8;){if(!c){o=null;break t}if(o=$t(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ye=$t(o.nextSibling),r=o.data==="F!";break e}}Jn(r)}r=!1}r&&(t=i[0])}}return i=xt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yh,lastRenderedState:t},i.queue=r,i=Uh.bind(null,ye,r),r.dispatch=i,r=Oo(!1),c=jo.bind(null,ye,!1,r.queue),r=xt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,i=Q0.bind(null,ye,o,c,i),o.dispatch=i,r.memoizedState=e,[t,i,!1]}function vh(e){var t=We();return bh(t,Ue,e)}function bh(e,t,i){if(t=wo(e,t,yh)[0],e=rl(An)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ls(t)}catch(h){throw h===Ai?Jr:h}else r=t;t=We();var o=t.queue,c=o.dispatch;return i!==t.memoizedState&&(ye.flags|=2048,Di(9,{destroy:void 0},G0.bind(null,o,i),null)),[r,c,e]}function G0(e,t){e.action=t}function Sh(e){var t=We(),i=Ue;if(i!==null)return bh(t,i,e);We(),t=t.memoizedState,i=We();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Di(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=ye.updateQueue,t===null&&(t=il(),ye.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function _h(){return We().memoizedState}function ll(e,t,i,r){var o=xt();ye.flags|=e,o.memoizedState=Di(1|t,{destroy:void 0},i,r===void 0?null:r)}function ul(e,t,i,r){var o=We();r=r===void 0?null:r;var c=o.memoizedState.inst;Ue!==null&&r!==null&&So(r,Ue.memoizedState.deps)?o.memoizedState=Di(t,c,i,r):(ye.flags|=e,o.memoizedState=Di(1|t,c,i,r))}function xh(e,t){ll(8390656,8,e,t)}function Mo(e,t){ul(2048,8,e,t)}function X0(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=il(),ye.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Eh(e){var t=We().memoizedState;return X0({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Th(e,t){return ul(4,2,e,t)}function Rh(e,t){return ul(4,4,e,t)}function wh(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ah(e,t,i){i=i!=null?i.concat([e]):null,ul(4,4,wh.bind(null,t,e),i)}function zo(){}function Oh(e,t){var i=We();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&So(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function Ch(e,t){var i=We();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&So(t,r[1]))return r[0];if(r=e(),Qa){Gn(!0);try{e()}finally{Gn(!1)}}return i.memoizedState=[r,t],r}function Do(e,t,i){return i===void 0||(wn&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Mm(),ye.lanes|=e,sa|=e,i)}function Mh(e,t,i,r){return Ut(i,t)?i:Ci.current!==null?(e=Do(e,i,r),Ut(e,t)||(at=!0),e):(wn&42)===0||(wn&1073741824)!==0&&(xe&261930)===0?(at=!0,e.memoizedState=i):(e=Mm(),ye.lanes|=e,sa|=e,t)}function zh(e,t,i,r,o){var c=F.p;F.p=c!==0&&8>c?c:8;var h=B.T,b={};B.T=b,jo(e,!1,t,i);try{var R=o(),N=B.S;if(N!==null&&N(b,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var H=Z0(R,r);js(e,t,H,Vt(e))}else js(e,t,r,Vt(e))}catch(Y){js(e,t,{then:function(){},status:"rejected",reason:Y},Vt())}finally{F.p=c,h!==null&&b.types!==null&&(h.types=b.types),B.T=h}}function K0(){}function No(e,t,i,r){if(e.tag!==5)throw Error(l(476));var o=Dh(e).queue;zh(e,o,t,ue,i===null?K0:function(){return Nh(e),i(r)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:ue},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Nh(e){var t=Dh(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},Vt())}function Lo(){return yt($s)}function Lh(){return We().memoizedState}function jh(){return We().memoizedState}function P0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Vt();e=Wn(i);var r=ea(t,e,i);r!==null&&(zt(r,t,i),Ms(r,t,i)),t={cache:uo()},e.payload=t;return}t=t.return}}function F0(e,t,i){var r=Vt();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ol(e)?Bh(t,i):(i=Iu(e,t,i,r),i!==null&&(zt(i,e,r),Hh(i,t,r)))}function Uh(e,t,i){var r=Vt();js(e,t,i,r)}function js(e,t,i,r){var o={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ol(e))Bh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,b=c(h,i);if(o.hasEagerState=!0,o.eagerState=b,Ut(b,h))return Yr(e,t,o,0),qe===null&&Vr(),!1}catch{}if(i=Iu(e,t,o,r),i!==null)return zt(i,e,r),Hh(i,t,r),!0}return!1}function jo(e,t,i,r){if(r={lane:2,revertLane:hc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ol(e)){if(t)throw Error(l(479))}else t=Iu(e,i,r,2),t!==null&&zt(t,e,2)}function ol(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Bh(e,t){Mi=nl=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Hh(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Yf(e,i)}}var Us={readContext:yt,use:sl,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useLayoutEffect:Pe,useInsertionEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useSyncExternalStore:Pe,useId:Pe,useHostTransitionStatus:Pe,useFormState:Pe,useActionState:Pe,useOptimistic:Pe,useMemoCache:Pe,useCacheRefresh:Pe};Us.useEffectEvent=Pe;var kh={readContext:yt,use:sl,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:xh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,ll(4194308,4,wh.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ll(4194308,4,e,t)},useInsertionEffect:function(e,t){ll(4,2,e,t)},useMemo:function(e,t){var i=xt();t=t===void 0?null:t;var r=e();if(Qa){Gn(!0);try{e()}finally{Gn(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=xt();if(i!==void 0){var o=i(t);if(Qa){Gn(!0);try{i(t)}finally{Gn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=F0.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=Oo(e);var t=e.queue,i=Uh.bind(null,ye,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:zo,useDeferredValue:function(e,t){var i=xt();return Do(i,e,t)},useTransition:function(){var e=Oo(!1);return e=zh.bind(null,ye,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=ye,o=xt();if(Te){if(i===void 0)throw Error(l(407));i=i()}else{if(i=t(),qe===null)throw Error(l(349));(xe&127)!==0||rh(r,t,i)}o.memoizedState=i;var c={value:i,getSnapshot:t};return o.queue=c,xh(uh.bind(null,r,c,e),[e]),r.flags|=2048,Di(9,{destroy:void 0},lh.bind(null,r,c,i,t),null),i},useId:function(){var e=xt(),t=qe.identifierPrefix;if(Te){var i=cn,r=on;i=(r&~(1<<32-jt(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=al++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=V0++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Lo,useFormState:gh,useActionState:gh,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=jo.bind(null,ye,!0,i),i.dispatch=t,[e,t]},useMemoCache:Ro,useCacheRefresh:function(){return xt().memoizedState=P0.bind(null,ye)},useEffectEvent:function(e){var t=xt(),i={impl:e};return t.memoizedState=i,function(){if((De&2)!==0)throw Error(l(440));return i.impl.apply(void 0,arguments)}}},Uo={readContext:yt,use:sl,useCallback:Oh,useContext:yt,useEffect:Mo,useImperativeHandle:Ah,useInsertionEffect:Th,useLayoutEffect:Rh,useMemo:Ch,useReducer:rl,useRef:_h,useState:function(){return rl(An)},useDebugValue:zo,useDeferredValue:function(e,t){var i=We();return Mh(i,Ue.memoizedState,e,t)},useTransition:function(){var e=rl(An)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ls(e),t]},useSyncExternalStore:sh,useId:Lh,useHostTransitionStatus:Lo,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var i=We();return fh(i,Ue,e,t)},useMemoCache:Ro,useCacheRefresh:jh};Uo.useEffectEvent=Eh;var qh={readContext:yt,use:sl,useCallback:Oh,useContext:yt,useEffect:Mo,useImperativeHandle:Ah,useInsertionEffect:Th,useLayoutEffect:Rh,useMemo:Ch,useReducer:Ao,useRef:_h,useState:function(){return Ao(An)},useDebugValue:zo,useDeferredValue:function(e,t){var i=We();return Ue===null?Do(i,e,t):Mh(i,Ue.memoizedState,e,t)},useTransition:function(){var e=Ao(An)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ls(e),t]},useSyncExternalStore:sh,useId:Lh,useHostTransitionStatus:Lo,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var i=We();return Ue!==null?fh(i,Ue,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Ro,useCacheRefresh:jh};qh.useEffectEvent=Eh;function Bo(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:g({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ho={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=Vt(),o=Wn(r);o.payload=t,i!=null&&(o.callback=i),t=ea(e,o,r),t!==null&&(zt(t,e,r),Ms(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=Vt(),o=Wn(r);o.tag=1,o.payload=t,i!=null&&(o.callback=i),t=ea(e,o,r),t!==null&&(zt(t,e,r),Ms(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Vt(),r=Wn(i);r.tag=2,t!=null&&(r.callback=t),t=ea(e,r,i),t!==null&&(zt(t,e,i),Ms(t,e,i))}};function Zh(e,t,i,r,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,h):t.prototype&&t.prototype.isPureReactComponent?!xs(i,r)||!xs(o,c):!0}function Vh(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&Ho.enqueueReplaceState(t,t.state,null)}function Ga(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=g({},i));for(var o in e)i[o]===void 0&&(i[o]=e[o])}return i}function Yh(e){Zr(e)}function Qh(e){console.error(e)}function Gh(e){Zr(e)}function cl(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Xh(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function ko(e,t,i){return i=Wn(i),i.tag=3,i.payload={element:null},i.callback=function(){cl(e,t)},i}function Kh(e){return e=Wn(e),e.tag=3,e}function Ph(e,t,i,r){var o=i.type.getDerivedStateFromError;if(typeof o=="function"){var c=r.value;e.payload=function(){return o(c)},e.callback=function(){Xh(t,i,r)}}var h=i.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Xh(t,i,r),typeof o!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var b=r.stack;this.componentDidCatch(r.value,{componentStack:b!==null?b:""})})}function J0(e,t,i,r,o){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&Ti(t,i,o,!0),i=Ht.current,i!==null){switch(i.tag){case 31:case 13:return It===null?xl():i.alternate===null&&Fe===0&&(Fe=3),i.flags&=-257,i.flags|=65536,i.lanes=o,r===Ir?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),cc(e,r,o)),!1;case 22:return i.flags|=65536,r===Ir?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),cc(e,r,o)),!1}throw Error(l(435,i.tag))}return cc(e,r,o),xl(),!1}if(Te)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==ao&&(e=Error(l(422),{cause:r}),Rs(Kt(e,i)))):(r!==ao&&(t=Error(l(423),{cause:r}),Rs(Kt(t,i))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Kt(r,i),o=ko(e.stateNode,r,o),po(e,o),Fe!==4&&(Fe=2)),!1;var c=Error(l(520),{cause:r});if(c=Kt(c,i),Qs===null?Qs=[c]:Qs.push(c),Fe!==4&&(Fe=2),t===null)return!0;r=Kt(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=o&-o,i.lanes|=e,e=ko(i.stateNode,r,e),po(i,e),!1;case 1:if(t=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ra===null||!ra.has(c))))return i.flags|=65536,o&=-o,i.lanes|=o,o=Kh(o),Ph(o,e,i,r),po(i,o),!1}i=i.return}while(i!==null);return!1}var qo=Error(l(461)),at=!1;function gt(e,t,i,r){t.child=e===null?$d(t,null,i,r):Ya(t,e.child,i,r)}function Fh(e,t,i,r,o){i=i.render;var c=t.ref;if("ref"in r){var h={};for(var b in r)b!=="ref"&&(h[b]=r[b])}else h=r;return ka(t),r=_o(e,t,i,h,c,o),b=xo(),e!==null&&!at?(Eo(e,t,o),On(e,t,o)):(Te&&b&&to(t),t.flags|=1,gt(e,t,r,o),t.child)}function Jh(e,t,i,r,o){if(e===null){var c=i.type;return typeof c=="function"&&!$u(c)&&c.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=c,Ih(e,t,c,r,o)):(e=Gr(i.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Po(e,o)){var h=c.memoizedProps;if(i=i.compare,i=i!==null?i:xs,i(h,r)&&e.ref===t.ref)return On(e,t,o)}return t.flags|=1,e=xn(c,r),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,i,r,o){if(e!==null){var c=e.memoizedProps;if(xs(c,r)&&e.ref===t.ref)if(at=!1,t.pendingProps=r=c,Po(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,On(e,t,o)}return Zo(e,t,i,r,o)}function $h(e,t,i,r){var o=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|i:i,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~c}else r=0,t.child=null;return Wh(e,t,c,i,r)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fr(t,c!==null?c.cachePool:null),c!==null?th(t,c):go(),nh(t);else return r=t.lanes=536870912,Wh(e,t,c!==null?c.baseLanes|i:i,i,r)}else c!==null?(Fr(t,c.cachePool),th(t,c),na(),t.memoizedState=null):(e!==null&&Fr(t,null),go(),na());return gt(e,t,o,i),t.child}function Bs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wh(e,t,i,r,o){var c=co();return c=c===null?null:{parent:tt._currentValue,pool:c},t.memoizedState={baseLanes:i,cachePool:c},e!==null&&Fr(t,null),go(),nh(t),e!==null&&Ti(e,t,r,!0),t.childLanes=o,null}function fl(e,t){return t=hl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function em(e,t,i){return Ya(t,e.child,null,i),e=fl(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function I0(e,t,i){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(r.mode==="hidden")return e=fl(t,r),t.lanes=536870912,Bs(null,e);if(bo(t),(e=Ye)?(e=dp(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:on,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},i=Bd(e),i.return=t,t.child=i,pt=t,Ye=null)):e=null,e===null)throw Jn(t);return t.lanes=536870912,null}return fl(t,r)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(bo(t),o)if(t.flags&256)t.flags&=-257,t=em(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(at||Ti(e,t,i,!1),o=(i&e.childLanes)!==0,at||o){if(r=qe,r!==null&&(h=Qf(r,i),h!==0&&h!==c.retryLane))throw c.retryLane=h,ja(e,h),zt(r,e,h),qo;xl(),t=em(e,t,i)}else e=c.treeContext,Ye=$t(h.nextSibling),pt=t,Te=!0,Fn=null,Jt=!1,e!==null&&qd(t,e),t=fl(t,r),t.flags|=4096;return t}return e=xn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function dl(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Zo(e,t,i,r,o){return ka(t),i=_o(e,t,i,r,void 0,o),r=xo(),e!==null&&!at?(Eo(e,t,o),On(e,t,o)):(Te&&r&&to(t),t.flags|=1,gt(e,t,i,o),t.child)}function tm(e,t,i,r,o,c){return ka(t),t.updateQueue=null,i=ih(t,r,i,o),ah(e),r=xo(),e!==null&&!at?(Eo(e,t,c),On(e,t,c)):(Te&&r&&to(t),t.flags|=1,gt(e,t,i,c),t.child)}function nm(e,t,i,r,o){if(ka(t),t.stateNode===null){var c=Si,h=i.contextType;typeof h=="object"&&h!==null&&(c=yt(h)),c=new i(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ho,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},ho(t),h=i.contextType,c.context=typeof h=="object"&&h!==null?yt(h):Si,c.state=t.memoizedState,h=i.getDerivedStateFromProps,typeof h=="function"&&(Bo(t,i,h,r),c.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Ho.enqueueReplaceState(c,c.state,null),Ds(t,r,c,o),zs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,R=Ga(i,b);c.props=R;var N=c.context,H=i.contextType;h=Si,typeof H=="object"&&H!==null&&(h=yt(H));var Y=i.getDerivedStateFromProps;H=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||N!==h)&&Vh(t,c,r,h),$n=!1;var L=t.memoizedState;c.state=L,Ds(t,r,c,o),zs(),N=t.memoizedState,b||L!==N||$n?(typeof Y=="function"&&(Bo(t,i,Y,r),N=t.memoizedState),(R=$n||Zh(t,i,R,r,L,N,h))?(H||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"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=N),c.props=r,c.state=N,c.context=h,r=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,mo(e,t),h=t.memoizedProps,H=Ga(i,h),c.props=H,Y=t.pendingProps,L=c.context,N=i.contextType,R=Si,typeof N=="object"&&N!==null&&(R=yt(N)),b=i.getDerivedStateFromProps,(N=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==Y||L!==R)&&Vh(t,c,r,R),$n=!1,L=t.memoizedState,c.state=L,Ds(t,r,c,o),zs();var U=t.memoizedState;h!==Y||L!==U||$n||e!==null&&e.dependencies!==null&&Kr(e.dependencies)?(typeof b=="function"&&(Bo(t,i,b,r),U=t.memoizedState),(H=$n||Zh(t,i,H,r,L,U,R)||e!==null&&e.dependencies!==null&&Kr(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,U,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,U,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=U),c.props=r,c.state=U,c.context=R,r=H):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,dl(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=Ya(t,e.child,null,o),t.child=Ya(t,null,i,o)):gt(e,t,i,o),t.memoizedState=c.state,e=t.child):e=On(e,t,o),e}function am(e,t,i,r){return Ba(),t.flags|=256,gt(e,t,i,r),t.child}var Vo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yo(e){return{baseLanes:e,cachePool:Xd()}}function Qo(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=Zt),e}function im(e,t,i){var r=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(o?ta(t):na(),(e=Ye)?(e=dp(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:on,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},i=Bd(e),i.return=t,t.child=i,pt=t,Ye=null)):e=null,e===null)throw Jn(t);return wc(e)?t.lanes=32:t.lanes=536870912,null}var b=r.children;return r=r.fallback,o?(na(),o=t.mode,b=hl({mode:"hidden",children:b},o),r=Ua(r,o,i,null),b.return=t,r.return=t,b.sibling=r,t.child=b,r=t.child,r.memoizedState=Yo(i),r.childLanes=Qo(e,h,i),t.memoizedState=Vo,Bs(null,r)):(ta(t),Go(t,b))}var R=e.memoizedState;if(R!==null&&(b=R.dehydrated,b!==null)){if(c)t.flags&256?(ta(t),t.flags&=-257,t=Xo(e,t,i)):t.memoizedState!==null?(na(),t.child=e.child,t.flags|=128,t=null):(na(),b=r.fallback,o=t.mode,r=hl({mode:"visible",children:r.children},o),b=Ua(b,o,i,null),b.flags|=2,r.return=t,b.return=t,r.sibling=b,t.child=r,Ya(t,e.child,null,i),r=t.child,r.memoizedState=Yo(i),r.childLanes=Qo(e,h,i),t.memoizedState=Vo,t=Bs(null,r));else if(ta(t),wc(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var N=h.dgst;h=N,r=Error(l(419)),r.stack="",r.digest=h,Rs({value:r,source:null,stack:null}),t=Xo(e,t,i)}else if(at||Ti(e,t,i,!1),h=(i&e.childLanes)!==0,at||h){if(h=qe,h!==null&&(r=Qf(h,i),r!==0&&r!==R.retryLane))throw R.retryLane=r,ja(e,r),zt(h,e,r),qo;Rc(b)||xl(),t=Xo(e,t,i)}else Rc(b)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Ye=$t(b.nextSibling),pt=t,Te=!0,Fn=null,Jt=!1,e!==null&&qd(t,e),t=Go(t,r.children),t.flags|=4096);return t}return o?(na(),b=r.fallback,o=t.mode,R=e.child,N=R.sibling,r=xn(R,{mode:"hidden",children:r.children}),r.subtreeFlags=R.subtreeFlags&65011712,N!==null?b=xn(N,b):(b=Ua(b,o,i,null),b.flags|=2),b.return=t,r.return=t,r.sibling=b,t.child=r,Bs(null,r),r=t.child,b=e.child.memoizedState,b===null?b=Yo(i):(o=b.cachePool,o!==null?(R=tt._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=Xd(),b={baseLanes:b.baseLanes|i,cachePool:o}),r.memoizedState=b,r.childLanes=Qo(e,h,i),t.memoizedState=Vo,Bs(e.child,r)):(ta(t),i=e.child,e=i.sibling,i=xn(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=i,t.memoizedState=null,i)}function Go(e,t){return t=hl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hl(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Xo(e,t,i){return Ya(t,e.child,null,i),e=Go(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sm(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ro(e.return,t,i)}function Ko(e,t,i,r,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=r,h.tail=i,h.tailMode=o,h.treeForkCount=c)}function rm(e,t,i){var r=t.pendingProps,o=r.revealOrder,c=r.tail;r=r.children;var h=$e.current,b=(h&2)!==0;if(b?(h=h&1|2,t.flags|=128):h&=1,I($e,h),gt(e,t,r,i),r=Te?Ts:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sm(e,i,t);else if(e.tag===19)sm(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(i=t.child,o=null;i!==null;)e=i.alternate,e!==null&&tl(e)===null&&(o=i),i=i.sibling;i=o,i===null?(o=t.child,t.child=null):(o=i.sibling,i.sibling=null),Ko(t,!1,o,i,c,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&tl(e)===null){t.child=o;break}e=o.sibling,o.sibling=i,i=o,o=e}Ko(t,!0,i,null,c,r);break;case"together":Ko(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function On(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),sa|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Ti(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,i=xn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=xn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Po(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Kr(e)))}function $0(e,t,i){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),In(t,tt,e.memoizedState.cache),Ba();break;case 27:case 5:yn(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:In(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,bo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ta(t),t.flags|=128,null):(i&t.child.childLanes)!==0?im(e,t,i):(ta(t),e=On(e,t,i),e!==null?e.sibling:null);ta(t);break;case 19:var o=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(Ti(e,t,i,!1),r=(i&t.childLanes)!==0),o){if(r)return rm(e,t,i);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I($e,$e.current),r)break;return null;case 22:return t.lanes=0,$h(e,t,i,t.pendingProps);case 24:In(t,tt,e.memoizedState.cache)}return On(e,t,i)}function lm(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Po(e,i)&&(t.flags&128)===0)return at=!1,$0(e,t,i);at=(e.flags&131072)!==0}else at=!1,Te&&(t.flags&1048576)!==0&&kd(t,Ts,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Za(t.elementType),t.type=e,typeof e=="function")$u(e)?(r=Ga(e,r),t.tag=1,t=nm(null,t,e,r,i)):(t.tag=0,t=Zo(null,t,e,r,i));else{if(e!=null){var o=e.$$typeof;if(o===Q){t.tag=11,t=Fh(null,t,e,r,i);break e}else if(o===k){t.tag=14,t=Jh(null,t,e,r,i);break e}}throw t=Ge(e)||e,Error(l(306,t,""))}}return t;case 0:return Zo(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,o=Ga(r,t.pendingProps),nm(e,t,r,o,i);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(l(387));r=t.pendingProps;var c=t.memoizedState;o=c.element,mo(e,t),Ds(t,r,null,i);var h=t.memoizedState;if(r=h.cache,In(t,tt,r),r!==c.cache&&lo(t,[tt],i,!0),zs(),r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=am(e,t,r,i);break e}else if(r!==o){o=Kt(Error(l(424)),t),Rs(o),t=am(e,t,r,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ye=$t(e.firstChild),pt=t,Te=!0,Fn=null,Jt=!0,i=$d(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ba(),r===o){t=On(e,t,i);break e}gt(e,t,r,i)}t=t.child}return t;case 26:return dl(e,t),e===null?(i=vp(t.type,null,t.pendingProps,null))?t.memoizedState=i:Te||(i=t.type,e=t.pendingProps,r=Cl(ve.current).createElement(i),r[mt]=t,r[Rt]=e,vt(r,i,e),ct(r),t.stateNode=r):t.memoizedState=vp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return yn(t),e===null&&Te&&(r=t.stateNode=pp(t.type,t.pendingProps,ve.current),pt=t,Jt=!0,o=Ye,ca(t.type)?(Ac=o,Ye=$t(r.firstChild)):Ye=o),gt(e,t,t.pendingProps.children,i),dl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((o=r=Ye)&&(r=Ob(r,t.type,t.pendingProps,Jt),r!==null?(t.stateNode=r,pt=t,Ye=$t(r.firstChild),Jt=!1,o=!0):o=!1),o||Jn(t)),yn(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,r=c.children,xc(o,c)?r=null:h!==null&&xc(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=_o(e,t,Y0,null,null,i),$s._currentValue=o),dl(e,t),gt(e,t,r,i),t.child;case 6:return e===null&&Te&&((e=i=Ye)&&(i=Cb(i,t.pendingProps,Jt),i!==null?(t.stateNode=i,pt=t,Ye=null,e=!0):e=!1),e||Jn(t)),null;case 13:return im(e,t,i);case 4:return Ie(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,i):gt(e,t,r,i),t.child;case 11:return Fh(e,t,t.type,t.pendingProps,i);case 7:return gt(e,t,t.pendingProps,i),t.child;case 8:return gt(e,t,t.pendingProps.children,i),t.child;case 12:return gt(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,In(t,t.type,r.value),gt(e,t,r.children,i),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,ka(t),o=yt(o),r=r(o),t.flags|=1,gt(e,t,r,i),t.child;case 14:return Jh(e,t,t.type,t.pendingProps,i);case 15:return Ih(e,t,t.type,t.pendingProps,i);case 19:return rm(e,t,i);case 31:return I0(e,t,i);case 22:return $h(e,t,i,t.pendingProps);case 24:return ka(t),r=yt(tt),e===null?(o=co(),o===null&&(o=qe,c=uo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=i),o=c),t.memoizedState={parent:r,cache:o},ho(t),In(t,tt,o)):((e.lanes&i)!==0&&(mo(e,t),Ds(t,null,null,i),zs()),o=e.memoizedState,c=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),In(t,tt,r)):(r=c.cache,In(t,tt,r),r!==o.cache&&lo(t,[tt],i,!0))),gt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Cn(e){e.flags|=4}function Fo(e,t,i,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Lm())e.flags|=8192;else throw Va=Ir,fo}else e.flags&=-16777217}function um(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ep(t))if(Lm())e.flags|=8192;else throw Va=Ir,fo}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Zf():536870912,e.lanes|=t,Ui|=t)}function Hs(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var o=e.child;o!==null;)i|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)i|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function W0(e,t,i){var r=t.pendingProps;switch(no(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Rn(tt),ke(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ei(t)?Cn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,io())),Qe(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Cn(t),c!==null?(Qe(t),um(t,c)):(Qe(t),Fo(t,o,null,r,i))):c?c!==e.memoizedState?(Cn(t),Qe(t),um(t,c)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Cn(t),Qe(t),Fo(t,o,e,r,i)),null;case 27:if(gn(t),i=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Qe(t),null}e=W.current,Ei(t)?Zd(t):(e=pp(o,r,i),t.stateNode=e,Cn(t))}return Qe(t),null;case 5:if(gn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Qe(t),null}if(c=W.current,Ei(t))Zd(t);else{var h=Cl(ve.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?h.createElement("select",{is:r.is}):h.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?h.createElement(o,{is:r.is}):h.createElement(o)}}c[mt]=t,c[Rt]=r;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(vt(c,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Cn(t)}}return Qe(t),Fo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(l(166));if(e=ve.current,Ei(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,o=pt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||ip(e.nodeValue,i)),e||Jn(t,!0)}else e=Cl(e).createTextNode(r),e[mt]=t,t.stateNode=e}return Qe(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ei(t),i!==null){if(e===null){if(!r)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[mt]=t}else Ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else i=io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Qe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ei(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[mt]=t}else Ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),o=!1}else o=io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==o&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),ml(t,t.updateQueue),Qe(t),null);case 4:return ke(),e===null&&gc(t.stateNode.containerInfo),Qe(t),null;case 10:return Rn(t.type),Qe(t),null;case 19:if(V($e),r=t.memoizedState,r===null)return Qe(t),null;if(o=(t.flags&128)!==0,c=r.rendering,c===null)if(o)Hs(r,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=tl(e),c!==null){for(t.flags|=128,Hs(r,!1),e=c.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Ud(i,e),i=i.sibling;return I($e,$e.current&1|2),Te&&En(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&St()>bl&&(t.flags|=128,o=!0,Hs(r,!1),t.lanes=4194304)}else{if(!o)if(e=tl(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),Hs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!Te)return Qe(t),null}else 2*St()-r.renderingStartTime>bl&&i!==536870912&&(t.flags|=128,o=!0,Hs(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=St(),e.sibling=null,i=$e.current,I($e,o?i&1|2:i&1),Te&&En(t,r.treeForkCount),e):(Qe(t),null);case 22:case 23:return kt(t),vo(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),i=t.updateQueue,i!==null&&ml(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&V(qa),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Rn(tt),Qe(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function eb(e,t){switch(no(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rn(tt),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gn(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(l(340));Ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V($e),null;case 4:return ke(),null;case 10:return Rn(t.type),null;case 22:case 23:return kt(t),vo(),e!==null&&V(qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Rn(tt),null;case 25:return null;default:return null}}function om(e,t){switch(no(t),t.tag){case 3:Rn(tt),ke();break;case 26:case 27:case 5:gn(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:V($e);break;case 10:Rn(t.type);break;case 22:case 23:kt(t),vo(),e!==null&&V(qa);break;case 24:Rn(tt)}}function ks(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){r=void 0;var c=i.create,h=i.inst;r=c(),h.destroy=r}i=i.next}while(i!==o)}}catch(b){je(t,t.return,b)}}function aa(e,t,i){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){var h=r.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,o=t;var R=i,N=b;try{N()}catch(H){je(o,R,H)}}}r=r.next}while(r!==c)}}catch(H){je(t,t.return,H)}}function cm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{eh(t,i)}catch(r){je(e,e.return,r)}}}function fm(e,t,i){i.props=Ga(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){je(e,t,r)}}function qs(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(o){je(e,t,o)}}function fn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(o){je(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(o){je(e,t,o)}else i.current=null}function dm(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(o){je(e,e.return,o)}}function Jo(e,t,i){try{var r=e.stateNode;xb(r,e.type,i,t),r[Rt]=t}catch(o){je(e,e.return,o)}}function hm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ca(e.type)||e.tag===4}function Io(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ca(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $o(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Sn));else if(r!==4&&(r===27&&ca(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for($o(e,t,i),e=e.sibling;e!==null;)$o(e,t,i),e=e.sibling}function pl(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&ca(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(pl(e,t,i),e=e.sibling;e!==null;)pl(e,t,i),e=e.sibling}function mm(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);vt(t,r,i),t[mt]=e,t[Rt]=i}catch(c){je(e,e.return,c)}}var Mn=!1,it=!1,Wo=!1,pm=typeof WeakSet=="function"?WeakSet:Set,ft=null;function tb(e,t){if(e=e.containerInfo,Sc=Ul,e=Ad(e),Gu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var h=0,b=-1,R=-1,N=0,H=0,Y=e,L=null;t:for(;;){for(var U;Y!==i||o!==0&&Y.nodeType!==3||(b=h+o),Y!==c||r!==0&&Y.nodeType!==3||(R=h+r),Y.nodeType===3&&(h+=Y.nodeValue.length),(U=Y.firstChild)!==null;)L=Y,Y=U;for(;;){if(Y===e)break t;if(L===i&&++N===o&&(b=h),L===c&&++H===r&&(R=h),(U=Y.nextSibling)!==null)break;Y=L,L=Y.parentNode}Y=U}i=b===-1||R===-1?null:{start:b,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(_c={focusedElem:e,selectionRange:i},Ul=!1,ft=t;ft!==null;)if(t=ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ft=e;else for(;ft!==null;){switch(t=ft,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)o=e[i],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,i=t,o=c.memoizedProps,c=c.memoizedState,r=i.stateNode;try{var te=Ga(i.type,o);e=r.getSnapshotBeforeUpdate(te,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(fe){je(i,i.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Tc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,ft=e;break}ft=t.return}}function ym(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:Dn(e,i),r&4&&ks(5,i);break;case 1:if(Dn(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(h){je(i,i.return,h)}else{var o=Ga(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){je(i,i.return,h)}}r&64&&cm(i),r&512&&qs(i,i.return);break;case 3:if(Dn(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{eh(e,t)}catch(h){je(i,i.return,h)}}break;case 27:t===null&&r&4&&mm(i);case 26:case 5:Dn(e,i),t===null&&r&4&&dm(i),r&512&&qs(i,i.return);break;case 12:Dn(e,i);break;case 31:Dn(e,i),r&4&&bm(e,i);break;case 13:Dn(e,i),r&4&&Sm(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=cb.bind(null,i),Mb(e,i))));break;case 22:if(r=i.memoizedState!==null||Mn,!r){t=t!==null&&t.memoizedState!==null||it,o=Mn;var c=it;Mn=r,(it=t)&&!c?Nn(e,i,(i.subtreeFlags&8772)!==0):Dn(e,i),Mn=o,it=c}break;case 30:break;default:Dn(e,i)}}function gm(e){var t=e.alternate;t!==null&&(e.alternate=null,gm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ou(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,At=!1;function zn(e,t,i){for(i=i.child;i!==null;)vm(e,t,i),i=i.sibling}function vm(e,t,i){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(cs,i)}catch{}switch(i.tag){case 26:it||fn(i,t),zn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:it||fn(i,t);var r=Xe,o=At;ca(i.type)&&(Xe=i.stateNode,At=!1),zn(e,t,i),Fs(i.stateNode),Xe=r,At=o;break;case 5:it||fn(i,t);case 6:if(r=Xe,o=At,Xe=null,zn(e,t,i),Xe=r,At=o,Xe!==null)if(At)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(i.stateNode)}catch(c){je(i,t,c)}else try{Xe.removeChild(i.stateNode)}catch(c){je(i,t,c)}break;case 18:Xe!==null&&(At?(e=Xe,cp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Qi(e)):cp(Xe,i.stateNode));break;case 4:r=Xe,o=At,Xe=i.stateNode.containerInfo,At=!0,zn(e,t,i),Xe=r,At=o;break;case 0:case 11:case 14:case 15:aa(2,i,t),it||aa(4,i,t),zn(e,t,i);break;case 1:it||(fn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&fm(i,t,r)),zn(e,t,i);break;case 21:zn(e,t,i);break;case 22:it=(r=it)||i.memoizedState!==null,zn(e,t,i),it=r;break;default:zn(e,t,i)}}function bm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Qi(e)}catch(i){je(t,t.return,i)}}}function Sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Qi(e)}catch(i){je(t,t.return,i)}}function nb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pm),t;default:throw Error(l(435,e.tag))}}function yl(e,t){var i=nb(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var o=fb.bind(null,e,r);r.then(o,o)}})}function Ot(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var o=i[r],c=e,h=t,b=h;e:for(;b!==null;){switch(b.tag){case 27:if(ca(b.type)){Xe=b.stateNode,At=!1;break e}break;case 5:Xe=b.stateNode,At=!1;break e;case 3:case 4:Xe=b.stateNode.containerInfo,At=!0;break e}b=b.return}if(Xe===null)throw Error(l(160));vm(c,h,o),Xe=null,At=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_m(t,e),t=t.sibling}var an=null;function _m(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Ct(e),r&4&&(aa(3,e,e.return),ks(3,e),aa(5,e,e.return));break;case 1:Ot(t,e),Ct(e),r&512&&(it||i===null||fn(i,i.return)),r&64&&Mn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var o=an;if(Ot(t,e),Ct(e),r&512&&(it||i===null||fn(i,i.return)),r&4){var c=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":c=o.getElementsByTagName("title")[0],(!c||c[hs]||c[mt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(r),o.head.insertBefore(c,o.querySelector("head > title"))),vt(c,r,i),c[mt]=e,ct(c),r=c;break e;case"link":var h=_p("link","href",o).get(r+(i.href||""));if(h){for(var b=0;b<h.length;b++)if(c=h[b],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){h.splice(b,1);break t}}c=o.createElement(r),vt(c,r,i),o.head.appendChild(c);break;case"meta":if(h=_p("meta","content",o).get(r+(i.content||""))){for(b=0;b<h.length;b++)if(c=h[b],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){h.splice(b,1);break t}}c=o.createElement(r),vt(c,r,i),o.head.appendChild(c);break;default:throw Error(l(468,r))}c[mt]=e,ct(c),r=c}e.stateNode=r}else xp(o,e.type,e.stateNode);else e.stateNode=Sp(o,r,e.memoizedProps);else c!==r?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,r===null?xp(o,e.type,e.stateNode):Sp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Jo(e,e.memoizedProps,i.memoizedProps)}break;case 27:Ot(t,e),Ct(e),r&512&&(it||i===null||fn(i,i.return)),i!==null&&r&4&&Jo(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Ot(t,e),Ct(e),r&512&&(it||i===null||fn(i,i.return)),e.flags&32){o=e.stateNode;try{hi(o,"")}catch(te){je(e,e.return,te)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Jo(e,o,i!==null?i.memoizedProps:o)),r&1024&&(Wo=!0);break;case 6:if(Ot(t,e),Ct(e),r&4){if(e.stateNode===null)throw Error(l(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(te){je(e,e.return,te)}}break;case 3:if(Dl=null,o=an,an=Ml(t.containerInfo),Ot(t,e),an=o,Ct(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{Qi(t.containerInfo)}catch(te){je(e,e.return,te)}Wo&&(Wo=!1,xm(e));break;case 4:r=an,an=Ml(e.stateNode.containerInfo),Ot(t,e),Ct(e),an=r;break;case 12:Ot(t,e),Ct(e);break;case 31:Ot(t,e),Ct(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 13:Ot(t,e),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(vl=St()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 22:o=e.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,N=Mn,H=it;if(Mn=N||o,it=H||R,Ot(t,e),it=H,Mn=N,Ct(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(i===null||R||Mn||it||Xa(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){R=i=t;try{if(c=R.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=R.stateNode;var Y=R.memoizedProps.style,L=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;b.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(te){je(R,R.return,te)}}}else if(t.tag===6){if(i===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(te){je(R,R.return,te)}}}else if(t.tag===18){if(i===null){R=t;try{var U=R.stateNode;o?fp(U,!0):fp(R.stateNode,!1)}catch(te){je(R,R.return,te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,yl(e,i))));break;case 19:Ot(t,e),Ct(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 30:break;case 21:break;default:Ot(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(hm(r)){i=r;break}r=r.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var o=i.stateNode,c=Io(e);pl(e,c,o);break;case 5:var h=i.stateNode;i.flags&32&&(hi(h,""),i.flags&=-33);var b=Io(e);pl(e,b,h);break;case 3:case 4:var R=i.stateNode.containerInfo,N=Io(e);$o(e,N,R);break;default:throw Error(l(161))}}catch(H){je(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ym(e,t.alternate,t),t=t.sibling}function Xa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:aa(4,t,t.return),Xa(t);break;case 1:fn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&fm(t,t.return,i),Xa(t);break;case 27:Fs(t.stateNode);case 26:case 5:fn(t,t.return),Xa(t);break;case 22:t.memoizedState===null&&Xa(t);break;case 30:Xa(t);break;default:Xa(t)}e=e.sibling}}function Nn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Nn(o,c,i),ks(4,c);break;case 1:if(Nn(o,c,i),r=c,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){je(r,r.return,N)}if(r=c,o=r.updateQueue,o!==null){var b=r.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Wd(R[o],b)}catch(N){je(r,r.return,N)}}i&&h&64&&cm(c),qs(c,c.return);break;case 27:mm(c);case 26:case 5:Nn(o,c,i),i&&r===null&&h&4&&dm(c),qs(c,c.return);break;case 12:Nn(o,c,i);break;case 31:Nn(o,c,i),i&&h&4&&bm(o,c);break;case 13:Nn(o,c,i),i&&h&4&&Sm(o,c);break;case 22:c.memoizedState===null&&Nn(o,c,i),qs(c,c.return);break;case 30:break;default:Nn(o,c,i)}t=t.sibling}}function ec(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&ws(i))}function tc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ws(e))}function sn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Em(e,t,i,r),t=t.sibling}function Em(e,t,i,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:sn(e,t,i,r),o&2048&&ks(9,t);break;case 1:sn(e,t,i,r);break;case 3:sn(e,t,i,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ws(e)));break;case 12:if(o&2048){sn(e,t,i,r),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,b=c.onPostCommit;typeof b=="function"&&b(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){je(t,t.return,R)}}else sn(e,t,i,r);break;case 31:sn(e,t,i,r);break;case 13:sn(e,t,i,r);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?sn(e,t,i,r):Zs(e,t):c._visibility&2?sn(e,t,i,r):(c._visibility|=2,Ni(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&ec(h,t);break;case 24:sn(e,t,i,r),o&2048&&tc(t.alternate,t);break;default:sn(e,t,i,r)}}function Ni(e,t,i,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,b=i,R=r,N=h.flags;switch(h.tag){case 0:case 11:case 15:Ni(c,h,b,R,o),ks(8,h);break;case 23:break;case 22:var H=h.stateNode;h.memoizedState!==null?H._visibility&2?Ni(c,h,b,R,o):Zs(c,h):(H._visibility|=2,Ni(c,h,b,R,o)),o&&N&2048&&ec(h.alternate,h);break;case 24:Ni(c,h,b,R,o),o&&N&2048&&tc(h.alternate,h);break;default:Ni(c,h,b,R,o)}t=t.sibling}}function Zs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,o=r.flags;switch(r.tag){case 22:Zs(i,r),o&2048&&ec(r.alternate,r);break;case 24:Zs(i,r),o&2048&&tc(r.alternate,r);break;default:Zs(i,r)}t=t.sibling}}var Vs=8192;function Li(e,t,i){if(e.subtreeFlags&Vs)for(e=e.child;e!==null;)Tm(e,t,i),e=e.sibling}function Tm(e,t,i){switch(e.tag){case 26:Li(e,t,i),e.flags&Vs&&e.memoizedState!==null&&Vb(i,an,e.memoizedState,e.memoizedProps);break;case 5:Li(e,t,i);break;case 3:case 4:var r=an;an=Ml(e.stateNode.containerInfo),Li(e,t,i),an=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vs,Vs=16777216,Li(e,t,i),Vs=r):Li(e,t,i));break;default:Li(e,t,i)}}function Rm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ys(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];ft=r,Am(r,e)}Rm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wm(e),e=e.sibling}function wm(e){switch(e.tag){case 0:case 11:case 15:Ys(e),e.flags&2048&&aa(9,e,e.return);break;case 3:Ys(e);break;case 12:Ys(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gl(e)):Ys(e);break;default:Ys(e)}}function gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];ft=r,Am(r,e)}Rm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:aa(8,t,t.return),gl(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,gl(t));break;default:gl(t)}e=e.sibling}}function Am(e,t){for(;ft!==null;){var i=ft;switch(i.tag){case 0:case 11:case 15:aa(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ws(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,ft=r;else e:for(i=e;ft!==null;){r=ft;var o=r.sibling,c=r.return;if(gm(r),r===i){ft=null;break e}if(o!==null){o.return=c,ft=o;break e}ft=c}}}var ab={getCacheForType:function(e){var t=yt(tt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return yt(tt).controller.signal}},ib=typeof WeakMap=="function"?WeakMap:Map,De=0,qe=null,Se=null,xe=0,Le=0,qt=null,ia=!1,ji=!1,nc=!1,Ln=0,Fe=0,sa=0,Ka=0,ac=0,Zt=0,Ui=0,Qs=null,Mt=null,ic=!1,vl=0,Om=0,bl=1/0,Sl=null,ra=null,rt=0,la=null,Bi=null,jn=0,sc=0,rc=null,Cm=null,Gs=0,lc=null;function Vt(){return(De&2)!==0&&xe!==0?xe&-xe:B.T!==null?hc():Gf()}function Mm(){if(Zt===0)if((xe&536870912)===0||Te){var e=Or;Or<<=1,(Or&3932160)===0&&(Or=262144),Zt=e}else Zt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Zt}function zt(e,t,i){(e===qe&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(Hi(e,0),ua(e,xe,Zt,!1)),ds(e,i),((De&2)===0||e!==qe)&&(e===qe&&((De&2)===0&&(Ka|=i),Fe===4&&ua(e,xe,Zt,!1)),dn(e))}function zm(e,t,i){if((De&6)!==0)throw Error(l(327));var r=!i&&(t&127)===0&&(t&e.expiredLanes)===0||fs(e,t),o=r?lb(e,t):oc(e,t,!0),c=r;do{if(o===0){ji&&!r&&ua(e,t,0,!1);break}else{if(i=e.current.alternate,c&&!sb(i)){o=oc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var b=e;o=Qs;var R=b.current.memoizedState.isDehydrated;if(R&&(Hi(b,h).flags|=256),h=oc(b,h,!1),h!==2){if(nc&&!R){b.errorRecoveryDisabledLanes|=c,Ka|=c,o=4;break e}c=Mt,Mt=o,c!==null&&(Mt===null?Mt=c:Mt.push.apply(Mt,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){Hi(e,0),ua(e,t,0,!0);break}e:{switch(r=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:ua(r,t,Zt,!ia);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=vl+300-St(),10<o)){if(ua(r,t,Zt,!ia),Mr(r,0,!0)!==0)break e;jn=t,r.timeoutHandle=up(Dm.bind(null,r,i,Mt,Sl,ic,t,Zt,Ka,Ui,ia,c,"Throttled",-0,0),o);break e}Dm(r,i,Mt,Sl,ic,t,Zt,Ka,Ui,ia,c,null,-0,0)}}break}while(!0);dn(e)}function Dm(e,t,i,r,o,c,h,b,R,N,H,Y,L,U){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},Tm(t,c,Y);var te=(c&62914560)===c?vl-St():(c&4194048)===c?Om-St():0;if(te=Yb(Y,te),te!==null){jn=c,e.cancelPendingCommit=te(qm.bind(null,e,t,c,i,r,o,h,b,R,H,Y,null,L,U)),ua(e,c,h,!N);return}}qm(e,t,c,i,r,o,h,b,R)}function sb(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var o=i[r],c=o.getSnapshot;o=o.value;try{if(!Ut(c(),o))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ua(e,t,i,r){t&=~ac,t&=~Ka,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var c=31-jt(o),h=1<<c;r[c]=-1,o&=~h}i!==0&&Vf(e,i,t)}function _l(){return(De&6)===0?(Xs(0),!1):!0}function uc(){if(Se!==null){if(Le===0)var e=Se.return;else e=Se,Tn=Ha=null,To(e),Oi=null,Os=0,e=Se;for(;e!==null;)om(e.alternate,e),e=e.return;Se=null}}function Hi(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,Rb(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),jn=0,uc(),qe=e,Se=i=xn(e.current,null),xe=t,Le=0,qt=null,ia=!1,ji=fs(e,t),nc=!1,Ui=Zt=ac=Ka=sa=Fe=0,Mt=Qs=null,ic=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-jt(r),c=1<<o;t|=e[o],r&=~c}return Ln=t,Vr(),i}function Nm(e,t){ye=null,B.H=Us,t===Ai||t===Jr?(t=Fd(),Le=3):t===fo?(t=Fd(),Le=4):Le=t===qo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,Se===null&&(Fe=1,cl(e,Kt(t,e.current)))}function Lm(){var e=Ht.current;return e===null?!0:(xe&4194048)===xe?It===null:(xe&62914560)===xe||(xe&536870912)!==0?e===It:!1}function jm(){var e=B.H;return B.H=Us,e===null?Us:e}function Um(){var e=B.A;return B.A=ab,e}function xl(){Fe=4,ia||(xe&4194048)!==xe&&Ht.current!==null||(ji=!0),(sa&134217727)===0&&(Ka&134217727)===0||qe===null||ua(qe,xe,Zt,!1)}function oc(e,t,i){var r=De;De|=2;var o=jm(),c=Um();(qe!==e||xe!==t)&&(Sl=null,Hi(e,t)),t=!1;var h=Fe;e:do try{if(Le!==0&&Se!==null){var b=Se,R=qt;switch(Le){case 8:uc(),h=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var N=Le;if(Le=0,qt=null,ki(e,b,R,N),i&&ji){h=0;break e}break;default:N=Le,Le=0,qt=null,ki(e,b,R,N)}}rb(),h=Fe;break}catch(H){Nm(e,H)}while(!0);return t&&e.shellSuspendCounter++,Tn=Ha=null,De=r,B.H=o,B.A=c,Se===null&&(qe=null,xe=0,Vr()),h}function rb(){for(;Se!==null;)Bm(Se)}function lb(e,t){var i=De;De|=2;var r=jm(),o=Um();qe!==e||xe!==t?(Sl=null,bl=St()+500,Hi(e,t)):ji=fs(e,t);e:do try{if(Le!==0&&Se!==null){t=Se;var c=qt;t:switch(Le){case 1:Le=0,qt=null,ki(e,t,c,1);break;case 2:case 9:if(Kd(c)){Le=0,qt=null,Hm(t);break}t=function(){Le!==2&&Le!==9||qe!==e||(Le=7),dn(e)},c.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Kd(c)?(Le=0,qt=null,Hm(t)):(Le=0,qt=null,ki(e,t,c,7));break;case 5:var h=null;switch(Se.tag){case 26:h=Se.memoizedState;case 5:case 27:var b=Se;if(h?Ep(h):b.stateNode.complete){Le=0,qt=null;var R=b.sibling;if(R!==null)Se=R;else{var N=b.return;N!==null?(Se=N,El(N)):Se=null}break t}}Le=0,qt=null,ki(e,t,c,5);break;case 6:Le=0,qt=null,ki(e,t,c,6);break;case 8:uc(),Fe=6;break e;default:throw Error(l(462))}}ub();break}catch(H){Nm(e,H)}while(!0);return Tn=Ha=null,B.H=r,B.A=o,De=i,Se!==null?0:(qe=null,xe=0,Vr(),Fe)}function ub(){for(;Se!==null&&!wr();)Bm(Se)}function Bm(e){var t=lm(e.alternate,e,Ln);e.memoizedProps=e.pendingProps,t===null?El(e):Se=t}function Hm(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=tm(i,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=tm(i,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:To(t);default:om(i,t),t=Se=Ud(t,Ln),t=lm(i,t,Ln)}e.memoizedProps=e.pendingProps,t===null?El(e):Se=t}function ki(e,t,i,r){Tn=Ha=null,To(t),Oi=null,Os=0;var o=t.return;try{if(J0(e,o,t,i,xe)){Fe=1,cl(e,Kt(i,e.current)),Se=null;return}}catch(c){if(o!==null)throw Se=o,c;Fe=1,cl(e,Kt(i,e.current)),Se=null;return}t.flags&32768?(Te||r===1?e=!0:ji||(xe&536870912)!==0?e=!1:(ia=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ht.current,r!==null&&r.tag===13&&(r.flags|=16384))),km(t,e)):El(t)}function El(e){var t=e;do{if((t.flags&32768)!==0){km(t,ia);return}e=t.return;var i=W0(t.alternate,t,Ln);if(i!==null){Se=i;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Fe===0&&(Fe=5)}function km(e,t){do{var i=eb(e.alternate,e);if(i!==null){i.flags&=32767,Se=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=i}while(e!==null);Fe=6,Se=null}function qm(e,t,i,r,o,c,h,b,R){e.cancelPendingCommit=null;do Tl();while(rt!==0);if((De&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=Ju,Zv(e,i,c,h,b,R),e===qe&&(Se=qe=null,xe=0),Bi=t,la=e,jn=i,sc=c,rc=o,Cm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,db(ri,function(){return Gm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=B.T,B.T=null,o=F.p,F.p=2,h=De,De|=4;try{tb(e,t,i)}finally{De=h,F.p=o,B.T=r}}rt=1,Zm(),Vm(),Ym()}}function Zm(){if(rt===1){rt=0;var e=la,t=Bi,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=B.T,B.T=null;var r=F.p;F.p=2;var o=De;De|=4;try{_m(t,e);var c=_c,h=Ad(e.containerInfo),b=c.focusedElem,R=c.selectionRange;if(h!==b&&b&&b.ownerDocument&&wd(b.ownerDocument.documentElement,b)){if(R!==null&&Gu(b)){var N=R.start,H=R.end;if(H===void 0&&(H=N),"selectionStart"in b)b.selectionStart=N,b.selectionEnd=Math.min(H,b.value.length);else{var Y=b.ownerDocument||document,L=Y&&Y.defaultView||window;if(L.getSelection){var U=L.getSelection(),te=b.textContent.length,fe=Math.min(R.start,te),He=R.end===void 0?fe:Math.min(R.end,te);!U.extend&&fe>He&&(h=He,He=fe,fe=h);var M=Rd(b,fe),A=Rd(b,He);if(M&&A&&(U.rangeCount!==1||U.anchorNode!==M.node||U.anchorOffset!==M.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var D=Y.createRange();D.setStart(M.node,M.offset),U.removeAllRanges(),fe>He?(U.addRange(D),U.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),U.addRange(D))}}}}for(Y=[],U=b;U=U.parentNode;)U.nodeType===1&&Y.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Y.length;b++){var q=Y[b];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Ul=!!Sc,_c=Sc=null}finally{De=o,F.p=r,B.T=i}}e.current=t,rt=2}}function Vm(){if(rt===2){rt=0;var e=la,t=Bi,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=B.T,B.T=null;var r=F.p;F.p=2;var o=De;De|=4;try{ym(e,t.alternate,t)}finally{De=o,F.p=r,B.T=i}}rt=3}}function Ym(){if(rt===4||rt===3){rt=0,Eu();var e=la,t=Bi,i=jn,r=Cm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,Bi=la=null,Qm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ra=null),wu(i),t=t.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(cs,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=B.T,o=F.p,F.p=2,B.T=null;try{for(var c=e.onRecoverableError,h=0;h<r.length;h++){var b=r[h];c(b.value,{componentStack:b.stack})}}finally{B.T=t,F.p=o}}(jn&3)!==0&&Tl(),dn(e),o=e.pendingLanes,(i&261930)!==0&&(o&42)!==0?e===lc?Gs++:(Gs=0,lc=e):Gs=0,Xs(0)}}function Qm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ws(t)))}function Tl(){return Zm(),Vm(),Ym(),Gm()}function Gm(){if(rt!==5)return!1;var e=la,t=sc;sc=0;var i=wu(jn),r=B.T,o=F.p;try{F.p=32>i?32:i,B.T=null,i=rc,rc=null;var c=la,h=jn;if(rt=0,Bi=la=null,jn=0,(De&6)!==0)throw Error(l(331));var b=De;if(De|=4,wm(c.current),Em(c,c.current,h,i),De=b,Xs(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(cs,c)}catch{}return!0}finally{F.p=o,B.T=r,Qm(e,t)}}function Xm(e,t,i){t=Kt(i,t),t=ko(e.stateNode,t,2),e=ea(e,t,2),e!==null&&(ds(e,2),dn(e))}function je(e,t,i){if(e.tag===3)Xm(e,e,i);else for(;t!==null;){if(t.tag===3){Xm(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ra===null||!ra.has(r))){e=Kt(i,e),i=Kh(2),r=ea(t,i,2),r!==null&&(Ph(i,r,t,e),ds(r,2),dn(r));break}}t=t.return}}function cc(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new ib;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(i)||(nc=!0,o.add(i),e=ob.bind(null,e,t,i),t.then(e,e))}function ob(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,qe===e&&(xe&i)===i&&(Fe===4||Fe===3&&(xe&62914560)===xe&&300>St()-vl?(De&2)===0&&Hi(e,0):ac|=i,Ui===xe&&(Ui=0)),dn(e)}function Km(e,t){t===0&&(t=Zf()),e=ja(e,t),e!==null&&(ds(e,t),dn(e))}function cb(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Km(e,i)}function fb(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(i=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}r!==null&&r.delete(t),Km(e,i)}function db(e,t){return tn(e,t)}var Rl=null,qi=null,fc=!1,wl=!1,dc=!1,oa=0;function dn(e){e!==qi&&e.next===null&&(qi===null?Rl=qi=e:qi=qi.next=e),wl=!0,fc||(fc=!0,mb())}function Xs(e,t){if(!dc&&wl){dc=!0;do for(var i=!1,r=Rl;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var c=0;else{var h=r.suspendedLanes,b=r.pingedLanes;c=(1<<31-jt(42|e)+1)-1,c&=o&~(h&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,Im(r,c))}else c=xe,c=Mr(r,r===qe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||fs(r,c)||(i=!0,Im(r,c));r=r.next}while(i);dc=!1}}function hb(){Pm()}function Pm(){wl=fc=!1;var e=0;oa!==0&&Tb()&&(e=oa);for(var t=St(),i=null,r=Rl;r!==null;){var o=r.next,c=Fm(r,t);c===0?(r.next=null,i===null?Rl=o:i.next=o,o===null&&(qi=i)):(i=r,(e!==0||(c&3)!==0)&&(wl=!0)),r=o}rt!==0&&rt!==5||Xs(e),oa!==0&&(oa=0)}function Fm(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-jt(c),b=1<<h,R=o[h];R===-1?((b&i)===0||(b&r)!==0)&&(o[h]=qv(b,t)):R<=t&&(e.expiredLanes|=b),c&=~b}if(t=qe,i=xe,i=Mr(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&os(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||fs(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&os(r),wu(i)){case 2:case 8:i=un;break;case 32:i=ri;break;case 268435456:i=qf;break;default:i=ri}return r=Jm.bind(null,e),i=tn(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&os(r),e.callbackPriority=2,e.callbackNode=null,2}function Jm(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Tl()&&e.callbackNode!==i)return null;var r=xe;return r=Mr(e,e===qe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(zm(e,r,t),Fm(e,St()),e.callbackNode!=null&&e.callbackNode===i?Jm.bind(null,e):null)}function Im(e,t){if(Tl())return null;zm(e,t,!0)}function mb(){wb(function(){(De&6)!==0?tn(ht,hb):Pm()})}function hc(){if(oa===0){var e=Ri;e===0&&(e=Ar,Ar<<=1,(Ar&261888)===0&&(Ar=256)),oa=e}return oa}function $m(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Lr(""+e)}function Wm(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function pb(e,t,i,r,o){if(t==="submit"&&i&&i.stateNode===o){var c=$m((o[Rt]||null).action),h=r.submitter;h&&(t=(t=h[Rt]||null)?$m(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var b=new Hr("action","action",null,r,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(oa!==0){var R=h?Wm(o,h):new FormData(o);No(i,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(b.preventDefault(),R=h?Wm(o,h):new FormData(o),No(i,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var mc=0;mc<Fu.length;mc++){var pc=Fu[mc],yb=pc.toLowerCase(),gb=pc[0].toUpperCase()+pc.slice(1);nn(yb,"on"+gb)}nn(Md,"onAnimationEnd"),nn(zd,"onAnimationIteration"),nn(Dd,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(N0,"onTransitionRun"),nn(L0,"onTransitionStart"),nn(j0,"onTransitionCancel"),nn(Nd,"onTransitionEnd"),fi("onMouseEnter",["mouseout","mouseover"]),fi("onMouseLeave",["mouseout","mouseover"]),fi("onPointerEnter",["pointerout","pointerover"]),fi("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ks="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(" "),vb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ks));function ep(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],o=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var h=r.length-1;0<=h;h--){var b=r[h],R=b.instance,N=b.currentTarget;if(b=b.listener,R!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=N;try{c(o)}catch(H){Zr(H)}o.currentTarget=null,c=R}else for(h=0;h<r.length;h++){if(b=r[h],R=b.instance,N=b.currentTarget,b=b.listener,R!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=N;try{c(o)}catch(H){Zr(H)}o.currentTarget=null,c=R}}}}function _e(e,t){var i=t[Au];i===void 0&&(i=t[Au]=new Set);var r=e+"__bubble";i.has(r)||(tp(t,e,2,!1),i.add(r))}function yc(e,t,i){var r=0;t&&(r|=4),tp(i,e,r,t)}var Al="_reactListening"+Math.random().toString(36).slice(2);function gc(e){if(!e[Al]){e[Al]=!0,Pf.forEach(function(i){i!=="selectionchange"&&(vb.has(i)||yc(i,!1,e),yc(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Al]||(t[Al]=!0,yc("selectionchange",!1,t))}}function tp(e,t,i,r){switch(Mp(t)){case 2:var o=Xb;break;case 8:o=Kb;break;default:o=Dc}i=o.bind(null,t,i,e),o=void 0,!Uu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,i,{capture:!0,passive:o}):e.addEventListener(t,i,!0):o!==void 0?e.addEventListener(t,i,{passive:o}):e.addEventListener(t,i,!1)}function vc(e,t,i,r,o){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var h=r.tag;if(h===3||h===4){var b=r.stateNode.containerInfo;if(b===o)break;if(h===4)for(h=r.return;h!==null;){var R=h.tag;if((R===3||R===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;b!==null;){if(h=ui(b),h===null)return;if(R=h.tag,R===5||R===6||R===26||R===27){r=c=h;continue e}b=b.parentNode}}r=r.return}rd(function(){var N=c,H=Lu(i),Y=[];e:{var L=Ld.get(e);if(L!==void 0){var U=Hr,te=e;switch(e){case"keypress":if(Ur(i)===0)break e;case"keydown":case"keyup":U=f0;break;case"focusin":te="focus",U=qu;break;case"focusout":te="blur",U=qu;break;case"beforeblur":case"afterblur":U=qu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=m0;break;case Md:case zd:case Dd:U=n0;break;case Nd:U=y0;break;case"scroll":case"scrollend":U=Iv;break;case"wheel":U=v0;break;case"copy":case"cut":case"paste":U=i0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=fd;break;case"toggle":case"beforetoggle":U=S0}var fe=(t&4)!==0,He=!fe&&(e==="scroll"||e==="scrollend"),M=fe?L!==null?L+"Capture":null:L;fe=[];for(var A=N,D;A!==null;){var q=A;if(D=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||D===null||M===null||(q=ps(A,M),q!=null&&fe.push(Ps(A,q,D))),He)break;A=A.return}0<fe.length&&(L=new U(L,te,null,i,H),Y.push({event:L,listeners:fe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",L&&i!==Nu&&(te=i.relatedTarget||i.fromElement)&&(ui(te)||te[li]))break e;if((U||L)&&(L=H.window===H?H:(L=H.ownerDocument)?L.defaultView||L.parentWindow:window,U?(te=i.relatedTarget||i.toElement,U=N,te=te?ui(te):null,te!==null&&(He=f(te),fe=te.tag,te!==He||fe!==5&&fe!==27&&fe!==6)&&(te=null)):(U=null,te=N),U!==te)){if(fe=od,q="onMouseLeave",M="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(fe=fd,q="onPointerLeave",M="onPointerEnter",A="pointer"),He=U==null?L:ms(U),D=te==null?L:ms(te),L=new fe(q,A+"leave",U,i,H),L.target=He,L.relatedTarget=D,q=null,ui(H)===N&&(fe=new fe(M,A+"enter",te,i,H),fe.target=D,fe.relatedTarget=He,q=fe),He=q,U&&te)t:{for(fe=bb,M=U,A=te,D=0,q=M;q;q=fe(q))D++;q=0;for(var le=A;le;le=fe(le))q++;for(;0<D-q;)M=fe(M),D--;for(;0<q-D;)A=fe(A),q--;for(;D--;){if(M===A||A!==null&&M===A.alternate){fe=M;break t}M=fe(M),A=fe(A)}fe=null}else fe=null;U!==null&&np(Y,L,U,fe,!1),te!==null&&He!==null&&np(Y,He,te,fe,!0)}}e:{if(L=N?ms(N):window,U=L.nodeName&&L.nodeName.toLowerCase(),U==="select"||U==="input"&&L.type==="file")var Ae=bd;else if(gd(L))if(Sd)Ae=M0;else{Ae=O0;var ae=A0}else U=L.nodeName,!U||U.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?N&&Du(N.elementType)&&(Ae=bd):Ae=C0;if(Ae&&(Ae=Ae(e,N))){vd(Y,Ae,i,H);break e}ae&&ae(e,L,N),e==="focusout"&&N&&L.type==="number"&&N.memoizedProps.value!=null&&zu(L,"number",L.value)}switch(ae=N?ms(N):window,e){case"focusin":(gd(ae)||ae.contentEditable==="true")&&(gi=ae,Xu=N,Es=null);break;case"focusout":Es=Xu=gi=null;break;case"mousedown":Ku=!0;break;case"contextmenu":case"mouseup":case"dragend":Ku=!1,Od(Y,i,H);break;case"selectionchange":if(D0)break;case"keydown":case"keyup":Od(Y,i,H)}var ge;if(Vu)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else yi?pd(e,i)&&(Ee="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ee="onCompositionStart");Ee&&(dd&&i.locale!=="ko"&&(yi||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&yi&&(ge=ld()):(Kn=H,Bu="value"in Kn?Kn.value:Kn.textContent,yi=!0)),ae=Ol(N,Ee),0<ae.length&&(Ee=new cd(Ee,e,null,i,H),Y.push({event:Ee,listeners:ae}),ge?Ee.data=ge:(ge=yd(i),ge!==null&&(Ee.data=ge)))),(ge=x0?E0(e,i):T0(e,i))&&(Ee=Ol(N,"onBeforeInput"),0<Ee.length&&(ae=new cd("onBeforeInput","beforeinput",null,i,H),Y.push({event:ae,listeners:Ee}),ae.data=ge)),pb(Y,e,N,i,H)}ep(Y,t)})}function Ps(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Ol(e,t){for(var i=t+"Capture",r=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ps(e,i),o!=null&&r.unshift(Ps(e,o,c)),o=ps(e,t),o!=null&&r.push(Ps(e,o,c))),e.tag===3)return r;e=e.return}return[]}function bb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function np(e,t,i,r,o){for(var c=t._reactName,h=[];i!==null&&i!==r;){var b=i,R=b.alternate,N=b.stateNode;if(b=b.tag,R!==null&&R===r)break;b!==5&&b!==26&&b!==27||N===null||(R=N,o?(N=ps(i,c),N!=null&&h.unshift(Ps(i,N,R))):o||(N=ps(i,c),N!=null&&h.push(Ps(i,N,R)))),i=i.return}h.length!==0&&e.push({event:t,listeners:h})}var Sb=/\r\n?/g,_b=/\u0000|\uFFFD/g;function ap(e){return(typeof e=="string"?e:""+e).replace(Sb,`
|
|
10
|
+
`).replace(_b,"")}function ip(e,t){return t=ap(t),ap(e)===t}function Be(e,t,i,r,o,c){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||hi(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&hi(e,""+r);break;case"className":Dr(e,"class",r);break;case"tabIndex":Dr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Dr(e,i,r);break;case"style":id(e,r,c);break;case"data":if(t!=="object"){Dr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Lr(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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"&&(i==="formAction"?(t!=="input"&&Be(e,t,"name",o.name,o,null),Be(e,t,"formEncType",o.formEncType,o,null),Be(e,t,"formMethod",o.formMethod,o,null),Be(e,t,"formTarget",o.formTarget,o,null)):(Be(e,t,"encType",o.encType,o,null),Be(e,t,"method",o.method,o,null),Be(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Lr(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=Sn);break;case"onScroll":r!=null&&_e("scroll",e);break;case"onScrollEnd":r!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(i=r.__html,i!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}i=Lr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""+r):e.removeAttribute(i);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":_e("beforetoggle",e),_e("toggle",e),zr(e,"popover",r);break;case"xlinkActuate":bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":bn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":bn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":bn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":bn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":zr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Fv.get(i)||i,zr(e,i,r))}}function bc(e,t,i,r,o,c){switch(i){case"style":id(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(i=r.__html,i!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof r=="string"?hi(e,r):(typeof r=="number"||typeof r=="bigint")&&hi(e,""+r);break;case"onScroll":r!=null&&_e("scroll",e);break;case"onScrollEnd":r!=null&&_e("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ff.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(o=i.endsWith("Capture"),t=i.slice(2,o?i.length-7:void 0),c=e[Rt]||null,c=c!=null?c[i]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof r=="function")){typeof c!="function"&&c!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,o);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):zr(e,i,r)}}}function vt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var r=!1,o=!1,c;for(c in i)if(i.hasOwnProperty(c)){var h=i[c];if(h!=null)switch(c){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Be(e,t,c,h,i,null)}}o&&Be(e,t,"srcSet",i.srcSet,i,null),r&&Be(e,t,"src",i.src,i,null);return;case"input":_e("invalid",e);var b=c=h=o=null,R=null,N=null;for(r in i)if(i.hasOwnProperty(r)){var H=i[r];if(H!=null)switch(r){case"name":o=H;break;case"type":h=H;break;case"checked":R=H;break;case"defaultChecked":N=H;break;case"value":c=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,t));break;default:Be(e,t,r,H,i,null)}}ed(e,c,b,R,N,h,o,!1);return;case"select":_e("invalid",e),r=h=c=null;for(o in i)if(i.hasOwnProperty(o)&&(b=i[o],b!=null))switch(o){case"value":c=b;break;case"defaultValue":h=b;break;case"multiple":r=b;default:Be(e,t,o,b,i,null)}t=c,i=h,e.multiple=!!r,t!=null?di(e,!!r,t,!1):i!=null&&di(e,!!r,i,!0);return;case"textarea":_e("invalid",e),c=o=r=null;for(h in i)if(i.hasOwnProperty(h)&&(b=i[h],b!=null))switch(h){case"value":r=b;break;case"defaultValue":o=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:Be(e,t,h,b,i,null)}nd(e,r,o,c);return;case"option":for(R in i)i.hasOwnProperty(R)&&(r=i[R],r!=null)&&(R==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Be(e,t,R,r,i,null));return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(r=0;r<Ks.length;r++)_e(Ks[r],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in i)if(i.hasOwnProperty(N)&&(r=i[N],r!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Be(e,t,N,r,i,null)}return;default:if(Du(t)){for(H in i)i.hasOwnProperty(H)&&(r=i[H],r!==void 0&&bc(e,t,H,r,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(r=i[b],r!=null&&Be(e,t,b,r,i,null))}function xb(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,b=null,R=null,N=null,H=null;for(U in i){var Y=i[U];if(i.hasOwnProperty(U)&&Y!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":R=Y;default:r.hasOwnProperty(U)||Be(e,t,U,null,r,Y)}}for(var L in r){var U=r[L];if(Y=i[L],r.hasOwnProperty(L)&&(U!=null||Y!=null))switch(L){case"type":c=U;break;case"name":o=U;break;case"checked":N=U;break;case"defaultChecked":H=U;break;case"value":h=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(l(137,t));break;default:U!==Y&&Be(e,t,L,U,r,Y)}}Mu(e,h,b,R,N,H,c,o);return;case"select":U=h=b=L=null;for(c in i)if(R=i[c],i.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":U=R;default:r.hasOwnProperty(c)||Be(e,t,c,null,r,R)}for(o in r)if(c=r[o],R=i[o],r.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":L=c;break;case"defaultValue":b=c;break;case"multiple":h=c;default:c!==R&&Be(e,t,o,c,r,R)}t=b,i=h,r=U,L!=null?di(e,!!i,L,!1):!!r!=!!i&&(t!=null?di(e,!!i,t,!0):di(e,!!i,i?[]:"",!1));return;case"textarea":U=L=null;for(b in i)if(o=i[b],i.hasOwnProperty(b)&&o!=null&&!r.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Be(e,t,b,null,r,o)}for(h in r)if(o=r[h],c=i[h],r.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":L=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&Be(e,t,h,o,r,c)}td(e,L,U);return;case"option":for(var te in i)L=i[te],i.hasOwnProperty(te)&&L!=null&&!r.hasOwnProperty(te)&&(te==="selected"?e.selected=!1:Be(e,t,te,null,r,L));for(R in r)L=r[R],U=i[R],r.hasOwnProperty(R)&&L!==U&&(L!=null||U!=null)&&(R==="selected"?e.selected=L&&typeof L!="function"&&typeof L!="symbol":Be(e,t,R,L,r,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 fe in i)L=i[fe],i.hasOwnProperty(fe)&&L!=null&&!r.hasOwnProperty(fe)&&Be(e,t,fe,null,r,L);for(N in r)if(L=r[N],U=i[N],r.hasOwnProperty(N)&&L!==U&&(L!=null||U!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,t));break;default:Be(e,t,N,L,r,U)}return;default:if(Du(t)){for(var He in i)L=i[He],i.hasOwnProperty(He)&&L!==void 0&&!r.hasOwnProperty(He)&&bc(e,t,He,void 0,r,L);for(H in r)L=r[H],U=i[H],!r.hasOwnProperty(H)||L===U||L===void 0&&U===void 0||bc(e,t,H,L,r,U);return}}for(var M in i)L=i[M],i.hasOwnProperty(M)&&L!=null&&!r.hasOwnProperty(M)&&Be(e,t,M,null,r,L);for(Y in r)L=r[Y],U=i[Y],!r.hasOwnProperty(Y)||L===U||L==null&&U==null||Be(e,t,Y,L,r,U)}function sp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Eb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var o=i[r],c=o.transferSize,h=o.initiatorType,b=o.duration;if(c&&b&&sp(h)){for(h=0,b=o.responseEnd,r+=1;r<i.length;r++){var R=i[r],N=R.startTime;if(N>b)break;var H=R.transferSize,Y=R.initiatorType;H&&sp(Y)&&(R=R.responseEnd,h+=H*(R<b?1:(b-N)/(R-N)))}if(--r,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Sc=null,_c=null;function Cl(e){return e.nodeType===9?e:e.ownerDocument}function rp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function xc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ec=null;function Tb(){var e=window.event;return e&&e.type==="popstate"?e===Ec?!1:(Ec=e,!0):(Ec=null,!1)}var up=typeof setTimeout=="function"?setTimeout:void 0,Rb=typeof clearTimeout=="function"?clearTimeout:void 0,op=typeof Promise=="function"?Promise:void 0,wb=typeof queueMicrotask=="function"?queueMicrotask:typeof op<"u"?function(e){return op.resolve(null).then(e).catch(Ab)}:up;function Ab(e){setTimeout(function(){throw e})}function ca(e){return e==="head"}function cp(e,t){var i=t,r=0;do{var o=i.nextSibling;if(e.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(o),Qi(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")Fs(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Fs(i);for(var c=i.firstChild;c;){var h=c.nextSibling,b=c.nodeName;c[hs]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=h}}else i==="body"&&Fs(e.ownerDocument.body);i=o}while(i);Qi(t)}function fp(e,t){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function Tc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Tc(i),Ou(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function Ob(e,t,i,r){for(;e.nodeType===1;){var o=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[hs])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function Cb(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=$t(e.nextSibling),e===null))return null;return e}function dp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function Rc(e){return e.data==="$?"||e.data==="$~"}function wc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Mb(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ac=null;function hp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return $t(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function mp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function pp(e,t,i){switch(t=Cl(i),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Fs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ou(e)}var Wt=new Map,yp=new Set;function Ml(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Un=F.d;F.d={f:zb,r:Db,D:Nb,C:Lb,L:jb,m:Ub,X:Hb,S:Bb,M:kb};function zb(){var e=Un.f(),t=_l();return e||t}function Db(e){var t=oi(e);t!==null&&t.tag===5&&t.type==="form"?Nh(t):Un.r(e)}var Zi=typeof document>"u"?null:document;function gp(e,t,i){var r=Zi;if(r&&typeof t=="string"&&t){var o=Gt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),yp.has(o)||(yp.add(o),e={rel:e,crossOrigin:i,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),vt(t,"link",e),ct(t),r.head.appendChild(t)))}}function Nb(e){Un.D(e),gp("dns-prefetch",e,null)}function Lb(e,t){Un.C(e,t),gp("preconnect",e,t)}function jb(e,t,i){Un.L(e,t,i);var r=Zi;if(r&&e&&t){var o='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+Gt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+Gt(i.imageSizes)+'"]')):o+='[href="'+Gt(e)+'"]';var c=o;switch(t){case"style":c=Vi(e);break;case"script":c=Yi(e)}Wt.has(c)||(e=g({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Wt.set(c,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Js(c))||t==="script"&&r.querySelector(Is(c))||(t=r.createElement("link"),vt(t,"link",e),ct(t),r.head.appendChild(t)))}}function Ub(e,t){Un.m(e,t);var i=Zi;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Gt(r)+'"][href="'+Gt(e)+'"]',c=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Yi(e)}if(!Wt.has(c)&&(e=g({rel:"modulepreload",href:e},t),Wt.set(c,e),i.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Is(c)))return}r=i.createElement("link"),vt(r,"link",e),ct(r),i.head.appendChild(r)}}}function Bb(e,t,i){Un.S(e,t,i);var r=Zi;if(r&&e){var o=ci(r).hoistableStyles,c=Vi(e);t=t||"default";var h=o.get(c);if(!h){var b={loading:0,preload:null};if(h=r.querySelector(Js(c)))b.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Wt.get(c))&&Oc(e,i);var R=h=r.createElement("link");ct(R),vt(R,"link",e),R._p=new Promise(function(N,H){R.onload=N,R.onerror=H}),R.addEventListener("load",function(){b.loading|=1}),R.addEventListener("error",function(){b.loading|=2}),b.loading|=4,zl(h,t,r)}h={type:"stylesheet",instance:h,count:1,state:b},o.set(c,h)}}}function Hb(e,t){Un.X(e,t);var i=Zi;if(i&&e){var r=ci(i).hoistableScripts,o=Yi(e),c=r.get(o);c||(c=i.querySelector(Is(o)),c||(e=g({src:e,async:!0},t),(t=Wt.get(o))&&Cc(e,t),c=i.createElement("script"),ct(c),vt(c,"link",e),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function kb(e,t){Un.M(e,t);var i=Zi;if(i&&e){var r=ci(i).hoistableScripts,o=Yi(e),c=r.get(o);c||(c=i.querySelector(Is(o)),c||(e=g({src:e,async:!0,type:"module"},t),(t=Wt.get(o))&&Cc(e,t),c=i.createElement("script"),ct(c),vt(c,"link",e),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function vp(e,t,i,r){var o=(o=ve.current)?Ml(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Vi(i.href),i=ci(o).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Vi(i.href);var c=ci(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Js(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Wt.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Wt.set(e,i),c||qb(o,e,i,h.state))),t&&r===null)throw Error(l(528,""));return h}if(t&&r!==null)throw Error(l(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yi(i),i=ci(o).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Vi(e){return'href="'+Gt(e)+'"'}function Js(e){return'link[rel="stylesheet"]['+e+"]"}function bp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function qb(e,t,i,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),vt(t,"link",i),ct(t),e.head.appendChild(t))}function Yi(e){return'[src="'+Gt(e)+'"]'}function Is(e){return"script[async]"+e}function Sp(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Gt(i.href)+'"]');if(r)return t.instance=r,ct(r),r;var o=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ct(r),vt(r,"style",o),zl(r,i.precedence,e),t.instance=r;case"stylesheet":o=Vi(i.href);var c=e.querySelector(Js(o));if(c)return t.state.loading|=4,t.instance=c,ct(c),c;r=bp(i),(o=Wt.get(o))&&Oc(r,o),c=(e.ownerDocument||e).createElement("link"),ct(c);var h=c;return h._p=new Promise(function(b,R){h.onload=b,h.onerror=R}),vt(c,"link",r),t.state.loading|=4,zl(c,i.precedence,e),t.instance=c;case"script":return c=Yi(i.src),(o=e.querySelector(Is(c)))?(t.instance=o,ct(o),o):(r=i,(o=Wt.get(c))&&(r=g({},i),Cc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ct(o),vt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,zl(r,i.precedence,e));return t.instance}function zl(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,c=o,h=0;h<r.length;h++){var b=r[h];if(b.dataset.precedence===t)c=b;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Dl=null;function _p(e,t,i){if(Dl===null){var r=new Map,o=Dl=new Map;o.set(i,r)}else o=Dl,r=o.get(i),r||(r=new Map,o.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),o=0;o<i.length;o++){var c=i[o];if(!(c[hs]||c[mt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var b=r.get(h);b?b.push(c):r.set(h,[c])}}return r}function xp(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function Zb(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ep(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Vb(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var o=Vi(r.href),c=t.querySelector(Js(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Nl.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=c,ct(c);return}c=t.ownerDocument||t,r=bp(r),(o=Wt.get(o))&&Oc(r,o),c=c.createElement("link"),ct(c);var h=c;h._p=new Promise(function(b,R){h.onload=b,h.onerror=R}),vt(c,"link",r),i.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Nl.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Mc=0;function Yb(e,t){return e.stylesheets&&e.count===0&&jl(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&jl(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Mc===0&&(Mc=62500*Eb());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jl(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Mc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Nl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ll=null;function jl(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ll=new Map,t.forEach(Qb,e),Ll=null,Nl.call(e))}function Qb(e,t){if(!(t.state.loading&4)){var i=Ll.get(e);if(i)var r=i.get(null);else{i=new Map,Ll.set(e,i);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(i.set(h.dataset.precedence,h),r=h)}r&&i.set(null,r)}o=t.instance,h=o.getAttribute("data-precedence"),c=i.get(h)||r,c===r&&i.set(null,o),i.set(h,o),this.count++,r=Nl.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var $s={$$typeof:Z,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function Gb(e,t,i,r,o,c,h,b,R){this.tag=1,this.containerInfo=e,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=Tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tu(0),this.hiddenUpdates=Tu(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Tp(e,t,i,r,o,c,h,b,R,N,H,Y){return e=new Gb(e,t,i,h,R,N,H,Y,b),t=1,c===!0&&(t|=24),c=Bt(3,null,null,t),e.current=c,c.stateNode=e,t=uo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:i,cache:t},ho(c),e}function Rp(e){return e?(e=Si,e):Si}function wp(e,t,i,r,o,c){o=Rp(o),r.context===null?r.context=o:r.pendingContext=o,r=Wn(t),r.payload={element:i},c=c===void 0?null:c,c!==null&&(r.callback=c),i=ea(e,r,t),i!==null&&(zt(i,e,t),Ms(i,e,t))}function Ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function zc(e,t){Ap(e,t),(e=e.alternate)&&Ap(e,t)}function Op(e){if(e.tag===13||e.tag===31){var t=ja(e,67108864);t!==null&&zt(t,e,67108864),zc(e,67108864)}}function Cp(e){if(e.tag===13||e.tag===31){var t=Vt();t=Ru(t);var i=ja(e,t);i!==null&&zt(i,e,t),zc(e,t)}}var Ul=!0;function Xb(e,t,i,r){var o=B.T;B.T=null;var c=F.p;try{F.p=2,Dc(e,t,i,r)}finally{F.p=c,B.T=o}}function Kb(e,t,i,r){var o=B.T;B.T=null;var c=F.p;try{F.p=8,Dc(e,t,i,r)}finally{F.p=c,B.T=o}}function Dc(e,t,i,r){if(Ul){var o=Nc(r);if(o===null)vc(e,t,r,Bl,i),zp(e,r);else if(Fb(o,e,t,i,r))r.stopPropagation();else if(zp(e,r),t&4&&-1<Pb.indexOf(e)){for(;o!==null;){var c=oi(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Ma(c.pendingLanes);if(h!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var R=1<<31-jt(h);b.entanglements[1]|=R,h&=~R}dn(c),(De&6)===0&&(bl=St()+500,Xs(0))}}break;case 31:case 13:b=ja(c,2),b!==null&&zt(b,c,2),_l(),zc(c,2)}if(c=Nc(r),c===null&&vc(e,t,r,Bl,i),c===o)break;o=c}o!==null&&r.stopPropagation()}else vc(e,t,r,null,i)}}function Nc(e){return e=Lu(e),Lc(e)}var Bl=null;function Lc(e){if(Bl=null,e=ui(e),e!==null){var t=f(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=d(t),e!==null)return e;e=null}else if(i===31){if(e=m(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Bl=e,null}function Mp(e){switch(e){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(Ve()){case ht:return 2;case un:return 8;case ri:case Lv:return 32;case qf:return 268435456;default:return 32}default:return 32}}var jc=!1,fa=null,da=null,ha=null,Ws=new Map,er=new Map,ma=[],Pb="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 zp(e,t){switch(e){case"focusin":case"focusout":fa=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":Ws.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(t.pointerId)}}function tr(e,t,i,r,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:c,targetContainers:[o]},t!==null&&(t=oi(t),t!==null&&Op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Fb(e,t,i,r,o){switch(t){case"focusin":return fa=tr(fa,e,t,i,r,o),!0;case"dragenter":return da=tr(da,e,t,i,r,o),!0;case"mouseover":return ha=tr(ha,e,t,i,r,o),!0;case"pointerover":var c=o.pointerId;return Ws.set(c,tr(Ws.get(c)||null,e,t,i,r,o)),!0;case"gotpointercapture":return c=o.pointerId,er.set(c,tr(er.get(c)||null,e,t,i,r,o)),!0}return!1}function Dp(e){var t=ui(e.target);if(t!==null){var i=f(t);if(i!==null){if(t=i.tag,t===13){if(t=d(i),t!==null){e.blockedOn=t,Xf(e.priority,function(){Cp(i)});return}}else if(t===31){if(t=m(i),t!==null){e.blockedOn=t,Xf(e.priority,function(){Cp(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Nc(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);Nu=r,i.target.dispatchEvent(r),Nu=null}else return t=oi(i),t!==null&&Op(t),e.blockedOn=i,!1;t.shift()}return!0}function Np(e,t,i){Hl(e)&&i.delete(t)}function Jb(){jc=!1,fa!==null&&Hl(fa)&&(fa=null),da!==null&&Hl(da)&&(da=null),ha!==null&&Hl(ha)&&(ha=null),Ws.forEach(Np),er.forEach(Np)}function kl(e,t){e.blockedOn===t&&(e.blockedOn=null,jc||(jc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Jb)))}var ql=null;function Lp(e){ql!==e&&(ql=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ql===e&&(ql=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(Lc(r||i)===null)continue;break}var c=oi(i);c!==null&&(e.splice(t,3),t-=3,No(c,{pending:!0,data:o,method:i.method,action:r},r,o))}}))}function Qi(e){function t(R){return kl(R,e)}fa!==null&&kl(fa,e),da!==null&&kl(da,e),ha!==null&&kl(ha,e),Ws.forEach(t),er.forEach(t);for(var i=0;i<ma.length;i++){var r=ma[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ma.length&&(i=ma[0],i.blockedOn===null);)Dp(i),i.blockedOn===null&&ma.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var o=i[r],c=i[r+1],h=o[Rt]||null;if(typeof c=="function")h||Lp(i);else if(h){var b=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Rt]||null)b=h.formAction;else if(Lc(o)!==null)continue}else b=h.action;typeof b=="function"?i[r+1]=b:(i.splice(r,3),r-=3),Lp(i)}}}function jp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(i,20)}function i(){if(!r&&!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 r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Uc(e){this._internalRoot=e}Zl.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var i=t.current,r=Vt();wp(i,r,e,t,null,null)},Zl.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wp(e.current,2,null,e,null,null),_l(),t[li]=null}};function Zl(e){this._internalRoot=e}Zl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gf();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ma.length&&t!==0&&t<ma[i].priority;i++);ma.splice(i,0,e),i===0&&Dp(e)}};var Up=a.version;if(Up!=="19.2.7")throw Error(l(527,Up,"19.2.7"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=y(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Ib={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vl.isDisabled&&Vl.supportsFiber)try{cs=Vl.inject(Ib),Lt=Vl}catch{}}return ar.createRoot=function(e,t){if(!u(e))throw Error(l(299));var i=!1,r="",o=Yh,c=Qh,h=Gh;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Tp(e,1,!1,null,null,i,r,null,o,c,h,jp),e[li]=t.current,gc(e),new Uc(t)},ar.hydrateRoot=function(e,t,i){if(!u(e))throw Error(l(299));var r=!1,o="",c=Yh,h=Qh,b=Gh,R=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),t=Tp(e,1,!0,t,i??null,r,o,R,c,h,b,jp),t.context=Rp(null),i=t.current,r=Vt(),r=Ru(r),o=Wn(r),o.callback=null,ea(i,o,r),i=r,t.current.lanes=i,ds(t,i),dn(t),e[li]=t.current,gc(e),new Zl(t)},ar.version="19.2.7",ar}var Xp;function uS(){if(Xp)return kc.exports;Xp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),kc.exports=lS(),kc.exports}var oS=uS(),cS="__TSS_CONTEXT",sf=Symbol.for("TSS_SERVER_FUNCTION"),fS="application/x-tss-framed",Bn={JSON:0,CHUNK:1,END:2,ERROR:3},dS=/;\s*v=(\d+)/;function hS(n){const a=n.match(dS);return a?parseInt(a[1],10):void 0}function mS(n){const a=hS(n);if(a!==void 0&&a!==1)throw new Error(`Incompatible framed protocol version: server=${a}, client=1. Please ensure client and server are using compatible versions.`)}var rg=()=>window.__TSS_START_OPTIONS__;const lg=!1;function fr(n){return n[n.length-1]}function pS(n){return typeof n=="function"}function Fa(n,a){return pS(n)?n(a):n}const ug=Object.prototype.hasOwnProperty,Kp=Object.prototype.propertyIsEnumerable;function og(n){for(const a in n)if(ug.call(n,a))return!0;return!1}const yS=()=>Object.create(null),Pa=(n,a)=>Ja(n,a,yS);function Ja(n,a,s=()=>({}),l=0){if(n===a)return n;if(l>500)return a;const u=a,f=Jp(n)&&Jp(u);if(!f&&!(tu(n)&&tu(u)))return u;const d=f?n:Pp(n);if(!d)return u;const m=f?u:Pp(u);if(!m)return u;const p=d.length,y=m.length,v=f?new Array(y):s();let g=0;for(let S=0;S<y;S++){const x=f?S:m[S],w=n[x],z=u[x];if(w===z){v[x]=w,(f?S<p:ug.call(n,x))&&g++;continue}if(w===null||z===null||typeof w!="object"||typeof z!="object"){v[x]=z;continue}const E=Ja(w,z,s,l+1);v[x]=E,E===w&&g++}return p===y&&g===p?n:v}function Pp(n){const a=Object.getOwnPropertyNames(n);for(const u of a)if(!Kp.call(n,u))return!1;const s=Object.getOwnPropertySymbols(n);if(s.length===0)return a;const l=a;for(const u of s){if(!Kp.call(n,u))return!1;l.push(u)}return l}function tu(n){if(!Fp(n))return!1;const a=n.constructor;if(typeof a>"u")return!0;const s=a.prototype;return!(!Fp(s)||!s.hasOwnProperty("isPrototypeOf"))}function Fp(n){return Object.prototype.toString.call(n)==="[object Object]"}function Jp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Et(n,a,s){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(let l=0,u=n.length;l<u;l++)if(!Et(n[l],a[l],s))return!1;return!0}if(tu(n)&&tu(a)){const l=s?.ignoreUndefined??!0;if(s?.partial){for(const d in a)if((!l||a[d]!==void 0)&&!Et(n[d],a[d],s))return!1;return!0}let u=0;if(!l)u=Object.keys(n).length;else for(const d in n)n[d]!==void 0&&u++;let f=0;for(const d in a)if((!l||a[d]!==void 0)&&(f++,f>u||!Et(n[d],a[d],s)))return!1;return u===f}return!1}function ti(n){let a,s;const l=new Promise((u,f)=>{a=u,s=f});return l.status="pending",l.resolve=u=>{l.status="resolved",l.value=u,a(u),n?.(u)},l.reject=u=>{l.status="rejected",s(u)},l}function gS(n){return typeof n?.message!="string"?!1:n.message.startsWith("Failed to fetch dynamically imported module")||n.message.startsWith("error loading dynamically imported module")||n.message.startsWith("Importing a module script failed")}function dr(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function vS(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function Ip(n){let a;try{a=decodeURI(n)}catch{a=n.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return vS(a)}const bS=["http:","https:","mailto:","tel:"];function nu(n,a){if(!n)return!1;try{const s=new URL(n);return!a.has(s.protocol)}catch{return!1}}const SS={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},_S=/[&><\u2028\u2029]/g;function xS(n){return n.replace(_S,a=>SS[a])}function ir(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let s=0,l="",u;for(;(u=a.exec(n))!==null;)l+=Ip(n.slice(s,u.index))+u[0],s=a.lastIndex;l=l+Ip(s?n.slice(s):n);let f=!1;return l.startsWith("//")&&(f=!0,l="/"+l.replace(/^\/+/,"")),{path:l,handledProtocolRelativeURL:f}}function ES(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function TS(n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let s=0;s<n.length;s++)if(n[s]!==a[s])return!1;return!0}function Nt(){throw new Error("Invariant failed")}function hr(n){const a=new Map;let s,l;const u=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,l&&(l.next=f,f.prev=l)):(f.next.prev=void 0,s=f.next,f.next=void 0,l&&(f.prev=l,l.next=f)),l=f)};return{get(f){const d=a.get(f);if(d)return u(d),d.value},set(f,d){if(a.size>=n&&s){const p=s;a.delete(p.key),p.next&&(s=p.next,p.next.prev=void 0),p===l&&(l=void 0)}const m=a.get(f);if(m)m.value=d,u(m);else{const p={key:f,value:d,prev:l};l&&(l.next=p),l=p,s||(s=p),a.set(f,p)}},clear(){a.clear(),s=void 0,l=void 0}}}const ba=4,cg=5;function RS(n){const a=n.indexOf("{");if(a===-1)return null;const s=n.indexOf("}",a);return s===-1||a+1>=n.length?null:[a,s]}function fg(n,a,s=new Uint16Array(6)){const l=n.indexOf("/",a),u=l===-1?n.length:l,f=n.substring(a,u);if(!f||!f.includes("$"))return s[0]=0,s[1]=a,s[2]=a,s[3]=u,s[4]=u,s[5]=u,s;if(f==="$"){const m=n.length;return s[0]=2,s[1]=a,s[2]=a,s[3]=m,s[4]=m,s[5]=m,s}if(f.charCodeAt(0)===36)return s[0]=1,s[1]=a,s[2]=a+1,s[3]=u,s[4]=u,s[5]=u,s;const d=RS(f);if(d){const[m,p]=d,y=f.charCodeAt(m+1);if(y===45){if(m+2<f.length&&f.charCodeAt(m+2)===36){const v=m+3,g=p;if(v<g)return s[0]=3,s[1]=a+m,s[2]=a+v,s[3]=a+g,s[4]=a+p+1,s[5]=u,s}}else if(y===36){const v=m+1,g=m+2;return g===p?(s[0]=2,s[1]=a+m,s[2]=a+v,s[3]=a+g,s[4]=a+p+1,s[5]=n.length,s):(s[0]=1,s[1]=a+m,s[2]=a+g,s[3]=a+p,s[4]=a+p+1,s[5]=u,s)}}return s[0]=0,s[1]=a,s[2]=a,s[3]=u,s[4]=u,s[5]=u,s}function pu(n,a,s,l,u,f,d){d?.(s);let m=l;{const p=s.fullPath??s.from,y=p.length,v=s.options?.caseSensitive??n,g=s.options?.params?.parse??s.options?.parseParams;for(;m<y;){const x=fg(p,m,a);let w;const z=m,E=x[5];switch(m=E+1,f++,x[0]){case 0:{const C=p.substring(x[2],x[3]);if(v){const j=u.static?.get(C);if(j)w=j;else{u.static??=new Map;const Z=Ia(s.fullPath??s.from);Z.parent=u,Z.depth=f,w=Z,u.static.set(C,Z)}}else{const j=C.toLowerCase(),Z=u.staticInsensitive?.get(j);if(Z)w=Z;else{u.staticInsensitive??=new Map;const Q=Ia(s.fullPath??s.from);Q.parent=u,Q.depth=f,w=Q,u.staticInsensitive.set(j,Q)}}break}case 1:{const C=p.substring(z,x[1]),j=p.substring(x[4],E),Z=v&&!!(C||j),Q=C?Z?C:C.toLowerCase():void 0,X=j?Z?j:j.toLowerCase():void 0,J=!g&&u.dynamic?.find(k=>!k.parse&&k.caseSensitive===Z&&k.prefix===Q&&k.suffix===X);if(J)w=J;else{const k=Qc(1,s.fullPath??s.from,Z,Q,X);w=k,k.depth=f,k.parent=u,u.dynamic??=[],u.dynamic.push(k)}break}case 3:{const C=p.substring(z,x[1]),j=p.substring(x[4],E),Z=v&&!!(C||j),Q=C?Z?C:C.toLowerCase():void 0,X=j?Z?j:j.toLowerCase():void 0,J=!g&&u.optional?.find(k=>!k.parse&&k.caseSensitive===Z&&k.prefix===Q&&k.suffix===X);if(J)w=J;else{const k=Qc(3,s.fullPath??s.from,Z,Q,X);w=k,k.parent=u,k.depth=f,u.optional??=[],u.optional.push(k)}break}case 2:{const C=p.substring(z,x[1]),j=p.substring(x[4],E),Z=v&&!!(C||j),Q=C?Z?C:C.toLowerCase():void 0,X=j?Z?j:j.toLowerCase():void 0,J=Qc(2,s.fullPath??s.from,Z,Q,X);w=J,J.parent=u,J.depth=f,u.wildcard??=[],u.wildcard.push(J)}}u=w}if(g&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const x=Ia(s.fullPath??s.from);x.kind=cg,x.parent=u,f++,x.depth=f,u.pathless??=[],u.pathless.push(x),u=x}const S=(s.path||!s.children)&&!s.isRoot;if(S&&p.endsWith("/")){const x=Ia(s.fullPath??s.from);x.kind=ba,x.parent=u,f++,x.depth=f,u.index=x,u=x}u.parse=g??null,u.priority=s.options?.params?.priority??0,S&&!u.route&&(u.route=s,u.fullPath=s.fullPath??s.from)}if(s.children)for(const p of s.children)pu(n,a,p,m,u,f,d)}function Yc(n,a){if(n.parse&&!a.parse)return-1;if(!n.parse&&a.parse)return 1;if(n.parse&&a.parse&&(n.priority||a.priority))return a.priority-n.priority;if(n.prefix&&a.prefix&&n.prefix!==a.prefix){if(n.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(n.prefix))return 1}if(n.suffix&&a.suffix&&n.suffix!==a.suffix){if(n.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(n.suffix))return 1}return n.prefix&&!a.prefix?-1:!n.prefix&&a.prefix?1:n.suffix&&!a.suffix?-1:!n.suffix&&a.suffix?1:n.caseSensitive&&!a.caseSensitive?-1:!n.caseSensitive&&a.caseSensitive?1:0}function ya(n){if(n.pathless)for(const a of n.pathless)ya(a);if(n.static)for(const a of n.static.values())ya(a);if(n.staticInsensitive)for(const a of n.staticInsensitive.values())ya(a);if(n.dynamic?.length){n.dynamic.sort(Yc);for(const a of n.dynamic)ya(a)}if(n.optional?.length){n.optional.sort(Yc);for(const a of n.optional)ya(a)}if(n.wildcard?.length){n.wildcard.sort(Yc);for(const a of n.wildcard)ya(a)}}function Ia(n){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,parse:null,priority:0}}function Qc(n,a,s,l,u){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0,caseSensitive:s,prefix:l,suffix:u}}function wS(n,a){const s=Ia("/"),l=new Uint16Array(6);for(const u of n)pu(!1,l,u,1,s,0);ya(s),a.masksTree=s,a.flatCache=hr(1e3)}function AS(n,a){n||="/";const s=a.flatCache.get(n);if(s)return s;const l=Tf(n,a.masksTree);return a.flatCache.set(n,l),l}function OS(n,a,s,l,u){n||="/",l||="/";const f=a?`case\0${n}`:n;let d=u.singleCache.get(f);return d||(d=Ia("/"),pu(a,new Uint16Array(6),{from:n},1,d,0),u.singleCache.set(f,d)),Tf(l,d,s)}function CS(n,a,s=!1){const l=s?n:`nofuzz\0${n}`,u=a.matchCache.get(l);if(u!==void 0)return u;n||="/";let f;try{f=Tf(n,a.segmentTree,s)}catch(d){if(d instanceof URIError)f=null;else throw d}return f&&(f.branch=hg(f.route)),a.matchCache.set(l,f),f}function MS(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function zS(n,a=!1,s){const l=Ia(n.fullPath),u=new Uint16Array(6),f={},d={};let m=0;return pu(a,u,n,1,l,0,p=>{if(s?.(p,m),p.id in f&&Nt(),f[p.id]=p,m!==0&&p.path){const y=MS(p.fullPath);(!d[y]||p.fullPath.endsWith("/"))&&(d[y]=p)}m++}),ya(l),{processedTree:{segmentTree:l,singleCache:hr(1e3),matchCache:hr(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:d}}function Tf(n,a,s=!1){const l=n.split("/"),u=NS(n,l,a,s);if(!u)return null;const[f]=dg(n,l,u);return{route:u.node.route,rawParams:f}}function dg(n,a,s){const l=DS(s.node);let u=null;const f=Object.create(null);let d=s.extract?.part??0,m=s.extract?.node??0,p=s.extract?.path??0,y=s.extract?.segment??0;for(;m<l.length;d++,m++,p++,y++){const v=l[m];if(v.kind===ba)break;if(v.kind===cg){y--,d--,p--;continue}const g=a[d],S=p;if(g&&(p+=g.length),v.kind===1){u??=s.node.fullPath.split("/");const x=u[y],w=v.prefix?.length??0;if(x.charCodeAt(w)===123){const z=v.suffix?.length??0,E=x.substring(w+2,x.length-z-1),C=g.substring(w,g.length-z);f[E]=decodeURIComponent(C)}else{const z=x.substring(1);f[z]=decodeURIComponent(g)}}else if(v.kind===3){if(s.skipped&1<<m){d--,p=S-1;continue}u??=s.node.fullPath.split("/");const x=u[y],w=v.prefix?.length??0,z=v.suffix?.length??0,E=x.substring(w+3,x.length-z-1),C=v.suffix||v.prefix?g.substring(w,g.length-z):g;C&&(f[E]=decodeURIComponent(C))}else if(v.kind===2){const x=v,w=n.substring(S+(x.prefix?.length??0),n.length-(x.suffix?.length??0)),z=decodeURIComponent(w);f["*"]=z,f._splat=z;break}}return s.rawParams&&Object.assign(f,s.rawParams),[f,{part:d,node:m,path:p,segment:y}]}function hg(n){const a=[n];for(;n.parentRoute;)n=n.parentRoute,a.push(n);return a.reverse(),a}function DS(n){const a=Array(n.depth+1);do a[n.depth]=n,n=n.parent;while(n);return a}function NS(n,a,s,l){if(n==="/"&&s.index)return{node:s.index,skipped:0};const u=!fr(a),f=u&&n!=="/",d=a.length-(u?1:0),m=[{node:s,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,y=null;for(;m.length;){const v=m.pop(),{node:g,index:S,skipped:x,depth:w,statics:z,dynamics:E,optionals:C}=v;let{extract:j,rawParams:Z}=v;if(g.kind===2&&g.route&&!Ql(y,v))continue;if(g.parse){if(!$p(n,a,v))continue;Z=v.rawParams,j=v.extract}l&&g.route&&g.kind!==ba&&Ql(p,v)&&(p=v);const Q=S===d;if(Q&&(g.route&&(!f||g.kind===ba||g.kind===2)&&Ql(y,v)&&(y=v),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const X=Q?void 0:a[S];let J;if(Q&&g.index){const k={node:g.index,index:S,skipped:x,depth:w+1,statics:z,dynamics:E,optionals:C,extract:j,rawParams:Z};let G=!0;if(g.index.parse&&($p(n,a,k)||(G=!1)),G){if(!E&&!C&&!x&&LS(z,d))return k;Ql(y,k)&&(y=k)}}if(g.wildcard)for(let k=g.wildcard.length-1;k>=0;k--){const G=g.wildcard[k],{prefix:$,suffix:de}=G;if(!($&&(Q||!(G.caseSensitive?X:J??=X.toLowerCase()).startsWith($)))){if(de){if(Q)continue;const ce=a.slice(S).join("/").slice(-de.length);if((G.caseSensitive?ce:ce.toLowerCase())!==de)continue}m.push({node:G,index:d,skipped:x,depth:w+1,statics:z,dynamics:E,optionals:C,extract:j,rawParams:Z})}}if(g.optional){const k=x|1<<w,G=w+1;for(let $=g.optional.length-1;$>=0;$--){const de=g.optional[$];m.push({node:de,index:S,skipped:k,depth:G,statics:z,dynamics:E,optionals:C,extract:j,rawParams:Z})}if(!Q)for(let $=g.optional.length-1;$>=0;$--){const de=g.optional[$],{prefix:ce,suffix:oe}=de;if(ce||oe){const ot=de.caseSensitive?X:J??=X.toLowerCase();if(ce&&!ot.startsWith(ce)||oe&&!ot.endsWith(oe))continue}m.push({node:de,index:S+1,skipped:x,depth:G,statics:z,dynamics:E,optionals:C+Yl(d,S),extract:j,rawParams:Z})}}if(!Q&&g.dynamic&&X)for(let k=g.dynamic.length-1;k>=0;k--){const G=g.dynamic[k],{prefix:$,suffix:de}=G;if($||de){const ce=G.caseSensitive?X:J??=X.toLowerCase();if($&&!ce.startsWith($)||de&&!ce.endsWith(de))continue}m.push({node:G,index:S+1,skipped:x,depth:w+1,statics:z,dynamics:E+Yl(d,S),optionals:C,extract:j,rawParams:Z})}if(!Q&&g.staticInsensitive){const k=g.staticInsensitive.get(J??=X.toLowerCase());k&&m.push({node:k,index:S+1,skipped:x,depth:w+1,statics:z+Yl(d,S),dynamics:E,optionals:C,extract:j,rawParams:Z})}if(!Q&&g.static){const k=g.static.get(X);k&&m.push({node:k,index:S+1,skipped:x,depth:w+1,statics:z+Yl(d,S),dynamics:E,optionals:C,extract:j,rawParams:Z})}if(g.pathless){const k=w+1;for(let G=g.pathless.length-1;G>=0;G--){const $=g.pathless[G];m.push({node:$,index:S,skipped:x,depth:k,statics:z,dynamics:E,optionals:C,extract:j,rawParams:Z})}}}if(y)return y;if(l&&p){let v=p.index;for(let S=0;S<p.index;S++)v+=a[S].length;const g=v===n.length?"/":n.slice(v);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(g),p}return null}function Yl(n,a){return 2**(n-a-1)}function LS(n,a){return n===2**(a-1)-1}function $p(n,a,s){let l,u;try{[l,u]=dg(n,a,s)}catch{return null}if(s.rawParams=l,s.extract=u,!s.node.parse)return!0;try{if(s.node.parse(l)===!1)return null}catch{}return!0}function Ql(n,a){return n?a.statics>n.statics||a.statics===n.statics&&(a.dynamics>n.dynamics||a.dynamics===n.dynamics&&(a.optionals>n.optionals||a.optionals===n.optionals&&((a.node.kind===ba)>(n.node.kind===ba)||a.node.kind===ba==(n.node.kind===ba)&&a.depth>n.depth))):!0}function Jl(n){return Rf(n.filter(a=>a!==void 0).join("/"))}function Rf(n){return n.replace(/\/{2,}/g,"/")}function mg(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function Hn(n){const a=n.length;return a>1&&n[a-1]==="/"?n.replace(/\/{1,}$/,""):n}function pg(n){return Hn(mg(n))}function au(n,a){return n?.endsWith("/")&&n!=="/"&&n!==`${a}/`?n.slice(0,-1):n}function jS(n,a,s){return au(n,s)===au(a,s)}function US({base:n,to:a,trailingSlash:s="never",cache:l}){const u=a.startsWith("/"),f=!u&&a===".";let d;if(l){d=u?a:f?n:n+"\0"+a;const y=l.get(d);if(y)return y}let m;if(f)m=n.split("/");else if(u)m=a.split("/");else{for(m=n.split("/");m.length>1&&fr(m)==="";)m.pop();const y=a.split("/");for(let v=0,g=y.length;v<g;v++){const S=y[v];S===""?v?v===g-1&&m.push(S):m=[S]:S===".."?m.pop():S==="."||m.push(S)}}m.length>1&&(fr(m)===""?s==="never"&&m.pop():s==="always"&&m.push(""));const p=Rf(m.join("/"))||"/";return d&&l&&l.set(d,p),p}function BS(n){const a=new Map(n.map(u=>[encodeURIComponent(u),u])),s=Array.from(a.keys()).map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(s,"g");return u=>u.replace(l,f=>a.get(f)??f)}function Gc(n,a,s){const l=a[n];return typeof l!="string"?l:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(l)?l:l.split("/").map(u=>ey(u,s)).join("/"):ey(l,s)}function Wp({path:n,params:a,decoder:s,...l}){let u=!1;const f=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:u};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:u};const d=n.length;let m=0,p,y="";for(;m<d;){const v=m;p=fg(n,v,p);const g=p[5];if(m=g+1,v===g)continue;const S=p[0];if(S===0){y+="/"+n.substring(v,g);continue}if(S===2){const x=a._splat;f._splat=x,f["*"]=x;const w=n.substring(v,p[1]),z=n.substring(p[4],g);if(!x){u=!0,(w||z)&&(y+="/"+w+z);continue}const E=Gc("_splat",a,s);y+="/"+w+E+z;continue}if(S===1){const x=n.substring(p[2],p[3]);!u&&!(x in a)&&(u=!0),f[x]=a[x];const w=n.substring(v,p[1]),z=n.substring(p[4],g),E=Gc(x,a,s)??"undefined";y+="/"+w+E+z;continue}if(S===3){const x=n.substring(p[2],p[3]),w=a[x];if(w==null)continue;f[x]=w;const z=n.substring(v,p[1]),E=n.substring(p[4],g),C=Gc(x,a,s)??"";y+="/"+z+C+E;continue}}return n.endsWith("/")&&(y+="/"),{usedParams:f,interpolatedPath:y||"/",isMissingParams:u}}function ey(n,a){const s=encodeURIComponent(n);return a?.(s)??s}function dt(n){return n?.isNotFound===!0}function yg(n,a=String){const s=new URLSearchParams;for(const l in n){const u=n[l];u!==void 0&&s.set(l,a(u))}return s.toString()}function Xc(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function HS(n){const a=new URLSearchParams(n),s=Object.create(null);for(const[l,u]of a.entries()){const f=s[l];f==null?s[l]=Xc(u):Array.isArray(f)?f.push(Xc(u)):s[l]=[f,Xc(u)]}return s}const kS=ZS(JSON.parse),qS=VS(JSON.stringify,JSON.parse);function ZS(n){return a=>{a[0]==="?"&&(a=a.substring(1));const s=HS(a);for(const l in s){const u=s[l];if(typeof u=="string")try{s[l]=n(u)}catch{}}return s}}function VS(n,a){const s=typeof a=="function";function l(u){if(typeof u=="object"&&u!==null)try{return n(u)}catch{}else if(s&&typeof u=="string")try{return a(u),n(u)}catch{}return u}return u=>{const f=yg(u,l);return f?`?${f}`:""}}const Wa="__root__";function gg(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const a=new Headers(n.headers);n.href&&a.get("Location")===null&&a.set("Location",n.href);const s=new Response(null,{status:n.statusCode,headers:a});if(s.options=n,n.throw)throw s;return s}function Dt(n){return n instanceof Response&&!!n.options}function YS(n){if(n!==null&&typeof n=="object"&&n.isSerializedRedirect)return gg(n)}const rf=n=>{if(!n.rendered)return n.rendered=!0,n.onReady?.()},QS=n=>n.stores.matchesId.get().some(a=>n.stores.matchStores.get(a)?.get()._forcePending),yu=(n,a)=>!!(n.preload&&!n.router.stores.matchStores.has(a)),ei=(n,a,s=!0)=>{const l={...n.router.options.context??{}},u=s?a:a-1;for(let f=0;f<=u;f++){const d=n.matches[f];if(!d)continue;const m=n.router.getMatch(d.id);m&&Object.assign(l,m.__routeContext,m.__beforeLoadContext)}return l},ty=(n,a)=>{if(!n.matches.length)return;const s=a.routeId,l=n.matches.findIndex(d=>d.routeId===n.router.routeTree.id),u=l>=0?l:0;let f=s?n.matches.findIndex(d=>d.routeId===s):n.firstBadMatchIndex??n.matches.length-1;f<0&&(f=u);for(let d=f;d>=0;d--){const m=n.matches[d];if(n.router.looseRoutesById[m.routeId].options.notFoundComponent)return d}return s?f:u},Sa=(n,a,s)=>{if(!(!Dt(s)&&!dt(s)))throw Dt(s)&&s.redirectHandled&&!s.options.reloadDocument||(a&&(a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.loaderPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0,a._nonReactive.error=s,n.updateMatch(a.id,l=>({...l,status:Dt(s)?"redirected":dt(s)?"notFound":l.status==="pending"?"success":l.status,context:ei(n,a.index),isFetching:!1,error:s})),dt(s)&&!s.routeId&&(s.routeId=a.routeId),a._nonReactive.loadPromise?.resolve()),Dt(s)&&(n.rendered=!0,s.options._fromLocation=n.location,s.redirectHandled=!0,s=n.router.resolveRedirect(s))),s},vg=(n,a)=>{const s=n.router.getMatch(a);return!!(!s||s._nonReactive.dehydrated)},ny=(n,a,s)=>{const l=ei(n,s);n.updateMatch(a,u=>({...u,context:l}))},sr=(n,a,s)=>{const{id:l,routeId:u}=n.matches[a],f=n.router.looseRoutesById[u];if(s instanceof Promise)throw s;n.firstBadMatchIndex??=a,Sa(n,n.router.getMatch(l),s);try{f.options.onError?.(s)}catch(d){s=d,Sa(n,n.router.getMatch(l),s)}n.updateMatch(l,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!n.preload&&!Dt(s)&&!dt(s)&&(n.serialError??=s)},bg=(n,a,s,l)=>{if(l._nonReactive.pendingTimeout!==void 0)return;const u=s.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!yu(n,a)&&(s.options.loader||s.options.beforeLoad||_g(s))&&typeof u=="number"&&u!==1/0&&(s.options.pendingComponent??n.router.options?.defaultPendingComponent)){const f=setTimeout(()=>{rf(n)},u);l._nonReactive.pendingTimeout=f}},GS=(n,a,s)=>{const l=n.router.getMatch(a);if(!l._nonReactive.beforeLoadPromise&&!l._nonReactive.loaderPromise)return;bg(n,a,s,l);const u=()=>{const f=n.router.getMatch(a);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Sa(n,f,f.error)};return l._nonReactive.beforeLoadPromise?l._nonReactive.beforeLoadPromise.then(u):u()},XS=(n,a,s,l)=>{const u=n.router.getMatch(a);let f=u._nonReactive.loadPromise;u._nonReactive.loadPromise=ti(()=>{f?.resolve(),f=void 0});const{paramsError:d,searchError:m}=u;d&&sr(n,s,d),m&&sr(n,s,m),bg(n,a,l,u);const p=new AbortController;let y=!1;const v=()=>{y||(y=!0,n.updateMatch(a,Q=>({...Q,isFetching:"beforeLoad",fetchCount:Q.fetchCount+1,abortController:p})))},g=()=>{u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,n.updateMatch(a,Q=>({...Q,isFetching:!1}))};if(!l.options.beforeLoad){n.router.batch(()=>{v(),g()});return}u._nonReactive.beforeLoadPromise=ti();const S={...ei(n,s,!1),...u.__routeContext},{search:x,params:w,cause:z}=u,E=yu(n,a),C={search:x,abortController:p,params:w,preload:E,context:S,location:n.location,navigate:Q=>n.router.navigate({...Q,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:E?"preload":z,matches:n.matches,routeId:l.id,...n.router.options.additionalContext},j=Q=>{if(Q===void 0){n.router.batch(()=>{v(),g()});return}(Dt(Q)||dt(Q))&&(v(),sr(n,s,Q)),n.router.batch(()=>{v(),n.updateMatch(a,X=>({...X,__beforeLoadContext:Q})),g()})};let Z;try{if(Z=l.options.beforeLoad(C),dr(Z))return v(),Z.catch(Q=>{sr(n,s,Q)}).then(j)}catch(Q){v(),sr(n,s,Q)}j(Z)},KS=(n,a)=>{const{id:s,routeId:l}=n.matches[a],u=n.router.looseRoutesById[l],f=()=>m(),d=()=>XS(n,s,a,u),m=()=>{if(vg(n,s))return;const p=GS(n,s,u);return dr(p)?p.then(d):d()};return f()},PS=(n,a,s)=>{const l=n.router.getMatch(a);if(!l||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const u={ssr:n.router.options.ssr,matches:n.matches,match:l,params:l.params,loaderData:l.loaderData};return Promise.all([s.options.head?.(u),s.options.scripts?.(u),s.options.headers?.(u)]).then(([f,d,m])=>({meta:f?.meta,links:f?.links,headScripts:f?.scripts,headers:m,scripts:d,styles:f?.styles}))},Sg=(n,a,s,l,u)=>{const f=a[l-1],{params:d,loaderDeps:m,abortController:p,cause:y}=n.router.getMatch(s),v=ei(n,l),g=yu(n,s);return{params:d,deps:m,preload:!!g,parentMatchPromise:f,abortController:p,context:v,location:n.location,navigate:S=>n.router.navigate({...S,_fromLocation:n.location}),cause:g?"preload":y,route:u,...n.router.options.additionalContext}},ay=async(n,a,s,l,u)=>{try{const f=n.router.getMatch(s);try{(!(lg??n.router.isServer)||f.ssr===!0)&&mr(u);const d=u.options.loader,m=typeof d=="function"?d:d?.handler,p=m?.(Sg(n,a,s,l,u)),y=!!m&&dr(p);if((y||u._lazyPromise||u._componentsPromise||u.options.head||u.options.scripts||u.options.headers||f._nonReactive.minPendingPromise)&&n.updateMatch(s,g=>({...g,isFetching:"loader"})),m){const g=y?await p:p;Sa(n,n.router.getMatch(s),g),g!==void 0&&n.updateMatch(s,S=>({...S,loaderData:g}))}u._lazyPromise&&await u._lazyPromise;const v=f._nonReactive.minPendingPromise;v&&await v,u._componentsPromise&&await u._componentsPromise,n.updateMatch(s,g=>({...g,error:void 0,context:ei(n,l),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(d){let m=d;if(m?.name==="AbortError"){if(f.abortController.signal.aborted){f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loaderPromise=void 0;return}n.updateMatch(s,y=>({...y,status:y.status==="pending"?"success":y.status,isFetching:!1,context:ei(n,l)}));return}const p=f._nonReactive.minPendingPromise;p&&await p,dt(d)&&await u.options.notFoundComponent?.preload?.(),Sa(n,n.router.getMatch(s),d);try{u.options.onError?.(d)}catch(y){m=y,Sa(n,n.router.getMatch(s),y)}!Dt(m)&&!dt(m)&&await mr(u,["errorComponent"]),n.updateMatch(s,y=>({...y,error:m,context:ei(n,l),status:"error",isFetching:!1}))}}catch(f){const d=n.router.getMatch(s);d&&(d._nonReactive.loaderPromise=void 0),Sa(n,d,f)}},FS=async(n,a,s)=>{async function l(x,w,z,E,C){const j=Date.now()-w.updatedAt,Z=x?C.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:C.options.staleTime??n.router.options.defaultStaleTime??0,Q=C.options.shouldReload,X=typeof Q=="function"?Q(Sg(n,a,u,s,C)):Q,{status:J,invalid:k}=E,G=j>=Z&&(!!n.forceStaleReload||E.cause==="enter"||z!==void 0&&z!==E.id);d=J==="success"&&(k||(X??G)),x&&C.options.preload===!1||(d&&!n.sync&&v?(m=!0,(async()=>{try{await ay(n,a,u,s,C);const $=n.router.getMatch(u);$._nonReactive.loaderPromise?.resolve(),$._nonReactive.loadPromise?.resolve(),$._nonReactive.loaderPromise=void 0,$._nonReactive.loadPromise=void 0}catch($){Dt($)&&await n.router.navigate($.options)}})()):J!=="success"||d?await ay(n,a,u,s,C):ny(n,u,s))}const{id:u,routeId:f}=n.matches[s];let d=!1,m=!1;const p=n.router.looseRoutesById[f],y=p.options.loader,v=((typeof y=="function"?void 0:y?.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(vg(n,u)){if(!n.router.getMatch(u))return n.matches[s];ny(n,u,s)}else{const x=n.router.getMatch(u),w=n.router.stores.matchesId.get()[s],z=(w&&n.router.stores.matchStores.get(w)||null)?.routeId===f?w:n.router.stores.matches.get().find(C=>C.routeId===f)?.id,E=yu(n,u);if(x._nonReactive.loaderPromise){if(x.status==="success"&&!n.sync&&!x.preload&&v)return x;await x._nonReactive.loaderPromise;const C=n.router.getMatch(u),j=C._nonReactive.error||C.error;j&&Sa(n,C,j),C.status==="pending"&&await l(E,x,z,C,p)}else{const C=E&&!n.router.stores.matchStores.has(u),j=n.router.getMatch(u);j._nonReactive.loaderPromise=ti(),C!==j.preload&&n.updateMatch(u,Z=>({...Z,preload:C})),await l(E,x,z,j,p)}}const g=n.router.getMatch(u);m||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,m||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const S=m?g.isFetching:!1;return S!==g.isFetching||g.invalid!==!1?(n.updateMatch(u,x=>({...x,isFetching:S,invalid:!1})),n.router.getMatch(u)):g};async function iy(n){const a=n,s=[];QS(a.router)&&rf(a);let l;for(let S=0;S<a.matches.length;S++){try{const x=KS(a,S);dr(x)&&await x}catch(x){if(Dt(x))throw x;if(dt(x))l=x;else if(!a.preload)throw x;break}if(a.serialError||a.firstBadMatchIndex!=null)break}const u=a.firstBadMatchIndex??a.matches.length,f=l&&!a.preload?ty(a,l):void 0,d=l&&a.preload?0:f!==void 0?Math.min(f+1,u):u;let m,p;for(let S=0;S<d;S++)s.push(FS(a,s,S));try{await Promise.all(s)}catch{const S=await Promise.allSettled(s);for(const x of S){if(x.status!=="rejected")continue;const w=x.reason;if(Dt(w))throw w;dt(w)?m??=w:p??=w}if(p!==void 0)throw p}const y=m??(l&&!a.preload?l:void 0);let v=a.firstBadMatchIndex!==void 0?a.firstBadMatchIndex:a.matches.length-1;if(!y&&l&&a.preload)return a.matches;if(y){const S=ty(a,y);S===void 0&&Nt();const x=a.matches[S],w=a.router.looseRoutesById[x.routeId],z=a.router.options?.defaultNotFoundComponent;!w.options.notFoundComponent&&z&&(w.options.notFoundComponent=z),y.routeId=x.routeId;const E=x.routeId===a.router.routeTree.id;a.updateMatch(x.id,C=>({...C,...E?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:y},isFetching:!1})),v=S,await mr(w,["notFoundComponent"])}else if(!a.preload){const S=a.matches[0];S.globalNotFound||a.router.getMatch(S.id)?.globalNotFound&&a.updateMatch(S.id,x=>({...x,globalNotFound:!1,error:void 0}))}if(a.serialError&&a.firstBadMatchIndex!==void 0){const S=a.router.looseRoutesById[a.matches[a.firstBadMatchIndex].routeId];await mr(S,["errorComponent"])}for(let S=0;S<=v;S++){const{id:x,routeId:w}=a.matches[S],z=a.router.looseRoutesById[w];try{const E=PS(a,x,z);if(E){const C=await E;a.updateMatch(x,j=>({...j,...C}))}}catch(E){console.error(`Error executing head for route ${w}:`,E)}}const g=rf(a);if(dr(g)&&await g,y)throw y;if(a.serialError&&!a.preload&&!a.onReady)throw a.serialError;return a.matches}function sy(n,a){const s=a.map(l=>n.options[l]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function mr(n,a=Il){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(l=>{const{id:u,...f}=l.options;Object.assign(n.options,f),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const s=()=>n._componentsLoaded?void 0:a===Il?(()=>{if(n._componentsPromise===void 0){const l=sy(n,Il);l?n._componentsPromise=l.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():sy(n,a);return n._lazyPromise?n._lazyPromise.then(s):s()}function _g(n){for(const a of Il)if(n.options[a]?.preload)return!0;return!1}const Il=["component","errorComponent","pendingComponent","notFoundComponent"];function JS(n){return{input:({url:a})=>{for(const s of n)a=lf(s,a);return a},output:({url:a})=>{for(let s=n.length-1;s>=0;s--)a=xg(n[s],a);return a}}}function IS(n){const a=pg(n.basepath),s=`/${a}`,l=n.caseSensitive?s:s.toLowerCase(),u=`${l}/`;return{input:({url:f})=>{const d=n.caseSensitive?f.pathname:f.pathname.toLowerCase();return d===l?f.pathname="/":d.startsWith(u)&&(f.pathname=f.pathname.slice(s.length)),f},output:({url:f})=>(f.pathname=Jl(["/",a,f.pathname]),f)}}function lf(n,a){const s=n?.input?.({url:a});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return a}function xg(n,a){const s=n?.output?.({url:a});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return a}function $S(n,a){const{createMutableStore:s,createReadonlyStore:l,batch:u,init:f}=a,d=new Map,m=new Map,p=new Map,y=s(n.status),v=s(n.loadedAt),g=s(n.isLoading),S=s(n.isTransitioning),x=s(n.location),w=s(n.resolvedLocation),z=s(n.statusCode),E=s(n.redirect),C=s([]),j=s([]),Z=s([]),Q=l(()=>Kc(d,C.get())),X=l(()=>Kc(m,j.get())),J=l(()=>Kc(p,Z.get())),k=l(()=>C.get()[0]),G=l(()=>C.get().some(F=>d.get(F)?.get().status==="pending")),$=l(()=>({locationHref:x.get().href,resolvedLocationHref:w.get()?.href,status:y.get()})),de=l(()=>({status:y.get(),loadedAt:v.get(),isLoading:g.get(),isTransitioning:S.get(),matches:Q.get(),location:x.get(),resolvedLocation:w.get(),statusCode:z.get(),redirect:E.get()})),ce=hr(64);function oe(F){let ue=ce.get(F);return ue||(ue=l(()=>{const ze=C.get();for(const Ne of ze){const O=d.get(Ne);if(O&&O.routeId===F)return O.get()}}),ce.set(F,ue)),ue}const ot={status:y,loadedAt:v,isLoading:g,isTransitioning:S,location:x,resolvedLocation:w,statusCode:z,redirect:E,matchesId:C,pendingIds:j,cachedIds:Z,matches:Q,pendingMatches:X,cachedMatches:J,firstId:k,hasPending:G,matchRouteDeps:$,matchStores:d,pendingMatchStores:m,cachedMatchStores:p,__store:de,getRouteMatchStore:oe,setMatches:Ge,setPending:Je,setCached:B};Ge(n.matches),f?.(ot);function Ge(F){Pc(F,d,C,s,u)}function Je(F){Pc(F,m,j,s,u)}function B(F){Pc(F,p,Z,s,u)}return ot}function Kc(n,a){const s=[];for(const l of a){const u=n.get(l);u&&s.push(u.get())}return s}function Pc(n,a,s,l,u){const f=n.map(m=>m.id),d=new Set(f);u(()=>{for(const m of a.keys())d.has(m)||a.delete(m);for(const m of n){const p=a.get(m.id);if(!p){const y=l(m);y.routeId=m.routeId,a.set(m.id,y);continue}p.routeId=m.routeId,p.get()!==m&&p.set(m)}TS(s.get(),f)||s.set(f)})}var xa="__TSR_index",ry="popstate",ly="beforeunload";function WS(n){let a=n.getLocation();const s=new Set,l=d=>{a=n.getLocation(),s.forEach(m=>m({location:a,action:d}))},u=d=>{n.notifyOnIndexChange??!0?l(d):a=n.getLocation()},f=async({task:d,navigateOpts:m,...p})=>{if(m?.ignoreBlocker??!1){d();return}const y=n.getBlockers?.()??[],v=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&y.length&&v)for(const g of y){const S=iu(p.path,p.state);if(await g.blockerFn({currentLocation:a,nextLocation:S,action:p.type})){n.onBlocked?.();return}}d()};return{get location(){return a},get length(){return n.getLength()},subscribers:s,subscribe:d=>(s.add(d),()=>{s.delete(d)}),push:(d,m,p)=>{const y=a.state[xa];m=uy(y+1,m),f({task:()=>{n.pushState(d,m),l({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:d,state:m})},replace:(d,m,p)=>{const y=a.state[xa];m=uy(y,m),f({task:()=>{n.replaceState(d,m),l({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:d,state:m})},go:(d,m)=>{f({task:()=>{n.go(d),u({type:"GO",index:d})},navigateOpts:m,type:"GO"})},back:d=>{f({task:()=>{n.back(d?.ignoreBlocker??!1),u({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{f({task:()=>{n.forward(d?.ignoreBlocker??!1),u({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>a.state[xa]!==0,createHref:d=>n.createHref(d),block:d=>{if(!n.setBlockers)return()=>{};const m=n.getBlockers?.()??[];return n.setBlockers([...m,d]),()=>{const p=n.getBlockers?.()??[];n.setBlockers?.(p.filter(y=>y!==d))}},flush:()=>n.flush?.(),destroy:()=>n.destroy?.(),notify:l}}function uy(n,a){a||(a={});const s=wf();return{...a,key:s,__TSR_key:s,[xa]:n}}function e_(n){const a=typeof document<"u"?window:void 0,s=a.history.pushState,l=a.history.replaceState;let u=[];const f=()=>u,d=G=>u=G,m=(G=>G),p=(()=>iu(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!a.history.state?.__TSR_key&&!a.history.state?.key){const G=wf();a.history.replaceState({[xa]:0,key:G,__TSR_key:G},"")}let y=p(),v,g=!1,S=!1,x=!1,w=!1;const z=()=>y;let E,C;const j=()=>{E&&(k._ignoreSubscribers=!0,(E.isPush?a.history.pushState:a.history.replaceState)(E.state,"",E.href),k._ignoreSubscribers=!1,E=void 0,C=void 0,v=void 0)},Z=(G,$,de)=>{const ce=m($);C||(v=y),y=iu($,de),E={href:ce,state:de,isPush:E?.isPush||G==="push"},C||(C=Promise.resolve().then(()=>j()))},Q=G=>{y=p(),k.notify({type:G})},X=async()=>{if(S){S=!1;return}const G=p(),$=G.state[xa]-y.state[xa],de=$===1,ce=$===-1,oe=!de&&!ce||g;g=!1;const ot=oe?"GO":ce?"BACK":"FORWARD",Ge=oe?{type:"GO",index:$}:{type:ce?"BACK":"FORWARD"};if(x)x=!1;else{const Je=f();if(typeof document<"u"&&Je.length){for(const B of Je)if(await B.blockerFn({currentLocation:y,nextLocation:G,action:ot})){S=!0,a.history.go(1),k.notify(Ge);return}}}y=p(),k.notify(Ge)},J=G=>{if(w){w=!1;return}let $=!1;const de=f();if(typeof document<"u"&&de.length)for(const ce of de){const oe=ce.enableBeforeUnload??!0;if(oe===!0){$=!0;break}if(typeof oe=="function"&&oe()===!0){$=!0;break}}if($)return G.preventDefault(),G.returnValue=""},k=WS({getLocation:z,getLength:()=>a.history.length,pushState:(G,$)=>Z("push",G,$),replaceState:(G,$)=>Z("replace",G,$),back:G=>(G&&(x=!0),w=!0,a.history.back()),forward:G=>{G&&(x=!0),w=!0,a.history.forward()},go:G=>{g=!0,a.history.go(G)},createHref:G=>m(G),flush:j,destroy:()=>{a.history.pushState=s,a.history.replaceState=l,a.removeEventListener(ly,J,{capture:!0}),a.removeEventListener(ry,X)},onBlocked:()=>{v&&y!==v&&(y=v)},getBlockers:f,setBlockers:d,notifyOnIndexChange:!1});return a.addEventListener(ly,J,{capture:!0}),a.addEventListener(ry,X),a.history.pushState=function(...G){const $=s.apply(a.history,G);return k._ignoreSubscribers||Q("PUSH"),$},a.history.replaceState=function(...G){const $=l.apply(a.history,G);return k._ignoreSubscribers||Q("REPLACE"),$},k}function t_(n){let a=n.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function iu(n,a){const s=t_(n),l=s.indexOf("#"),u=s.indexOf("?"),f=wf();return{href:s,pathname:s.substring(0,l>0?u>0?Math.min(l,u):l:u>0?u:s.length),hash:l>-1?s.substring(l):"",search:u>-1?s.slice(u,l===-1?void 0:l):"",state:a||{[xa]:0,key:f,__TSR_key:f}}}function wf(){return(Math.random()+1).toString(36).substring(7)}function n_(n){return n instanceof Error?{name:n.name,message:n.message}:{data:n}}function Wi(n,a){const s=a,l=n;return{fromLocation:s,toLocation:l,pathChanged:s?.pathname!==l.pathname,hrefChanged:s?.href!==l.href,hashChanged:s?.hash!==l.hash}}const uf=new WeakMap;var a_=class{constructor(n,a){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=s=>s(),this.update=s=>{const l=this.options,u=this.basepath??l?.basepath??"/",f=this.basepath===void 0,d=l?.rewrite;if(this.options={...l,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=BS(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=e_()),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 v;this.resolvePathCache=hr(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=$S(s_(this.latestLocation),v),y_(this)}let m=!1;const p=this.options.basepath??"/",y=this.options.rewrite;if(f||u!==p||d!==y){this.basepath=p;const v=[],g=pg(p);g&&g!=="/"&&v.push(IS({basepath:p})),y&&v.push(y),this.rewrite=v.length===0?void 0:v.length===1?v[0]:JS(v),this.history&&this.updateLatestLocation(),m=!0}m&&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=zS(this.routeTree,this.options.caseSensitive,(l,u)=>{l.init({originalIndex:u})});return this.options.routeMasks&&wS(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,l)=>{const u={eventType:s,fn:l};return this.subscribers.add(u),()=>{this.subscribers.delete(u)}},this.emit=s=>{this.subscribers.forEach(l=>{l.eventType===s.type&&l.fn(s)})},this.parseLocation=(s,l)=>{const u=({pathname:p,search:y,hash:v,href:g,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const C=this.options.parseSearch(y),j=this.options.stringifySearch(C);return{href:p+j+v,publicHref:p+j+v,pathname:ir(p).path,external:!1,searchStr:j,search:Pa(l?.search,C),hash:ir(v.slice(1)).path,state:Ja(l?.state,S)}}const x=new URL(g,this.origin),w=lf(this.rewrite,x),z=this.options.parseSearch(w.search),E=this.options.stringifySearch(z);return w.search=E,{href:w.href.replace(w.origin,""),publicHref:g,pathname:ir(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:E,search:Pa(l?.search,z),hash:ir(w.hash.slice(1)).path,state:Ja(l?.state,S)}},f=u(s),{__tempLocation:d,__tempKey:m}=f.state;if(d&&(!m||m===this.tempLocationKey)){const p=u(d);return p.state.key=f.state.key,p.state.__TSR_key=f.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:f}}return f},this.resolvePathWithBase=(s,l)=>US({base:s,to:l.includes("//")?Rf(l):l,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,l,u)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:l},u):this.matchRoutesInternal(s,l),this.getMatchedRoutes=s=>r_({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const l=this.getMatch(s);l&&(l.abortController.abort(),clearTimeout(l._nonReactive.pendingTimeout),l._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 l=this.stores.matchStores.get(s)?.get();l&&(l.status==="pending"||l.isFetching==="loader")&&this.cancelMatch(s)})},this.buildLocation=s=>{const l=(f={})=>{const d=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(d);f.from;const p=f.unsafeRelative==="path"?d.pathname:f.from??m.fullPath,y=f.to?`${f.to}`:void 0,v=m.search,g=Object.assign(Object.create(null),m.params),S=y?.charCodeAt(0)===47?"/":this.resolvePathWithBase(p,"."),x=y?this.resolvePathWithBase(S,y):S,w=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?g:Object.assign(g,Fa(f.params,g)),z=this.routesByPath[Hn(x)];let E;if(z)E=this.getRouteBranch(z);else if(x.includes("$"))E=[];else{const ce=this.getMatchedRoutes(x);E=ce.matchedRoutes,this.options.notFoundRoute&&(!ce.foundRoute||ce.foundRoute.path!=="/"&&ce.routeParams["**"])&&(E=[...E,this.options.notFoundRoute])}if(E.length&&og(w))for(const ce of E){const oe=ce.options.params?.stringify??ce.options.stringifyParams;if(oe)try{Object.assign(w,oe(w))}catch{}}const C=s.leaveParams?x:ir(Wp({path:x,params:w,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let j=v;if(s._includeValidateSearch&&this.options.search?.strict){const ce={};E.forEach(oe=>{if(oe.options.validateSearch)try{Object.assign(ce,$l(oe.options.validateSearch,{...ce,...j}))}catch{}}),j=ce}j=l_({search:j,dest:f,destRoutes:E,_includeValidateSearch:s._includeValidateSearch}),j=Pa(v,j);const Z=this.options.stringifySearch(j),Q=f.hash===!0?d.hash:f.hash?Fa(f.hash,d.hash):void 0,X=Q?`#${Q}`:"";let J=f.state===!0?d.state:f.state?Fa(f.state,d.state):{};J=Ja(d.state,J);const k=`${C}${Z}${X}`;let G,$,de=!1;if(this.rewrite){const ce=new URL(k,this.origin),oe=xg(this.rewrite,ce);G=ce.href.replace(ce.origin,""),oe.origin!==this.origin?($=oe.href,de=!0):$=oe.pathname+oe.search+oe.hash}else G=ES(k),$=G;return{publicHref:$,href:G,pathname:C,search:j,searchStr:Z,state:J,hash:Q??"",external:de,unmaskOnReload:f.unmaskOnReload}},u=(f={},d)=>{const m=l(f);let p=d?l(d):void 0;if(!p){const y=Object.create(null);if(this.options.routeMasks){const v=AS(m.pathname,this.processedTree);if(v){Object.assign(y,v.rawParams);const{from:g,params:S,...x}=v.route,w=S===!1||S===null?Object.create(null):(S??!0)===!0?y:Object.assign(y,Fa(S,y));d={from:s.from,...x,params:w},p=l(d)}}}return p&&(m.maskedLocation=p),m};return s.mask?u(s,{from:s.from,...s.mask}):u(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:l,...u})=>{let f;const d=()=>{const y=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];y.forEach(g=>{u.state[g]=this.latestLocation.state[g]});const v=Et(u.state,this.latestLocation.state);return y.forEach(g=>{delete u.state[g]}),v},m=Hn(this.latestLocation.href)===Hn(u.href);let p=this.commitLocationPromise;if(this.commitLocationPromise=ti(()=>{p?.resolve(),p=void 0}),m&&d())this.load();else{let{maskedLocation:y,hashScrollIntoView:v,...g}=u;y&&(g={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,f=u.replace?"REPLACE":"PUSH",this.history[f==="REPLACE"?"replace":"push"](g.publicHref,g.state,{ignoreBlocker:l})}return this._scroll.next=u.resetScroll??!0,this.history.subscribers.size||this.load(f?{action:{type:f}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:l,hashScrollIntoView:u,viewTransition:f,ignoreBlocker:d,href:m,...p}={})=>{if(m){const g=this.history.location.state.__TSR_index,S=iu(m,{__TSR_index:s?g:g+1}),x=new URL(S.pathname,this.origin);p.to=lf(this.rewrite,x).pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const y=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const v=this.commitLocation({...y,viewTransition:f,replace:s,resetScroll:l,hashScrollIntoView:u,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:s,reloadDocument:l,href:u,publicHref:f,...d})=>{let m=!1;if(u)try{new URL(`${u}`),m=!0}catch{}if(m&&!l&&(l=!0),l){if(s!==void 0||!u){const y=this.buildLocation({to:s,...d});u=u??y.publicHref,f=f??y.publicHref}const p=!m&&f?f:u;if(nu(p,this.protocolAllowlist))return Promise.resolve();if(!d.ignoreBlocker){const y=this.history.getBlockers?.()??[];for(const v of y)if(v?.blockerFn&&await v.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...d,href:u,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation),l=this.stores.cachedMatches.get().filter(u=>!s.some(f=>f.id===u.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(l)})},this.load=async s=>{const l=s?.action?.type;let u,f,d;const m=this.stores.resolvedLocation.get()??this.stores.location.get();for(d=new Promise(y=>{this.startTransition(async()=>{try{this.beforeLoad(),l?uf.set(this.latestLocation,l):uf.delete(this.latestLocation);const v=this.latestLocation,g=Wi(v,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...g}),this.emit({type:"onBeforeLoad",...g}),await iy({router:this,sync:s?.sync,forceStaleReload:m.href===v.href,matches:this.stores.pendingMatches.get(),location:v,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let S=null,x=null,w=null,z=null;this.batch(()=>{const E=this.stores.pendingMatches.get(),C=E.length,j=this.stores.matches.get();S=C?j.filter(X=>!this.stores.pendingMatchStores.has(X.id)):null;const Z=new Set;for(const X of this.stores.pendingMatchStores.values())X.routeId&&Z.add(X.routeId);const Q=new Set;for(const X of this.stores.matchStores.values())X.routeId&&Q.add(X.routeId);x=C?j.filter(X=>!Z.has(X.routeId)):null,w=C?E.filter(X=>!Q.has(X.routeId)):null,z=C?E.filter(X=>Q.has(X.routeId)):j,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),C&&(this.stores.setMatches(E),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...S.filter(X=>X.status!=="error"&&X.status!=="notFound"&&X.status!=="redirected")]),this.clearExpiredCache())});for(const[E,C]of[[x,"onLeave"],[w,"onEnter"],[z,"onStay"]])if(E)for(const j of E)this.looseRoutesById[j.routeId].options[C]?.(j)})})}})}catch(v){Dt(v)?(u=v,this.navigate({...u.options,replace:!0,ignoreBlocker:!0})):dt(v)&&(f=v);const g=u?u.status:f?404:this.stores.matches.get().some(S=>S.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(g),this.stores.redirect.set(u)})}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),y()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==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 l=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,l&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let u;if(typeof l=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,d=this.stores.resolvedLocation.get(),m=typeof l.types=="function"?l.types(Wi(f,d)):l.types;if(m===!1){s();return}u={update:s,types:m}}else u=s;document.startViewTransition(u)}else s()},this.updateMatch=(s,l)=>{this.startTransition(()=>{const u=this.stores.pendingMatchStores.get(s);if(u){u.set(l);return}const f=this.stores.matchStores.get(s);if(f){f.set(l);return}const d=this.stores.cachedMatchStores.get(s);if(d){const m=l(d.get());m.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(p=>p.filter(y=>y!==s)):d.set(m)}})},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 l=u=>s?.filter?.(u)??!0?{...u,invalid:!0,...s?.forcePending||u.status==="error"||u.status==="notFound"?{status:"pending",error:void 0}:void 0}:u;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(l)),this.stores.setCached(this.stores.cachedMatches.get().map(l)),this.stores.setPending(this.stores.pendingMatches.get().map(l))}),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const l=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const u=s.options._builtLocation??this.buildLocation(s.options),f=this.getParsedLocationHref(u);s.options.href=f,s.headers.set("Location",f)}else if(l)try{const u=new URL(l);if(this.origin&&u.origin===this.origin){const f=u.pathname+u.search+u.hash;s.options.href=f,s.headers.set("Location",f)}}catch{}if(s.options.href&&!s.options._builtLocation&&nu(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 l=s?.filter;l!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(u=>!l(u))):this.stores.setCached([])},this.clearExpiredCache=()=>{const s=Date.now(),l=u=>{const f=this.looseRoutesById[u.routeId];if(!f.options.loader)return!0;const d=(u.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return u.status==="error"?!0:s-u.updatedAt>=d};this.clearCache({filter:l})},this.loadRouteChunk=mr,this.preloadRoute=async s=>{const l=s._builtLocation??this.buildLocation(s);let u=this.matchRoutes(l,{throwOnError:!0,preload:!0,dest:s});const f=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),d=new Set([...f,...this.stores.cachedIds.get()]),m=u.filter(p=>!d.has(p.id));if(m.length){const p=this.stores.cachedMatches.get();this.stores.setCached([...p,...m])}try{return u=await iy({router:this,matches:u,location:l,preload:!0,updateMatch:(p,y)=>{f.has(p)?u=u.map(v=>v.id===p?y(v):v):this.updateMatch(p,y)}}),u}catch(p){if(Dt(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:l});dt(p)||console.error(p);return}},this.matchRoute=(s,l)=>{const u={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},f=this.buildLocation(u);if(l?.pending&&this.stores.status.get()!=="pending")return!1;const d=(l?.pending===void 0?!this.stores.isLoading.get():l.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),m=OS(f.pathname,l?.caseSensitive??!1,l?.fuzzy??!1,d.pathname,this.processedTree);return!m||s.params&&!Et(m.rawParams,s.params,{partial:!0})?!1:l?.includeSearch??!0?Et(d.search,f.search,{partial:!0})?m.rawParams:!1:m.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(s=>s.status==="notFound"||s.globalNotFound),this.getStoreConfig=a,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??qS,parseSearch:n.parseSearch??kS,protocolAllowlist:n.protocolAllowlist??bS}),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:n,routesByPath:a,processedTree:s}){this.routesById=n,this.routesByPath=a,this.processedTree=s;const l=this.options.notFoundRoute;l&&(l.init({originalIndex:99999999999}),this.routesById[l.id]=l)}getRouteBranch(n){let a=this.routeBranchCache.get(n);return a||(a=hg(n),this.routeBranchCache.set(n,a)),a}get looseRoutesById(){return this.routesById}getParentContext(n){return n?.id?n.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(n,a){const s=this.getMatchedRoutes(n.pathname),{foundRoute:l,routeParams:u}=s;let{matchedRoutes:f}=s,d=!1;(l?l.path!=="/"&&u["**"]:Hn(n.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const m=d?o_(this.options.notFoundMode,f):void 0,p=new Array(f.length),y=new Map;for(const v of this.stores.matchStores.values())v.routeId&&y.set(v.routeId,v.get());for(let v=0;v<f.length;v++){const g=f[v],S=p[v-1];let x,w,z;{const oe=S?.search??n.search,ot=S?._strictSearch??void 0;try{const Ge=$l(g.options.validateSearch,{...oe})??void 0;x={...oe,...Ge},w={...ot,...Ge},z=void 0}catch(Ge){let Je=Ge;if(Ge instanceof su||(Je=new su(Ge.message,{cause:Ge})),a?.throwOnError)throw Je;x=oe,w={},z=Je}}const E=g.options.loaderDeps?.({search:x})??"",C=E?JSON.stringify(E):"",{interpolatedPath:j,usedParams:Z}=Wp({path:g.fullPath,params:u,decoder:this.pathParamsDecoder,server:this.isServer}),Q=g.id+j+C,X=this.getMatch(Q),J=y.get(g.id),k=X?._strictParams??Z;let G;if(!X)try{oy(g,k)}catch(oe){if(dt(oe)||Dt(oe)?G=oe:G=new i_(oe.message,{cause:oe}),a?.throwOnError)throw G}Object.assign(u,k);const $=J?"stay":"enter";let de;if(X)de={...X,cause:$,params:J?.params??u,_strictParams:k,search:Pa(J?J.search:X.search,x),_strictSearch:w};else{const oe=g.options.loader||g.options.beforeLoad||g.lazyFn||_g(g)?"pending":"success";de={id:Q,ssr:g.options.ssr,index:v,routeId:g.id,params:J?.params??u,_strictParams:k,pathname:j,updatedAt:Date.now(),search:J?Pa(J.search,x):x,_strictSearch:w,searchError:void 0,status:oe,isFetching:!1,error:void 0,paramsError:G,__routeContext:void 0,_nonReactive:{loadPromise:ti()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:$,loaderDeps:J?Ja(J.loaderDeps,E):E,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:g.options.staticData||{},fullPath:g.fullPath}}a?.preload||(de.globalNotFound=m===g.id),de.searchError=z;const ce=this.getParentContext(S);de.context={...ce,...de.__routeContext,...de.__beforeLoadContext},p[v]=de}for(let v=0;v<p.length;v++){const g=p[v],S=this.looseRoutesById[g.routeId],x=this.getMatch(g.id),w=y.get(g.routeId);if(g.params=w?Pa(w.params,u):u,!x){const z=p[v-1],E=this.getParentContext(z);if(S.options.context){const C={deps:g.loaderDeps,params:g.params,context:E??{},location:n,navigate:j=>this.navigate({...j,_fromLocation:n}),buildLocation:this.buildLocation,cause:g.cause,abortController:g.abortController,preload:!!g.preload,matches:p,routeId:S.id};g.__routeContext=S.options.context(C)??void 0}g.context={...E,...g.__routeContext,...g.__beforeLoadContext}}}return p}matchRoutesLightweight(n){const{matchedRoutes:a,routeParams:s}=this.getMatchedRoutes(n.pathname),l=fr(a),u={...n.search};for(const y of a)try{Object.assign(u,$l(y.options.validateSearch,u))}catch{}const f=fr(this.stores.matchesId.get()),d=f&&this.stores.matchStores.get(f)?.get(),m=d&&d.routeId===l.id&&d.pathname===n.pathname;let p;if(m)p=d.params;else{const y=Object.assign(Object.create(null),s);for(const v of a)try{oy(v,y)}catch{}p=y}return{matchedRoutes:a,fullPath:l.fullPath,search:u,params:p}}},su=class extends Error{},i_=class extends Error{};function s_(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function $l(n,a){if(n==null)return{};if("~standard"in n){const s=n["~standard"].validate(a);if(s instanceof Promise)throw new su("Async validation not supported");if(s.issues)throw new su(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in n?n.parse(a):typeof n=="function"?n(a):{}}function r_({pathname:n,routesById:a,processedTree:s}){const l=Object.create(null),u=Hn(n);let f;const d=CS(u,s,!0);return d&&(f=d.route,Object.assign(l,d.rawParams)),{matchedRoutes:d?.branch||[a.__root__],routeParams:l,foundRoute:f}}function l_({search:n,dest:a,destRoutes:s,_includeValidateSearch:l}){return u_(s)(n,a,l??!1)}function u_(n){let a,s;const l=[];for(const f of n){const d=f.options;if("search"in d)d.search?.middlewares&&l.push(...d.search.middlewares);else if(d.preSearchFilters||d.postSearchFilters){const p=({search:y,next:v})=>{const g=v(d.preSearchFilters?d.preSearchFilters.reduce((S,x)=>x(S),y):y);return d.postSearchFilters?d.postSearchFilters.reduce((S,x)=>x(S),g):g};l.push(p)}const m=d.validateSearch;if(m){const p=({search:y,next:v,meta:g})=>{const S=v(y);if(s)try{const x=$l(m,S);if(g&&x)for(const w in x)w in S||(g.defaulted||=new Map).set(w,x[w]);return{...S,...x}}catch{}return S};l.push(p)}}const u=(f,d,m)=>{if(f>=l.length){if(!a.search)return{};if(a.search===!0)return d;const y=Fa(a.search,d);return m&&(m.explicit=y),y}const p=(y,v)=>{if(v){const g=m||{};return{search:u(f+1,y,g),meta:g}}return u(f+1,y,m)};return l[f]({search:d,next:p,meta:m})};return function(d,m,p){return a=m,s=p,u(0,d)}}function o_(n,a){if(n!=="root")for(let s=a.length-1;s>=0;s--){const l=a[s];if(l.children)return l.id}return Wa}function oy(n,a){const s=n.options.params?.parse??n.options.parseParams;if(s){const l=s(a);if(l===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(a,l)}}function c_(){try{return sessionStorage}catch{return}}const f_="tsr-scroll-restoration-v1_3",Eg=c_();function d_(){try{return JSON.parse(Eg?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function h_(){try{Eg?.setItem(f_,JSON.stringify(Xi))}catch{}}const Xi=d_(),cy="data-scroll-restoration-id",m_=n=>n.state.__TSR_key||n.href;function p_(n){const a=n.getAttribute(cy);if(a)return`[${cy}="${a}"]`;let s="",l=n,u;for(;u=l.parentNode;){let f=1,d=l;for(;d=d.previousElementSibling;)f++;const m=`${l.localName}:nth-child(${f})`;s=s?`${m} > ${s}`:m,l=u}return s}let Gl=!1;const Ki="window";function of(n){try{return typeof n=="function"?n():document.querySelector(n)}catch{}}function fy(n){const a=[];for(const s of n){if(s===Ki)continue;const l=of(s);l&&a.push(l)}return a}function y_(n,a){const s=n.options.scrollRestoration,l=n._scroll;s&&(l.restoring=!0);const u=n.options.getScrollRestorationKey||m_,f=new Map,d=(y,v,g)=>{const S=f.get(y)||{};S.scrollX=v,S.scrollY=g,f.set(y,S)},m=y=>{if(!(Gl||!l.restoring))if(y.target===document)d(Ki,scrollX,scrollY);else{const v=y.target;d(v,v.scrollLeft,v.scrollTop)}},p=y=>{if(!l.restoring)return;const v=Xi[y]||={};for(const[g,S]of f)g===Ki?v[Ki]=S:g.isConnected&&(v[p_(g)]=S)};s&&!l.restoration&&(l.restoration=!0,Gl=!1,history.scrollRestoration="manual",document.addEventListener("scroll",m,!0),n.subscribe("onBeforeLoad",y=>{y.fromLocation&&p(u(y.fromLocation)),f.clear()}),addEventListener("pagehide",()=>{p(u(n.stores.resolvedLocation.get()??n.stores.location.get())),h_()})),!l.reset&&(l.reset=!0,n.subscribe("onRendered",y=>{const v=n.options.scrollRestorationBehavior,g=n.options.scrollToTopSelectors,S=l.next;let x;if(f.clear(),S||(l.next=!0),typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))return;const w=u(y.toLocation),z=y.fromLocation&&u(y.fromLocation);if(l.restoring&&z&&z!==w){const E=Xi[z];if(E){let C=Xi[w];for(const j in E){if(j===Ki){if(S)continue}else{const Z=of(j);if(!Z||S&&g&&(x??=fy(g),x.includes(Z)))continue}C||(C=Xi[w]={}),C[j]??=E[j]}}}Gl=!0;try{const E=y.toLocation.hash,C=y.toLocation.state.__hashScrollIntoViewOptions??!0;let j=!1;if(S){const Z=uf.get(y.toLocation),Q=E&&C&&(Z==="PUSH"||Z==="REPLACE"),X=l.restoring?Xi[w]:void 0;if(X)for(const J in X){const{scrollX:k,scrollY:G}=X[J];if(J===Ki){if(Q)continue;scrollTo({top:G,left:k,behavior:v}),j=!0}else{const $=of(J);$&&($.scrollLeft=k,$.scrollTop=G)}}if(!j&&!E){const J={top:0,left:0,behavior:v};if(scrollTo(J),g){x??=fy(g);for(const k of x)k.scrollTo(J)}}}!j&&E&&C&&document.getElementById(E)?.scrollIntoView(C)}finally{Gl=!1}}))}const mn=Symbol.for("TSR_DEFERRED_PROMISE");function g_(n,a){const s=n;return s[mn]||(s[mn]={status:"pending"},s.then(l=>{s[mn].status="success",s[mn].data=l}).catch(l=>{s[mn].status="error",s[mn].error={data:n_(l),__isServerError:!0}})),s}const v_="Error preloading route! ☝️";function Tg(n,a){if(n)return typeof n=="string"?n:n[a]}function b_(n){return n?.scriptFormat??"module"}function S_(n,a,s){const l=__(a),u=Tg(s,"script")??l.crossOrigin;return{...b_(n)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:l.href,...u?{crossOrigin:u}:{}}}function __(n){return typeof n=="string"?{href:n,crossOrigin:void 0}:n}function Xl(n,a){if(a.length===0)return;if(a.length===1){n.push(a[0]);return}const s=new Set;for(const l of a){const u=JSON.stringify(l);s.has(u)||(s.add(u),n.push(l))}}function x_(n){return typeof n=="string"?{href:n,crossOrigin:void 0}:n}var Rg=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(n){if(this.init=a=>{this.originalIndex=a.originalIndex;const s=this.options,l=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),l?this._path=Wa:this.parentRoute||Nt();let u=l?Wa:s?.path;u&&u!=="/"&&(u=mg(u));const f=s?.id||u;let d=l?Wa:Jl([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);u==="__root__"&&(u="/"),d!=="__root__"&&(d=Jl(["/",d]));const m=d==="__root__"?"/":Jl([this.parentRoute.fullPath,u]);this._path=u,this._id=d,this._fullPath=m,this._to=Hn(m)},this.addChildren=a=>this._addFileChildren(a),this._addFileChildren=a=>(Array.isArray(a)&&(this.children=a),typeof a=="object"&&a!==null&&(this.children=Object.values(a)),this),this._addFileTypes=()=>this,this.updateLoader=a=>(Object.assign(this.options,a),this),this.update=a=>(Object.assign(this.options,a),this),this.lazy=a=>(this.lazyFn=a,this),this.redirect=a=>gg({from:this.fullPath,...a}),this.options=n||{},this.isRoot=!n?.getParentRoute,n?.id&&n?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},E_=class extends Rg{constructor(n){super(n)}},T_=(n=>(n[n.AggregateError=1]="AggregateError",n[n.ArrowFunction=2]="ArrowFunction",n[n.ErrorPrototypeStack=4]="ErrorPrototypeStack",n[n.ObjectAssign=8]="ObjectAssign",n[n.BigIntTypedArray=16]="BigIntTypedArray",n[n.RegExp=32]="RegExp",n))(T_||{}),kn=Symbol.asyncIterator,wg=Symbol.hasInstance,es=Symbol.isConcatSpreadable,qn=Symbol.iterator,Ag=Symbol.match,Og=Symbol.matchAll,Cg=Symbol.replace,Mg=Symbol.search,zg=Symbol.species,Dg=Symbol.split,Ng=Symbol.toPrimitive,ts=Symbol.toStringTag,Lg=Symbol.unscopables,jg={[kn]:0,[wg]:1,[es]:2,[qn]:3,[Ag]:4,[Og]:5,[Cg]:6,[Mg]:7,[zg]:8,[Dg]:9,[Ng]:10,[ts]:11,[Lg]:12},R_={0:kn,1:wg,2:es,3:qn,4:Ag,5:Og,6:Cg,7:Mg,8:zg,9:Dg,10:Ng,11:ts,12:Lg},_=void 0,w_={2:!0,3:!1,1:_,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},A_={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},O_={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Me(n,a,s,l,u,f,d,m,p,y,v,g){return{t:n,i:a,s,c:l,m:u,p:f,e:d,a:m,f:p,b:y,o:v,l:g}}function wa(n){return Me(2,_,n,_,_,_,_,_,_,_,_,_)}var Ug=wa(2),Bg=wa(3),C_=wa(1),M_=wa(0),z_=wa(4),D_=wa(5),N_=wa(6),L_=wa(7);function j_(n){switch(n){case'"':return'\\"';case"\\":return"\\\\";case`
|
|
11
|
+
`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return _}}function Aa(n){let a="",s=0,l;for(let u=0,f=n.length;u<f;u++)l=j_(n[u]),l&&(a+=n.slice(s,u)+l,s=u+1);return s===0?a=n:a+=n.slice(s),a}function U_(n){switch(n){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
|
|
12
|
+
`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return n}}function Oa(n){return n.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,U_)}var Kl="__SEROVAL_REFS__",Hg=new Map,Ji=new Map;function kg(n){return Hg.has(n)}function B_(n){return Ji.has(n)}function H_(n){if(kg(n))return Hg.get(n);throw new p1(n)}function k_(n){if(B_(n))return Ji.get(n);throw new y1(n)}typeof globalThis<"u"?Object.defineProperty(globalThis,Kl,{value:Ji,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Kl,{value:Ji,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Kl,{value:Ji,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Kl,{value:Ji,configurable:!0,writable:!1,enumerable:!1});function Af(n){return n instanceof EvalError?1:n instanceof RangeError?2:n instanceof ReferenceError?3:n instanceof SyntaxError?4:n instanceof TypeError?5:n instanceof URIError?6:0}function q_(n){let a=A_[Af(n)];return n.name!==a?{name:n.name}:n.constructor.name!==a?{name:n.constructor.name}:{}}function qg(n,a){let s=q_(n),l=Object.getOwnPropertyNames(n);for(let u=0,f=l.length,d;u<f;u++)d=l[u],d!=="name"&&d!=="message"&&(d==="stack"?a&4&&(s=s||{},s[d]=n[d]):(s=s||{},s[d]=n[d]));return s}function Zg(n){return Object.isFrozen(n)?3:Object.isSealed(n)?2:Object.isExtensible(n)?0:1}function Z_(n){switch(n){case Number.POSITIVE_INFINITY:return D_;case Number.NEGATIVE_INFINITY:return N_}return n!==n?L_:Object.is(n,-0)?z_:Me(0,_,n,_,_,_,_,_,_,_,_,_)}function Vg(n){return Me(1,_,Aa(n),_,_,_,_,_,_,_,_,_)}function V_(n){return Me(3,_,""+n,_,_,_,_,_,_,_,_,_)}function Y_(n){return Me(4,n,_,_,_,_,_,_,_,_,_,_)}function Q_(n,a){let s=a.valueOf();return Me(5,n,s!==s?"":a.toISOString(),_,_,_,_,_,_,_,_,_)}function G_(n,a){return Me(6,n,_,Aa(a.source),a.flags,_,_,_,_,_,_,_)}function X_(n,a){return Me(17,n,jg[a],_,_,_,_,_,_,_,_,_)}function K_(n,a){return Me(18,n,Aa(H_(a)),_,_,_,_,_,_,_,_,_)}function P_(n,a,s){return Me(25,n,s,Aa(a),_,_,_,_,_,_,_,_)}function F_(n,a,s){return Me(9,n,_,_,_,_,_,s,_,_,Zg(a),_)}function J_(n,a){return Me(21,n,_,_,_,_,_,_,a,_,_,_)}function I_(n,a,s){return Me(15,n,_,a.constructor.name,_,_,_,_,s,a.byteOffset,_,a.length)}function $_(n,a,s){return Me(16,n,_,a.constructor.name,_,_,_,_,s,a.byteOffset,_,a.byteLength)}function W_(n,a,s){return Me(20,n,_,_,_,_,_,_,s,a.byteOffset,_,a.byteLength)}function e1(n,a,s){return Me(13,n,Af(a),_,Aa(a.message),s,_,_,_,_,_,_)}function t1(n,a,s){return Me(14,n,Af(a),_,Aa(a.message),s,_,_,_,_,_,_)}function n1(n,a){return Me(7,n,_,_,_,_,_,a,_,_,_,_)}function a1(n,a){return Me(28,_,_,_,_,_,_,[n,a],_,_,_,_)}function i1(n,a){return Me(30,_,_,_,_,_,_,[n,a],_,_,_,_)}function s1(n,a,s){return Me(31,n,_,_,_,_,_,s,a,_,_,_)}function r1(n,a){return Me(32,n,_,_,_,_,_,_,a,_,_,_)}function l1(n,a){return Me(33,n,_,_,_,_,_,_,a,_,_,_)}function u1(n,a){return Me(34,n,_,_,_,_,_,_,a,_,_,_)}function o1(n,a,s,l){return Me(35,n,s,_,_,_,_,a,_,_,_,l)}var c1={parsing:1,serialization:2,deserialization:3};function f1(n){return`Seroval Error (step: ${c1[n]})`}var d1=(n,a)=>f1(n),Yg=class extends Error{constructor(n,a){super(d1(n)),this.cause=a}},dy=class extends Yg{constructor(n){super("parsing",n)}},h1=class extends Yg{constructor(n){super("deserialization",n)}};function Vn(n){return`Seroval Error (specific: ${n})`}var gu=class extends Error{constructor(a){super(Vn(1)),this.value=a}},Qg=class extends Error{constructor(n){super(Vn(2))}},m1=class extends Error{constructor(n){super(Vn(3))}},xr=class extends Error{constructor(n){super(Vn(4))}},p1=class extends Error{constructor(n){super(Vn(5)),this.value=n}},y1=class extends Error{constructor(n){super(Vn(6))}},g1=class extends Error{constructor(n){super(Vn(7))}},Yn=class extends Error{constructor(n){super(Vn(8))}},v1=class extends Error{constructor(n){super(Vn(9))}},b1=class{constructor(n,a){this.value=n,this.replacement=a}},vu=()=>{let n={p:0,s:0,f:0};return n.p=new Promise((a,s)=>{n.s=a,n.f=s}),n},S1=(n,a)=>{n.s(a),n.p.s=1,n.p.v=a},_1=(n,a)=>{n.f(a),n.p.s=2,n.p.v=a};vu.toString();S1.toString();_1.toString();var x1=()=>{let n=[],a=[],s=!0,l=!1,u=0,f=(p,y,v)=>{for(v=0;v<u;v++)a[v]&&a[v][y](p)},d=(p,y,v,g)=>{for(y=0,v=n.length;y<v;y++)g=n[y],!s&&y===v-1?p[l?"return":"throw"](g):p.next(g)},m=(p,y)=>(s&&(y=u++,a[y]=p),d(p),()=>{s&&(a[y]=a[u],a[u--]=void 0)});return{__SEROVAL_STREAM__:!0,on:p=>m(p),next:p=>{s&&(n.push(p),f(p,"next"))},throw:p=>{s&&(n.push(p),f(p,"throw"),s=!1,l=!1,a.length=0)},return:p=>{s&&(n.push(p),f(p,"return"),s=!1,l=!0,a.length=0)}}},E1=n=>a=>()=>{let s=0,l={[n]:()=>l,next:()=>{if(s>a.d)return{done:!0,value:void 0};let u=s++,f=a.v[u];if(u===a.t)throw f;return{done:u===a.d,value:f}}};return l},T1=(n,a)=>s=>()=>{let l=0,u=-1,f=!1,d=[],m=[],p=(v=0,g=m.length)=>{for(;v<g;v++)m[v].s({done:!0,value:void 0})};s.on({next:v=>{let g=m.shift();g&&g.s({done:!1,value:v}),d.push(v)},throw:v=>{let g=m.shift();g&&g.f(v),p(),u=d.length,f=!0,d.push(v)},return:v=>{let g=m.shift();g&&g.s({done:!0,value:v}),p(),u=d.length,d.push(v)}});let y={[n]:()=>y,next:()=>{if(u===-1){let S=l++;if(S>=d.length){let x=a();return m.push(x),x.p}return{done:!1,value:d[S]}}if(l>u)return{done:!0,value:void 0};let v=l++,g=d[v];if(v!==u)return{done:!1,value:g};if(f)throw g;return{done:!0,value:g}}};return y},Gg=n=>{let a=atob(n),s=a.length,l=new Uint8Array(s);for(let u=0;u<s;u++)l[u]=a.charCodeAt(u);return l.buffer};Gg.toString();function R1(n){return"__SEROVAL_SEQUENCE__"in n}function Xg(n,a,s){return{__SEROVAL_SEQUENCE__:!0,v:n,t:a,d:s}}function w1(n){let a=[],s=-1,l=-1,u=n[qn]();for(;;)try{let f=u.next();if(a.push(f.value),f.done){l=a.length-1;break}}catch(f){s=a.length,a.push(f)}return Xg(a,s,l)}var A1=E1(qn);function O1(n){return A1(n)}var C1={},M1={},z1={0:{},1:{},2:{},3:{},4:{},5:{}};function D1(n){return"__SEROVAL_STREAM__"in n}function ai(){return x1()}function N1(n){let a=ai(),s=n[kn]();async function l(){try{let u=await s.next();u.done?a.return(u.value):(a.next(u.value),await l())}catch(u){a.throw(u)}}return l().catch(()=>{}),a}var L1=T1(kn,vu);function j1(n){return L1(n)}async function U1(n){try{return[1,await n]}catch(a){return[0,a]}}function B1(n,a){return{plugins:a.plugins,mode:n,marked:new Set,features:63^(a.disabledFeatures||0),refs:a.refs||new Map,depthLimit:a.depthLimit||1e3}}function Wl(n,a){n.marked.add(a)}function H1(n,a){let s=n.refs.size;return n.refs.set(a,s),s}function bu(n,a){let s=n.refs.get(a);return s!=null?(Wl(n,s),{type:1,value:Y_(s)}):{type:0,value:H1(n,a)}}function Of(n,a){let s=bu(n,a);return s.type===1?s:kg(a)?{type:2,value:K_(s.value,a)}:s}function $a(n,a){let s=Of(n,a);if(s.type!==0)return s.value;if(a in jg)return X_(s.value,a);throw new gu(a)}function Su(n,a){let s=bu(n,z1[a]);return s.type===1?s.value:Me(26,s.value,a,_,_,_,_,_,_,_,_,_)}function k1(n){let a=bu(n,C1);return a.type===1?a.value:Me(27,a.value,_,_,_,_,_,_,$a(n,qn),_,_,_)}function q1(n){let a=bu(n,M1);return a.type===1?a.value:Me(29,a.value,_,_,_,_,_,[Su(n,1),$a(n,kn)],_,_,_,_)}function Z1(n,a,s,l){return Me(s?11:10,n,_,_,_,l,_,_,_,_,Zg(a),_)}function V1(n,a,s,l){return Me(8,a,_,_,_,_,{k:s,v:l},_,Su(n,0),_,_,_)}function Y1(n,a,s){let l=new Uint8Array(s),u="";for(let f=0,d=l.length;f<d;f++)u+=String.fromCharCode(l[f]);return Me(19,a,Aa(btoa(u)),_,_,_,_,_,Su(n,5),_,_,_)}function Q1(n,a){return{base:B1(n,a),child:void 0}}var G1=class{constructor(n,a){this._p=n,this.depth=a}parse(n){return lt(this._p,this.depth,n)}};async function X1(n,a,s){let l=[];for(let u=0,f=s.length;u<f;u++)u in s?l[u]=await lt(n,a,s[u]):l[u]=0;return l}async function K1(n,a,s,l){return F_(s,l,await X1(n,a,l))}async function Cf(n,a,s){let l=Object.entries(s),u=[],f=[];for(let d=0,m=l.length;d<m;d++)u.push(Aa(l[d][0])),f.push(await lt(n,a,l[d][1]));return qn in s&&(u.push($a(n.base,qn)),f.push(a1(k1(n.base),await lt(n,a,w1(s))))),kn in s&&(u.push($a(n.base,kn)),f.push(i1(q1(n.base),await lt(n,a,N1(s))))),ts in s&&(u.push($a(n.base,ts)),f.push(Vg(s[ts]))),es in s&&(u.push($a(n.base,es)),f.push(s[es]?Ug:Bg)),{k:u,v:f}}async function Fc(n,a,s,l,u){return Z1(s,l,u,await Cf(n,a,l))}async function P1(n,a,s,l){return J_(s,await lt(n,a,l.valueOf()))}async function F1(n,a,s,l){return I_(s,l,await lt(n,a,l.buffer))}async function J1(n,a,s,l){return $_(s,l,await lt(n,a,l.buffer))}async function I1(n,a,s,l){return W_(s,l,await lt(n,a,l.buffer))}async function hy(n,a,s,l){let u=qg(l,n.base.features);return e1(s,l,u?await Cf(n,a,u):_)}async function $1(n,a,s,l){let u=qg(l,n.base.features);return t1(s,l,u?await Cf(n,a,u):_)}async function W1(n,a,s,l){let u=[],f=[];for(let[d,m]of l.entries())u.push(await lt(n,a,d)),f.push(await lt(n,a,m));return V1(n.base,s,u,f)}async function ex(n,a,s,l){let u=[];for(let f of l.keys())u.push(await lt(n,a,f));return n1(s,u)}async function Kg(n,a,s,l){let u=n.base.plugins;if(u)for(let f=0,d=u.length;f<d;f++){let m=u[f];if(m.parse.async&&m.test(l))return P_(s,m.tag,await m.parse.async(l,new G1(n,a),{id:s}))}return _}async function tx(n,a,s,l){let[u,f]=await U1(l);return Me(12,s,u,_,_,_,_,_,await lt(n,a,f),_,_,_)}function nx(n,a,s,l,u){let f=[],d=s.on({next:m=>{Wl(this.base,a),lt(this,n,m).then(p=>{f.push(r1(a,p))},p=>{u(p),d()})},throw:m=>{Wl(this.base,a),lt(this,n,m).then(p=>{f.push(l1(a,p)),l(f),d()},p=>{u(p),d()})},return:m=>{Wl(this.base,a),lt(this,n,m).then(p=>{f.push(u1(a,p)),l(f),d()},p=>{u(p),d()})}})}async function ax(n,a,s,l){return s1(s,Su(n.base,4),await new Promise(nx.bind(n,a,s,l)))}async function ix(n,a,s,l){let u=[];for(let f=0,d=l.v.length;f<d;f++)u[f]=await lt(n,a,l.v[f]);return o1(s,u,l.t,l.d)}async function sx(n,a,s,l){if(Array.isArray(l))return K1(n,a,s,l);if(D1(l))return ax(n,a,s,l);if(R1(l))return ix(n,a,s,l);let u=l.constructor;if(u===b1)return lt(n,a,l.replacement);let f=await Kg(n,a,s,l);if(f)return f;switch(u){case Object:return Fc(n,a,s,l,!1);case _:return Fc(n,a,s,l,!0);case Date:return Q_(s,l);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return hy(n,a,s,l);case Number:case Boolean:case String:case BigInt:return P1(n,a,s,l);case ArrayBuffer:return Y1(n.base,s,l);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return F1(n,a,s,l);case DataView:return I1(n,a,s,l);case Map:return W1(n,a,s,l);case Set:return ex(n,a,s,l)}if(u===Promise||l instanceof Promise)return tx(n,a,s,l);let d=n.base.features;if(d&32&&u===RegExp)return G_(s,l);if(d&16)switch(u){case BigInt64Array:case BigUint64Array:return J1(n,a,s,l)}if(d&1&&typeof AggregateError<"u"&&(u===AggregateError||l instanceof AggregateError))return $1(n,a,s,l);if(l instanceof Error)return hy(n,a,s,l);if(qn in l||kn in l)return Fc(n,a,s,l,!!u);throw new gu(l)}async function rx(n,a,s){let l=Of(n.base,s);if(l.type!==0)return l.value;let u=await Kg(n,a,l.value,s);if(u)return u;throw new gu(s)}async function lt(n,a,s){switch(typeof s){case"boolean":return s?Ug:Bg;case"undefined":return C_;case"string":return Vg(s);case"number":return Z_(s);case"bigint":return V_(s);case"object":{if(s){let l=Of(n.base,s);return l.type===0?await sx(n,a+1,l.value,s):l.value}return M_}case"symbol":return $a(n.base,s);case"function":return rx(n,a,s);default:throw new gu(s)}}async function lx(n,a){try{return await lt(n,0,a)}catch(s){throw s instanceof dy?s:new dy(s)}}var ux=(n=>(n[n.Vanilla=1]="Vanilla",n[n.Cross=2]="Cross",n))(ux||{});function Pg(n,a){for(let s=0,l=a.length;s<l;s++){let u=a[s];n.has(u)||(n.add(u),u.extends&&Pg(n,u.extends))}}function Fg(n){if(n){let a=new Set;return Pg(a,n),[...a]}}function ox(n){switch(n){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new g1(n)}}var cx=1e6,fx=1e4,dx=2e4;function Jg(n,a){switch(a){case 3:return Object.freeze(n);case 1:return Object.preventExtensions(n);case 2:return Object.seal(n);default:return n}}var hx=1e3;function mx(n,a){var s;let l=a.refs||new Map;return"types"in l||Object.assign(l,{types:new Map}),{mode:n,plugins:a.plugins,refs:l,features:(s=a.features)!=null?s:63^(a.disabledFeatures||0),depthLimit:a.depthLimit||hx}}function px(n){return{mode:2,base:mx(2,n),child:_}}var yx=class{constructor(n,a){this._p=n,this.depth=a}deserialize(n){return Ze(this._p,this.depth,n)}};function Ig(n,a){if(a<0||!Number.isFinite(a)||!Number.isInteger(a))throw new Yn({t:4,i:a});if(n.refs.has(a))throw new Error("Conflicted ref id: "+a)}function gx(n,a,s){return Ig(n.base,a),n.state.marked.has(a)&&n.base.refs.set(a,s),s}function vx(n,a,s){return Ig(n.base,a),n.base.refs.set(a,s),s}function ut(n,a,s){return n.mode===1?gx(n,a,s):vx(n,a,s)}function cf(n,a,s){if(Object.hasOwn(a,s))return a[s];throw new Yn(n)}function bx(n,a){return ut(n,a.i,k_(Oa(a.s)))}function Sx(n,a,s){let l=s.a,u=l.length,f=ut(n,s.i,new Array(u));for(let d=0,m;d<u;d++)m=l[d],m&&(f[d]=Ze(n,a,m));return Jg(f,s.o),f}function _x(n){switch(n){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function xx(n){switch(n){case kn:case es:case ts:case qn:return!0;default:return!1}}function my(n,a,s){_x(a)?n[a]=s:Object.defineProperty(n,a,{value:s,configurable:!0,enumerable:!0,writable:!0})}function Ex(n,a,s,l,u){if(typeof l=="string")my(s,Oa(l),Ze(n,a,u));else{let f=Ze(n,a,l);switch(typeof f){case"string":my(s,f,Ze(n,a,u));break;case"symbol":xx(f)&&(s[f]=Ze(n,a,u));break;default:throw new Yn(l)}}}function $g(n,a,s){n.base.refs.types.set(a,s)}function Er(n,a,s,l){if(n.base.refs.types.get(s)!==l)throw new Yn(a)}function Wg(n,a,s,l){let u=s.k;if(u.length>0)for(let f=0,d=s.v,m=u.length;f<m;f++)Ex(n,a,l,u[f],d[f]);return l}function Tx(n,a,s){let l=ut(n,s.i,s.t===10?{}:Object.create(null));return Wg(n,a,s.p,l),Jg(l,s.o),l}function Rx(n,a){return ut(n,a.i,new Date(a.s))}function wx(n,a){if(n.base.features&32){let s=Oa(a.c);if(s.length>dx)throw new Yn(a);return ut(n,a.i,new RegExp(s,a.m))}throw new Qg(a)}function Ax(n,a,s){let l=ut(n,s.i,new Set);for(let u=0,f=s.a,d=f.length;u<d;u++)l.add(Ze(n,a,f[u]));return l}function Ox(n,a,s){let l=ut(n,s.i,new Map);for(let u=0,f=s.e.k,d=s.e.v,m=f.length;u<m;u++)l.set(Ze(n,a,f[u]),Ze(n,a,d[u]));return l}function Cx(n,a){if(a.s.length>cx)throw new Yn(a);return ut(n,a.i,Gg(Oa(a.s)))}function Mx(n,a,s){var l;let u=ox(s.c),f=Ze(n,a,s.f),d=(l=s.b)!=null?l:0;if(d<0||d>f.byteLength)throw new Yn(s);return ut(n,s.i,new u(f,d,s.l))}function zx(n,a,s){var l;let u=Ze(n,a,s.f),f=(l=s.b)!=null?l:0;if(f<0||f>u.byteLength)throw new Yn(s);return ut(n,s.i,new DataView(u,f,s.l))}function ev(n,a,s,l){if(s.p){let u=Wg(n,a,s.p,{});Object.defineProperties(l,Object.getOwnPropertyDescriptors(u))}return l}function Dx(n,a,s){let l=ut(n,s.i,new AggregateError([],Oa(s.m)));return ev(n,a,s,l)}function Nx(n,a,s){let l=cf(s,O_,s.s),u=ut(n,s.i,new l(Oa(s.m)));return ev(n,a,s,u)}function Lx(n,a,s){let l=vu(),u=ut(n,s.i,l.p),f=Ze(n,a,s.f);return s.s?l.s(f):l.f(f),u}function jx(n,a,s){return ut(n,s.i,Object(Ze(n,a,s.f)))}function Ux(n,a,s){let l=n.base.plugins;if(l){let u=Oa(s.c);for(let f=0,d=l.length;f<d;f++){let m=l[f];if(m.tag===u)return ut(n,s.i,m.deserialize(s.s,new yx(n,a),{id:s.i}))}}throw new m1(s.c)}function Bx(n,a){let s=ut(n,a.i,ut(n,a.s,vu()).p);return $g(n,a.s,22),s}function Hx(n,a,s){let l=n.base.refs.get(s.i);if(l)return Er(n,s,s.i,22),l.s(Ze(n,a,s.a[1])),_;throw new xr("Promise")}function kx(n,a,s){let l=n.base.refs.get(s.i);if(l)return Er(n,s,s.i,22),l.f(Ze(n,a,s.a[1])),_;throw new xr("Promise")}function qx(n,a,s){Ze(n,a,s.a[0]);let l=Ze(n,a,s.a[1]);return O1(l)}function Zx(n,a,s){Ze(n,a,s.a[0]);let l=Ze(n,a,s.a[1]);return j1(l)}function Vx(n,a,s){let l=ut(n,s.i,ai());$g(n,s.i,31);let u=s.a,f=u.length;if(f)for(let d=0;d<f;d++)Ze(n,a,u[d]);return l}function Yx(n,a,s){let l=n.base.refs.get(s.i);if(l)return Er(n,s,s.i,31),l.next(Ze(n,a,s.f)),_;throw new xr("Stream")}function Qx(n,a,s){let l=n.base.refs.get(s.i);if(l)return Er(n,s,s.i,31),l.throw(Ze(n,a,s.f)),_;throw new xr("Stream")}function Gx(n,a,s){let l=n.base.refs.get(s.i);if(l)return Er(n,s,s.i,31),l.return(Ze(n,a,s.f)),_;throw new xr("Stream")}function Xx(n,a,s){return Ze(n,a,s.f),_}function Kx(n,a,s){return Ze(n,a,s.a[1]),_}function Px(n,a,s){let l=ut(n,s.i,Xg([],s.s,s.l));for(let u=0,f=s.a.length;u<f;u++)l.v[u]=Ze(n,a,s.a[u]);return l}function Ze(n,a,s){if(a>n.base.depthLimit)throw new v1(n.base.depthLimit);switch(a+=1,s.t){case 2:return cf(s,w_,s.s);case 0:return Number(s.s);case 1:return Oa(String(s.s));case 3:if(String(s.s).length>fx)throw new Yn(s);return BigInt(s.s);case 4:return n.base.refs.get(s.i);case 18:return bx(n,s);case 9:return Sx(n,a,s);case 10:case 11:return Tx(n,a,s);case 5:return Rx(n,s);case 6:return wx(n,s);case 7:return Ax(n,a,s);case 8:return Ox(n,a,s);case 19:return Cx(n,s);case 16:case 15:return Mx(n,a,s);case 20:return zx(n,a,s);case 14:return Dx(n,a,s);case 13:return Nx(n,a,s);case 12:return Lx(n,a,s);case 17:return cf(s,R_,s.s);case 21:return jx(n,a,s);case 25:return Ux(n,a,s);case 22:return Bx(n,s);case 23:return Hx(n,a,s);case 24:return kx(n,a,s);case 28:return qx(n,a,s);case 30:return Zx(n,a,s);case 31:return Vx(n,a,s);case 32:return Yx(n,a,s);case 33:return Qx(n,a,s);case 34:return Gx(n,a,s);case 27:return Xx(n,a,s);case 29:return Kx(n,a,s);case 35:return Px(n,a,s);default:throw new Qg(s)}}function Fx(n,a){try{return Ze(n,0,a)}catch(s){throw new h1(s)}}var Jx=()=>T;Jx.toString();function py(n,a){let s=Fg(a.plugins),l=px({plugins:s,refs:a.refs,features:a.features,disabledFeatures:a.disabledFeatures,depthLimit:a.depthLimit});return Fx(l,n)}async function Ix(n,a={}){let s=Fg(a.plugins),l=Q1(1,{plugins:s,disabledFeatures:a.disabledFeatures});return{t:await lx(l,n),f:l.base.features,m:Array.from(l.base.marked)}}function $x(n){return{tag:"$TSR/t/"+n.key,test:n.test,parse:{sync(a,s,l){return{v:s.parse(n.toSerializable(a))}},async async(a,s,l){return{v:await s.parse(n.toSerializable(a))}},stream(a,s,l){return{v:s.parse(n.toSerializable(a))}}},serialize:void 0,deserialize(a,s,l){return n.fromSerializable(s.deserialize(a.v))}}}var Wx=class{constructor(n,a){this.stream=n,this.hint=a?.hint??"binary"}};const ru=globalThis.Buffer,tv=!!ru&&typeof ru.from=="function";function nv(n){if(n.length===0)return"";if(tv)return ru.from(n).toString("base64");const a=32768,s=[];for(let l=0;l<n.length;l+=a){const u=n.subarray(l,l+a);s.push(String.fromCharCode.apply(null,u))}return btoa(s.join(""))}function av(n){if(n.length===0)return new Uint8Array(0);if(tv){const l=ru.from(n,"base64");return new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}const a=atob(n),s=new Uint8Array(a.length);for(let l=0;l<a.length;l++)s[l]=a.charCodeAt(l);return s}const rr=Object.create(null),lr=Object.create(null),eE=n=>new ReadableStream({start(a){n.on({next(s){try{a.enqueue(av(s))}catch{}},throw(s){a.error(s)},return(){try{a.close()}catch{}}})}}),tE=new TextEncoder,nE=n=>new ReadableStream({start(a){n.on({next(s){try{typeof s=="string"?a.enqueue(tE.encode(s)):a.enqueue(av(s.$b64))}catch{}},throw(s){a.error(s)},return(){try{a.close()}catch{}}})}}),aE="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",iE="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function yy(n){const a=ai(),s=n.getReader();return(async()=>{try{for(;;){const{done:l,value:u}=await s.read();if(l){a.return(void 0);break}a.next(nv(u))}}catch(l){a.throw(l)}finally{s.releaseLock()}})(),a}function gy(n){const a=ai(),s=n.getReader(),l=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:u,value:f}=await s.read();if(u){try{const d=l.decode();d.length>0&&a.next(d)}catch{}a.return(void 0);break}try{const d=l.decode(f,{stream:!0});d.length>0&&a.next(d)}catch{a.next({$b64:nv(f)})}}}catch(u){a.throw(u)}finally{s.releaseLock()}})(),a}const sE={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(n){return n===rr},parse:{sync(n,a,s){return{}},async async(n,a,s){return{}},stream(n,a,s){return{}}},serialize(n,a,s){return aE},deserialize(n,a,s){return rr}},{tag:"tss/RawStreamFactoryText",test(n){return n===lr},parse:{sync(n,a,s){return{}},async async(n,a,s){return{}},stream(n,a,s){return{}}},serialize(n,a,s){return iE},deserialize(n,a,s){return lr}}],test(n){return n instanceof Wx},parse:{sync(n,a,s){const l=n.hint==="text"?lr:rr;return{hint:a.parse(n.hint),factory:a.parse(l),stream:a.parse(ai())}},async async(n,a,s){const l=n.hint==="text"?lr:rr,u=n.hint==="text"?gy(n.stream):yy(n.stream);return{hint:await a.parse(n.hint),factory:await a.parse(l),stream:await a.parse(u)}},stream(n,a,s){const l=n.hint==="text"?lr:rr,u=n.hint==="text"?gy(n.stream):yy(n.stream);return{hint:a.parse(n.hint),factory:a.parse(l),stream:a.parse(u)}}},serialize(n,a,s){return"("+a.serialize(n.factory)+")("+a.serialize(n.stream)+")"},deserialize(n,a,s){const l=a.deserialize(n.stream);return a.deserialize(n.hint)==="text"?nE(l):eE(l)}};function rE(n){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(a,s,l){return n(typeof s?.deserialize=="function"?s.deserialize(a.streamId):a.streamId)}}}const lE={tag:"$TSR/Error",test(n){return n instanceof Error},parse:{sync(n,a){return{message:a.parse(n.message)}},async async(n,a){return{message:await a.parse(n.message)}},stream(n,a){return{message:a.parse(n.message)}}},serialize(n,a){return"new Error("+a.serialize(n.message)+")"},deserialize(n,a){return new Error(a.deserialize(n.message))}};var va={},iv=n=>new ReadableStream({start:a=>{n.on({next:s=>{try{a.enqueue(s)}catch{}},throw:s=>{a.error(s)},return:()=>{try{a.close()}catch{}}})}}),uE={tag:"seroval-plugins/web/ReadableStreamFactory",test(n){return n===va},parse:{sync(){return va},async async(){return await Promise.resolve(va)},stream(){return va}},serialize(){return iv.toString()},deserialize(){return va}};function vy(n){let a=ai(),s=n.getReader();async function l(){try{let u=await s.read();u.done?a.return(u.value):(a.next(u.value),await l())}catch(u){a.throw(u)}}return l().catch(()=>{}),a}var oE={tag:"seroval/plugins/web/ReadableStream",extends:[uE],test(n){return typeof ReadableStream>"u"?!1:n instanceof ReadableStream},parse:{sync(n,a){return{factory:a.parse(va),stream:a.parse(ai())}},async async(n,a){return{factory:await a.parse(va),stream:await a.parse(vy(n))}},stream(n,a){return{factory:a.parse(va),stream:a.parse(vy(n))}}},serialize(n,a){return"("+a.serialize(n.factory)+")("+a.serialize(n.stream)+")"},deserialize(n,a){let s=a.deserialize(n.stream);return iv(s)}},cE=oE;const fE=[lE,sE,cE];function dE(){return[...rg()?.serializationAdapters?.map($x)??[],...fE]}var by=new TextDecoder,hE=new Uint8Array(0),Sy=16*1024*1024,_y=32*1024*1024,xy=1024,Ey=1e5;function mE(n){const a=new Map,s=new Map,l=new Set;let u=!1,f=null,d=0,m;const p=new ReadableStream({start(g){m=g},cancel(){u=!0;try{f?.cancel()}catch{}a.forEach(g=>{try{g.error(new Error("Framed response cancelled"))}catch{}}),a.clear(),s.clear(),l.clear()}});function y(g){const S=s.get(g);if(S)return S;if(l.has(g))return new ReadableStream({start(w){w.close()}});if(s.size>=xy)throw new Error(`Too many raw streams in framed response (max ${xy})`);const x=new ReadableStream({start(w){a.set(g,w)},cancel(){l.add(g),a.delete(g),s.delete(g)}});return s.set(g,x),x}function v(g){return y(g),a.get(g)}return(async()=>{const g=n.getReader();f=g;const S=[];let x=0;function w(){if(x<9)return null;const E=S[0];if(E.length>=9)return{type:E[0],streamId:(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,length:(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0};const C=new Uint8Array(9);let j=0,Z=9;for(let Q=0;Q<S.length&&Z>0;Q++){const X=S[Q],J=Math.min(X.length,Z);C.set(X.subarray(0,J),j),j+=J,Z-=J}return{type:C[0],streamId:(C[1]<<24|C[2]<<16|C[3]<<8|C[4])>>>0,length:(C[5]<<24|C[6]<<16|C[7]<<8|C[8])>>>0}}function z(E){if(E===0)return hE;const C=new Uint8Array(E);let j=0,Z=E;for(;Z>0&&S.length>0;){const Q=S[0];if(!Q)break;const X=Math.min(Q.length,Z);C.set(Q.subarray(0,X),j),j+=X,Z-=X,X===Q.length?S.shift():S[0]=Q.subarray(X)}return x-=E,C}try{for(;;){const{done:E,value:C}=await g.read();if(u||E)break;if(C){if(x+C.length>_y)throw new Error(`Framed response buffer exceeded ${_y} bytes`);for(S.push(C),x+=C.length;;){const j=w();if(!j)break;const{type:Z,streamId:Q,length:X}=j;if(Z!==Bn.JSON&&Z!==Bn.CHUNK&&Z!==Bn.END&&Z!==Bn.ERROR)throw new Error(`Unknown frame type: ${Z}`);if(Z===Bn.JSON){if(Q!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(Q===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(X>Sy)throw new Error(`Frame payload too large: ${X} bytes (max ${Sy})`);const J=9+X;if(x<J)break;if(++d>Ey)throw new Error(`Too many frames in framed response (max ${Ey})`);z(9);const k=z(X);switch(Z){case Bn.JSON:try{m.enqueue(by.decode(k))}catch{}break;case Bn.CHUNK:{const G=v(Q);G&&G.enqueue(k);break}case Bn.END:{const G=v(Q);if(l.add(Q),G){try{G.close()}catch{}a.delete(Q)}break}case Bn.ERROR:{const G=v(Q);if(l.add(Q),G){const $=by.decode(k);G.error(new Error($)),a.delete(Q)}break}}}}}if(x!==0)throw new Error("Incomplete frame at end of framed response");try{m.close()}catch{}a.forEach(E=>{try{E.close()}catch{}}),a.clear()}catch(E){try{m.error(E)}catch{}a.forEach(C=>{try{C.error(E)}catch{}}),a.clear()}finally{try{g.releaseLock()}catch{}f=null}})(),{getOrCreateStream:y,jsonChunks:p}}var pr=null;async function ff(n){n.length>0&&await Promise.allSettled(n)}var pE=Object.prototype.hasOwnProperty;function sv(n){for(const a in n)if(pE.call(n,a))return!0;return!1}async function yE(n,a,s){pr||(pr=dE());const l=a[0],u=l.fetch??s,f=l.data instanceof FormData?"formData":"payload",d=l.headers?new Headers(l.headers):new Headers;if(d.set("x-tsr-serverFn","true"),f==="payload"&&d.set("accept",`${fS}, application/x-ndjson, application/json`),l.method==="GET"){if(f==="formData")throw new Error("FormData is not supported with GET requests");const p=await rv(l);if(p!==void 0){const y=yg({payload:p});n.includes("?")?n+=`&${y}`:n+=`?${y}`}}let m;if(l.method==="POST"){const p=await gE(l);p?.contentType&&d.set("content-type",p.contentType),m=p?.body}return await vE(async()=>u(n,{method:l.method,headers:d,signal:l.signal,body:m}))}async function rv(n){let a=!1;const s={};if(n.data!==void 0&&(a=!0,s.data=n.data),n.context&&sv(n.context)&&(a=!0,s.context=n.context),a)return lv(s)}async function lv(n){return JSON.stringify(await Promise.resolve(Ix(n,{plugins:pr})))}async function gE(n){if(n.data instanceof FormData){let s;return n.context&&sv(n.context)&&(s=await lv(n.context)),s!==void 0&&n.data.set(cS,s),{body:n.data}}const a=await rv(n);if(a)return{body:a,contentType:"application/json"}}async function vE(n){let a;try{a=await n()}catch(l){if(l instanceof Response)a=l;else throw console.log(l),l}if(a.headers.get("x-tss-raw")==="true")return a;const s=a.headers.get("content-type");if(s||Nt(),a.headers.get("x-tss-serialized")){let l;if(s.includes("application/x-tss-framed")){if(mS(s),!a.body)throw new Error("No response body for framed response");const{getOrCreateStream:u,jsonChunks:f}=mE(a.body),d=[rE(u),...pr||[]],m=new Map;l=await bE({jsonStream:f,onMessage:p=>py(p,{refs:m,plugins:d}),onError(p,y){console.error(p,y)}})}else if(s.includes("application/json")){const u=await a.json(),f=[];l=py(u,{plugins:pr}),await ff(f)}if(l||Nt(),l instanceof Error)throw l;return l}if(s.includes("application/json")){const l=await a.json(),u=YS(l);if(u)throw u;if(dt(l))throw l;return l}if(!a.ok)throw new Error(await a.text());return a}async function bE({jsonStream:n,onMessage:a,onError:s}){const l=n.getReader(),{value:u,done:f}=await l.read();if(f||!u)throw new Error("Stream ended before first object");const d=JSON.parse(u);let m=!1;const p=(async()=>{try{for(;;){const{value:g,done:S}=await l.read();if(S)break;if(g)try{const x=[];try{a(JSON.parse(g))}finally{}await ff(x)}catch(x){s?.(`Invalid JSON: ${g}`,x)}}}catch(g){m||s?.("Stream processing error:",g)}})();let y;const v=[];try{y=a(d)}catch(g){throw m=!0,l.cancel().catch(()=>{}),g}return await ff(v),Promise.resolve(y).catch(()=>{m=!0,l.cancel().catch(()=>{})}),p.finally(()=>{try{l.releaseLock()}catch{}}),y}function SE(n){const a="/_serverFn/"+n;return Object.assign((...u)=>{const f=rg()?.serverFns?.fetch;return yE(a,u,f??fetch)},{url:a,serverFnMeta:{id:n},[sf]:!0})}var _E={key:"$TSS/serverfn",test:n=>typeof n!="function"||!(sf in n)?!1:!!n[sf],toSerializable:({serverFnMeta:n})=>({functionId:n.id}),fromSerializable:({functionId:n})=>SE(n)};function Ty(n){return n.replaceAll("\0","/").replaceAll("�","/")}function xE(n,a){n.id=a.i,n.__beforeLoadContext=a.b,n.loaderData=a.l,n.status=a.s,n.ssr=a.ssr,n.updatedAt=a.u,n.error=a.e,a.g!==void 0&&(n.globalNotFound=a.g)}async function EE(n){window.$_TSR||Nt();const a=n.options.serializationAdapters;if(a?.length){const E=new Map;a.forEach(C=>{E.set(C.key,C.fromSerializable)}),window.$_TSR.t=E,window.$_TSR.buffer.forEach(C=>C())}window.$_TSR.initialized=!0,window.$_TSR.router||Nt();const s=window.$_TSR.router;s.matches.forEach(E=>{E.i=Ty(E.i)}),s.lastMatchId&&(s.lastMatchId=Ty(s.lastMatchId));const{manifest:l,dehydratedData:u,lastMatchId:f}=s;n.ssr={manifest:l};const d=document.querySelector('meta[property="csp-nonce"]')?.content;n.options.ssr={nonce:d},await n.options.hydrate?.(u);const m=n.matchRoutes(n.stores.location.get()),p=Promise.all(m.map(E=>n.loadRouteChunk(n.looseRoutesById[E.routeId])));function y(E){const C=n.looseRoutesById[E.routeId].options.pendingMinMs??n.options.defaultPendingMinMs;if(C){const j=ti();E._nonReactive.minPendingPromise=j,E._forcePending=!0,setTimeout(()=>{j.resolve(),n.updateMatch(E.id,Z=>(Z._nonReactive.minPendingPromise=void 0,{...Z,_forcePending:void 0}))},C)}}function v(E){const C=n.looseRoutesById[E.routeId];C&&(C.options.ssr=E.ssr)}let g;m.forEach(E=>{const C=s.matches.find(j=>j.i===E.id);if(!C){E._nonReactive.dehydrated=!1,E.ssr=!1,v(E);return}xE(E,C),v(E),E._nonReactive.dehydrated=E.ssr!==!1,(E.ssr==="data-only"||E.ssr===!1)&&g===void 0&&(g=E.index,y(E))}),n.stores.setMatches(m);const S=n.stores.matches.get(),x=n.stores.location.get();await Promise.all(S.map(async E=>{try{const C=n.looseRoutesById[E.routeId],j=S[E.index-1]?.context??n.options.context;if(C.options.context){const J={deps:E.loaderDeps,params:E.params,context:j??{},location:x,navigate:k=>n.navigate({...k,_fromLocation:x}),buildLocation:n.buildLocation,cause:E.cause,abortController:E.abortController,preload:!1,matches:m,routeId:C.id};E.__routeContext=C.options.context(J)??void 0}E.context={...j,...E.__routeContext,...E.__beforeLoadContext};const Z={ssr:n.options.ssr,matches:S,match:E,params:E.params,loaderData:E.loaderData},Q=await C.options.head?.(Z),X=await C.options.scripts?.(Z);E.meta=Q?.meta,E.links=Q?.links,E.headScripts=Q?.scripts,E.styles=Q?.styles,E.scripts=X}catch(C){if(dt(C))E.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${E.routeId}`,C);else throw E.error=C,console.error(`Error during hydration for route ${E.routeId}:`,C),C}}));const w=m[m.length-1].id!==f;if(!m.some(E=>E.ssr===!1)&&!w)return m.forEach(E=>{E._nonReactive.dehydrated=void 0}),n.stores.resolvedLocation.set(n.stores.location.get()),p;const z=Promise.resolve().then(()=>n.load()).catch(E=>{console.error("Error during router hydration:",E)});if(w){const E=m[1];E||Nt(),y(E),E._displayPending=!0,E._nonReactive.displayPendingPromise=z,z.then(()=>{n.batch(()=>{n.stores.status.get()==="pending"&&(n.stores.status.set("idle"),n.stores.resolvedLocation.set(n.stores.location.get())),n.updateMatch(E.id,C=>({...C,_displayPending:void 0,displayPendingPromise:void 0}))})})}return p}var lu=ie.use,or=typeof window<"u"?ie.useLayoutEffect:ie.useEffect;function Jc(n){const a=ie.useRef({value:n,prev:null}),s=a.current.value;return n!==s&&(a.current={value:n,prev:s}),a.current.prev}function TE(n,a,s={},l={}){ie.useEffect(()=>{if(!n.current||l.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([f])=>{a(f)},s);return u.observe(n.current),()=>{u.disconnect()}},[a,s,l.disabled,n])}function RE(n){const a=ie.useRef(null);return ie.useImperativeHandle(n,()=>a.current,[]),a}function wE({promise:n}){if(lu)return lu(n);const a=g_(n);if(a[mn].status==="pending")throw a;if(a[mn].status==="error")throw a[mn].error;return a[mn].data}function AE(n){const a=K.jsx(OE,{...n});return n.fallback?K.jsx(ie.Suspense,{fallback:n.fallback,children:a}):a}function OE(n){const a=wE(n);return n.children(a)}function Mf(n){const a=n.errorComponent??zf;return K.jsx(CE,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:s,reset:l})=>s?ie.createElement(a,{error:s,reset:l}):n.children})}var CE=class extends ie.Component{constructor(...n){super(...n),this.state={error:null}}static getDerivedStateFromProps(n,a){const s=n.getResetKey();return a.error&&a.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(n){return{error:n}}reset(){this.setState({error:null})}componentDidCatch(n,a){this.props.onCatch&&this.props.onCatch(n,a)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function zf({error:n}){const[a,s]=ie.useState(!1);return K.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[K.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[K.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),K.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(l=>!l),children:a?"Hide Error":"Show Error"})]}),K.jsx("div",{style:{height:".25rem"}}),a?K.jsx("div",{children:K.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?K.jsx("code",{children:n.message}):null})}):null]})}function ME({children:n,fallback:a=null}){return Df()?K.jsx(ns.Fragment,{children:n}):K.jsx(ns.Fragment,{children:a})}function Df(){return ns.useSyncExternalStore(zE,()=>!0,()=>!1)}function zE(){return()=>{}}var uv=ie.createContext(null);function bt(n){return ie.useContext(uv)}var _u=ie.createContext(void 0),DE=ie.createContext(void 0),Ke=(n=>(n[n.None=0]="None",n[n.Mutable=1]="Mutable",n[n.Watching=2]="Watching",n[n.RecursedCheck=4]="RecursedCheck",n[n.Recursed=8]="Recursed",n[n.Dirty=16]="Dirty",n[n.Pending=32]="Pending",n))(Ke||{});function NE({update:n,notify:a,unwatched:s}){return{link:l,unlink:u,propagate:f,checkDirty:d,shallowPropagate:m};function l(y,v,g){const S=v.depsTail;if(S!==void 0&&S.dep===y)return;const x=S!==void 0?S.nextDep:v.deps;if(x!==void 0&&x.dep===y){x.version=g,v.depsTail=x;return}const w=y.subsTail;if(w!==void 0&&w.version===g&&w.sub===v)return;const z=v.depsTail=y.subsTail={version:g,dep:y,sub:v,prevDep:S,nextDep:x,prevSub:w,nextSub:void 0};x!==void 0&&(x.prevDep=z),S!==void 0?S.nextDep=z:v.deps=z,w!==void 0?w.nextSub=z:y.subs=z}function u(y,v=y.sub){const g=y.dep,S=y.prevDep,x=y.nextDep,w=y.nextSub,z=y.prevSub;return x!==void 0?x.prevDep=S:v.depsTail=S,S!==void 0?S.nextDep=x:v.deps=x,w!==void 0?w.prevSub=z:g.subsTail=z,z!==void 0?z.nextSub=w:(g.subs=w)===void 0&&s(g),x}function f(y){let v=y.nextSub,g;e:do{const S=y.sub;let x=S.flags;if(x&60?x&12?x&4?!(x&48)&&p(y,S)?(S.flags=x|40,x&=1):x=0:S.flags=x&-9|32:x=0:S.flags=x|32,x&2&&a(S),x&1){const w=S.subs;if(w!==void 0){const z=(y=w).nextSub;z!==void 0&&(g={value:v,prev:g},v=z);continue}}if((y=v)!==void 0){v=y.nextSub;continue}for(;g!==void 0;)if(y=g.value,g=g.prev,y!==void 0){v=y.nextSub;continue e}break}while(!0)}function d(y,v){let g,S=0,x=!1;e:do{const w=y.dep,z=w.flags;if(v.flags&16)x=!0;else if((z&17)===17){if(n(w)){const E=w.subs;E.nextSub!==void 0&&m(E),x=!0}}else if((z&33)===33){(y.nextSub!==void 0||y.prevSub!==void 0)&&(g={value:y,prev:g}),y=w.deps,v=w,++S;continue}if(!x){const E=y.nextDep;if(E!==void 0){y=E;continue}}for(;S--;){const E=v.subs,C=E.nextSub!==void 0;if(C?(y=g.value,g=g.prev):y=E,x){if(n(v)){C&&m(E),v=y.sub;continue}x=!1}else v.flags&=-33;v=y.sub;const j=y.nextDep;if(j!==void 0){y=j;continue e}}return x}while(!0)}function m(y){do{const v=y.sub,g=v.flags;(g&48)===32&&(v.flags=g|16,(g&6)===2&&a(v))}while((y=y.nextSub)!==void 0)}function p(y,v){let g=v.depsTail;for(;g!==void 0;){if(g===y)return!0;g=g.prevDep}return!1}}function LE(n,a,s){const l=typeof n=="object",u=l?n:void 0;return{next:(l?n.next:n)?.bind(u),error:(l?n.error:a)?.bind(u),complete:(l?n.complete:s)?.bind(u)}}const df=[];let eu=0;const{link:Ry,unlink:jE,propagate:UE,checkDirty:ov,shallowPropagate:wy}=NE({update(n){return n._update()},notify(n){df[hf++]=n,n.flags&=~Ke.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=Ke.Mutable|Ke.Dirty,uu(n))}});let Pl=0,hf=0,hn,mf=0;function cv(n){try{++mf,n()}finally{--mf||fv()}}function uu(n){const a=n.depsTail;let s=a!==void 0?a.nextDep:n.deps;for(;s!==void 0;)s=jE(s,n)}function fv(){if(!(mf>0)){for(;Pl<hf;){const n=df[Pl];df[Pl++]=void 0,n.notify()}Pl=0,hf=0}}function Ay(n,a){const s=typeof n=="function",l=n,u={_snapshot:s?void 0:n,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Ke.None:Ke.Mutable,get(){return hn!==void 0&&Ry(u,hn,eu),u._snapshot},subscribe(f){const d=LE(f),m={current:!1},p=BE(()=>{u.get(),m.current?d.next?.(u._snapshot):m.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(f){const d=hn,m=a?.compare??Object.is;if(s)hn=u,++eu,u.depsTail=void 0;else if(f===void 0)return!1;s&&(u.flags=Ke.Mutable|Ke.RecursedCheck);try{const p=u._snapshot,y=typeof f=="function"?f(p):f===void 0&&s?l(p):f;return p===void 0||!m(p,y)?(u._snapshot=y,!0):!1}finally{hn=d,s&&(u.flags&=~Ke.RecursedCheck),uu(u)}}};return s?(u.flags=Ke.Mutable|Ke.Dirty,u.get=function(){const f=u.flags;if(f&Ke.Dirty||f&Ke.Pending&&ov(u.deps,u)){if(u._update()){const d=u.subs;d!==void 0&&wy(d)}}else f&Ke.Pending&&(u.flags=f&~Ke.Pending);return hn!==void 0&&Ry(u,hn,eu),u._snapshot}):u.set=function(f){if(u._update(f)){const d=u.subs;d!==void 0&&(UE(d),wy(d),fv())}},u}function BE(n){const a=()=>{const l=hn;hn=s,++eu,s.depsTail=void 0,s.flags=Ke.Watching|Ke.RecursedCheck;try{return n()}finally{hn=l,s.flags&=~Ke.RecursedCheck,uu(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ke.Watching|Ke.RecursedCheck,notify(){const l=this.flags;l&Ke.Dirty||l&Ke.Pending&&ov(this.deps,this)?a():this.flags=Ke.Watching},stop(){this.flags=Ke.None,this.depsTail=void 0,uu(this)}};return a(),s}var Ic={exports:{}},$c={},Wc={exports:{}},ef={};var Oy;function HE(){if(Oy)return ef;Oy=1;var n=_r();function a(g,S){return g===S&&(g!==0||1/g===1/S)||g!==g&&S!==S}var s=typeof Object.is=="function"?Object.is:a,l=n.useState,u=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function m(g,S){var x=S(),w=l({inst:{value:x,getSnapshot:S}}),z=w[0].inst,E=w[1];return f(function(){z.value=x,z.getSnapshot=S,p(z)&&E({inst:z})},[g,x,S]),u(function(){return p(z)&&E({inst:z}),g(function(){p(z)&&E({inst:z})})},[g]),d(x),x}function p(g){var S=g.getSnapshot;g=g.value;try{var x=S();return!s(g,x)}catch{return!0}}function y(g,S){return S()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:m;return ef.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,ef}var Cy;function kE(){return Cy||(Cy=1,Wc.exports=HE()),Wc.exports}var My;function qE(){if(My)return $c;My=1;var n=_r(),a=kE();function s(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var l=typeof Object.is=="function"?Object.is:s,u=a.useSyncExternalStore,f=n.useRef,d=n.useEffect,m=n.useMemo,p=n.useDebugValue;return $c.useSyncExternalStoreWithSelector=function(y,v,g,S,x){var w=f(null);if(w.current===null){var z={hasValue:!1,value:null};w.current=z}else z=w.current;w=m(function(){function C(J){if(!j){if(j=!0,Z=J,J=S(J),x!==void 0&&z.hasValue){var k=z.value;if(x(k,J))return Q=k}return Q=J}if(k=Q,l(Z,J))return k;var G=S(J);return x!==void 0&&x(k,G)?(Z=J,k):(Z=J,Q=G)}var j=!1,Z,Q,X=g===void 0?null:g;return[function(){return C(v())},X===null?void 0:function(){return C(X())}]},[v,g,S,x]);var E=u(y,w[0],w[1]);return d(function(){z.hasValue=!0,z.value=E},[E]),p(E),E},$c}var zy;function ZE(){return zy||(zy=1,Ic.exports=qE()),Ic.exports}var VE=ZE();function YE(n,a){return n===a}function et(n,a,s=YE){const l=ie.useCallback(d=>{if(!n)return()=>{};const{unsubscribe:m}=n.subscribe(d);return m},[n]),u=ie.useCallback(()=>n?.get(),[n]);return VE.useSyncExternalStoreWithSelector(l,u,u,a,s)}var QE={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function ii(n){const a=bt(),s=ie.useContext(n.from?DE:_u),l=n.from??s,u=l?n.from?a.stores.getRouteMatchStore(l):a.stores.matchStores.get(l):void 0,f=ie.useRef(void 0);return et(u??QE,d=>{if((n.shouldThrow??!0)&&!d&&Nt(),d===void 0)return;const m=n.select?n.select(d):d;if(n.structuralSharing??a.options.defaultStructuralSharing){const p=Ja(f.current,m);return f.current=p,p}return m})}function dv(n){return ii({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.loaderData):a.loaderData})}function hv(n){const{select:a,...s}=n;return ii({...s,select:l=>a?a(l.loaderDeps):l.loaderDeps})}function mv(n){return ii({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:a=>{const s=n.strict===!1?a.params:a._strictParams;return n.select?n.select(s):s}})}function pv(n){return ii({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.search):a.search})}function yv(n){const a=bt();return ie.useCallback(s=>a.navigate({...s,from:s.from??n?.from}),[n?.from,a])}function gv(n){return ii({...n,select:a=>n.select?n.select(a.context):a.context})}var GE=sg();function XE(n,a){const s=bt(),l=RE(a),{activeProps:u,inactiveProps:f,activeOptions:d,to:m,preload:p,preloadDelay:y,preloadIntentProximity:v,hashScrollIntoView:g,replace:S,startTransition:x,resetScroll:w,viewTransition:z,children:E,target:C,disabled:j,style:Z,className:Q,onClick:X,onBlur:J,onFocus:k,onMouseEnter:G,onMouseLeave:$,onTouchStart:de,ignoreBlocker:ce,params:oe,search:ot,hash:Ge,state:Je,mask:B,reloadDocument:F,unsafeRelative:ue,from:ze,_fromLocation:Ne,...O}=n,V=Df(),I=ie.useMemo(()=>n,[s,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),W=et(s.stores.location,Ve=>Ve,(Ve,ht)=>Ve.href===ht.href),re=ie.useMemo(()=>{const Ve={_fromLocation:W,...I};return s.buildLocation(Ve)},[s,W,I]),ve=re.maskedLocation?re.maskedLocation.publicHref:re.publicHref,Re=re.maskedLocation?re.maskedLocation.external:re.external,Ie=ie.useMemo(()=>$E(ve,Re,s.history,j),[j,Re,ve,s.history]),ke=ie.useMemo(()=>{if(Ie?.external)return nu(Ie.href,s.protocolAllowlist)?void 0:Ie.href;if(!WE(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),nu(m,s.protocolAllowlist)?void 0:m}catch{}},[m,Ie,s.protocolAllowlist]),yn=ie.useMemo(()=>{if(ke)return!1;if(d?.exact){if(!jS(W.pathname,re.pathname,s.basepath))return!1}else{const Ve=au(W.pathname,s.basepath),ht=au(re.pathname,s.basepath);if(!(Ve.startsWith(ht)&&(Ve.length===ht.length||Ve[ht.length]==="/")))return!1}return(d?.includeSearch??!0)&&!Et(W.search,re.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?V&&W.hash===re.hash:!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,W,ke,V,re.hash,re.pathname,re.search,s.basepath]),gn=yn?Fa(u,{})??KE:tf,Qn=yn?tf:Fa(f,{})??tf,ls=[Q,gn.className,Qn.className].filter(Boolean).join(" "),ln=(Z||gn.style||Qn.style)&&{...Z,...gn.style,...Qn.style},[us,si]=ie.useState(!1),Rr=ie.useRef(!1),vn=n.reloadDocument||ke?!1:p??s.options.defaultPreload,Ca=y??s.options.defaultPreloadDelay??0,tn=ie.useCallback(()=>{s.preloadRoute({...I,_builtLocation:re}).catch(Ve=>{console.warn(Ve),console.warn(v_)})},[s,I,re]);TE(l,ie.useCallback(Ve=>{Ve?.isIntersecting&&tn()},[tn]),IE,{disabled:!!j||vn!=="viewport"}),ie.useEffect(()=>{Rr.current||!j&&vn==="render"&&(tn(),Rr.current=!0)},[j,tn,vn]);const os=Ve=>{const ht=Ve.currentTarget.getAttribute("target"),un=C!==void 0?C:ht;if(!j&&!eT(Ve)&&!Ve.defaultPrevented&&(!un||un==="_self")&&Ve.button===0){Ve.preventDefault(),GE.flushSync(()=>{si(!0)});const ri=s.subscribe("onResolved",()=>{ri(),si(!1)});s.navigate({...I,replace:S,resetScroll:w,hashScrollIntoView:g,startTransition:x,viewTransition:z,ignoreBlocker:ce})}};if(ke)return{...O,ref:l,href:ke,...E&&{children:E},...C&&{target:C},...j&&{disabled:j},...Z&&{style:Z},...Q&&{className:Q},...X&&{onClick:X},...J&&{onBlur:J},...k&&{onFocus:k},...G&&{onMouseEnter:G},...$&&{onMouseLeave:$},...de&&{onTouchStart:de}};const wr=Ve=>{if(j||vn!=="intent")return;if(!Ca){tn();return}const ht=Ve.currentTarget;if(ur.has(ht))return;const un=setTimeout(()=>{ur.delete(ht),tn()},Ca);ur.set(ht,un)},Eu=Ve=>{j||vn!=="intent"||tn()},St=Ve=>{if(j||!vn||!Ca)return;const ht=Ve.currentTarget,un=ur.get(ht);un&&(clearTimeout(un),ur.delete(ht))};return{...O,...gn,...Qn,href:Ie?.href,ref:l,onClick:Gi([X,os]),onBlur:Gi([J,St]),onFocus:Gi([k,wr]),onMouseEnter:Gi([G,wr]),onMouseLeave:Gi([$,St]),onTouchStart:Gi([de,Eu]),disabled:!!j,target:C,...ln&&{style:ln},...ls&&{className:ls},...j&&PE,...yn&&FE,...V&&us&&JE}}var tf={},KE={className:"active"},PE={role:"link","aria-disabled":!0},FE={"data-status":"active","aria-current":"page"},JE={"data-transitioning":"transitioning"},ur=new WeakMap,IE={rootMargin:"100px"},Gi=n=>a=>{for(const s of n)if(s){if(a.defaultPrevented)return;s(a)}};function $E(n,a,s,l){if(!l)return a?{href:n,external:!0}:{href:s.createHref(n)||"/",external:!1}}function WE(n){if(typeof n!="string")return!1;const a=n.charCodeAt(0);return a===47?n.charCodeAt(1)!==47:a===46}var Nf=ie.forwardRef((n,a)=>{const{_asChild:s,...l}=n,{type:u,...f}=XE(l,a),d=typeof l.children=="function"?l.children({isActive:f["data-status"]==="active"}):l.children;if(!s){const{disabled:m,...p}=f;return ie.createElement("a",p,d)}return ie.createElement(s,f,d)});function eT(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var tT=class extends Rg{constructor(a){super(a),this.useMatch=s=>ii({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>gv({...s,from:this.id}),this.useSearch=s=>pv({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>mv({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>hv({...s,from:this.id}),this.useLoaderData=s=>dv({...s,from:this.id}),this.useNavigate=()=>yv({from:this.fullPath}),this.Link=ns.forwardRef((s,l)=>K.jsx(Nf,{ref:l,from:this.fullPath,...s}))}};function nT(n){return new tT(n)}function aT(){return n=>sT(n)}var iT=class extends E_{constructor(n){super(n),this.useMatch=a=>ii({select:a?.select,from:this.id,structuralSharing:a?.structuralSharing}),this.useRouteContext=a=>gv({...a,from:this.id}),this.useSearch=a=>pv({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useParams=a=>mv({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useLoaderDeps=a=>hv({...a,from:this.id}),this.useLoaderData=a=>dv({...a,from:this.id}),this.useNavigate=()=>yv({from:this.fullPath}),this.Link=ns.forwardRef((a,s)=>K.jsx(Nf,{ref:s,from:this.fullPath,...a}))}};function sT(n){return new iT(n)}function Lf(n){return new rT(n,{silent:!0}).createRoute}var rT=class{constructor(n,a){this.path=n,this.createRoute=s=>{const l=nT(s);return l.isRoot=!1,l},this.silent=a?.silent}};function jf(n,a){let s,l,u,f;const d=()=>(s||(s=n().then(p=>{s=void 0,l=p[a]}).catch(p=>{if(u=p,gS(u)&&u instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const y=`tanstack_router_reload:${u.message}`;sessionStorage.getItem(y)||(sessionStorage.setItem(y,"1"),f=!0)}})),s),m=function(y){if(f)throw window.location.reload(),new Promise(()=>{});if(u)throw u;if(!l)if(lu)lu(d());else throw d();return ie.createElement(l,y)};return m.preload=d,m}function lT(n){const a=bt(),s=`not-found-${et(a.stores.location,l=>l.pathname)}-${et(a.stores.status,l=>l)}`;return K.jsx(Mf,{getResetKey:()=>s,onCatch:(l,u)=>{if(dt(l))n.onCatch?.(l,u);else throw l},errorComponent:({error:l})=>{if(dt(l))return n.fallback?.(l);throw l},children:n.children})}function uT(){return K.jsx("p",{children:"Not Found"})}function Pi(n){return K.jsx(K.Fragment,{children:n.children})}function vv(n,a,s){return a.options.notFoundComponent?K.jsx(a.options.notFoundComponent,{...s}):n.options.defaultNotFoundComponent?K.jsx(n.options.defaultNotFoundComponent,{...s}):K.jsx(uT,{})}function oT(n){return null}function cT(){return oT(bt()),null}var bv=ie.memo(function({matchId:a}){const s=bt(),l=s.stores.matchStores.get(a);l||Nt();const u=et(s.stores.loadedAt,d=>d),f=et(l,d=>d);return K.jsx(fT,{router:s,matchId:a,resetKey:u,matchState:ie.useMemo(()=>{const d=f.routeId,m=s.routesById[d].parentRoute?.id;return{routeId:d,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:m}},[f._displayPending,f.routeId,f.ssr,s.routesById])})});function fT({router:n,matchId:a,resetKey:s,matchState:l}){const u=n.routesById[l.routeId],f=u.options.pendingComponent??n.options.defaultPendingComponent,d=f?K.jsx(f,{}):null,m=u.options.errorComponent??n.options.defaultErrorComponent,p=u.options.onCatch??n.options.defaultOnCatch,y=u.isRoot?u.options.notFoundComponent??n.options.notFoundRoute?.options.component:u.options.notFoundComponent,v=l.ssr===!1||l.ssr==="data-only",g=(!u.isRoot||u.options.wrapInSuspense||v)&&(u.options.wrapInSuspense??f??(u.options.errorComponent?.preload||v))?ie.Suspense:Pi,S=m?Mf:Pi,x=y?lT:Pi;return K.jsxs(u.isRoot?u.options.shellComponent??Pi:Pi,{children:[K.jsx(_u.Provider,{value:a,children:K.jsx(g,{fallback:d,children:K.jsx(S,{getResetKey:()=>s,errorComponent:m||zf,onCatch:(w,z)=>{if(dt(w))throw w.routeId??=l.routeId,w;p?.(w,z)},children:K.jsx(x,{fallback:w=>{if(w.routeId??=l.routeId,!y||w.routeId&&w.routeId!==l.routeId||!w.routeId&&!u.isRoot)throw w;return ie.createElement(y,w)},children:v||l._displayPending?K.jsx(ME,{fallback:d,children:K.jsx(Dy,{matchId:a})}):K.jsx(Dy,{matchId:a})})})})}),l.parentRouteId===Wa?K.jsxs(K.Fragment,{children:[K.jsx(dT,{resetKey:s}),n.options.scrollRestoration&&lg?K.jsx(cT,{}):null]}):null]})}function dT({resetKey:n}){const a=bt(),s=ie.useRef(void 0);return or(()=>{const l=a.latestLocation.href;(s.current===void 0||s.current!==l)&&(a.emit({type:"onRendered",...Wi(a.stores.location.get(),a.stores.resolvedLocation.get())}),s.current=l)},[a.latestLocation.state.__TSR_key,n,a]),null}var Dy=ie.memo(function({matchId:a}){const s=bt(),l=(v,g)=>s.getMatch(v.id)?._nonReactive[g]??v._nonReactive[g],u=s.stores.matchStores.get(a);u||Nt();const f=et(u,v=>v),d=f.routeId,m=s.routesById[d],p=ie.useMemo(()=>{const v=(s.routesById[d].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:d,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return v?JSON.stringify(v):void 0},[d,f.loaderDeps,f._strictParams,f._strictSearch,s.options.defaultRemountDeps,s.routesById]),y=ie.useMemo(()=>{const v=m.options.component??s.options.defaultComponent;return v?K.jsx(v,{},p):K.jsx(Sv,{})},[p,m.options.component,s.options.defaultComponent]);if(f._displayPending)throw l(f,"displayPendingPromise");if(f._forcePending)throw l(f,"minPendingPromise");if(f.status==="pending"){const v=m.options.pendingMinMs??s.options.defaultPendingMinMs;if(v){const g=s.getMatch(f.id);if(g&&!g._nonReactive.minPendingPromise){const S=ti();g._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),g._nonReactive.minPendingPromise=void 0},v)}}throw l(f,"loadPromise")}if(f.status==="notFound")return dt(f.error)||Nt(),vv(s,m,f.error);if(f.status==="redirected")throw Dt(f.error)||Nt(),l(f,"loadPromise");if(f.status==="error")throw f.error;return y}),Sv=ie.memo(function(){const a=bt(),s=ie.useContext(_u);let l,u=!1,f;{const y=s?a.stores.matchStores.get(s):void 0;[l,u]=et(y,v=>[v?.routeId,v?.globalNotFound??!1]),f=et(a.stores.matchesId,v=>v[v.findIndex(g=>g===s)+1])}const d=l?a.routesById[l]:void 0,m=a.options.defaultPendingComponent?K.jsx(a.options.defaultPendingComponent,{}):null;if(u)return d||Nt(),vv(a,d,void 0);if(!f)return null;const p=K.jsx(bv,{matchId:f});return l===Wa?K.jsx(ie.Suspense,{fallback:m,children:p}):p});function hT(){const n=bt(),a=ie.useRef({router:n,mounted:!1}),[s,l]=ie.useState(!1),u=et(n.stores.isLoading,g=>g),f=et(n.stores.hasPending,g=>g),d=Jc(u),m=u||s||f,p=Jc(m),y=u||f,v=Jc(y);return n.startTransition=g=>{l(!0),ie.startTransition(()=>{g(),l(!1)})},ie.useEffect(()=>{const g=n.history.subscribe(n.load),S=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Hn(n.latestLocation.publicHref)!==Hn(S.publicHref)&&n.commitLocation({...S,replace:!0}),()=>{g()}},[n,n.history]),or(()=>{if(typeof window<"u"&&n.ssr||a.current.router===n&&a.current.mounted)return;a.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(S){console.error(S)}})()},[n]),or(()=>{d&&!u&&n.emit({type:"onLoad",...Wi(n.stores.location.get(),n.stores.resolvedLocation.get())})},[d,n,u]),or(()=>{v&&!y&&n.emit({type:"onBeforeRouteMount",...Wi(n.stores.location.get(),n.stores.resolvedLocation.get())})},[y,v,n]),or(()=>{if(p&&!m){const g=Wi(n.stores.location.get(),n.stores.resolvedLocation.get());n.emit({type:"onResolved",...g}),cv(()=>{n.stores.status.set("idle"),n.stores.resolvedLocation.set(n.stores.location.get())})}},[m,p,n]),null}function mT(){const n=bt(),a=n.routesById[Wa].options.pendingComponent??n.options.defaultPendingComponent,s=a?K.jsx(a,{}):null,l=K.jsxs(typeof document<"u"&&n.ssr?Pi:ie.Suspense,{fallback:s,children:[K.jsx(hT,{}),K.jsx(pT,{})]});return n.options.InnerWrap?K.jsx(n.options.InnerWrap,{children:l}):l}function pT(){const n=bt(),a=et(n.stores.firstId,u=>u),s=et(n.stores.loadedAt,u=>u),l=a?K.jsx(bv,{matchId:a}):null;return K.jsx(_u.Provider,{value:a,children:n.options.disableGlobalCatchBoundary?l:K.jsx(Mf,{getResetKey:()=>s,errorComponent:zf,onCatch:void 0,children:l})})}var yT=n=>({createMutableStore:Ay,createReadonlyStore:Ay,batch:cv}),gT=n=>new vT(n),vT=class extends a_{constructor(n){super(n,yT)}};function bT({router:n,children:a,...s}){og(s)&&n.update({...n.options,...s,context:{...n.options.context,...s.context}});const l=K.jsx(uv.Provider,{value:n,children:a});return n.options.Wrap?K.jsx(n.options.Wrap,{children:l}):l}function ST({router:n,...a}){return K.jsx(bT,{router:n,...a,children:K.jsx(mT,{})})}function Ny(n,a){if(a)for(const[s,l]of Object.entries(a))s!=="suppressHydrationWarning"&&l!==void 0&&l!==!1&&n.setAttribute(s,typeof l=="boolean"?"":String(l))}function _v(n){const{attrs:a,children:s,nonce:l,preventScriptHoist:u}=n;switch(n.tag){case"title":return K.jsx("title",{...a,suppressHydrationWarning:!0,children:s});case"meta":return K.jsx("meta",{...a,suppressHydrationWarning:!0});case"link":return K.jsx("link",{...a,precedence:a?.precedence??(a?.rel==="stylesheet"?"default":void 0),nonce:l,suppressHydrationWarning:!0});case"style":return n.inlineCss,K.jsx("style",{...a,dangerouslySetInnerHTML:{__html:s},nonce:l});case"script":return K.jsx(_T,{attrs:a,preventScriptHoist:u,children:s});default:return null}}function _T({attrs:n,children:a,preventScriptHoist:s}){bt();const l=Df(),u=typeof n?.type=="string"&&n.type!==""&&n.type!=="text/javascript"&&n.type!=="module";if(ie.useEffect(()=>{if(!u){if(n?.src){const f=(()=>{try{const m=document.baseURI||window.location.href;return new URL(n.src,m).href}catch{return n.src}})();for(const m of document.querySelectorAll("script[src]"))if(m.src===f)return;const d=document.createElement("script");return Ny(d,n),document.head.appendChild(d),()=>d.remove()}if(typeof a=="string"){const f=typeof n?.type=="string"?n.type:"text/javascript",d=typeof n?.nonce=="string"?n.nonce:void 0;for(const p of document.querySelectorAll("script:not([src])")){if(!(p instanceof HTMLScriptElement))continue;const y=p.getAttribute("type")??"text/javascript",v=p.getAttribute("nonce")??void 0;if(p.textContent===a&&y===f&&v===d)return}const m=document.createElement("script");return m.textContent=a,Ny(m,n),document.head.appendChild(m),()=>m.remove()}}},[n,a,u]),u&&typeof a=="string")return K.jsx("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:a}});if(!l){if(n?.src)return K.jsx("script",{...n,suppressHydrationWarning:!0});if(typeof a=="string")return K.jsx("script",{...n,dangerouslySetInnerHTML:{__html:a},suppressHydrationWarning:!0})}return null}var xT=n=>{const a=bt(),s=a.options.ssr?.nonce,l=et(a.stores.matches,g=>g.map(S=>S.meta).filter(S=>S!==void 0),Et),u=ie.useMemo(()=>{const g=[],S={};let x;for(let w=l.length-1;w>=0;w--){const z=l[w];for(let E=z.length-1;E>=0;E--){const C=z[E];if(C)if(C.title)x||(x={tag:"title",children:C.title});else if("script:ld+json"in C)try{const j=JSON.stringify(C["script:ld+json"]);g.push({tag:"script",attrs:{type:"application/ld+json"},children:xS(j)})}catch{}else{const j=C.name??C.property;if(j){if(S[j])continue;S[j]=!0}g.push({tag:"meta",attrs:{...C,nonce:s}})}}}return x&&g.push(x),s&&g.push({tag:"meta",attrs:{property:"csp-nonce",content:s}}),g.reverse(),g},[l,s]),f=et(a.stores.matches,g=>g.flatMap(S=>S.links??[]).filter(S=>S!==void 0).map(S=>({tag:"link",attrs:{...S,nonce:s}})),Et),d=et(a.stores.matches,g=>{const S=a.ssr?.manifest,x=[];return S&&(g.forEach(w=>{S.routes[w.routeId]?.css?.forEach(z=>{const E=x_(z);x.push({tag:"link",attrs:{rel:"stylesheet",...E,crossOrigin:Tg(n,"stylesheet")??E.crossOrigin,suppressHydrationWarning:!0,nonce:s}})})}),S.inlineStyle&&x.push({tag:"style",attrs:{...S.inlineStyle.attrs,nonce:s},children:S.inlineStyle.children,inlineCss:!0})),x},Et),m=et(a.stores.matches,g=>{const S=[],x=a.ssr?.manifest;return x&&g.forEach(w=>{x.routes[w.routeId]?.preloads?.forEach(z=>{S.push({tag:"link",attrs:{...S_(x,z,n),nonce:s}})})}),S},Et),p=et(a.stores.matches,g=>g.flatMap(S=>S.styles??[]).filter(S=>S!==void 0).map(({children:S,...x})=>({tag:"style",attrs:{...x,nonce:s},children:S})),Et),y=et(a.stores.matches,g=>g.flatMap(S=>S.headScripts??[]).filter(S=>S!==void 0).map(({children:S,...x})=>({tag:"script",attrs:{...x,nonce:s},children:S})),Et),v=[];return Xl(v,u),v.push(...m),Xl(v,f),v.push(...d),Xl(v,p),Xl(v,y),v};function ET(n){const a=xT(n.assetCrossOrigin),s=bt().options.ssr?.nonce;return K.jsx(K.Fragment,{children:a.map(l=>ie.createElement(_v,{...l,key:`tsr-meta-${JSON.stringify(l)}`,nonce:s}))})}var TT=()=>{const n=bt(),a=n.options.ssr?.nonce,s=f=>{const d=[],m=n.ssr?.manifest;if(!m)return[];for(const p of f){const y=m.routes[p.routeId]?.scripts;if(y)for(const v of y)d.push({tag:"script",attrs:{...v.attrs,nonce:a},children:v.children,...typeof v.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return d},l=f=>f.map(d=>d.scripts).flat(1).filter(Boolean).map(({children:d,...m})=>({tag:"script",attrs:{...m,suppressHydrationWarning:!0,nonce:a},children:d})),u=et(n.stores.matches,s,Et);return RT(n,et(n.stores.matches,l,Et),u)};function RT(n,a,s){const l=[...a,...s];return K.jsx(K.Fragment,{children:l.map((u,f)=>ie.createElement(_v,{...u,key:`tsr-scripts-${u.tag}-${f}`}))})}var Ii=(n,a)=>{const s={type:"request",...a||n};return{options:s,middleware:l=>Ii({},Object.assign(s,{middleware:l})),inputValidator:l=>Ii({},Object.assign(s,{inputValidator:l})),client:l=>Ii({},Object.assign(s,{client:l})),server:l=>Ii({},Object.assign(s,{server:l}))}};function xv(n,a){for(let s=0,l=a.length;s<l;s++){const u=a[s];n.has(u)||(n.add(u),u.extends&&xv(n,u.extends))}}var wT=n=>({getOptions:async()=>{const a=await n();if(a.serializationAdapters){const s=new Set;xv(s,a.serializationAdapters),a.serializationAdapters=Array.from(s)}return a},createMiddleware:Ii});const AT=Ii(),Ly=wT(()=>({requestMiddleware:[AT]}));var xu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},OT=class extends xu{#e;#t;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ev=new OT,CT={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},MT=class{#e=CT;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,a){return this.#e.setTimeout(n,a)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,a){return this.#e.setInterval(n,a)}clearInterval(n){this.#e.clearInterval(n)}},pf=new MT;function zT(n){setTimeout(n,0)}var DT=typeof window>"u"||"Deno"in globalThis;function rn(){}function NT(n,a){return typeof n=="function"?n(a):n}function LT(n){return typeof n=="number"&&n>=0&&n!==1/0}function jT(n,a){return Math.max(n+(a||0)-Date.now(),0)}function yf(n,a){return typeof n=="function"?n(a):n}function UT(n,a){return typeof n=="function"?n(a):n}function jy(n,a){const{type:s="all",exact:l,fetchStatus:u,predicate:f,queryKey:d,stale:m}=n;if(d){if(l){if(a.queryHash!==Uf(d,a.options))return!1}else if(!gr(a.queryKey,d))return!1}if(s!=="all"){const p=a.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||u&&u!==a.state.fetchStatus||f&&!f(a))}function Uy(n,a){const{exact:s,status:l,predicate:u,mutationKey:f}=n;if(f){if(!a.options.mutationKey)return!1;if(s){if(yr(a.options.mutationKey)!==yr(f))return!1}else if(!gr(a.options.mutationKey,f))return!1}return!(l&&a.state.status!==l||u&&!u(a))}function Uf(n,a){return(a?.queryKeyHashFn||yr)(n)}function yr(n){return JSON.stringify(n,(a,s)=>gf(s)?Object.keys(s).sort().reduce((l,u)=>(l[u]=s[u],l),{}):s)}function gr(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(s=>gr(n[s],a[s])):!1}var BT=Object.prototype.hasOwnProperty;function Tv(n,a,s=0){if(n===a)return n;if(s>500)return a;const l=By(n)&&By(a);if(!l&&!(gf(n)&&gf(a)))return a;const f=(l?n:Object.keys(n)).length,d=l?a:Object.keys(a),m=d.length,p=l?new Array(m):{};let y=0;for(let v=0;v<m;v++){const g=l?v:d[v],S=n[g],x=a[g];if(S===x){p[g]=S,(l?v<f:BT.call(n,g))&&y++;continue}if(S===null||x===null||typeof S!="object"||typeof x!="object"){p[g]=x;continue}const w=Tv(S,x,s+1);p[g]=w,w===S&&y++}return f===m&&y===f?n:p}function By(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function gf(n){if(!Hy(n))return!1;const a=n.constructor;if(a===void 0)return!0;const s=a.prototype;return!(!Hy(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Hy(n){return Object.prototype.toString.call(n)==="[object Object]"}function HT(n){return new Promise(a=>{pf.setTimeout(a,n)})}function kT(n,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,a):s.structuralSharing!==!1?Tv(n,a):a}function qT(n,a,s=0){const l=[...n,a];return s&&l.length>s?l.slice(1):l}function ZT(n,a,s=0){const l=[a,...n];return s&&l.length>s?l.slice(0,-1):l}var Bf=Symbol();function Rv(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===Bf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function VT(n,a,s){let l=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=a(),l||(l=!0,u.aborted?s():u.addEventListener("abort",s,{once:!0})),u)}),n}var wv=(()=>{let n=()=>DT;return{isServer(){return n()},setIsServer(a){n=a}}})();function YT(){let n,a;const s=new Promise((u,f)=>{n=u,a=f});s.status="pending",s.catch(()=>{});function l(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{l({status:"fulfilled",value:u}),n(u)},s.reject=u=>{l({status:"rejected",reason:u}),a(u)},s}var QT=zT;function GT(){let n=[],a=0,s=m=>{m()},l=m=>{m()},u=QT;const f=m=>{a?n.push(m):u(()=>{s(m)})},d=()=>{const m=n;n=[],m.length&&u(()=>{l(()=>{m.forEach(p=>{s(p)})})})};return{batch:m=>{let p;a++;try{p=m()}finally{a--,a||d()}return p},batchCalls:m=>(...p)=>{f(()=>{m(...p)})},schedule:f,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{l=m},setScheduler:m=>{u=m}}}var Tt=GT(),XT=class extends xu{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const a=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},ou=new XT;function KT(n){return Math.min(1e3*2**n,3e4)}function Av(n){return(n??"online")==="online"?ou.isOnline():!0}var vf=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Ov(n){let a=!1,s=0,l;const u=YT(),f=()=>u.status!=="pending",d=z=>{if(!f()){const E=new vf(z);S(E),n.onCancel?.(E)}},m=()=>{a=!0},p=()=>{a=!1},y=()=>Ev.isFocused()&&(n.networkMode==="always"||ou.isOnline())&&n.canRun(),v=()=>Av(n.networkMode)&&n.canRun(),g=z=>{f()||(l?.(),u.resolve(z))},S=z=>{f()||(l?.(),u.reject(z))},x=()=>new Promise(z=>{l=E=>{(f()||y())&&z(E)},n.onPause?.()}).then(()=>{l=void 0,f()||n.onContinue?.()}),w=()=>{if(f())return;let z;const E=s===0?n.initialPromise:void 0;try{z=E??n.fn()}catch(C){z=Promise.reject(C)}Promise.resolve(z).then(g).catch(C=>{if(f())return;const j=n.retry??(wv.isServer()?0:3),Z=n.retryDelay??KT,Q=typeof Z=="function"?Z(s,C):Z,X=j===!0||typeof j=="number"&&s<j||typeof j=="function"&&j(s,C);if(a||!X){S(C);return}s++,n.onFail?.(s,C),HT(Q).then(()=>y()?void 0:x()).then(()=>{a?S(C):w()})})};return{promise:u,status:()=>u.status,cancel:d,continue:()=>(l?.(),u),cancelRetry:m,continueRetry:p,canStart:v,start:()=>(v()?w():x().then(w),u)}}var Cv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),LT(this.gcTime)&&(this.#e=pf.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(wv.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(pf.clearTimeout(this.#e),this.#e=void 0)}};function PT(n){return{onFetch:(a,s)=>{const l=a.options,u=a.fetchOptions?.meta?.fetchMore?.direction,f=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let m={pages:[],pageParams:[]},p=0;const y=async()=>{let v=!1;const g=w=>{VT(w,()=>a.signal,()=>v=!0)},S=Rv(a.options,a.fetchOptions),x=async(w,z,E)=>{if(v)return Promise.reject(a.signal.reason);if(z==null&&w.pages.length)return Promise.resolve(w);const j=(()=>{const J={client:a.client,queryKey:a.queryKey,pageParam:z,direction:E?"backward":"forward",meta:a.options.meta};return g(J),J})(),Z=await S(j),{maxPages:Q}=a.options,X=E?ZT:qT;return{pages:X(w.pages,Z,Q),pageParams:X(w.pageParams,z,Q)}};if(u&&f.length){const w=u==="backward",z=w?FT:ky,E={pages:f,pageParams:d},C=z(l,E);m=await x(E,C,w)}else{const w=n??f.length;do{const z=p===0?d[0]??l.initialPageParam:ky(l,m);if(p>0&&z==null)break;m=await x(m,z),p++}while(p<w)}return m};a.options.persister?a.fetchFn=()=>a.options.persister?.(y,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s):a.fetchFn=y}}}function ky(n,{pages:a,pageParams:s}){const l=a.length-1;return a.length>0?n.getNextPageParam(a[l],a,s[l],s):void 0}function FT(n,{pages:a,pageParams:s}){return a.length>0?n.getPreviousPageParam?.(a[0],a,s[0],s):void 0}var JT=class extends Cv{#e;#t;#n;#i;#s;#a;#u;#r;constructor(n){super(),this.#r=!1,this.#u=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#s=n.client,this.#i=this.#s.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=Zy(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#u,...n},n?._type&&(this.#e=n._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=Zy(this.options);a.data!==void 0&&(this.setState(qy(a.data,a.dataUpdatedAt)),this.#t=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#i.remove(this)}setData(n,a){const s=kT(this.state.data,n,this.options);return this.#l({data:s,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),s}setState(n){this.#l({type:"setState",state:n})}cancel(n){const a=this.#a?.promise;return this.#a?.cancel(n),a?a.then(rn).catch(rn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(n=>UT(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>yf(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!jT(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#a&&(this.#r||this.#o()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#i.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}#o(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const p=this.observers.find(y=>y.options.queryFn);p&&this.setOptions(p.options)}const s=new AbortController,l=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)})},u=()=>{const p=Rv(this.options,a),v=(()=>{const g={client:this.#s,queryKey:this.queryKey,meta:this.meta};return l(g),g})();return this.#r=!1,this.options.persister?this.options.persister(p,v,this):p(v)},d=(()=>{const p={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:u};return l(p),p})();(this.#e==="infinite"?PT(this.options.pages):this.options.behavior)?.onFetch(d,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#l({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=Ov({initialPromise:a?.initialPromise,fn:d.fetchFn,onCancel:p=>{p instanceof vf&&p.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(p,y)=>{this.#l({type:"failed",failureCount:p,error:y})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const p=await this.#a.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#i.config.onSuccess?.(p,this),this.#i.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof vf){if(p.silent)return this.#a.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#l({type:"error",error:p}),this.#i.config.onError?.(p,this),this.#i.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#l(n){const a=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...IT(s.data,this.options),fetchMeta:n.meta??null};case"success":const l={...s,...qy(n.data,n.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=n.manual?l:void 0,l;case"error":const u=n.error;return{...s,error:u,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=a(this.state),Tt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#i.notify({query:this,type:"updated",action:n})})}};function IT(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Av(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function qy(n,a){return{data:n,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Zy(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,s=a!==void 0,l=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var $T=class extends Cv{#e;#t;#n;#i;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||WT(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(a=>a!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#s({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Ov({fn:()=>this.options.mutationFn?this.options.mutationFn(n,s):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#s({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#s({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const l=this.state.status==="pending",u=!this.#i.canStart();try{if(l)a();else{this.#s({type:"pending",variables:n,isPaused:u}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,s);const d=await this.options.onMutate?.(n,s);d!==this.state.context&&this.#s({type:"pending",context:d,variables:n,isPaused:u})}const f=await this.#i.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,s),await this.options.onSuccess?.(f,n,this.state.context,s),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(f,null,n,this.state.context,s),this.#s({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,s)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,s)}catch(d){Promise.reject(d)}throw this.#s({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#s(n){const a=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Tt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function WT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var eR=class extends xu{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,a,s){const l=new $T({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:s});return this.add(l),l}add(n){this.#e.add(n);const a=Fl(n);if(typeof a=="string"){const s=this.#t.get(a);s?s.push(n):this.#t.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const a=Fl(n);if(typeof a=="string"){const s=this.#t.get(a);if(s)if(s.length>1){const l=s.indexOf(n);l!==-1&&s.splice(l,1)}else s[0]===n&&this.#t.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Fl(n);if(typeof a=="string"){const l=this.#t.get(a)?.find(u=>u.state.status==="pending");return!l||l===n}else return!0}runNext(n){const a=Fl(n);return typeof a=="string"?this.#t.get(a)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Tt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const a={exact:!0,...n};return this.getAll().find(s=>Uy(a,s))}findAll(n={}){return this.getAll().filter(a=>Uy(n,a))}notify(n){Tt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Tt.batch(()=>Promise.all(n.map(a=>a.continue().catch(rn))))}};function Fl(n){return n.options.scope?.id}var tR=class extends xu{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,a,s){const l=a.queryKey,u=a.queryHash??Uf(l,a);let f=this.get(u);return f||(f=new JT({client:n,queryKey:l,queryHash:u,options:n.defaultQueryOptions(a),state:s,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#e.get(n.queryHash);a&&(n.destroy(),a===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Tt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(s=>jy(a,s))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(s=>jy(n,s)):a}notify(n){Tt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},nR=class{#e;#t;#n;#i;#s;#a;#u;#r;constructor(n={}){this.#e=n.queryCache||new tR,this.#t=n.mutationCache||new eR,this.#n=n.defaultOptions||{},this.#i=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#u=Ev.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=ou.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#u?.(),this.#u=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#e.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),s=this.#e.build(this,a),l=s.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(yf(a.staleTime,s))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:a,state:s})=>{const l=s.data;return[a,l]})}setQueryData(n,a,s){const l=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(l.queryHash)?.state.data,d=NT(a,f);if(d!==void 0)return this.#e.build(this,l).setData(d,{...s,manual:!0})}setQueriesData(n,a,s){return Tt.batch(()=>this.#e.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,a,s)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#e.get(a.queryHash)?.state}removeQueries(n){const a=this.#e;Tt.batch(()=>{a.findAll(n).forEach(s=>{a.remove(s)})})}resetQueries(n,a){const s=this.#e;return Tt.batch(()=>(s.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const s={revert:!0,...a},l=Tt.batch(()=>this.#e.findAll(n).map(u=>u.cancel(s)));return Promise.all(l).then(rn).catch(rn)}invalidateQueries(n,a={}){return Tt.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const s={...a,cancelRefetch:a.cancelRefetch??!0},l=Tt.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,s);return s.throwOnError||(f=f.catch(rn)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(rn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const s=this.#e.build(this,a);return s.isStaleByTime(yf(a.staleTime,s))?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(rn).catch(rn)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(rn).catch(rn)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return ou.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#i.set(yr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#i.values()],s={};return a.forEach(l=>{gr(n,l.queryKey)&&Object.assign(s,l.defaultOptions)}),s}setMutationDefaults(n,a){this.#s.set(yr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#s.values()],s={};return a.forEach(l=>{gr(n,l.mutationKey)&&Object.assign(s,l.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Uf(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Bf&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},aR=ie.createContext(void 0),iR=({client:n,children:a})=>(ie.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),K.jsx(aR.Provider,{value:n,children:a}));const sR="/assets/styles-3a3CPFIV.css";function rR(n,a={}){typeof window>"u"||window.__lovableEvents?.captureException?.(n,{source:"react_error_boundary",route:window.location.pathname,...a},{mechanism:"react_error_boundary",handled:!1,severity:"error"})}function lR(){return K.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:K.jsxs("div",{className:"max-w-md text-center",children:[K.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),K.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),K.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),K.jsx("div",{className:"mt-6",children:K.jsx(Nf,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Go home"})})]})})}function uR({error:n,reset:a}){console.error(n);const s=bt();return ie.useEffect(()=>{rR(n,{boundary:"tanstack_root_error_component"})},[n]),K.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:K.jsxs("div",{className:"max-w-md text-center",children:[K.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),K.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),K.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[K.jsx("button",{onClick:()=>{s.invalidate(),a()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),K.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const Tr=aT()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Lovable App"},{name:"description",content:"DocuView Pro is a React application for viewing DOCX, PPT, and Excel files."},{name:"author",content:"Lovable"},{property:"og:title",content:"Lovable App"},{property:"og:description",content:"DocuView Pro is a React application for viewing DOCX, PPT, and Excel files."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:site",content:"@Lovable"},{name:"twitter:title",content:"Lovable App"},{name:"twitter:description",content:"DocuView Pro is a React application for viewing DOCX, PPT, and Excel files."},{property:"og:image",content:"https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/3a4a2296-566c-4b14-b351-3fbc08c7a9b9/id-preview-34571cfb--04b9844d-0c11-4bad-b6b9-9106cb808514.lovable.app-1780657852368.png"},{name:"twitter:image",content:"https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/3a4a2296-566c-4b14-b351-3fbc08c7a9b9/id-preview-34571cfb--04b9844d-0c11-4bad-b6b9-9106cb808514.lovable.app-1780657852368.png"}],links:[{rel:"stylesheet",href:sR}]}),shellComponent:oR,component:cR,notFoundComponent:lR,errorComponent:uR});function oR({children:n}){return K.jsxs("html",{lang:"en",children:[K.jsx("head",{children:K.jsx(ET,{})}),K.jsxs("body",{children:[n,K.jsx(TT,{})]})]})}function cR(){const{queryClient:n}=Tr.useRouteContext();return K.jsx(iR,{client:n,children:K.jsx(Sv,{})})}const fR="modulepreload",dR=function(n){return"/"+n},Vy={},Hf=function(a,s,l){let u=Promise.resolve();if(s&&s.length>0){let p=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");u=p(s.map(y=>{if(y=dR(y),y in Vy)return;Vy[y]=!0;const v=y.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${g}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":fR,v||(S.as="script"),S.crossOrigin="",S.href=y,m&&S.setAttribute("nonce",m),document.head.appendChild(S),v)return new Promise((x,w)=>{S.addEventListener("load",x),S.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return u.then(d=>{for(const m of d||[])m.status==="rejected"&&f(m.reason);return a().catch(f)})};var Ce;(function(n){n.assertEqual=u=>{};function a(u){}n.assertIs=a;function s(u){throw new Error}n.assertNever=s,n.arrayToEnum=u=>{const f={};for(const d of u)f[d]=d;return f},n.getValidEnumValues=u=>{const f=n.objectKeys(u).filter(m=>typeof u[u[m]]!="number"),d={};for(const m of f)d[m]=u[m];return n.objectValues(d)},n.objectValues=u=>n.objectKeys(u).map(function(f){return u[f]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const f=[];for(const d in u)Object.prototype.hasOwnProperty.call(u,d)&&f.push(d);return f},n.find=(u,f)=>{for(const d of u)if(f(d))return d},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function l(u,f=" | "){return u.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}n.joinValues=l,n.jsonStringifyReplacer=(u,f)=>typeof f=="bigint"?f.toString():f})(Ce||(Ce={}));var Yy;(function(n){n.mergeShapes=(a,s)=>({...a,...s})})(Yy||(Yy={}));const ne=Ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ga=n=>{switch(typeof n){case"undefined":return ne.undefined;case"string":return ne.string;case"number":return Number.isNaN(n)?ne.nan:ne.number;case"boolean":return ne.boolean;case"function":return ne.function;case"bigint":return ne.bigint;case"symbol":return ne.symbol;case"object":return Array.isArray(n)?ne.array:n===null?ne.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?ne.promise:typeof Map<"u"&&n instanceof Map?ne.map:typeof Set<"u"&&n instanceof Set?ne.set:typeof Date<"u"&&n instanceof Date?ne.date:ne.object;default:return ne.unknown}},P=Ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Zn extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=l=>{this.issues=[...this.issues,l]},this.addIssues=(l=[])=>{this.issues=[...this.issues,...l]};const s=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,s):this.__proto__=s,this.name="ZodError",this.issues=a}format(a){const s=a||function(f){return f.message},l={_errors:[]},u=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(u);else if(d.code==="invalid_return_type")u(d.returnTypeError);else if(d.code==="invalid_arguments")u(d.argumentsError);else if(d.path.length===0)l._errors.push(s(d));else{let m=l,p=0;for(;p<d.path.length;){const y=d.path[p];p===d.path.length-1?(m[y]=m[y]||{_errors:[]},m[y]._errors.push(s(d))):m[y]=m[y]||{_errors:[]},m=m[y],p++}}};return u(this),l}static assert(a){if(!(a instanceof Zn))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ce.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=s=>s.message){const s={},l=[];for(const u of this.issues)if(u.path.length>0){const f=u.path[0];s[f]=s[f]||[],s[f].push(a(u))}else l.push(a(u));return{formErrors:l,fieldErrors:s}}get formErrors(){return this.flatten()}}Zn.create=n=>new Zn(n);const bf=(n,a)=>{let s;switch(n.code){case P.invalid_type:n.received===ne.undefined?s="Required":s=`Expected ${n.expected}, received ${n.received}`;break;case P.invalid_literal:s=`Invalid literal value, expected ${JSON.stringify(n.expected,Ce.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:s=`Unrecognized key(s) in object: ${Ce.joinValues(n.keys,", ")}`;break;case P.invalid_union:s="Invalid input";break;case P.invalid_union_discriminator:s=`Invalid discriminator value. Expected ${Ce.joinValues(n.options)}`;break;case P.invalid_enum_value:s=`Invalid enum value. Expected ${Ce.joinValues(n.options)}, received '${n.received}'`;break;case P.invalid_arguments:s="Invalid function arguments";break;case P.invalid_return_type:s="Invalid function return type";break;case P.invalid_date:s="Invalid date";break;case P.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(s=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(s=`${s} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?s=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?s=`Invalid input: must end with "${n.validation.endsWith}"`:Ce.assertNever(n.validation):n.validation!=="regex"?s=`Invalid ${n.validation}`:s="Invalid";break;case P.too_small:n.type==="array"?s=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?s=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?s=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?s=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?s=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:s="Invalid input";break;case P.too_big:n.type==="array"?s=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?s=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?s=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?s=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?s=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:s="Invalid input";break;case P.custom:s="Invalid input";break;case P.invalid_intersection_types:s="Intersection results could not be merged";break;case P.not_multiple_of:s=`Number must be a multiple of ${n.multipleOf}`;break;case P.not_finite:s="Number must be finite";break;default:s=a.defaultError,Ce.assertNever(n)}return{message:s}};let hR=bf;function mR(){return hR}const pR=n=>{const{data:a,path:s,errorMaps:l,issueData:u}=n,f=[...s,...u.path||[]],d={...u,path:f};if(u.message!==void 0)return{...u,path:f,message:u.message};let m="";const p=l.filter(y=>!!y).slice().reverse();for(const y of p)m=y(d,{data:a,defaultError:m}).message;return{...u,path:f,message:m}};function ee(n,a){const s=mR(),l=pR({issueData:a,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,s,s===bf?void 0:bf].filter(u=>!!u)});n.common.issues.push(l)}class Yt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,s){const l=[];for(const u of s){if(u.status==="aborted")return me;u.status==="dirty"&&a.dirty(),l.push(u.value)}return{status:a.value,value:l}}static async mergeObjectAsync(a,s){const l=[];for(const u of s){const f=await u.key,d=await u.value;l.push({key:f,value:d})}return Yt.mergeObjectSync(a,l)}static mergeObjectSync(a,s){const l={};for(const u of s){const{key:f,value:d}=u;if(f.status==="aborted"||d.status==="aborted")return me;f.status==="dirty"&&a.dirty(),d.status==="dirty"&&a.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||u.alwaysSet)&&(l[f.value]=d.value)}return{status:a.value,value:l}}}const me=Object.freeze({status:"aborted"}),cr=n=>({status:"dirty",value:n}),en=n=>({status:"valid",value:n}),Qy=n=>n.status==="aborted",Gy=n=>n.status==="dirty",as=n=>n.status==="valid",cu=n=>typeof Promise<"u"&&n instanceof Promise;var se;(function(n){n.errToObj=a=>typeof a=="string"?{message:a}:a||{},n.toString=a=>typeof a=="string"?a:a?.message})(se||(se={}));class Ta{constructor(a,s,l,u){this._cachedPath=[],this.parent=a,this.data=s,this._path=l,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Xy=(n,a)=>{if(as(a))return{success:!0,data:a.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const s=new Zn(n.common.issues);return this._error=s,this._error}}};function be(n){if(!n)return{};const{errorMap:a,invalid_type_error:s,required_error:l,description:u}=n;if(a&&(s||l))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:u}:{errorMap:(d,m)=>{const{message:p}=n;return d.code==="invalid_enum_value"?{message:p??m.defaultError}:typeof m.data>"u"?{message:p??l??m.defaultError}:d.code!=="invalid_type"?{message:m.defaultError}:{message:p??s??m.defaultError}},description:u}}class we{get description(){return this._def.description}_getType(a){return ga(a.data)}_getOrReturnCtx(a,s){return s||{common:a.parent.common,data:a.data,parsedType:ga(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Yt,ctx:{common:a.parent.common,data:a.data,parsedType:ga(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const s=this._parse(a);if(cu(s))throw new Error("Synchronous parse encountered promise.");return s}_parseAsync(a){const s=this._parse(a);return Promise.resolve(s)}parse(a,s){const l=this.safeParse(a,s);if(l.success)return l.data;throw l.error}safeParse(a,s){const l={common:{issues:[],async:s?.async??!1,contextualErrorMap:s?.errorMap},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)},u=this._parseSync({data:a,path:l.path,parent:l});return Xy(l,u)}"~validate"(a){const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)};if(!this["~standard"].async)try{const l=this._parseSync({data:a,path:[],parent:s});return as(l)?{value:l.value}:{issues:s.common.issues}}catch(l){l?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:s}).then(l=>as(l)?{value:l.value}:{issues:s.common.issues})}async parseAsync(a,s){const l=await this.safeParseAsync(a,s);if(l.success)return l.data;throw l.error}async safeParseAsync(a,s){const l={common:{issues:[],contextualErrorMap:s?.errorMap,async:!0},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)},u=this._parse({data:a,path:l.path,parent:l}),f=await(cu(u)?u:Promise.resolve(u));return Xy(l,f)}refine(a,s){const l=u=>typeof s=="string"||typeof s>"u"?{message:s}:typeof s=="function"?s(u):s;return this._refinement((u,f)=>{const d=a(u),m=()=>f.addIssue({code:P.custom,...l(u)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(m(),!1)):d?!0:(m(),!1)})}refinement(a,s){return this._refinement((l,u)=>a(l)?!0:(u.addIssue(typeof s=="function"?s(l,u):s),!1))}_refinement(a){return new ss({schema:this,typeName:pe.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:s=>this["~validate"](s)}}optional(){return Ea.create(this,this._def)}nullable(){return rs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return pn.create(this)}promise(){return mu.create(this,this._def)}or(a){return du.create([this,a],this._def)}and(a){return hu.create(this,a,this._def)}transform(a){return new ss({...be(this._def),schema:this,typeName:pe.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const s=typeof a=="function"?a:()=>a;return new _f({...be(this._def),innerType:this,defaultValue:s,typeName:pe.ZodDefault})}brand(){return new HR({typeName:pe.ZodBranded,type:this,...be(this._def)})}catch(a){const s=typeof a=="function"?a:()=>a;return new xf({...be(this._def),innerType:this,catchValue:s,typeName:pe.ZodCatch})}describe(a){const s=this.constructor;return new s({...this._def,description:a})}pipe(a){return kf.create(this,a)}readonly(){return Ef.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const yR=/^c[^\s-]{8,}$/i,gR=/^[0-9a-z]+$/,vR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,bR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,SR=/^[a-z0-9_-]{21}$/i,_R=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,xR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ER=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,TR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let nf;const RR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,wR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,AR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,OR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,CR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,MR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Mv="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zR=new RegExp(`^${Mv}$`);function zv(n){let a="[0-5]\\d";n.precision?a=`${a}\\.\\d{${n.precision}}`:n.precision==null&&(a=`${a}(\\.\\d+)?`);const s=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${s}`}function DR(n){return new RegExp(`^${zv(n)}$`)}function NR(n){let a=`${Mv}T${zv(n)}`;const s=[];return s.push(n.local?"Z?":"Z"),n.offset&&s.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${s.join("|")})`,new RegExp(`^${a}$`)}function LR(n,a){return!!((a==="v4"||!a)&&RR.test(n)||(a==="v6"||!a)&&AR.test(n))}function jR(n,a){if(!_R.test(n))return!1;try{const[s]=n.split(".");if(!s)return!1;const l=s.replace(/-/g,"+").replace(/_/g,"/").padEnd(s.length+(4-s.length%4)%4,"="),u=JSON.parse(atob(l));return!(typeof u!="object"||u===null||"typ"in u&&u?.typ!=="JWT"||!u.alg||a&&u.alg!==a)}catch{return!1}}function UR(n,a){return!!((a==="v4"||!a)&&wR.test(n)||(a==="v6"||!a)&&OR.test(n))}class _a extends we{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==ne.string){const f=this._getOrReturnCtx(a);return ee(f,{code:P.invalid_type,expected:ne.string,received:f.parsedType}),me}const l=new Yt;let u;for(const f of this._def.checks)if(f.kind==="min")a.data.length<f.value&&(u=this._getOrReturnCtx(a,u),ee(u,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),l.dirty());else if(f.kind==="max")a.data.length>f.value&&(u=this._getOrReturnCtx(a,u),ee(u,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),l.dirty());else if(f.kind==="length"){const d=a.data.length>f.value,m=a.data.length<f.value;(d||m)&&(u=this._getOrReturnCtx(a,u),d?ee(u,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&ee(u,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),l.dirty())}else if(f.kind==="email")ER.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"email",code:P.invalid_string,message:f.message}),l.dirty());else if(f.kind==="emoji")nf||(nf=new RegExp(TR,"u")),nf.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"emoji",code:P.invalid_string,message:f.message}),l.dirty());else if(f.kind==="uuid")bR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"uuid",code:P.invalid_string,message:f.message}),l.dirty());else if(f.kind==="nanoid")SR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"nanoid",code:P.invalid_string,message:f.message}),l.dirty());else if(f.kind==="cuid")yR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"cuid",code:P.invalid_string,message:f.message}),l.dirty());else if(f.kind==="cuid2")gR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"cuid2",code:P.invalid_string,message:f.message}),l.dirty());else if(f.kind==="ulid")vR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"ulid",code:P.invalid_string,message:f.message}),l.dirty());else if(f.kind==="url")try{new URL(a.data)}catch{u=this._getOrReturnCtx(a,u),ee(u,{validation:"url",code:P.invalid_string,message:f.message}),l.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"regex",code:P.invalid_string,message:f.message}),l.dirty())):f.kind==="trim"?a.data=a.data.trim():f.kind==="includes"?a.data.includes(f.value,f.position)||(u=this._getOrReturnCtx(a,u),ee(u,{code:P.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),l.dirty()):f.kind==="toLowerCase"?a.data=a.data.toLowerCase():f.kind==="toUpperCase"?a.data=a.data.toUpperCase():f.kind==="startsWith"?a.data.startsWith(f.value)||(u=this._getOrReturnCtx(a,u),ee(u,{code:P.invalid_string,validation:{startsWith:f.value},message:f.message}),l.dirty()):f.kind==="endsWith"?a.data.endsWith(f.value)||(u=this._getOrReturnCtx(a,u),ee(u,{code:P.invalid_string,validation:{endsWith:f.value},message:f.message}),l.dirty()):f.kind==="datetime"?NR(f).test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{code:P.invalid_string,validation:"datetime",message:f.message}),l.dirty()):f.kind==="date"?zR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{code:P.invalid_string,validation:"date",message:f.message}),l.dirty()):f.kind==="time"?DR(f).test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{code:P.invalid_string,validation:"time",message:f.message}),l.dirty()):f.kind==="duration"?xR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"duration",code:P.invalid_string,message:f.message}),l.dirty()):f.kind==="ip"?LR(a.data,f.version)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"ip",code:P.invalid_string,message:f.message}),l.dirty()):f.kind==="jwt"?jR(a.data,f.alg)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"jwt",code:P.invalid_string,message:f.message}),l.dirty()):f.kind==="cidr"?UR(a.data,f.version)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"cidr",code:P.invalid_string,message:f.message}),l.dirty()):f.kind==="base64"?CR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"base64",code:P.invalid_string,message:f.message}),l.dirty()):f.kind==="base64url"?MR.test(a.data)||(u=this._getOrReturnCtx(a,u),ee(u,{validation:"base64url",code:P.invalid_string,message:f.message}),l.dirty()):Ce.assertNever(f);return{status:l.value,value:a.data}}_regex(a,s,l){return this.refinement(u=>a.test(u),{validation:s,code:P.invalid_string,...se.errToObj(l)})}_addCheck(a){return new _a({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...se.errToObj(a)})}url(a){return this._addCheck({kind:"url",...se.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...se.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...se.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...se.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...se.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...se.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...se.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...se.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...se.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...se.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...se.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...se.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof a?.precision>"u"?null:a?.precision,offset:a?.offset??!1,local:a?.local??!1,...se.errToObj(a?.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof a?.precision>"u"?null:a?.precision,...se.errToObj(a?.message)})}duration(a){return this._addCheck({kind:"duration",...se.errToObj(a)})}regex(a,s){return this._addCheck({kind:"regex",regex:a,...se.errToObj(s)})}includes(a,s){return this._addCheck({kind:"includes",value:a,position:s?.position,...se.errToObj(s?.message)})}startsWith(a,s){return this._addCheck({kind:"startsWith",value:a,...se.errToObj(s)})}endsWith(a,s){return this._addCheck({kind:"endsWith",value:a,...se.errToObj(s)})}min(a,s){return this._addCheck({kind:"min",value:a,...se.errToObj(s)})}max(a,s){return this._addCheck({kind:"max",value:a,...se.errToObj(s)})}length(a,s){return this._addCheck({kind:"length",value:a,...se.errToObj(s)})}nonempty(a){return this.min(1,se.errToObj(a))}trim(){return new _a({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new _a({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new _a({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxLength(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}}_a.create=n=>new _a({checks:[],typeName:pe.ZodString,coerce:n?.coerce??!1,...be(n)});function BR(n,a){const s=(n.toString().split(".")[1]||"").length,l=(a.toString().split(".")[1]||"").length,u=s>l?s:l,f=Number.parseInt(n.toFixed(u).replace(".","")),d=Number.parseInt(a.toFixed(u).replace(".",""));return f%d/10**u}class vr extends we{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==ne.number){const f=this._getOrReturnCtx(a);return ee(f,{code:P.invalid_type,expected:ne.number,received:f.parsedType}),me}let l;const u=new Yt;for(const f of this._def.checks)f.kind==="int"?Ce.isInteger(a.data)||(l=this._getOrReturnCtx(a,l),ee(l,{code:P.invalid_type,expected:"integer",received:"float",message:f.message}),u.dirty()):f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(l=this._getOrReturnCtx(a,l),ee(l,{code:P.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(l=this._getOrReturnCtx(a,l),ee(l,{code:P.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="multipleOf"?BR(a.data,f.value)!==0&&(l=this._getOrReturnCtx(a,l),ee(l,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):f.kind==="finite"?Number.isFinite(a.data)||(l=this._getOrReturnCtx(a,l),ee(l,{code:P.not_finite,message:f.message}),u.dirty()):Ce.assertNever(f);return{status:u.value,value:a.data}}gte(a,s){return this.setLimit("min",a,!0,se.toString(s))}gt(a,s){return this.setLimit("min",a,!1,se.toString(s))}lte(a,s){return this.setLimit("max",a,!0,se.toString(s))}lt(a,s){return this.setLimit("max",a,!1,se.toString(s))}setLimit(a,s,l,u){return new vr({...this._def,checks:[...this._def.checks,{kind:a,value:s,inclusive:l,message:se.toString(u)}]})}_addCheck(a){return new vr({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:se.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:se.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:se.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:se.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:se.toString(a)})}multipleOf(a,s){return this._addCheck({kind:"multipleOf",value:a,message:se.toString(s)})}finite(a){return this._addCheck({kind:"finite",message:se.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:se.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:se.toString(a)})}get minValue(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxValue(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&Ce.isInteger(a.value))}get isFinite(){let a=null,s=null;for(const l of this._def.checks){if(l.kind==="finite"||l.kind==="int"||l.kind==="multipleOf")return!0;l.kind==="min"?(s===null||l.value>s)&&(s=l.value):l.kind==="max"&&(a===null||l.value<a)&&(a=l.value)}return Number.isFinite(s)&&Number.isFinite(a)}}vr.create=n=>new vr({checks:[],typeName:pe.ZodNumber,coerce:n?.coerce||!1,...be(n)});class br extends we{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==ne.bigint)return this._getInvalidInput(a);let l;const u=new Yt;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(l=this._getOrReturnCtx(a,l),ee(l,{code:P.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(l=this._getOrReturnCtx(a,l),ee(l,{code:P.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="multipleOf"?a.data%f.value!==BigInt(0)&&(l=this._getOrReturnCtx(a,l),ee(l,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):Ce.assertNever(f);return{status:u.value,value:a.data}}_getInvalidInput(a){const s=this._getOrReturnCtx(a);return ee(s,{code:P.invalid_type,expected:ne.bigint,received:s.parsedType}),me}gte(a,s){return this.setLimit("min",a,!0,se.toString(s))}gt(a,s){return this.setLimit("min",a,!1,se.toString(s))}lte(a,s){return this.setLimit("max",a,!0,se.toString(s))}lt(a,s){return this.setLimit("max",a,!1,se.toString(s))}setLimit(a,s,l,u){return new br({...this._def,checks:[...this._def.checks,{kind:a,value:s,inclusive:l,message:se.toString(u)}]})}_addCheck(a){return new br({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:se.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:se.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:se.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:se.toString(a)})}multipleOf(a,s){return this._addCheck({kind:"multipleOf",value:a,message:se.toString(s)})}get minValue(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxValue(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}}br.create=n=>new br({checks:[],typeName:pe.ZodBigInt,coerce:n?.coerce??!1,...be(n)});class Ky extends we{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==ne.boolean){const l=this._getOrReturnCtx(a);return ee(l,{code:P.invalid_type,expected:ne.boolean,received:l.parsedType}),me}return en(a.data)}}Ky.create=n=>new Ky({typeName:pe.ZodBoolean,coerce:n?.coerce||!1,...be(n)});class fu extends we{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==ne.date){const f=this._getOrReturnCtx(a);return ee(f,{code:P.invalid_type,expected:ne.date,received:f.parsedType}),me}if(Number.isNaN(a.data.getTime())){const f=this._getOrReturnCtx(a);return ee(f,{code:P.invalid_date}),me}const l=new Yt;let u;for(const f of this._def.checks)f.kind==="min"?a.data.getTime()<f.value&&(u=this._getOrReturnCtx(a,u),ee(u,{code:P.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),l.dirty()):f.kind==="max"?a.data.getTime()>f.value&&(u=this._getOrReturnCtx(a,u),ee(u,{code:P.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),l.dirty()):Ce.assertNever(f);return{status:l.value,value:new Date(a.data.getTime())}}_addCheck(a){return new fu({...this._def,checks:[...this._def.checks,a]})}min(a,s){return this._addCheck({kind:"min",value:a.getTime(),message:se.toString(s)})}max(a,s){return this._addCheck({kind:"max",value:a.getTime(),message:se.toString(s)})}get minDate(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a!=null?new Date(a):null}}fu.create=n=>new fu({checks:[],coerce:n?.coerce||!1,typeName:pe.ZodDate,...be(n)});class Py extends we{_parse(a){if(this._getType(a)!==ne.symbol){const l=this._getOrReturnCtx(a);return ee(l,{code:P.invalid_type,expected:ne.symbol,received:l.parsedType}),me}return en(a.data)}}Py.create=n=>new Py({typeName:pe.ZodSymbol,...be(n)});class Fy extends we{_parse(a){if(this._getType(a)!==ne.undefined){const l=this._getOrReturnCtx(a);return ee(l,{code:P.invalid_type,expected:ne.undefined,received:l.parsedType}),me}return en(a.data)}}Fy.create=n=>new Fy({typeName:pe.ZodUndefined,...be(n)});class Jy extends we{_parse(a){if(this._getType(a)!==ne.null){const l=this._getOrReturnCtx(a);return ee(l,{code:P.invalid_type,expected:ne.null,received:l.parsedType}),me}return en(a.data)}}Jy.create=n=>new Jy({typeName:pe.ZodNull,...be(n)});class Iy extends we{constructor(){super(...arguments),this._any=!0}_parse(a){return en(a.data)}}Iy.create=n=>new Iy({typeName:pe.ZodAny,...be(n)});class $y extends we{constructor(){super(...arguments),this._unknown=!0}_parse(a){return en(a.data)}}$y.create=n=>new $y({typeName:pe.ZodUnknown,...be(n)});class Ra extends we{_parse(a){const s=this._getOrReturnCtx(a);return ee(s,{code:P.invalid_type,expected:ne.never,received:s.parsedType}),me}}Ra.create=n=>new Ra({typeName:pe.ZodNever,...be(n)});class Wy extends we{_parse(a){if(this._getType(a)!==ne.undefined){const l=this._getOrReturnCtx(a);return ee(l,{code:P.invalid_type,expected:ne.void,received:l.parsedType}),me}return en(a.data)}}Wy.create=n=>new Wy({typeName:pe.ZodVoid,...be(n)});class pn extends we{_parse(a){const{ctx:s,status:l}=this._processInputParams(a),u=this._def;if(s.parsedType!==ne.array)return ee(s,{code:P.invalid_type,expected:ne.array,received:s.parsedType}),me;if(u.exactLength!==null){const d=s.data.length>u.exactLength.value,m=s.data.length<u.exactLength.value;(d||m)&&(ee(s,{code:d?P.too_big:P.too_small,minimum:m?u.exactLength.value:void 0,maximum:d?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),l.dirty())}if(u.minLength!==null&&s.data.length<u.minLength.value&&(ee(s,{code:P.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),l.dirty()),u.maxLength!==null&&s.data.length>u.maxLength.value&&(ee(s,{code:P.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),l.dirty()),s.common.async)return Promise.all([...s.data].map((d,m)=>u.type._parseAsync(new Ta(s,d,s.path,m)))).then(d=>Yt.mergeArray(l,d));const f=[...s.data].map((d,m)=>u.type._parseSync(new Ta(s,d,s.path,m)));return Yt.mergeArray(l,f)}get element(){return this._def.type}min(a,s){return new pn({...this._def,minLength:{value:a,message:se.toString(s)}})}max(a,s){return new pn({...this._def,maxLength:{value:a,message:se.toString(s)}})}length(a,s){return new pn({...this._def,exactLength:{value:a,message:se.toString(s)}})}nonempty(a){return this.min(1,a)}}pn.create=(n,a)=>new pn({type:n,minLength:null,maxLength:null,exactLength:null,typeName:pe.ZodArray,...be(a)});function Fi(n){if(n instanceof st){const a={};for(const s in n.shape){const l=n.shape[s];a[s]=Ea.create(Fi(l))}return new st({...n._def,shape:()=>a})}else return n instanceof pn?new pn({...n._def,type:Fi(n.element)}):n instanceof Ea?Ea.create(Fi(n.unwrap())):n instanceof rs?rs.create(Fi(n.unwrap())):n instanceof ni?ni.create(n.items.map(a=>Fi(a))):n}class st extends we{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),s=Ce.objectKeys(a);return this._cached={shape:a,keys:s},this._cached}_parse(a){if(this._getType(a)!==ne.object){const y=this._getOrReturnCtx(a);return ee(y,{code:P.invalid_type,expected:ne.object,received:y.parsedType}),me}const{status:l,ctx:u}=this._processInputParams(a),{shape:f,keys:d}=this._getCached(),m=[];if(!(this._def.catchall instanceof Ra&&this._def.unknownKeys==="strip"))for(const y in u.data)d.includes(y)||m.push(y);const p=[];for(const y of d){const v=f[y],g=u.data[y];p.push({key:{status:"valid",value:y},value:v._parse(new Ta(u,g,u.path,y)),alwaysSet:y in u.data})}if(this._def.catchall instanceof Ra){const y=this._def.unknownKeys;if(y==="passthrough")for(const v of m)p.push({key:{status:"valid",value:v},value:{status:"valid",value:u.data[v]}});else if(y==="strict")m.length>0&&(ee(u,{code:P.unrecognized_keys,keys:m}),l.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const v of m){const g=u.data[v];p.push({key:{status:"valid",value:v},value:y._parse(new Ta(u,g,u.path,v)),alwaysSet:v in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const y=[];for(const v of p){const g=await v.key,S=await v.value;y.push({key:g,value:S,alwaysSet:v.alwaysSet})}return y}).then(y=>Yt.mergeObjectSync(l,y)):Yt.mergeObjectSync(l,p)}get shape(){return this._def.shape()}strict(a){return se.errToObj,new st({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(s,l)=>{const u=this._def.errorMap?.(s,l).message??l.defaultError;return s.code==="unrecognized_keys"?{message:se.errToObj(a).message??u}:{message:u}}}:{}})}strip(){return new st({...this._def,unknownKeys:"strip"})}passthrough(){return new st({...this._def,unknownKeys:"passthrough"})}extend(a){return new st({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new st({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:pe.ZodObject})}setKey(a,s){return this.augment({[a]:s})}catchall(a){return new st({...this._def,catchall:a})}pick(a){const s={};for(const l of Ce.objectKeys(a))a[l]&&this.shape[l]&&(s[l]=this.shape[l]);return new st({...this._def,shape:()=>s})}omit(a){const s={};for(const l of Ce.objectKeys(this.shape))a[l]||(s[l]=this.shape[l]);return new st({...this._def,shape:()=>s})}deepPartial(){return Fi(this)}partial(a){const s={};for(const l of Ce.objectKeys(this.shape)){const u=this.shape[l];a&&!a[l]?s[l]=u:s[l]=u.optional()}return new st({...this._def,shape:()=>s})}required(a){const s={};for(const l of Ce.objectKeys(this.shape))if(a&&!a[l])s[l]=this.shape[l];else{let f=this.shape[l];for(;f instanceof Ea;)f=f._def.innerType;s[l]=f}return new st({...this._def,shape:()=>s})}keyof(){return Dv(Ce.objectKeys(this.shape))}}st.create=(n,a)=>new st({shape:()=>n,unknownKeys:"strip",catchall:Ra.create(),typeName:pe.ZodObject,...be(a)});st.strictCreate=(n,a)=>new st({shape:()=>n,unknownKeys:"strict",catchall:Ra.create(),typeName:pe.ZodObject,...be(a)});st.lazycreate=(n,a)=>new st({shape:n,unknownKeys:"strip",catchall:Ra.create(),typeName:pe.ZodObject,...be(a)});class du extends we{_parse(a){const{ctx:s}=this._processInputParams(a),l=this._def.options;function u(f){for(const m of f)if(m.result.status==="valid")return m.result;for(const m of f)if(m.result.status==="dirty")return s.common.issues.push(...m.ctx.common.issues),m.result;const d=f.map(m=>new Zn(m.ctx.common.issues));return ee(s,{code:P.invalid_union,unionErrors:d}),me}if(s.common.async)return Promise.all(l.map(async f=>{const d={...s,common:{...s.common,issues:[]},parent:null};return{result:await f._parseAsync({data:s.data,path:s.path,parent:d}),ctx:d}})).then(u);{let f;const d=[];for(const p of l){const y={...s,common:{...s.common,issues:[]},parent:null},v=p._parseSync({data:s.data,path:s.path,parent:y});if(v.status==="valid")return v;v.status==="dirty"&&!f&&(f={result:v,ctx:y}),y.common.issues.length&&d.push(y.common.issues)}if(f)return s.common.issues.push(...f.ctx.common.issues),f.result;const m=d.map(p=>new Zn(p));return ee(s,{code:P.invalid_union,unionErrors:m}),me}}get options(){return this._def.options}}du.create=(n,a)=>new du({options:n,typeName:pe.ZodUnion,...be(a)});function Sf(n,a){const s=ga(n),l=ga(a);if(n===a)return{valid:!0,data:n};if(s===ne.object&&l===ne.object){const u=Ce.objectKeys(a),f=Ce.objectKeys(n).filter(m=>u.indexOf(m)!==-1),d={...n,...a};for(const m of f){const p=Sf(n[m],a[m]);if(!p.valid)return{valid:!1};d[m]=p.data}return{valid:!0,data:d}}else if(s===ne.array&&l===ne.array){if(n.length!==a.length)return{valid:!1};const u=[];for(let f=0;f<n.length;f++){const d=n[f],m=a[f],p=Sf(d,m);if(!p.valid)return{valid:!1};u.push(p.data)}return{valid:!0,data:u}}else return s===ne.date&&l===ne.date&&+n==+a?{valid:!0,data:n}:{valid:!1}}class hu extends we{_parse(a){const{status:s,ctx:l}=this._processInputParams(a),u=(f,d)=>{if(Qy(f)||Qy(d))return me;const m=Sf(f.value,d.value);return m.valid?((Gy(f)||Gy(d))&&s.dirty(),{status:s.value,value:m.data}):(ee(l,{code:P.invalid_intersection_types}),me)};return l.common.async?Promise.all([this._def.left._parseAsync({data:l.data,path:l.path,parent:l}),this._def.right._parseAsync({data:l.data,path:l.path,parent:l})]).then(([f,d])=>u(f,d)):u(this._def.left._parseSync({data:l.data,path:l.path,parent:l}),this._def.right._parseSync({data:l.data,path:l.path,parent:l}))}}hu.create=(n,a,s)=>new hu({left:n,right:a,typeName:pe.ZodIntersection,...be(s)});class ni extends we{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.array)return ee(l,{code:P.invalid_type,expected:ne.array,received:l.parsedType}),me;if(l.data.length<this._def.items.length)return ee(l,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&l.data.length>this._def.items.length&&(ee(l,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),s.dirty());const f=[...l.data].map((d,m)=>{const p=this._def.items[m]||this._def.rest;return p?p._parse(new Ta(l,d,l.path,m)):null}).filter(d=>!!d);return l.common.async?Promise.all(f).then(d=>Yt.mergeArray(s,d)):Yt.mergeArray(s,f)}get items(){return this._def.items}rest(a){return new ni({...this._def,rest:a})}}ni.create=(n,a)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ni({items:n,typeName:pe.ZodTuple,rest:null,...be(a)})};class eg extends we{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.map)return ee(l,{code:P.invalid_type,expected:ne.map,received:l.parsedType}),me;const u=this._def.keyType,f=this._def.valueType,d=[...l.data.entries()].map(([m,p],y)=>({key:u._parse(new Ta(l,m,l.path,[y,"key"])),value:f._parse(new Ta(l,p,l.path,[y,"value"]))}));if(l.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const p of d){const y=await p.key,v=await p.value;if(y.status==="aborted"||v.status==="aborted")return me;(y.status==="dirty"||v.status==="dirty")&&s.dirty(),m.set(y.value,v.value)}return{status:s.value,value:m}})}else{const m=new Map;for(const p of d){const y=p.key,v=p.value;if(y.status==="aborted"||v.status==="aborted")return me;(y.status==="dirty"||v.status==="dirty")&&s.dirty(),m.set(y.value,v.value)}return{status:s.value,value:m}}}}eg.create=(n,a,s)=>new eg({valueType:a,keyType:n,typeName:pe.ZodMap,...be(s)});class Sr extends we{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.set)return ee(l,{code:P.invalid_type,expected:ne.set,received:l.parsedType}),me;const u=this._def;u.minSize!==null&&l.data.size<u.minSize.value&&(ee(l,{code:P.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),s.dirty()),u.maxSize!==null&&l.data.size>u.maxSize.value&&(ee(l,{code:P.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),s.dirty());const f=this._def.valueType;function d(p){const y=new Set;for(const v of p){if(v.status==="aborted")return me;v.status==="dirty"&&s.dirty(),y.add(v.value)}return{status:s.value,value:y}}const m=[...l.data.values()].map((p,y)=>f._parse(new Ta(l,p,l.path,y)));return l.common.async?Promise.all(m).then(p=>d(p)):d(m)}min(a,s){return new Sr({...this._def,minSize:{value:a,message:se.toString(s)}})}max(a,s){return new Sr({...this._def,maxSize:{value:a,message:se.toString(s)}})}size(a,s){return this.min(a,s).max(a,s)}nonempty(a){return this.min(1,a)}}Sr.create=(n,a)=>new Sr({valueType:n,minSize:null,maxSize:null,typeName:pe.ZodSet,...be(a)});class tg extends we{get schema(){return this._def.getter()}_parse(a){const{ctx:s}=this._processInputParams(a);return this._def.getter()._parse({data:s.data,path:s.path,parent:s})}}tg.create=(n,a)=>new tg({getter:n,typeName:pe.ZodLazy,...be(a)});class ng extends we{_parse(a){if(a.data!==this._def.value){const s=this._getOrReturnCtx(a);return ee(s,{received:s.data,code:P.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:a.data}}get value(){return this._def.value}}ng.create=(n,a)=>new ng({value:n,typeName:pe.ZodLiteral,...be(a)});function Dv(n,a){return new is({values:n,typeName:pe.ZodEnum,...be(a)})}class is extends we{_parse(a){if(typeof a.data!="string"){const s=this._getOrReturnCtx(a),l=this._def.values;return ee(s,{expected:Ce.joinValues(l),received:s.parsedType,code:P.invalid_type}),me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const s=this._getOrReturnCtx(a),l=this._def.values;return ee(s,{received:s.data,code:P.invalid_enum_value,options:l}),me}return en(a.data)}get options(){return this._def.values}get enum(){const a={};for(const s of this._def.values)a[s]=s;return a}get Values(){const a={};for(const s of this._def.values)a[s]=s;return a}get Enum(){const a={};for(const s of this._def.values)a[s]=s;return a}extract(a,s=this._def){return is.create(a,{...this._def,...s})}exclude(a,s=this._def){return is.create(this.options.filter(l=>!a.includes(l)),{...this._def,...s})}}is.create=Dv;class ag extends we{_parse(a){const s=Ce.getValidEnumValues(this._def.values),l=this._getOrReturnCtx(a);if(l.parsedType!==ne.string&&l.parsedType!==ne.number){const u=Ce.objectValues(s);return ee(l,{expected:Ce.joinValues(u),received:l.parsedType,code:P.invalid_type}),me}if(this._cache||(this._cache=new Set(Ce.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const u=Ce.objectValues(s);return ee(l,{received:l.data,code:P.invalid_enum_value,options:u}),me}return en(a.data)}get enum(){return this._def.values}}ag.create=(n,a)=>new ag({values:n,typeName:pe.ZodNativeEnum,...be(a)});class mu extends we{unwrap(){return this._def.type}_parse(a){const{ctx:s}=this._processInputParams(a);if(s.parsedType!==ne.promise&&s.common.async===!1)return ee(s,{code:P.invalid_type,expected:ne.promise,received:s.parsedType}),me;const l=s.parsedType===ne.promise?s.data:Promise.resolve(s.data);return en(l.then(u=>this._def.type.parseAsync(u,{path:s.path,errorMap:s.common.contextualErrorMap})))}}mu.create=(n,a)=>new mu({type:n,typeName:pe.ZodPromise,...be(a)});class ss extends we{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:s,ctx:l}=this._processInputParams(a),u=this._def.effect||null,f={addIssue:d=>{ee(l,d),d.fatal?s.abort():s.dirty()},get path(){return l.path}};if(f.addIssue=f.addIssue.bind(f),u.type==="preprocess"){const d=u.transform(l.data,f);if(l.common.async)return Promise.resolve(d).then(async m=>{if(s.value==="aborted")return me;const p=await this._def.schema._parseAsync({data:m,path:l.path,parent:l});return p.status==="aborted"?me:p.status==="dirty"||s.value==="dirty"?cr(p.value):p});{if(s.value==="aborted")return me;const m=this._def.schema._parseSync({data:d,path:l.path,parent:l});return m.status==="aborted"?me:m.status==="dirty"||s.value==="dirty"?cr(m.value):m}}if(u.type==="refinement"){const d=m=>{const p=u.refinement(m,f);if(l.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return m};if(l.common.async===!1){const m=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});return m.status==="aborted"?me:(m.status==="dirty"&&s.dirty(),d(m.value),{status:s.value,value:m.value})}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(m=>m.status==="aborted"?me:(m.status==="dirty"&&s.dirty(),d(m.value).then(()=>({status:s.value,value:m.value}))))}if(u.type==="transform")if(l.common.async===!1){const d=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});if(!as(d))return me;const m=u.transform(d.value,f);if(m instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:s.value,value:m}}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(d=>as(d)?Promise.resolve(u.transform(d.value,f)).then(m=>({status:s.value,value:m})):me);Ce.assertNever(u)}}ss.create=(n,a,s)=>new ss({schema:n,typeName:pe.ZodEffects,effect:a,...be(s)});ss.createWithPreprocess=(n,a,s)=>new ss({schema:a,effect:{type:"preprocess",transform:n},typeName:pe.ZodEffects,...be(s)});class Ea extends we{_parse(a){return this._getType(a)===ne.undefined?en(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Ea.create=(n,a)=>new Ea({innerType:n,typeName:pe.ZodOptional,...be(a)});class rs extends we{_parse(a){return this._getType(a)===ne.null?en(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}rs.create=(n,a)=>new rs({innerType:n,typeName:pe.ZodNullable,...be(a)});class _f extends we{_parse(a){const{ctx:s}=this._processInputParams(a);let l=s.data;return s.parsedType===ne.undefined&&(l=this._def.defaultValue()),this._def.innerType._parse({data:l,path:s.path,parent:s})}removeDefault(){return this._def.innerType}}_f.create=(n,a)=>new _f({innerType:n,typeName:pe.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...be(a)});class xf extends we{_parse(a){const{ctx:s}=this._processInputParams(a),l={...s,common:{...s.common,issues:[]}},u=this._def.innerType._parse({data:l.data,path:l.path,parent:{...l}});return cu(u)?u.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Zn(l.common.issues)},input:l.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Zn(l.common.issues)},input:l.data})}}removeCatch(){return this._def.innerType}}xf.create=(n,a)=>new xf({innerType:n,typeName:pe.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...be(a)});class ig extends we{_parse(a){if(this._getType(a)!==ne.nan){const l=this._getOrReturnCtx(a);return ee(l,{code:P.invalid_type,expected:ne.nan,received:l.parsedType}),me}return{status:"valid",value:a.data}}}ig.create=n=>new ig({typeName:pe.ZodNaN,...be(n)});class HR extends we{_parse(a){const{ctx:s}=this._processInputParams(a),l=s.data;return this._def.type._parse({data:l,path:s.path,parent:s})}unwrap(){return this._def.type}}class kf extends we{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:l.data,path:l.path,parent:l});return f.status==="aborted"?me:f.status==="dirty"?(s.dirty(),cr(f.value)):this._def.out._parseAsync({data:f.value,path:l.path,parent:l})})();{const u=this._def.in._parseSync({data:l.data,path:l.path,parent:l});return u.status==="aborted"?me:u.status==="dirty"?(s.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:l.path,parent:l})}}static create(a,s){return new kf({in:a,out:s,typeName:pe.ZodPipeline})}}class Ef extends we{_parse(a){const s=this._def.innerType._parse(a),l=u=>(as(u)&&(u.value=Object.freeze(u.value)),u);return cu(s)?s.then(u=>l(u)):l(s)}unwrap(){return this._def.innerType}}Ef.create=(n,a)=>new Ef({innerType:n,typeName:pe.ZodReadonly,...be(a)});var pe;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(pe||(pe={}));const $i=_a.create;Ra.create;pn.create;const Nv=st.create;du.create;hu.create;ni.create;is.create;mu.create;Ea.create;rs.create;const kR=()=>Hf(()=>import("./register-CUUVGLJE.js"),__vite__mapDeps([0,1,2])),qR=Lf("/register")({head:()=>({meta:[{title:"Create Account — Office Viewer"},{name:"description",content:"Create your Office Viewer account."}]}),component:jf(kR,"component")});Nv({fullName:$i().min(2,"Name must be at least 2 characters").max(100,"Name is too long"),email:$i().email("Please enter a valid email address"),password:$i().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Must contain at least one uppercase letter").regex(/[0-9]/,"Must contain at least one number"),confirmPassword:$i()}).refine(n=>n.password===n.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"});const ZR=()=>Hf(()=>import("./login-DEy3R1iD.js"),__vite__mapDeps([3,1,2])),VR=Lf("/login")({head:()=>({meta:[{title:"Sign In — Office Viewer"},{name:"description",content:"Sign in to your Office Viewer account."}]}),component:jf(ZR,"component")});Nv({email:$i().email("Please enter a valid email address"),password:$i().min(6,"Password must be at least 6 characters")});const YR=()=>Hf(()=>import("./index-BDMLGHcR.js"),__vite__mapDeps([4,2])),QR=Lf("/")({head:()=>({meta:[{title:"Office Viewer — Word, Excel & PowerPoint"},{name:"description",content:"Upload and view Word, Excel and PowerPoint files directly in your browser. Nothing is uploaded — everything renders locally."},{property:"og:title",content:"Office Viewer"},{property:"og:description",content:"View Word, Excel and PowerPoint files directly in your browser."}]}),component:jf(YR,"component")}),GR=qR.update({id:"/register",path:"/register",getParentRoute:()=>Tr}),XR=VR.update({id:"/login",path:"/login",getParentRoute:()=>Tr}),KR=QR.update({id:"/",path:"/",getParentRoute:()=>Tr}),PR={IndexRoute:KR,LoginRoute:XR,RegisterRoute:GR},FR=Tr._addFileChildren(PR),JR=()=>{const n=new nR;return gT({routeTree:FR,context:{queryClient:n},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function IR(){const n=await JR();let a;if(Ly){const s=await Ly.getOptions();s.serializationAdapters=s.serializationAdapters??[],window.__TSS_START_OPTIONS__=s,a=s.serializationAdapters,n.options.defaultSsr=s.defaultSsr}else a=[],window.__TSS_START_OPTIONS__={serializationAdapters:a};return a.push(_E),n.options.serializationAdapters&&a.push(...n.options.serializationAdapters),n.update({basepath:"",serializationAdapters:a}),n.stores.matchesId.get().length||await EE(n),n}var $R=IR;async function WR(){const n=await $R();return window.$_TSR?.h(),n}var af;function ew(){return af||(af=WR()),K.jsx(AE,{promise:af,children:n=>K.jsx(ST,{router:n})})}ie.startTransition(()=>{oS.hydrateRoot(document,K.jsx(ie.StrictMode,{children:K.jsx(ew,{})}))});export{Nf as L,ns as R,Hf as _,nw as a,tw as c,eS as g,K as j,Nv as o,ie as r,$i as s};
|