tracer-sh 0.2.2 → 0.2.3
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/package.json +1 -1
- package/packages/server/dist/{chunk-6QUU7TGZ.js → chunk-IKD3ICQK.js} +2 -0
- package/packages/server/dist/{chunk-OTYSD6PF.js → chunk-L7TO4UJ4.js} +2 -0
- package/packages/server/dist/{chunk-4VNS5WPM.js → chunk-WOL2ZWU7.js} +1 -0
- package/packages/server/dist/{chunk-7J2BYJNR.js → chunk-WUFQGSGW.js} +2 -1
- package/packages/server/dist/{chunk-5IQ4TST5.js → chunk-XFJVNMJI.js} +2 -0
- package/packages/server/dist/{domain-knowledge-WHIEZOOH.js → domain-knowledge-4AAER546.js} +3 -2
- package/packages/server/dist/{domain-knowledge-V6AENXZV.js → domain-knowledge-A3WXZ55R.js} +3 -2
- package/packages/server/dist/{domain-knowledge-5ZUPRLNB.js → domain-knowledge-CAD7MDFJ.js} +3 -2
- package/packages/server/dist/index.js +107 -29
- package/packages/server/dist/{token-4WRACUIQ.js → token-QV5VOVJ4.js} +3 -2
- package/packages/server/dist/token-util-DLXYCJR4.js +6 -0
- package/packages/web/dist/assets/{SearchableSelect-CGq3RJiX.js → SearchableSelect-DwcqGvga.js} +1 -1
- package/packages/web/dist/assets/{Settings-CSYYBQF1.js → Settings-V6P0atyS.js} +1 -1
- package/packages/web/dist/assets/{highlighted-body-OFNGDK62-CnIKGHSu.js → highlighted-body-OFNGDK62-BI81QblF.js} +1 -1
- package/packages/web/dist/assets/{index-DLQaH2AJ.css → index-CxrnanDH.css} +1 -1
- package/packages/web/dist/assets/index-XO-cs6YP.js +48 -0
- package/packages/web/dist/assets/{mermaid-GHXKKRXX-D9p_GS3a.js → mermaid-GHXKKRXX-mO3J4JDi.js} +3 -3
- package/packages/web/dist/index.html +2 -2
- package/packages/server/dist/token-util-NKFL6ZOU.js +0 -5
- package/packages/web/dist/assets/index-_7TPlTNo.js +0 -48
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-GHXKKRXX-mO3J4JDi.js","assets/SearchableSelect-DwcqGvga.js","assets/mermaid-GHXKKRXX-B9Z7D9kT.css","assets/Settings-V6P0atyS.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function Ab(n,a){for(var u=0;u<a.length;u++){const l=a[u];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in n)){const f=Object.getOwnPropertyDescriptor(l,s);f&&Object.defineProperty(n,s,f.get?f:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function u(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(s){if(s.ep)return;s.ep=!0;const f=u(s);fetch(s.href,f)}})();function jb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Io={exports:{}},gi={};var tm;function Mb(){if(tm)return gi;tm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(l,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var h in s)h!=="key"&&(f[h]=s[h])}else f=s;return s=f.ref,{$$typeof:n,type:l,key:d,ref:s!==void 0?s:null,props:f}}return gi.Fragment=a,gi.jsx=u,gi.jsxs=u,gi}var nm;function Cb(){return nm||(nm=1,Io.exports=Mb()),Io.exports}var R=Cb(),Wo={exports:{}},ce={};var am;function Rb(){if(am)return ce;am=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),w=Symbol.iterator;function Q(_){return _===null||typeof _!="object"?null:(_=w&&_[w]||_["@@iterator"],typeof _=="function"?_:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,le={};function se(_,N,k){this.props=_,this.context=N,this.refs=le,this.updater=k||$}se.prototype.isReactComponent={},se.prototype.setState=function(_,N){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,N,"setState")},se.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function Ce(){}Ce.prototype=se.prototype;function de(_,N,k){this.props=_,this.context=N,this.refs=le,this.updater=k||$}var ve=de.prototype=new Ce;ve.constructor=de,H(ve,se.prototype),ve.isPureReactComponent=!0;var V=Array.isArray;function X(){}var M={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function I(_,N,k){var B=k.ref;return{$$typeof:n,type:_,key:N,ref:B!==void 0?B:null,props:k}}function ae(_,N){return I(_.type,N,_.props)}function ne(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function P(_){var N={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(k){return N[k]})}var he=/\/+/g;function fe(_,N){return typeof _=="object"&&_!==null&&_.key!=null?P(""+_.key):N.toString(36)}function ye(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(X,X):(_.status="pending",_.then(function(N){_.status==="pending"&&(_.status="fulfilled",_.value=N)},function(N){_.status==="pending"&&(_.status="rejected",_.reason=N)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function x(_,N,k,B,W){var oe=typeof _;(oe==="undefined"||oe==="boolean")&&(_=null);var Ee=!1;if(_===null)Ee=!0;else switch(oe){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(_.$$typeof){case n:case a:Ee=!0;break;case g:return Ee=_._init,x(Ee(_._payload),N,k,B,W)}}if(Ee)return W=W(_),Ee=B===""?"."+fe(_,0):B,V(W)?(k="",Ee!=null&&(k=Ee.replace(he,"$&/")+"/"),x(W,N,k,"",function(Er){return Er})):W!=null&&(ne(W)&&(W=ae(W,k+(W.key==null||_&&_.key===W.key?"":(""+W.key).replace(he,"$&/")+"/")+Ee)),N.push(W)),1;Ee=0;var pt=B===""?".":B+":";if(V(_))for(var Pe=0;Pe<_.length;Pe++)B=_[Pe],oe=pt+fe(B,Pe),Ee+=x(B,N,k,oe,W);else if(Pe=Q(_),typeof Pe=="function")for(_=Pe.call(_),Pe=0;!(B=_.next()).done;)B=B.value,oe=pt+fe(B,Pe++),Ee+=x(B,N,k,oe,W);else if(oe==="object"){if(typeof _.then=="function")return x(ye(_),N,k,B,W);throw N=String(_),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function Z(_,N,k){if(_==null)return _;var B=[],W=0;return x(_,B,"","",function(oe){return N.call(k,oe,W++)}),B}function G(_){if(_._status===-1){var N=_._result;N=N(),N.then(function(k){(_._status===0||_._status===-1)&&(_._status=1,_._result=k)},function(k){(_._status===0||_._status===-1)&&(_._status=2,_._result=k)}),_._status===-1&&(_._status=0,_._result=N)}if(_._status===1)return _._result.default;throw _._result}var te=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},re={map:Z,forEach:function(_,N,k){Z(_,function(){N.apply(this,arguments)},k)},count:function(_){var N=0;return Z(_,function(){N++}),N},toArray:function(_){return Z(_,function(N){return N})||[]},only:function(_){if(!ne(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return ce.Activity=O,ce.Children=re,ce.Component=se,ce.Fragment=u,ce.Profiler=s,ce.PureComponent=de,ce.StrictMode=l,ce.Suspense=m,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,ce.__COMPILER_RUNTIME={__proto__:null,c:function(_){return M.H.useMemoCache(_)}},ce.cache=function(_){return function(){return _.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(_,N,k){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var B=H({},_.props),W=_.key;if(N!=null)for(oe in N.key!==void 0&&(W=""+N.key),N)!Y.call(N,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&N.ref===void 0||(B[oe]=N[oe]);var oe=arguments.length-2;if(oe===1)B.children=k;else if(1<oe){for(var Ee=Array(oe),pt=0;pt<oe;pt++)Ee[pt]=arguments[pt+2];B.children=Ee}return I(_.type,W,B)},ce.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},ce.createElement=function(_,N,k){var B,W={},oe=null;if(N!=null)for(B in N.key!==void 0&&(oe=""+N.key),N)Y.call(N,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(W[B]=N[B]);var Ee=arguments.length-2;if(Ee===1)W.children=k;else if(1<Ee){for(var pt=Array(Ee),Pe=0;Pe<Ee;Pe++)pt[Pe]=arguments[Pe+2];W.children=pt}if(_&&_.defaultProps)for(B in Ee=_.defaultProps,Ee)W[B]===void 0&&(W[B]=Ee[B]);return I(_,oe,W)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(_){return{$$typeof:h,render:_}},ce.isValidElement=ne,ce.lazy=function(_){return{$$typeof:g,_payload:{_status:-1,_result:_},_init:G}},ce.memo=function(_,N){return{$$typeof:y,type:_,compare:N===void 0?null:N}},ce.startTransition=function(_){var N=M.T,k={};M.T=k;try{var B=_(),W=M.S;W!==null&&W(k,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(X,te)}catch(oe){te(oe)}finally{N!==null&&k.types!==null&&(N.types=k.types),M.T=N}},ce.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},ce.use=function(_){return M.H.use(_)},ce.useActionState=function(_,N,k){return M.H.useActionState(_,N,k)},ce.useCallback=function(_,N){return M.H.useCallback(_,N)},ce.useContext=function(_){return M.H.useContext(_)},ce.useDebugValue=function(){},ce.useDeferredValue=function(_,N){return M.H.useDeferredValue(_,N)},ce.useEffect=function(_,N){return M.H.useEffect(_,N)},ce.useEffectEvent=function(_){return M.H.useEffectEvent(_)},ce.useId=function(){return M.H.useId()},ce.useImperativeHandle=function(_,N,k){return M.H.useImperativeHandle(_,N,k)},ce.useInsertionEffect=function(_,N){return M.H.useInsertionEffect(_,N)},ce.useLayoutEffect=function(_,N){return M.H.useLayoutEffect(_,N)},ce.useMemo=function(_,N){return M.H.useMemo(_,N)},ce.useOptimistic=function(_,N){return M.H.useOptimistic(_,N)},ce.useReducer=function(_,N,k){return M.H.useReducer(_,N,k)},ce.useRef=function(_){return M.H.useRef(_)},ce.useState=function(_){return M.H.useState(_)},ce.useSyncExternalStore=function(_,N,k){return M.H.useSyncExternalStore(_,N,k)},ce.useTransition=function(){return M.H.useTransition()},ce.version="19.2.5",ce}var rm;function Nc(){return rm||(rm=1,Wo.exports=Rb()),Wo.exports}var L=Nc();const Db=jb(L),Nb=Ab({__proto__:null,default:Db},[L]);var ec={exports:{}},bi={},tc={exports:{}},nc={};var im;function Ub(){return im||(im=1,(function(n){function a(x,Z){var G=x.length;x.push(Z);e:for(;0<G;){var te=G-1>>>1,re=x[te];if(0<s(re,Z))x[te]=Z,x[G]=re,G=te;else break e}}function u(x){return x.length===0?null:x[0]}function l(x){if(x.length===0)return null;var Z=x[0],G=x.pop();if(G!==Z){x[0]=G;e:for(var te=0,re=x.length,_=re>>>1;te<_;){var N=2*(te+1)-1,k=x[N],B=N+1,W=x[B];if(0>s(k,G))B<re&&0>s(W,k)?(x[te]=W,x[B]=G,te=B):(x[te]=k,x[N]=G,te=N);else if(B<re&&0>s(W,G))x[te]=W,x[B]=G,te=B;else break e}}return Z}function s(x,Z){var G=x.sortIndex-Z.sortIndex;return G!==0?G:x.id-Z.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,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],y=[],g=1,O=null,w=3,Q=!1,$=!1,H=!1,le=!1,se=typeof setTimeout=="function"?setTimeout:null,Ce=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;function ve(x){for(var Z=u(y);Z!==null;){if(Z.callback===null)l(y);else if(Z.startTime<=x)l(y),Z.sortIndex=Z.expirationTime,a(m,Z);else break;Z=u(y)}}function V(x){if(H=!1,ve(x),!$)if(u(m)!==null)$=!0,X||(X=!0,P());else{var Z=u(y);Z!==null&&ye(V,Z.startTime-x)}}var X=!1,M=-1,Y=5,I=-1;function ae(){return le?!0:!(n.unstable_now()-I<Y)}function ne(){if(le=!1,X){var x=n.unstable_now();I=x;var Z=!0;try{e:{$=!1,H&&(H=!1,Ce(M),M=-1),Q=!0;var G=w;try{t:{for(ve(x),O=u(m);O!==null&&!(O.expirationTime>x&&ae());){var te=O.callback;if(typeof te=="function"){O.callback=null,w=O.priorityLevel;var re=te(O.expirationTime<=x);if(x=n.unstable_now(),typeof re=="function"){O.callback=re,ve(x),Z=!0;break t}O===u(m)&&l(m),ve(x)}else l(m);O=u(m)}if(O!==null)Z=!0;else{var _=u(y);_!==null&&ye(V,_.startTime-x),Z=!1}}break e}finally{O=null,w=G,Q=!1}Z=void 0}}finally{Z?P():X=!1}}}var P;if(typeof de=="function")P=function(){de(ne)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,fe=he.port2;he.port1.onmessage=ne,P=function(){fe.postMessage(null)}}else P=function(){se(ne,0)};function ye(x,Z){M=se(function(){x(n.unstable_now())},Z)}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(x){x.callback=null},n.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<x?Math.floor(1e3/x):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(x){switch(w){case 1:case 2:case 3:var Z=3;break;default:Z=w}var G=w;w=Z;try{return x()}finally{w=G}},n.unstable_requestPaint=function(){le=!0},n.unstable_runWithPriority=function(x,Z){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var G=w;w=x;try{return Z()}finally{w=G}},n.unstable_scheduleCallback=function(x,Z,G){var te=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?te+G:te):G=te,x){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=G+re,x={id:g++,callback:Z,priorityLevel:x,startTime:G,expirationTime:re,sortIndex:-1},G>te?(x.sortIndex=G,a(y,x),u(m)===null&&x===u(y)&&(H?(Ce(M),M=-1):H=!0,ye(V,G-te))):(x.sortIndex=re,a(m,x),$||Q||($=!0,X||(X=!0,P()))),x},n.unstable_shouldYield=ae,n.unstable_wrapCallback=function(x){var Z=w;return function(){var G=w;w=Z;try{return x.apply(this,arguments)}finally{w=G}}}})(nc)),nc}var um;function Zb(){return um||(um=1,tc.exports=Ub()),tc.exports}var ac={exports:{}},ft={};var lm;function qb(){if(lm)return ft;lm=1;var n=Nc();function a(m){var y="https://react.dev/errors/"+m;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)y+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var l={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(m,y,g){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:O==null?null:""+O,children:m,containerInfo:y,implementation:g}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ft.createPortal=function(m,y){var g=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(m,y,null,g)},ft.flushSync=function(m){var y=d.T,g=l.p;try{if(d.T=null,l.p=2,m)return m()}finally{d.T=y,l.p=g,l.d.f()}},ft.preconnect=function(m,y){typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,l.d.C(m,y))},ft.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},ft.preinit=function(m,y){if(typeof m=="string"&&y&&typeof y.as=="string"){var g=y.as,O=h(g,y.crossOrigin),w=typeof y.integrity=="string"?y.integrity:void 0,Q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;g==="style"?l.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:O,integrity:w,fetchPriority:Q}):g==="script"&&l.d.X(m,{crossOrigin:O,integrity:w,fetchPriority:Q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ft.preinitModule=function(m,y){if(typeof m=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var g=h(y.as,y.crossOrigin);l.d.M(m,{crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&l.d.M(m)},ft.preload=function(m,y){if(typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var g=y.as,O=h(g,y.crossOrigin);l.d.L(m,g,{crossOrigin:O,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})}},ft.preloadModule=function(m,y){if(typeof m=="string")if(y){var g=h(y.as,y.crossOrigin);l.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else l.d.m(m)},ft.requestFormReset=function(m){l.d.r(m)},ft.unstable_batchedUpdates=function(m,y){return m(y)},ft.useFormState=function(m,y,g){return d.H.useFormState(m,y,g)},ft.useFormStatus=function(){return d.H.useHostTransitionStatus()},ft.version="19.2.5",ft}var sm;function Qb(){if(sm)return ac.exports;sm=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(),ac.exports=qb(),ac.exports}var om;function kb(){if(om)return bi;om=1;var n=Zb(),a=Nc(),u=Qb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r: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 h(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 m(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 r=e,i=t;;){var o=r.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){r=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===r)return m(o),e;if(c===i)return m(o),t;c=c.sibling}throw Error(l(188))}if(r.return!==i.return)r=o,i=c;else{for(var p=!1,v=o.child;v;){if(v===r){p=!0,r=o,i=c;break}if(v===i){p=!0,i=o,r=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===r){p=!0,r=c,i=o;break}if(v===i){p=!0,i=c,r=o;break}v=v.sibling}if(!p)throw Error(l(189))}}if(r.alternate!==i)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var O=Object.assign,w=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),le=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),Ce=Symbol.for("react.consumer"),de=Symbol.for("react.context"),ve=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case se:return"Profiler";case le:return"StrictMode";case V:return"Suspense";case X:return"SuspenseList";case I:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case de:return e.displayName||"Context";case Ce:return(e._context.displayName||"Context")+".Consumer";case ve:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var ye=Array.isArray,x=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},te=[],re=-1;function _(e){return{current:e}}function N(e){0>re||(e.current=te[re],te[re]=null,re--)}function k(e,t){re++,te[re]=e.current,e.current=t}var B=_(null),W=_(null),oe=_(null),Ee=_(null);function pt(e,t){switch(k(oe,t),k(W,e),k(B,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?zp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=zp(t),e=Ep(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}N(B),k(B,e)}function Pe(){N(B),N(W),N(oe)}function Er(e){e.memoizedState!==null&&k(Ee,e);var t=B.current,r=Ep(t,e.type);t!==r&&(k(W,e),k(B,r))}function Qi(e){W.current===e&&(N(B),N(W)),Ee.current===e&&(N(Ee),pi._currentValue=G)}var Dl,Wc;function ua(e){if(Dl===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Dl=t&&t[1]||"",Wc=-1<r.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+Dl+e+Wc}var Nl=!1;function Ul(e,t){if(!e||Nl)return"";Nl=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(j){var A=j}Reflect.construct(e,[],q)}else{try{q.call()}catch(j){A=j}e.call(q.prototype)}}else{try{throw Error()}catch(j){A=j}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(j){if(j&&A&&typeof j.stack=="string")return[j.stack,A.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var b=p.split(`
|
|
5
|
+
`),T=v.split(`
|
|
6
|
+
`);for(o=i=0;i<b.length&&!b[i].includes("DetermineComponentFrameRoot");)i++;for(;o<T.length&&!T[o].includes("DetermineComponentFrameRoot");)o++;if(i===b.length||o===T.length)for(i=b.length-1,o=T.length-1;1<=i&&0<=o&&b[i]!==T[o];)o--;for(;1<=i&&0<=o;i--,o--)if(b[i]!==T[o]){if(i!==1||o!==1)do if(i--,o--,0>o||b[i]!==T[o]){var C=`
|
|
7
|
+
`+b[i].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=i&&0<=o);break}}}finally{Nl=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ua(r):""}function ig(e,t){switch(e.tag){case 26:case 27:case 5:return ua(e.type);case 16:return ua("Lazy");case 13:return e.child!==t&&t!==null?ua("Suspense Fallback"):ua("Suspense");case 19:return ua("SuspenseList");case 0:case 15:return Ul(e.type,!1);case 11:return Ul(e.type.render,!1);case 1:return Ul(e.type,!0);case 31:return ua("Activity");default:return""}}function ef(e){try{var t="",r=null;do t+=ig(e,r),r=e,e=e.return;while(e);return t}catch(i){return`
|
|
8
|
+
Error generating stack: `+i.message+`
|
|
9
|
+
`+i.stack}}var Zl=Object.prototype.hasOwnProperty,ql=n.unstable_scheduleCallback,Ql=n.unstable_cancelCallback,ug=n.unstable_shouldYield,lg=n.unstable_requestPaint,Tt=n.unstable_now,sg=n.unstable_getCurrentPriorityLevel,tf=n.unstable_ImmediatePriority,nf=n.unstable_UserBlockingPriority,ki=n.unstable_NormalPriority,og=n.unstable_LowPriority,af=n.unstable_IdlePriority,cg=n.log,fg=n.unstable_setDisableYieldValue,Tr=null,wt=null;function En(e){if(typeof cg=="function"&&fg(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Tr,e)}catch{}}var At=Math.clz32?Math.clz32:pg,dg=Math.log,hg=Math.LN2;function pg(e){return e>>>=0,e===0?32:31-(dg(e)/hg|0)|0}var Hi=256,Bi=262144,Li=4194304;function la(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 $i(e,t,r){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~c,i!==0?o=la(i):(p&=v,p!==0?o=la(p):r||(r=v&~e,r!==0&&(o=la(r))))):(v=i&~c,v!==0?o=la(v):p!==0?o=la(p):r||(r=i&~e,r!==0&&(o=la(r)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,r=t&-t,c>=r||c===32&&(r&4194048)!==0)?t:o}function wr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mg(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 rf(){var e=Li;return Li<<=1,(Li&62914560)===0&&(Li=4194304),e}function kl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ar(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yg(e,t,r,i,o,c){var p=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var v=e.entanglements,b=e.expirationTimes,T=e.hiddenUpdates;for(r=p&~r;0<r;){var C=31-At(r),q=1<<C;v[C]=0,b[C]=-1;var A=T[C];if(A!==null)for(T[C]=null,C=0;C<A.length;C++){var j=A[C];j!==null&&(j.lane&=-536870913)}r&=~q}i!==0&&uf(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function uf(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-At(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|r&261930}function lf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-At(r),o=1<<i;o&t|e[i]&t&&(e[i]|=t),r&=~o}}function sf(e,t){var r=t&-t;return r=(r&42)!==0?1:Hl(r),(r&(e.suspendedLanes|t))!==0?0:r}function Hl(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 Bl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function of(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Xp(e.type))}function cf(e,t){var r=Z.p;try{return Z.p=e,t()}finally{Z.p=r}}var Tn=Math.random().toString(36).slice(2),ut="__reactFiber$"+Tn,gt="__reactProps$"+Tn,Ca="__reactContainer$"+Tn,Ll="__reactEvents$"+Tn,vg="__reactListeners$"+Tn,gg="__reactHandles$"+Tn,ff="__reactResources$"+Tn,jr="__reactMarker$"+Tn;function $l(e){delete e[ut],delete e[gt],delete e[Ll],delete e[vg],delete e[gg]}function Ra(e){var t=e[ut];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ca]||r[ut]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Rp(e);e!==null;){if(r=e[ut])return r;e=Rp(e)}return t}e=r,r=e.parentNode}return null}function Da(e){if(e=e[ut]||e[Ca]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Mr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function Na(e){var t=e[ff];return t||(t=e[ff]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[jr]=!0}var df=new Set,hf={};function sa(e,t){Ua(e,t),Ua(e+"Capture",t)}function Ua(e,t){for(hf[e]=t,e=0;e<t.length;e++)df.add(t[e])}var bg=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]*$"),pf={},mf={};function _g(e){return Zl.call(mf,e)?!0:Zl.call(pf,e)?!1:bg.test(e)?mf[e]=!0:(pf[e]=!0,!1)}function Gi(e,t,r){if(_g(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function Yi(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function ln(e,t,r,i){if(i===null)e.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+i)}}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 yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sg(e,t,r){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){r=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(p){r=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gl(e){if(!e._valueTracker){var t=yf(e)?"checked":"value";e._valueTracker=Sg(e,t,""+e[t])}}function vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=yf(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function Vi(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 Og=/[\n"\\]/g;function Qt(e){return e.replace(Og,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yl(e,t,r,i,o,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Vl(e,p,qt(t)):r!=null?Vl(e,p,qt(r)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+qt(v):e.removeAttribute("name")}function gf(e,t,r,i,o,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||r!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Gl(e);return}r=r!=null?""+qt(r):"",t=t!=null?""+qt(t):r,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Gl(e)}function Vl(e,t,r){t==="number"&&Vi(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Za(e,t,r,i){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&i&&(e[r].defaultSelected=!0)}else{for(r=""+qt(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function bf(e,t,r){if(t!=null&&(t=""+qt(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+qt(r):""}function _f(e,t,r,i){if(t==null){if(i!=null){if(r!=null)throw Error(l(92));if(ye(i)){if(1<i.length)throw Error(l(93));i=i[0]}r=i}r==null&&(r=""),t=r}r=qt(t),e.defaultValue=r,i=e.textContent,i===r&&i!==""&&i!==null&&(e.value=i),Gl(e)}function qa(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var xg=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 Sf(e,t,r){var i=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,r):typeof r!="number"||r===0||xg.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Of(e,t,r){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,r!=null){for(var i in r)!r.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&r[o]!==i&&Sf(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&Sf(e,c,t[c])}function Kl(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 zg=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"]]),Eg=/^[\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 Ki(e){return Eg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sn(){}var Xl=null;function Pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,ka=null;function xf(e){var t=Da(e);if(t&&(e=t.stateNode)){var r=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Yl(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var o=i[gt]||null;if(!o)throw Error(l(90));Yl(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<r.length;t++)i=r[t],i.form===e.form&&vf(i)}break e;case"textarea":bf(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Za(e,!!r.multiple,t,!1)}}}var Jl=!1;function zf(e,t,r){if(Jl)return e(t,r);Jl=!0;try{var i=e(t);return i}finally{if(Jl=!1,(Qa!==null||ka!==null)&&(Nu(),Qa&&(t=Qa,e=ka,ka=Qa=null,xf(t),e)))for(t=0;t<e.length;t++)xf(e[t])}}function Cr(e,t){var r=e.stateNode;if(r===null)return null;var i=r[gt]||null;if(i===null)return null;r=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,t,typeof r));return r}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fl=!1;if(on)try{var Rr={};Object.defineProperty(Rr,"passive",{get:function(){Fl=!0}}),window.addEventListener("test",Rr,Rr),window.removeEventListener("test",Rr,Rr)}catch{Fl=!1}var wn=null,Il=null,Xi=null;function Ef(){if(Xi)return Xi;var e,t=Il,r=t.length,i,o="value"in wn?wn.value:wn.textContent,c=o.length;for(e=0;e<r&&t[e]===o[e];e++);var p=r-e;for(i=1;i<=p&&t[r-i]===o[c-i];i++);return Xi=o.slice(e,1<i?1-i:void 0)}function Pi(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 Ji(){return!0}function Tf(){return!1}function bt(e){function t(r,i,o,c,p){this._reactName=r,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(r=e[v],this[v]=r?r(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ji:Tf,this.isPropagationStopped=Tf,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ji)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ji)},persist:function(){},isPersistent:Ji}),t}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fi=bt(oa),Dr=O({},oa,{view:0,detail:0}),Tg=bt(Dr),Wl,es,Nr,Ii=O({},Dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ns,button:0,buttons:0,relatedTarget:function(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!==Nr&&(Nr&&e.type==="mousemove"?(Wl=e.screenX-Nr.screenX,es=e.screenY-Nr.screenY):es=Wl=0,Nr=e),Wl)},movementY:function(e){return"movementY"in e?e.movementY:es}}),wf=bt(Ii),wg=O({},Ii,{dataTransfer:0}),Ag=bt(wg),jg=O({},Dr,{relatedTarget:0}),ts=bt(jg),Mg=O({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),Cg=bt(Mg),Rg=O({},oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dg=bt(Rg),Ng=O({},oa,{data:0}),Af=bt(Ng),Ug={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zg={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"},qg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qg[e])?!!t[e]:!1}function ns(){return Qg}var kg=O({},Dr,{key:function(e){if(e.key){var t=Ug[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ns,charCode:function(e){return e.type==="keypress"?Pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hg=bt(kg),Bg=O({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jf=bt(Bg),Lg=O({},Dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ns}),$g=bt(Lg),Gg=O({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=bt(Gg),Vg=O({},Ii,{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}),Kg=bt(Vg),Xg=O({},oa,{newState:0,oldState:0}),Pg=bt(Xg),Jg=[9,13,27,32],as=on&&"CompositionEvent"in window,Ur=null;on&&"documentMode"in document&&(Ur=document.documentMode);var Fg=on&&"TextEvent"in window&&!Ur,Mf=on&&(!as||Ur&&8<Ur&&11>=Ur),Cf=" ",Rf=!1;function Df(e,t){switch(e){case"keyup":return Jg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ha=!1;function Ig(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(Rf=!0,Cf);case"textInput":return e=t.data,e===Cf&&Rf?null:e;default:return null}}function Wg(e,t){if(Ha)return e==="compositionend"||!as&&Df(e,t)?(e=Ef(),Xi=Il=wn=null,Ha=!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 Mf&&t.locale!=="ko"?null:t.data;default:return null}}var e0={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 Uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e0[e.type]:t==="textarea"}function Zf(e,t,r,i){Qa?ka?ka.push(i):ka=[i]:Qa=i,t=Bu(t,"onChange"),0<t.length&&(r=new Fi("onChange","change",null,r,i),e.push({event:r,listeners:t}))}var Zr=null,qr=null;function t0(e){gp(e,0)}function Wi(e){var t=Mr(e);if(vf(t))return e}function qf(e,t){if(e==="change")return t}var Qf=!1;if(on){var rs;if(on){var is="oninput"in document;if(!is){var kf=document.createElement("div");kf.setAttribute("oninput","return;"),is=typeof kf.oninput=="function"}rs=is}else rs=!1;Qf=rs&&(!document.documentMode||9<document.documentMode)}function Hf(){Zr&&(Zr.detachEvent("onpropertychange",Bf),qr=Zr=null)}function Bf(e){if(e.propertyName==="value"&&Wi(qr)){var t=[];Zf(t,qr,e,Pl(e)),zf(t0,t)}}function n0(e,t,r){e==="focusin"?(Hf(),Zr=t,qr=r,Zr.attachEvent("onpropertychange",Bf)):e==="focusout"&&Hf()}function a0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wi(qr)}function r0(e,t){if(e==="click")return Wi(t)}function i0(e,t){if(e==="input"||e==="change")return Wi(t)}function u0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:u0;function Qr(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var o=r[i];if(!Zl.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function Lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $f(e,t){var r=Lf(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Lf(r)}}function Gf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vi(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vi(e.document)}return t}function us(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 l0=on&&"documentMode"in document&&11>=document.documentMode,Ba=null,ls=null,kr=null,ss=!1;function Vf(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ss||Ba==null||Ba!==Vi(i)||(i=Ba,"selectionStart"in i&&us(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),kr&&Qr(kr,i)||(kr=i,i=Bu(ls,"onSelect"),0<i.length&&(t=new Fi("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=Ba)))}function ca(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var La={animationend:ca("Animation","AnimationEnd"),animationiteration:ca("Animation","AnimationIteration"),animationstart:ca("Animation","AnimationStart"),transitionrun:ca("Transition","TransitionRun"),transitionstart:ca("Transition","TransitionStart"),transitioncancel:ca("Transition","TransitionCancel"),transitionend:ca("Transition","TransitionEnd")},os={},Kf={};on&&(Kf=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function fa(e){if(os[e])return os[e];if(!La[e])return e;var t=La[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Kf)return os[e]=t[r];return e}var Xf=fa("animationend"),Pf=fa("animationiteration"),Jf=fa("animationstart"),s0=fa("transitionrun"),o0=fa("transitionstart"),c0=fa("transitioncancel"),Ff=fa("transitionend"),If=new Map,cs="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(" ");cs.push("scrollEnd");function Pt(e,t){If.set(e,t),sa(t,[e])}var eu=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)},kt=[],$a=0,fs=0;function tu(){for(var e=$a,t=fs=$a=0;t<e;){var r=kt[t];kt[t++]=null;var i=kt[t];kt[t++]=null;var o=kt[t];kt[t++]=null;var c=kt[t];if(kt[t++]=null,i!==null&&o!==null){var p=i.pending;p===null?o.next=o:(o.next=p.next,p.next=o),i.pending=o}c!==0&&Wf(r,o,c)}}function nu(e,t,r,i){kt[$a++]=e,kt[$a++]=t,kt[$a++]=r,kt[$a++]=i,fs|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function ds(e,t,r,i){return nu(e,t,r,i),au(e)}function da(e,t){return nu(e,null,null,t),au(e)}function Wf(e,t,r){e.lanes|=r;var i=e.alternate;i!==null&&(i.lanes|=r);for(var o=!1,c=e.return;c!==null;)c.childLanes|=r,i=c.alternate,i!==null&&(i.childLanes|=r),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-At(r),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=r|536870912),c):null}function au(e){if(50<li)throw li=0,Oo=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ga={};function f0(e,t,r,i){this.tag=e,this.key=r,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,r,i){return new f0(e,t,r,i)}function hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cn(e,t){var r=e.alternate;return r===null?(r=Mt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function ed(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ru(e,t,r,i,o,c){var p=0;if(i=e,typeof e=="function")hs(e)&&(p=1);else if(typeof e=="string")p=yb(e,r,B.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case I:return e=Mt(31,r,t,o),e.elementType=I,e.lanes=c,e;case H:return ha(r.children,o,c,t);case le:p=8,o|=24;break;case se:return e=Mt(12,r,t,o|2),e.elementType=se,e.lanes=c,e;case V:return e=Mt(13,r,t,o),e.elementType=V,e.lanes=c,e;case X:return e=Mt(19,r,t,o),e.elementType=X,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case de:p=10;break e;case Ce:p=9;break e;case ve:p=11;break e;case M:p=14;break e;case Y:p=16,i=null;break e}p=29,r=Error(l(130,e===null?"null":typeof e,"")),i=null}return t=Mt(p,r,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function ha(e,t,r,i){return e=Mt(7,e,i,t),e.lanes=r,e}function ps(e,t,r){return e=Mt(6,e,null,t),e.lanes=r,e}function td(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function ms(e,t,r){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var nd=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var r=nd.get(e);return r!==void 0?r:(t={value:e,source:t,stack:ef(t)},nd.set(e,t),t)}return{value:e,source:t,stack:ef(t)}}var Ya=[],Va=0,iu=null,Hr=0,Bt=[],Lt=0,An=null,Wt=1,en="";function fn(e,t){Ya[Va++]=Hr,Ya[Va++]=iu,iu=e,Hr=t}function ad(e,t,r){Bt[Lt++]=Wt,Bt[Lt++]=en,Bt[Lt++]=An,An=e;var i=Wt;e=en;var o=32-At(i)-1;i&=~(1<<o),r+=1;var c=32-At(t)+o;if(30<c){var p=o-o%5;c=(i&(1<<p)-1).toString(32),i>>=p,o-=p,Wt=1<<32-At(t)+o|r<<o|i,en=c+e}else Wt=1<<c|r<<o|i,en=e}function ys(e){e.return!==null&&(fn(e,1),ad(e,1,0))}function vs(e){for(;e===iu;)iu=Ya[--Va],Ya[Va]=null,Hr=Ya[--Va],Ya[Va]=null;for(;e===An;)An=Bt[--Lt],Bt[Lt]=null,en=Bt[--Lt],Bt[Lt]=null,Wt=Bt[--Lt],Bt[Lt]=null}function rd(e,t){Bt[Lt++]=Wt,Bt[Lt++]=en,Bt[Lt++]=An,Wt=t.id,en=t.overflow,An=e}var lt=null,ke=null,Oe=!1,jn=null,$t=!1,gs=Error(l(519));function Mn(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Br(Ht(t,e)),gs}function id(e){var t=e.stateNode,r=e.type,i=e.memoizedProps;switch(t[ut]=e,t[gt]=i,r){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(r=0;r<oi.length;r++)be(oi[r],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),gf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),_f(t,i.value,i.defaultValue,i.children)}r=i.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||i.suppressHydrationWarning===!0||Op(t.textContent,r)?(i.popover!=null&&(be("beforetoggle",t),be("toggle",t)),i.onScroll!=null&&be("scroll",t),i.onScrollEnd!=null&&be("scrollend",t),i.onClick!=null&&(t.onclick=sn),t=!0):t=!1,t||Mn(e,!0)}function ud(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:lt=lt.return}}function Ka(e){if(e!==lt)return!1;if(!Oe)return ud(e),Oe=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||qo(e.type,e.memoizedProps)),r=!r),r&&ke&&Mn(e),ud(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));ke=Cp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));ke=Cp(e)}else t===27?(t=ke,Gn(e.type)?(e=Lo,Lo=null,ke=e):ke=t):ke=lt?Yt(e.stateNode.nextSibling):null;return!0}function pa(){ke=lt=null,Oe=!1}function bs(){var e=jn;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),jn=null),e}function Br(e){jn===null?jn=[e]:jn.push(e)}var _s=_(null),ma=null,dn=null;function Cn(e,t,r){k(_s,t._currentValue),t._currentValue=r}function hn(e){e._currentValue=_s.current,N(_s)}function Ss(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function Os(e,t,r,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var b=0;b<t.length;b++)if(v.context===t[b]){c.lanes|=r,v=c.alternate,v!==null&&(v.lanes|=r),Ss(c.return,r,e),i||(p=null);break e}c=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(l(341));p.lanes|=r,c=p.alternate,c!==null&&(c.lanes|=r),Ss(p,r,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Xa(e,t,r,i){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 p=o.alternate;if(p===null)throw Error(l(387));if(p=p.memoizedProps,p!==null){var v=o.type;jt(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===Ee.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(pi):e=[pi])}o=o.return}e!==null&&Os(t,e,r,i),t.flags|=262144}function uu(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){ma=e,dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return ld(ma,e)}function lu(e,t){return ma===null&&ya(e),ld(e,t)}function ld(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},dn===null){if(e===null)throw Error(l(308));dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else dn=dn.next=t;return r}var d0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},h0=n.unstable_scheduleCallback,p0=n.unstable_NormalPriority,We={$$typeof:de,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xs(){return{controller:new d0,data:new Map,refCount:0}}function Lr(e){e.refCount--,e.refCount===0&&h0(p0,function(){e.controller.abort()})}var $r=null,zs=0,Pa=0,Ja=null;function m0(e,t){if($r===null){var r=$r=[];zs=0,Pa=Ao(),Ja={status:"pending",value:void 0,then:function(i){r.push(i)}}}return zs++,t.then(sd,sd),t}function sd(){if(--zs===0&&$r!==null){Ja!==null&&(Ja.status="fulfilled");var e=$r;$r=null,Pa=0,Ja=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function y0(e,t){var r=[],i={status:"pending",value:null,reason:null,then:function(o){r.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<r.length;o++)(0,r[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<r.length;o++)(0,r[o])(void 0)}),i}var od=x.S;x.S=function(e,t){Vh=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&m0(e,t),od!==null&&od(e,t)};var va=_(null);function Es(){var e=va.current;return e!==null?e:qe.pooledCache}function su(e,t){t===null?k(va,va.current):k(va,t.pool)}function cd(){var e=Es();return e===null?null:{parent:We._currentValue,pool:e}}var Fa=Error(l(460)),Ts=Error(l(474)),ou=Error(l(542)),cu={then:function(){}};function fd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function dd(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(sn,sn),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pd(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(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pd(e),e}throw ba=t,Fa}}function ga(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(ba=r,Fa):r}}var ba=null;function hd(){if(ba===null)throw Error(l(459));var e=ba;return ba=null,e}function pd(e){if(e===Fa||e===ou)throw Error(l(483))}var Ia=null,Gr=0;function fu(e){var t=Gr;return Gr+=1,Ia===null&&(Ia=[]),dd(Ia,e,t)}function Yr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function du(e,t){throw t.$$typeof===w?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function md(e){function t(z,S){if(e){var E=z.deletions;E===null?(z.deletions=[S],z.flags|=16):E.push(S)}}function r(z,S){if(!e)return null;for(;S!==null;)t(z,S),S=S.sibling;return null}function i(z){for(var S=new Map;z!==null;)z.key!==null?S.set(z.key,z):S.set(z.index,z),z=z.sibling;return S}function o(z,S){return z=cn(z,S),z.index=0,z.sibling=null,z}function c(z,S,E){return z.index=E,e?(E=z.alternate,E!==null?(E=E.index,E<S?(z.flags|=67108866,S):E):(z.flags|=67108866,S)):(z.flags|=1048576,S)}function p(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function v(z,S,E,U){return S===null||S.tag!==6?(S=ps(E,z.mode,U),S.return=z,S):(S=o(S,E),S.return=z,S)}function b(z,S,E,U){var ie=E.type;return ie===H?C(z,S,E.props.children,U,E.key):S!==null&&(S.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Y&&ga(ie)===S.type)?(S=o(S,E.props),Yr(S,E),S.return=z,S):(S=ru(E.type,E.key,E.props,null,z.mode,U),Yr(S,E),S.return=z,S)}function T(z,S,E,U){return S===null||S.tag!==4||S.stateNode.containerInfo!==E.containerInfo||S.stateNode.implementation!==E.implementation?(S=ms(E,z.mode,U),S.return=z,S):(S=o(S,E.children||[]),S.return=z,S)}function C(z,S,E,U,ie){return S===null||S.tag!==7?(S=ha(E,z.mode,U,ie),S.return=z,S):(S=o(S,E),S.return=z,S)}function q(z,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=ps(""+S,z.mode,E),S.return=z,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Q:return E=ru(S.type,S.key,S.props,null,z.mode,E),Yr(E,S),E.return=z,E;case $:return S=ms(S,z.mode,E),S.return=z,S;case Y:return S=ga(S),q(z,S,E)}if(ye(S)||P(S))return S=ha(S,z.mode,E,null),S.return=z,S;if(typeof S.then=="function")return q(z,fu(S),E);if(S.$$typeof===de)return q(z,lu(z,S),E);du(z,S)}return null}function A(z,S,E,U){var ie=S!==null?S.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return ie!==null?null:v(z,S,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Q:return E.key===ie?b(z,S,E,U):null;case $:return E.key===ie?T(z,S,E,U):null;case Y:return E=ga(E),A(z,S,E,U)}if(ye(E)||P(E))return ie!==null?null:C(z,S,E,U,null);if(typeof E.then=="function")return A(z,S,fu(E),U);if(E.$$typeof===de)return A(z,S,lu(z,E),U);du(z,E)}return null}function j(z,S,E,U,ie){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return z=z.get(E)||null,v(S,z,""+U,ie);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Q:return z=z.get(U.key===null?E:U.key)||null,b(S,z,U,ie);case $:return z=z.get(U.key===null?E:U.key)||null,T(S,z,U,ie);case Y:return U=ga(U),j(z,S,E,U,ie)}if(ye(U)||P(U))return z=z.get(E)||null,C(S,z,U,ie,null);if(typeof U.then=="function")return j(z,S,E,fu(U),ie);if(U.$$typeof===de)return j(z,S,E,lu(S,U),ie);du(S,U)}return null}function J(z,S,E,U){for(var ie=null,Te=null,ee=S,me=S=0,Se=null;ee!==null&&me<E.length;me++){ee.index>me?(Se=ee,ee=null):Se=ee.sibling;var we=A(z,ee,E[me],U);if(we===null){ee===null&&(ee=Se);break}e&&ee&&we.alternate===null&&t(z,ee),S=c(we,S,me),Te===null?ie=we:Te.sibling=we,Te=we,ee=Se}if(me===E.length)return r(z,ee),Oe&&fn(z,me),ie;if(ee===null){for(;me<E.length;me++)ee=q(z,E[me],U),ee!==null&&(S=c(ee,S,me),Te===null?ie=ee:Te.sibling=ee,Te=ee);return Oe&&fn(z,me),ie}for(ee=i(ee);me<E.length;me++)Se=j(ee,z,me,E[me],U),Se!==null&&(e&&Se.alternate!==null&&ee.delete(Se.key===null?me:Se.key),S=c(Se,S,me),Te===null?ie=Se:Te.sibling=Se,Te=Se);return e&&ee.forEach(function(Pn){return t(z,Pn)}),Oe&&fn(z,me),ie}function ue(z,S,E,U){if(E==null)throw Error(l(151));for(var ie=null,Te=null,ee=S,me=S=0,Se=null,we=E.next();ee!==null&&!we.done;me++,we=E.next()){ee.index>me?(Se=ee,ee=null):Se=ee.sibling;var Pn=A(z,ee,we.value,U);if(Pn===null){ee===null&&(ee=Se);break}e&&ee&&Pn.alternate===null&&t(z,ee),S=c(Pn,S,me),Te===null?ie=Pn:Te.sibling=Pn,Te=Pn,ee=Se}if(we.done)return r(z,ee),Oe&&fn(z,me),ie;if(ee===null){for(;!we.done;me++,we=E.next())we=q(z,we.value,U),we!==null&&(S=c(we,S,me),Te===null?ie=we:Te.sibling=we,Te=we);return Oe&&fn(z,me),ie}for(ee=i(ee);!we.done;me++,we=E.next())we=j(ee,z,me,we.value,U),we!==null&&(e&&we.alternate!==null&&ee.delete(we.key===null?me:we.key),S=c(we,S,me),Te===null?ie=we:Te.sibling=we,Te=we);return e&&ee.forEach(function(wb){return t(z,wb)}),Oe&&fn(z,me),ie}function Ze(z,S,E,U){if(typeof E=="object"&&E!==null&&E.type===H&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Q:e:{for(var ie=E.key;S!==null;){if(S.key===ie){if(ie=E.type,ie===H){if(S.tag===7){r(z,S.sibling),U=o(S,E.props.children),U.return=z,z=U;break e}}else if(S.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Y&&ga(ie)===S.type){r(z,S.sibling),U=o(S,E.props),Yr(U,E),U.return=z,z=U;break e}r(z,S);break}else t(z,S);S=S.sibling}E.type===H?(U=ha(E.props.children,z.mode,U,E.key),U.return=z,z=U):(U=ru(E.type,E.key,E.props,null,z.mode,U),Yr(U,E),U.return=z,z=U)}return p(z);case $:e:{for(ie=E.key;S!==null;){if(S.key===ie)if(S.tag===4&&S.stateNode.containerInfo===E.containerInfo&&S.stateNode.implementation===E.implementation){r(z,S.sibling),U=o(S,E.children||[]),U.return=z,z=U;break e}else{r(z,S);break}else t(z,S);S=S.sibling}U=ms(E,z.mode,U),U.return=z,z=U}return p(z);case Y:return E=ga(E),Ze(z,S,E,U)}if(ye(E))return J(z,S,E,U);if(P(E)){if(ie=P(E),typeof ie!="function")throw Error(l(150));return E=ie.call(E),ue(z,S,E,U)}if(typeof E.then=="function")return Ze(z,S,fu(E),U);if(E.$$typeof===de)return Ze(z,S,lu(z,E),U);du(z,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,S!==null&&S.tag===6?(r(z,S.sibling),U=o(S,E),U.return=z,z=U):(r(z,S),U=ps(E,z.mode,U),U.return=z,z=U),p(z)):r(z,S)}return function(z,S,E,U){try{Gr=0;var ie=Ze(z,S,E,U);return Ia=null,ie}catch(ee){if(ee===Fa||ee===ou)throw ee;var Te=Mt(29,ee,null,z.mode);return Te.lanes=U,Te.return=z,Te}}}var _a=md(!0),yd=md(!1),Rn=!1;function ws(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function As(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 Dn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(je&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=au(e),Wf(e,null,r),t}return nu(e,i,t,r),au(e)}function Vr(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,lf(e,r)}}function js(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var o=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var p={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,r=r.next}while(r!==null);c===null?o=c=t:c=c.next=t}else o=c=t;r={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Ms=!1;function Kr(){if(Ms){var e=Ja;if(e!==null)throw e}}function Xr(e,t,r,i){Ms=!1;var o=e.updateQueue;Rn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var b=v,T=b.next;b.next=null,p===null?c=T:p.next=T,p=b;var C=e.alternate;C!==null&&(C=C.updateQueue,v=C.lastBaseUpdate,v!==p&&(v===null?C.firstBaseUpdate=T:v.next=T,C.lastBaseUpdate=b))}if(c!==null){var q=o.baseState;p=0,C=T=b=null,v=c;do{var A=v.lane&-536870913,j=A!==v.lane;if(j?(_e&A)===A:(i&A)===A){A!==0&&A===Pa&&(Ms=!0),C!==null&&(C=C.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var J=e,ue=v;A=t;var Ze=r;switch(ue.tag){case 1:if(J=ue.payload,typeof J=="function"){q=J.call(Ze,q,A);break e}q=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ue.payload,A=typeof J=="function"?J.call(Ze,q,A):J,A==null)break e;q=O({},q,A);break e;case 2:Rn=!0}}A=v.callback,A!==null&&(e.flags|=64,j&&(e.flags|=8192),j=o.callbacks,j===null?o.callbacks=[A]:j.push(A))}else j={lane:A,tag:v.tag,payload:v.payload,callback:v.callback,next:null},C===null?(T=C=j,b=q):C=C.next=j,p|=A;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;j=v,v=j.next,j.next=null,o.lastBaseUpdate=j,o.shared.pending=null}}while(!0);C===null&&(b=q),o.baseState=b,o.firstBaseUpdate=T,o.lastBaseUpdate=C,c===null&&(o.shared.lanes=0),kn|=p,e.lanes=p,e.memoizedState=q}}function vd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function gd(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)vd(r[e],t)}var Wa=_(null),hu=_(0);function bd(e,t){e=On,k(hu,e),k(Wa,t),On=e|t.baseLanes}function Cs(){k(hu,On),k(Wa,Wa.current)}function Rs(){On=hu.current,N(Wa),N(hu)}var Ct=_(null),Gt=null;function Un(e){var t=e.alternate;k(Je,Je.current&1),k(Ct,e),Gt===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&(Gt=e)}function Ds(e){k(Je,Je.current),k(Ct,e),Gt===null&&(Gt=e)}function _d(e){e.tag===22?(k(Je,Je.current),k(Ct,e),Gt===null&&(Gt=e)):Zn()}function Zn(){k(Je,Je.current),k(Ct,Ct.current)}function Rt(e){N(Ct),Gt===e&&(Gt=null),N(Je)}var Je=_(0);function pu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Ho(r)||Bo(r)))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 pn=0,pe=null,Ne=null,et=null,mu=!1,er=!1,Sa=!1,yu=0,Pr=0,tr=null,v0=0;function Ve(){throw Error(l(321))}function Ns(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!jt(e[r],t[r]))return!1;return!0}function Us(e,t,r,i,o,c){return pn=c,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,x.H=e===null||e.memoizedState===null?ah:Js,Sa=!1,c=r(i,o),Sa=!1,er&&(c=Od(t,r,i,o)),Sd(e),c}function Sd(e){x.H=Ir;var t=Ne!==null&&Ne.next!==null;if(pn=0,et=Ne=pe=null,mu=!1,Pr=0,tr=null,t)throw Error(l(300));e===null||tt||(e=e.dependencies,e!==null&&uu(e)&&(tt=!0))}function Od(e,t,r,i){pe=e;var o=0;do{if(er&&(tr=null),Pr=0,er=!1,25<=o)throw Error(l(301));if(o+=1,et=Ne=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}x.H=rh,c=t(r,i)}while(er);return c}function g0(){var e=x.H,t=e.useState()[0];return t=typeof t.then=="function"?Jr(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(pe.flags|=1024),t}function Zs(){var e=yu!==0;return yu=0,e}function qs(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Qs(e){if(mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mu=!1}pn=0,et=Ne=pe=null,er=!1,Pr=yu=0,tr=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?pe.memoizedState=et=e:et=et.next=e,et}function Fe(){if(Ne===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=et===null?pe.memoizedState:et.next;if(t!==null)et=t,Ne=e;else{if(e===null)throw pe.alternate===null?Error(l(467)):Error(l(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},et===null?pe.memoizedState=et=e:et=et.next=e}return et}function vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jr(e){var t=Pr;return Pr+=1,tr===null&&(tr=[]),e=dd(tr,e,t),t=pe,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,x.H=t===null||t.memoizedState===null?ah:Js),e}function gu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Jr(e);if(e.$$typeof===de)return st(e)}throw Error(l(438,String(e)))}function ks(e){var t=null,r=pe.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var i=pe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=vu(),pe.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),i=0;i<e;i++)r[i]=ae;return t.index++,r}function mn(e,t){return typeof t=="function"?t(e):t}function bu(e){var t=Fe();return Hs(t,Ne,e)}function Hs(e,t,r){var i=e.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=r;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=p=null,b=null,T=t,C=!1;do{var q=T.lane&-536870913;if(q!==T.lane?(_e&q)===q:(pn&q)===q){var A=T.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),q===Pa&&(C=!0);else if((pn&A)===A){T=T.next,A===Pa&&(C=!0);continue}else q={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},b===null?(v=b=q,p=c):b=b.next=q,pe.lanes|=A,kn|=A;q=T.action,Sa&&r(c,q),c=T.hasEagerState?T.eagerState:r(c,q)}else A={lane:q,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},b===null?(v=b=A,p=c):b=b.next=A,pe.lanes|=q,kn|=q;T=T.next}while(T!==null&&T!==t);if(b===null?p=c:b.next=v,!jt(c,e.memoizedState)&&(tt=!0,C&&(r=Ja,r!==null)))throw r;e.memoizedState=c,e.baseState=p,e.baseQueue=b,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Bs(e){var t=Fe(),r=t.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,c=t.memoizedState;if(o!==null){r.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);jt(c,t.memoizedState)||(tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,i]}function xd(e,t,r){var i=pe,o=Fe(),c=Oe;if(c){if(r===void 0)throw Error(l(407));r=r()}else r=t();var p=!jt((Ne||o).memoizedState,r);if(p&&(o.memoizedState=r,tt=!0),o=o.queue,Gs(Td.bind(null,i,o,e),[e]),o.getSnapshot!==t||p||et!==null&&et.memoizedState.tag&1){if(i.flags|=2048,nr(9,{destroy:void 0},Ed.bind(null,i,o,r,t),null),qe===null)throw Error(l(349));c||(pn&127)!==0||zd(i,t,r)}return r}function zd(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=pe.updateQueue,t===null?(t=vu(),pe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Ed(e,t,r,i){t.value=r,t.getSnapshot=i,wd(t)&&Ad(e)}function Td(e,t,r){return r(function(){wd(t)&&Ad(e)})}function wd(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!jt(e,r)}catch{return!0}}function Ad(e){var t=da(e,2);t!==null&&zt(t,e,2)}function Ls(e){var t=mt();if(typeof e=="function"){var r=e;if(e=r(),Sa){En(!0);try{r()}finally{En(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:e},t}function jd(e,t,r,i){return e.baseState=r,Hs(e,Ne,typeof i=="function"?i:mn)}function b0(e,t,r,i,o){if(Ou(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(p){c.listeners.push(p)}};x.T!==null?r(!0):c.isTransition=!1,i(c),r=t.pending,r===null?(c.next=t.pending=c,Md(t,c)):(c.next=r.next,t.pending=r.next=c)}}function Md(e,t){var r=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=x.T,p={};x.T=p;try{var v=r(o,i),b=x.S;b!==null&&b(p,v),Cd(e,t,v)}catch(T){$s(e,t,T)}finally{c!==null&&p.types!==null&&(c.types=p.types),x.T=c}}else try{c=r(o,i),Cd(e,t,c)}catch(T){$s(e,t,T)}}function Cd(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(i){Rd(e,t,i)},function(i){return $s(e,t,i)}):Rd(e,t,r)}function Rd(e,t,r){t.status="fulfilled",t.value=r,Dd(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Md(e,r)))}function $s(e,t,r){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=r,Dd(t),t=t.next;while(t!==i)}e.action=null}function Dd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nd(e,t){return t}function Ud(e,t){if(Oe){var r=qe.formState;if(r!==null){e:{var i=pe;if(Oe){if(ke){t:{for(var o=ke,c=$t;o.nodeType!==8;){if(!c){o=null;break t}if(o=Yt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){ke=Yt(o.nextSibling),i=o.data==="F!";break e}}Mn(i)}i=!1}i&&(t=r[0])}}return r=mt(),r.memoizedState=r.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nd,lastRenderedState:t},r.queue=i,r=eh.bind(null,pe,i),i.dispatch=r,i=Ls(!1),c=Ps.bind(null,pe,!1,i.queue),i=mt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,r=b0.bind(null,pe,o,c,r),o.dispatch=r,i.memoizedState=e,[t,r,!1]}function Zd(e){var t=Fe();return qd(t,Ne,e)}function qd(e,t,r){if(t=Hs(e,t,Nd)[0],e=bu(mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Jr(t)}catch(p){throw p===Fa?ou:p}else i=t;t=Fe();var o=t.queue,c=o.dispatch;return r!==t.memoizedState&&(pe.flags|=2048,nr(9,{destroy:void 0},_0.bind(null,o,r),null)),[i,c,e]}function _0(e,t){e.action=t}function Qd(e){var t=Fe(),r=Ne;if(r!==null)return qd(t,r,e);Fe(),t=t.memoizedState,r=Fe();var i=r.queue.dispatch;return r.memoizedState=e,[t,i,!1]}function nr(e,t,r,i){return e={tag:e,create:r,deps:i,inst:t,next:null},t=pe.updateQueue,t===null&&(t=vu(),pe.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e),e}function kd(){return Fe().memoizedState}function _u(e,t,r,i){var o=mt();pe.flags|=e,o.memoizedState=nr(1|t,{destroy:void 0},r,i===void 0?null:i)}function Su(e,t,r,i){var o=Fe();i=i===void 0?null:i;var c=o.memoizedState.inst;Ne!==null&&i!==null&&Ns(i,Ne.memoizedState.deps)?o.memoizedState=nr(t,c,r,i):(pe.flags|=e,o.memoizedState=nr(1|t,c,r,i))}function Hd(e,t){_u(8390656,8,e,t)}function Gs(e,t){Su(2048,8,e,t)}function S0(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=vu(),pe.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function Bd(e){var t=Fe().memoizedState;return S0({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Ld(e,t){return Su(4,2,e,t)}function $d(e,t){return Su(4,4,e,t)}function Gd(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yd(e,t,r){r=r!=null?r.concat([e]):null,Su(4,4,Gd.bind(null,t,e),r)}function Ys(){}function Vd(e,t){var r=Fe();t=t===void 0?null:t;var i=r.memoizedState;return t!==null&&Ns(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function Kd(e,t){var r=Fe();t=t===void 0?null:t;var i=r.memoizedState;if(t!==null&&Ns(t,i[1]))return i[0];if(i=e(),Sa){En(!0);try{e()}finally{En(!1)}}return r.memoizedState=[i,t],i}function Vs(e,t,r){return r===void 0||(pn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=Xh(),pe.lanes|=e,kn|=e,r)}function Xd(e,t,r,i){return jt(r,t)?r:Wa.current!==null?(e=Vs(e,r,i),jt(e,t)||(tt=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(_e&261930)===0?(tt=!0,e.memoizedState=r):(e=Xh(),pe.lanes|=e,kn|=e,t)}function Pd(e,t,r,i,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var p=x.T,v={};x.T=v,Ps(e,!1,t,r);try{var b=o(),T=x.S;if(T!==null&&T(v,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var C=y0(b,i);Fr(e,t,C,Ut(e))}else Fr(e,t,i,Ut(e))}catch(q){Fr(e,t,{then:function(){},status:"rejected",reason:q},Ut())}finally{Z.p=c,p!==null&&v.types!==null&&(p.types=v.types),x.T=p}}function O0(){}function Ks(e,t,r,i){if(e.tag!==5)throw Error(l(476));var o=Jd(e).queue;Pd(e,o,t,G,r===null?O0:function(){return Fd(e),r(i)})}function Jd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:G},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fd(e){var t=Jd(e);t.next===null&&(t=e.alternate.memoizedState),Fr(e,t.next.queue,{},Ut())}function Xs(){return st(pi)}function Id(){return Fe().memoizedState}function Wd(){return Fe().memoizedState}function x0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Ut();e=Dn(r);var i=Nn(t,e,r);i!==null&&(zt(i,t,r),Vr(i,t,r)),t={cache:xs()},e.payload=t;return}t=t.return}}function z0(e,t,r){var i=Ut();r={lane:i,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ou(e)?th(t,r):(r=ds(e,t,r,i),r!==null&&(zt(r,e,i),nh(r,t,i)))}function eh(e,t,r){var i=Ut();Fr(e,t,r,i)}function Fr(e,t,r,i){var o={lane:i,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ou(e))th(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,r);if(o.hasEagerState=!0,o.eagerState=v,jt(v,p))return nu(e,t,o,0),qe===null&&tu(),!1}catch{}if(r=ds(e,t,o,i),r!==null)return zt(r,e,i),nh(r,t,i),!0}return!1}function Ps(e,t,r,i){if(i={lane:2,revertLane:Ao(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ou(e)){if(t)throw Error(l(479))}else t=ds(e,r,i,2),t!==null&&zt(t,e,2)}function Ou(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function th(e,t){er=mu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function nh(e,t,r){if((r&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,lf(e,r)}}var Ir={readContext:st,use:gu,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve};Ir.useEffectEvent=Ve;var ah={readContext:st,use:gu,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Hd,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,_u(4194308,4,Gd.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _u(4194308,4,e,t)},useInsertionEffect:function(e,t){_u(4,2,e,t)},useMemo:function(e,t){var r=mt();t=t===void 0?null:t;var i=e();if(Sa){En(!0);try{e()}finally{En(!1)}}return r.memoizedState=[i,t],i},useReducer:function(e,t,r){var i=mt();if(r!==void 0){var o=r(t);if(Sa){En(!0);try{r(t)}finally{En(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=z0.bind(null,pe,e),[i.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ls(e);var t=e.queue,r=eh.bind(null,pe,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Ys,useDeferredValue:function(e,t){var r=mt();return Vs(r,e,t)},useTransition:function(){var e=Ls(!1);return e=Pd.bind(null,pe,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var i=pe,o=mt();if(Oe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=t(),qe===null)throw Error(l(349));(_e&127)!==0||zd(i,t,r)}o.memoizedState=r;var c={value:r,getSnapshot:t};return o.queue=c,Hd(Td.bind(null,i,c,e),[e]),i.flags|=2048,nr(9,{destroy:void 0},Ed.bind(null,i,c,r,t),null),r},useId:function(){var e=mt(),t=qe.identifierPrefix;if(Oe){var r=en,i=Wt;r=(i&~(1<<32-At(i)-1)).toString(32)+r,t="_"+t+"R_"+r,r=yu++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=v0++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xs,useFormState:Ud,useActionState:Ud,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Ps.bind(null,pe,!0,r),r.dispatch=t,[e,t]},useMemoCache:ks,useCacheRefresh:function(){return mt().memoizedState=x0.bind(null,pe)},useEffectEvent:function(e){var t=mt(),r={impl:e};return t.memoizedState=r,function(){if((je&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},Js={readContext:st,use:gu,useCallback:Vd,useContext:st,useEffect:Gs,useImperativeHandle:Yd,useInsertionEffect:Ld,useLayoutEffect:$d,useMemo:Kd,useReducer:bu,useRef:kd,useState:function(){return bu(mn)},useDebugValue:Ys,useDeferredValue:function(e,t){var r=Fe();return Xd(r,Ne.memoizedState,e,t)},useTransition:function(){var e=bu(mn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Jr(e),t]},useSyncExternalStore:xd,useId:Id,useHostTransitionStatus:Xs,useFormState:Zd,useActionState:Zd,useOptimistic:function(e,t){var r=Fe();return jd(r,Ne,e,t)},useMemoCache:ks,useCacheRefresh:Wd};Js.useEffectEvent=Bd;var rh={readContext:st,use:gu,useCallback:Vd,useContext:st,useEffect:Gs,useImperativeHandle:Yd,useInsertionEffect:Ld,useLayoutEffect:$d,useMemo:Kd,useReducer:Bs,useRef:kd,useState:function(){return Bs(mn)},useDebugValue:Ys,useDeferredValue:function(e,t){var r=Fe();return Ne===null?Vs(r,e,t):Xd(r,Ne.memoizedState,e,t)},useTransition:function(){var e=Bs(mn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Jr(e),t]},useSyncExternalStore:xd,useId:Id,useHostTransitionStatus:Xs,useFormState:Qd,useActionState:Qd,useOptimistic:function(e,t){var r=Fe();return Ne!==null?jd(r,Ne,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:ks,useCacheRefresh:Wd};rh.useEffectEvent=Bd;function Fs(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:O({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Is={enqueueSetState:function(e,t,r){e=e._reactInternals;var i=Ut(),o=Dn(i);o.payload=t,r!=null&&(o.callback=r),t=Nn(e,o,i),t!==null&&(zt(t,e,i),Vr(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=Ut(),o=Dn(i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Nn(e,o,i),t!==null&&(zt(t,e,i),Vr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ut(),i=Dn(r);i.tag=2,t!=null&&(i.callback=t),t=Nn(e,i,r),t!==null&&(zt(t,e,r),Vr(t,e,r))}};function ih(e,t,r,i,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,p):t.prototype&&t.prototype.isPureReactComponent?!Qr(r,i)||!Qr(o,c):!0}function uh(e,t,r,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==e&&Is.enqueueReplaceState(t,t.state,null)}function Oa(e,t){var r=t;if("ref"in t){r={};for(var i in t)i!=="ref"&&(r[i]=t[i])}if(e=e.defaultProps){r===t&&(r=O({},r));for(var o in e)r[o]===void 0&&(r[o]=e[o])}return r}function lh(e){eu(e)}function sh(e){console.error(e)}function oh(e){eu(e)}function xu(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function ch(e,t,r){try{var i=e.onCaughtError;i(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ws(e,t,r){return r=Dn(r),r.tag=3,r.payload={element:null},r.callback=function(){xu(e,t)},r}function fh(e){return e=Dn(e),e.tag=3,e}function dh(e,t,r,i){var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){ch(t,r,i)}}var p=r.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){ch(t,r,i),typeof o!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function E0(e,t,r,i,o){if(r.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=r.alternate,t!==null&&Xa(t,r,o,!0),r=Ct.current,r!==null){switch(r.tag){case 31:case 13:return Gt===null?Uu():r.alternate===null&&Ke===0&&(Ke=3),r.flags&=-257,r.flags|=65536,r.lanes=o,i===cu?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([i]):t.add(i),Eo(e,i,o)),!1;case 22:return r.flags|=65536,i===cu?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([i]):r.add(i)),Eo(e,i,o)),!1}throw Error(l(435,r.tag))}return Eo(e,i,o),Uu(),!1}if(Oe)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==gs&&(e=Error(l(422),{cause:i}),Br(Ht(e,r)))):(i!==gs&&(t=Error(l(423),{cause:i}),Br(Ht(t,r))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Ht(i,r),o=Ws(e.stateNode,i,o),js(e,o),Ke!==4&&(Ke=2)),!1;var c=Error(l(520),{cause:i});if(c=Ht(c,r),ui===null?ui=[c]:ui.push(c),Ke!==4&&(Ke=2),t===null)return!0;i=Ht(i,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=o&-o,r.lanes|=e,e=Ws(r.stateNode,i,e),js(r,e),!1;case 1:if(t=r.type,c=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Hn===null||!Hn.has(c))))return r.flags|=65536,o&=-o,r.lanes|=o,o=fh(o),dh(o,e,r,i),js(r,o),!1}r=r.return}while(r!==null);return!1}var eo=Error(l(461)),tt=!1;function ot(e,t,r,i){t.child=e===null?yd(t,null,r,i):_a(t,e.child,r,i)}function hh(e,t,r,i,o){r=r.render;var c=t.ref;if("ref"in i){var p={};for(var v in i)v!=="ref"&&(p[v]=i[v])}else p=i;return ya(t),i=Us(e,t,r,p,c,o),v=Zs(),e!==null&&!tt?(qs(e,t,o),yn(e,t,o)):(Oe&&v&&ys(t),t.flags|=1,ot(e,t,i,o),t.child)}function ph(e,t,r,i,o){if(e===null){var c=r.type;return typeof c=="function"&&!hs(c)&&c.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=c,mh(e,t,c,i,o)):(e=ru(r.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!so(e,o)){var p=c.memoizedProps;if(r=r.compare,r=r!==null?r:Qr,r(p,i)&&e.ref===t.ref)return yn(e,t,o)}return t.flags|=1,e=cn(c,i),e.ref=t.ref,e.return=t,t.child=e}function mh(e,t,r,i,o){if(e!==null){var c=e.memoizedProps;if(Qr(c,i)&&e.ref===t.ref)if(tt=!1,t.pendingProps=i=c,so(e,o))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,yn(e,t,o)}return to(e,t,r,i,o)}function yh(e,t,r,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|r:r,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return vh(e,t,c,r,i)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&su(t,c!==null?c.cachePool:null),c!==null?bd(t,c):Cs(),_d(t);else return i=t.lanes=536870912,vh(e,t,c!==null?c.baseLanes|r:r,r,i)}else c!==null?(su(t,c.cachePool),bd(t,c),Zn(),t.memoizedState=null):(e!==null&&su(t,null),Cs(),Zn());return ot(e,t,o,r),t.child}function Wr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function vh(e,t,r,i,o){var c=Es();return c=c===null?null:{parent:We._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&su(t,null),Cs(),_d(t),e!==null&&Xa(e,t,i,!0),t.childLanes=o,null}function zu(e,t){return t=Tu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gh(e,t,r){return _a(t,e.child,null,r),e=zu(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function T0(e,t,r){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(i.mode==="hidden")return e=zu(t,i),t.lanes=536870912,Wr(null,e);if(Ds(t),(e=ke)?(e=Mp(e,$t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:An!==null?{id:Wt,overflow:en}:null,retryLane:536870912,hydrationErrors:null},r=td(e),r.return=t,t.child=r,lt=t,ke=null)):e=null,e===null)throw Mn(t);return t.lanes=536870912,null}return zu(t,i)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Ds(t),o)if(t.flags&256)t.flags&=-257,t=gh(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(tt||Xa(e,t,r,!1),o=(r&e.childLanes)!==0,tt||o){if(i=qe,i!==null&&(p=sf(i,r),p!==0&&p!==c.retryLane))throw c.retryLane=p,da(e,p),zt(i,e,p),eo;Uu(),t=gh(e,t,r)}else e=c.treeContext,ke=Yt(p.nextSibling),lt=t,Oe=!0,jn=null,$t=!1,e!==null&&rd(t,e),t=zu(t,i),t.flags|=4096;return t}return e=cn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Eu(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function to(e,t,r,i,o){return ya(t),r=Us(e,t,r,i,void 0,o),i=Zs(),e!==null&&!tt?(qs(e,t,o),yn(e,t,o)):(Oe&&i&&ys(t),t.flags|=1,ot(e,t,r,o),t.child)}function bh(e,t,r,i,o,c){return ya(t),t.updateQueue=null,r=Od(t,i,r,o),Sd(e),i=Zs(),e!==null&&!tt?(qs(e,t,c),yn(e,t,c)):(Oe&&i&&ys(t),t.flags|=1,ot(e,t,r,c),t.child)}function _h(e,t,r,i,o){if(ya(t),t.stateNode===null){var c=Ga,p=r.contextType;typeof p=="object"&&p!==null&&(c=st(p)),c=new r(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Is,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},ws(t),p=r.contextType,c.context=typeof p=="object"&&p!==null?st(p):Ga,c.state=t.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(Fs(t,r,p,i),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Is.enqueueReplaceState(c,c.state,null),Xr(t,i,c,o),Kr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,b=Oa(r,v);c.props=b;var T=c.context,C=r.contextType;p=Ga,typeof C=="object"&&C!==null&&(p=st(C));var q=r.getDerivedStateFromProps;C=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,C||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||T!==p)&&uh(t,c,i,p),Rn=!1;var A=t.memoizedState;c.state=A,Xr(t,i,c,o),Kr(),T=t.memoizedState,v||A!==T||Rn?(typeof q=="function"&&(Fs(t,r,q,i),T=t.memoizedState),(b=Rn||ih(t,r,b,i,A,T,p))?(C||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=i,t.memoizedState=T),c.props=i,c.state=T,c.context=p,i=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,As(e,t),p=t.memoizedProps,C=Oa(r,p),c.props=C,q=t.pendingProps,A=c.context,T=r.contextType,b=Ga,typeof T=="object"&&T!==null&&(b=st(T)),v=r.getDerivedStateFromProps,(T=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==q||A!==b)&&uh(t,c,i,b),Rn=!1,A=t.memoizedState,c.state=A,Xr(t,i,c,o),Kr();var j=t.memoizedState;p!==q||A!==j||Rn||e!==null&&e.dependencies!==null&&uu(e.dependencies)?(typeof v=="function"&&(Fs(t,r,v,i),j=t.memoizedState),(C=Rn||ih(t,r,C,i,A,j,b)||e!==null&&e.dependencies!==null&&uu(e.dependencies))?(T||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,j,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,j,b)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=j),c.props=i,c.state=j,c.context=b,i=C):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Eu(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,r=i&&typeof r.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=_a(t,e.child,null,o),t.child=_a(t,null,r,o)):ot(e,t,r,o),t.memoizedState=c.state,e=t.child):e=yn(e,t,o),e}function Sh(e,t,r,i){return pa(),t.flags|=256,ot(e,t,r,i),t.child}var no={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ao(e){return{baseLanes:e,cachePool:cd()}}function ro(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Nt),e}function Oh(e,t,r){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?Un(t):Zn(),(e=ke)?(e=Mp(e,$t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:An!==null?{id:Wt,overflow:en}:null,retryLane:536870912,hydrationErrors:null},r=td(e),r.return=t,t.child=r,lt=t,ke=null)):e=null,e===null)throw Mn(t);return Bo(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,o?(Zn(),o=t.mode,v=Tu({mode:"hidden",children:v},o),i=ha(i,o,r,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=ao(r),i.childLanes=ro(e,p,r),t.memoizedState=no,Wr(null,i)):(Un(t),io(t,v))}var b=e.memoizedState;if(b!==null&&(v=b.dehydrated,v!==null)){if(c)t.flags&256?(Un(t),t.flags&=-257,t=uo(e,t,r)):t.memoizedState!==null?(Zn(),t.child=e.child,t.flags|=128,t=null):(Zn(),v=i.fallback,o=t.mode,i=Tu({mode:"visible",children:i.children},o),v=ha(v,o,r,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,_a(t,e.child,null,r),i=t.child,i.memoizedState=ao(r),i.childLanes=ro(e,p,r),t.memoizedState=no,t=Wr(null,i));else if(Un(t),Bo(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var T=p.dgst;p=T,i=Error(l(419)),i.stack="",i.digest=p,Br({value:i,source:null,stack:null}),t=uo(e,t,r)}else if(tt||Xa(e,t,r,!1),p=(r&e.childLanes)!==0,tt||p){if(p=qe,p!==null&&(i=sf(p,r),i!==0&&i!==b.retryLane))throw b.retryLane=i,da(e,i),zt(p,e,i),eo;Ho(v)||Uu(),t=uo(e,t,r)}else Ho(v)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,ke=Yt(v.nextSibling),lt=t,Oe=!0,jn=null,$t=!1,e!==null&&rd(t,e),t=io(t,i.children),t.flags|=4096);return t}return o?(Zn(),v=i.fallback,o=t.mode,b=e.child,T=b.sibling,i=cn(b,{mode:"hidden",children:i.children}),i.subtreeFlags=b.subtreeFlags&65011712,T!==null?v=cn(T,v):(v=ha(v,o,r,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,Wr(null,i),i=t.child,v=e.child.memoizedState,v===null?v=ao(r):(o=v.cachePool,o!==null?(b=We._currentValue,o=o.parent!==b?{parent:b,pool:b}:o):o=cd(),v={baseLanes:v.baseLanes|r,cachePool:o}),i.memoizedState=v,i.childLanes=ro(e,p,r),t.memoizedState=no,Wr(e.child,i)):(Un(t),r=e.child,e=r.sibling,r=cn(r,{mode:"visible",children:i.children}),r.return=t,r.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=r,t.memoizedState=null,r)}function io(e,t){return t=Tu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tu(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function uo(e,t,r){return _a(t,e.child,null,r),e=io(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xh(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ss(e.return,t,r)}function lo(e,t,r,i,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=r,p.tailMode=o,p.treeForkCount=c)}function zh(e,t,r){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var p=Je.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,k(Je,p),ot(e,t,i,r),i=Oe?Hr:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xh(e,r,t);else if(e.tag===19)xh(e,r,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(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&pu(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),lo(t,!1,o,r,c,i);break;case"backwards":case"unstable_legacy-backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&pu(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}lo(t,!0,r,null,c,i);break;case"together":lo(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function yn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Xa(e,t,r,!1),(r&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,r=cn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=cn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function so(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&uu(e)))}function w0(e,t,r){switch(t.tag){case 3:pt(t,t.stateNode.containerInfo),Cn(t,We,e.memoizedState.cache),pa();break;case 27:case 5:Er(t);break;case 4:pt(t,t.stateNode.containerInfo);break;case 10:Cn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ds(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Un(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Oh(e,t,r):(Un(t),e=yn(e,t,r),e!==null?e.sibling:null);Un(t);break;case 19:var o=(e.flags&128)!==0;if(i=(r&t.childLanes)!==0,i||(Xa(e,t,r,!1),i=(r&t.childLanes)!==0),o){if(i)return zh(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(Je,Je.current),i)break;return null;case 22:return t.lanes=0,yh(e,t,r,t.pendingProps);case 24:Cn(t,We,e.memoizedState.cache)}return yn(e,t,r)}function Eh(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!so(e,r)&&(t.flags&128)===0)return tt=!1,w0(e,t,r);tt=(e.flags&131072)!==0}else tt=!1,Oe&&(t.flags&1048576)!==0&&ad(t,Hr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ga(t.elementType),t.type=e,typeof e=="function")hs(e)?(i=Oa(e,i),t.tag=1,t=_h(null,t,e,i,r)):(t.tag=0,t=to(null,t,e,i,r));else{if(e!=null){var o=e.$$typeof;if(o===ve){t.tag=11,t=hh(null,t,e,i,r);break e}else if(o===M){t.tag=14,t=ph(null,t,e,i,r);break e}}throw t=fe(e)||e,Error(l(306,t,""))}}return t;case 0:return to(e,t,t.type,t.pendingProps,r);case 1:return i=t.type,o=Oa(i,t.pendingProps),_h(e,t,i,o,r);case 3:e:{if(pt(t,t.stateNode.containerInfo),e===null)throw Error(l(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,As(e,t),Xr(t,i,null,r);var p=t.memoizedState;if(i=p.cache,Cn(t,We,i),i!==c.cache&&Os(t,[We],r,!0),Kr(),i=p.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Sh(e,t,i,r);break e}else if(i!==o){o=Ht(Error(l(424)),t),Br(o),t=Sh(e,t,i,r);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ke=Yt(e.firstChild),lt=t,Oe=!0,jn=null,$t=!0,r=yd(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(pa(),i===o){t=yn(e,t,r);break e}ot(e,t,i,r)}t=t.child}return t;case 26:return Eu(e,t),e===null?(r=Zp(t.type,null,t.pendingProps,null))?t.memoizedState=r:Oe||(r=t.type,e=t.pendingProps,i=Lu(oe.current).createElement(r),i[ut]=t,i[gt]=e,ct(i,r,e),rt(i),t.stateNode=i):t.memoizedState=Zp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Er(t),e===null&&Oe&&(i=t.stateNode=Dp(t.type,t.pendingProps,oe.current),lt=t,$t=!0,o=ke,Gn(t.type)?(Lo=o,ke=Yt(i.firstChild)):ke=o),ot(e,t,t.pendingProps.children,r),Eu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=i=ke)&&(i=ab(i,t.type,t.pendingProps,$t),i!==null?(t.stateNode=i,lt=t,ke=Yt(i.firstChild),$t=!1,o=!0):o=!1),o||Mn(t)),Er(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,i=c.children,qo(o,c)?i=null:p!==null&&qo(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Us(e,t,g0,null,null,r),pi._currentValue=o),Eu(e,t),ot(e,t,i,r),t.child;case 6:return e===null&&Oe&&((e=r=ke)&&(r=rb(r,t.pendingProps,$t),r!==null?(t.stateNode=r,lt=t,ke=null,e=!0):e=!1),e||Mn(t)),null;case 13:return Oh(e,t,r);case 4:return pt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=_a(t,null,i,r):ot(e,t,i,r),t.child;case 11:return hh(e,t,t.type,t.pendingProps,r);case 7:return ot(e,t,t.pendingProps,r),t.child;case 8:return ot(e,t,t.pendingProps.children,r),t.child;case 12:return ot(e,t,t.pendingProps.children,r),t.child;case 10:return i=t.pendingProps,Cn(t,t.type,i.value),ot(e,t,i.children,r),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,ya(t),o=st(o),i=i(o),t.flags|=1,ot(e,t,i,r),t.child;case 14:return ph(e,t,t.type,t.pendingProps,r);case 15:return mh(e,t,t.type,t.pendingProps,r);case 19:return zh(e,t,r);case 31:return T0(e,t,r);case 22:return yh(e,t,r,t.pendingProps);case 24:return ya(t),i=st(We),e===null?(o=Es(),o===null&&(o=qe,c=xs(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=r),o=c),t.memoizedState={parent:i,cache:o},ws(t),Cn(t,We,o)):((e.lanes&r)!==0&&(As(e,t),Xr(t,null,null,r),Kr()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Cn(t,We,i)):(i=c.cache,Cn(t,We,i),i!==o.cache&&Os(t,[We],r,!0))),ot(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function vn(e){e.flags|=4}function oo(e,t,r,i,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(Ih())e.flags|=8192;else throw ba=cu,Ts}else e.flags&=-16777217}function Th(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Bp(t))if(Ih())e.flags|=8192;else throw ba=cu,Ts}function wu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?rf():536870912,e.lanes|=t,ur|=t)}function ei(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function A0(e,t,r){var i=t.pendingProps;switch(vs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return r=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),hn(We),Pe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ka(t)?vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,bs())),He(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(vn(t),c!==null?(He(t),Th(t,c)):(He(t),oo(t,o,null,i,r))):c?c!==e.memoizedState?(vn(t),He(t),Th(t,c)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&vn(t),He(t),oo(t,o,e,i,r)),null;case 27:if(Qi(t),r=oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return He(t),null}e=B.current,Ka(t)?id(t):(e=Dp(o,i,r),t.stateNode=e,vn(t))}return He(t),null;case 5:if(Qi(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return He(t),null}if(c=B.current,Ka(t))id(t);else{var p=Lu(oe.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?p.createElement(o,{is:i.is}):p.createElement(o)}}c[ut]=t,c[gt]=i;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(ct(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&vn(t)}}return He(t),oo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(l(166));if(e=oe.current,Ka(t)){if(e=t.stateNode,r=t.memoizedProps,i=null,o=lt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[ut]=t,e=!!(e.nodeValue===r||i!==null&&i.suppressHydrationWarning===!0||Op(e.nodeValue,r)),e||Mn(t,!0)}else e=Lu(e).createTextNode(i),e[ut]=t,t.stateNode=e}return He(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ka(t),r!==null){if(e===null){if(!i)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[ut]=t}else pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else r=bs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return He(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ka(t),i!==null&&i.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[ut]=t}else pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),o=!1}else o=bs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(t),(t.flags&128)!==0?(t.lanes=r,t):(r=i!==null,e=e!==null&&e.memoizedState!==null,r&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),wu(t,t.updateQueue),He(t),null);case 4:return Pe(),e===null&&Ro(t.stateNode.containerInfo),He(t),null;case 10:return hn(t.type),He(t),null;case 19:if(N(Je),i=t.memoizedState,i===null)return He(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)ei(i,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=pu(e),c!==null){for(t.flags|=128,ei(i,!1),e=c.updateQueue,t.updateQueue=e,wu(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)ed(r,e),r=r.sibling;return k(Je,Je.current&1|2),Oe&&fn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Tt()>Ru&&(t.flags|=128,o=!0,ei(i,!1),t.lanes=4194304)}else{if(!o)if(e=pu(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,wu(t,e),ei(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Oe)return He(t),null}else 2*Tt()-i.renderingStartTime>Ru&&r!==536870912&&(t.flags|=128,o=!0,ei(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Tt(),e.sibling=null,r=Je.current,k(Je,o?r&1|2:r&1),Oe&&fn(t,i.treeForkCount),e):(He(t),null);case 22:case 23:return Rt(t),Rs(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(r&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),r=t.updateQueue,r!==null&&wu(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==r&&(t.flags|=2048),e!==null&&N(va),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),hn(We),He(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function j0(e,t){switch(vs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hn(We),Pe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qi(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(l(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return N(Je),null;case 4:return Pe(),null;case 10:return hn(t.type),null;case 22:case 23:return Rt(t),Rs(),e!==null&&N(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return hn(We),null;case 25:return null;default:return null}}function wh(e,t){switch(vs(t),t.tag){case 3:hn(We),Pe();break;case 26:case 27:case 5:Qi(t);break;case 4:Pe();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:N(Je);break;case 10:hn(t.type);break;case 22:case 23:Rt(t),Rs(),e!==null&&N(va);break;case 24:hn(We)}}function ti(e,t){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){i=void 0;var c=r.create,p=r.inst;i=c(),p.destroy=i}r=r.next}while(r!==o)}}catch(v){De(t,t.return,v)}}function qn(e,t,r){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var p=i.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var b=r,T=v;try{T()}catch(C){De(o,b,C)}}}i=i.next}while(i!==c)}}catch(C){De(t,t.return,C)}}function Ah(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{gd(t,r)}catch(i){De(e,e.return,i)}}}function jh(e,t,r){r.props=Oa(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(i){De(e,t,i)}}function ni(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof r=="function"?e.refCleanup=r(i):r.current=i}}catch(o){De(e,t,o)}}function tn(e,t){var r=e.ref,i=e.refCleanup;if(r!==null)if(typeof i=="function")try{i()}catch(o){De(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){De(e,t,o)}else r.current=null}function Mh(e){var t=e.type,r=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&i.focus();break e;case"img":r.src?i.src=r.src:r.srcSet&&(i.srcset=r.srcSet)}}catch(o){De(e,e.return,o)}}function co(e,t,r){try{var i=e.stateNode;F0(i,e.type,r,t),i[gt]=t}catch(o){De(e,e.return,o)}}function Ch(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Gn(e.type)||e.tag===4}function fo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ch(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&&Gn(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 ho(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=sn));else if(i!==4&&(i===27&&Gn(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(ho(e,t,r),e=e.sibling;e!==null;)ho(e,t,r),e=e.sibling}function Au(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(i===27&&Gn(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Au(e,t,r),e=e.sibling;e!==null;)Au(e,t,r),e=e.sibling}function Rh(e){var t=e.stateNode,r=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ct(t,i,r),t[ut]=e,t[gt]=r}catch(c){De(e,e.return,c)}}var gn=!1,nt=!1,po=!1,Dh=typeof WeakSet=="function"?WeakSet:Set,it=null;function M0(e,t){if(e=e.containerInfo,Uo=Pu,e=Yf(e),us(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var p=0,v=-1,b=-1,T=0,C=0,q=e,A=null;t:for(;;){for(var j;q!==r||o!==0&&q.nodeType!==3||(v=p+o),q!==c||i!==0&&q.nodeType!==3||(b=p+i),q.nodeType===3&&(p+=q.nodeValue.length),(j=q.firstChild)!==null;)A=q,q=j;for(;;){if(q===e)break t;if(A===r&&++T===o&&(v=p),A===c&&++C===i&&(b=p),(j=q.nextSibling)!==null)break;q=A,A=q.parentNode}q=j}r=v===-1||b===-1?null:{start:v,end:b}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zo={focusedElem:e,selectionRange:r},Pu=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,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(r=0;r<e.length;r++)o=e[r],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,r=t,o=c.memoizedProps,c=c.memoizedState,i=r.stateNode;try{var J=Oa(r.type,o);e=i.getSnapshotBeforeUpdate(J,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(ue){De(r,r.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)ko(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ko(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,it=e;break}it=t.return}}function Nh(e,t,r){var i=r.flags;switch(r.tag){case 0:case 11:case 15:_n(e,r),i&4&&ti(5,r);break;case 1:if(_n(e,r),i&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(p){De(r,r.return,p)}else{var o=Oa(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){De(r,r.return,p)}}i&64&&Ah(r),i&512&&ni(r,r.return);break;case 3:if(_n(e,r),i&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{gd(e,t)}catch(p){De(r,r.return,p)}}break;case 27:t===null&&i&4&&Rh(r);case 26:case 5:_n(e,r),t===null&&i&4&&Mh(r),i&512&&ni(r,r.return);break;case 12:_n(e,r);break;case 31:_n(e,r),i&4&&qh(e,r);break;case 13:_n(e,r),i&4&&Qh(e,r),i&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=k0.bind(null,r),ib(e,r))));break;case 22:if(i=r.memoizedState!==null||gn,!i){t=t!==null&&t.memoizedState!==null||nt,o=gn;var c=nt;gn=i,(nt=t)&&!c?Sn(e,r,(r.subtreeFlags&8772)!==0):_n(e,r),gn=o,nt=c}break;case 30:break;default:_n(e,r)}}function Uh(e){var t=e.alternate;t!==null&&(e.alternate=null,Uh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$l(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 $e=null,_t=!1;function bn(e,t,r){for(r=r.child;r!==null;)Zh(e,t,r),r=r.sibling}function Zh(e,t,r){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Tr,r)}catch{}switch(r.tag){case 26:nt||tn(r,t),bn(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:nt||tn(r,t);var i=$e,o=_t;Gn(r.type)&&($e=r.stateNode,_t=!1),bn(e,t,r),fi(r.stateNode),$e=i,_t=o;break;case 5:nt||tn(r,t);case 6:if(i=$e,o=_t,$e=null,bn(e,t,r),$e=i,_t=o,$e!==null)if(_t)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(r.stateNode)}catch(c){De(r,t,c)}else try{$e.removeChild(r.stateNode)}catch(c){De(r,t,c)}break;case 18:$e!==null&&(_t?(e=$e,Ap(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),pr(e)):Ap($e,r.stateNode));break;case 4:i=$e,o=_t,$e=r.stateNode.containerInfo,_t=!0,bn(e,t,r),$e=i,_t=o;break;case 0:case 11:case 14:case 15:qn(2,r,t),nt||qn(4,r,t),bn(e,t,r);break;case 1:nt||(tn(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"&&jh(r,t,i)),bn(e,t,r);break;case 21:bn(e,t,r);break;case 22:nt=(i=nt)||r.memoizedState!==null,bn(e,t,r),nt=i;break;default:bn(e,t,r)}}function qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pr(e)}catch(r){De(t,t.return,r)}}}function Qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pr(e)}catch(r){De(t,t.return,r)}}function C0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dh),t;default:throw Error(l(435,e.tag))}}function ju(e,t){var r=C0(e);t.forEach(function(i){if(!r.has(i)){r.add(i);var o=H0.bind(null,e,i);i.then(o,o)}})}function St(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(Gn(v.type)){$e=v.stateNode,_t=!1;break e}break;case 5:$e=v.stateNode,_t=!1;break e;case 3:case 4:$e=v.stateNode.containerInfo,_t=!0;break e}v=v.return}if($e===null)throw Error(l(160));Zh(c,p,o),$e=null,_t=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kh(t,e),t=t.sibling}var Jt=null;function kh(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Ot(e),i&4&&(qn(3,e,e.return),ti(3,e),qn(5,e,e.return));break;case 1:St(t,e),Ot(e),i&512&&(nt||r===null||tn(r,r.return)),i&64&&gn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?i:r.concat(i))));break;case 26:var o=Jt;if(St(t,e),Ot(e),i&512&&(nt||r===null||tn(r,r.return)),i&4){var c=r!==null?r.memoizedState:null;if(i=e.memoizedState,r===null)if(i===null)if(e.stateNode===null){e:{i=e.type,r=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[jr]||c[ut]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),ct(c,i,r),c[ut]=e,rt(c),i=c;break e;case"link":var p=kp("link","href",o).get(i+(r.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&c.getAttribute("rel")===(r.rel==null?null:r.rel)&&c.getAttribute("title")===(r.title==null?null:r.title)&&c.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){p.splice(v,1);break t}}c=o.createElement(i),ct(c,i,r),o.head.appendChild(c);break;case"meta":if(p=kp("meta","content",o).get(i+(r.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(r.content==null?null:""+r.content)&&c.getAttribute("name")===(r.name==null?null:r.name)&&c.getAttribute("property")===(r.property==null?null:r.property)&&c.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&c.getAttribute("charset")===(r.charSet==null?null:r.charSet)){p.splice(v,1);break t}}c=o.createElement(i),ct(c,i,r),o.head.appendChild(c);break;default:throw Error(l(468,i))}c[ut]=e,rt(c),i=c}e.stateNode=i}else Hp(o,e.type,e.stateNode);else e.stateNode=Qp(o,i,e.memoizedProps);else c!==i?(c===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):c.count--,i===null?Hp(o,e.type,e.stateNode):Qp(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&co(e,e.memoizedProps,r.memoizedProps)}break;case 27:St(t,e),Ot(e),i&512&&(nt||r===null||tn(r,r.return)),r!==null&&i&4&&co(e,e.memoizedProps,r.memoizedProps);break;case 5:if(St(t,e),Ot(e),i&512&&(nt||r===null||tn(r,r.return)),e.flags&32){o=e.stateNode;try{qa(o,"")}catch(J){De(e,e.return,J)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,co(e,o,r!==null?r.memoizedProps:o)),i&1024&&(po=!0);break;case 6:if(St(t,e),Ot(e),i&4){if(e.stateNode===null)throw Error(l(162));i=e.memoizedProps,r=e.stateNode;try{r.nodeValue=i}catch(J){De(e,e.return,J)}}break;case 3:if(Yu=null,o=Jt,Jt=$u(t.containerInfo),St(t,e),Jt=o,Ot(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(J){De(e,e.return,J)}po&&(po=!1,Hh(e));break;case 4:i=Jt,Jt=$u(e.stateNode.containerInfo),St(t,e),Ot(e),Jt=i;break;case 12:St(t,e),Ot(e);break;case 31:St(t,e),Ot(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ju(e,i)));break;case 13:St(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Cu=Tt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ju(e,i)));break;case 22:o=e.memoizedState!==null;var b=r!==null&&r.memoizedState!==null,T=gn,C=nt;if(gn=T||o,nt=C||b,St(t,e),nt=C,gn=T,Ot(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(r===null||b||gn||nt||xa(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){b=r=t;try{if(c=b.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=b.stateNode;var q=b.memoizedProps.style,A=q!=null&&q.hasOwnProperty("display")?q.display:null;v.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(J){De(b,b.return,J)}}}else if(t.tag===6){if(r===null){b=t;try{b.stateNode.nodeValue=o?"":b.memoizedProps}catch(J){De(b,b.return,J)}}}else if(t.tag===18){if(r===null){b=t;try{var j=b.stateNode;o?jp(j,!0):jp(b.stateNode,!1)}catch(J){De(b,b.return,J)}}}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;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(r=i.retryQueue,r!==null&&(i.retryQueue=null,ju(e,r))));break;case 19:St(t,e),Ot(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ju(e,i)));break;case 30:break;case 21:break;default:St(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var r,i=e.return;i!==null;){if(Ch(i)){r=i;break}i=i.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var o=r.stateNode,c=fo(e);Au(e,c,o);break;case 5:var p=r.stateNode;r.flags&32&&(qa(p,""),r.flags&=-33);var v=fo(e);Au(e,v,p);break;case 3:case 4:var b=r.stateNode.containerInfo,T=fo(e);ho(e,T,b);break;default:throw Error(l(161))}}catch(C){De(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nh(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:qn(4,t,t.return),xa(t);break;case 1:tn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&jh(t,t.return,r),xa(t);break;case 27:fi(t.stateNode);case 26:case 5:tn(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 Sn(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Sn(o,c,r),ti(4,c);break;case 1:if(Sn(o,c,r),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(T){De(i,i.return,T)}if(i=c,o=i.updateQueue,o!==null){var v=i.stateNode;try{var b=o.shared.hiddenCallbacks;if(b!==null)for(o.shared.hiddenCallbacks=null,o=0;o<b.length;o++)vd(b[o],v)}catch(T){De(i,i.return,T)}}r&&p&64&&Ah(c),ni(c,c.return);break;case 27:Rh(c);case 26:case 5:Sn(o,c,r),r&&i===null&&p&4&&Mh(c),ni(c,c.return);break;case 12:Sn(o,c,r);break;case 31:Sn(o,c,r),r&&p&4&&qh(o,c);break;case 13:Sn(o,c,r),r&&p&4&&Qh(o,c);break;case 22:c.memoizedState===null&&Sn(o,c,r),ni(c,c.return);break;case 30:break;default:Sn(o,c,r)}t=t.sibling}}function mo(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Lr(r))}function yo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Lr(e))}function Ft(e,t,r,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bh(e,t,r,i),t=t.sibling}function Bh(e,t,r,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,r,i),o&2048&&ti(9,t);break;case 1:Ft(e,t,r,i);break;case 3:Ft(e,t,r,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Lr(e)));break;case 12:if(o&2048){Ft(e,t,r,i),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){De(t,t.return,b)}}else Ft(e,t,r,i);break;case 31:Ft(e,t,r,i);break;case 13:Ft(e,t,r,i);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Ft(e,t,r,i):ai(e,t):c._visibility&2?Ft(e,t,r,i):(c._visibility|=2,ar(e,t,r,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&mo(p,t);break;case 24:Ft(e,t,r,i),o&2048&&yo(t.alternate,t);break;default:Ft(e,t,r,i)}}function ar(e,t,r,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,v=r,b=i,T=p.flags;switch(p.tag){case 0:case 11:case 15:ar(c,p,v,b,o),ti(8,p);break;case 23:break;case 22:var C=p.stateNode;p.memoizedState!==null?C._visibility&2?ar(c,p,v,b,o):ai(c,p):(C._visibility|=2,ar(c,p,v,b,o)),o&&T&2048&&mo(p.alternate,p);break;case 24:ar(c,p,v,b,o),o&&T&2048&&yo(p.alternate,p);break;default:ar(c,p,v,b,o)}t=t.sibling}}function ai(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,i=t,o=i.flags;switch(i.tag){case 22:ai(r,i),o&2048&&mo(i.alternate,i);break;case 24:ai(r,i),o&2048&&yo(i.alternate,i);break;default:ai(r,i)}t=t.sibling}}var ri=8192;function rr(e,t,r){if(e.subtreeFlags&ri)for(e=e.child;e!==null;)Lh(e,t,r),e=e.sibling}function Lh(e,t,r){switch(e.tag){case 26:rr(e,t,r),e.flags&ri&&e.memoizedState!==null&&vb(r,Jt,e.memoizedState,e.memoizedProps);break;case 5:rr(e,t,r);break;case 3:case 4:var i=Jt;Jt=$u(e.stateNode.containerInfo),rr(e,t,r),Jt=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ri,ri=16777216,rr(e,t,r),ri=i):rr(e,t,r));break;default:rr(e,t,r)}}function $h(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 ii(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var i=t[r];it=i,Yh(i,e)}$h(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gh(e),e=e.sibling}function Gh(e){switch(e.tag){case 0:case 11:case 15:ii(e),e.flags&2048&&qn(9,e,e.return);break;case 3:ii(e);break;case 12:ii(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Mu(e)):ii(e);break;default:ii(e)}}function Mu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var i=t[r];it=i,Yh(i,e)}$h(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),Mu(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,Mu(t));break;default:Mu(t)}e=e.sibling}}function Yh(e,t){for(;it!==null;){var r=it;switch(r.tag){case 0:case 11:case 15:qn(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var i=r.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Lr(r.memoizedState.cache)}if(i=r.child,i!==null)i.return=r,it=i;else e:for(r=e;it!==null;){i=it;var o=i.sibling,c=i.return;if(Uh(i),i===r){it=null;break e}if(o!==null){o.return=c,it=o;break e}it=c}}}var R0={getCacheForType:function(e){var t=st(We),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return st(We).controller.signal}},D0=typeof WeakMap=="function"?WeakMap:Map,je=0,qe=null,ge=null,_e=0,Re=0,Dt=null,Qn=!1,ir=!1,vo=!1,On=0,Ke=0,kn=0,za=0,go=0,Nt=0,ur=0,ui=null,xt=null,bo=!1,Cu=0,Vh=0,Ru=1/0,Du=null,Hn=null,at=0,Bn=null,lr=null,xn=0,_o=0,So=null,Kh=null,li=0,Oo=null;function Ut(){return(je&2)!==0&&_e!==0?_e&-_e:x.T!==null?Ao():of()}function Xh(){if(Nt===0)if((_e&536870912)===0||Oe){var e=Bi;Bi<<=1,(Bi&3932160)===0&&(Bi=262144),Nt=e}else Nt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Nt}function zt(e,t,r){(e===qe&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(sr(e,0),Ln(e,_e,Nt,!1)),Ar(e,r),((je&2)===0||e!==qe)&&(e===qe&&((je&2)===0&&(za|=r),Ke===4&&Ln(e,_e,Nt,!1)),nn(e))}function Ph(e,t,r){if((je&6)!==0)throw Error(l(327));var i=!r&&(t&127)===0&&(t&e.expiredLanes)===0||wr(e,t),o=i?Z0(e,t):zo(e,t,!0),c=i;do{if(o===0){ir&&!i&&Ln(e,t,0,!1);break}else{if(r=e.current.alternate,c&&!N0(r)){o=zo(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;o=ui;var b=v.current.memoizedState.isDehydrated;if(b&&(sr(v,p).flags|=256),p=zo(v,p,!1),p!==2){if(vo&&!b){v.errorRecoveryDisabledLanes|=c,za|=c,o=4;break e}c=xt,xt=o,c!==null&&(xt===null?xt=c:xt.push.apply(xt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){sr(e,0),Ln(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ln(i,t,Nt,!Qn);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Cu+300-Tt(),10<o)){if(Ln(i,t,Nt,!Qn),$i(i,0,!0)!==0)break e;xn=t,i.timeoutHandle=Tp(Jh.bind(null,i,r,xt,Du,bo,t,Nt,za,ur,Qn,c,"Throttled",-0,0),o);break e}Jh(i,r,xt,Du,bo,t,Nt,za,ur,Qn,c,null,-0,0)}}break}while(!0);nn(e)}function Jh(e,t,r,i,o,c,p,v,b,T,C,q,A,j){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sn},Lh(t,c,q);var J=(c&62914560)===c?Cu-Tt():(c&4194048)===c?Vh-Tt():0;if(J=gb(q,J),J!==null){xn=c,e.cancelPendingCommit=J(rp.bind(null,e,t,c,r,i,o,p,v,b,C,q,null,A,j)),Ln(e,c,p,!T);return}}rp(e,t,c,r,i,o,p,v,b)}function N0(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var i=0;i<r.length;i++){var o=r[i],c=o.getSnapshot;o=o.value;try{if(!jt(c(),o))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Ln(e,t,r,i){t&=~go,t&=~za,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-At(o),p=1<<c;i[c]=-1,o&=~p}r!==0&&uf(e,r,t)}function Nu(){return(je&6)===0?(si(0),!1):!0}function xo(){if(ge!==null){if(Re===0)var e=ge.return;else e=ge,dn=ma=null,Qs(e),Ia=null,Gr=0,e=ge;for(;e!==null;)wh(e.alternate,e),e=e.return;ge=null}}function sr(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,eb(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),xn=0,xo(),qe=e,ge=r=cn(e.current,null),_e=t,Re=0,Dt=null,Qn=!1,ir=wr(e,t),vo=!1,ur=Nt=go=za=kn=Ke=0,xt=ui=null,bo=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-At(i),c=1<<o;t|=e[o],i&=~c}return On=t,tu(),r}function Fh(e,t){pe=null,x.H=Ir,t===Fa||t===ou?(t=hd(),Re=3):t===Ts?(t=hd(),Re=4):Re=t===eo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,ge===null&&(Ke=1,xu(e,Ht(t,e.current)))}function Ih(){var e=Ct.current;return e===null?!0:(_e&4194048)===_e?Gt===null:(_e&62914560)===_e||(_e&536870912)!==0?e===Gt:!1}function Wh(){var e=x.H;return x.H=Ir,e===null?Ir:e}function ep(){var e=x.A;return x.A=R0,e}function Uu(){Ke=4,Qn||(_e&4194048)!==_e&&Ct.current!==null||(ir=!0),(kn&134217727)===0&&(za&134217727)===0||qe===null||Ln(qe,_e,Nt,!1)}function zo(e,t,r){var i=je;je|=2;var o=Wh(),c=ep();(qe!==e||_e!==t)&&(Du=null,sr(e,t)),t=!1;var p=Ke;e:do try{if(Re!==0&&ge!==null){var v=ge,b=Dt;switch(Re){case 8:xo(),p=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var T=Re;if(Re=0,Dt=null,or(e,v,b,T),r&&ir){p=0;break e}break;default:T=Re,Re=0,Dt=null,or(e,v,b,T)}}U0(),p=Ke;break}catch(C){Fh(e,C)}while(!0);return t&&e.shellSuspendCounter++,dn=ma=null,je=i,x.H=o,x.A=c,ge===null&&(qe=null,_e=0,tu()),p}function U0(){for(;ge!==null;)tp(ge)}function Z0(e,t){var r=je;je|=2;var i=Wh(),o=ep();qe!==e||_e!==t?(Du=null,Ru=Tt()+500,sr(e,t)):ir=wr(e,t);e:do try{if(Re!==0&&ge!==null){t=ge;var c=Dt;t:switch(Re){case 1:Re=0,Dt=null,or(e,t,c,1);break;case 2:case 9:if(fd(c)){Re=0,Dt=null,np(t);break}t=function(){Re!==2&&Re!==9||qe!==e||(Re=7),nn(e)},c.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:fd(c)?(Re=0,Dt=null,np(t)):(Re=0,Dt=null,or(e,t,c,7));break;case 5:var p=null;switch(ge.tag){case 26:p=ge.memoizedState;case 5:case 27:var v=ge;if(p?Bp(p):v.stateNode.complete){Re=0,Dt=null;var b=v.sibling;if(b!==null)ge=b;else{var T=v.return;T!==null?(ge=T,Zu(T)):ge=null}break t}}Re=0,Dt=null,or(e,t,c,5);break;case 6:Re=0,Dt=null,or(e,t,c,6);break;case 8:xo(),Ke=6;break e;default:throw Error(l(462))}}q0();break}catch(C){Fh(e,C)}while(!0);return dn=ma=null,x.H=i,x.A=o,je=r,ge!==null?0:(qe=null,_e=0,tu(),Ke)}function q0(){for(;ge!==null&&!ug();)tp(ge)}function tp(e){var t=Eh(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?Zu(e):ge=t}function np(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=bh(r,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=bh(r,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:Qs(t);default:wh(r,t),t=ge=ed(t,On),t=Eh(r,t,On)}e.memoizedProps=e.pendingProps,t===null?Zu(e):ge=t}function or(e,t,r,i){dn=ma=null,Qs(t),Ia=null,Gr=0;var o=t.return;try{if(E0(e,o,t,r,_e)){Ke=1,xu(e,Ht(r,e.current)),ge=null;return}}catch(c){if(o!==null)throw ge=o,c;Ke=1,xu(e,Ht(r,e.current)),ge=null;return}t.flags&32768?(Oe||i===1?e=!0:ir||(_e&536870912)!==0?e=!1:(Qn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ct.current,i!==null&&i.tag===13&&(i.flags|=16384))),ap(t,e)):Zu(t)}function Zu(e){var t=e;do{if((t.flags&32768)!==0){ap(t,Qn);return}e=t.return;var r=A0(t.alternate,t,On);if(r!==null){ge=r;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ke===0&&(Ke=5)}function ap(e,t){do{var r=j0(e.alternate,e);if(r!==null){r.flags&=32767,ge=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=r}while(e!==null);Ke=6,ge=null}function rp(e,t,r,i,o,c,p,v,b){e.cancelPendingCommit=null;do qu();while(at!==0);if((je&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=fs,yg(e,r,c,p,v,b),e===qe&&(ge=qe=null,_e=0),lr=t,Bn=e,xn=r,_o=c,So=o,Kh=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,B0(ki,function(){return op(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=x.T,x.T=null,o=Z.p,Z.p=2,p=je,je|=4;try{M0(e,t,r)}finally{je=p,Z.p=o,x.T=i}}at=1,ip(),up(),lp()}}function ip(){if(at===1){at=0;var e=Bn,t=lr,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=x.T,x.T=null;var i=Z.p;Z.p=2;var o=je;je|=4;try{kh(t,e);var c=Zo,p=Yf(e.containerInfo),v=c.focusedElem,b=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&Gf(v.ownerDocument.documentElement,v)){if(b!==null&&us(v)){var T=b.start,C=b.end;if(C===void 0&&(C=T),"selectionStart"in v)v.selectionStart=T,v.selectionEnd=Math.min(C,v.value.length);else{var q=v.ownerDocument||document,A=q&&q.defaultView||window;if(A.getSelection){var j=A.getSelection(),J=v.textContent.length,ue=Math.min(b.start,J),Ze=b.end===void 0?ue:Math.min(b.end,J);!j.extend&&ue>Ze&&(p=Ze,Ze=ue,ue=p);var z=$f(v,ue),S=$f(v,Ze);if(z&&S&&(j.rangeCount!==1||j.anchorNode!==z.node||j.anchorOffset!==z.offset||j.focusNode!==S.node||j.focusOffset!==S.offset)){var E=q.createRange();E.setStart(z.node,z.offset),j.removeAllRanges(),ue>Ze?(j.addRange(E),j.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),j.addRange(E))}}}}for(q=[],j=v;j=j.parentNode;)j.nodeType===1&&q.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<q.length;v++){var U=q[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Pu=!!Uo,Zo=Uo=null}finally{je=o,Z.p=i,x.T=r}}e.current=t,at=2}}function up(){if(at===2){at=0;var e=Bn,t=lr,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=x.T,x.T=null;var i=Z.p;Z.p=2;var o=je;je|=4;try{Nh(e,t.alternate,t)}finally{je=o,Z.p=i,x.T=r}}at=3}}function lp(){if(at===4||at===3){at=0,lg();var e=Bn,t=lr,r=xn,i=Kh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,lr=Bn=null,sp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Hn=null),Bl(r),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Tr,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=x.T,o=Z.p,Z.p=2,x.T=null;try{for(var c=e.onRecoverableError,p=0;p<i.length;p++){var v=i[p];c(v.value,{componentStack:v.stack})}}finally{x.T=t,Z.p=o}}(xn&3)!==0&&qu(),nn(e),o=e.pendingLanes,(r&261930)!==0&&(o&42)!==0?e===Oo?li++:(li=0,Oo=e):li=0,si(0)}}function sp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Lr(t)))}function qu(){return ip(),up(),lp(),op()}function op(){if(at!==5)return!1;var e=Bn,t=_o;_o=0;var r=Bl(xn),i=x.T,o=Z.p;try{Z.p=32>r?32:r,x.T=null,r=So,So=null;var c=Bn,p=xn;if(at=0,lr=Bn=null,xn=0,(je&6)!==0)throw Error(l(331));var v=je;if(je|=4,Gh(c.current),Bh(c,c.current,p,r),je=v,si(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Tr,c)}catch{}return!0}finally{Z.p=o,x.T=i,sp(e,t)}}function cp(e,t,r){t=Ht(r,t),t=Ws(e.stateNode,t,2),e=Nn(e,t,2),e!==null&&(Ar(e,2),nn(e))}function De(e,t,r){if(e.tag===3)cp(e,e,r);else for(;t!==null;){if(t.tag===3){cp(t,e,r);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Hn===null||!Hn.has(i))){e=Ht(r,e),r=fh(2),i=Nn(t,r,2),i!==null&&(dh(r,i,t,e),Ar(i,2),nn(i));break}}t=t.return}}function Eo(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new D0;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(r)||(vo=!0,o.add(r),e=Q0.bind(null,e,t,r),t.then(e,e))}function Q0(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,qe===e&&(_e&r)===r&&(Ke===4||Ke===3&&(_e&62914560)===_e&&300>Tt()-Cu?(je&2)===0&&sr(e,0):go|=r,ur===_e&&(ur=0)),nn(e)}function fp(e,t){t===0&&(t=rf()),e=da(e,t),e!==null&&(Ar(e,t),nn(e))}function k0(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),fp(e,r)}function H0(e,t){var r=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(l(314))}i!==null&&i.delete(t),fp(e,r)}function B0(e,t){return ql(e,t)}var Qu=null,cr=null,To=!1,ku=!1,wo=!1,$n=0;function nn(e){e!==cr&&e.next===null&&(cr===null?Qu=cr=e:cr=cr.next=e),ku=!0,To||(To=!0,$0())}function si(e,t){if(!wo&&ku){wo=!0;do for(var r=!1,i=Qu;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var p=i.suspendedLanes,v=i.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(r=!0,mp(i,c))}else c=_e,c=$i(i,i===qe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||wr(i,c)||(r=!0,mp(i,c));i=i.next}while(r);wo=!1}}function L0(){dp()}function dp(){ku=To=!1;var e=0;$n!==0&&W0()&&(e=$n);for(var t=Tt(),r=null,i=Qu;i!==null;){var o=i.next,c=hp(i,t);c===0?(i.next=null,r===null?Qu=o:r.next=o,o===null&&(cr=r)):(r=i,(e!==0||(c&3)!==0)&&(ku=!0)),i=o}at!==0&&at!==5||si(e),$n!==0&&($n=0)}function hp(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-At(c),v=1<<p,b=o[p];b===-1?((v&r)===0||(v&i)!==0)&&(o[p]=mg(v,t)):b<=t&&(e.expiredLanes|=v),c&=~v}if(t=qe,r=_e,r=$i(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,r===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ql(i),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||wr(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(i!==null&&Ql(i),Bl(r)){case 2:case 8:r=nf;break;case 32:r=ki;break;case 268435456:r=af;break;default:r=ki}return i=pp.bind(null,e),r=ql(r,i),e.callbackPriority=t,e.callbackNode=r,t}return i!==null&&i!==null&&Ql(i),e.callbackPriority=2,e.callbackNode=null,2}function pp(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(qu()&&e.callbackNode!==r)return null;var i=_e;return i=$i(e,e===qe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Ph(e,i,t),hp(e,Tt()),e.callbackNode!=null&&e.callbackNode===r?pp.bind(null,e):null)}function mp(e,t){if(qu())return null;Ph(e,t,!0)}function $0(){tb(function(){(je&6)!==0?ql(tf,L0):dp()})}function Ao(){if($n===0){var e=Pa;e===0&&(e=Hi,Hi<<=1,(Hi&261888)===0&&(Hi=256)),$n=e}return $n}function yp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ki(""+e)}function vp(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function G0(e,t,r,i,o){if(t==="submit"&&r&&r.stateNode===o){var c=yp((o[gt]||null).action),p=i.submitter;p&&(t=(t=p[gt]||null)?yp(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Fi("action","action",null,i,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if($n!==0){var b=p?vp(o,p):new FormData(o);Ks(r,{pending:!0,data:b,method:o.method,action:c},null,b)}}else typeof c=="function"&&(v.preventDefault(),b=p?vp(o,p):new FormData(o),Ks(r,{pending:!0,data:b,method:o.method,action:c},c,b))},currentTarget:o}]})}}for(var jo=0;jo<cs.length;jo++){var Mo=cs[jo],Y0=Mo.toLowerCase(),V0=Mo[0].toUpperCase()+Mo.slice(1);Pt(Y0,"on"+V0)}Pt(Xf,"onAnimationEnd"),Pt(Pf,"onAnimationIteration"),Pt(Jf,"onAnimationStart"),Pt("dblclick","onDoubleClick"),Pt("focusin","onFocus"),Pt("focusout","onBlur"),Pt(s0,"onTransitionRun"),Pt(o0,"onTransitionStart"),Pt(c0,"onTransitionCancel"),Pt(Ff,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="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(" "),K0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oi));function gp(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var p=i.length-1;0<=p;p--){var v=i[p],b=v.instance,T=v.currentTarget;if(v=v.listener,b!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=T;try{c(o)}catch(C){eu(C)}o.currentTarget=null,c=b}else for(p=0;p<i.length;p++){if(v=i[p],b=v.instance,T=v.currentTarget,v=v.listener,b!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=T;try{c(o)}catch(C){eu(C)}o.currentTarget=null,c=b}}}}function be(e,t){var r=t[Ll];r===void 0&&(r=t[Ll]=new Set);var i=e+"__bubble";r.has(i)||(bp(t,e,2,!1),r.add(i))}function Co(e,t,r){var i=0;t&&(i|=4),bp(r,e,i,t)}var Hu="_reactListening"+Math.random().toString(36).slice(2);function Ro(e){if(!e[Hu]){e[Hu]=!0,df.forEach(function(r){r!=="selectionchange"&&(K0.has(r)||Co(r,!1,e),Co(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hu]||(t[Hu]=!0,Co("selectionchange",!1,t))}}function bp(e,t,r,i){switch(Xp(t)){case 2:var o=Sb;break;case 8:o=Ob;break;default:o=Ko}r=o.bind(null,t,r,e),o=void 0,!Fl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Do(e,t,r,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var p=i.tag;if(p===3||p===4){var v=i.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=i.return;p!==null;){var b=p.tag;if((b===3||b===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=Ra(v),p===null)return;if(b=p.tag,b===5||b===6||b===26||b===27){i=c=p;continue e}v=v.parentNode}}i=i.return}zf(function(){var T=c,C=Pl(r),q=[];e:{var A=If.get(e);if(A!==void 0){var j=Fi,J=e;switch(e){case"keypress":if(Pi(r)===0)break e;case"keydown":case"keyup":j=Hg;break;case"focusin":J="focus",j=ts;break;case"focusout":J="blur",j=ts;break;case"beforeblur":case"afterblur":j=ts;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Ag;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=$g;break;case Xf:case Pf:case Jf:j=Cg;break;case Ff:j=Yg;break;case"scroll":case"scrollend":j=Tg;break;case"wheel":j=Kg;break;case"copy":case"cut":case"paste":j=Dg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=jf;break;case"toggle":case"beforetoggle":j=Pg}var ue=(t&4)!==0,Ze=!ue&&(e==="scroll"||e==="scrollend"),z=ue?A!==null?A+"Capture":null:A;ue=[];for(var S=T,E;S!==null;){var U=S;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||z===null||(U=Cr(S,z),U!=null&&ue.push(ci(S,U,E))),Ze)break;S=S.return}0<ue.length&&(A=new j(A,J,null,r,C),q.push({event:A,listeners:ue}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",A&&r!==Xl&&(J=r.relatedTarget||r.fromElement)&&(Ra(J)||J[Ca]))break e;if((j||A)&&(A=C.window===C?C:(A=C.ownerDocument)?A.defaultView||A.parentWindow:window,j?(J=r.relatedTarget||r.toElement,j=T,J=J?Ra(J):null,J!==null&&(Ze=f(J),ue=J.tag,J!==Ze||ue!==5&&ue!==27&&ue!==6)&&(J=null)):(j=null,J=T),j!==J)){if(ue=wf,U="onMouseLeave",z="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(ue=jf,U="onPointerLeave",z="onPointerEnter",S="pointer"),Ze=j==null?A:Mr(j),E=J==null?A:Mr(J),A=new ue(U,S+"leave",j,r,C),A.target=Ze,A.relatedTarget=E,U=null,Ra(C)===T&&(ue=new ue(z,S+"enter",J,r,C),ue.target=E,ue.relatedTarget=Ze,U=ue),Ze=U,j&&J)t:{for(ue=X0,z=j,S=J,E=0,U=z;U;U=ue(U))E++;U=0;for(var ie=S;ie;ie=ue(ie))U++;for(;0<E-U;)z=ue(z),E--;for(;0<U-E;)S=ue(S),U--;for(;E--;){if(z===S||S!==null&&z===S.alternate){ue=z;break t}z=ue(z),S=ue(S)}ue=null}else ue=null;j!==null&&_p(q,A,j,ue,!1),J!==null&&Ze!==null&&_p(q,Ze,J,ue,!0)}}e:{if(A=T?Mr(T):window,j=A.nodeName&&A.nodeName.toLowerCase(),j==="select"||j==="input"&&A.type==="file")var Te=qf;else if(Uf(A))if(Qf)Te=i0;else{Te=a0;var ee=n0}else j=A.nodeName,!j||j.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?T&&Kl(T.elementType)&&(Te=qf):Te=r0;if(Te&&(Te=Te(e,T))){Zf(q,Te,r,C);break e}ee&&ee(e,A,T),e==="focusout"&&T&&A.type==="number"&&T.memoizedProps.value!=null&&Vl(A,"number",A.value)}switch(ee=T?Mr(T):window,e){case"focusin":(Uf(ee)||ee.contentEditable==="true")&&(Ba=ee,ls=T,kr=null);break;case"focusout":kr=ls=Ba=null;break;case"mousedown":ss=!0;break;case"contextmenu":case"mouseup":case"dragend":ss=!1,Vf(q,r,C);break;case"selectionchange":if(l0)break;case"keydown":case"keyup":Vf(q,r,C)}var me;if(as)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Ha?Df(e,r)&&(Se="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Se="onCompositionStart");Se&&(Mf&&r.locale!=="ko"&&(Ha||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Ha&&(me=Ef()):(wn=C,Il="value"in wn?wn.value:wn.textContent,Ha=!0)),ee=Bu(T,Se),0<ee.length&&(Se=new Af(Se,e,null,r,C),q.push({event:Se,listeners:ee}),me?Se.data=me:(me=Nf(r),me!==null&&(Se.data=me)))),(me=Fg?Ig(e,r):Wg(e,r))&&(Se=Bu(T,"onBeforeInput"),0<Se.length&&(ee=new Af("onBeforeInput","beforeinput",null,r,C),q.push({event:ee,listeners:Se}),ee.data=me)),G0(q,e,T,r,C)}gp(q,t)})}function ci(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Bu(e,t){for(var r=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Cr(e,r),o!=null&&i.unshift(ci(e,o,c)),o=Cr(e,t),o!=null&&i.push(ci(e,o,c))),e.tag===3)return i;e=e.return}return[]}function X0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _p(e,t,r,i,o){for(var c=t._reactName,p=[];r!==null&&r!==i;){var v=r,b=v.alternate,T=v.stateNode;if(v=v.tag,b!==null&&b===i)break;v!==5&&v!==26&&v!==27||T===null||(b=T,o?(T=Cr(r,c),T!=null&&p.unshift(ci(r,T,b))):o||(T=Cr(r,c),T!=null&&p.push(ci(r,T,b)))),r=r.return}p.length!==0&&e.push({event:t,listeners:p})}var P0=/\r\n?/g,J0=/\u0000|\uFFFD/g;function Sp(e){return(typeof e=="string"?e:""+e).replace(P0,`
|
|
10
|
+
`).replace(J0,"")}function Op(e,t){return t=Sp(t),Sp(e)===t}function Ue(e,t,r,i,o,c){switch(r){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||qa(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&qa(e,""+i);break;case"className":Yi(e,"class",i);break;case"tabIndex":Yi(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Yi(e,r,i);break;case"style":Of(e,i,c);break;case"data":if(t!=="object"){Yi(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=Ki(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(r,"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"&&(r==="formAction"?(t!=="input"&&Ue(e,t,"name",o.name,o,null),Ue(e,t,"formEncType",o.formEncType,o,null),Ue(e,t,"formMethod",o.formMethod,o,null),Ue(e,t,"formTarget",o.formTarget,o,null)):(Ue(e,t,"encType",o.encType,o,null),Ue(e,t,"method",o.method,o,null),Ue(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=Ki(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(e.onclick=sn);break;case"onScroll":i!=null&&be("scroll",e);break;case"onScrollEnd":i!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}r=Ki(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""+i):e.removeAttribute(r);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":i===!0?e.setAttribute(r,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,i):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(r,i):e.removeAttribute(r);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(r):e.setAttribute(r,i);break;case"popover":be("beforetoggle",e),be("toggle",e),Gi(e,"popover",i);break;case"xlinkActuate":ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ln(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ln(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ln(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ln(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Gi(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=zg.get(r)||r,Gi(e,r,i))}}function No(e,t,r,i,o,c){switch(r){case"style":Of(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof i=="string"?qa(e,i):(typeof i=="number"||typeof i=="bigint")&&qa(e,""+i);break;case"onScroll":i!=null&&be("scroll",e);break;case"onScrollEnd":i!=null&&be("scrollend",e);break;case"onClick":i!=null&&(e.onclick=sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hf.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(o=r.endsWith("Capture"),t=r.slice(2,o?r.length-7:void 0),c=e[gt]||null,c=c!=null?c[r]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,i,o);break e}r in e?e[r]=i:i===!0?e.setAttribute(r,""):Gi(e,r,i)}}}function ct(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var i=!1,o=!1,c;for(c in r)if(r.hasOwnProperty(c)){var p=r[c];if(p!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ue(e,t,c,p,r,null)}}o&&Ue(e,t,"srcSet",r.srcSet,r,null),i&&Ue(e,t,"src",r.src,r,null);return;case"input":be("invalid",e);var v=c=p=o=null,b=null,T=null;for(i in r)if(r.hasOwnProperty(i)){var C=r[i];if(C!=null)switch(i){case"name":o=C;break;case"type":p=C;break;case"checked":b=C;break;case"defaultChecked":T=C;break;case"value":c=C;break;case"defaultValue":v=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(l(137,t));break;default:Ue(e,t,i,C,r,null)}}gf(e,c,v,b,T,p,o,!1);return;case"select":be("invalid",e),i=p=c=null;for(o in r)if(r.hasOwnProperty(o)&&(v=r[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":i=v;default:Ue(e,t,o,v,r,null)}t=c,r=p,e.multiple=!!i,t!=null?Za(e,!!i,t,!1):r!=null&&Za(e,!!i,r,!0);return;case"textarea":be("invalid",e),c=o=i=null;for(p in r)if(r.hasOwnProperty(p)&&(v=r[p],v!=null))switch(p){case"value":i=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:Ue(e,t,p,v,r,null)}_f(e,i,o,c);return;case"option":for(b in r)r.hasOwnProperty(b)&&(i=r[b],i!=null)&&(b==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":Ue(e,t,b,i,r,null));return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(i=0;i<oi.length;i++)be(oi[i],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(T in r)if(r.hasOwnProperty(T)&&(i=r[T],i!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ue(e,t,T,i,r,null)}return;default:if(Kl(t)){for(C in r)r.hasOwnProperty(C)&&(i=r[C],i!==void 0&&No(e,t,C,i,r,void 0));return}}for(v in r)r.hasOwnProperty(v)&&(i=r[v],i!=null&&Ue(e,t,v,i,r,null))}function F0(e,t,r,i){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,p=null,v=null,b=null,T=null,C=null;for(j in r){var q=r[j];if(r.hasOwnProperty(j)&&q!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":b=q;default:i.hasOwnProperty(j)||Ue(e,t,j,null,i,q)}}for(var A in i){var j=i[A];if(q=r[A],i.hasOwnProperty(A)&&(j!=null||q!=null))switch(A){case"type":c=j;break;case"name":o=j;break;case"checked":T=j;break;case"defaultChecked":C=j;break;case"value":p=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,t));break;default:j!==q&&Ue(e,t,A,j,i,q)}}Yl(e,p,v,b,T,C,c,o);return;case"select":j=p=v=A=null;for(c in r)if(b=r[c],r.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":j=b;default:i.hasOwnProperty(c)||Ue(e,t,c,null,i,b)}for(o in i)if(c=i[o],b=r[o],i.hasOwnProperty(o)&&(c!=null||b!=null))switch(o){case"value":A=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==b&&Ue(e,t,o,c,i,b)}t=v,r=p,i=j,A!=null?Za(e,!!r,A,!1):!!i!=!!r&&(t!=null?Za(e,!!r,t,!0):Za(e,!!r,r?[]:"",!1));return;case"textarea":j=A=null;for(v in r)if(o=r[v],r.hasOwnProperty(v)&&o!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,i,o)}for(p in i)if(o=i[p],c=r[p],i.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":A=o;break;case"defaultValue":j=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&Ue(e,t,p,o,i,c)}bf(e,A,j);return;case"option":for(var J in r)A=r[J],r.hasOwnProperty(J)&&A!=null&&!i.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:Ue(e,t,J,null,i,A));for(b in i)A=i[b],j=r[b],i.hasOwnProperty(b)&&A!==j&&(A!=null||j!=null)&&(b==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ue(e,t,b,A,i,j));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 ue in r)A=r[ue],r.hasOwnProperty(ue)&&A!=null&&!i.hasOwnProperty(ue)&&Ue(e,t,ue,null,i,A);for(T in i)if(A=i[T],j=r[T],i.hasOwnProperty(T)&&A!==j&&(A!=null||j!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(l(137,t));break;default:Ue(e,t,T,A,i,j)}return;default:if(Kl(t)){for(var Ze in r)A=r[Ze],r.hasOwnProperty(Ze)&&A!==void 0&&!i.hasOwnProperty(Ze)&&No(e,t,Ze,void 0,i,A);for(C in i)A=i[C],j=r[C],!i.hasOwnProperty(C)||A===j||A===void 0&&j===void 0||No(e,t,C,A,i,j);return}}for(var z in r)A=r[z],r.hasOwnProperty(z)&&A!=null&&!i.hasOwnProperty(z)&&Ue(e,t,z,null,i,A);for(q in i)A=i[q],j=r[q],!i.hasOwnProperty(q)||A===j||A==null&&j==null||Ue(e,t,q,A,i,j)}function xp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),i=0;i<r.length;i++){var o=r[i],c=o.transferSize,p=o.initiatorType,v=o.duration;if(c&&v&&xp(p)){for(p=0,v=o.responseEnd,i+=1;i<r.length;i++){var b=r[i],T=b.startTime;if(T>v)break;var C=b.transferSize,q=b.initiatorType;C&&xp(q)&&(b=b.responseEnd,p+=C*(b<v?1:(v-T)/(b-T)))}if(--i,t+=8*(c+p)/(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 Uo=null,Zo=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function zp(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 Ep(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 qo(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 Qo=null;function W0(){var e=window.event;return e&&e.type==="popstate"?e===Qo?!1:(Qo=e,!0):(Qo=null,!1)}var Tp=typeof setTimeout=="function"?setTimeout:void 0,eb=typeof clearTimeout=="function"?clearTimeout:void 0,wp=typeof Promise=="function"?Promise:void 0,tb=typeof queueMicrotask=="function"?queueMicrotask:typeof wp<"u"?function(e){return wp.resolve(null).then(e).catch(nb)}:Tp;function nb(e){setTimeout(function(){throw e})}function Gn(e){return e==="head"}function Ap(e,t){var r=t,i=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"||r==="/&"){if(i===0){e.removeChild(o),pr(t);return}i--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")i++;else if(r==="html")fi(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,fi(r);for(var c=r.firstChild;c;){var p=c.nextSibling,v=c.nodeName;c[jr]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||r.removeChild(c),c=p}}else r==="body"&&fi(e.ownerDocument.body);r=o}while(r);pr(t)}function jp(e,t){var r=e;e=0;do{var i=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=i}while(r)}function ko(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":ko(r),$l(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function ab(e,t,r,i){for(;e.nodeType===1;){var o=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[jr])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=Yt(e.nextSibling),e===null)break}return null}function rb(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Yt(e.nextSibling),e===null))return null;return e}function Mp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function Ho(e){return e.data==="$?"||e.data==="$~"}function Bo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ib(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var i=function(){t(),r.removeEventListener("DOMContentLoaded",i)};r.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Yt(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 Lo=null;function Cp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Yt(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Rp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Dp(e,t,r){switch(t=Lu(r),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 fi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$l(e)}var Vt=new Map,Np=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zn=Z.d;Z.d={f:ub,r:lb,D:sb,C:ob,L:cb,m:fb,X:hb,S:db,M:pb};function ub(){var e=zn.f(),t=Nu();return e||t}function lb(e){var t=Da(e);t!==null&&t.tag===5&&t.type==="form"?Fd(t):zn.r(e)}var fr=typeof document>"u"?null:document;function Up(e,t,r){var i=fr;if(i&&typeof t=="string"&&t){var o=Qt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),Np.has(o)||(Np.add(o),e={rel:e,crossOrigin:r,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),ct(t,"link",e),rt(t),i.head.appendChild(t)))}}function sb(e){zn.D(e),Up("dns-prefetch",e,null)}function ob(e,t){zn.C(e,t),Up("preconnect",e,t)}function cb(e,t,r){zn.L(e,t,r);var i=fr;if(i&&e&&t){var o='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+Qt(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+Qt(r.imageSizes)+'"]')):o+='[href="'+Qt(e)+'"]';var c=o;switch(t){case"style":c=dr(e);break;case"script":c=hr(e)}Vt.has(c)||(e=O({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Vt.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(di(c))||t==="script"&&i.querySelector(hi(c))||(t=i.createElement("link"),ct(t,"link",e),rt(t),i.head.appendChild(t)))}}function fb(e,t){zn.m(e,t);var r=fr;if(r&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Qt(i)+'"][href="'+Qt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hr(e)}if(!Vt.has(c)&&(e=O({rel:"modulepreload",href:e},t),Vt.set(c,e),r.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(hi(c)))return}i=r.createElement("link"),ct(i,"link",e),rt(i),r.head.appendChild(i)}}}function db(e,t,r){zn.S(e,t,r);var i=fr;if(i&&e){var o=Na(i).hoistableStyles,c=dr(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=i.querySelector(di(c)))v.loading=5;else{e=O({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Vt.get(c))&&$o(e,r);var b=p=i.createElement("link");rt(b),ct(b,"link",e),b._p=new Promise(function(T,C){b.onload=T,b.onerror=C}),b.addEventListener("load",function(){v.loading|=1}),b.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Gu(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function hb(e,t){zn.X(e,t);var r=fr;if(r&&e){var i=Na(r).hoistableScripts,o=hr(e),c=i.get(o);c||(c=r.querySelector(hi(o)),c||(e=O({src:e,async:!0},t),(t=Vt.get(o))&&Go(e,t),c=r.createElement("script"),rt(c),ct(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function pb(e,t){zn.M(e,t);var r=fr;if(r&&e){var i=Na(r).hoistableScripts,o=hr(e),c=i.get(o);c||(c=r.querySelector(hi(o)),c||(e=O({src:e,async:!0,type:"module"},t),(t=Vt.get(o))&&Go(e,t),c=r.createElement("script"),rt(c),ct(c,"link",e),r.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Zp(e,t,r,i){var o=(o=oe.current)?$u(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=dr(r.href),r=Na(o).hoistableStyles,i=r.get(t),i||(i={type:"style",instance:null,count:0,state:null},r.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=dr(r.href);var c=Na(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(di(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Vt.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Vt.set(e,r),c||mb(o,e,r,p.state))),t&&i===null)throw Error(l(528,""));return p}if(t&&i!==null)throw Error(l(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hr(r),r=Na(o).hoistableScripts,i=r.get(t),i||(i={type:"script",instance:null,count:0,state:null},r.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function dr(e){return'href="'+Qt(e)+'"'}function di(e){return'link[rel="stylesheet"]['+e+"]"}function qp(e){return O({},e,{"data-precedence":e.precedence,precedence:null})}function mb(e,t,r,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),ct(t,"link",r),rt(t),e.head.appendChild(t))}function hr(e){return'[src="'+Qt(e)+'"]'}function hi(e){return"script[async]"+e}function Qp(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Qt(r.href)+'"]');if(i)return t.instance=i,rt(i),i;var o=O({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),rt(i),ct(i,"style",o),Gu(i,r.precedence,e),t.instance=i;case"stylesheet":o=dr(r.href);var c=e.querySelector(di(o));if(c)return t.state.loading|=4,t.instance=c,rt(c),c;i=qp(r),(o=Vt.get(o))&&$o(i,o),c=(e.ownerDocument||e).createElement("link"),rt(c);var p=c;return p._p=new Promise(function(v,b){p.onload=v,p.onerror=b}),ct(c,"link",i),t.state.loading|=4,Gu(c,r.precedence,e),t.instance=c;case"script":return c=hr(r.src),(o=e.querySelector(hi(c)))?(t.instance=o,rt(o),o):(i=r,(o=Vt.get(c))&&(i=O({},r),Go(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),rt(o),ct(o,"link",i),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&&(i=t.instance,t.state.loading|=4,Gu(i,r.precedence,e));return t.instance}function Gu(e,t,r){for(var i=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,p=0;p<i.length;p++){var v=i[p];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function $o(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Go(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yu=null;function kp(e,t,r){if(Yu===null){var i=new Map,o=Yu=new Map;o.set(r,i)}else o=Yu,i=o.get(r),i||(i=new Map,o.set(r,i));if(i.has(e))return i;for(i.set(e,null),r=r.getElementsByTagName(e),o=0;o<r.length;o++){var c=r[o];if(!(c[jr]||c[ut]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=i.get(p);v?v.push(c):i.set(p,[c])}}return i}function Hp(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function yb(e,t,r){if(r===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 Bp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function vb(e,t,r,i){if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var o=dr(i.href),c=t.querySelector(di(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vu.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=c,rt(c);return}c=t.ownerDocument||t,i=qp(i),(o=Vt.get(o))&&$o(i,o),c=c.createElement("link"),rt(c);var p=c;p._p=new Promise(function(v,b){p.onload=v,p.onerror=b}),ct(c,"link",i),r.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Vu.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Yo=0;function gb(e,t){return e.stylesheets&&e.count===0&&Xu(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var i=setTimeout(function(){if(e.stylesheets&&Xu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Yo===0&&(Yo=62500*I0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Yo?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ku=null;function Xu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ku=new Map,t.forEach(bb,e),Ku=null,Vu.call(e))}function bb(e,t){if(!(t.state.loading&4)){var r=Ku.get(e);if(r)var i=r.get(null);else{r=new Map,Ku.set(e,r);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(r.set(p.dataset.precedence,p),i=p)}i&&r.set(null,i)}o=t.instance,p=o.getAttribute("data-precedence"),c=r.get(p)||i,c===i&&r.set(null,o),r.set(p,o),this.count++,i=Vu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var pi={$$typeof:de,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function _b(e,t,r,i,o,c,p,v,b){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=kl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.hiddenUpdates=kl(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Lp(e,t,r,i,o,c,p,v,b,T,C,q){return e=new _b(e,t,r,p,b,T,C,q,v),t=1,c===!0&&(t|=24),c=Mt(3,null,null,t),e.current=c,c.stateNode=e,t=xs(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:r,cache:t},ws(c),e}function $p(e){return e?(e=Ga,e):Ga}function Gp(e,t,r,i,o,c){o=$p(o),i.context===null?i.context=o:i.pendingContext=o,i=Dn(t),i.payload={element:r},c=c===void 0?null:c,c!==null&&(i.callback=c),r=Nn(e,i,t),r!==null&&(zt(r,e,t),Vr(r,e,t))}function Yp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Vo(e,t){Yp(e,t),(e=e.alternate)&&Yp(e,t)}function Vp(e){if(e.tag===13||e.tag===31){var t=da(e,67108864);t!==null&&zt(t,e,67108864),Vo(e,67108864)}}function Kp(e){if(e.tag===13||e.tag===31){var t=Ut();t=Hl(t);var r=da(e,t);r!==null&&zt(r,e,t),Vo(e,t)}}var Pu=!0;function Sb(e,t,r,i){var o=x.T;x.T=null;var c=Z.p;try{Z.p=2,Ko(e,t,r,i)}finally{Z.p=c,x.T=o}}function Ob(e,t,r,i){var o=x.T;x.T=null;var c=Z.p;try{Z.p=8,Ko(e,t,r,i)}finally{Z.p=c,x.T=o}}function Ko(e,t,r,i){if(Pu){var o=Xo(i);if(o===null)Do(e,t,i,Ju,r),Pp(e,i);else if(zb(o,e,t,r,i))i.stopPropagation();else if(Pp(e,i),t&4&&-1<xb.indexOf(e)){for(;o!==null;){var c=Da(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=la(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var b=1<<31-At(p);v.entanglements[1]|=b,p&=~b}nn(c),(je&6)===0&&(Ru=Tt()+500,si(0))}}break;case 31:case 13:v=da(c,2),v!==null&&zt(v,c,2),Nu(),Vo(c,2)}if(c=Xo(i),c===null&&Do(e,t,i,Ju,r),c===o)break;o=c}o!==null&&i.stopPropagation()}else Do(e,t,i,null,r)}}function Xo(e){return e=Pl(e),Po(e)}var Ju=null;function Po(e){if(Ju=null,e=Ra(e),e!==null){var t=f(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=d(t),e!==null)return e;e=null}else if(r===31){if(e=h(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ju=e,null}function Xp(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(sg()){case tf:return 2;case nf:return 8;case ki:case og:return 32;case af:return 268435456;default:return 32}default:return 32}}var Jo=!1,Yn=null,Vn=null,Kn=null,mi=new Map,yi=new Map,Xn=[],xb="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 Pp(e,t){switch(e){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":mi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yi.delete(t.pointerId)}}function vi(e,t,r,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Da(t),t!==null&&Vp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function zb(e,t,r,i,o){switch(t){case"focusin":return Yn=vi(Yn,e,t,r,i,o),!0;case"dragenter":return Vn=vi(Vn,e,t,r,i,o),!0;case"mouseover":return Kn=vi(Kn,e,t,r,i,o),!0;case"pointerover":var c=o.pointerId;return mi.set(c,vi(mi.get(c)||null,e,t,r,i,o)),!0;case"gotpointercapture":return c=o.pointerId,yi.set(c,vi(yi.get(c)||null,e,t,r,i,o)),!0}return!1}function Jp(e){var t=Ra(e.target);if(t!==null){var r=f(t);if(r!==null){if(t=r.tag,t===13){if(t=d(r),t!==null){e.blockedOn=t,cf(e.priority,function(){Kp(r)});return}}else if(t===31){if(t=h(r),t!==null){e.blockedOn=t,cf(e.priority,function(){Kp(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Xo(e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);Xl=i,r.target.dispatchEvent(i),Xl=null}else return t=Da(r),t!==null&&Vp(t),e.blockedOn=r,!1;t.shift()}return!0}function Fp(e,t,r){Fu(e)&&r.delete(t)}function Eb(){Jo=!1,Yn!==null&&Fu(Yn)&&(Yn=null),Vn!==null&&Fu(Vn)&&(Vn=null),Kn!==null&&Fu(Kn)&&(Kn=null),mi.forEach(Fp),yi.forEach(Fp)}function Iu(e,t){e.blockedOn===t&&(e.blockedOn=null,Jo||(Jo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Eb)))}var Wu=null;function Ip(e){Wu!==e&&(Wu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Wu===e&&(Wu=null);for(var t=0;t<e.length;t+=3){var r=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Po(i||r)===null)continue;break}var c=Da(r);c!==null&&(e.splice(t,3),t-=3,Ks(c,{pending:!0,data:o,method:r.method,action:i},i,o))}}))}function pr(e){function t(b){return Iu(b,e)}Yn!==null&&Iu(Yn,e),Vn!==null&&Iu(Vn,e),Kn!==null&&Iu(Kn,e),mi.forEach(t),yi.forEach(t);for(var r=0;r<Xn.length;r++){var i=Xn[r];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Xn.length&&(r=Xn[0],r.blockedOn===null);)Jp(r),r.blockedOn===null&&Xn.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(i=0;i<r.length;i+=3){var o=r[i],c=r[i+1],p=o[gt]||null;if(typeof c=="function")p||Ip(r);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[gt]||null)v=p.formAction;else if(Po(o)!==null)continue}else v=p.action;typeof v=="function"?r[i+1]=v:(r.splice(i,3),i-=3),Ip(r)}}}function Wp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(r,20)}function r(){if(!i&&!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 i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Fo(e){this._internalRoot=e}el.prototype.render=Fo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var r=t.current,i=Ut();Gp(r,i,e,t,null,null)},el.prototype.unmount=Fo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gp(e.current,2,null,e,null,null),Nu(),t[Ca]=null}};function el(e){this._internalRoot=e}el.prototype.unstable_scheduleHydration=function(e){if(e){var t=of();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Xn.length&&t!==0&&t<Xn[r].priority;r++);Xn.splice(r,0,e),r===0&&Jp(e)}};var em=a.version;if(em!=="19.2.5")throw Error(l(527,em,"19.2.5"));Z.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?g(e):null,e=e===null?null:e.stateNode,e};var Tb={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tl.isDisabled&&tl.supportsFiber)try{Tr=tl.inject(Tb),wt=tl}catch{}}return bi.createRoot=function(e,t){if(!s(e))throw Error(l(299));var r=!1,i="",o=lh,c=sh,p=oh;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Lp(e,1,!1,null,null,r,i,null,o,c,p,Wp),e[Ca]=t.current,Ro(e),new Fo(t)},bi.hydrateRoot=function(e,t,r){if(!s(e))throw Error(l(299));var i=!1,o="",c=lh,p=sh,v=oh,b=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError),r.formState!==void 0&&(b=r.formState)),t=Lp(e,1,!0,t,r??null,i,o,b,c,p,v,Wp),t.context=$p(null),r=t.current,i=Ut(),i=Hl(i),o=Dn(i),o.callback=null,Nn(r,o,i),r=i,t.current.lanes=r,Ar(t,r),nn(t),e[Ca]=t.current,Ro(e),new el(t)},bi.version="19.2.5",bi}var cm;function Hb(){if(cm)return ec.exports;cm=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(),ec.exports=kb(),ec.exports}var Bb=Hb(),wa=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(){}},Lb=class extends wa{#t;#e;#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.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Uc=new Lb,$b={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},Gb=class{#t=$b;#e=!1;setTimeoutProvider(n){this.#t=n}setTimeout(n,a){return this.#t.setTimeout(n,a)}clearTimeout(n){this.#t.clearTimeout(n)}setInterval(n,a){return this.#t.setInterval(n,a)}clearInterval(n){this.#t.clearInterval(n)}},Ea=new Gb;function Yb(n){setTimeout(n,0)}var Vb=typeof window>"u"||"Deno"in globalThis;function ht(){}function Kb(n,a){return typeof n=="function"?n(a):n}function fc(n){return typeof n=="number"&&n>=0&&n!==1/0}function uy(n,a){return Math.max(n+(a||0)-Date.now(),0)}function In(n,a){return typeof n=="function"?n(a):n}function Kt(n,a){return typeof n=="function"?n(a):n}function fm(n,a){const{type:u="all",exact:l,fetchStatus:s,predicate:f,queryKey:d,stale:h}=n;if(d){if(l){if(a.queryHash!==Zc(d,a.options))return!1}else if(!Ti(a.queryKey,d))return!1}if(u!=="all"){const m=a.isActive();if(u==="active"&&!m||u==="inactive"&&m)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||s&&s!==a.state.fetchStatus||f&&!f(a))}function dm(n,a){const{exact:u,status:l,predicate:s,mutationKey:f}=n;if(f){if(!a.options.mutationKey)return!1;if(u){if(Wn(a.options.mutationKey)!==Wn(f))return!1}else if(!Ti(a.options.mutationKey,f))return!1}return!(l&&a.state.status!==l||s&&!s(a))}function Zc(n,a){return(a?.queryKeyHashFn||Wn)(n)}function Wn(n){return JSON.stringify(n,(a,u)=>dc(u)?Object.keys(u).sort().reduce((l,s)=>(l[s]=u[s],l),{}):u)}function Ti(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(u=>Ti(n[u],a[u])):!1}var Xb=Object.prototype.hasOwnProperty;function qc(n,a,u=0){if(n===a)return n;if(u>500)return a;const l=hm(n)&&hm(a);if(!l&&!(dc(n)&&dc(a)))return a;const f=(l?n:Object.keys(n)).length,d=l?a:Object.keys(a),h=d.length,m=l?new Array(h):{};let y=0;for(let g=0;g<h;g++){const O=l?g:d[g],w=n[O],Q=a[O];if(w===Q){m[O]=w,(l?g<f:Xb.call(n,O))&&y++;continue}if(w===null||Q===null||typeof w!="object"||typeof Q!="object"){m[O]=Q;continue}const $=qc(w,Q,u+1);m[O]=$,$===w&&y++}return f===h&&y===f?n:m}function wi(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const u in n)if(n[u]!==a[u])return!1;return!0}function hm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function dc(n){if(!pm(n))return!1;const a=n.constructor;if(a===void 0)return!0;const u=a.prototype;return!(!pm(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function pm(n){return Object.prototype.toString.call(n)==="[object Object]"}function Pb(n){return new Promise(a=>{Ea.setTimeout(a,n)})}function hc(n,a,u){return typeof u.structuralSharing=="function"?u.structuralSharing(n,a):u.structuralSharing!==!1?qc(n,a):a}function Jb(n,a,u=0){const l=[...n,a];return u&&l.length>u?l.slice(1):l}function Fb(n,a,u=0){const l=[a,...n];return u&&l.length>u?l.slice(0,-1):l}var Zt=Symbol();function ly(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===Zt?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Qc(n,a){return typeof n=="function"?n(...a):!!n}function Ib(n,a,u){let l=!1,s;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(s??=a(),l||(l=!0,s.aborted?u():s.addEventListener("abort",u,{once:!0})),s)}),n}var Ai=(()=>{let n=()=>Vb;return{isServer(){return n()},setIsServer(a){n=a}}})();function pc(){let n,a;const u=new Promise((s,f)=>{n=s,a=f});u.status="pending",u.catch(()=>{});function l(s){Object.assign(u,s),delete u.resolve,delete u.reject}return u.resolve=s=>{l({status:"fulfilled",value:s}),n(s)},u.reject=s=>{l({status:"rejected",reason:s}),a(s)},u}var Wb=Yb;function e_(){let n=[],a=0,u=h=>{h()},l=h=>{h()},s=Wb;const f=h=>{a?n.push(h):s(()=>{u(h)})},d=()=>{const h=n;n=[],h.length&&s(()=>{l(()=>{h.forEach(m=>{u(m)})})})};return{batch:h=>{let m;a++;try{m=h()}finally{a--,a||d()}return m},batchCalls:h=>(...m)=>{f(()=>{h(...m)})},schedule:f,setNotifyFunction:h=>{u=h},setBatchNotifyFunction:h=>{l=h},setScheduler:h=>{s=h}}}var Xe=e_(),t_=class extends wa{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const a=()=>n(!0),u=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",u)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(u=>{u(n)}))}isOnline(){return this.#t}},pl=new t_;function n_(n){return Math.min(1e3*2**n,3e4)}function sy(n){return(n??"online")==="online"?pl.isOnline():!0}var mc=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function oy(n){let a=!1,u=0,l;const s=pc(),f=()=>s.status!=="pending",d=H=>{if(!f()){const le=new mc(H);w(le),n.onCancel?.(le)}},h=()=>{a=!0},m=()=>{a=!1},y=()=>Uc.isFocused()&&(n.networkMode==="always"||pl.isOnline())&&n.canRun(),g=()=>sy(n.networkMode)&&n.canRun(),O=H=>{f()||(l?.(),s.resolve(H))},w=H=>{f()||(l?.(),s.reject(H))},Q=()=>new Promise(H=>{l=le=>{(f()||y())&&H(le)},n.onPause?.()}).then(()=>{l=void 0,f()||n.onContinue?.()}),$=()=>{if(f())return;let H;const le=u===0?n.initialPromise:void 0;try{H=le??n.fn()}catch(se){H=Promise.reject(se)}Promise.resolve(H).then(O).catch(se=>{if(f())return;const Ce=n.retry??(Ai.isServer()?0:3),de=n.retryDelay??n_,ve=typeof de=="function"?de(u,se):de,V=Ce===!0||typeof Ce=="number"&&u<Ce||typeof Ce=="function"&&Ce(u,se);if(a||!V){w(se);return}u++,n.onFail?.(u,se),Pb(ve).then(()=>y()?void 0:Q()).then(()=>{a?w(se):$()})})};return{promise:s,status:()=>s.status,cancel:d,continue:()=>(l?.(),s),cancelRetry:h,continueRetry:m,canStart:g,start:()=>(g()?$():Q().then($),s)}}var cy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fc(this.gcTime)&&(this.#t=Ea.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ai.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(Ea.clearTimeout(this.#t),this.#t=void 0)}},a_=class extends cy{#t;#e;#n;#r;#a;#i;#u;constructor(n){super(),this.#u=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#r=n.client,this.#n=this.#r.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=ym(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=ym(this.options);a.data!==void 0&&(this.setState(mm(a.data,a.dataUpdatedAt)),this.#t=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const u=hc(this.state.data,n,this.options);return this.#s({data:u,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),u}setState(n,a){this.#s({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#a?.promise;return this.#a?.cancel(n),a?a.then(ht).catch(ht):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=>Kt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>In(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:!uy(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.#n.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.#u||this.#l()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#s({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 h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const u=new AbortController,l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#u=!0,u.signal)})},s=()=>{const h=ly(this.options,a),y=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return l(g),g})();return this.#u=!1,this.options.persister?this.options.persister(h,y,this):h(y)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:s};return l(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=oy({initialPromise:a?.initialPromise,fn:d.fetchFn,onCancel:h=>{h instanceof mc&&h.revert&&this.setState({...this.#e,fetchStatus:"idle"}),u.abort()},onFail:(h,m)=>{this.#s({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof mc){if(h.silent)return this.#a.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(n){const a=u=>{switch(n.type){case"failed":return{...u,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...fy(u.data,this.options),fetchMeta:n.meta??null};case"success":const l={...u,...mm(n.data,n.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?l:void 0,l;case"error":const s=n.error;return{...u,error:s,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...n.state}}};this.state=a(this.state),Xe.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function fy(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sy(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function mm(n,a){return{data:n,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ym(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,u=a!==void 0,l=u?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:u?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var Ni=class extends wa{constructor(n,a){super(),this.options=a,this.#t=n,this.#l=null,this.#u=pc(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#u;#l;#s;#d;#h;#c;#f;#o;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),vm(this.#e,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yc(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yc(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,u=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#e.setOptions(this.options),a._defaulted&&!wi(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const l=this.hasListeners();l&&gm(this.#e,u,this.options,a)&&this.#m(),this.updateResult(),l&&(this.#e!==u||Kt(this.options.enabled,this.#e)!==Kt(a.enabled,this.#e)||In(this.options.staleTime,this.#e)!==In(a.staleTime,this.#e))&&this.#y();const s=this.#v();l&&(this.#e!==u||Kt(this.options.enabled,this.#e)!==Kt(a.enabled,this.#e)||s!==this.#o)&&this.#g(s)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),u=this.createResult(a,n);return i_(this,u)&&(this.#r=u,this.#i=this.options,this.#a=this.#e.state),u}getCurrentResult(){return this.#r}trackResult(n,a){return new Proxy(n,{get:(u,l)=>(this.trackProp(l),a?.(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,l))})}trackProp(n){this.#p.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),u=this.#t.getQueryCache().build(this.#t,a);return u.fetch().then(()=>this.createResult(u,a))}fetch(n){return this.#m({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(n){this.#O();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(ht)),a}#y(){this.#_();const n=In(this.options.staleTime,this.#e);if(Ai.isServer()||this.#r.isStale||!fc(n))return;const u=uy(this.#r.dataUpdatedAt,n)+1;this.#c=Ea.setTimeout(()=>{this.#r.isStale||this.updateResult()},u)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#o=n,!(Ai.isServer()||Kt(this.options.enabled,this.#e)===!1||!fc(this.#o)||this.#o===0)&&(this.#f=Ea.setInterval(()=>{(this.options.refetchIntervalInBackground||Uc.isFocused())&&this.#m()},this.#o))}#b(){this.#y(),this.#g(this.#v())}#_(){this.#c!==void 0&&(Ea.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#f!==void 0&&(Ea.clearInterval(this.#f),this.#f=void 0)}createResult(n,a){const u=this.#e,l=this.options,s=this.#r,f=this.#a,d=this.#i,m=n!==u?n.state:this.#n,{state:y}=n;let g={...y},O=!1,w;if(a._optimisticResults){const Y=this.hasListeners(),I=!Y&&vm(n,a),ae=Y&&gm(n,u,a,l);(I||ae)&&(g={...g,...fy(y.data,n.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:Q,errorUpdatedAt:$,status:H}=g;w=g.data;let le=!1;if(a.placeholderData!==void 0&&w===void 0&&H==="pending"){let Y;s?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(Y=s.data,le=!0):Y=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,Y!==void 0&&(H="success",w=hc(s?.data,Y,a),O=!0)}if(a.select&&w!==void 0&&!le)if(s&&w===f?.data&&a.select===this.#s)w=this.#d;else try{this.#s=a.select,w=a.select(w),w=hc(s?.data,w,a),this.#d=w,this.#l=null}catch(Y){this.#l=Y}this.#l&&(Q=this.#l,w=this.#d,$=Date.now(),H="error");const se=g.fetchStatus==="fetching",Ce=H==="pending",de=H==="error",ve=Ce&&se,V=w!==void 0,M={status:H,fetchStatus:g.fetchStatus,isPending:Ce,isSuccess:H==="success",isError:de,isInitialLoading:ve,isLoading:ve,data:w,dataUpdatedAt:g.dataUpdatedAt,error:Q,errorUpdatedAt:$,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:n.isFetched(),isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:se,isRefetching:se&&!Ce,isLoadingError:de&&!V,isPaused:g.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:de&&V,isStale:kc(n,a),refetch:this.refetch,promise:this.#u,isEnabled:Kt(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const Y=M.data!==void 0,I=M.status==="error"&&!Y,ae=he=>{I?he.reject(M.error):Y&&he.resolve(M.data)},ne=()=>{const he=this.#u=M.promise=pc();ae(he)},P=this.#u;switch(P.status){case"pending":n.queryHash===u.queryHash&&ae(P);break;case"fulfilled":(I||M.data!==P.value)&&ne();break;case"rejected":(!I||M.error!==P.reason)&&ne();break}}return M}updateResult(){const n=this.#r,a=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#e),wi(a,n))return;this.#r=a;const u=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,s=typeof l=="function"?l():l;if(s==="all"||!s&&!this.#p.size)return!0;const f=new Set(s??this.#p);return this.options.throwOnError&&f.add("error"),Object.keys(this.#r).some(d=>{const h=d;return this.#r[h]!==n[h]&&f.has(h)})};this.#x({listeners:u()})}#O(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(n){Xe.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function r_(n,a){return Kt(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function vm(n,a){return r_(n,a)||n.state.data!==void 0&&yc(n,a,a.refetchOnMount)}function yc(n,a,u){if(Kt(a.enabled,n)!==!1&&In(a.staleTime,n)!=="static"){const l=typeof u=="function"?u(n):u;return l==="always"||l!==!1&&kc(n,a)}return!1}function gm(n,a,u,l){return(n!==a||Kt(l.enabled,n)===!1)&&(!u.suspense||n.state.status!=="error")&&kc(n,u)}function kc(n,a){return Kt(a.enabled,n)!==!1&&n.isStaleByTime(In(a.staleTime,n))}function i_(n,a){return!wi(n.getCurrentResult(),a)}function ml(n){return{onFetch:(a,u)=>{const l=a.options,s=a.fetchOptions?.meta?.fetchMore?.direction,f=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},m=0;const y=async()=>{let g=!1;const O=$=>{Ib($,()=>a.signal,()=>g=!0)},w=ly(a.options,a.fetchOptions),Q=async($,H,le)=>{if(g)return Promise.reject();if(H==null&&$.pages.length)return Promise.resolve($);const Ce=(()=>{const X={client:a.client,queryKey:a.queryKey,pageParam:H,direction:le?"backward":"forward",meta:a.options.meta};return O(X),X})(),de=await w(Ce),{maxPages:ve}=a.options,V=le?Fb:Jb;return{pages:V($.pages,de,ve),pageParams:V($.pageParams,H,ve)}};if(s&&f.length){const $=s==="backward",H=$?dy:vc,le={pages:f,pageParams:d},se=H(l,le);h=await Q(le,se,$)}else{const $=n??f.length;do{const H=m===0?d[0]??l.initialPageParam:vc(l,h);if(m>0&&H==null)break;h=await Q(h,H),m++}while(m<$)}return h};a.options.persister?a.fetchFn=()=>a.options.persister?.(y,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},u):a.fetchFn=y}}}function vc(n,{pages:a,pageParams:u}){const l=a.length-1;return a.length>0?n.getNextPageParam(a[l],a,u[l],u):void 0}function dy(n,{pages:a,pageParams:u}){return a.length>0?n.getPreviousPageParam?.(a[0],a,u[0],u):void 0}function u_(n,a){return a?vc(n,a)!=null:!1}function l_(n,a){return!a||!n.getPreviousPageParam?!1:dy(n,a)!=null}var hy=class extends Ni{constructor(n,a){super(n,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:ml()})}getOptimisticResult(n){return n.behavior=ml(),super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,a){const{state:u}=n,l=super.createResult(n,a),{isFetching:s,isRefetching:f,isError:d,isRefetchError:h}=l,m=u.fetchMeta?.fetchMore?.direction,y=d&&m==="forward",g=s&&m==="forward",O=d&&m==="backward",w=s&&m==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:u_(a,u.data),hasPreviousPage:l_(a,u.data),isFetchNextPageError:y,isFetchingNextPage:g,isFetchPreviousPageError:O,isFetchingPreviousPage:w,isRefetchError:h&&!y&&!O,isRefetching:f&&!g&&!w}}},s_=class extends cy{#t;#e;#n;#r;constructor(n){super(),this.#t=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#e=[],this.state=n.state||py(),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.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(a=>a!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})},u={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=oy({fn:()=>this.options.mutationFn?this.options.mutationFn(n,u):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({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",s=!this.#r.canStart();try{if(l)a();else{this.#a({type:"pending",variables:n,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,u);const d=await this.options.onMutate?.(n,u);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:s})}const f=await this.#r.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,u),await this.options.onSuccess?.(f,n,this.state.context,u),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,u),await this.options.onSettled?.(f,null,n,this.state.context,u),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,u)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,u)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,u)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,u)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const a=u=>{switch(n.type){case"failed":return{...u,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,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{...u,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:n.error,failureCount:u.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Xe.batch(()=>{this.#e.forEach(u=>{u.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function py(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var o_=class extends wa{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,u){const l=new s_({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:u});return this.add(l),l}add(n){this.#t.add(n);const a=nl(n);if(typeof a=="string"){const u=this.#e.get(a);u?u.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=nl(n);if(typeof a=="string"){const u=this.#e.get(a);if(u)if(u.length>1){const l=u.indexOf(n);l!==-1&&u.splice(l,1)}else u[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=nl(n);if(typeof a=="string"){const l=this.#e.get(a)?.find(s=>s.state.status==="pending");return!l||l===n}else return!0}runNext(n){const a=nl(n);return typeof a=="string"?this.#e.get(a)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xe.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(u=>dm(a,u))}findAll(n={}){return this.getAll().filter(a=>dm(n,a))}notify(n){Xe.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Xe.batch(()=>Promise.all(n.map(a=>a.continue().catch(ht))))}};function nl(n){return n.options.scope?.id}var c_=class extends wa{#t;#e=void 0;#n;#r;constructor(a,u){super(),this.#t=a,this.setOptions(u),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const u=this.options;this.options=this.#t.defaultMutationOptions(a),wi(this.options,u)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),u?.mutationKey&&this.options.mutationKey&&Wn(u.mutationKey)!==Wn(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#a(),this.#i(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(a,u){return this.#r=u,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(a)}#a(){const a=this.#n?.state??py();this.#e={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#i(a){Xe.batch(()=>{if(this.#r&&this.hasListeners()){const u=this.#e.variables,l=this.#e.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#r.onSuccess?.(a.data,u,l,s)}catch(f){Promise.reject(f)}try{this.#r.onSettled?.(a.data,null,u,l,s)}catch(f){Promise.reject(f)}}else if(a?.type==="error"){try{this.#r.onError?.(a.error,u,l,s)}catch(f){Promise.reject(f)}try{this.#r.onSettled?.(void 0,a.error,u,l,s)}catch(f){Promise.reject(f)}}}this.listeners.forEach(u=>{u(this.#e)})})}};function bm(n,a){const u=new Set(a);return n.filter(l=>!u.has(l))}function f_(n,a,u){const l=n.slice(0);return l[a]=u,l}var d_=class extends wa{#t;#e;#n;#r;#a;#i;#u;#l;#s;#d=[];constructor(n,a,u){super(),this.#t=n,this.#r=u,this.#n=[],this.#a=[],this.#e=[],this.setQueries(a)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(n=>{n.subscribe(a=>{this.#o(n,a)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(n=>{n.destroy()})}setQueries(n,a){this.#n=n,this.#r=a,Xe.batch(()=>{const u=this.#a,l=this.#f(this.#n);l.forEach(g=>g.observer.setOptions(g.defaultedQueryOptions));const s=l.map(g=>g.observer),f=s.map(g=>g.getCurrentResult()),d=u.length!==s.length,h=s.some((g,O)=>g!==u[O]),m=d||h,y=m?!0:f.some((g,O)=>{const w=this.#e[O];return!w||!wi(g,w)});!m&&!y||(m&&(this.#d=l,this.#a=s),this.#e=f,this.hasListeners()&&(m&&(bm(u,s).forEach(g=>{g.destroy()}),bm(s,u).forEach(g=>{g.subscribe(O=>{this.#o(g,O)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(n=>n.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(n,a){const u=this.#f(n),l=u.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions)),s=u.map(f=>f.defaultedQueryOptions.queryHash);return[l,f=>this.#c(f??l,a,s),()=>this.#h(l,u)]}#h(n,a){return a.map((u,l)=>{const s=n[l];return u.defaultedQueryOptions.notifyOnChangeProps?s:u.observer.trackResult(s,f=>{a.forEach(d=>{d.observer.trackProp(f)})})})}#c(n,a,u){if(a){const l=this.#s,s=u!==void 0&&l!==void 0&&(l.length!==u.length||u.some((f,d)=>f!==l[d]));return(!this.#i||this.#e!==this.#l||s||a!==this.#u)&&(this.#u=a,this.#l=this.#e,u!==void 0&&(this.#s=u),this.#i=qc(this.#i,a(n))),this.#i}return n}#f(n){const a=new Map;this.#a.forEach(l=>{const s=l.options.queryHash;if(!s)return;const f=a.get(s);f?f.push(l):a.set(s,[l])});const u=[];return n.forEach(l=>{const s=this.#t.defaultQueryOptions(l),d=a.get(s.queryHash)?.shift()??new Ni(this.#t,s);u.push({defaultedQueryOptions:s,observer:d})}),u}#o(n,a){const u=this.#a.indexOf(n);u!==-1&&(this.#e=f_(this.#e,u,a),this.#p())}#p(){if(this.hasListeners()){const n=this.#i,a=this.#h(this.#e,this.#d),u=this.#c(a,this.#r?.combine);n!==u&&Xe.batch(()=>{this.listeners.forEach(l=>{l(this.#e)})})}}},h_=class extends wa{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,u){const l=a.queryKey,s=a.queryHash??Zc(l,a);let f=this.get(s);return f||(f=new a_({client:n,queryKey:l,queryHash:s,options:n.defaultQueryOptions(a),state:u,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Xe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(u=>fm(a,u))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(u=>fm(n,u)):a}notify(n){Xe.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},p_=class{#t;#e;#n;#r;#a;#i;#u;#l;constructor(n={}){this.#t=n.queryCache||new h_,this.#e=n.mutationCache||new o_,this.#n=n.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#u=Uc.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#l=pl.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#u?.(),this.#u=void 0,this.#l?.(),this.#l=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),u=this.#t.build(this,a),l=u.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&u.isStaleByTime(In(a.staleTime,u))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:u})=>{const l=u.data;return[a,l]})}setQueryData(n,a,u){const l=this.defaultQueryOptions({queryKey:n}),f=this.#t.get(l.queryHash)?.state.data,d=Kb(a,f);if(d!==void 0)return this.#t.build(this,l).setData(d,{...u,manual:!0})}setQueriesData(n,a,u){return Xe.batch(()=>this.#t.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,a,u)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;Xe.batch(()=>{a.findAll(n).forEach(u=>{a.remove(u)})})}resetQueries(n,a){const u=this.#t;return Xe.batch(()=>(u.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const u={revert:!0,...a},l=Xe.batch(()=>this.#t.findAll(n).map(s=>s.cancel(u)));return Promise.all(l).then(ht).catch(ht)}invalidateQueries(n,a={}){return Xe.batch(()=>(this.#t.findAll(n).forEach(u=>{u.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const u={...a,cancelRefetch:a.cancelRefetch??!0},l=Xe.batch(()=>this.#t.findAll(n).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let f=s.fetch(void 0,u);return u.throwOnError||(f=f.catch(ht)),s.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(ht)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const u=this.#t.build(this,a);return u.isStaleByTime(In(a.staleTime,u))?u.fetch(a):Promise.resolve(u.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ht).catch(ht)}fetchInfiniteQuery(n){return n.behavior=ml(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ht).catch(ht)}ensureInfiniteQueryData(n){return n.behavior=ml(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return pl.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#r.set(Wn(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#r.values()],u={};return a.forEach(l=>{Ti(n,l.queryKey)&&Object.assign(u,l.defaultOptions)}),u}setMutationDefaults(n,a){this.#a.set(Wn(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#a.values()],u={};return a.forEach(l=>{Ti(n,l.mutationKey)&&Object.assign(u,l.defaultOptions)}),u}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Zc(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===Zt&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},my=L.createContext(void 0),Ui=n=>{const a=L.useContext(my);if(n)return n;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},m_=({client:n,children:a})=>(L.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),R.jsx(my.Provider,{value:n,children:a})),yy=L.createContext(!1),vy=()=>L.useContext(yy);yy.Provider;function y_(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var v_=L.createContext(y_()),gy=()=>L.useContext(v_),by=(n,a,u)=>{const l=u?.state.error&&typeof n.throwOnError=="function"?Qc(n.throwOnError,[u.state.error,u]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(a.isReset()||(n.retryOnMount=!1))},_y=n=>{L.useEffect(()=>{n.clearReset()},[n])},Sy=({result:n,errorResetBoundary:a,throwOnError:u,query:l,suspense:s})=>n.isError&&!a.isReset()&&!n.isFetching&&l&&(s&&n.data===void 0||Qc(u,[n.error,l])),Hc=(n,a)=>a.state.data===void 0,Oy=n=>{if(n.suspense){const u=s=>s==="static"?s:Math.max(s??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...s)=>u(l(...s)):u(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},g_=(n,a)=>n.isLoading&&n.isFetching&&!a,gc=(n,a)=>n?.suspense&&a.isPending,bc=(n,a,u)=>a.fetchOptimistic(n).catch(()=>{u.clearReset()});function xy({queries:n,...a},u){const l=Ui(u),s=vy(),f=gy(),d=L.useMemo(()=>n.map(H=>{const le=l.defaultQueryOptions(H);return le._optimisticResults=s?"isRestoring":"optimistic",le}),[n,l,s]);d.forEach(H=>{Oy(H);const le=l.getQueryCache().get(H.queryHash);by(H,f,le)}),_y(f);const[h]=L.useState(()=>new d_(l,d,a)),[m,y,g]=h.getOptimisticResult(d,a.combine),O=!s&&a.subscribed!==!1;L.useSyncExternalStore(L.useCallback(H=>O?h.subscribe(Xe.batchCalls(H)):ht,[h,O]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),L.useEffect(()=>{h.setQueries(d,a)},[d,a,h]);const Q=m.some((H,le)=>gc(d[le],H))?m.flatMap((H,le)=>{const se=d[le];if(se&&gc(se,H)){const Ce=new Ni(l,se);return bc(se,Ce,f)}return[]}):[];if(Q.length>0)throw Promise.all(Q);const $=m.find((H,le)=>{const se=d[le];return se&&Sy({result:H,errorResetBoundary:f,throwOnError:se.throwOnError,query:l.getQueryCache().get(se.queryHash),suspense:se.suspense})});if($?.error)throw $.error;return y(g())}function xl(n,a,u){const l=vy(),s=gy(),f=Ui(u),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const h=f.getQueryCache().get(d.queryHash);d._optimisticResults=l?"isRestoring":"optimistic",Oy(d),by(d,s,h),_y(s);const m=!f.getQueryCache().get(d.queryHash),[y]=L.useState(()=>new a(f,d)),g=y.getOptimisticResult(d),O=!l&&n.subscribed!==!1;if(L.useSyncExternalStore(L.useCallback(w=>{const Q=O?y.subscribe(Xe.batchCalls(w)):ht;return y.updateResult(),Q},[y,O]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),L.useEffect(()=>{y.setOptions(d)},[d,y]),gc(d,g))throw bc(d,y,s);if(Sy({result:g,errorResetBoundary:s,throwOnError:d.throwOnError,query:h,suspense:d.suspense}))throw g.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,g),d.experimental_prefetchInRender&&!Ai.isServer()&&g_(g,l)&&(m?bc(d,y,s):h?.promise)?.catch(ht).finally(()=>{y.updateResult()}),d.notifyOnChangeProps?g:y.trackResult(g)}function b_(n,a){return xl(n,Ni,a)}function __(n,a){return xl({...n,enabled:!0,suspense:!0,throwOnError:Hc,placeholderData:void 0},Ni,a)}function S_(n,a){return xl({...n,enabled:!0,suspense:!0,throwOnError:Hc},hy,a)}function O_(n,a){return xy({...n,queries:n.queries.map(u=>({...u,suspense:!0,throwOnError:Hc,enabled:!0,placeholderData:void 0}))},a)}function x_(n,a){const u=Ui(a);u.getQueryState(n.queryKey)||u.prefetchQuery(n)}function z_(n,a){const u=Ui(a);u.getQueryState(n.queryKey)||u.prefetchInfiniteQuery(n)}function E_(n,a){const u=Ui(a),[l]=L.useState(()=>new c_(u,n));L.useEffect(()=>{l.setOptions(n)},[l,n]);const s=L.useSyncExternalStore(L.useCallback(d=>l.subscribe(Xe.batchCalls(d)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=L.useCallback((d,h)=>{l.mutate(d,h).catch(ht)},[l]);if(s.error&&Qc(l.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:f,mutateAsync:s.mutate}}function T_(n,a){return xl(n,hy,a)}var w_=Object.create,zy=Object.defineProperty,A_=Object.getOwnPropertyDescriptor,Ey=Object.getOwnPropertyNames,j_=Object.getPrototypeOf,M_=Object.prototype.hasOwnProperty,un=(n,a)=>function(){return a||(0,n[Ey(n)[0]])((a={exports:{}}).exports,a),a.exports},C_=(n,a,u,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var s=Ey(a),f=0,d=s.length,h;f<d;f++)h=s[f],!M_.call(n,h)&&h!==u&&zy(n,h,{get:(m=>a[m]).bind(null,h),enumerable:!(l=A_(a,h))||l.enumerable});return n},Ie=(n,a,u)=>(u=n!=null?w_(j_(n)):{},C_(a||!n||!n.__esModule?zy(u,"default",{value:n,enumerable:!0}):u,n)),Ty=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function u(l){"@babel/helpers - typeof";return a.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},a.exports.__esModule=!0,a.exports.default=a.exports,u(l)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),R_=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var u=Ty().default;function l(s,f){if(u(s)!="object"||!s)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var h=d.call(s,f||"default");if(u(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(s)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),D_=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var u=Ty().default,l=R_();function s(f){var d=l(f,"string");return u(d)=="symbol"?d:d+""}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),Aa=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var u=D_();function l(s,f,d){return(f=u(f))in s?Object.defineProperty(s,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[f]=d,s}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),It=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var u=Aa();function l(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);d&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),h.push.apply(h,m)}return h}function s(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?l(Object(h),!0).forEach(function(m){u(f,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):l(Object(h)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))})}return f}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}});function zl(n){const a={subscribe(u){let l=null,s=!1,f=!1,d=!1;function h(){if(l===null){d=!0;return}f||(f=!0,typeof l=="function"?l():l&&l.unsubscribe())}return l=n({next(m){var y;s||(y=u.next)===null||y===void 0||y.call(u,m)},error(m){var y;s||(s=!0,(y=u.error)===null||y===void 0||y.call(u,m),h())},complete(){var m;s||(s=!0,(m=u.complete)===null||m===void 0||m.call(u),h())}}),d&&h(),{unsubscribe:h}},pipe(...u){return u.reduce(N_,a)}};return a}function N_(n,a){return a(n)}function U_(n){const a=new AbortController;return new Promise((l,s)=>{let f=!1;function d(){f||(f=!0,h.unsubscribe())}a.signal.addEventListener("abort",()=>{s(a.signal.reason)});const h=n.subscribe({next(m){f=!0,l(m),d()},error(m){s(m)},complete(){a.abort(),d()}})})}function Z_(n){return a=>{let u=0,l=null;const s=[];function f(){l||(l=a.subscribe({next(h){for(const y of s){var m;(m=y.next)===null||m===void 0||m.call(y,h)}},error(h){for(const y of s){var m;(m=y.error)===null||m===void 0||m.call(y,h)}},complete(){for(const m of s){var h;(h=m.complete)===null||h===void 0||h.call(m)}}}))}function d(){if(u===0&&l){const h=l;l=null,h.unsubscribe()}}return zl(h=>(u++,s.push(h),f(),{unsubscribe(){u--,d();const m=s.findIndex(y=>y===h);m>-1&&s.splice(m,1)}}))}}function q_(n){let a=n;const u=[],l=d=>{a!==void 0&&d.next(a),u.push(d)},s=d=>{u.splice(u.indexOf(d),1)},f=zl(d=>(l(d),()=>{s(d)}));return f.next=d=>{if(a!==d){a=d;for(const h of u)h.next(d)}},f.get=()=>a,f}function Q_(n){return zl(a=>{function u(s=0,f=n.op){const d=n.links[s];if(!d)throw new Error("No more links to execute - did you forget to add an ending link?");return d({op:f,next(m){return u(s+1,m)}})}return u().subscribe(a)})}function Ta(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}function k_(){return Object.create(null)}const H_=typeof Symbol=="function"&&!!Symbol.asyncIterator;function wy(n){return H_&&Ta(n)&&Symbol.asyncIterator in n}var B_=Object.create,Ay=Object.defineProperty,L_=Object.getOwnPropertyDescriptor,jy=Object.getOwnPropertyNames,$_=Object.getPrototypeOf,G_=Object.prototype.hasOwnProperty,Zi=(n,a)=>function(){return a||(0,n[jy(n)[0]])((a={exports:{}}).exports,a),a.exports},Y_=(n,a,u,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var s=jy(a),f=0,d=s.length,h;f<d;f++)h=s[f],!G_.call(n,h)&&h!==u&&Ay(n,h,{get:(m=>a[m]).bind(null,h),enumerable:!(l=L_(a,h))||l.enumerable});return n},El=(n,a,u)=>(u=n!=null?B_($_(n)):{},Y_(Ay(u,"default",{value:n,enumerable:!0}),n));const My=()=>{},_m=n=>{Object.freeze&&Object.freeze(n)};function Cy(n,a,u){var l;const s=a.join(".");return(l=u[s])!==null&&l!==void 0||(u[s]=new Proxy(My,{get(f,d){if(!(typeof d!="string"||d==="then"))return Cy(n,[...a,d],u)},apply(f,d,h){const m=a[a.length-1];let y={args:h,path:a};return m==="call"?y={args:h.length>=2?[h[1]]:[],path:a.slice(0,-1)}:m==="apply"&&(y={args:h.length>=2?h[1]:[],path:a.slice(0,-1)}),_m(y.args),_m(y.path),n(y)}})),u[s]}const Tl=n=>Cy(n,[],k_()),Bc=n=>new Proxy(My,{get(a,u){if(u!=="then")return n(u)}});var Ry=Zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function u(l){"@babel/helpers - typeof";return a.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},a.exports.__esModule=!0,a.exports.default=a.exports,u(l)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),V_=Zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var u=Ry().default;function l(s,f){if(u(s)!="object"||!s)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var h=d.call(s,f||"default");if(u(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(s)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),K_=Zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var u=Ry().default,l=V_();function s(f){var d=l(f,"string");return u(d)=="symbol"?d:d+""}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),Dy=Zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var u=K_();function l(s,f,d){return(f=u(f))in s?Object.defineProperty(s,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[f]=d,s}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Lc=Zi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var u=Dy();function l(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);d&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),h.push.apply(h,m)}return h}function s(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?l(Object(h),!0).forEach(function(m){u(f,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):l(Object(h)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))})}return f}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}});El(Lc());El(Dy());var al=El(Lc());function X_(n,a){if("error"in n){const l=a.deserialize(n.error);return{ok:!1,error:(0,al.default)((0,al.default)({},n),{},{error:l})}}return{ok:!0,result:(0,al.default)((0,al.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:a.deserialize(n.result.data)})}}var rc=class extends Error{constructor(){super("Unable to transform response from server")}};function P_(n,a){let u;try{u=X_(n,a)}catch{throw new rc}if(!u.ok&&(!Ta(u.error.error)||typeof u.error.error.code!="number"))throw new rc;if(u.ok&&!Ta(u.result))throw new rc;return u}El(Lc());var rl=Ie(Aa(),1),mr=Ie(It(),1);function J_(n){return n instanceof yl}function F_(n){return Ta(n)&&Ta(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function I_(n,a){return typeof n=="string"?n:Ta(n)&&typeof n.message=="string"?n.message:a}var yl=class fl extends Error{constructor(a,u){var l,s;const f=u?.cause;super(a,{cause:f}),(0,rl.default)(this,"cause",void 0),(0,rl.default)(this,"shape",void 0),(0,rl.default)(this,"data",void 0),(0,rl.default)(this,"meta",void 0),this.meta=u?.meta,this.cause=f,this.shape=u==null||(l=u.result)===null||l===void 0?void 0:l.error,this.data=u==null||(s=u.result)===null||s===void 0?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,fl.prototype)}static from(a,u={}){const l=a;return J_(l)?(u.meta&&(l.meta=(0,mr.default)((0,mr.default)({},l.meta),u.meta)),l):F_(l)?new fl(l.error.message,(0,mr.default)((0,mr.default)({},u),{},{result:l,cause:u.cause})):new fl(I_(l,"Unknown error"),(0,mr.default)((0,mr.default)({},u),{},{cause:l}))}};function W_(n){const a=n;return a?"input"in a?a:{input:a,output:a}:{input:{serialize:u=>u,deserialize:u=>u},output:{serialize:u=>u,deserialize:u=>u}}}const Sm=n=>typeof n=="function";function eS(n){if(n)return n;if(typeof window<"u"&&Sm(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Sm(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var zi=Ie(It());function tS(n){return{url:n.url.toString(),fetch:n.fetch,transformer:W_(n.transformer),methodOverride:n.methodOverride}}function nS(n){const a={};for(let u=0;u<n.length;u++){const l=n[u];a[u]=l}return a}const aS={query:"GET",mutation:"POST",subscription:"PATCH"};function Ny(n){return"input"in n?n.transformer.input.serialize(n.input):nS(n.inputs.map(a=>n.transformer.input.serialize(a)))}const _c=n=>{const a=n.url.split("?");let l=a[0].replace(/\/$/,"")+"/"+n.path;const s=[];if(a[1]&&s.push(a[1]),"inputs"in n&&s.push("batch=1"),n.type==="query"||n.type==="subscription"){const f=Ny(n);f!==void 0&&n.methodOverride!=="POST"&&s.push(`input=${encodeURIComponent(JSON.stringify(f))}`)}return s.length&&(l+="?"+s.join("&")),l},rS=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const a=Ny(n);return a!==void 0?JSON.stringify(a):void 0},iS=n=>Sc((0,zi.default)((0,zi.default)({},n),{},{contentTypeHeader:"application/json",getUrl:_c,getBody:rS}));var uS=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const lS=n=>{var a;if(n?.aborted)throw(a=n.throwIfAborted)===null||a===void 0||a.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new uS};async function sS(n){var a,u;lS(n.signal);const l=n.getUrl(n),s=n.getBody(n),f=(a=n.methodOverride)!==null&&a!==void 0?a:aS[n.type],d=await(async()=>{const m=await n.headers();return Symbol.iterator in m?Object.fromEntries(m):m})(),h=(0,zi.default)((0,zi.default)((0,zi.default)({},n.contentTypeHeader&&f!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{[(u=n.trpcAcceptHeaderKey)!==null&&u!==void 0?u:"trpc-accept"]:n.trpcAcceptHeader}:void 0),d);return eS(n.fetch)(l,{method:f,signal:n.signal,body:s,headers:h})}async function Sc(n){const a={},u=await sS(n);a.response=u;const l=await u.json();return a.responseJSON=l,{json:l,meta:a}}function oS(n){return n instanceof Uint8Array||n instanceof Blob}function cS(n){return n instanceof FormData}var yr=Ie(It(),1);const fS=n=>{if("input"in n){const{input:a}=n;if(cS(a)){if(n.type!=="mutation"&&n.methodOverride!=="POST")throw new Error("FormData is only supported for mutations");return Sc((0,yr.default)((0,yr.default)({},n),{},{contentTypeHeader:void 0,getUrl:_c,getBody:()=>a}))}if(oS(a)){if(n.type!=="mutation"&&n.methodOverride!=="POST")throw new Error("Octet type input is only supported for mutations");return Sc((0,yr.default)((0,yr.default)({},n),{},{contentTypeHeader:"application/octet-stream",getUrl:_c,getBody:()=>a}))}}return iS(n)};function dS(n){const a=tS(n);return()=>u=>{const{op:l}=u;return zl(s=>{const{path:f,input:d,type:h}=l;if(h==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const m=fS((0,yr.default)((0,yr.default)({},a),{},{type:h,path:f,input:d,signal:l.signal,headers(){return n.headers?typeof n.headers=="function"?n.headers({op:l}):n.headers:{}}}));let y;return m.then(g=>{y=g.meta;const O=P_(g.json,a.transformer.output);if(!O.ok){s.error(yl.from(O.error,{meta:y}));return}s.next({context:g.meta,result:O.result}),s.complete()}).catch(g=>{s.error(yl.from(g,{meta:y}))}),()=>{}})}}Ie(It(),1);Ie(It(),1);const Uy=(n,...a)=>typeof n=="function"?n(...a):n;Ie(Aa(),1);function hS(){let n,a;return{promise:new Promise((l,s)=>{n=l,a=s}),resolve:n,reject:a}}async function pS(n){const a=await Uy(n.url);if(!n.connectionParams)return a;const l=`${a.includes("?")?"&":"?"}connectionParams=1`;return a+l}async function mS(n,a){const u={method:"connectionParams",data:await Uy(n)};return a.encode(u)}Ie(Aa(),1);var Jn=Ie(Aa(),1);function yS(n){const{promise:a,resolve:u,reject:l}=hS();return n.addEventListener("open",()=>{n.removeEventListener("error",l),u()}),n.addEventListener("error",l),a}function vS(n,{intervalMs:a,pongTimeoutMs:u}){let l,s;function f(){l=setTimeout(()=>{n.send("PING"),s=setTimeout(()=>{n.close()},u)},a)}function d(){clearTimeout(l),f()}function h(){clearTimeout(s),d()}n.addEventListener("open",f),n.addEventListener("message",({data:m})=>{clearTimeout(l),f(),m==="PONG"&&h()}),n.addEventListener("close",()=>{clearTimeout(l),clearTimeout(s)})}var gS=class Oc{constructor(a){var u;if((0,Jn.default)(this,"id",++Oc.connectCount),(0,Jn.default)(this,"WebSocketPonyfill",void 0),(0,Jn.default)(this,"urlOptions",void 0),(0,Jn.default)(this,"keepAliveOpts",void 0),(0,Jn.default)(this,"encoder",void 0),(0,Jn.default)(this,"wsObservable",q_(null)),(0,Jn.default)(this,"openPromise",null),this.WebSocketPonyfill=(u=a.WebSocketPonyfill)!==null&&u!==void 0?u:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=a.urlOptions,this.keepAliveOpts=a.keepAlive,this.encoder=a.encoder}get ws(){return this.wsObservable.get()}set ws(a){this.wsObservable.next(a)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var a=this;if(a.openPromise)return a.openPromise;a.id=++Oc.connectCount;const u=pS(a.urlOptions).then(l=>new a.WebSocketPonyfill(l));a.openPromise=u.then(async l=>{a.ws=l,l.binaryType="arraybuffer",l.addEventListener("message",function({data:s}){s==="PING"&&this.send("PONG")}),a.keepAliveOpts.enabled&&vS(l,a.keepAliveOpts),l.addEventListener("close",()=>{a.ws===l&&(a.ws=null)}),await yS(l),a.urlOptions.connectionParams&&l.send(await mS(a.urlOptions.connectionParams,a.encoder))});try{await a.openPromise}finally{a.openPromise=null}}async close(){var a=this;try{await a.openPromise}finally{var u;(u=a.ws)===null||u===void 0||u.close()}}};(0,Jn.default)(gS,"connectCount",0);Ie(Aa(),1);Ie(It(),1);var ic=Ie(Aa(),1),Om=Ie(It(),1),wl=class{constructor(n){(0,ic.default)(this,"links",void 0),(0,ic.default)(this,"runtime",void 0),(0,ic.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(a=>a(this.runtime))}$request(n){var a;return Q_({links:this.links,op:(0,Om.default)((0,Om.default)({},n),{},{context:(a=n.context)!==null&&a!==void 0?a:{},id:++this.requestId})}).pipe(Z_())}async requestAsPromise(n){var a=this;try{const u=a.$request(n);return(await U_(u)).result.data}catch(u){throw yl.from(u)}}query(n,a,u){return this.requestAsPromise({type:"query",path:n,input:a,context:u?.context,signal:u?.signal})}mutation(n,a,u){return this.requestAsPromise({type:"mutation",path:n,input:a,context:u?.context,signal:u?.signal})}subscription(n,a,u){return this.$request({type:"subscription",path:n,input:a,context:u.context,signal:u.signal}).subscribe({next(s){switch(s.result.type){case"state":{var f;(f=u.onConnectionStateChange)===null||f===void 0||f.call(u,s.result);break}case"started":{var d;(d=u.onStarted)===null||d===void 0||d.call(u,{context:s.context});break}case"stopped":{var h;(h=u.onStopped)===null||h===void 0||h.call(u);break}case"data":case void 0:{var m;(m=u.onData)===null||m===void 0||m.call(u,s.result.data);break}}},error(s){var f;(f=u.onError)===null||f===void 0||f.call(u,s)},complete(){var s;(s=u.onComplete)===null||s===void 0||s.call(u)}})}};const Zy=Symbol.for("trpc_untypedClient"),bS={query:"query",mutate:"mutation",subscribe:"subscription"},_S=n=>bS[n];function qy(n){const a=Tl(({path:u,args:l})=>{const s=[...u],f=_S(s.pop()),d=s.join(".");return n[f](d,...l)});return Bc(u=>u===Zy?n:a[u])}function SS(n){const a=new wl(n);return qy(a)}function $c(n){return n[Zy]}Ie(It(),1);Ie(It(),1);var OS=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,a){function u(s){var f,d,h,m=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,h=Symbol.iterator);m--;){if(d&&(f=s[d])!=null)return f.call(s);if(h&&(f=s[h])!=null)return new l(f.call(s));d="@@asyncIterator",h="@@iterator"}throw new TypeError("Object is not async iterable")}function l(s){function f(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var h=d.done;return Promise.resolve(d.value).then(function(m){return{value:m,done:h}})}return l=function(h){this.s=h,this.n=h.next},l.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(h){var m=this.s.return;return m===void 0?Promise.resolve({value:h,done:!0}):f(m.apply(this.s,arguments))},throw:function(h){var m=this.s.return;return m===void 0?Promise.reject(h):f(m.apply(this.s,arguments))}},new l(s)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}});Ie(OS(),1);Ie(It(),1);var xS=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,a){function u(){var l=typeof SuppressedError=="function"?SuppressedError:function(h,m){var y=Error();return y.name="SuppressedError",y.error=h,y.suppressed=m,y},s={},f=[];function d(h,m){if(m!=null){if(Object(m)!==m)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(h)var y=m[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(y===void 0&&(y=m[Symbol.dispose||Symbol.for("Symbol.dispose")],h))var g=y;if(typeof y!="function")throw new TypeError("Object is not disposable.");g&&(y=function(){try{g.call(m)}catch(w){return Promise.reject(w)}}),f.push({v:m,d:y,a:h})}else h&&f.push({d:m,a:h});return m}return{e:s,u:d.bind(null,!1),a:d.bind(null,!0),d:function(){var m,y=this.e,g=0;function O(){for(;m=f.pop();)try{if(!m.a&&g===1)return g=0,f.push(m),Promise.resolve().then(O);if(m.d){var Q=m.d.call(m.v);if(m.a)return g|=2,Promise.resolve(Q).then(O,w)}else g|=1}catch($){return w($)}if(g===1)return y!==s?Promise.reject(y):Promise.resolve();if(y!==s)throw y}function w(Q){return y=y!==s?new l(Q,y):Q,O()}return O()}}}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),Qy=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,a){function u(l,s){this.v=l,this.k=s}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),zS=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,a){var u=Qy();function l(s){return new u(s,0)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),ES=un({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,a){var u=Qy();function l(f){return function(){return new s(f.apply(this,arguments))}}function s(f){var d,h;function m(g,O){try{var w=f[g](O),Q=w.value,$=Q instanceof u;Promise.resolve($?Q.v:Q).then(function(H){if($){var le=g==="return"?"return":"next";if(!Q.k||H.done)return m(le,H);H=f[le](H).value}y(w.done?"return":"normal",H)},function(H){m("throw",H)})}catch(H){y("throw",H)}}function y(g,O){switch(g){case"return":d.resolve({value:O,done:!0});break;case"throw":d.reject(O);break;default:d.resolve({value:O,done:!1})}(d=d.next)?m(d.key,d.arg):h=null}this._invoke=function(g,O){return new Promise(function(w,Q){var $={key:g,arg:O,resolve:w,reject:Q,next:null};h?h=h.next=$:(d=h=$,m(g,O))})},typeof f.return!="function"&&(this.return=void 0)}s.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(f){return this._invoke("next",f)},s.prototype.throw=function(f){return this._invoke("throw",f)},s.prototype.return=function(f){return this._invoke("return",f)},a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}});Ie(xS(),1);Ie(zS(),1);Ie(ES(),1);Ie(It(),1);class TS{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(a,u){this.keyToValue.set(a,u),this.valueToKey.set(u,a)}getByKey(a){return this.keyToValue.get(a)}getByValue(a){return this.valueToKey.get(a)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class ky{constructor(a){this.generateIdentifier=a,this.kv=new TS}register(a,u){this.kv.getByValue(a)||(u||(u=this.generateIdentifier(a)),this.kv.set(u,a))}clear(){this.kv.clear()}getIdentifier(a){return this.kv.getByValue(a)}getValue(a){return this.kv.getByKey(a)}}class wS extends ky{constructor(){super(a=>a.name),this.classToAllowedProps=new Map}register(a,u){typeof u=="object"?(u.allowProps&&this.classToAllowedProps.set(a,u.allowProps),super.register(a,u.identifier)):super.register(a,u)}getAllowedProps(a){return this.classToAllowedProps.get(a)}}function AS(n){if("values"in Object)return Object.values(n);const a=[];for(const u in n)n.hasOwnProperty(u)&&a.push(n[u]);return a}function jS(n,a){const u=AS(n);if("find"in u)return u.find(a);const l=u;for(let s=0;s<l.length;s++){const f=l[s];if(a(f))return f}}function Sr(n,a){Object.entries(n).forEach(([u,l])=>a(l,u))}function dl(n,a){return n.indexOf(a)!==-1}function xm(n,a){for(let u=0;u<n.length;u++){const l=n[u];if(a(l))return l}}class MS{constructor(){this.transfomers={}}register(a){this.transfomers[a.name]=a}findApplicable(a){return jS(this.transfomers,u=>u.isApplicable(a))}findByName(a){return this.transfomers[a]}}const CS=n=>Object.prototype.toString.call(n).slice(8,-1),Hy=n=>typeof n>"u",RS=n=>n===null,ji=n=>typeof n!="object"||n===null||n===Object.prototype?!1:Object.getPrototypeOf(n)===null?!0:Object.getPrototypeOf(n)===Object.prototype,xc=n=>ji(n)&&Object.keys(n).length===0,ea=n=>Array.isArray(n),DS=n=>typeof n=="string",NS=n=>typeof n=="number"&&!isNaN(n),US=n=>typeof n=="boolean",ZS=n=>n instanceof RegExp,Mi=n=>n instanceof Map,Ci=n=>n instanceof Set,By=n=>CS(n)==="Symbol",qS=n=>n instanceof Date&&!isNaN(n.valueOf()),Ly=n=>n instanceof Error,zm=n=>typeof n=="number"&&isNaN(n),QS=n=>US(n)||RS(n)||Hy(n)||NS(n)||DS(n)||By(n),kS=n=>typeof n=="bigint",HS=n=>n===1/0||n===-1/0,BS=n=>ArrayBuffer.isView(n)&&!(n instanceof DataView),LS=n=>n instanceof URL,zc=n=>n.replace(/\\/g,"\\\\").replace(/\./g,"\\."),uc=n=>n.map(String).map(zc).join("."),Ei=(n,a)=>{const u=[];let l="";for(let f=0;f<n.length;f++){let d=n.charAt(f);if(!a&&d==="\\"){const y=n.charAt(f+1);if(y==="\\"){l+="\\",f++;continue}else if(y!==".")throw Error("invalid path")}if(d==="\\"&&n.charAt(f+1)==="."){l+=".",f++;continue}if(d==="."){u.push(l),l="";continue}l+=d}const s=l;return u.push(s),u};function an(n,a,u,l){return{isApplicable:n,annotation:a,transform:u,untransform:l}}const $y=[an(Hy,"undefined",()=>null,()=>{}),an(kS,"bigint",n=>n.toString(),n=>typeof BigInt<"u"?BigInt(n):(console.error("Please add a BigInt polyfill."),n)),an(qS,"Date",n=>n.toISOString(),n=>new Date(n)),an(Ly,"Error",(n,a)=>{const u={name:n.name,message:n.message};return"cause"in n&&(u.cause=n.cause),a.allowedErrorProps.forEach(l=>{u[l]=n[l]}),u},(n,a)=>{const u=new Error(n.message,{cause:n.cause});return u.name=n.name,u.stack=n.stack,a.allowedErrorProps.forEach(l=>{u[l]=n[l]}),u}),an(ZS,"regexp",n=>""+n,n=>{const a=n.slice(1,n.lastIndexOf("/")),u=n.slice(n.lastIndexOf("/")+1);return new RegExp(a,u)}),an(Ci,"set",n=>[...n.values()],n=>new Set(n)),an(Mi,"map",n=>[...n.entries()],n=>new Map(n)),an(n=>zm(n)||HS(n),"number",n=>zm(n)?"NaN":n>0?"Infinity":"-Infinity",Number),an(n=>n===0&&1/n===-1/0,"number",()=>"-0",Number),an(LS,"URL",n=>n.toString(),n=>new URL(n))];function Al(n,a,u,l){return{isApplicable:n,annotation:a,transform:u,untransform:l}}const Gy=Al((n,a)=>By(n)?!!a.symbolRegistry.getIdentifier(n):!1,(n,a)=>["symbol",a.symbolRegistry.getIdentifier(n)],n=>n.description,(n,a,u)=>{const l=u.symbolRegistry.getValue(a[1]);if(!l)throw new Error("Trying to deserialize unknown symbol");return l}),$S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((n,a)=>(n[a.name]=a,n),{}),Yy=Al(BS,n=>["typed-array",n.constructor.name],n=>[...n],(n,a)=>{const u=$S[a[1]];if(!u)throw new Error("Trying to deserialize unknown typed array");return new u(n)});function Vy(n,a){return n?.constructor?!!a.classRegistry.getIdentifier(n.constructor):!1}const Ky=Al(Vy,(n,a)=>["class",a.classRegistry.getIdentifier(n.constructor)],(n,a)=>{const u=a.classRegistry.getAllowedProps(n.constructor);if(!u)return{...n};const l={};return u.forEach(s=>{l[s]=n[s]}),l},(n,a,u)=>{const l=u.classRegistry.getValue(a[1]);if(!l)throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(l.prototype),n)}),Xy=Al((n,a)=>!!a.customTransformerRegistry.findApplicable(n),(n,a)=>["custom",a.customTransformerRegistry.findApplicable(n).name],(n,a)=>a.customTransformerRegistry.findApplicable(n).serialize(n),(n,a,u)=>{const l=u.customTransformerRegistry.findByName(a[1]);if(!l)throw new Error("Trying to deserialize unknown custom value");return l.deserialize(n)}),GS=[Ky,Gy,Xy,Yy],Em=(n,a)=>{const u=xm(GS,s=>s.isApplicable(n,a));if(u)return{value:u.transform(n,a),type:u.annotation(n,a)};const l=xm($y,s=>s.isApplicable(n,a));if(l)return{value:l.transform(n,a),type:l.annotation}},Py={};$y.forEach(n=>{Py[n.annotation]=n});const YS=(n,a,u)=>{if(ea(a))switch(a[0]){case"symbol":return Gy.untransform(n,a,u);case"class":return Ky.untransform(n,a,u);case"custom":return Xy.untransform(n,a,u);case"typed-array":return Yy.untransform(n,a,u);default:throw new Error("Unknown transformation: "+a)}else{const l=Py[a];if(!l)throw new Error("Unknown transformation: "+a);return l.untransform(n,u)}},vr=(n,a)=>{if(a>n.size)throw new Error("index out of bounds");const u=n.keys();for(;a>0;)u.next(),a--;return u.next().value};function Jy(n){if(dl(n,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(dl(n,"prototype"))throw new Error("prototype is not allowed as a property");if(dl(n,"constructor"))throw new Error("constructor is not allowed as a property")}const VS=(n,a)=>{Jy(a);for(let u=0;u<a.length;u++){const l=a[u];if(Ci(n))n=vr(n,+l);else if(Mi(n)){const s=+l,f=+a[++u]==0?"key":"value",d=vr(n,s);switch(f){case"key":n=d;break;case"value":n=n.get(d);break}}else n=n[l]}return n},Ec=(n,a,u)=>{if(Jy(a),a.length===0)return u(n);let l=n;for(let f=0;f<a.length-1;f++){const d=a[f];if(ea(l)){const h=+d;l=l[h]}else if(ji(l))l=l[d];else if(Ci(l)){const h=+d;l=vr(l,h)}else if(Mi(l)){if(f===a.length-2)break;const m=+d,y=+a[++f]==0?"key":"value",g=vr(l,m);switch(y){case"key":l=g;break;case"value":l=l.get(g);break}}}const s=a[a.length-1];if(ea(l)?l[+s]=u(l[+s]):ji(l)&&(l[s]=u(l[s])),Ci(l)){const f=vr(l,+s),d=u(f);f!==d&&(l.delete(f),l.add(d))}if(Mi(l)){const f=+a[a.length-2],d=vr(l,f);switch(+s==0?"key":"value"){case"key":{const m=u(d);l.set(m,l.get(d)),m!==d&&l.delete(d);break}case"value":{l.set(d,u(l.get(d)));break}}}return n},Fy=n=>n<1;function Tc(n,a,u,l=[]){if(!n)return;const s=Fy(u);if(!ea(n)){Sr(n,(h,m)=>Tc(h,a,u,[...l,...Ei(m,s)]));return}const[f,d]=n;d&&Sr(d,(h,m)=>{Tc(h,a,u,[...l,...Ei(m,s)])}),a(f,l)}function KS(n,a,u,l){return Tc(a,(s,f)=>{n=Ec(n,f,d=>YS(d,s,l))},u),n}function XS(n,a,u){const l=Fy(u);function s(f,d){const h=VS(n,Ei(d,l));f.map(m=>Ei(m,l)).forEach(m=>{n=Ec(n,m,()=>h)})}if(ea(a)){const[f,d]=a;f.forEach(h=>{n=Ec(n,Ei(h,l),()=>n)}),d&&Sr(d,s)}else Sr(a,s);return n}const PS=(n,a)=>ji(n)||ea(n)||Mi(n)||Ci(n)||Ly(n)||Vy(n,a);function JS(n,a,u){const l=u.get(n);l?l.push(a):u.set(n,[a])}function FS(n,a){const u={};let l;return n.forEach(s=>{if(s.length<=1)return;a||(s=s.map(h=>h.map(String)).sort((h,m)=>h.length-m.length));const[f,...d]=s;f.length===0?l=d.map(uc):u[uc(f)]=d.map(uc)}),l?xc(u)?[l]:[l,u]:xc(u)?void 0:u}const Iy=(n,a,u,l,s=[],f=[],d=new Map)=>{const h=QS(n);if(!h){JS(n,s,a);const Q=d.get(n);if(Q)return l?{transformedValue:null}:Q}if(!PS(n,u)){const Q=Em(n,u),$=Q?{transformedValue:Q.value,annotations:[Q.type]}:{transformedValue:n};return h||d.set(n,$),$}if(dl(f,n))return{transformedValue:null};const m=Em(n,u),y=m?.value??n,g=ea(y)?[]:{},O={};Sr(y,(Q,$)=>{if($==="__proto__"||$==="constructor"||$==="prototype")throw new Error(`Detected property ${$}. This is a prototype pollution risk, please remove it from your object.`);const H=Iy(Q,a,u,l,[...s,$],[...f,n],d);g[$]=H.transformedValue,ea(H.annotations)?O[zc($)]=H.annotations:ji(H.annotations)&&Sr(H.annotations,(le,se)=>{O[zc($)+"."+se]=le})});const w=xc(O)?{transformedValue:g,annotations:m?[m.type]:void 0}:{transformedValue:g,annotations:m?[m.type,O]:O};return h||d.set(n,w),w};function Wy(n){return Object.prototype.toString.call(n).slice(8,-1)}function Tm(n){return Wy(n)==="Array"}function IS(n){if(Wy(n)!=="Object")return!1;const a=Object.getPrototypeOf(n);return!!a&&a.constructor===Object&&a===Object.prototype}function WS(n,a,u,l,s){const f={}.propertyIsEnumerable.call(l,a)?"enumerable":"nonenumerable";f==="enumerable"&&(n[a]=u),s&&f==="nonenumerable"&&Object.defineProperty(n,a,{value:u,enumerable:!1,writable:!0,configurable:!0})}function wc(n,a={}){if(Tm(n))return n.map(s=>wc(s,a));if(!IS(n))return n;const u=Object.getOwnPropertyNames(n),l=Object.getOwnPropertySymbols(n);return[...u,...l].reduce((s,f)=>{if(f==="__proto__"||Tm(a.props)&&!a.props.includes(f))return s;const d=n[f],h=wc(d,a);return WS(s,f,h,n,a.nonenumerable),s},{})}class ze{constructor({dedupe:a=!1}={}){this.classRegistry=new wS,this.symbolRegistry=new ky(u=>u.description??""),this.customTransformerRegistry=new MS,this.allowedErrorProps=[],this.dedupe=a}serialize(a){const u=new Map,l=Iy(a,u,this,this.dedupe),s={json:l.transformedValue};l.annotations&&(s.meta={...s.meta,values:l.annotations});const f=FS(u,this.dedupe);return f&&(s.meta={...s.meta,referentialEqualities:f}),s.meta&&(s.meta.v=1),s}deserialize(a,u){const{json:l,meta:s}=a;let f=u?.inPlace?l:wc(l);return s?.values&&(f=KS(f,s.values,s.v??0,this)),s?.referentialEqualities&&(f=XS(f,s.referentialEqualities,s.v??0)),f}stringify(a){return JSON.stringify(this.serialize(a))}parse(a){return this.deserialize(JSON.parse(a),{inPlace:!0})}registerClass(a,u){this.classRegistry.register(a,u)}registerSymbol(a,u){this.symbolRegistry.register(a,u)}registerCustom(a,u){this.customTransformerRegistry.register({name:u,...a})}allowErrorProps(...a){this.allowedErrorProps.push(...a)}}ze.defaultInstance=new ze;ze.serialize=ze.defaultInstance.serialize.bind(ze.defaultInstance);ze.deserialize=ze.defaultInstance.deserialize.bind(ze.defaultInstance);ze.stringify=ze.defaultInstance.stringify.bind(ze.defaultInstance);ze.parse=ze.defaultInstance.parse.bind(ze.defaultInstance);ze.registerClass=ze.defaultInstance.registerClass.bind(ze.defaultInstance);ze.registerSymbol=ze.defaultInstance.registerSymbol.bind(ze.defaultInstance);ze.registerCustom=ze.defaultInstance.registerCustom.bind(ze.defaultInstance);ze.allowErrorProps=ze.defaultInstance.allowErrorProps.bind(ze.defaultInstance);ze.serialize;ze.deserialize;ze.stringify;ze.parse;ze.registerClass;ze.registerCustom;ze.registerSymbol;ze.allowErrorProps;var e1=Object.create,ev=Object.defineProperty,t1=Object.getOwnPropertyDescriptor,tv=Object.getOwnPropertyNames,n1=Object.getPrototypeOf,a1=Object.prototype.hasOwnProperty,aa=(n,a)=>function(){return a||(0,n[tv(n)[0]])((a={exports:{}}).exports,a),a.exports},r1=(n,a,u,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var s=tv(a),f=0,d=s.length,h;f<d;f++)h=s[f],!a1.call(n,h)&&h!==u&&ev(n,h,{get:(m=>a[m]).bind(null,h),enumerable:!(l=t1(a,h))||l.enumerable});return n},ja=(n,a,u)=>(u=n!=null?e1(n1(n)):{},r1(a||!n||!n.__esModule?ev(u,"default",{value:n,enumerable:!0}):u,n)),i1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,a){function u(l,s){if(l==null)return{};var f={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(s.includes(d))continue;f[d]=l[d]}return f}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),u1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,a){var u=i1();function l(s,f){if(s==null)return{};var d,h,m=u(s,f);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(s);for(h=0;h<y.length;h++)d=y[h],f.includes(d)||{}.propertyIsEnumerable.call(s,d)&&(m[d]=s[d])}return m}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),nv=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function u(l){"@babel/helpers - typeof";return a.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},a.exports.__esModule=!0,a.exports.default=a.exports,u(l)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),l1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var u=nv().default;function l(s,f){if(u(s)!="object"||!s)return s;var d=s[Symbol.toPrimitive];if(d!==void 0){var h=d.call(s,f||"default");if(u(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(s)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),s1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var u=nv().default,l=l1();function s(f){var d=l(f,"string");return u(d)=="symbol"?d:d+""}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),o1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var u=s1();function l(s,f,d){return(f=u(f))in s?Object.defineProperty(s,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[f]=d,s}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),qi=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var u=o1();function l(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);d&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),h.push.apply(h,m)}return h}function s(f){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?l(Object(h),!0).forEach(function(m){u(f,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):l(Object(h)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))})}return f}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),c1=ja(u1(),1),wm=ja(qi(),1);const f1=["cursor","direction"];function rn(n,a,u){const l=n.flatMap(s=>s.split("."));if(!a&&(!u||u==="any"))return l.length?[l]:[];if(u==="infinite"&&Ta(a)&&("direction"in a||"cursor"in a)){const{cursor:s,direction:f}=a,d=(0,c1.default)(a,f1);return[l,{input:d,type:"infinite"}]}return[l,(0,wm.default)((0,wm.default)({},typeof a<"u"&&a!==Zt&&{input:a}),u&&u!=="any"&&{type:u})]}function hl(n){return rn(n,void 0,"any")}function d1(n){return Tl(({path:a,args:u})=>{var l;const s=[...a],f=s.pop();if(f==="useMutation")return n[f](s,...u);if(f==="_def")return{path:s};const[d,...h]=u,m=(l=h[0])!==null&&l!==void 0?l:{};return n[f](s,d,m)})}var lc;const h1=["client","ssrContext","ssrState","abortOnUnmount"],p1=(lc=L.createContext)===null||lc===void 0?void 0:lc.call(Nb,null),m1=n=>{switch(n){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function y1(n){return Tl(a=>{const u=[...a.path],l=u.pop(),s=[...a.args],f=s.shift(),d=m1(l),h=rn(u,f,d);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(u,h,s[0]),queryOptions:()=>n.queryOptions(u,h,...s),fetch:()=>n.fetchQuery(h,...s),fetchInfinite:()=>n.fetchInfiniteQuery(h,s[0]),prefetch:()=>n.prefetchQuery(h,...s),prefetchInfinite:()=>n.prefetchInfiniteQuery(h,s[0]),ensureData:()=>n.ensureQueryData(h,...s),invalidate:()=>n.invalidateQueries(h,...s),reset:()=>n.resetQueries(h,...s),refetch:()=>n.refetchQueries(h,...s),cancel:()=>n.cancelQuery(h,...s),setData:()=>{n.setQueryData(h,s[0],s[1])},setQueriesData:()=>n.setQueriesData(h,s[0],s[1],s[2]),setInfiniteData:()=>{n.setInfiniteQueryData(h,s[0],s[1])},getData:()=>n.getQueryData(h),getInfiniteData:()=>n.getInfiniteQueryData(h),setMutationDefaults:()=>n.setMutationDefaults(hl(u),f),getMutationDefaults:()=>n.getMutationDefaults(hl(u)),isMutating:()=>n.isMutating({mutationKey:hl(u)})}[l]()})}function v1(n){const a=qy(n.client),u=y1(n);return Bc(l=>{const s=l;return s==="client"?a:h1.includes(s)?n[s]:u[l]})}var g1=ja(qi(),1);function Am(n){const a=n instanceof wl?n:$c(n);return Tl(u=>{const l=u.path,s=l.join("."),[f,d]=u.args;return(0,g1.default)({queryKey:rn(l,f,"query"),queryFn:()=>a.query(s,f,d?.trpc)},d)})}var sc=ja(qi(),1);function vt(n,a,u){var l;const s=n[0];let f=(l=n[1])===null||l===void 0?void 0:l.input;if(u){var d;f=(0,sc.default)((0,sc.default)((0,sc.default)({},(d=f)!==null&&d!==void 0?d:{}),u.pageParam?{cursor:u.pageParam}:{}),{},{direction:u.direction})}return[s.join("."),f,a?.trpc]}var b1=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,a){function u(s){var f,d,h,m=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,h=Symbol.iterator);m--;){if(d&&(f=s[d])!=null)return f.call(s);if(h&&(f=s[h])!=null)return new l(f.call(s));d="@@asyncIterator",h="@@iterator"}throw new TypeError("Object is not async iterable")}function l(s){function f(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var h=d.done;return Promise.resolve(d.value).then(function(m){return{value:m,done:h}})}return l=function(h){this.s=h,this.n=h.next},l.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(h){var m=this.s.return;return m===void 0?Promise.resolve({value:h,done:!0}):f(m.apply(this.s,arguments))},throw:function(h){var m=this.s.return;return m===void 0?Promise.reject(h):f(m.apply(this.s,arguments))}},new l(s)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports}}),_1=ja(b1(),1);function Ac(n){return{path:n.path.join(".")}}function _i(n){const a=Ac(n);return L.useMemo(()=>a,[a])}async function av(n,a,u){const s=a.getQueryCache().build(a,{queryKey:u});s.setState({data:[],status:"success"});const f=[];var d=!1,h=!1,m;try{for(var y=(0,_1.default)(n),g;d=!(g=await y.next()).done;d=!1){const O=g.value;f.push(O),s.setState({data:[...f]})}}catch(O){h=!0,m=O}finally{try{d&&y.return!=null&&await y.return()}finally{if(h)throw m}}return f}var Ae=ja(qi(),1);function S1(n){const{client:a,queryClient:u}=n,l=a instanceof wl?a:$c(a);return{infiniteQueryOptions:(s,f,d)=>{var h,m;const y=((h=f[1])===null||h===void 0?void 0:h.input)===Zt,g=async O=>{var w;const Q=(0,Ae.default)((0,Ae.default)({},d),{},{trpc:(0,Ae.default)((0,Ae.default)({},d?.trpc),!(d==null||(w=d.trpc)===null||w===void 0)&&w.abortOnUnmount?{signal:O.signal}:{signal:null})});return await l.query(...vt(f,Q,{direction:O.direction,pageParam:O.pageParam}))};return Object.assign((0,Ae.default)((0,Ae.default)({},d),{},{initialData:d?.initialData,queryKey:f,queryFn:y?Zt:g,initialPageParam:(m=d?.initialCursor)!==null&&m!==void 0?m:null}),{trpc:Ac({path:s})})},queryOptions:(s,f,d)=>{var h;const m=((h=f[1])===null||h===void 0?void 0:h.input)===Zt,y=async g=>{var O;const w=(0,Ae.default)((0,Ae.default)({},d),{},{trpc:(0,Ae.default)((0,Ae.default)({},d?.trpc),!(d==null||(O=d.trpc)===null||O===void 0)&&O.abortOnUnmount?{signal:g.signal}:{signal:null})}),Q=await l.query(...vt(f,w));return wy(Q)?av(Q,u,f):Q};return Object.assign((0,Ae.default)((0,Ae.default)({},d),{},{initialData:d?.initialData,queryKey:f,queryFn:m?Zt:y}),{trpc:Ac({path:s})})},fetchQuery:(s,f)=>u.fetchQuery((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s,queryFn:()=>l.query(...vt(s,f))})),fetchInfiniteQuery:(s,f)=>{var d;return u.fetchInfiniteQuery((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s,queryFn:({pageParam:h,direction:m})=>l.query(...vt(s,f,{pageParam:h,direction:m})),initialPageParam:(d=f?.initialCursor)!==null&&d!==void 0?d:null}))},prefetchQuery:(s,f)=>u.prefetchQuery((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s,queryFn:()=>l.query(...vt(s,f))})),prefetchInfiniteQuery:(s,f)=>{var d;return u.prefetchInfiniteQuery((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s,queryFn:({pageParam:h,direction:m})=>l.query(...vt(s,f,{pageParam:h,direction:m})),initialPageParam:(d=f?.initialCursor)!==null&&d!==void 0?d:null}))},ensureQueryData:(s,f)=>u.ensureQueryData((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s,queryFn:()=>l.query(...vt(s,f))})),invalidateQueries:(s,f,d)=>u.invalidateQueries((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s}),d),resetQueries:(s,f,d)=>u.resetQueries((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s}),d),refetchQueries:(s,f,d)=>u.refetchQueries((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s}),d),cancelQuery:(s,f)=>u.cancelQueries({queryKey:s},f),setQueryData:(s,f,d)=>u.setQueryData(s,f,d),setQueriesData:(s,f,d,h)=>u.setQueriesData((0,Ae.default)((0,Ae.default)({},f),{},{queryKey:s}),d,h),getQueryData:s=>u.getQueryData(s),setInfiniteQueryData:(s,f,d)=>u.setQueryData(s,f,d),getInfiniteQueryData:s=>u.getQueryData(s),setMutationDefaults:(s,f)=>{const d=s[0],h=m=>l.mutation(...vt([d,{input:m}],n));return u.setMutationDefaults(s,typeof f=="function"?f({canonicalMutationFn:h}):f)},getMutationDefaults:s=>u.getMutationDefaults(s),isMutating:s=>u.isMutating((0,Ae.default)((0,Ae.default)({},s),{},{exact:!0}))}}var K=ja(qi());const jm=(n,a)=>new Proxy(n,{get(l,s){return a(s),l[s]}});function O1(n){var a,u;const l=(a=void 0)!==null&&a!==void 0?a:V=>V.originalFn(),s=(u=void 0)!==null&&u!==void 0?u:p1,f=SS,d=V=>{var X;const{abortOnUnmount:M=!1,queryClient:Y,ssrContext:I}=V,[ae,ne]=L.useState((X=V.ssrState)!==null&&X!==void 0?X:!1),P=V.client instanceof wl?V.client:$c(V.client),he=L.useMemo(()=>S1({client:P,queryClient:Y}),[P,Y]),fe=L.useMemo(()=>(0,K.default)({abortOnUnmount:M,queryClient:Y,client:P,ssrContext:I??null,ssrState:ae},he),[M,P,he,Y,I,ae]);return L.useEffect(()=>{ne(ye=>ye?"mounted":!1)},[]),R.jsx(s.Provider,{value:fe,children:V.children})};function h(){const V=L.useContext(s);if(!V)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return V}function m(V,X){var M;const{queryClient:Y,ssrState:I}=h();return I&&I!=="mounted"&&((M=Y.getQueryCache().find({queryKey:V}))===null||M===void 0?void 0:M.state.status)==="error"?(0,K.default)({retryOnMount:!1},X):X}function y(V,X,M){var Y,I,ae,ne,P;const he=h(),{abortOnUnmount:fe,client:ye,ssrState:x,queryClient:Z,prefetchQuery:G}=he,te=rn(V,X,"query"),re=Z.getQueryDefaults(te),_=X===Zt;typeof window>"u"&&x==="prepass"&&(M==null||(Y=M.trpc)===null||Y===void 0?void 0:Y.ssr)!==!1&&((I=M?.enabled)!==null&&I!==void 0?I:re?.enabled)!==!1&&!_&&!Z.getQueryCache().find({queryKey:te})&&G(te,M);const N=m(te,(0,K.default)((0,K.default)({},re),M)),k=(ae=(ne=M==null||(P=M.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&ne!==void 0?ne:void 0)!==null&&ae!==void 0?ae:fe,B=b_((0,K.default)((0,K.default)({},N),{},{queryKey:te,queryFn:_?X:async W=>{const oe=(0,K.default)((0,K.default)({},N),{},{trpc:(0,K.default)((0,K.default)({},N?.trpc),k?{signal:W.signal}:{signal:null})}),Ee=await ye.query(...vt(te,oe));return wy(Ee)?av(Ee,Z,te):Ee}}),Z);return B.trpc=_i({path:V}),B}function g(V,X,M){var Y,I,ae;const ne=h(),P=rn(V,X,"query"),he=X===Zt,fe=(Y=(I=M==null||(ae=M.trpc)===null||ae===void 0?void 0:ae.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&Y!==void 0?Y:ne.abortOnUnmount;x_((0,K.default)((0,K.default)({},M),{},{queryKey:P,queryFn:he?X:ye=>{const x={trpc:(0,K.default)((0,K.default)({},M?.trpc),fe?{signal:ye.signal}:{})};return ne.client.query(...vt(P,x))}}))}function O(V,X,M){var Y,I,ae;const ne=h(),P=rn(V,X,"query"),he=(Y=(I=M==null||(ae=M.trpc)===null||ae===void 0?void 0:ae.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&Y!==void 0?Y:ne.abortOnUnmount,fe=__((0,K.default)((0,K.default)({},M),{},{queryKey:P,queryFn:ye=>{const x=(0,K.default)((0,K.default)({},M),{},{trpc:(0,K.default)((0,K.default)({},M?.trpc),he?{signal:ye.signal}:{signal:null})});return ne.client.query(...vt(P,x))}}),ne.queryClient);return fe.trpc=_i({path:V}),[fe.data,fe]}function w(V,X){const{client:M,queryClient:Y}=h(),I=hl(V),ae=Y.defaultMutationOptions(Y.getMutationDefaults(I)),ne=E_((0,K.default)((0,K.default)({},X),{},{mutationKey:I,mutationFn:P=>M.mutation(...vt([V,{input:P}],X)),onSuccess(...P){var he,fe;return l({originalFn:()=>{var x,Z,G;return(x=X==null||(Z=X.onSuccess)===null||Z===void 0?void 0:Z.call(X,...P))!==null&&x!==void 0?x:ae==null||(G=ae.onSuccess)===null||G===void 0?void 0:G.call(ae,...P)},queryClient:Y,meta:(he=(fe=X?.meta)!==null&&fe!==void 0?fe:ae?.meta)!==null&&he!==void 0?he:{}})}}),Y);return ne.trpc=_i({path:V}),ne}const Q={data:void 0,error:null,status:"idle"},$={data:void 0,error:null,status:"connecting"};function H(V,X,M){var Y;const I=(Y=M?.enabled)!==null&&Y!==void 0?Y:X!==Zt,ae=Wn(rn(V,X,"any")),{client:ne}=h(),P=L.useRef(M);L.useEffect(()=>{P.current=M});const[he]=L.useState(new Set([])),fe=L.useCallback(_=>{he.add(_)},[he]),ye=L.useRef(null),x=L.useCallback(_=>{const N=G.current,k=G.current=_(N);let B=!1;for(const W of he)if(N[W]!==k[W]){B=!0;break}B&&re(jm(k,fe))},[fe,he]),Z=L.useCallback(()=>{var _;if((_=ye.current)===null||_===void 0||_.unsubscribe(),!I){x(()=>(0,K.default)((0,K.default)({},Q),{},{reset:Z}));return}x(()=>(0,K.default)((0,K.default)({},$),{},{reset:Z}));const N=ne.subscription(V.join("."),X??void 0,{onStarted:()=>{var k,B;(k=(B=P.current).onStarted)===null||k===void 0||k.call(B),x(W=>(0,K.default)((0,K.default)({},W),{},{status:"pending",error:null}))},onData:k=>{var B,W;(B=(W=P.current).onData)===null||B===void 0||B.call(W,k),x(oe=>(0,K.default)((0,K.default)({},oe),{},{status:"pending",data:k,error:null}))},onError:k=>{var B,W;(B=(W=P.current).onError)===null||B===void 0||B.call(W,k),x(oe=>(0,K.default)((0,K.default)({},oe),{},{status:"error",error:k}))},onConnectionStateChange:k=>{x(B=>{switch(k.state){case"idle":return(0,K.default)((0,K.default)({},B),{},{status:k.state,error:null,data:void 0});case"connecting":return(0,K.default)((0,K.default)({},B),{},{error:k.error,status:k.state});case"pending":return B}})},onComplete:()=>{var k,B;(k=(B=P.current).onComplete)===null||k===void 0||k.call(B),x(W=>(0,K.default)((0,K.default)({},W),{},{status:"idle",error:null,data:void 0}))}});ye.current=N},[ne,ae,I,x]);L.useEffect(()=>(Z(),()=>{var _;(_=ye.current)===null||_===void 0||_.unsubscribe()}),[Z]);const G=L.useRef(I?(0,K.default)((0,K.default)({},$),{},{reset:Z}):(0,K.default)((0,K.default)({},Q),{},{reset:Z})),[te,re]=L.useState(jm(G.current,fe));return te}function le(V,X,M){var Y,I,ae,ne,P;const{client:he,ssrState:fe,prefetchInfiniteQuery:ye,queryClient:x,abortOnUnmount:Z}=h(),G=rn(V,X,"infinite"),te=x.getQueryDefaults(G),re=X===Zt;typeof window>"u"&&fe==="prepass"&&(M==null||(Y=M.trpc)===null||Y===void 0?void 0:Y.ssr)!==!1&&((I=M?.enabled)!==null&&I!==void 0?I:te?.enabled)!==!1&&!re&&!x.getQueryCache().find({queryKey:G})&&ye(G,(0,K.default)((0,K.default)({},te),M));const _=m(G,(0,K.default)((0,K.default)({},te),M)),N=(ae=M==null||(ne=M.trpc)===null||ne===void 0?void 0:ne.abortOnUnmount)!==null&&ae!==void 0?ae:Z,k=T_((0,K.default)((0,K.default)({},_),{},{initialPageParam:(P=M.initialCursor)!==null&&P!==void 0?P:null,persister:M.persister,queryKey:G,queryFn:re?X:B=>{var W;const oe=(0,K.default)((0,K.default)({},_),{},{trpc:(0,K.default)((0,K.default)({},_?.trpc),N?{signal:B.signal}:{signal:null})});return he.query(...vt(G,oe,{pageParam:(W=B.pageParam)!==null&&W!==void 0?W:M.initialCursor,direction:B.direction}))}}),x);return k.trpc=_i({path:V}),k}function se(V,X,M){var Y,I,ae;const ne=h(),P=rn(V,X,"infinite"),he=ne.queryClient.getQueryDefaults(P),fe=X===Zt,ye=m(P,(0,K.default)((0,K.default)({},he),M)),x=(Y=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&Y!==void 0?Y:ne.abortOnUnmount;z_((0,K.default)((0,K.default)({},M),{},{initialPageParam:(ae=M.initialCursor)!==null&&ae!==void 0?ae:null,queryKey:P,queryFn:fe?X:Z=>{var G;const te=(0,K.default)((0,K.default)({},ye),{},{trpc:(0,K.default)((0,K.default)({},ye?.trpc),x?{signal:Z.signal}:{})});return ne.client.query(...vt(P,te,{pageParam:(G=Z.pageParam)!==null&&G!==void 0?G:M.initialCursor,direction:Z.direction}))}}))}function Ce(V,X,M){var Y,I,ae;const ne=h(),P=rn(V,X,"infinite"),he=ne.queryClient.getQueryDefaults(P),fe=m(P,(0,K.default)((0,K.default)({},he),M)),ye=(Y=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&Y!==void 0?Y:ne.abortOnUnmount,x=S_((0,K.default)((0,K.default)({},M),{},{initialPageParam:(ae=M.initialCursor)!==null&&ae!==void 0?ae:null,queryKey:P,queryFn:Z=>{var G;const te=(0,K.default)((0,K.default)({},fe),{},{trpc:(0,K.default)((0,K.default)({},fe?.trpc),ye?{signal:Z.signal}:{})});return ne.client.query(...vt(P,te,{pageParam:(G=Z.pageParam)!==null&&G!==void 0?G:M.initialCursor,direction:Z.direction}))}}),ne.queryClient);return x.trpc=_i({path:V}),[x.data,x]}return{Provider:d,createClient:f,useContext:h,useUtils:h,useQuery:y,usePrefetchQuery:g,useSuspenseQuery:O,useQueries:(V,X)=>{const{ssrState:M,queryClient:Y,prefetchQuery:I,client:ae}=h(),ne=Am(ae),P=V(ne);if(typeof window>"u"&&M==="prepass")for(const fe of P){var he;const ye=fe;((he=ye.trpc)===null||he===void 0?void 0:he.ssr)!==!1&&!Y.getQueryCache().find({queryKey:ye.queryKey})&&I(ye.queryKey,ye)}return xy({queries:P.map(fe=>(0,K.default)((0,K.default)({},fe),{},{queryKey:fe.queryKey})),combine:X?.combine},Y)},useSuspenseQueries:V=>{const{queryClient:X,client:M}=h(),Y=Am(M),I=V(Y),ae=O_({queries:I.map(ne=>(0,K.default)((0,K.default)({},ne),{},{queryFn:ne.queryFn,queryKey:ne.queryKey}))},X);return[ae.map(ne=>ne.data),ae]},useMutation:w,useSubscription:H,useInfiniteQuery:le,usePrefetchInfiniteQuery:se,useSuspenseInfiniteQuery:Ce}}function x1(n){const a=d1(n);return Bc(u=>u==="useContext"||u==="useUtils"?()=>{const l=n.useUtils();return L.useMemo(()=>v1(l),[l])}:n.hasOwnProperty(u)?n[u]:a[u])}function z1(n){const a=O1();return x1(a)}const dt=z1(),E1="modulepreload",T1=function(n){return"/"+n},Mm={},rv=function(a,u,l){let s=Promise.resolve();if(u&&u.length>0){let m=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(O=>({status:"fulfilled",value:O}),O=>({status:"rejected",reason:O}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=m(u.map(y=>{if(y=T1(y),y in Mm)return;Mm[y]=!0;const g=y.endsWith(".css"),O=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${O}`))return;const w=document.createElement("link");if(w.rel=g?"stylesheet":E1,g||(w.as="script"),w.crossOrigin="",w.href=y,h&&w.setAttribute("nonce",h),document.head.appendChild(w),g)return new Promise((Q,$)=>{w.addEventListener("load",Q),w.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return a().catch(f)})},UE="New chat",ZE="__unified__",Si={IMPORTED:"imported",API:"api"};function D(n,a,u){function l(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:d,traits:new Set},enumerable:!1}),h._zod.traits.has(n))return;h._zod.traits.add(n),a(h,m);const y=d.prototype,g=Object.keys(y);for(let O=0;O<g.length;O++){const w=g[O];w in h||(h[w]=y[w].bind(h))}}const s=u?.Parent??Object;class f extends s{}Object.defineProperty(f,"name",{value:n});function d(h){var m;const y=u?.Parent?new f:this;l(y,h),(m=y._zod).deferred??(m.deferred=[]);for(const g of y._zod.deferred)g();return y}return Object.defineProperty(d,"init",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:h=>u?.Parent&&h instanceof u.Parent?!0:h?._zod?.traits?.has(n)}),Object.defineProperty(d,"name",{value:n}),d}class _r extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class iv extends Error{constructor(a){super(`Encountered unidirectional transform during encode: ${a}`),this.name="ZodEncodeError"}}const uv={};function ta(n){return uv}function lv(n){const a=Object.values(n).filter(l=>typeof l=="number");return Object.entries(n).filter(([l,s])=>a.indexOf(+l)===-1).map(([l,s])=>s)}function jc(n,a){return typeof a=="bigint"?a.toString():a}function jl(n){return{get value(){{const a=n();return Object.defineProperty(this,"value",{value:a}),a}}}}function Gc(n){return n==null}function Yc(n){const a=n.startsWith("^")?1:0,u=n.endsWith("$")?n.length-1:n.length;return n.slice(a,u)}function w1(n,a){const u=(n.toString().split(".")[1]||"").length,l=a.toString();let s=(l.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(l)){const m=l.match(/\d?e-(\d?)/);m?.[1]&&(s=Number.parseInt(m[1]))}const f=u>s?u:s,d=Number.parseInt(n.toFixed(f).replace(".","")),h=Number.parseInt(a.toFixed(f).replace(".",""));return d%h/10**f}const Cm=Symbol("evaluating");function xe(n,a,u){let l;Object.defineProperty(n,a,{get(){if(l!==Cm)return l===void 0&&(l=Cm,l=u()),l},set(s){Object.defineProperty(n,a,{value:s})},configurable:!0})}function Ma(n,a,u){Object.defineProperty(n,a,{value:u,writable:!0,enumerable:!0,configurable:!0})}function ra(...n){const a={};for(const u of n){const l=Object.getOwnPropertyDescriptors(u);Object.assign(a,l)}return Object.defineProperties({},a)}function Rm(n){return JSON.stringify(n)}function A1(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const sv="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function Ri(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const j1=jl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function Or(n){if(Ri(n)===!1)return!1;const a=n.constructor;if(a===void 0||typeof a!="function")return!0;const u=a.prototype;return!(Ri(u)===!1||Object.prototype.hasOwnProperty.call(u,"isPrototypeOf")===!1)}function ov(n){return Or(n)?{...n}:Array.isArray(n)?[...n]:n}const M1=new Set(["string","number","symbol"]);function xr(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ia(n,a,u){const l=new n._zod.constr(a??n._zod.def);return(!a||u?.parent)&&(l._zod.parent=n),l}function F(n){const a=n;if(!a)return{};if(typeof a=="string")return{error:()=>a};if(a?.message!==void 0){if(a?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");a.error=a.message}return delete a.message,typeof a.error=="string"?{...a,error:()=>a.error}:a}function C1(n){return Object.keys(n).filter(a=>n[a]._zod.optin==="optional"&&n[a]._zod.optout==="optional")}const R1={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function D1(n,a){const u=n._zod.def,l=u.checks;if(l&&l.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const f=ra(n._zod.def,{get shape(){const d={};for(const h in a){if(!(h in u.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&(d[h]=u.shape[h])}return Ma(this,"shape",d),d},checks:[]});return ia(n,f)}function N1(n,a){const u=n._zod.def,l=u.checks;if(l&&l.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const f=ra(n._zod.def,{get shape(){const d={...n._zod.def.shape};for(const h in a){if(!(h in u.shape))throw new Error(`Unrecognized key: "${h}"`);a[h]&&delete d[h]}return Ma(this,"shape",d),d},checks:[]});return ia(n,f)}function U1(n,a){if(!Or(a))throw new Error("Invalid input to extend: expected a plain object");const u=n._zod.def.checks;if(u&&u.length>0){const f=n._zod.def.shape;for(const d in a)if(Object.getOwnPropertyDescriptor(f,d)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=ra(n._zod.def,{get shape(){const f={...n._zod.def.shape,...a};return Ma(this,"shape",f),f}});return ia(n,s)}function Z1(n,a){if(!Or(a))throw new Error("Invalid input to safeExtend: expected a plain object");const u=ra(n._zod.def,{get shape(){const l={...n._zod.def.shape,...a};return Ma(this,"shape",l),l}});return ia(n,u)}function q1(n,a){const u=ra(n._zod.def,{get shape(){const l={...n._zod.def.shape,...a._zod.def.shape};return Ma(this,"shape",l),l},get catchall(){return a._zod.def.catchall},checks:[]});return ia(n,u)}function Q1(n,a,u){const s=a._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const d=ra(a._zod.def,{get shape(){const h=a._zod.def.shape,m={...h};if(u)for(const y in u){if(!(y in h))throw new Error(`Unrecognized key: "${y}"`);u[y]&&(m[y]=n?new n({type:"optional",innerType:h[y]}):h[y])}else for(const y in h)m[y]=n?new n({type:"optional",innerType:h[y]}):h[y];return Ma(this,"shape",m),m},checks:[]});return ia(a,d)}function k1(n,a,u){const l=ra(a._zod.def,{get shape(){const s=a._zod.def.shape,f={...s};if(u)for(const d in u){if(!(d in f))throw new Error(`Unrecognized key: "${d}"`);u[d]&&(f[d]=new n({type:"nonoptional",innerType:s[d]}))}else for(const d in s)f[d]=new n({type:"nonoptional",innerType:s[d]});return Ma(this,"shape",f),f}});return ia(a,l)}function gr(n,a=0){if(n.aborted===!0)return!0;for(let u=a;u<n.issues.length;u++)if(n.issues[u]?.continue!==!0)return!0;return!1}function br(n,a){return a.map(u=>{var l;return(l=u).path??(l.path=[]),u.path.unshift(n),u})}function il(n){return typeof n=="string"?n:n?.message}function na(n,a,u){const l={...n,path:n.path??[]};if(!n.message){const s=il(n.inst?._zod.def?.error?.(n))??il(a?.error?.(n))??il(u.customError?.(n))??il(u.localeError?.(n))??"Invalid input";l.message=s}return delete l.inst,delete l.continue,a?.reportInput||delete l.input,l}function Vc(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function Di(...n){const[a,u,l]=n;return typeof a=="string"?{message:a,code:"custom",input:u,inst:l}:{...a}}const cv=(n,a)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:a,enumerable:!1}),n.message=JSON.stringify(a,jc,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},fv=D("$ZodError",cv),dv=D("$ZodError",cv,{Parent:Error});function H1(n,a=u=>u.message){const u={},l=[];for(const s of n.issues)s.path.length>0?(u[s.path[0]]=u[s.path[0]]||[],u[s.path[0]].push(a(s))):l.push(a(s));return{formErrors:l,fieldErrors:u}}function B1(n,a=u=>u.message){const u={_errors:[]},l=s=>{for(const f of s.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(d=>l({issues:d}));else if(f.code==="invalid_key")l({issues:f.issues});else if(f.code==="invalid_element")l({issues:f.issues});else if(f.path.length===0)u._errors.push(a(f));else{let d=u,h=0;for(;h<f.path.length;){const m=f.path[h];h===f.path.length-1?(d[m]=d[m]||{_errors:[]},d[m]._errors.push(a(f))):d[m]=d[m]||{_errors:[]},d=d[m],h++}}};return l(n),u}const Kc=n=>(a,u,l,s)=>{const f=l?Object.assign(l,{async:!1}):{async:!1},d=a._zod.run({value:u,issues:[]},f);if(d instanceof Promise)throw new _r;if(d.issues.length){const h=new(s?.Err??n)(d.issues.map(m=>na(m,f,ta())));throw sv(h,s?.callee),h}return d.value},Xc=n=>async(a,u,l,s)=>{const f=l?Object.assign(l,{async:!0}):{async:!0};let d=a._zod.run({value:u,issues:[]},f);if(d instanceof Promise&&(d=await d),d.issues.length){const h=new(s?.Err??n)(d.issues.map(m=>na(m,f,ta())));throw sv(h,s?.callee),h}return d.value},Ml=n=>(a,u,l)=>{const s=l?{...l,async:!1}:{async:!1},f=a._zod.run({value:u,issues:[]},s);if(f instanceof Promise)throw new _r;return f.issues.length?{success:!1,error:new(n??fv)(f.issues.map(d=>na(d,s,ta())))}:{success:!0,data:f.value}},L1=Ml(dv),Cl=n=>async(a,u,l)=>{const s=l?Object.assign(l,{async:!0}):{async:!0};let f=a._zod.run({value:u,issues:[]},s);return f instanceof Promise&&(f=await f),f.issues.length?{success:!1,error:new n(f.issues.map(d=>na(d,s,ta())))}:{success:!0,data:f.value}},$1=Cl(dv),G1=n=>(a,u,l)=>{const s=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Kc(n)(a,u,s)},Y1=n=>(a,u,l)=>Kc(n)(a,u,l),V1=n=>async(a,u,l)=>{const s=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Xc(n)(a,u,s)},K1=n=>async(a,u,l)=>Xc(n)(a,u,l),X1=n=>(a,u,l)=>{const s=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Ml(n)(a,u,s)},P1=n=>(a,u,l)=>Ml(n)(a,u,l),J1=n=>async(a,u,l)=>{const s=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Cl(n)(a,u,s)},F1=n=>async(a,u,l)=>Cl(n)(a,u,l),I1=/^[cC][^\s-]{8,}$/,W1=/^[0-9a-z]+$/,e2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,t2=/^[0-9a-vA-V]{20}$/,n2=/^[A-Za-z0-9]{27}$/,a2=/^[a-zA-Z0-9_-]{21}$/,r2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,i2=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Dm=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,u2=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,l2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function s2(){return new RegExp(l2,"u")}const o2=/^(?:(?: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])$/,c2=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,f2=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,d2=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,h2=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,hv=/^[A-Za-z0-9_-]*$/,p2=/^\+[1-9]\d{6,14}$/,pv="(?:(?:\\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])))",m2=new RegExp(`^${pv}$`);function mv(n){const a="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof n.precision=="number"?n.precision===-1?`${a}`:n.precision===0?`${a}:[0-5]\\d`:`${a}:[0-5]\\d\\.\\d{${n.precision}}`:`${a}(?::[0-5]\\d(?:\\.\\d+)?)?`}function y2(n){return new RegExp(`^${mv(n)}$`)}function v2(n){const a=mv({precision:n.precision}),u=["Z"];n.local&&u.push(""),n.offset&&u.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const l=`${a}(?:${u.join("|")})`;return new RegExp(`^${pv}T(?:${l})$`)}const g2=n=>{const a=n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${a}$`)},b2=/^-?\d+$/,yv=/^-?\d+(?:\.\d+)?$/,_2=/^(?:true|false)$/i,S2=/^null$/i,O2=/^[^A-Z]*$/,x2=/^[^a-z]*$/,Et=D("$ZodCheck",(n,a)=>{var u;n._zod??(n._zod={}),n._zod.def=a,(u=n._zod).onattach??(u.onattach=[])}),vv={number:"number",bigint:"bigint",object:"date"},gv=D("$ZodCheckLessThan",(n,a)=>{Et.init(n,a);const u=vv[typeof a.value];n._zod.onattach.push(l=>{const s=l._zod.bag,f=(a.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;a.value<f&&(a.inclusive?s.maximum=a.value:s.exclusiveMaximum=a.value)}),n._zod.check=l=>{(a.inclusive?l.value<=a.value:l.value<a.value)||l.issues.push({origin:u,code:"too_big",maximum:typeof a.value=="object"?a.value.getTime():a.value,input:l.value,inclusive:a.inclusive,inst:n,continue:!a.abort})}}),bv=D("$ZodCheckGreaterThan",(n,a)=>{Et.init(n,a);const u=vv[typeof a.value];n._zod.onattach.push(l=>{const s=l._zod.bag,f=(a.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;a.value>f&&(a.inclusive?s.minimum=a.value:s.exclusiveMinimum=a.value)}),n._zod.check=l=>{(a.inclusive?l.value>=a.value:l.value>a.value)||l.issues.push({origin:u,code:"too_small",minimum:typeof a.value=="object"?a.value.getTime():a.value,input:l.value,inclusive:a.inclusive,inst:n,continue:!a.abort})}}),z2=D("$ZodCheckMultipleOf",(n,a)=>{Et.init(n,a),n._zod.onattach.push(u=>{var l;(l=u._zod.bag).multipleOf??(l.multipleOf=a.value)}),n._zod.check=u=>{if(typeof u.value!=typeof a.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof u.value=="bigint"?u.value%a.value===BigInt(0):w1(u.value,a.value)===0)||u.issues.push({origin:typeof u.value,code:"not_multiple_of",divisor:a.value,input:u.value,inst:n,continue:!a.abort})}}),E2=D("$ZodCheckNumberFormat",(n,a)=>{Et.init(n,a),a.format=a.format||"float64";const u=a.format?.includes("int"),l=u?"int":"number",[s,f]=R1[a.format];n._zod.onattach.push(d=>{const h=d._zod.bag;h.format=a.format,h.minimum=s,h.maximum=f,u&&(h.pattern=b2)}),n._zod.check=d=>{const h=d.value;if(u){if(!Number.isInteger(h)){d.issues.push({expected:l,format:a.format,code:"invalid_type",continue:!1,input:h,inst:n});return}if(!Number.isSafeInteger(h)){h>0?d.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:l,inclusive:!0,continue:!a.abort}):d.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:l,inclusive:!0,continue:!a.abort});return}}h<s&&d.issues.push({origin:"number",input:h,code:"too_small",minimum:s,inclusive:!0,inst:n,continue:!a.abort}),h>f&&d.issues.push({origin:"number",input:h,code:"too_big",maximum:f,inclusive:!0,inst:n,continue:!a.abort})}}),T2=D("$ZodCheckMaxLength",(n,a)=>{var u;Et.init(n,a),(u=n._zod.def).when??(u.when=l=>{const s=l.value;return!Gc(s)&&s.length!==void 0}),n._zod.onattach.push(l=>{const s=l._zod.bag.maximum??Number.POSITIVE_INFINITY;a.maximum<s&&(l._zod.bag.maximum=a.maximum)}),n._zod.check=l=>{const s=l.value;if(s.length<=a.maximum)return;const d=Vc(s);l.issues.push({origin:d,code:"too_big",maximum:a.maximum,inclusive:!0,input:s,inst:n,continue:!a.abort})}}),w2=D("$ZodCheckMinLength",(n,a)=>{var u;Et.init(n,a),(u=n._zod.def).when??(u.when=l=>{const s=l.value;return!Gc(s)&&s.length!==void 0}),n._zod.onattach.push(l=>{const s=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;a.minimum>s&&(l._zod.bag.minimum=a.minimum)}),n._zod.check=l=>{const s=l.value;if(s.length>=a.minimum)return;const d=Vc(s);l.issues.push({origin:d,code:"too_small",minimum:a.minimum,inclusive:!0,input:s,inst:n,continue:!a.abort})}}),A2=D("$ZodCheckLengthEquals",(n,a)=>{var u;Et.init(n,a),(u=n._zod.def).when??(u.when=l=>{const s=l.value;return!Gc(s)&&s.length!==void 0}),n._zod.onattach.push(l=>{const s=l._zod.bag;s.minimum=a.length,s.maximum=a.length,s.length=a.length}),n._zod.check=l=>{const s=l.value,f=s.length;if(f===a.length)return;const d=Vc(s),h=f>a.length;l.issues.push({origin:d,...h?{code:"too_big",maximum:a.length}:{code:"too_small",minimum:a.length},inclusive:!0,exact:!0,input:l.value,inst:n,continue:!a.abort})}}),Rl=D("$ZodCheckStringFormat",(n,a)=>{var u,l;Et.init(n,a),n._zod.onattach.push(s=>{const f=s._zod.bag;f.format=a.format,a.pattern&&(f.patterns??(f.patterns=new Set),f.patterns.add(a.pattern))}),a.pattern?(u=n._zod).check??(u.check=s=>{a.pattern.lastIndex=0,!a.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:a.format,input:s.value,...a.pattern?{pattern:a.pattern.toString()}:{},inst:n,continue:!a.abort})}):(l=n._zod).check??(l.check=()=>{})}),j2=D("$ZodCheckRegex",(n,a)=>{Rl.init(n,a),n._zod.check=u=>{a.pattern.lastIndex=0,!a.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:"regex",input:u.value,pattern:a.pattern.toString(),inst:n,continue:!a.abort})}}),M2=D("$ZodCheckLowerCase",(n,a)=>{a.pattern??(a.pattern=O2),Rl.init(n,a)}),C2=D("$ZodCheckUpperCase",(n,a)=>{a.pattern??(a.pattern=x2),Rl.init(n,a)}),R2=D("$ZodCheckIncludes",(n,a)=>{Et.init(n,a);const u=xr(a.includes),l=new RegExp(typeof a.position=="number"?`^.{${a.position}}${u}`:u);a.pattern=l,n._zod.onattach.push(s=>{const f=s._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(l)}),n._zod.check=s=>{s.value.includes(a.includes,a.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:a.includes,input:s.value,inst:n,continue:!a.abort})}}),D2=D("$ZodCheckStartsWith",(n,a)=>{Et.init(n,a);const u=new RegExp(`^${xr(a.prefix)}.*`);a.pattern??(a.pattern=u),n._zod.onattach.push(l=>{const s=l._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(u)}),n._zod.check=l=>{l.value.startsWith(a.prefix)||l.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:a.prefix,input:l.value,inst:n,continue:!a.abort})}}),N2=D("$ZodCheckEndsWith",(n,a)=>{Et.init(n,a);const u=new RegExp(`.*${xr(a.suffix)}$`);a.pattern??(a.pattern=u),n._zod.onattach.push(l=>{const s=l._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(u)}),n._zod.check=l=>{l.value.endsWith(a.suffix)||l.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:a.suffix,input:l.value,inst:n,continue:!a.abort})}}),U2=D("$ZodCheckOverwrite",(n,a)=>{Et.init(n,a),n._zod.check=u=>{u.value=a.tx(u.value)}});class Z2{constructor(a=[]){this.content=[],this.indent=0,this&&(this.args=a)}indented(a){this.indent+=1,a(this),this.indent-=1}write(a){if(typeof a=="function"){a(this,{execution:"sync"}),a(this,{execution:"async"});return}const l=a.split(`
|
|
11
|
+
`).filter(d=>d),s=Math.min(...l.map(d=>d.length-d.trimStart().length)),f=l.map(d=>d.slice(s)).map(d=>" ".repeat(this.indent*2)+d);for(const d of f)this.content.push(d)}compile(){const a=Function,u=this?.args,s=[...(this?.content??[""]).map(f=>` ${f}`)];return new a(...u,s.join(`
|
|
12
|
+
`))}}const q2={major:4,minor:3,patch:6},Be=D("$ZodType",(n,a)=>{var u;n??(n={}),n._zod.def=a,n._zod.bag=n._zod.bag||{},n._zod.version=q2;const l=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&l.unshift(n);for(const s of l)for(const f of s._zod.onattach)f(n);if(l.length===0)(u=n._zod).deferred??(u.deferred=[]),n._zod.deferred?.push(()=>{n._zod.run=n._zod.parse});else{const s=(d,h,m)=>{let y=gr(d),g;for(const O of h){if(O._zod.def.when){if(!O._zod.def.when(d))continue}else if(y)continue;const w=d.issues.length,Q=O._zod.check(d);if(Q instanceof Promise&&m?.async===!1)throw new _r;if(g||Q instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await Q,d.issues.length!==w&&(y||(y=gr(d,w)))});else{if(d.issues.length===w)continue;y||(y=gr(d,w))}}return g?g.then(()=>d):d},f=(d,h,m)=>{if(gr(d))return d.aborted=!0,d;const y=s(h,l,m);if(y instanceof Promise){if(m.async===!1)throw new _r;return y.then(g=>n._zod.parse(g,m))}return n._zod.parse(y,m)};n._zod.run=(d,h)=>{if(h.skipChecks)return n._zod.parse(d,h);if(h.direction==="backward"){const y=n._zod.parse({value:d.value,issues:[]},{...h,skipChecks:!0});return y instanceof Promise?y.then(g=>f(g,d,h)):f(y,d,h)}const m=n._zod.parse(d,h);if(m instanceof Promise){if(h.async===!1)throw new _r;return m.then(y=>s(y,l,h))}return s(m,l,h)}}xe(n,"~standard",()=>({validate:s=>{try{const f=L1(n,s);return f.success?{value:f.data}:{issues:f.error?.issues}}catch{return $1(n,s).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}))}),Pc=D("$ZodString",(n,a)=>{Be.init(n,a),n._zod.pattern=[...n?._zod.bag?.patterns??[]].pop()??g2(n._zod.bag),n._zod.parse=(u,l)=>{if(a.coerce)try{u.value=String(u.value)}catch{}return typeof u.value=="string"||u.issues.push({expected:"string",code:"invalid_type",input:u.value,inst:n}),u}}),Ge=D("$ZodStringFormat",(n,a)=>{Rl.init(n,a),Pc.init(n,a)}),Q2=D("$ZodGUID",(n,a)=>{a.pattern??(a.pattern=i2),Ge.init(n,a)}),k2=D("$ZodUUID",(n,a)=>{if(a.version){const l={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[a.version];if(l===void 0)throw new Error(`Invalid UUID version: "${a.version}"`);a.pattern??(a.pattern=Dm(l))}else a.pattern??(a.pattern=Dm());Ge.init(n,a)}),H2=D("$ZodEmail",(n,a)=>{a.pattern??(a.pattern=u2),Ge.init(n,a)}),B2=D("$ZodURL",(n,a)=>{Ge.init(n,a),n._zod.check=u=>{try{const l=u.value.trim(),s=new URL(l);a.hostname&&(a.hostname.lastIndex=0,a.hostname.test(s.hostname)||u.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:a.hostname.source,input:u.value,inst:n,continue:!a.abort})),a.protocol&&(a.protocol.lastIndex=0,a.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||u.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:a.protocol.source,input:u.value,inst:n,continue:!a.abort})),a.normalize?u.value=s.href:u.value=l;return}catch{u.issues.push({code:"invalid_format",format:"url",input:u.value,inst:n,continue:!a.abort})}}}),L2=D("$ZodEmoji",(n,a)=>{a.pattern??(a.pattern=s2()),Ge.init(n,a)}),$2=D("$ZodNanoID",(n,a)=>{a.pattern??(a.pattern=a2),Ge.init(n,a)}),G2=D("$ZodCUID",(n,a)=>{a.pattern??(a.pattern=I1),Ge.init(n,a)}),Y2=D("$ZodCUID2",(n,a)=>{a.pattern??(a.pattern=W1),Ge.init(n,a)}),V2=D("$ZodULID",(n,a)=>{a.pattern??(a.pattern=e2),Ge.init(n,a)}),K2=D("$ZodXID",(n,a)=>{a.pattern??(a.pattern=t2),Ge.init(n,a)}),X2=D("$ZodKSUID",(n,a)=>{a.pattern??(a.pattern=n2),Ge.init(n,a)}),P2=D("$ZodISODateTime",(n,a)=>{a.pattern??(a.pattern=v2(a)),Ge.init(n,a)}),J2=D("$ZodISODate",(n,a)=>{a.pattern??(a.pattern=m2),Ge.init(n,a)}),F2=D("$ZodISOTime",(n,a)=>{a.pattern??(a.pattern=y2(a)),Ge.init(n,a)}),I2=D("$ZodISODuration",(n,a)=>{a.pattern??(a.pattern=r2),Ge.init(n,a)}),W2=D("$ZodIPv4",(n,a)=>{a.pattern??(a.pattern=o2),Ge.init(n,a),n._zod.bag.format="ipv4"}),eO=D("$ZodIPv6",(n,a)=>{a.pattern??(a.pattern=c2),Ge.init(n,a),n._zod.bag.format="ipv6",n._zod.check=u=>{try{new URL(`http://[${u.value}]`)}catch{u.issues.push({code:"invalid_format",format:"ipv6",input:u.value,inst:n,continue:!a.abort})}}}),tO=D("$ZodCIDRv4",(n,a)=>{a.pattern??(a.pattern=f2),Ge.init(n,a)}),nO=D("$ZodCIDRv6",(n,a)=>{a.pattern??(a.pattern=d2),Ge.init(n,a),n._zod.check=u=>{const l=u.value.split("/");try{if(l.length!==2)throw new Error;const[s,f]=l;if(!f)throw new Error;const d=Number(f);if(`${d}`!==f)throw new Error;if(d<0||d>128)throw new Error;new URL(`http://[${s}]`)}catch{u.issues.push({code:"invalid_format",format:"cidrv6",input:u.value,inst:n,continue:!a.abort})}}});function _v(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const aO=D("$ZodBase64",(n,a)=>{a.pattern??(a.pattern=h2),Ge.init(n,a),n._zod.bag.contentEncoding="base64",n._zod.check=u=>{_v(u.value)||u.issues.push({code:"invalid_format",format:"base64",input:u.value,inst:n,continue:!a.abort})}});function rO(n){if(!hv.test(n))return!1;const a=n.replace(/[-_]/g,l=>l==="-"?"+":"/"),u=a.padEnd(Math.ceil(a.length/4)*4,"=");return _v(u)}const iO=D("$ZodBase64URL",(n,a)=>{a.pattern??(a.pattern=hv),Ge.init(n,a),n._zod.bag.contentEncoding="base64url",n._zod.check=u=>{rO(u.value)||u.issues.push({code:"invalid_format",format:"base64url",input:u.value,inst:n,continue:!a.abort})}}),uO=D("$ZodE164",(n,a)=>{a.pattern??(a.pattern=p2),Ge.init(n,a)});function lO(n,a=null){try{const u=n.split(".");if(u.length!==3)return!1;const[l]=u;if(!l)return!1;const s=JSON.parse(atob(l));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||a&&(!("alg"in s)||s.alg!==a))}catch{return!1}}const sO=D("$ZodJWT",(n,a)=>{Ge.init(n,a),n._zod.check=u=>{lO(u.value,a.alg)||u.issues.push({code:"invalid_format",format:"jwt",input:u.value,inst:n,continue:!a.abort})}}),Sv=D("$ZodNumber",(n,a)=>{Be.init(n,a),n._zod.pattern=n._zod.bag.pattern??yv,n._zod.parse=(u,l)=>{if(a.coerce)try{u.value=Number(u.value)}catch{}const s=u.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return u;const f=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return u.issues.push({expected:"number",code:"invalid_type",input:s,inst:n,...f?{received:f}:{}}),u}}),oO=D("$ZodNumberFormat",(n,a)=>{E2.init(n,a),Sv.init(n,a)}),cO=D("$ZodBoolean",(n,a)=>{Be.init(n,a),n._zod.pattern=_2,n._zod.parse=(u,l)=>{if(a.coerce)try{u.value=!!u.value}catch{}const s=u.value;return typeof s=="boolean"||u.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:n}),u}}),fO=D("$ZodNull",(n,a)=>{Be.init(n,a),n._zod.pattern=S2,n._zod.values=new Set([null]),n._zod.parse=(u,l)=>{const s=u.value;return s===null||u.issues.push({expected:"null",code:"invalid_type",input:s,inst:n}),u}}),dO=D("$ZodUnknown",(n,a)=>{Be.init(n,a),n._zod.parse=u=>u}),hO=D("$ZodNever",(n,a)=>{Be.init(n,a),n._zod.parse=(u,l)=>(u.issues.push({expected:"never",code:"invalid_type",input:u.value,inst:n}),u)});function Nm(n,a,u){n.issues.length&&a.issues.push(...br(u,n.issues)),a.value[u]=n.value}const pO=D("$ZodArray",(n,a)=>{Be.init(n,a),n._zod.parse=(u,l)=>{const s=u.value;if(!Array.isArray(s))return u.issues.push({expected:"array",code:"invalid_type",input:s,inst:n}),u;u.value=Array(s.length);const f=[];for(let d=0;d<s.length;d++){const h=s[d],m=a.element._zod.run({value:h,issues:[]},l);m instanceof Promise?f.push(m.then(y=>Nm(y,u,d))):Nm(m,u,d)}return f.length?Promise.all(f).then(()=>u):u}});function vl(n,a,u,l,s){if(n.issues.length){if(s&&!(u in l))return;a.issues.push(...br(u,n.issues))}n.value===void 0?u in l&&(a.value[u]=void 0):a.value[u]=n.value}function Ov(n){const a=Object.keys(n.shape);for(const l of a)if(!n.shape?.[l]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const u=C1(n.shape);return{...n,keys:a,keySet:new Set(a),numKeys:a.length,optionalKeys:new Set(u)}}function xv(n,a,u,l,s,f){const d=[],h=s.keySet,m=s.catchall._zod,y=m.def.type,g=m.optout==="optional";for(const O in a){if(h.has(O))continue;if(y==="never"){d.push(O);continue}const w=m.run({value:a[O],issues:[]},l);w instanceof Promise?n.push(w.then(Q=>vl(Q,u,O,a,g))):vl(w,u,O,a,g)}return d.length&&u.issues.push({code:"unrecognized_keys",keys:d,input:a,inst:f}),n.length?Promise.all(n).then(()=>u):u}const mO=D("$ZodObject",(n,a)=>{if(Be.init(n,a),!Object.getOwnPropertyDescriptor(a,"shape")?.get){const h=a.shape;Object.defineProperty(a,"shape",{get:()=>{const m={...h};return Object.defineProperty(a,"shape",{value:m}),m}})}const l=jl(()=>Ov(a));xe(n._zod,"propValues",()=>{const h=a.shape,m={};for(const y in h){const g=h[y]._zod;if(g.values){m[y]??(m[y]=new Set);for(const O of g.values)m[y].add(O)}}return m});const s=Ri,f=a.catchall;let d;n._zod.parse=(h,m)=>{d??(d=l.value);const y=h.value;if(!s(y))return h.issues.push({expected:"object",code:"invalid_type",input:y,inst:n}),h;h.value={};const g=[],O=d.shape;for(const w of d.keys){const Q=O[w],$=Q._zod.optout==="optional",H=Q._zod.run({value:y[w],issues:[]},m);H instanceof Promise?g.push(H.then(le=>vl(le,h,w,y,$))):vl(H,h,w,y,$)}return f?xv(g,y,h,m,l.value,n):g.length?Promise.all(g).then(()=>h):h}}),yO=D("$ZodObjectJIT",(n,a)=>{mO.init(n,a);const u=n._zod.parse,l=jl(()=>Ov(a)),s=w=>{const Q=new Z2(["shape","payload","ctx"]),$=l.value,H=de=>{const ve=Rm(de);return`shape[${ve}]._zod.run({ value: input[${ve}], issues: [] }, ctx)`};Q.write("const input = payload.value;");const le=Object.create(null);let se=0;for(const de of $.keys)le[de]=`key_${se++}`;Q.write("const newResult = {};");for(const de of $.keys){const ve=le[de],V=Rm(de),M=w[de]?._zod?.optout==="optional";Q.write(`const ${ve} = ${H(de)};`),M?Q.write(`
|
|
13
|
+
if (${ve}.issues.length) {
|
|
14
|
+
if (${V} in input) {
|
|
15
|
+
payload.issues = payload.issues.concat(${ve}.issues.map(iss => ({
|
|
16
|
+
...iss,
|
|
17
|
+
path: iss.path ? [${V}, ...iss.path] : [${V}]
|
|
18
|
+
})));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (${ve}.value === undefined) {
|
|
23
|
+
if (${V} in input) {
|
|
24
|
+
newResult[${V}] = undefined;
|
|
25
|
+
}
|
|
26
|
+
} else {
|
|
27
|
+
newResult[${V}] = ${ve}.value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
`):Q.write(`
|
|
31
|
+
if (${ve}.issues.length) {
|
|
32
|
+
payload.issues = payload.issues.concat(${ve}.issues.map(iss => ({
|
|
33
|
+
...iss,
|
|
34
|
+
path: iss.path ? [${V}, ...iss.path] : [${V}]
|
|
35
|
+
})));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (${ve}.value === undefined) {
|
|
39
|
+
if (${V} in input) {
|
|
40
|
+
newResult[${V}] = undefined;
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
newResult[${V}] = ${ve}.value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
`)}Q.write("payload.value = newResult;"),Q.write("return payload;");const Ce=Q.compile();return(de,ve)=>Ce(w,de,ve)};let f;const d=Ri,h=!uv.jitless,y=h&&j1.value,g=a.catchall;let O;n._zod.parse=(w,Q)=>{O??(O=l.value);const $=w.value;return d($)?h&&y&&Q?.async===!1&&Q.jitless!==!0?(f||(f=s(a.shape)),w=f(w,Q),g?xv([],$,w,Q,O,n):w):u(w,Q):(w.issues.push({expected:"object",code:"invalid_type",input:$,inst:n}),w)}});function Um(n,a,u,l){for(const f of n)if(f.issues.length===0)return a.value=f.value,a;const s=n.filter(f=>!gr(f));return s.length===1?(a.value=s[0].value,s[0]):(a.issues.push({code:"invalid_union",input:a.value,inst:u,errors:n.map(f=>f.issues.map(d=>na(d,l,ta())))}),a)}const zv=D("$ZodUnion",(n,a)=>{Be.init(n,a),xe(n._zod,"optin",()=>a.options.some(s=>s._zod.optin==="optional")?"optional":void 0),xe(n._zod,"optout",()=>a.options.some(s=>s._zod.optout==="optional")?"optional":void 0),xe(n._zod,"values",()=>{if(a.options.every(s=>s._zod.values))return new Set(a.options.flatMap(s=>Array.from(s._zod.values)))}),xe(n._zod,"pattern",()=>{if(a.options.every(s=>s._zod.pattern)){const s=a.options.map(f=>f._zod.pattern);return new RegExp(`^(${s.map(f=>Yc(f.source)).join("|")})$`)}});const u=a.options.length===1,l=a.options[0]._zod.run;n._zod.parse=(s,f)=>{if(u)return l(s,f);let d=!1;const h=[];for(const m of a.options){const y=m._zod.run({value:s.value,issues:[]},f);if(y instanceof Promise)h.push(y),d=!0;else{if(y.issues.length===0)return y;h.push(y)}}return d?Promise.all(h).then(m=>Um(m,s,n,f)):Um(h,s,n,f)}}),vO=D("$ZodDiscriminatedUnion",(n,a)=>{a.inclusive=!1,zv.init(n,a);const u=n._zod.parse;xe(n._zod,"propValues",()=>{const s={};for(const f of a.options){const d=f._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${a.options.indexOf(f)}"`);for(const[h,m]of Object.entries(d)){s[h]||(s[h]=new Set);for(const y of m)s[h].add(y)}}return s});const l=jl(()=>{const s=a.options,f=new Map;for(const d of s){const h=d._zod.propValues?.[a.discriminator];if(!h||h.size===0)throw new Error(`Invalid discriminated union option at index "${a.options.indexOf(d)}"`);for(const m of h){if(f.has(m))throw new Error(`Duplicate discriminator value "${String(m)}"`);f.set(m,d)}}return f});n._zod.parse=(s,f)=>{const d=s.value;if(!Ri(d))return s.issues.push({code:"invalid_type",expected:"object",input:d,inst:n}),s;const h=l.value.get(d?.[a.discriminator]);return h?h._zod.run(s,f):a.unionFallback?u(s,f):(s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:a.discriminator,input:d,path:[a.discriminator],inst:n}),s)}}),gO=D("$ZodIntersection",(n,a)=>{Be.init(n,a),n._zod.parse=(u,l)=>{const s=u.value,f=a.left._zod.run({value:s,issues:[]},l),d=a.right._zod.run({value:s,issues:[]},l);return f instanceof Promise||d instanceof Promise?Promise.all([f,d]).then(([m,y])=>Zm(u,m,y)):Zm(u,f,d)}});function Mc(n,a){if(n===a)return{valid:!0,data:n};if(n instanceof Date&&a instanceof Date&&+n==+a)return{valid:!0,data:n};if(Or(n)&&Or(a)){const u=Object.keys(a),l=Object.keys(n).filter(f=>u.indexOf(f)!==-1),s={...n,...a};for(const f of l){const d=Mc(n[f],a[f]);if(!d.valid)return{valid:!1,mergeErrorPath:[f,...d.mergeErrorPath]};s[f]=d.data}return{valid:!0,data:s}}if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return{valid:!1,mergeErrorPath:[]};const u=[];for(let l=0;l<n.length;l++){const s=n[l],f=a[l],d=Mc(s,f);if(!d.valid)return{valid:!1,mergeErrorPath:[l,...d.mergeErrorPath]};u.push(d.data)}return{valid:!0,data:u}}return{valid:!1,mergeErrorPath:[]}}function Zm(n,a,u){const l=new Map;let s;for(const h of a.issues)if(h.code==="unrecognized_keys"){s??(s=h);for(const m of h.keys)l.has(m)||l.set(m,{}),l.get(m).l=!0}else n.issues.push(h);for(const h of u.issues)if(h.code==="unrecognized_keys")for(const m of h.keys)l.has(m)||l.set(m,{}),l.get(m).r=!0;else n.issues.push(h);const f=[...l].filter(([,h])=>h.l&&h.r).map(([h])=>h);if(f.length&&s&&n.issues.push({...s,keys:f}),gr(n))return n;const d=Mc(a.value,u.value);if(!d.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`);return n.value=d.data,n}const bO=D("$ZodRecord",(n,a)=>{Be.init(n,a),n._zod.parse=(u,l)=>{const s=u.value;if(!Or(s))return u.issues.push({expected:"record",code:"invalid_type",input:s,inst:n}),u;const f=[],d=a.keyType._zod.values;if(d){u.value={};const h=new Set;for(const y of d)if(typeof y=="string"||typeof y=="number"||typeof y=="symbol"){h.add(typeof y=="number"?y.toString():y);const g=a.valueType._zod.run({value:s[y],issues:[]},l);g instanceof Promise?f.push(g.then(O=>{O.issues.length&&u.issues.push(...br(y,O.issues)),u.value[y]=O.value})):(g.issues.length&&u.issues.push(...br(y,g.issues)),u.value[y]=g.value)}let m;for(const y in s)h.has(y)||(m=m??[],m.push(y));m&&m.length>0&&u.issues.push({code:"unrecognized_keys",input:s,inst:n,keys:m})}else{u.value={};for(const h of Reflect.ownKeys(s)){if(h==="__proto__")continue;let m=a.keyType._zod.run({value:h,issues:[]},l);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof h=="string"&&yv.test(h)&&m.issues.length){const O=a.keyType._zod.run({value:Number(h),issues:[]},l);if(O instanceof Promise)throw new Error("Async schemas not supported in object keys currently");O.issues.length===0&&(m=O)}if(m.issues.length){a.mode==="loose"?u.value[h]=s[h]:u.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(O=>na(O,l,ta())),input:h,path:[h],inst:n});continue}const g=a.valueType._zod.run({value:s[h],issues:[]},l);g instanceof Promise?f.push(g.then(O=>{O.issues.length&&u.issues.push(...br(h,O.issues)),u.value[m.value]=O.value})):(g.issues.length&&u.issues.push(...br(h,g.issues)),u.value[m.value]=g.value)}}return f.length?Promise.all(f).then(()=>u):u}}),_O=D("$ZodEnum",(n,a)=>{Be.init(n,a);const u=lv(a.entries),l=new Set(u);n._zod.values=l,n._zod.pattern=new RegExp(`^(${u.filter(s=>M1.has(typeof s)).map(s=>typeof s=="string"?xr(s):s.toString()).join("|")})$`),n._zod.parse=(s,f)=>{const d=s.value;return l.has(d)||s.issues.push({code:"invalid_value",values:u,input:d,inst:n}),s}}),SO=D("$ZodLiteral",(n,a)=>{if(Be.init(n,a),a.values.length===0)throw new Error("Cannot create literal schema with no valid values");const u=new Set(a.values);n._zod.values=u,n._zod.pattern=new RegExp(`^(${a.values.map(l=>typeof l=="string"?xr(l):l?xr(l.toString()):String(l)).join("|")})$`),n._zod.parse=(l,s)=>{const f=l.value;return u.has(f)||l.issues.push({code:"invalid_value",values:a.values,input:f,inst:n}),l}}),OO=D("$ZodTransform",(n,a)=>{Be.init(n,a),n._zod.parse=(u,l)=>{if(l.direction==="backward")throw new iv(n.constructor.name);const s=a.transform(u.value,u);if(l.async)return(s instanceof Promise?s:Promise.resolve(s)).then(d=>(u.value=d,u));if(s instanceof Promise)throw new _r;return u.value=s,u}});function qm(n,a){return n.issues.length&&a===void 0?{issues:[],value:void 0}:n}const Ev=D("$ZodOptional",(n,a)=>{Be.init(n,a),n._zod.optin="optional",n._zod.optout="optional",xe(n._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,void 0]):void 0),xe(n._zod,"pattern",()=>{const u=a.innerType._zod.pattern;return u?new RegExp(`^(${Yc(u.source)})?$`):void 0}),n._zod.parse=(u,l)=>{if(a.innerType._zod.optin==="optional"){const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(f=>qm(f,u.value)):qm(s,u.value)}return u.value===void 0?u:a.innerType._zod.run(u,l)}}),xO=D("$ZodExactOptional",(n,a)=>{Ev.init(n,a),xe(n._zod,"values",()=>a.innerType._zod.values),xe(n._zod,"pattern",()=>a.innerType._zod.pattern),n._zod.parse=(u,l)=>a.innerType._zod.run(u,l)}),zO=D("$ZodNullable",(n,a)=>{Be.init(n,a),xe(n._zod,"optin",()=>a.innerType._zod.optin),xe(n._zod,"optout",()=>a.innerType._zod.optout),xe(n._zod,"pattern",()=>{const u=a.innerType._zod.pattern;return u?new RegExp(`^(${Yc(u.source)}|null)$`):void 0}),xe(n._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,null]):void 0),n._zod.parse=(u,l)=>u.value===null?u:a.innerType._zod.run(u,l)}),EO=D("$ZodDefault",(n,a)=>{Be.init(n,a),n._zod.optin="optional",xe(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(u,l)=>{if(l.direction==="backward")return a.innerType._zod.run(u,l);if(u.value===void 0)return u.value=a.defaultValue,u;const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(f=>Qm(f,a)):Qm(s,a)}});function Qm(n,a){return n.value===void 0&&(n.value=a.defaultValue),n}const TO=D("$ZodPrefault",(n,a)=>{Be.init(n,a),n._zod.optin="optional",xe(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(u,l)=>(l.direction==="backward"||u.value===void 0&&(u.value=a.defaultValue),a.innerType._zod.run(u,l))}),wO=D("$ZodNonOptional",(n,a)=>{Be.init(n,a),xe(n._zod,"values",()=>{const u=a.innerType._zod.values;return u?new Set([...u].filter(l=>l!==void 0)):void 0}),n._zod.parse=(u,l)=>{const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(f=>km(f,n)):km(s,n)}});function km(n,a){return!n.issues.length&&n.value===void 0&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:a}),n}const AO=D("$ZodCatch",(n,a)=>{Be.init(n,a),xe(n._zod,"optin",()=>a.innerType._zod.optin),xe(n._zod,"optout",()=>a.innerType._zod.optout),xe(n._zod,"values",()=>a.innerType._zod.values),n._zod.parse=(u,l)=>{if(l.direction==="backward")return a.innerType._zod.run(u,l);const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(f=>(u.value=f.value,f.issues.length&&(u.value=a.catchValue({...u,error:{issues:f.issues.map(d=>na(d,l,ta()))},input:u.value}),u.issues=[]),u)):(u.value=s.value,s.issues.length&&(u.value=a.catchValue({...u,error:{issues:s.issues.map(f=>na(f,l,ta()))},input:u.value}),u.issues=[]),u)}}),jO=D("$ZodPipe",(n,a)=>{Be.init(n,a),xe(n._zod,"values",()=>a.in._zod.values),xe(n._zod,"optin",()=>a.in._zod.optin),xe(n._zod,"optout",()=>a.out._zod.optout),xe(n._zod,"propValues",()=>a.in._zod.propValues),n._zod.parse=(u,l)=>{if(l.direction==="backward"){const f=a.out._zod.run(u,l);return f instanceof Promise?f.then(d=>ul(d,a.in,l)):ul(f,a.in,l)}const s=a.in._zod.run(u,l);return s instanceof Promise?s.then(f=>ul(f,a.out,l)):ul(s,a.out,l)}});function ul(n,a,u){return n.issues.length?(n.aborted=!0,n):a._zod.run({value:n.value,issues:n.issues},u)}const MO=D("$ZodReadonly",(n,a)=>{Be.init(n,a),xe(n._zod,"propValues",()=>a.innerType._zod.propValues),xe(n._zod,"values",()=>a.innerType._zod.values),xe(n._zod,"optin",()=>a.innerType?._zod?.optin),xe(n._zod,"optout",()=>a.innerType?._zod?.optout),n._zod.parse=(u,l)=>{if(l.direction==="backward")return a.innerType._zod.run(u,l);const s=a.innerType._zod.run(u,l);return s instanceof Promise?s.then(Hm):Hm(s)}});function Hm(n){return n.value=Object.freeze(n.value),n}const CO=D("$ZodLazy",(n,a)=>{Be.init(n,a),xe(n._zod,"innerType",()=>a.getter()),xe(n._zod,"pattern",()=>n._zod.innerType?._zod?.pattern),xe(n._zod,"propValues",()=>n._zod.innerType?._zod?.propValues),xe(n._zod,"optin",()=>n._zod.innerType?._zod?.optin??void 0),xe(n._zod,"optout",()=>n._zod.innerType?._zod?.optout??void 0),n._zod.parse=(u,l)=>n._zod.innerType._zod.run(u,l)}),RO=D("$ZodCustom",(n,a)=>{Et.init(n,a),Be.init(n,a),n._zod.parse=(u,l)=>u,n._zod.check=u=>{const l=u.value,s=a.fn(l);if(s instanceof Promise)return s.then(f=>Bm(f,u,l,n));Bm(s,u,l,n)}});function Bm(n,a,u,l){if(!n){const s={code:"custom",input:u,inst:l,path:[...l._zod.def.path??[]],continue:!l._zod.def.abort};l._zod.def.params&&(s.params=l._zod.def.params),a.issues.push(Di(s))}}var Lm;class DO{constructor(){this._map=new WeakMap,this._idmap=new Map}add(a,...u){const l=u[0];return this._map.set(a,l),l&&typeof l=="object"&&"id"in l&&this._idmap.set(l.id,a),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(a){const u=this._map.get(a);return u&&typeof u=="object"&&"id"in u&&this._idmap.delete(u.id),this._map.delete(a),this}get(a){const u=a._zod.parent;if(u){const l={...this.get(u)??{}};delete l.id;const s={...l,...this._map.get(a)};return Object.keys(s).length?s:void 0}return this._map.get(a)}has(a){return this._map.has(a)}}function NO(){return new DO}(Lm=globalThis).__zod_globalRegistry??(Lm.__zod_globalRegistry=NO());const xi=globalThis.__zod_globalRegistry;function UO(n,a){return new n({type:"string",...F(a)})}function ZO(n,a){return new n({type:"string",format:"email",check:"string_format",abort:!1,...F(a)})}function $m(n,a){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...F(a)})}function qO(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...F(a)})}function QO(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...F(a)})}function kO(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...F(a)})}function HO(n,a){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...F(a)})}function BO(n,a){return new n({type:"string",format:"url",check:"string_format",abort:!1,...F(a)})}function LO(n,a){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...F(a)})}function $O(n,a){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...F(a)})}function GO(n,a){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...F(a)})}function YO(n,a){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...F(a)})}function VO(n,a){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...F(a)})}function KO(n,a){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...F(a)})}function XO(n,a){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...F(a)})}function PO(n,a){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...F(a)})}function JO(n,a){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...F(a)})}function FO(n,a){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...F(a)})}function IO(n,a){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...F(a)})}function WO(n,a){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...F(a)})}function ex(n,a){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...F(a)})}function tx(n,a){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...F(a)})}function nx(n,a){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...F(a)})}function ax(n,a){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...F(a)})}function rx(n,a){return new n({type:"string",format:"date",check:"string_format",...F(a)})}function ix(n,a){return new n({type:"string",format:"time",check:"string_format",precision:null,...F(a)})}function ux(n,a){return new n({type:"string",format:"duration",check:"string_format",...F(a)})}function lx(n,a){return new n({type:"number",checks:[],...F(a)})}function sx(n,a){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...F(a)})}function ox(n,a){return new n({type:"boolean",...F(a)})}function cx(n,a){return new n({type:"null",...F(a)})}function fx(n){return new n({type:"unknown"})}function dx(n,a){return new n({type:"never",...F(a)})}function Gm(n,a){return new gv({check:"less_than",...F(a),value:n,inclusive:!1})}function oc(n,a){return new gv({check:"less_than",...F(a),value:n,inclusive:!0})}function Ym(n,a){return new bv({check:"greater_than",...F(a),value:n,inclusive:!1})}function cc(n,a){return new bv({check:"greater_than",...F(a),value:n,inclusive:!0})}function Vm(n,a){return new z2({check:"multiple_of",...F(a),value:n})}function Tv(n,a){return new T2({check:"max_length",...F(a),maximum:n})}function gl(n,a){return new w2({check:"min_length",...F(a),minimum:n})}function wv(n,a){return new A2({check:"length_equals",...F(a),length:n})}function hx(n,a){return new j2({check:"string_format",format:"regex",...F(a),pattern:n})}function px(n){return new M2({check:"string_format",format:"lowercase",...F(n)})}function mx(n){return new C2({check:"string_format",format:"uppercase",...F(n)})}function yx(n,a){return new R2({check:"string_format",format:"includes",...F(a),includes:n})}function vx(n,a){return new D2({check:"string_format",format:"starts_with",...F(a),prefix:n})}function gx(n,a){return new N2({check:"string_format",format:"ends_with",...F(a),suffix:n})}function zr(n){return new U2({check:"overwrite",tx:n})}function bx(n){return zr(a=>a.normalize(n))}function _x(){return zr(n=>n.trim())}function Sx(){return zr(n=>n.toLowerCase())}function Ox(){return zr(n=>n.toUpperCase())}function xx(){return zr(n=>A1(n))}function zx(n,a,u){return new n({type:"array",element:a,...F(u)})}function Ex(n,a,u){const l=F(u);return l.abort??(l.abort=!0),new n({type:"custom",check:"custom",fn:a,...l})}function Tx(n,a,u){return new n({type:"custom",check:"custom",fn:a,...F(u)})}function wx(n){const a=Ax(u=>(u.addIssue=l=>{if(typeof l=="string")u.issues.push(Di(l,u.value,a._zod.def));else{const s=l;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=u.value),s.inst??(s.inst=a),s.continue??(s.continue=!a._zod.def.abort),u.issues.push(Di(s))}},n(u.value,u)));return a}function Ax(n,a){const u=new Et({check:"custom",...F(a)});return u._zod.check=n,u}function bl(n){let a=n?.target??"draft-2020-12";return a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),{processors:n.processors??{},metadataRegistry:n?.metadata??xi,target:a,unrepresentable:n?.unrepresentable??"throw",override:n?.override??(()=>{}),io:n?.io??"output",counter:0,seen:new Map,cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0}}function Qe(n,a,u={path:[],schemaPath:[]}){var l;const s=n._zod.def,f=a.seen.get(n);if(f)return f.count++,u.schemaPath.includes(n)&&(f.cycle=u.path),f.schema;const d={schema:{},count:1,cycle:void 0,path:u.path};a.seen.set(n,d);const h=n._zod.toJSONSchema?.();if(h)d.schema=h;else{const g={...u,schemaPath:[...u.schemaPath,n],path:u.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(a,d.schema,g);else{const w=d.schema,Q=a.processors[s.type];if(!Q)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);Q(n,a,w,g)}const O=n._zod.parent;O&&(d.ref||(d.ref=O),Qe(O,a,g),a.seen.get(O).isParent=!0)}const m=a.metadataRegistry.get(n);return m&&Object.assign(d.schema,m),a.io==="input"&&yt(n)&&(delete d.schema.examples,delete d.schema.default),a.io==="input"&&d.schema._prefault&&((l=d.schema).default??(l.default=d.schema._prefault)),delete d.schema._prefault,a.seen.get(n).schema}function _l(n,a){const u=n.seen.get(a);if(!u)throw new Error("Unprocessed schema. This is a bug in Zod.");const l=new Map;for(const d of n.seen.entries()){const h=n.metadataRegistry.get(d[0])?.id;if(h){const m=l.get(h);if(m&&m!==d[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);l.set(h,d[0])}}const s=d=>{const h=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const O=n.external.registry.get(d[0])?.id,w=n.external.uri??($=>$);if(O)return{ref:w(O)};const Q=d[1].defId??d[1].schema.id??`schema${n.counter++}`;return d[1].defId=Q,{defId:Q,ref:`${w("__shared")}#/${h}/${Q}`}}if(d[1]===u)return{ref:"#"};const y=`#/${h}/`,g=d[1].schema.id??`__schema${n.counter++}`;return{defId:g,ref:y+g}},f=d=>{if(d[1].schema.$ref)return;const h=d[1],{ref:m,defId:y}=s(d);h.def={...h.schema},y&&(h.defId=y);const g=h.schema;for(const O in g)delete g[O];g.$ref=m};if(n.cycles==="throw")for(const d of n.seen.entries()){const h=d[1];if(h.cycle)throw new Error(`Cycle detected: #/${h.cycle?.join("/")}/<root>
|
|
47
|
+
|
|
48
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of n.seen.entries()){const h=d[1];if(a===d[0]){f(d);continue}if(n.external){const y=n.external.registry.get(d[0])?.id;if(a!==d[0]&&y){f(d);continue}}if(n.metadataRegistry.get(d[0])?.id){f(d);continue}if(h.cycle){f(d);continue}if(h.count>1&&n.reused==="ref"){f(d);continue}}}function Sl(n,a){const u=n.seen.get(a);if(!u)throw new Error("Unprocessed schema. This is a bug in Zod.");const l=d=>{const h=n.seen.get(d);if(h.ref===null)return;const m=h.def??h.schema,y={...m},g=h.ref;if(h.ref=null,g){l(g);const w=n.seen.get(g),Q=w.schema;if(Q.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(Q)):Object.assign(m,Q),Object.assign(m,y),d._zod.parent===g)for(const H in m)H==="$ref"||H==="allOf"||H in y||delete m[H];if(Q.$ref&&w.def)for(const H in m)H==="$ref"||H==="allOf"||H in w.def&&JSON.stringify(m[H])===JSON.stringify(w.def[H])&&delete m[H]}const O=d._zod.parent;if(O&&O!==g){l(O);const w=n.seen.get(O);if(w?.schema.$ref&&(m.$ref=w.schema.$ref,w.def))for(const Q in m)Q==="$ref"||Q==="allOf"||Q in w.def&&JSON.stringify(m[Q])===JSON.stringify(w.def[Q])&&delete m[Q]}n.override({zodSchema:d,jsonSchema:m,path:h.path??[]})};for(const d of[...n.seen.entries()].reverse())l(d[0]);const s={};if(n.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":n.target,n.external?.uri){const d=n.external.registry.get(a)?.id;if(!d)throw new Error("Schema is missing an `id` property");s.$id=n.external.uri(d)}Object.assign(s,u.def??u.schema);const f=n.external?.defs??{};for(const d of n.seen.entries()){const h=d[1];h.def&&h.defId&&(f[h.defId]=h.def)}n.external||Object.keys(f).length>0&&(n.target==="draft-2020-12"?s.$defs=f:s.definitions=f);try{const d=JSON.parse(JSON.stringify(s));return Object.defineProperty(d,"~standard",{value:{...a["~standard"],jsonSchema:{input:Ol(a,"input",n.processors),output:Ol(a,"output",n.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function yt(n,a){const u=a??{seen:new Set};if(u.seen.has(n))return!1;u.seen.add(n);const l=n._zod.def;if(l.type==="transform")return!0;if(l.type==="array")return yt(l.element,u);if(l.type==="set")return yt(l.valueType,u);if(l.type==="lazy")return yt(l.getter(),u);if(l.type==="promise"||l.type==="optional"||l.type==="nonoptional"||l.type==="nullable"||l.type==="readonly"||l.type==="default"||l.type==="prefault")return yt(l.innerType,u);if(l.type==="intersection")return yt(l.left,u)||yt(l.right,u);if(l.type==="record"||l.type==="map")return yt(l.keyType,u)||yt(l.valueType,u);if(l.type==="pipe")return yt(l.in,u)||yt(l.out,u);if(l.type==="object"){for(const s in l.shape)if(yt(l.shape[s],u))return!0;return!1}if(l.type==="union"){for(const s of l.options)if(yt(s,u))return!0;return!1}if(l.type==="tuple"){for(const s of l.items)if(yt(s,u))return!0;return!!(l.rest&&yt(l.rest,u))}return!1}const jx=(n,a={})=>u=>{const l=bl({...u,processors:a});return Qe(n,l),_l(l,n),Sl(l,n)},Ol=(n,a,u={})=>l=>{const{libraryOptions:s,target:f}=l??{},d=bl({...s??{},target:f,io:a,processors:u});return Qe(n,d),_l(d,n),Sl(d,n)},Mx={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Av=(n,a,u,l)=>{const s=u;s.type="string";const{minimum:f,maximum:d,format:h,patterns:m,contentEncoding:y}=n._zod.bag;if(typeof f=="number"&&(s.minLength=f),typeof d=="number"&&(s.maxLength=d),h&&(s.format=Mx[h]??h,s.format===""&&delete s.format,h==="time"&&delete s.format),y&&(s.contentEncoding=y),m&&m.size>0){const g=[...m];g.length===1?s.pattern=g[0].source:g.length>1&&(s.allOf=[...g.map(O=>({...a.target==="draft-07"||a.target==="draft-04"||a.target==="openapi-3.0"?{type:"string"}:{},pattern:O.source}))])}},jv=(n,a,u,l)=>{const s=u,{minimum:f,maximum:d,format:h,multipleOf:m,exclusiveMaximum:y,exclusiveMinimum:g}=n._zod.bag;typeof h=="string"&&h.includes("int")?s.type="integer":s.type="number",typeof g=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(s.minimum=g,s.exclusiveMinimum=!0):s.exclusiveMinimum=g),typeof f=="number"&&(s.minimum=f,typeof g=="number"&&a.target!=="draft-04"&&(g>=f?delete s.minimum:delete s.exclusiveMinimum)),typeof y=="number"&&(a.target==="draft-04"||a.target==="openapi-3.0"?(s.maximum=y,s.exclusiveMaximum=!0):s.exclusiveMaximum=y),typeof d=="number"&&(s.maximum=d,typeof y=="number"&&a.target!=="draft-04"&&(y<=d?delete s.maximum:delete s.exclusiveMaximum)),typeof m=="number"&&(s.multipleOf=m)},Mv=(n,a,u,l)=>{u.type="boolean"},Cx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Rx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Cv=(n,a,u,l)=>{a.target==="openapi-3.0"?(u.type="string",u.nullable=!0,u.enum=[null]):u.type="null"},Dx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Nx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Rv=(n,a,u,l)=>{u.not={}},Ux=(n,a,u,l)=>{},Dv=(n,a,u,l)=>{},Zx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Nv=(n,a,u,l)=>{const s=n._zod.def,f=lv(s.entries);f.every(d=>typeof d=="number")&&(u.type="number"),f.every(d=>typeof d=="string")&&(u.type="string"),u.enum=f},Uv=(n,a,u,l)=>{const s=n._zod.def,f=[];for(const d of s.values)if(d===void 0){if(a.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof d=="bigint"){if(a.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");f.push(Number(d))}else f.push(d);if(f.length!==0)if(f.length===1){const d=f[0];u.type=d===null?"null":typeof d,a.target==="draft-04"||a.target==="openapi-3.0"?u.enum=[d]:u.const=d}else f.every(d=>typeof d=="number")&&(u.type="number"),f.every(d=>typeof d=="string")&&(u.type="string"),f.every(d=>typeof d=="boolean")&&(u.type="boolean"),f.every(d=>d===null)&&(u.type="null"),u.enum=f},qx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Qx=(n,a,u,l)=>{const s=u,f=n._zod.pattern;if(!f)throw new Error("Pattern not found in template literal");s.type="string",s.pattern=f.source},kx=(n,a,u,l)=>{const s=u,f={type:"string",format:"binary",contentEncoding:"binary"},{minimum:d,maximum:h,mime:m}=n._zod.bag;d!==void 0&&(f.minLength=d),h!==void 0&&(f.maxLength=h),m?m.length===1?(f.contentMediaType=m[0],Object.assign(s,f)):(Object.assign(s,f),s.anyOf=m.map(y=>({contentMediaType:y}))):Object.assign(s,f)},Hx=(n,a,u,l)=>{u.type="boolean"},Zv=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Bx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},qv=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Lx=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},$x=(n,a,u,l)=>{if(a.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Qv=(n,a,u,l)=>{const s=u,f=n._zod.def,{minimum:d,maximum:h}=n._zod.bag;typeof d=="number"&&(s.minItems=d),typeof h=="number"&&(s.maxItems=h),s.type="array",s.items=Qe(f.element,a,{...l,path:[...l.path,"items"]})},kv=(n,a,u,l)=>{const s=u,f=n._zod.def;s.type="object",s.properties={};const d=f.shape;for(const y in d)s.properties[y]=Qe(d[y],a,{...l,path:[...l.path,"properties",y]});const h=new Set(Object.keys(d)),m=new Set([...h].filter(y=>{const g=f.shape[y]._zod;return a.io==="input"?g.optin===void 0:g.optout===void 0}));m.size>0&&(s.required=Array.from(m)),f.catchall?._zod.def.type==="never"?s.additionalProperties=!1:f.catchall?f.catchall&&(s.additionalProperties=Qe(f.catchall,a,{...l,path:[...l.path,"additionalProperties"]})):a.io==="output"&&(s.additionalProperties=!1)},Hv=(n,a,u,l)=>{const s=n._zod.def,f=s.inclusive===!1,d=s.options.map((h,m)=>Qe(h,a,{...l,path:[...l.path,f?"oneOf":"anyOf",m]}));f?u.oneOf=d:u.anyOf=d},Bv=(n,a,u,l)=>{const s=n._zod.def,f=Qe(s.left,a,{...l,path:[...l.path,"allOf",0]}),d=Qe(s.right,a,{...l,path:[...l.path,"allOf",1]}),h=y=>"allOf"in y&&Object.keys(y).length===1,m=[...h(f)?f.allOf:[f],...h(d)?d.allOf:[d]];u.allOf=m},Gx=(n,a,u,l)=>{const s=u,f=n._zod.def;s.type="array";const d=a.target==="draft-2020-12"?"prefixItems":"items",h=a.target==="draft-2020-12"||a.target==="openapi-3.0"?"items":"additionalItems",m=f.items.map((w,Q)=>Qe(w,a,{...l,path:[...l.path,d,Q]})),y=f.rest?Qe(f.rest,a,{...l,path:[...l.path,h,...a.target==="openapi-3.0"?[f.items.length]:[]]}):null;a.target==="draft-2020-12"?(s.prefixItems=m,y&&(s.items=y)):a.target==="openapi-3.0"?(s.items={anyOf:m},y&&s.items.anyOf.push(y),s.minItems=m.length,y||(s.maxItems=m.length)):(s.items=m,y&&(s.additionalItems=y));const{minimum:g,maximum:O}=n._zod.bag;typeof g=="number"&&(s.minItems=g),typeof O=="number"&&(s.maxItems=O)},Lv=(n,a,u,l)=>{const s=u,f=n._zod.def;s.type="object";const d=f.keyType,m=d._zod.bag?.patterns;if(f.mode==="loose"&&m&&m.size>0){const g=Qe(f.valueType,a,{...l,path:[...l.path,"patternProperties","*"]});s.patternProperties={};for(const O of m)s.patternProperties[O.source]=g}else(a.target==="draft-07"||a.target==="draft-2020-12")&&(s.propertyNames=Qe(f.keyType,a,{...l,path:[...l.path,"propertyNames"]})),s.additionalProperties=Qe(f.valueType,a,{...l,path:[...l.path,"additionalProperties"]});const y=d._zod.values;if(y){const g=[...y].filter(O=>typeof O=="string"||typeof O=="number");g.length>0&&(s.required=g)}},$v=(n,a,u,l)=>{const s=n._zod.def,f=Qe(s.innerType,a,l),d=a.seen.get(n);a.target==="openapi-3.0"?(d.ref=s.innerType,u.nullable=!0):u.anyOf=[f,{type:"null"}]},Gv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType},Yv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType,u.default=JSON.parse(JSON.stringify(s.defaultValue))},Vv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType,a.io==="input"&&(u._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},Kv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType;let d;try{d=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}u.default=d},Xv=(n,a,u,l)=>{const s=n._zod.def,f=a.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;Qe(f,a,l);const d=a.seen.get(n);d.ref=f},Pv=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType,u.readOnly=!0},Yx=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType},Jc=(n,a,u,l)=>{const s=n._zod.def;Qe(s.innerType,a,l);const f=a.seen.get(n);f.ref=s.innerType},Jv=(n,a,u,l)=>{const s=n._zod.innerType;Qe(s,a,l);const f=a.seen.get(n);f.ref=s},Km={string:Av,number:jv,boolean:Mv,bigint:Cx,symbol:Rx,null:Cv,undefined:Dx,void:Nx,never:Rv,any:Ux,unknown:Dv,date:Zx,enum:Nv,literal:Uv,nan:qx,template_literal:Qx,file:kx,success:Hx,custom:Zv,function:Bx,transform:qv,map:Lx,set:$x,array:Qv,object:kv,union:Hv,intersection:Bv,tuple:Gx,record:Lv,nullable:$v,nonoptional:Gv,default:Yv,prefault:Vv,catch:Kv,pipe:Xv,readonly:Pv,promise:Yx,optional:Jc,lazy:Jv};function qE(n,a){if("_idmap"in n){const l=n,s=bl({...a,processors:Km}),f={};for(const m of l._idmap.entries()){const[y,g]=m;Qe(g,s)}const d={},h={registry:l,uri:a?.uri,defs:f};s.external=h;for(const m of l._idmap.entries()){const[y,g]=m;_l(s,g),d[y]=Sl(s,g)}if(Object.keys(f).length>0){const m=s.target==="draft-2020-12"?"$defs":"definitions";d.__shared={[m]:f}}return{schemas:d}}const u=bl({...a,processors:Km});return Qe(n,u),_l(u,n),Sl(u,n)}const Vx=D("ZodISODateTime",(n,a)=>{P2.init(n,a),Ye.init(n,a)});function Kx(n){return ax(Vx,n)}const Xx=D("ZodISODate",(n,a)=>{J2.init(n,a),Ye.init(n,a)});function Px(n){return rx(Xx,n)}const Jx=D("ZodISOTime",(n,a)=>{F2.init(n,a),Ye.init(n,a)});function Fx(n){return ix(Jx,n)}const Ix=D("ZodISODuration",(n,a)=>{I2.init(n,a),Ye.init(n,a)});function Wx(n){return ux(Ix,n)}const ez=(n,a)=>{fv.init(n,a),n.name="ZodError",Object.defineProperties(n,{format:{value:u=>B1(n,u)},flatten:{value:u=>H1(n,u)},addIssue:{value:u=>{n.issues.push(u),n.message=JSON.stringify(n.issues,jc,2)}},addIssues:{value:u=>{n.issues.push(...u),n.message=JSON.stringify(n.issues,jc,2)}},isEmpty:{get(){return n.issues.length===0}}})},Xt=D("ZodError",ez,{Parent:Error}),tz=Kc(Xt),nz=Xc(Xt),az=Ml(Xt),rz=Cl(Xt),iz=G1(Xt),uz=Y1(Xt),lz=V1(Xt),sz=K1(Xt),oz=X1(Xt),cz=P1(Xt),fz=J1(Xt),dz=F1(Xt),Le=D("ZodType",(n,a)=>(Be.init(n,a),Object.assign(n["~standard"],{jsonSchema:{input:Ol(n,"input"),output:Ol(n,"output")}}),n.toJSONSchema=jx(n,{}),n.def=a,n.type=a.type,Object.defineProperty(n,"_def",{value:a}),n.check=(...u)=>n.clone(ra(a,{checks:[...a.checks??[],...u.map(l=>typeof l=="function"?{_zod:{check:l,def:{check:"custom"},onattach:[]}}:l)]}),{parent:!0}),n.with=n.check,n.clone=(u,l)=>ia(n,u,l),n.brand=()=>n,n.register=((u,l)=>(u.add(n,l),n)),n.parse=(u,l)=>tz(n,u,l,{callee:n.parse}),n.safeParse=(u,l)=>az(n,u,l),n.parseAsync=async(u,l)=>nz(n,u,l,{callee:n.parseAsync}),n.safeParseAsync=async(u,l)=>rz(n,u,l),n.spa=n.safeParseAsync,n.encode=(u,l)=>iz(n,u,l),n.decode=(u,l)=>uz(n,u,l),n.encodeAsync=async(u,l)=>lz(n,u,l),n.decodeAsync=async(u,l)=>sz(n,u,l),n.safeEncode=(u,l)=>oz(n,u,l),n.safeDecode=(u,l)=>cz(n,u,l),n.safeEncodeAsync=async(u,l)=>fz(n,u,l),n.safeDecodeAsync=async(u,l)=>dz(n,u,l),n.refine=(u,l)=>n.check(oE(u,l)),n.superRefine=u=>n.check(cE(u)),n.overwrite=u=>n.check(zr(u)),n.optional=()=>Im(n),n.exactOptional=()=>Jz(n),n.nullable=()=>Wm(n),n.nullish=()=>Im(Wm(n)),n.nonoptional=u=>nE(n,u),n.array=()=>eg(n),n.or=u=>Hz([n,u]),n.and=u=>$z(n,u),n.transform=u=>ey(n,Xz(u)),n.default=u=>Wz(n,u),n.prefault=u=>tE(n,u),n.catch=u=>rE(n,u),n.pipe=u=>ey(n,u),n.readonly=()=>lE(n),n.describe=u=>{const l=n.clone();return xi.add(l,{description:u}),l},Object.defineProperty(n,"description",{get(){return xi.get(n)?.description},configurable:!0}),n.meta=(...u)=>{if(u.length===0)return xi.get(n);const l=n.clone();return xi.add(l,u[0]),l},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=u=>u(n),n)),Fv=D("_ZodString",(n,a)=>{Pc.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(l,s,f)=>Av(n,l,s);const u=n._zod.bag;n.format=u.format??null,n.minLength=u.minimum??null,n.maxLength=u.maximum??null,n.regex=(...l)=>n.check(hx(...l)),n.includes=(...l)=>n.check(yx(...l)),n.startsWith=(...l)=>n.check(vx(...l)),n.endsWith=(...l)=>n.check(gx(...l)),n.min=(...l)=>n.check(gl(...l)),n.max=(...l)=>n.check(Tv(...l)),n.length=(...l)=>n.check(wv(...l)),n.nonempty=(...l)=>n.check(gl(1,...l)),n.lowercase=l=>n.check(px(l)),n.uppercase=l=>n.check(mx(l)),n.trim=()=>n.check(_x()),n.normalize=(...l)=>n.check(bx(...l)),n.toLowerCase=()=>n.check(Sx()),n.toUpperCase=()=>n.check(Ox()),n.slugify=()=>n.check(xx())}),hz=D("ZodString",(n,a)=>{Pc.init(n,a),Fv.init(n,a),n.email=u=>n.check(ZO(pz,u)),n.url=u=>n.check(BO(mz,u)),n.jwt=u=>n.check(nx(Mz,u)),n.emoji=u=>n.check(LO(yz,u)),n.guid=u=>n.check($m(Pm,u)),n.uuid=u=>n.check(qO(ll,u)),n.uuidv4=u=>n.check(QO(ll,u)),n.uuidv6=u=>n.check(kO(ll,u)),n.uuidv7=u=>n.check(HO(ll,u)),n.nanoid=u=>n.check($O(vz,u)),n.guid=u=>n.check($m(Pm,u)),n.cuid=u=>n.check(GO(gz,u)),n.cuid2=u=>n.check(YO(bz,u)),n.ulid=u=>n.check(VO(_z,u)),n.base64=u=>n.check(WO(wz,u)),n.base64url=u=>n.check(ex(Az,u)),n.xid=u=>n.check(KO(Sz,u)),n.ksuid=u=>n.check(XO(Oz,u)),n.ipv4=u=>n.check(PO(xz,u)),n.ipv6=u=>n.check(JO(zz,u)),n.cidrv4=u=>n.check(FO(Ez,u)),n.cidrv6=u=>n.check(IO(Tz,u)),n.e164=u=>n.check(tx(jz,u)),n.datetime=u=>n.check(Kx(u)),n.date=u=>n.check(Px(u)),n.time=u=>n.check(Fx(u)),n.duration=u=>n.check(Wx(u))});function Xm(n){return UO(hz,n)}const Ye=D("ZodStringFormat",(n,a)=>{Ge.init(n,a),Fv.init(n,a)}),pz=D("ZodEmail",(n,a)=>{H2.init(n,a),Ye.init(n,a)}),Pm=D("ZodGUID",(n,a)=>{Q2.init(n,a),Ye.init(n,a)}),ll=D("ZodUUID",(n,a)=>{k2.init(n,a),Ye.init(n,a)}),mz=D("ZodURL",(n,a)=>{B2.init(n,a),Ye.init(n,a)}),yz=D("ZodEmoji",(n,a)=>{L2.init(n,a),Ye.init(n,a)}),vz=D("ZodNanoID",(n,a)=>{$2.init(n,a),Ye.init(n,a)}),gz=D("ZodCUID",(n,a)=>{G2.init(n,a),Ye.init(n,a)}),bz=D("ZodCUID2",(n,a)=>{Y2.init(n,a),Ye.init(n,a)}),_z=D("ZodULID",(n,a)=>{V2.init(n,a),Ye.init(n,a)}),Sz=D("ZodXID",(n,a)=>{K2.init(n,a),Ye.init(n,a)}),Oz=D("ZodKSUID",(n,a)=>{X2.init(n,a),Ye.init(n,a)}),xz=D("ZodIPv4",(n,a)=>{W2.init(n,a),Ye.init(n,a)}),zz=D("ZodIPv6",(n,a)=>{eO.init(n,a),Ye.init(n,a)}),Ez=D("ZodCIDRv4",(n,a)=>{tO.init(n,a),Ye.init(n,a)}),Tz=D("ZodCIDRv6",(n,a)=>{nO.init(n,a),Ye.init(n,a)}),wz=D("ZodBase64",(n,a)=>{aO.init(n,a),Ye.init(n,a)}),Az=D("ZodBase64URL",(n,a)=>{iO.init(n,a),Ye.init(n,a)}),jz=D("ZodE164",(n,a)=>{uO.init(n,a),Ye.init(n,a)}),Mz=D("ZodJWT",(n,a)=>{sO.init(n,a),Ye.init(n,a)}),Iv=D("ZodNumber",(n,a)=>{Sv.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(l,s,f)=>jv(n,l,s),n.gt=(l,s)=>n.check(Ym(l,s)),n.gte=(l,s)=>n.check(cc(l,s)),n.min=(l,s)=>n.check(cc(l,s)),n.lt=(l,s)=>n.check(Gm(l,s)),n.lte=(l,s)=>n.check(oc(l,s)),n.max=(l,s)=>n.check(oc(l,s)),n.int=l=>n.check(Jm(l)),n.safe=l=>n.check(Jm(l)),n.positive=l=>n.check(Ym(0,l)),n.nonnegative=l=>n.check(cc(0,l)),n.negative=l=>n.check(Gm(0,l)),n.nonpositive=l=>n.check(oc(0,l)),n.multipleOf=(l,s)=>n.check(Vm(l,s)),n.step=(l,s)=>n.check(Vm(l,s)),n.finite=()=>n;const u=n._zod.bag;n.minValue=Math.max(u.minimum??Number.NEGATIVE_INFINITY,u.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(u.maximum??Number.POSITIVE_INFINITY,u.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(u.format??"").includes("int")||Number.isSafeInteger(u.multipleOf??.5),n.isFinite=!0,n.format=u.format??null});function Cz(n){return lx(Iv,n)}const Rz=D("ZodNumberFormat",(n,a)=>{oO.init(n,a),Iv.init(n,a)});function Jm(n){return sx(Rz,n)}const Dz=D("ZodBoolean",(n,a)=>{cO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Mv(n,u,l)});function QE(n){return ox(Dz,n)}const Nz=D("ZodNull",(n,a)=>{fO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Cv(n,u,l)});function kE(n){return cx(Nz,n)}const Uz=D("ZodUnknown",(n,a)=>{dO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Dv()});function Cc(){return fx(Uz)}const Zz=D("ZodNever",(n,a)=>{hO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Rv(n,u,l)});function Wv(n){return dx(Zz,n)}const qz=D("ZodArray",(n,a)=>{pO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Qv(n,u,l,s),n.element=a.element,n.min=(u,l)=>n.check(gl(u,l)),n.nonempty=u=>n.check(gl(1,u)),n.max=(u,l)=>n.check(Tv(u,l)),n.length=(u,l)=>n.check(wv(u,l)),n.unwrap=()=>n.element});function eg(n,a){return zx(qz,n,a)}const Fc=D("ZodObject",(n,a)=>{yO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>kv(n,u,l,s),xe(n,"shape",()=>a.shape),n.keyof=()=>Yz(Object.keys(n._zod.def.shape)),n.catchall=u=>n.clone({...n._zod.def,catchall:u}),n.passthrough=()=>n.clone({...n._zod.def,catchall:Cc()}),n.loose=()=>n.clone({...n._zod.def,catchall:Cc()}),n.strict=()=>n.clone({...n._zod.def,catchall:Wv()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=u=>U1(n,u),n.safeExtend=u=>Z1(n,u),n.merge=u=>q1(n,u),n.pick=u=>D1(n,u),n.omit=u=>N1(n,u),n.partial=(...u)=>Q1(ng,n,u[0]),n.required=(...u)=>k1(ag,n,u[0])});function Qz(n,a){const u={type:"object",shape:n??{},...F(a)};return new Fc(u)}function HE(n,a){return new Fc({type:"object",shape:n,catchall:Wv(),...F(a)})}function kz(n,a){return new Fc({type:"object",shape:n,catchall:Cc(),...F(a)})}const tg=D("ZodUnion",(n,a)=>{zv.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Hv(n,u,l,s),n.options=a.options});function Hz(n,a){return new tg({type:"union",options:n,...F(a)})}const Bz=D("ZodDiscriminatedUnion",(n,a)=>{tg.init(n,a),vO.init(n,a)});function BE(n,a,u){return new Bz({type:"union",options:a,discriminator:n,...F(u)})}const Lz=D("ZodIntersection",(n,a)=>{gO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Bv(n,u,l,s)});function $z(n,a){return new Lz({type:"intersection",left:n,right:a})}const Gz=D("ZodRecord",(n,a)=>{bO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Lv(n,u,l,s),n.keyType=a.keyType,n.valueType=a.valueType});function LE(n,a,u){return new Gz({type:"record",keyType:n,valueType:a,...F(u)})}const Rc=D("ZodEnum",(n,a)=>{_O.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(l,s,f)=>Nv(n,l,s),n.enum=a.entries,n.options=Object.values(a.entries);const u=new Set(Object.keys(a.entries));n.extract=(l,s)=>{const f={};for(const d of l)if(u.has(d))f[d]=a.entries[d];else throw new Error(`Key ${d} not found in enum`);return new Rc({...a,checks:[],...F(s),entries:f})},n.exclude=(l,s)=>{const f={...a.entries};for(const d of l)if(u.has(d))delete f[d];else throw new Error(`Key ${d} not found in enum`);return new Rc({...a,checks:[],...F(s),entries:f})}});function Yz(n,a){const u=Array.isArray(n)?Object.fromEntries(n.map(l=>[l,l])):n;return new Rc({type:"enum",entries:u,...F(a)})}const Vz=D("ZodLiteral",(n,a)=>{SO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Uv(n,u,l),n.values=new Set(a.values),Object.defineProperty(n,"value",{get(){if(a.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return a.values[0]}})});function Fm(n,a){return new Vz({type:"literal",values:Array.isArray(n)?n:[n],...F(a)})}const Kz=D("ZodTransform",(n,a)=>{OO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>qv(n,u),n._zod.parse=(u,l)=>{if(l.direction==="backward")throw new iv(n.constructor.name);u.addIssue=f=>{if(typeof f=="string")u.issues.push(Di(f,u.value,a));else{const d=f;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=u.value),d.inst??(d.inst=n),u.issues.push(Di(d))}};const s=a.transform(u.value,u);return s instanceof Promise?s.then(f=>(u.value=f,u)):(u.value=s,u)}});function Xz(n){return new Kz({type:"transform",transform:n})}const ng=D("ZodOptional",(n,a)=>{Ev.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Jc(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function Im(n){return new ng({type:"optional",innerType:n})}const Pz=D("ZodExactOptional",(n,a)=>{xO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Jc(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function Jz(n){return new Pz({type:"optional",innerType:n})}const Fz=D("ZodNullable",(n,a)=>{zO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>$v(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function Wm(n){return new Fz({type:"nullable",innerType:n})}const Iz=D("ZodDefault",(n,a)=>{EO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Yv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function Wz(n,a){return new Iz({type:"default",innerType:n,get defaultValue(){return typeof a=="function"?a():ov(a)}})}const eE=D("ZodPrefault",(n,a)=>{TO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Vv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function tE(n,a){return new eE({type:"prefault",innerType:n,get defaultValue(){return typeof a=="function"?a():ov(a)}})}const ag=D("ZodNonOptional",(n,a)=>{wO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Gv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function nE(n,a){return new ag({type:"nonoptional",innerType:n,...F(a)})}const aE=D("ZodCatch",(n,a)=>{AO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Kv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function rE(n,a){return new aE({type:"catch",innerType:n,catchValue:typeof a=="function"?a:()=>a})}const iE=D("ZodPipe",(n,a)=>{jO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Xv(n,u,l,s),n.in=a.in,n.out=a.out});function ey(n,a){return new iE({type:"pipe",in:n,out:a})}const uE=D("ZodReadonly",(n,a)=>{MO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Pv(n,u,l,s),n.unwrap=()=>n._zod.def.innerType});function lE(n){return new uE({type:"readonly",innerType:n})}const sE=D("ZodLazy",(n,a)=>{CO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Jv(n,u,l,s),n.unwrap=()=>n._zod.def.getter()});function $E(n){return new sE({type:"lazy",getter:n})}const Ic=D("ZodCustom",(n,a)=>{RO.init(n,a),Le.init(n,a),n._zod.processJSONSchema=(u,l,s)=>Zv(n,u)});function GE(n,a){return Ex(Ic,n??(()=>!0),a)}function oE(n,a={}){return Tx(Ic,n,a)}function cE(n){return wx(n)}function YE(n,a={}){const u=new Ic({type:"custom",check:"custom",fn:l=>l instanceof n,abort:!0,...F(a)});return u._zod.bag.Class=n,u._zod.check=l=>{l.value instanceof n||l.issues.push({code:"invalid_type",expected:n.name,input:l.value,inst:u,path:[...u._zod.def.path??[]]})},u}const fE={CREATE_WIDGET:"create_widget",UPDATE_WIDGET:"update_widget",DELETE_WIDGET:"delete_widget",CREATE_MONITOR:"create_monitor",UPDATE_MONITOR:"update_monitor",DELETE_MONITOR:"delete_monitor",TOGGLE_MONITOR:"toggle_monitor",BEGIN_ANALYSIS:"begin_analysis"},VE=Object.fromEntries(Object.entries(fE).map(([n,a])=>[n,`tool-${a}`])),KE=Qz({v:Fm(1),kind:Fm("analysis"),sourceTitle:Xm().max(400),sourceCreatedAt:Cz().int().nonnegative(),parts:eg(kz({type:Xm()})).max(200)}),sl={dashboards:!1,monitors:!1},XE={paper:"#fafaf8",inkLight:"#444444",inkMuted:"#666666",inkFaint:"#9c9890",border:"#d4d2cd",success:"#2a7a4a"},Me={shell:"bg-[#fafaf8] text-[#2c2c2c] font-sans",sidebar:"bg-[#f7f6f3] border-r border-[#d4d2cd] font-sans",sidebarLogo:"text-[#2b5ea7]",sidebarSubtitle:"text-[#666666]",navActive:"text-[#2b5ea7] bg-[#eaf0f8] border-l-2 border-[#2b5ea7]",navInactive:"text-[#666666] hover:bg-[#eeece7] hover:text-[#2b5ea7] border-l-2 border-transparent",sidebarFooter:"border-t border-[#d4d2cd] text-[#666666]",page:"p-6 space-y-6 bg-[#fafaf8]",sectionTitle:"text-sm font-medium text-[#666666] mb-3 font-sans",card:"rounded bg-white border border-[#d4d2cd] p-6",cardTitle:"text-sm text-[#666666] font-sans",cardValue:"text-2xl font-bold text-[#2c2c2c] mt-1",tableContainer:"bg-white rounded border border-[#d4d2cd] overflow-auto max-h-[440px]",tableHeaderRow:"bg-[#f5f4f0]",tableHeaderCell:"px-4 py-3 text-left text-sm font-medium text-[#666666] uppercase tracking-wider font-sans",tableRow:"border-b border-[#e8e6e1] hover:bg-[#f5f4f0]/50",tableCell:"px-4 py-3 text-sm text-[#444444] max-w-[300px]",tableCellText:"line-clamp-2 cursor-default",badge:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium font-sans",badgeVariants:{info:"bg-[#2b5ea7]/10 text-[#2b5ea7]"},spinner:"border-[#e8e6e1] border-t-[#2b5ea7]",statusLabel:"text-sm text-[#666666]",statusDot:{connected:"bg-[#2a7a4a]",disconnected:"bg-[#b33a2a]",checking:"bg-[#a07020] animate-pulse"},input:"w-full bg-white border border-[#d4d2cd] rounded px-3 py-2 text-sm text-[#2c2c2c] placeholder-[#9c9890] focus:outline-none focus:border-[#2b5ea7] font-sans",primaryBtn:"px-4 py-1.5 text-sm bg-[#2b5ea7] hover:bg-[#234d8a] text-white rounded transition-colors disabled:opacity-50 disabled:cursor-not-allowed font-sans",secondaryBtn:"px-4 py-1.5 text-sm bg-[#f5f4f0] hover:bg-[#eeece7] text-[#666666] rounded transition-colors disabled:opacity-50 font-sans",dangerBtn:"px-4 py-1.5 text-sm bg-[#b33a2a]/10 hover:bg-[#b33a2a]/20 text-[#b33a2a] rounded transition-colors disabled:opacity-50 ml-auto font-sans",outlineBtn:"px-2.5 py-1 text-xs font-medium border border-[#2b5ea7] text-[#2b5ea7] rounded hover:bg-[#2b5ea7] hover:text-white transition-colors disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent disabled:hover:text-[#2b5ea7] font-sans",successText:"text-sm text-[#2a7a4a] font-sans",errorText:"text-sm text-[#b33a2a] font-sans",warnText:"text-xs text-[#a07020] font-sans",maskedKey:"text-xs text-[#666666] font-mono",chatContainer:"flex flex-col h-full bg-[#fafaf8] font-serif",chatUserLabel:"text-[10px] uppercase tracking-[0.15em] text-[#666666] mb-2 font-sans font-medium",chatAssistantLabel:"text-[10px] uppercase tracking-[0.15em] text-[#2b5ea7] mb-2 font-sans font-medium",chatUserMessage:"text-[#2c2c2c] text-base leading-[1.8] [overflow-wrap:break-word]",chatAssistantMessage:"text-[#444444] text-base leading-[1.8] [overflow-wrap:break-word]",chatSeparator:"my-6 border-b border-[#e8e6e1]",chatInputArea:"px-10 py-5 bg-white border-t border-[#d4d2cd]",chatInput:"flex-1 bg-white border border-[#d4d2cd] rounded px-4 py-2.5 text-base text-[#2c2c2c] placeholder-[#9c9890] focus:outline-none focus:border-[#2b5ea7] disabled:opacity-50 font-serif resize-none overflow-y-auto max-h-40",chatButton:"px-5 py-2.5 text-sm bg-[#2b5ea7] text-white font-sans font-medium rounded hover:bg-[#234d8a] disabled:opacity-50 disabled:cursor-not-allowed",chatThinking:"text-[#2b5ea7] text-base italic",chatEmptyState:"text-[#666666] text-base italic font-serif",toolLabel:"text-[9px] uppercase tracking-[0.15em] text-[#2b5ea7] font-sans font-semibold mb-2",toolLoading:"text-sm italic text-[#2b5ea7] font-sans",toolQueryToggle:"text-[11px] text-[#666666] font-mono cursor-pointer select-none font-sans",toolQueryCode:"mt-1 px-3 py-2 text-[12px] font-mono text-[#444444] bg-[#f5f4f0] rounded border border-[#d4d2cd] whitespace-pre-wrap",chatMessageCard:"bg-[#fafaf8] p-4 rounded",chatMessageActions:"absolute right-0 top-0 flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",chatActionButton:"p-1 rounded text-[#9c9890] hover:text-[#2b5ea7] hover:bg-[#eaf0f8] transition-colors",chatEditTextarea:"w-full bg-white border border-[#2b5ea7] rounded px-3 py-2 text-base text-[#2c2c2c] focus:outline-none font-serif leading-[1.8] resize-none",chatEditActions:"flex items-center gap-2 mt-2",chatEditSave:"px-3 py-1 text-xs bg-[#2b5ea7] hover:bg-[#234d8a] text-white rounded transition-colors font-sans",chatEditCancel:"px-3 py-1 text-xs bg-[#f5f4f0] hover:bg-[#eeece7] text-[#666666] rounded transition-colors font-sans",chatStopButton:"px-5 py-2.5 text-sm bg-[#f5f4f0] hover:bg-[#eeece7] text-[#666666] font-sans font-medium rounded transition-colors",chatContinueButton:"px-4 py-2 text-sm bg-[#f5f4f0] hover:bg-[#eeece7] text-[#2b5ea7] font-sans font-medium rounded transition-colors border border-[#d4d2cd]",resultListItem:"px-4 py-2 text-sm text-[#444444] border-b border-[#e8e6e1] last:border-b-0",resultErrorMessage:"text-sm text-[#b33a2a] font-sans bg-[#b33a2a]/5 border border-[#b33a2a]/20 rounded px-4 py-3 my-2",analysisContainer:"bg-[#eaf0f8] border border-[#2b5ea7]/20 rounded px-4 py-3 my-3",investigationContainer:"border-l-2 border-[#2a7a4a] pl-4 my-3",investigationLabel:"text-[9px] uppercase tracking-[0.15em] text-[#2a7a4a] font-sans font-semibold mb-2",investigationAccents:{newrelic:{container:"border-l-2 border-[#2a7a4a] pl-4 my-3",label:"text-[9px] uppercase tracking-[0.15em] text-[#2a7a4a] font-sans font-semibold mb-2"},posthog:{container:"border-l-2 border-[#f7a501] pl-4 my-3",label:"text-[9px] uppercase tracking-[0.15em] text-[#f7a501] font-sans font-semibold mb-2"},gcp:{container:"border-l-2 border-[#7c3aed] pl-4 my-3",label:"text-[9px] uppercase tracking-[0.15em] text-[#7c3aed] font-sans font-semibold mb-2"}},investigationTask:"text-xs text-[#9c9890] font-sans mb-2 italic",investigationThinking:"text-[#9c9890] py-2",analysisBlock:"text-sm text-[#444444] bg-[#f2f8f5] border border-[#c8e0d2] rounded px-4 py-3 my-2 leading-relaxed font-sans",summaryBlock:"text-sm text-[#2c2c2c] bg-[#eaf0f8] border border-[#2b5ea7]/20 rounded px-4 py-3 my-2 leading-relaxed font-sans",summaryLabel:"text-[9px] uppercase tracking-[0.15em] text-[#2b5ea7] font-sans font-semibold mb-1",chartContainer:"bg-white rounded border border-[#d4d2cd] p-4 my-2",settingsCard:"bg-white border border-[#d4d2cd] rounded p-4",dialogBackdrop:"fixed inset-0 z-50 bg-black/20",dialogCard:"fixed z-50 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white border border-[#d4d2cd] rounded-lg shadow-lg p-6 w-[340px] font-sans",modalCard:"fixed z-50 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white border border-[#d4d2cd] rounded-lg shadow-lg p-6 w-[480px] max-h-[85vh] overflow-y-auto font-sans",dialogTitle:"text-sm font-semibold text-[#2c2c2c] mb-2",dialogMessage:"text-sm text-[#666666] mb-5",sessionItem:"w-full flex items-center gap-2 pl-9 pr-4 py-1.5 text-xs text-[#666666] hover:bg-[#eeece7] hover:text-[#2b5ea7] transition-colors cursor-pointer group",sessionItemActive:"w-full flex items-center gap-2 pl-9 pr-4 py-1.5 text-xs text-[#2b5ea7] bg-[#eaf0f8] cursor-pointer group font-medium",sessionDeleteBtn:"ml-auto text-[#666666] hover:text-[#b33a2a] transition-colors text-[10px] shrink-0 opacity-0 group-hover:opacity-100",sessionNewBtn:"w-full flex items-center gap-2 pl-9 pr-3 py-1.5 text-xs text-[#666666] hover:bg-[#eeece7] hover:text-[#2b5ea7] transition-colors",panelChatUserMessage:"text-sm leading-relaxed text-[#2c2c2c] [overflow-wrap:break-word]",panelChatAssistantMessage:"text-sm leading-relaxed text-[#444444] [overflow-wrap:break-word]",panelChatEmptyState:"text-[#666666] text-sm italic font-sans",panelChatThinking:"text-[#666666] text-sm italic",panelChatSeparator:"my-3 border-b border-[#d4d2cd]",panelChatInputArea:"px-4 py-3 bg-white border-t border-[#d4d2cd]",panelChatTextarea:"flex-1 bg-white border border-[#d4d2cd] rounded px-3 py-2 text-sm text-[#2c2c2c] placeholder-[#9c9890] focus:outline-none focus:border-[#2b5ea7] disabled:opacity-50 font-sans resize-none overflow-y-auto max-h-24",chartColors:["#6b9fd4","#6bb88a","#d4806e","#d4b06b","#a488c4","#6bb8aa"],popoverWide:"absolute z-30 bg-[#faf8f4] border border-[#e8e3da] rounded-md shadow-lg py-2 px-3 w-72",popoverLabel:"text-[10px] uppercase tracking-wider text-[#9c9890] font-sans mb-2",popoverRow:"flex items-start gap-2 py-1 text-xs text-[#6b6560] font-sans",popoverItemRow:"flex items-center justify-between text-[11px] text-[#6b6560] font-sans py-0.5",popoverDivider:"border-t border-[#e8e3da] my-1",popoverFootnote:"text-[10px] text-[#9c9890] font-sans mt-1 pt-1 border-t border-[#e8e3da]",titleBar:"sticky top-0 z-20 bg-[#faf8f4] px-10 pt-4 pb-4 mb-2 border-b border-[#e8e3da]",titleText:"text-base font-serif font-medium text-[#2b5ea7] tracking-tight",metaLink:"text-xs text-[#666666] hover:text-[#2b5ea7] font-sans transition-colors",streamingDot:"inline-block w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse",tokenSummary:"text-[10px] text-[#9c9890] font-sans tracking-wide hover:text-[#6b6560] transition-colors cursor-default"};function dE({sidebar:n,children:a}){return R.jsxs("div",{className:`flex h-screen ${Me.shell}`,children:[R.jsx("aside",{className:"w-52 flex-shrink-0 h-full",children:n}),R.jsx("main",{className:"flex-1 overflow-auto",children:a})]})}const Dc=[{provider:"google",modelId:"gemini-3.1-pro-preview",inputPrice:2,outputPrice:12,cacheReadMultiplier:.25,cacheWriteMultiplier:1},{provider:"google",modelId:"gemini-3-flash-preview",inputPrice:.5,outputPrice:3,cacheReadMultiplier:.25,cacheWriteMultiplier:1},{provider:"google",modelId:"gemini-3.1-flash-lite-preview",inputPrice:.25,outputPrice:1.5,cacheReadMultiplier:.25,cacheWriteMultiplier:1},{provider:"anthropic",modelId:"claude-haiku-4-5-20251001",inputPrice:.8,outputPrice:4,cacheReadMultiplier:.1,cacheWriteMultiplier:1.25}],hE=Object.fromEntries(Dc.map(n=>[n.modelId,{input:n.inputPrice,output:n.outputPrice,cacheRead:n.cacheReadMultiplier,cacheWrite:n.cacheWriteMultiplier}]));function PE(n,a,u,l=0,s=0){if(!n)return 0;const f=hE[n];return f?((a-l)*f.input+l*f.input*f.cacheRead+s*f.input*f.cacheWrite+u*f.output)/1e6:0}function JE(n){return n<.01?`$${n.toFixed(4)}`:`$${n.toFixed(2)}`}function FE(){const n=L.useRef(null),a=L.useRef(null),u=L.useRef(!0),[l,s]=L.useState(!0),f=L.useCallback(m=>{const y=n.current;y&&(u.current=!0,y.scrollTo({top:y.scrollHeight,behavior:m?.animation==="smooth"?"smooth":"instant"}))},[]),d=L.useCallback(m=>{const y=n.current;y&&(u.current=!1,y.scrollTo({top:0,behavior:m?.animation==="smooth"?"smooth":"instant"}))},[]),h=L.useCallback(m=>{m.deltaY<0&&(u.current=!1)},[]);return L.useEffect(()=>{const m=n.current;if(!m)return;const y=()=>{const g=m.scrollHeight-m.scrollTop-m.clientHeight<50;s(g),g&&(u.current=!0)};return m.addEventListener("scroll",y,{passive:!0}),()=>m.removeEventListener("scroll",y)},[]),L.useEffect(()=>{const m=a.current;if(!m)return;const y=new ResizeObserver(()=>{u.current&&f()});return y.observe(m),()=>y.disconnect()},[f]),{scrollRef:n,contentRef:a,isAtBottom:l,handleWheel:h,scrollToBottom:f,scrollToTop:d}}function IE(){const n=L.useRef(null),[a,u]=L.useState({width:0,height:0});return L.useEffect(()=>{const l=n.current;if(!l)return;const s=new ResizeObserver(f=>{const d=f[0]?.contentRect;d&&d.width>0&&u({width:d.width,height:d.height})});return s.observe(l),()=>s.disconnect()},[]),{ref:n,size:a}}function ty(n,a,u){const l=L.useRef(n);l.current=n,L.useEffect(()=>{if(!u)return;l.current();const s=setInterval(()=>{document.visibilityState==="visible"&&l.current()},a),f=()=>{document.visibilityState==="visible"&&l.current()};return document.addEventListener("visibilitychange",f),()=>{clearInterval(s),document.removeEventListener("visibilitychange",f)}},[u,a])}function pE(n){const[a,u]=L.useState(!1),[l,s]=L.useState(!1);return L.useEffect(()=>{const f=n.current;if(!f)return;const d=()=>{u(f.scrollTop>0),s(f.scrollTop+f.clientHeight<f.scrollHeight-1)};d(),f.addEventListener("scroll",d,{passive:!0});const h=new ResizeObserver(d);return h.observe(f),()=>{f.removeEventListener("scroll",d),h.disconnect()}},[n]),{showTopFade:a,showBottomFade:l}}function mE(){const{data:n}=dt.settings.getApiKey.useQuery("anthropic"),{data:a}=dt.settings.getApiKey.useQuery("google");return L.useMemo(()=>{const u=new Set;return n&&u.add("anthropic"),a&&u.add("google"),u},[n,a])}function WE(){const n=mE();return L.useMemo(()=>{const a=Dc.filter(u=>n.has(u.provider));return a.length>0?a:Dc},[n])}function eT(n,a){const u=L.useRef(a);L.useEffect(()=>{u.current=a}),L.useEffect(()=>{function l(s){n.current&&!n.current.contains(s.target)&&u.current()}return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[n])}const Fn={sessionStaleTimeMs:3e4,activeStreamPollingMs:5e3,monitorPollingMs:6e4,updateCheckStaleTimeMs:300*1e3,updateRestartProbeDelayMs:1500,updateRestartPollMs:1e3,updateRestartMaxWaitMs:6e4,chatThrottleMs:50,maxSseErrors:3};function ol({children:n}){const a=L.useRef(null),{showTopFade:u,showBottomFade:l}=pE(a);return R.jsxs("div",{className:"relative",children:[R.jsx("div",{className:`absolute top-0 left-0 right-0 h-6 bg-gradient-to-b from-[#f7f6f3] to-transparent z-10 pointer-events-none transition-opacity ${u?"opacity-100":"opacity-0"}`}),R.jsx("div",{ref:a,className:"max-h-[300px] overflow-y-auto scrollbar-none",children:n}),R.jsx("div",{className:`absolute bottom-0 left-0 right-0 h-6 bg-gradient-to-t from-[#f7f6f3] to-transparent z-10 pointer-events-none transition-opacity ${l?"opacity-100":"opacity-0"}`})]})}function yE({open:n,title:a,message:u,confirmLabel:l="Delete",cancelLabel:s="Cancel",confirmStyle:f="danger",onConfirm:d,onCancel:h}){const m=L.useRef(null);return L.useEffect(()=>{n&&m.current?.focus()},[n]),L.useEffect(()=>{if(!n)return;const y=g=>{g.key==="Escape"&&h()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[n,h]),n?R.jsxs(R.Fragment,{children:[R.jsx("div",{className:Me.dialogBackdrop,onClick:h}),R.jsxs("div",{className:Me.dialogCard,children:[R.jsx("div",{className:Me.dialogTitle,children:a}),R.jsx("div",{className:Me.dialogMessage,children:u}),R.jsxs("div",{className:"flex justify-end gap-2",children:[s!==null&&R.jsx("button",{onClick:h,className:Me.secondaryBtn,children:s}),R.jsx("button",{ref:m,onClick:d,className:f==="primary"?Me.primaryBtn:Me.dangerBtn,children:l})]})]})]}):null}function vE({open:n,onClose:a,children:u}){return L.useEffect(()=>{if(!n)return;const l=s=>{s.key==="Escape"&&a()};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[n,a]),n?R.jsxs(R.Fragment,{children:[R.jsx("div",{className:Me.dialogBackdrop,onClick:a}),R.jsx("div",{className:Me.modalCard,children:u})]}):null}const ny=n=>new Promise(a=>setTimeout(a,n));async function gE(){await ny(Fn.updateRestartProbeDelayMs);const n=Date.now()+Fn.updateRestartMaxWaitMs;for(;Date.now()<n;){try{if((await fetch("/api/trpc/update.check",{cache:"no-store"})).ok)break}catch{}await ny(Fn.updateRestartPollMs)}window.location.reload()}function ay({command:n}){return R.jsx("code",{className:"block mt-2 p-2 bg-[#1a1a1a] rounded font-mono text-xs text-[#e0e0e0]",children:n})}function bE({open:n,onClose:a}){const u=dt.update.check.useQuery(void 0,{staleTime:Fn.updateCheckStaleTimeMs}),[l,s]=L.useState(!1),[f,d]=L.useState(null),h=u.data,m=h?.canSelfUpdate===!0,y=h?.method==="npx"?"npx tracer-sh@latest":"npm install -g tracer-sh@latest",g=dt.update.perform.useMutation({onSuccess:w=>{w.ok?(s(!0),gE()):d(w.error??"Update failed.")},onError:w=>d(w.message)}),O=g.isPending||l;return R.jsxs(vE,{open:n,onClose:O?()=>{}:a,children:[R.jsx("div",{className:Me.dialogTitle,children:"Update Available"}),R.jsxs("div",{className:"text-sm text-[#666666] mb-4 space-y-1",children:[R.jsxs("p",{children:["Current version: ",R.jsx("span",{className:"font-mono",children:h?.currentVersion})]}),R.jsxs("p",{children:["Latest version: ",R.jsx("span",{className:"font-mono",children:h?.latestVersion})]})]}),l?R.jsx("div",{className:"text-sm text-[#666666] mb-4",children:R.jsx("p",{children:"Installed. Restarting Tracer — this page will reload automatically."})}):m?R.jsxs(R.Fragment,{children:[f&&R.jsxs("div",{className:"text-sm text-[#b3261e] mb-4",children:[R.jsxs("p",{children:["Update failed: ",f]}),R.jsx("p",{className:"mt-2 text-[#666666]",children:"You can update manually instead:"}),R.jsx(ay,{command:y})]}),R.jsxs("div",{className:"flex justify-end gap-2",children:[R.jsx("button",{onClick:a,className:Me.secondaryBtn,disabled:O,children:"Close"}),R.jsx("button",{onClick:()=>{d(null),g.mutate()},className:Me.primaryBtn,disabled:O,children:O?"Updating…":"Update now"})]})]}):R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:"text-sm text-[#666666] mb-4",children:[R.jsx("p",{children:h?.method==="npx"?"This instance runs via npx and can't update itself. Re-run:":"Run this command to update:"}),R.jsx(ay,{command:y})]}),R.jsx("div",{className:"flex justify-end",children:R.jsx("button",{onClick:a,className:Me.secondaryBtn,children:"Close"})})]})]})}const cl=({page:n})=>{const a={width:16,height:16,fill:"none",stroke:"currentColor",strokeWidth:1.5};switch(n){case"dashboard":return R.jsx("svg",{...a,viewBox:"0 0 16 16",children:R.jsx("rect",{x:"2",y:"2",width:"12",height:"12",rx:"1.5"})});case"debug":return R.jsx("svg",{...a,viewBox:"0 0 16 16",children:R.jsx("path",{d:"M8 1.5L14.5 8L8 14.5L1.5 8Z"})});case"monitors":return R.jsx("svg",{...a,viewBox:"0 0 16 16",children:R.jsx("circle",{cx:"8",cy:"8",r:"6"})});case"settings":return R.jsx("svg",{...a,viewBox:"0 0 16 16",children:R.jsx("path",{d:"M3 4.5h10M3 8h10M3 11.5h10"})})}},_E=[{page:"debug",label:"Debug"}];function SE({currentPage:n,onNavigate:a,currentSessionId:u,onSelectSession:l,onNewSession:s,currentDashboardId:f,onSelectDashboard:d,onNewDashboard:h}){const m=dt.sessions.list.useQuery(void 0,{staleTime:Fn.sessionStaleTimeMs}),y=dt.dashboards.list.useQuery(void 0,{enabled:sl.dashboards}),g=dt.monitorAlerts.activeCount.useQuery(void 0,{enabled:sl.monitors}),O=dt.sessions.activeCount.useQuery(),w=dt.useUtils(),Q=(O.data?.streaming??0)>0;ty(()=>{w.sessions.activeCount.invalidate(),n==="debug"&&w.sessions.list.invalidate()},Fn.activeStreamPollingMs,Q);const $=dt.monitors.shouldPoll.useQuery(void 0,{enabled:sl.monitors});ty(()=>{w.monitorAlerts.activeCount.invalidate(),w.monitors.shouldPoll.invalidate()},Fn.monitorPollingMs,($.data??!1)&&sl.monitors);const H=dt.sessions.markViewed.useMutation();L.useEffect(()=>{if(!u||n!=="debug"||!m.data)return;const x=m.data.find(Z=>Z.id===u);!x||x.status!=="done"||(w.sessions.list.setData(void 0,Z=>Z?.map(G=>G.id===u?{...G,status:"idle"}:G)),w.sessions.activeCount.setData(void 0,Z=>Z&&{...Z,done:Math.max(0,Z.done-1)}),H.mutate({id:u}))},[m.data,u,n]);const{regularSessions:le,importedSessions:se,apiSessions:Ce}=L.useMemo(()=>{const x=m.data??[],Z=x.filter(re=>re.kind!==Si.IMPORTED&&re.kind!==Si.API),G=x.filter(re=>re.kind===Si.IMPORTED),te=x.filter(re=>re.kind===Si.API);return{regularSessions:Z,importedSessions:G,apiSessions:te}},[m.data]),de=g.data??0,ve=n==="debug"&&m.data?m.data.filter(x=>x.status==="done"&&x.id!==u&&x.kind!==Si.API).length:O.data?.done??0,V=dt.sessions.delete.useMutation(),X=dt.dashboards.delete.useMutation(),[M,Y]=L.useState(null),[I,ae]=L.useState(!1),ne=dt.update.check.useQuery(void 0,{staleTime:Fn.updateCheckStaleTimeMs}),P=ne.data?.available===!0,he=(x,Z)=>{x.stopPropagation(),Y({type:"session",id:Z})},fe=(x,Z)=>{x.stopPropagation(),Y({type:"dashboard",id:Z})},ye=()=>{M&&(M.type==="session"?V.mutate({id:M.id},{onSuccess:()=>{w.sessions.list.invalidate(),u===M.id&&s()}}):X.mutate({id:M.id},{onSuccess:()=>{w.dashboards.list.invalidate(),f===M.id&&a("dashboard")}}),Y(null))};return R.jsxs("div",{className:`flex flex-col h-full ${Me.sidebar}`,children:[R.jsxs("div",{className:"p-6",children:[R.jsxs("h1",{className:`text-2xl font-bold ${Me.sidebarLogo} flex items-center gap-2`,children:[R.jsx("img",{src:"/logo.svg",alt:"",className:"w-6 h-6"}),"Tracer"]}),R.jsx("p",{className:`text-xs mt-1 ${Me.sidebarSubtitle}`,children:"Observability Platform"})]}),R.jsx("nav",{className:"flex-1 px-3 space-y-1 overflow-y-auto",children:_E.map(({page:x,label:Z})=>{const G=n===x;return R.jsxs("div",{children:[R.jsxs("button",{onClick:()=>a(x),className:`w-full flex items-center gap-3 px-3 py-2 rounded-sm text-sm transition-colors ${G?Me.navActive:Me.navInactive}`,children:[x==="monitors"&&de>0?R.jsxs("span",{className:"relative flex items-center justify-center w-5 shrink-0",children:[R.jsx(cl,{page:x}),R.jsx("span",{className:"absolute inset-0 flex items-center justify-center",style:{animation:"fill-up-down 4s ease-in-out infinite"},children:R.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",children:R.jsx("circle",{cx:"8",cy:"8",r:"6",fill:"#b33a2a",stroke:"none"})})})]}):x==="debug"&&ve>0?R.jsxs("span",{className:"relative flex items-center justify-center w-5 shrink-0",children:[R.jsx(cl,{page:x}),R.jsx("span",{className:"absolute inset-0 flex items-center justify-center",style:{animation:"fill-up-down 4s ease-in-out infinite"},children:R.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",children:R.jsx("path",{d:"M8 1.5L14.5 8L8 14.5L1.5 8Z",fill:"#2b5ea7",stroke:"none"})})})]}):R.jsx("span",{className:"w-5 flex items-center justify-center shrink-0",children:R.jsx(cl,{page:x})}),Z,x==="monitors"&&de>0&&R.jsx("span",{className:"ml-auto flex items-center gap-1.5",children:R.jsx("span",{className:"text-[10px] font-medium text-[#b33a2a]",children:de})})]}),x==="dashboard"&&n==="dashboard"&&R.jsxs("div",{className:"mt-1 space-y-0.5",children:[R.jsxs("button",{onClick:h,className:Me.sessionNewBtn,children:[R.jsx("span",{className:"text-[10px]",children:"+"}),"New dashboard"]}),R.jsx(ol,{children:y.data?.map(te=>R.jsxs("button",{onClick:()=>d(te.id),className:f===te.id?Me.sessionItemActive:Me.sessionItem,children:[R.jsx("span",{className:"truncate flex-1 text-left",children:te.title}),R.jsx("span",{onClick:re=>fe(re,te.id),className:Me.sessionDeleteBtn,children:"×"})]},te.id))})]}),x==="debug"&&(()=>{const te=re=>R.jsxs("button",{onClick:()=>l(re.id),className:u===re.id?Me.sessionItemActive:Me.sessionItem,children:[R.jsx("span",{className:`truncate flex-1 text-left ${(re.status==="streaming"||re.status==="done")&&re.id!==u?"text-[#2b5ea7] underline":""}`,title:re.title,children:re.title}),R.jsx("span",{onClick:_=>he(_,re.id),className:Me.sessionDeleteBtn,children:"×"})]},re.id);return R.jsxs("div",{className:"mt-1 space-y-0.5",children:[R.jsxs("button",{onClick:s,className:Me.sessionNewBtn,children:[R.jsx("span",{className:"text-[10px]",children:"+"}),"New chat"]}),R.jsx(ol,{children:le.map(te)}),se.length>0&&R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"text-[10px] uppercase tracking-wider text-[#9c9890]/60 px-3 pt-3 pb-1",children:"Imported"}),R.jsx(ol,{children:se.map(te)})]}),Ce.length>0&&R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"text-[10px] uppercase tracking-wider text-[#9c9890]/60 px-3 pt-3 pb-1",children:"API"}),R.jsx(ol,{children:Ce.map(te)})]})]})})()]},x)})}),R.jsx("div",{className:"px-3 pb-2",children:R.jsxs("button",{onClick:()=>a("settings"),className:`w-full flex items-center gap-3 px-3 py-2 rounded-sm text-sm transition-colors ${n==="settings"?Me.navActive:Me.navInactive}`,children:[R.jsx("span",{className:"w-5 flex items-center justify-center shrink-0",children:R.jsx(cl,{page:"settings"})}),"Settings"]})}),R.jsx("div",{className:`p-4 ${Me.sidebarFooter}`,children:R.jsxs("button",{onClick:()=>P&&ae(!0),className:`font-mono text-[10px] tracking-wider inline-flex items-center gap-1.5 ${P?"cursor-pointer hover:text-[#2b5ea7]":"cursor-default"}`,children:["v","0.2.3",P?R.jsx("span",{className:"w-2 h-2 rounded-full bg-[#2b5ea7] animate-pulse"}):ne.data&&!ne.isLoading?R.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"text-[#2a7a4a]",children:R.jsx("path",{d:"M2 5.5L4 7.5L8 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}):null]})}),R.jsx(bE,{open:I,onClose:()=>ae(!1)}),R.jsx(yE,{open:M!==null,title:M?.type==="session"?"Delete session":"Delete dashboard",message:M?.type==="session"?"Delete this chat session?":"Delete this dashboard and all its widgets?",onConfirm:ye,onCancel:()=>Y(null)})]})}const OE={sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12"};function xE({size:n="md",centered:a=!1}){const u=R.jsx("div",{className:`${OE[n]} animate-spin rounded-full border-2 ${Me.spinner}`});return a?R.jsx("div",{className:"flex items-center justify-center py-12",children:u}):u}const zE=L.lazy(()=>rv(()=>import("./mermaid-GHXKKRXX-mO3J4JDi.js").then(n=>n.D),__vite__mapDeps([0,1,2])).then(n=>({default:n.Debug}))),EE=L.lazy(()=>rv(()=>import("./Settings-V6P0atyS.js"),__vite__mapDeps([3,1])).then(n=>({default:n.Settings}))),TE=null,wE=null,AE=new Set(["debug","settings"]);function rg(){const n=window.location.pathname.replace(/^\/+/,"").split("/"),a=n[0]&&AE.has(n[0])?n[0]:"debug",u=a==="debug"&&n[1]?n[1]:null,l=a==="dashboard"&&n[1]?n[1]:null;return{page:a,sessionId:u,dashboardId:l}}let ry="",iy=rg();function jE(){const n=window.location.pathname;return n!==ry&&(ry=n,iy=rg()),iy}function ME(n){return window.addEventListener("popstate",n),()=>window.removeEventListener("popstate",n)}function Oi(n){window.history.pushState(null,"",n),window.dispatchEvent(new PopStateEvent("popstate"))}const CE=()=>R.jsx(xE,{size:"lg",centered:!0});function RE(){const{page:n,sessionId:a,dashboardId:u}=L.useSyncExternalStore(ME,jE),l=L.useCallback(m=>{Oi(m==="debug"?"/":`/${m}`)},[]),s=L.useCallback(m=>{Oi(`/debug/${m}`)},[]),f=L.useCallback(()=>{Oi("/debug")},[]),d=L.useCallback(m=>{Oi(`/dashboard/${m}`)},[]),h=L.useCallback(()=>{Oi(`/dashboard/${crypto.randomUUID()}`)},[]);return R.jsx(dE,{sidebar:R.jsx(SE,{currentPage:n,onNavigate:l,currentSessionId:a,onSelectSession:s,onNewSession:f,currentDashboardId:u,onSelectDashboard:d,onNewDashboard:h}),children:R.jsxs(L.Suspense,{fallback:R.jsx(CE,{}),children:[TE,n==="debug"&&R.jsx(zE,{sessionId:a,onSessionChange:s},a??"new"),wE,n==="settings"&&R.jsx(EE,{})]})})}function DE(){const[n]=L.useState(()=>new p_),[a]=L.useState(()=>dt.createClient({links:[dS({url:"/api/trpc",transformer:ze})]}));return R.jsx(dt.Provider,{client:a,queryClient:n,children:R.jsx(m_,{client:n,children:R.jsx(RE,{})})})}Bb.createRoot(document.getElementById("root")).render(R.jsx(L.StrictMode,{children:R.jsx(DE,{})}));export{Dc as A,rv as B,yE as C,Nc as D,IE as E,VE as F,Db as G,FE as H,ty as I,eT as J,PE as K,JE as L,vE as M,KE as N,Si as O,UE as P,Nb as R,xE as S,ZE as U,Fn as W,YE as _,Qb as a,Me as b,XE as c,WE as d,qE as e,Hz as f,Xm as g,GE as h,LE as i,R as j,Fm as k,$E as l,QE as m,Cc as n,Qz as o,BE as p,eg as q,L as r,rz as s,dt as t,mE as u,kE as v,Cz as w,HE as x,Yz as y,jb as z};
|