@agent-team-foundation/first-tree-hub 0.3.2 → 0.3.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/dist/{bootstrap-B9JsJR3Z.mjs → bootstrap-waEJYq3g.mjs} +1 -1
- package/dist/cli/index.mjs +4 -4
- package/dist/{core-vR5jYKHZ.mjs → core-Bl6djdPd.mjs} +13 -13
- package/dist/index.mjs +2 -2
- package/dist/web/assets/index-BHn3RVzY.js +272 -0
- package/dist/web/index.html +1 -1
- package/package.json +2 -2
- package/dist/web/assets/index-B1dQmYGJ.js +0 -234
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
var Sv=l=>{throw TypeError(l)};var td=(l,a,r)=>a.has(l)||Sv("Cannot "+r);var E=(l,a,r)=>(td(l,a,"read from private field"),r?r.call(l):a.get(l)),pe=(l,a,r)=>a.has(l)?Sv("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(l):a.set(l,r),te=(l,a,r,s)=>(td(l,a,"write to private field"),s?s.call(l,r):a.set(l,r),r),Te=(l,a,r)=>(td(l,a,"access private method"),r);var to=(l,a,r,s)=>({set _(o){te(l,a,o,r)},get _(){return E(l,a,s)}});function gS(l,a){for(var r=0;r<a.length;r++){const s=a[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in l)){const f=Object.getOwnPropertyDescriptor(s,o);f&&Object.defineProperty(l,o,f.get?f:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(o){if(o.ep)return;o.ep=!0;const f=r(o);fetch(o.href,f)}})();function Yg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var nd={exports:{}},ps={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var _v;function bS(){if(_v)return ps;_v=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:l,type:s,key:h,ref:o!==void 0?o:null,props:f}}return ps.Fragment=a,ps.jsx=r,ps.jsxs=r,ps}var Ev;function xS(){return Ev||(Ev=1,nd.exports=bS()),nd.exports}var d=xS(),ad={exports:{}},Se={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Cv;function SS(){if(Cv)return Se;Cv=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.iterator;function M(j){return j===null||typeof j!="object"?null:(j=C&&j[C]||j["@@iterator"],typeof j=="function"?j:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function z(j,Q,ee){this.props=j,this.context=Q,this.refs=A,this.updater=ee||L}z.prototype.isReactComponent={},z.prototype.setState=function(j,Q){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,Q,"setState")},z.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function F(){}F.prototype=z.prototype;function H(j,Q,ee){this.props=j,this.context=Q,this.refs=A,this.updater=ee||L}var V=H.prototype=new F;V.constructor=H,T(V,z.prototype),V.isPureReactComponent=!0;var X=Array.isArray;function K(){}var $={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function he(j,Q,ee){var le=ee.ref;return{$$typeof:l,type:j,key:Q,ref:le!==void 0?le:null,props:ee}}function Ne(j,Q){return he(j.type,Q,j.props)}function Ze(j){return typeof j=="object"&&j!==null&&j.$$typeof===l}function He(j){var Q={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(ee){return Q[ee]})}var pt=/\/+/g;function rt(j,Q){return typeof j=="object"&&j!==null&&j.key!=null?He(""+j.key):Q.toString(36)}function ze(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(K,K):(j.status="pending",j.then(function(Q){j.status==="pending"&&(j.status="fulfilled",j.value=Q)},function(Q){j.status==="pending"&&(j.status="rejected",j.reason=Q)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function U(j,Q,ee,le,ce){var me=typeof j;(me==="undefined"||me==="boolean")&&(j=null);var Ae=!1;if(j===null)Ae=!0;else switch(me){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(j.$$typeof){case l:case a:Ae=!0;break;case x:return Ae=j._init,U(Ae(j._payload),Q,ee,le,ce)}}if(Ae)return ce=ce(j),Ae=le===""?"."+rt(j,0):le,X(ce)?(ee="",Ae!=null&&(ee=Ae.replace(pt,"$&/")+"/"),U(ce,Q,ee,"",function(mn){return mn})):ce!=null&&(Ze(ce)&&(ce=Ne(ce,ee+(ce.key==null||j&&j.key===ce.key?"":(""+ce.key).replace(pt,"$&/")+"/")+Ae)),Q.push(ce)),1;Ae=0;var at=le===""?".":le+":";if(X(j))for(var _e=0;_e<j.length;_e++)le=j[_e],me=at+rt(le,_e),Ae+=U(le,Q,ee,me,ce);else if(_e=M(j),typeof _e=="function")for(j=_e.call(j),_e=0;!(le=j.next()).done;)le=le.value,me=at+rt(le,_e++),Ae+=U(le,Q,ee,me,ce);else if(me==="object"){if(typeof j.then=="function")return U(ze(j),Q,ee,le,ce);throw Q=String(j),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function J(j,Q,ee){if(j==null)return j;var le=[],ce=0;return U(j,le,"","",function(me){return Q.call(ee,me,ce++)}),le}function ne(j){if(j._status===-1){var Q=j._result;Q=Q(),Q.then(function(ee){(j._status===0||j._status===-1)&&(j._status=1,j._result=ee)},function(ee){(j._status===0||j._status===-1)&&(j._status=2,j._result=ee)}),j._status===-1&&(j._status=0,j._result=Q)}if(j._status===1)return j._result.default;throw j._result}var Ee=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},P={map:J,forEach:function(j,Q,ee){J(j,function(){Q.apply(this,arguments)},ee)},count:function(j){var Q=0;return J(j,function(){Q++}),Q},toArray:function(j){return J(j,function(Q){return Q})||[]},only:function(j){if(!Ze(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Se.Activity=S,Se.Children=P,Se.Component=z,Se.Fragment=r,Se.Profiler=o,Se.PureComponent=H,Se.StrictMode=s,Se.Suspense=v,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Se.__COMPILER_RUNTIME={__proto__:null,c:function(j){return $.H.useMemoCache(j)}},Se.cache=function(j){return function(){return j.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(j,Q,ee){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var le=T({},j.props),ce=j.key;if(Q!=null)for(me in Q.key!==void 0&&(ce=""+Q.key),Q)!G.call(Q,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&Q.ref===void 0||(le[me]=Q[me]);var me=arguments.length-2;if(me===1)le.children=ee;else if(1<me){for(var Ae=Array(me),at=0;at<me;at++)Ae[at]=arguments[at+2];le.children=Ae}return he(j.type,ce,le)},Se.createContext=function(j){return j={$$typeof:h,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:f,_context:j},j},Se.createElement=function(j,Q,ee){var le,ce={},me=null;if(Q!=null)for(le in Q.key!==void 0&&(me=""+Q.key),Q)G.call(Q,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ce[le]=Q[le]);var Ae=arguments.length-2;if(Ae===1)ce.children=ee;else if(1<Ae){for(var at=Array(Ae),_e=0;_e<Ae;_e++)at[_e]=arguments[_e+2];ce.children=at}if(j&&j.defaultProps)for(le in Ae=j.defaultProps,Ae)ce[le]===void 0&&(ce[le]=Ae[le]);return he(j,me,ce)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(j){return{$$typeof:m,render:j}},Se.isValidElement=Ze,Se.lazy=function(j){return{$$typeof:x,_payload:{_status:-1,_result:j},_init:ne}},Se.memo=function(j,Q){return{$$typeof:y,type:j,compare:Q===void 0?null:Q}},Se.startTransition=function(j){var Q=$.T,ee={};$.T=ee;try{var le=j(),ce=$.S;ce!==null&&ce(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(K,Ee)}catch(me){Ee(me)}finally{Q!==null&&ee.types!==null&&(Q.types=ee.types),$.T=Q}},Se.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},Se.use=function(j){return $.H.use(j)},Se.useActionState=function(j,Q,ee){return $.H.useActionState(j,Q,ee)},Se.useCallback=function(j,Q){return $.H.useCallback(j,Q)},Se.useContext=function(j){return $.H.useContext(j)},Se.useDebugValue=function(){},Se.useDeferredValue=function(j,Q){return $.H.useDeferredValue(j,Q)},Se.useEffect=function(j,Q){return $.H.useEffect(j,Q)},Se.useEffectEvent=function(j){return $.H.useEffectEvent(j)},Se.useId=function(){return $.H.useId()},Se.useImperativeHandle=function(j,Q,ee){return $.H.useImperativeHandle(j,Q,ee)},Se.useInsertionEffect=function(j,Q){return $.H.useInsertionEffect(j,Q)},Se.useLayoutEffect=function(j,Q){return $.H.useLayoutEffect(j,Q)},Se.useMemo=function(j,Q){return $.H.useMemo(j,Q)},Se.useOptimistic=function(j,Q){return $.H.useOptimistic(j,Q)},Se.useReducer=function(j,Q,ee){return $.H.useReducer(j,Q,ee)},Se.useRef=function(j){return $.H.useRef(j)},Se.useState=function(j){return $.H.useState(j)},Se.useSyncExternalStore=function(j,Q,ee){return $.H.useSyncExternalStore(j,Q,ee)},Se.useTransition=function(){return $.H.useTransition()},Se.version="19.2.4",Se}var Nv;function Id(){return Nv||(Nv=1,ad.exports=SS()),ad.exports}var b=Id();const _S=Yg(b),Pd=gS({__proto__:null,default:_S},[b]);var ld={exports:{}},ys={},id={exports:{}},rd={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var jv;function ES(){return jv||(jv=1,(function(l){function a(U,J){var ne=U.length;U.push(J);e:for(;0<ne;){var Ee=ne-1>>>1,P=U[Ee];if(0<o(P,J))U[Ee]=J,U[ne]=P,ne=Ee;else break e}}function r(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var J=U[0],ne=U.pop();if(ne!==J){U[0]=ne;e:for(var Ee=0,P=U.length,j=P>>>1;Ee<j;){var Q=2*(Ee+1)-1,ee=U[Q],le=Q+1,ce=U[le];if(0>o(ee,ne))le<P&&0>o(ce,ee)?(U[Ee]=ce,U[le]=ne,Ee=le):(U[Ee]=ee,U[Q]=ne,Ee=Q);else if(le<P&&0>o(ce,ne))U[Ee]=ce,U[le]=ne,Ee=le;else break e}}return J}function o(U,J){var ne=U.sortIndex-J.sortIndex;return ne!==0?ne:U.id-J.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();l.unstable_now=function(){return h.now()-m}}var v=[],y=[],x=1,S=null,C=3,M=!1,L=!1,T=!1,A=!1,z=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function V(U){for(var J=r(y);J!==null;){if(J.callback===null)s(y);else if(J.startTime<=U)s(y),J.sortIndex=J.expirationTime,a(v,J);else break;J=r(y)}}function X(U){if(T=!1,V(U),!L)if(r(v)!==null)L=!0,K||(K=!0,He());else{var J=r(y);J!==null&&ze(X,J.startTime-U)}}var K=!1,$=-1,G=5,he=-1;function Ne(){return A?!0:!(l.unstable_now()-he<G)}function Ze(){if(A=!1,K){var U=l.unstable_now();he=U;var J=!0;try{e:{L=!1,T&&(T=!1,F($),$=-1),M=!0;var ne=C;try{t:{for(V(U),S=r(v);S!==null&&!(S.expirationTime>U&&Ne());){var Ee=S.callback;if(typeof Ee=="function"){S.callback=null,C=S.priorityLevel;var P=Ee(S.expirationTime<=U);if(U=l.unstable_now(),typeof P=="function"){S.callback=P,V(U),J=!0;break t}S===r(v)&&s(v),V(U)}else s(v);S=r(v)}if(S!==null)J=!0;else{var j=r(y);j!==null&&ze(X,j.startTime-U),J=!1}}break e}finally{S=null,C=ne,M=!1}J=void 0}}finally{J?He():K=!1}}}var He;if(typeof H=="function")He=function(){H(Ze)};else if(typeof MessageChannel<"u"){var pt=new MessageChannel,rt=pt.port2;pt.port1.onmessage=Ze,He=function(){rt.postMessage(null)}}else He=function(){z(Ze,0)};function ze(U,J){$=z(function(){U(l.unstable_now())},J)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(U){U.callback=null},l.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return C},l.unstable_next=function(U){switch(C){case 1:case 2:case 3:var J=3;break;default:J=C}var ne=C;C=J;try{return U()}finally{C=ne}},l.unstable_requestPaint=function(){A=!0},l.unstable_runWithPriority=function(U,J){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ne=C;C=U;try{return J()}finally{C=ne}},l.unstable_scheduleCallback=function(U,J,ne){var Ee=l.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ee+ne:Ee):ne=Ee,U){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=ne+P,U={id:x++,callback:J,priorityLevel:U,startTime:ne,expirationTime:P,sortIndex:-1},ne>Ee?(U.sortIndex=ne,a(y,U),r(v)===null&&U===r(y)&&(T?(F($),$=-1):T=!0,ze(X,ne-Ee))):(U.sortIndex=P,a(v,U),L||M||(L=!0,K||(K=!0,He()))),U},l.unstable_shouldYield=Ne,l.unstable_wrapCallback=function(U){var J=C;return function(){var ne=C;C=J;try{return U.apply(this,arguments)}finally{C=ne}}}})(rd)),rd}var Tv;function CS(){return Tv||(Tv=1,id.exports=ES()),id.exports}var sd={exports:{}},Dt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var wv;function NS(){if(wv)return Dt;wv=1;var l=Id();function a(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(v,y,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:v,containerInfo:y,implementation:x}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Dt.createPortal=function(v,y){var x=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(v,y,null,x)},Dt.flushSync=function(v){var y=h.T,x=s.p;try{if(h.T=null,s.p=2,v)return v()}finally{h.T=y,s.p=x,s.d.f()}},Dt.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},Dt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},Dt.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var x=y.as,S=m(x,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,M=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:M}):x==="script"&&s.d.X(v,{crossOrigin:S,integrity:C,fetchPriority:M,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Dt.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var x=m(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},Dt.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var x=y.as,S=m(x,y.crossOrigin);s.d.L(v,x,{crossOrigin:S,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})}},Dt.preloadModule=function(v,y){if(typeof v=="string")if(y){var x=m(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},Dt.requestFormReset=function(v){s.d.r(v)},Dt.unstable_batchedUpdates=function(v,y){return v(y)},Dt.useFormState=function(v,y,x){return h.H.useFormState(v,y,x)},Dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Dt.version="19.2.4",Dt}var Av;function Xg(){if(Av)return sd.exports;Av=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),sd.exports=NS(),sd.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Rv;function jS(){if(Rv)return ys;Rv=1;var l=CS(),a=Id(),r=Xg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){n=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return v(u),e;if(c===i)return v(u),t;c=c.sibling}throw Error(s(188))}if(n.return!==i.return)n=u,i=c;else{for(var p=!1,g=u.child;g;){if(g===n){p=!0,n=u,i=c;break}if(g===i){p=!0,i=u,n=c;break}g=g.sibling}if(!p){for(g=c.child;g;){if(g===n){p=!0,n=c,i=u;break}if(g===i){p=!0,i=c,n=u;break}g=g.sibling}if(!p)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,C=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),H=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Ne=Symbol.for("react.memo_cache_sentinel"),Ze=Symbol.iterator;function He(e){return e===null||typeof e!="object"?null:(e=Ze&&e[Ze]||e["@@iterator"],typeof e=="function"?e:null)}var pt=Symbol.for("react.client.reference");function rt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case z:return"Profiler";case A:return"StrictMode";case X:return"Suspense";case K:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case H:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:rt(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return rt(e(t))}catch{}}return null}var ze=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ee=[],P=-1;function j(e){return{current:e}}function Q(e){0>P||(e.current=Ee[P],Ee[P]=null,P--)}function ee(e,t){P++,Ee[P]=e.current,e.current=t}var le=j(null),ce=j(null),me=j(null),Ae=j(null);function at(e,t){switch(ee(me,t),ee(ce,e),ee(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gy(t),e=Yy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(le),ee(le,e)}function _e(){Q(le),Q(ce),Q(me)}function mn(e){e.memoizedState!==null&&ee(Ae,e);var t=le.current,n=Yy(t,e.type);t!==n&&(ee(ce,e),ee(le,n))}function pn(e){ce.current===e&&(Q(le),Q(ce)),Ae.current===e&&(Q(Ae),fs._currentValue=ne)}var zn,la;function Ut(e){if(zn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zn=t&&t[1]||"",la=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+zn+e+la}var ci=!1;function W(e,t){if(!e||ci)return"";ci=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(k){var D=k}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(k){D=k}e.call(Z.prototype)}}else{try{throw Error()}catch(k){D=k}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(k){if(k&&D&&typeof k.stack=="string")return[k.stack,D.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),p=c[0],g=c[1];if(p&&g){var _=p.split(`
|
|
44
|
-
`),O=g.split(`
|
|
45
|
-
`);for(u=i=0;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;for(;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;if(i===_.length||u===O.length)for(i=_.length-1,u=O.length-1;1<=i&&0<=u&&_[i]!==O[u];)u--;for(;1<=i&&0<=u;i--,u--)if(_[i]!==O[u]){if(i!==1||u!==1)do if(i--,u--,0>u||_[i]!==O[u]){var B=`
|
|
46
|
-
`+_[i].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=i&&0<=u);break}}}finally{ci=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ut(n):""}function Lt(e,t){switch(e.tag){case 26:case 27:case 5:return Ut(e.type);case 16:return Ut("Lazy");case 13:return e.child!==t&&t!==null?Ut("Suspense Fallback"):Ut("Suspense");case 19:return Ut("SuspenseList");case 0:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 1:return W(e.type,!0);case 31:return Ut("Activity");default:return""}}function Ls(e){try{var t="",n=null;do t+=Lt(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
-
Error generating stack: `+i.message+`
|
|
48
|
-
`+i.stack}}var qo=Object.prototype.hasOwnProperty,Ho=l.unstable_scheduleCallback,Qo=l.unstable_cancelCallback,$0=l.unstable_shouldYield,I0=l.unstable_requestPaint,tn=l.unstable_now,P0=l.unstable_getCurrentPriorityLevel,_h=l.unstable_ImmediatePriority,Eh=l.unstable_UserBlockingPriority,Bs=l.unstable_NormalPriority,W0=l.unstable_LowPriority,Ch=l.unstable_IdlePriority,ex=l.log,tx=l.unstable_setDisableYieldValue,Er=null,nn=null;function Ba(e){if(typeof ex=="function"&&tx(e),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(Er,e)}catch{}}var an=Math.clz32?Math.clz32:lx,nx=Math.log,ax=Math.LN2;function lx(e){return e>>>=0,e===0?32:31-(nx(e)/ax|0)|0}var qs=256,Hs=262144,Qs=4194304;function wl(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 Zs(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var g=i&134217727;return g!==0?(i=g&~c,i!==0?u=wl(i):(p&=g,p!==0?u=wl(p):n||(n=g&~e,n!==0&&(u=wl(n))))):(g=i&~c,g!==0?u=wl(g):p!==0?u=wl(p):n||(n=i&~e,n!==0&&(u=wl(n)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:u}function Cr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ix(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 Nh(){var e=Qs;return Qs<<=1,(Qs&62914560)===0&&(Qs=4194304),e}function Zo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Nr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rx(e,t,n,i,u,c){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,_=e.expirationTimes,O=e.hiddenUpdates;for(n=p&~n;0<n;){var B=31-an(n),Z=1<<B;g[B]=0,_[B]=-1;var D=O[B];if(D!==null)for(O[B]=null,B=0;B<D.length;B++){var k=D[B];k!==null&&(k.lane&=-536870913)}n&=~Z}i!==0&&jh(e,i,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function jh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-an(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Th(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-an(n),u=1<<i;u&t|e[i]&t&&(e[i]|=t),n&=~u}}function wh(e,t){var n=t&-t;return n=(n&42)!==0?1:Vo(n),(n&(e.suspendedLanes|t))!==0?0:n}function Vo(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 Go(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ah(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:mv(e.type))}function Rh(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var qa=Math.random().toString(36).slice(2),wt="__reactFiber$"+qa,Vt="__reactProps$"+qa,fi="__reactContainer$"+qa,Yo="__reactEvents$"+qa,sx="__reactListeners$"+qa,ux="__reactHandles$"+qa,Oh="__reactResources$"+qa,jr="__reactMarker$"+qa;function Xo(e){delete e[wt],delete e[Vt],delete e[Yo],delete e[sx],delete e[ux]}function di(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Py(e);e!==null;){if(n=e[wt])return n;e=Py(e)}return t}e=n,n=e.parentNode}return null}function hi(e){if(e=e[wt]||e[fi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function mi(e){var t=e[Oh];return t||(t=e[Oh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[jr]=!0}var Mh=new Set,Dh={};function Al(e,t){pi(e,t),pi(e+"Capture",t)}function pi(e,t){for(Dh[e]=t,e=0;e<t.length;e++)Mh.add(t[e])}var ox=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]*$"),zh={},kh={};function cx(e){return qo.call(kh,e)?!0:qo.call(zh,e)?!1:ox.test(e)?kh[e]=!0:(zh[e]=!0,!1)}function Vs(e,t,n){if(cx(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function Gs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ia(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function yn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fx(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(p){n=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ko(e){if(!e._valueTracker){var t=Uh(e)?"checked":"value";e._valueTracker=fx(e,t,""+e[t])}}function Lh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Uh(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ys(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 dx=/[\n"\\]/g;function vn(e){return e.replace(dx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fo(e,t,n,i,u,c,p,g){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=""+yn(t)):e.value!==""+yn(t)&&(e.value=""+yn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Jo(e,p,yn(t)):n!=null?Jo(e,p,yn(n)):i!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+yn(g):e.removeAttribute("name")}function Bh(e,t,n,i,u,c,p,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ko(e);return}n=n!=null?""+yn(n):"",t=t!=null?""+yn(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=g?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Ko(e)}function Jo(e,t,n){t==="number"&&Ys(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function yi(e,t,n,i){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&i&&(e[n].defaultSelected=!0)}else{for(n=""+yn(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function qh(e,t,n){if(t!=null&&(t=""+yn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+yn(n):""}function Hh(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(ze(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=yn(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Ko(e)}function vi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hx=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 Qh(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||hx.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Zh(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&n[u]!==i&&Qh(e,u,i)}else for(var c in t)t.hasOwnProperty(c)&&Qh(e,c,t[c])}function $o(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 mx=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"]]),px=/^[\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 Xs(e){return px.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var Io=null;function Po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gi=null,bi=null;function Vh(e){var t=hi(e);if(t&&(e=t.stateNode)){var n=e[Vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var u=i[Vt]||null;if(!u)throw Error(s(90));Fo(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Lh(i)}break e;case"textarea":qh(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&yi(e,!!n.multiple,t,!1)}}}var Wo=!1;function Gh(e,t,n){if(Wo)return e(t,n);Wo=!0;try{var i=e(t);return i}finally{if(Wo=!1,(gi!==null||bi!==null)&&(Du(),gi&&(t=gi,e=bi,bi=gi=null,Vh(t),e)))for(t=0;t<e.length;t++)Vh(e[t])}}function wr(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Vt]||null;if(i===null)return null;n=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(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ec=!1;if(sa)try{var Ar={};Object.defineProperty(Ar,"passive",{get:function(){ec=!0}}),window.addEventListener("test",Ar,Ar),window.removeEventListener("test",Ar,Ar)}catch{ec=!1}var Ha=null,tc=null,Ks=null;function Yh(){if(Ks)return Ks;var e,t=tc,n=t.length,i,u="value"in Ha?Ha.value:Ha.textContent,c=u.length;for(e=0;e<n&&t[e]===u[e];e++);var p=n-e;for(i=1;i<=p&&t[n-i]===u[c-i];i++);return Ks=u.slice(e,1<i?1-i:void 0)}function Fs(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 Js(){return!0}function Xh(){return!1}function Gt(e){function t(n,i,u,c,p){this._reactName=n,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Js:Xh,this.isPropagationStopped=Xh,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Js)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Js)},persist:function(){},isPersistent:Js}),t}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$s=Gt(Rl),Rr=S({},Rl,{view:0,detail:0}),yx=Gt(Rr),nc,ac,Or,Is=S({},Rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ic,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!==Or&&(Or&&e.type==="mousemove"?(nc=e.screenX-Or.screenX,ac=e.screenY-Or.screenY):ac=nc=0,Or=e),nc)},movementY:function(e){return"movementY"in e?e.movementY:ac}}),Kh=Gt(Is),vx=S({},Is,{dataTransfer:0}),gx=Gt(vx),bx=S({},Rr,{relatedTarget:0}),lc=Gt(bx),xx=S({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),Sx=Gt(xx),_x=S({},Rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ex=Gt(_x),Cx=S({},Rl,{data:0}),Fh=Gt(Cx),Nx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jx={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"},Tx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tx[e])?!!t[e]:!1}function ic(){return wx}var Ax=S({},Rr,{key:function(e){if(e.key){var t=Nx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ic,charCode:function(e){return e.type==="keypress"?Fs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rx=Gt(Ax),Ox=S({},Is,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jh=Gt(Ox),Mx=S({},Rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ic}),Dx=Gt(Mx),zx=S({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),kx=Gt(zx),Ux=S({},Is,{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}),Lx=Gt(Ux),Bx=S({},Rl,{newState:0,oldState:0}),qx=Gt(Bx),Hx=[9,13,27,32],rc=sa&&"CompositionEvent"in window,Mr=null;sa&&"documentMode"in document&&(Mr=document.documentMode);var Qx=sa&&"TextEvent"in window&&!Mr,$h=sa&&(!rc||Mr&&8<Mr&&11>=Mr),Ih=" ",Ph=!1;function Wh(e,t){switch(e){case"keyup":return Hx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xi=!1;function Zx(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(Ph=!0,Ih);case"textInput":return e=t.data,e===Ih&&Ph?null:e;default:return null}}function Vx(e,t){if(xi)return e==="compositionend"||!rc&&Wh(e,t)?(e=Yh(),Ks=tc=Ha=null,xi=!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 $h&&t.locale!=="ko"?null:t.data;default:return null}}var Gx={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 tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gx[e.type]:t==="textarea"}function nm(e,t,n,i){gi?bi?bi.push(i):bi=[i]:gi=i,t=Hu(t,"onChange"),0<t.length&&(n=new $s("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Dr=null,zr=null;function Yx(e){By(e,0)}function Ps(e){var t=Tr(e);if(Lh(t))return e}function am(e,t){if(e==="change")return t}var lm=!1;if(sa){var sc;if(sa){var uc="oninput"in document;if(!uc){var im=document.createElement("div");im.setAttribute("oninput","return;"),uc=typeof im.oninput=="function"}sc=uc}else sc=!1;lm=sc&&(!document.documentMode||9<document.documentMode)}function rm(){Dr&&(Dr.detachEvent("onpropertychange",sm),zr=Dr=null)}function sm(e){if(e.propertyName==="value"&&Ps(zr)){var t=[];nm(t,zr,e,Po(e)),Gh(Yx,t)}}function Xx(e,t,n){e==="focusin"?(rm(),Dr=t,zr=n,Dr.attachEvent("onpropertychange",sm)):e==="focusout"&&rm()}function Kx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ps(zr)}function Fx(e,t){if(e==="click")return Ps(t)}function Jx(e,t){if(e==="input"||e==="change")return Ps(t)}function $x(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ln=typeof Object.is=="function"?Object.is:$x;function kr(e,t){if(ln(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var u=n[i];if(!qo.call(t,u)||!ln(e[u],t[u]))return!1}return!0}function um(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function om(e,t){var n=um(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=um(n)}}function cm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ys(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ys(e.document)}return t}function oc(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 Ix=sa&&"documentMode"in document&&11>=document.documentMode,Si=null,cc=null,Ur=null,fc=!1;function dm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fc||Si==null||Si!==Ys(i)||(i=Si,"selectionStart"in i&&oc(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}),Ur&&kr(Ur,i)||(Ur=i,i=Hu(cc,"onSelect"),0<i.length&&(t=new $s("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Si)))}function Ol(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _i={animationend:Ol("Animation","AnimationEnd"),animationiteration:Ol("Animation","AnimationIteration"),animationstart:Ol("Animation","AnimationStart"),transitionrun:Ol("Transition","TransitionRun"),transitionstart:Ol("Transition","TransitionStart"),transitioncancel:Ol("Transition","TransitionCancel"),transitionend:Ol("Transition","TransitionEnd")},dc={},hm={};sa&&(hm=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);function Ml(e){if(dc[e])return dc[e];if(!_i[e])return e;var t=_i[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in hm)return dc[e]=t[n];return e}var mm=Ml("animationend"),pm=Ml("animationiteration"),ym=Ml("animationstart"),Px=Ml("transitionrun"),Wx=Ml("transitionstart"),e1=Ml("transitioncancel"),vm=Ml("transitionend"),gm=new Map,hc="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(" ");hc.push("scrollEnd");function kn(e,t){gm.set(e,t),Al(t,[e])}var Ws=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)},gn=[],Ei=0,mc=0;function eu(){for(var e=Ei,t=mc=Ei=0;t<e;){var n=gn[t];gn[t++]=null;var i=gn[t];gn[t++]=null;var u=gn[t];gn[t++]=null;var c=gn[t];if(gn[t++]=null,i!==null&&u!==null){var p=i.pending;p===null?u.next=u:(u.next=p.next,p.next=u),i.pending=u}c!==0&&bm(n,u,c)}}function tu(e,t,n,i){gn[Ei++]=e,gn[Ei++]=t,gn[Ei++]=n,gn[Ei++]=i,mc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function pc(e,t,n,i){return tu(e,t,n,i),nu(e)}function Dl(e,t){return tu(e,null,null,t),nu(e)}function bm(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var u=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-an(n),e=c.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=n|536870912),c):null}function nu(e){if(50<ls)throw ls=0,Nf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ci={};function t1(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=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 rn(e,t,n,i){return new t1(e,t,n,i)}function yc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var n=e.alternate;return n===null?(n=rn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function xm(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function au(e,t,n,i,u,c){var p=0;if(i=e,typeof e=="function")yc(e)&&(p=1);else if(typeof e=="string")p=rS(e,n,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=rn(31,n,t,u),e.elementType=he,e.lanes=c,e;case T:return zl(n.children,u,c,t);case A:p=8,u|=24;break;case z:return e=rn(12,n,t,u|2),e.elementType=z,e.lanes=c,e;case X:return e=rn(13,n,t,u),e.elementType=X,e.lanes=c,e;case K:return e=rn(19,n,t,u),e.elementType=K,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:p=10;break e;case F:p=9;break e;case V:p=11;break e;case $:p=14;break e;case G:p=16,i=null;break e}p=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=rn(p,n,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function zl(e,t,n,i){return e=rn(7,e,i,t),e.lanes=n,e}function vc(e,t,n){return e=rn(6,e,null,t),e.lanes=n,e}function Sm(e){var t=rn(18,null,null,0);return t.stateNode=e,t}function gc(e,t,n){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _m=new WeakMap;function bn(e,t){if(typeof e=="object"&&e!==null){var n=_m.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ls(t)},_m.set(e,t),t)}return{value:e,source:t,stack:Ls(t)}}var Ni=[],ji=0,lu=null,Lr=0,xn=[],Sn=0,Qa=null,Gn=1,Yn="";function oa(e,t){Ni[ji++]=Lr,Ni[ji++]=lu,lu=e,Lr=t}function Em(e,t,n){xn[Sn++]=Gn,xn[Sn++]=Yn,xn[Sn++]=Qa,Qa=e;var i=Gn;e=Yn;var u=32-an(i)-1;i&=~(1<<u),n+=1;var c=32-an(t)+u;if(30<c){var p=u-u%5;c=(i&(1<<p)-1).toString(32),i>>=p,u-=p,Gn=1<<32-an(t)+u|n<<u|i,Yn=c+e}else Gn=1<<c|n<<u|i,Yn=e}function bc(e){e.return!==null&&(oa(e,1),Em(e,1,0))}function xc(e){for(;e===lu;)lu=Ni[--ji],Ni[ji]=null,Lr=Ni[--ji],Ni[ji]=null;for(;e===Qa;)Qa=xn[--Sn],xn[Sn]=null,Yn=xn[--Sn],xn[Sn]=null,Gn=xn[--Sn],xn[Sn]=null}function Cm(e,t){xn[Sn++]=Gn,xn[Sn++]=Yn,xn[Sn++]=Qa,Gn=t.id,Yn=t.overflow,Qa=e}var At=null,lt=null,Le=!1,Za=null,_n=!1,Sc=Error(s(519));function Va(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Br(bn(t,e)),Sc}function Nm(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[wt]=e,t[Vt]=i,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<rs.length;n++)Me(rs[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),Bh(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),Hh(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Zy(t.textContent,n)?(i.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),i.onScroll!=null&&Me("scroll",t),i.onScrollEnd!=null&&Me("scrollend",t),i.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||Va(e,!0)}function jm(e){for(At=e.return;At;)switch(At.tag){case 5:case 31:case 13:_n=!1;return;case 27:case 3:_n=!0;return;default:At=At.return}}function Ti(e){if(e!==At)return!1;if(!Le)return jm(e),Le=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Hf(e.type,e.memoizedProps)),n=!n),n&<&&Va(e),jm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=Iy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=Iy(e)}else t===27?(t=lt,al(e.type)?(e=Yf,Yf=null,lt=e):lt=t):lt=At?Cn(e.stateNode.nextSibling):null;return!0}function kl(){lt=At=null,Le=!1}function _c(){var e=Za;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),Za=null),e}function Br(e){Za===null?Za=[e]:Za.push(e)}var Ec=j(null),Ul=null,ca=null;function Ga(e,t,n){ee(Ec,t._currentValue),t._currentValue=n}function fa(e){e._currentValue=Ec.current,Q(Ec)}function Cc(e,t,n){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===n)break;e=e.return}}function Nc(e,t,n,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var p=u.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=u;for(var _=0;_<t.length;_++)if(g.context===t[_]){c.lanes|=n,g=c.alternate,g!==null&&(g.lanes|=n),Cc(c.return,n,e),i||(p=null);break e}c=g.next}}else if(u.tag===18){if(p=u.return,p===null)throw Error(s(341));p.lanes|=n,c=p.alternate,c!==null&&(c.lanes|=n),Cc(p,n,e),p=null}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===e){p=null;break}if(u=p.sibling,u!==null){u.return=p.return,p=u;break}p=p.return}u=p}}function wi(e,t,n,i){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var p=u.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var g=u.type;ln(u.pendingProps.value,p.value)||(e!==null?e.push(g):e=[g])}}else if(u===Ae.current){if(p=u.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(fs):e=[fs])}u=u.return}e!==null&&Nc(t,e,n,i),t.flags|=262144}function iu(e){for(e=e.firstContext;e!==null;){if(!ln(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ll(e){Ul=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rt(e){return Tm(Ul,e)}function ru(e,t){return Ul===null&&Ll(e),Tm(e,t)}function Tm(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ca===null){if(e===null)throw Error(s(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return n}var n1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},a1=l.unstable_scheduleCallback,l1=l.unstable_NormalPriority,yt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jc(){return{controller:new n1,data:new Map,refCount:0}}function qr(e){e.refCount--,e.refCount===0&&a1(l1,function(){e.controller.abort()})}var Hr=null,Tc=0,Ai=0,Ri=null;function i1(e,t){if(Hr===null){var n=Hr=[];Tc=0,Ai=Of(),Ri={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Tc++,t.then(wm,wm),t}function wm(){if(--Tc===0&&Hr!==null){Ri!==null&&(Ri.status="fulfilled");var e=Hr;Hr=null,Ai=0,Ri=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function r1(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),i}var Am=U.S;U.S=function(e,t){dy=tn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&i1(e,t),Am!==null&&Am(e,t)};var Bl=j(null);function wc(){var e=Bl.current;return e!==null?e:et.pooledCache}function su(e,t){t===null?ee(Bl,Bl.current):ee(Bl,t.pool)}function Rm(){var e=wc();return e===null?null:{parent:yt._currentValue,pool:e}}var Oi=Error(s(460)),Ac=Error(s(474)),uu=Error(s(542)),ou={then:function(){}};function Om(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mm(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ra,ra),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zm(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zm(e),e}throw Hl=t,Oi}}function ql(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Hl=n,Oi):n}}var Hl=null;function Dm(){if(Hl===null)throw Error(s(459));var e=Hl;return Hl=null,e}function zm(e){if(e===Oi||e===uu)throw Error(s(483))}var Mi=null,Qr=0;function cu(e){var t=Qr;return Qr+=1,Mi===null&&(Mi=[]),Mm(Mi,e,t)}function Zr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function km(e){function t(w,N){if(e){var R=w.deletions;R===null?(w.deletions=[N],w.flags|=16):R.push(N)}}function n(w,N){if(!e)return null;for(;N!==null;)t(w,N),N=N.sibling;return null}function i(w){for(var N=new Map;w!==null;)w.key!==null?N.set(w.key,w):N.set(w.index,w),w=w.sibling;return N}function u(w,N){return w=ua(w,N),w.index=0,w.sibling=null,w}function c(w,N,R){return w.index=R,e?(R=w.alternate,R!==null?(R=R.index,R<N?(w.flags|=67108866,N):R):(w.flags|=67108866,N)):(w.flags|=1048576,N)}function p(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function g(w,N,R,q){return N===null||N.tag!==6?(N=vc(R,w.mode,q),N.return=w,N):(N=u(N,R),N.return=w,N)}function _(w,N,R,q){var ye=R.type;return ye===T?B(w,N,R.props.children,q,R.key):N!==null&&(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===G&&ql(ye)===N.type)?(N=u(N,R.props),Zr(N,R),N.return=w,N):(N=au(R.type,R.key,R.props,null,w.mode,q),Zr(N,R),N.return=w,N)}function O(w,N,R,q){return N===null||N.tag!==4||N.stateNode.containerInfo!==R.containerInfo||N.stateNode.implementation!==R.implementation?(N=gc(R,w.mode,q),N.return=w,N):(N=u(N,R.children||[]),N.return=w,N)}function B(w,N,R,q,ye){return N===null||N.tag!==7?(N=zl(R,w.mode,q,ye),N.return=w,N):(N=u(N,R),N.return=w,N)}function Z(w,N,R){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=vc(""+N,w.mode,R),N.return=w,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case M:return R=au(N.type,N.key,N.props,null,w.mode,R),Zr(R,N),R.return=w,R;case L:return N=gc(N,w.mode,R),N.return=w,N;case G:return N=ql(N),Z(w,N,R)}if(ze(N)||He(N))return N=zl(N,w.mode,R,null),N.return=w,N;if(typeof N.then=="function")return Z(w,cu(N),R);if(N.$$typeof===H)return Z(w,ru(w,N),R);fu(w,N)}return null}function D(w,N,R,q){var ye=N!==null?N.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ye!==null?null:g(w,N,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return R.key===ye?_(w,N,R,q):null;case L:return R.key===ye?O(w,N,R,q):null;case G:return R=ql(R),D(w,N,R,q)}if(ze(R)||He(R))return ye!==null?null:B(w,N,R,q,null);if(typeof R.then=="function")return D(w,N,cu(R),q);if(R.$$typeof===H)return D(w,N,ru(w,R),q);fu(w,R)}return null}function k(w,N,R,q,ye){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return w=w.get(R)||null,g(N,w,""+q,ye);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case M:return w=w.get(q.key===null?R:q.key)||null,_(N,w,q,ye);case L:return w=w.get(q.key===null?R:q.key)||null,O(N,w,q,ye);case G:return q=ql(q),k(w,N,R,q,ye)}if(ze(q)||He(q))return w=w.get(R)||null,B(N,w,q,ye,null);if(typeof q.then=="function")return k(w,N,R,cu(q),ye);if(q.$$typeof===H)return k(w,N,R,ru(N,q),ye);fu(N,q)}return null}function ie(w,N,R,q){for(var ye=null,Ve=null,fe=N,je=N=0,Ue=null;fe!==null&&je<R.length;je++){fe.index>je?(Ue=fe,fe=null):Ue=fe.sibling;var Ge=D(w,fe,R[je],q);if(Ge===null){fe===null&&(fe=Ue);break}e&&fe&&Ge.alternate===null&&t(w,fe),N=c(Ge,N,je),Ve===null?ye=Ge:Ve.sibling=Ge,Ve=Ge,fe=Ue}if(je===R.length)return n(w,fe),Le&&oa(w,je),ye;if(fe===null){for(;je<R.length;je++)fe=Z(w,R[je],q),fe!==null&&(N=c(fe,N,je),Ve===null?ye=fe:Ve.sibling=fe,Ve=fe);return Le&&oa(w,je),ye}for(fe=i(fe);je<R.length;je++)Ue=k(fe,w,je,R[je],q),Ue!==null&&(e&&Ue.alternate!==null&&fe.delete(Ue.key===null?je:Ue.key),N=c(Ue,N,je),Ve===null?ye=Ue:Ve.sibling=Ue,Ve=Ue);return e&&fe.forEach(function(ul){return t(w,ul)}),Le&&oa(w,je),ye}function ve(w,N,R,q){if(R==null)throw Error(s(151));for(var ye=null,Ve=null,fe=N,je=N=0,Ue=null,Ge=R.next();fe!==null&&!Ge.done;je++,Ge=R.next()){fe.index>je?(Ue=fe,fe=null):Ue=fe.sibling;var ul=D(w,fe,Ge.value,q);if(ul===null){fe===null&&(fe=Ue);break}e&&fe&&ul.alternate===null&&t(w,fe),N=c(ul,N,je),Ve===null?ye=ul:Ve.sibling=ul,Ve=ul,fe=Ue}if(Ge.done)return n(w,fe),Le&&oa(w,je),ye;if(fe===null){for(;!Ge.done;je++,Ge=R.next())Ge=Z(w,Ge.value,q),Ge!==null&&(N=c(Ge,N,je),Ve===null?ye=Ge:Ve.sibling=Ge,Ve=Ge);return Le&&oa(w,je),ye}for(fe=i(fe);!Ge.done;je++,Ge=R.next())Ge=k(fe,w,je,Ge.value,q),Ge!==null&&(e&&Ge.alternate!==null&&fe.delete(Ge.key===null?je:Ge.key),N=c(Ge,N,je),Ve===null?ye=Ge:Ve.sibling=Ge,Ve=Ge);return e&&fe.forEach(function(vS){return t(w,vS)}),Le&&oa(w,je),ye}function Pe(w,N,R,q){if(typeof R=="object"&&R!==null&&R.type===T&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case M:e:{for(var ye=R.key;N!==null;){if(N.key===ye){if(ye=R.type,ye===T){if(N.tag===7){n(w,N.sibling),q=u(N,R.props.children),q.return=w,w=q;break e}}else if(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===G&&ql(ye)===N.type){n(w,N.sibling),q=u(N,R.props),Zr(q,R),q.return=w,w=q;break e}n(w,N);break}else t(w,N);N=N.sibling}R.type===T?(q=zl(R.props.children,w.mode,q,R.key),q.return=w,w=q):(q=au(R.type,R.key,R.props,null,w.mode,q),Zr(q,R),q.return=w,w=q)}return p(w);case L:e:{for(ye=R.key;N!==null;){if(N.key===ye)if(N.tag===4&&N.stateNode.containerInfo===R.containerInfo&&N.stateNode.implementation===R.implementation){n(w,N.sibling),q=u(N,R.children||[]),q.return=w,w=q;break e}else{n(w,N);break}else t(w,N);N=N.sibling}q=gc(R,w.mode,q),q.return=w,w=q}return p(w);case G:return R=ql(R),Pe(w,N,R,q)}if(ze(R))return ie(w,N,R,q);if(He(R)){if(ye=He(R),typeof ye!="function")throw Error(s(150));return R=ye.call(R),ve(w,N,R,q)}if(typeof R.then=="function")return Pe(w,N,cu(R),q);if(R.$$typeof===H)return Pe(w,N,ru(w,R),q);fu(w,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,N!==null&&N.tag===6?(n(w,N.sibling),q=u(N,R),q.return=w,w=q):(n(w,N),q=vc(R,w.mode,q),q.return=w,w=q),p(w)):n(w,N)}return function(w,N,R,q){try{Qr=0;var ye=Pe(w,N,R,q);return Mi=null,ye}catch(fe){if(fe===Oi||fe===uu)throw fe;var Ve=rn(29,fe,null,w.mode);return Ve.lanes=q,Ve.return=w,Ve}finally{}}}var Ql=km(!0),Um=km(!1),Ya=!1;function Rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Oc(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 Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=nu(e),bm(e,null,n),t}return tu(e,i,t,n),nu(e)}function Vr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Th(e,n)}}function Mc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=p:c=c.next=p,n=n.next}while(n!==null);c===null?u=c=t:c=c.next=t}else u=c=t;n={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Dc=!1;function Gr(){if(Dc){var e=Ri;if(e!==null)throw e}}function Yr(e,t,n,i){Dc=!1;var u=e.updateQueue;Ya=!1;var c=u.firstBaseUpdate,p=u.lastBaseUpdate,g=u.shared.pending;if(g!==null){u.shared.pending=null;var _=g,O=_.next;_.next=null,p===null?c=O:p.next=O,p=_;var B=e.alternate;B!==null&&(B=B.updateQueue,g=B.lastBaseUpdate,g!==p&&(g===null?B.firstBaseUpdate=O:g.next=O,B.lastBaseUpdate=_))}if(c!==null){var Z=u.baseState;p=0,B=O=_=null,g=c;do{var D=g.lane&-536870913,k=D!==g.lane;if(k?(ke&D)===D:(i&D)===D){D!==0&&D===Ai&&(Dc=!0),B!==null&&(B=B.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ie=e,ve=g;D=t;var Pe=n;switch(ve.tag){case 1:if(ie=ve.payload,typeof ie=="function"){Z=ie.call(Pe,Z,D);break e}Z=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=ve.payload,D=typeof ie=="function"?ie.call(Pe,Z,D):ie,D==null)break e;Z=S({},Z,D);break e;case 2:Ya=!0}}D=g.callback,D!==null&&(e.flags|=64,k&&(e.flags|=8192),k=u.callbacks,k===null?u.callbacks=[D]:k.push(D))}else k={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},B===null?(O=B=k,_=Z):B=B.next=k,p|=D;if(g=g.next,g===null){if(g=u.shared.pending,g===null)break;k=g,g=k.next,k.next=null,u.lastBaseUpdate=k,u.shared.pending=null}}while(!0);B===null&&(_=Z),u.baseState=_,u.firstBaseUpdate=O,u.lastBaseUpdate=B,c===null&&(u.shared.lanes=0),Pa|=p,e.lanes=p,e.memoizedState=Z}}function Lm(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Bm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Lm(n[e],t)}var Di=j(null),du=j(0);function qm(e,t){e=xa,ee(du,e),ee(Di,t),xa=e|t.baseLanes}function zc(){ee(du,xa),ee(Di,Di.current)}function kc(){xa=du.current,Q(Di),Q(du)}var sn=j(null),En=null;function Fa(e){var t=e.alternate;ee(ht,ht.current&1),ee(sn,e),En===null&&(t===null||Di.current!==null||t.memoizedState!==null)&&(En=e)}function Uc(e){ee(ht,ht.current),ee(sn,e),En===null&&(En=e)}function Hm(e){e.tag===22?(ee(ht,ht.current),ee(sn,e),En===null&&(En=e)):Ja()}function Ja(){ee(ht,ht.current),ee(sn,sn.current)}function un(e){Q(sn),En===e&&(En=null),Q(ht)}var ht=j(0);function hu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Vf(n)||Gf(n)))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 da=0,Ce=null,$e=null,vt=null,mu=!1,zi=!1,Zl=!1,pu=0,Xr=0,ki=null,s1=0;function ct(){throw Error(s(321))}function Lc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ln(e[n],t[n]))return!1;return!0}function Bc(e,t,n,i,u,c){return da=c,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Ep:Wc,Zl=!1,c=n(i,u),Zl=!1,zi&&(c=Zm(t,n,i,u)),Qm(e),c}function Qm(e){U.H=Jr;var t=$e!==null&&$e.next!==null;if(da=0,vt=$e=Ce=null,mu=!1,Xr=0,ki=null,t)throw Error(s(300));e===null||gt||(e=e.dependencies,e!==null&&iu(e)&&(gt=!0))}function Zm(e,t,n,i){Ce=e;var u=0;do{if(zi&&(ki=null),Xr=0,zi=!1,25<=u)throw Error(s(301));if(u+=1,vt=$e=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Cp,c=t(n,i)}while(zi);return c}function u1(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Kr(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(Ce.flags|=1024),t}function qc(){var e=pu!==0;return pu=0,e}function Hc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Qc(e){if(mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mu=!1}da=0,vt=$e=Ce=null,zi=!1,Xr=pu=0,ki=null}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Ce.memoizedState=vt=e:vt=vt.next=e,vt}function mt(){if($e===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=vt===null?Ce.memoizedState:vt.next;if(t!==null)vt=t,$e=e;else{if(e===null)throw Ce.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},vt===null?Ce.memoizedState=vt=e:vt=vt.next=e}return vt}function yu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kr(e){var t=Xr;return Xr+=1,ki===null&&(ki=[]),e=Mm(ki,e,t),t=Ce,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Ep:Wc),e}function vu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kr(e);if(e.$$typeof===H)return Rt(e)}throw Error(s(438,String(e)))}function Zc(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=yu(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=Ne;return t.index++,n}function ha(e,t){return typeof t=="function"?t(e):t}function gu(e){var t=mt();return Vc(t,$e,e)}function Vc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var u=e.baseQueue,c=i.pending;if(c!==null){if(u!==null){var p=u.next;u.next=c.next,c.next=p}t.baseQueue=u=c,i.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var g=p=null,_=null,O=t,B=!1;do{var Z=O.lane&-536870913;if(Z!==O.lane?(ke&Z)===Z:(da&Z)===Z){var D=O.revertLane;if(D===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Z===Ai&&(B=!0);else if((da&D)===D){O=O.next,D===Ai&&(B=!0);continue}else Z={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},_===null?(g=_=Z,p=c):_=_.next=Z,Ce.lanes|=D,Pa|=D;Z=O.action,Zl&&n(c,Z),c=O.hasEagerState?O.eagerState:n(c,Z)}else D={lane:Z,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},_===null?(g=_=D,p=c):_=_.next=D,Ce.lanes|=Z,Pa|=Z;O=O.next}while(O!==null&&O!==t);if(_===null?p=c:_.next=g,!ln(c,e.memoizedState)&&(gt=!0,B&&(n=Ri,n!==null)))throw n;e.memoizedState=c,e.baseState=p,e.baseQueue=_,i.lastRenderedState=c}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Gc(e){var t=mt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,u=n.pending,c=t.memoizedState;if(u!==null){n.pending=null;var p=u=u.next;do c=e(c,p.action),p=p.next;while(p!==u);ln(c,t.memoizedState)||(gt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function Vm(e,t,n){var i=Ce,u=mt(),c=Le;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var p=!ln(($e||u).memoizedState,n);if(p&&(u.memoizedState=n,gt=!0),u=u.queue,Kc(Xm.bind(null,i,u,e),[e]),u.getSnapshot!==t||p||vt!==null&&vt.memoizedState.tag&1){if(i.flags|=2048,Ui(9,{destroy:void 0},Ym.bind(null,i,u,n,t),null),et===null)throw Error(s(349));c||(da&127)!==0||Gm(i,t,n)}return n}function Gm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=yu(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ym(e,t,n,i){t.value=n,t.getSnapshot=i,Km(t)&&Fm(e)}function Xm(e,t,n){return n(function(){Km(t)&&Fm(e)})}function Km(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ln(e,n)}catch{return!0}}function Fm(e){var t=Dl(e,2);t!==null&&Jt(t,e,2)}function Yc(e){var t=Bt();if(typeof e=="function"){var n=e;if(e=n(),Zl){Ba(!0);try{n()}finally{Ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function Jm(e,t,n,i){return e.baseState=n,Vc(e,$e,typeof i=="function"?i:ha)}function o1(e,t,n,i,u){if(Su(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};U.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,$m(t,c)):(c.next=n.next,t.pending=n.next=c)}}function $m(e,t){var n=t.action,i=t.payload,u=e.state;if(t.isTransition){var c=U.T,p={};U.T=p;try{var g=n(u,i),_=U.S;_!==null&&_(p,g),Im(e,t,g)}catch(O){Xc(e,t,O)}finally{c!==null&&p.types!==null&&(c.types=p.types),U.T=c}}else try{c=n(u,i),Im(e,t,c)}catch(O){Xc(e,t,O)}}function Im(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Pm(e,t,i)},function(i){return Xc(e,t,i)}):Pm(e,t,n)}function Pm(e,t,n){t.status="fulfilled",t.value=n,Wm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,$m(e,n)))}function Xc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Wm(t),t=t.next;while(t!==i)}e.action=null}function Wm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ep(e,t){return t}function tp(e,t){if(Le){var n=et.formState;if(n!==null){e:{var i=Ce;if(Le){if(lt){t:{for(var u=lt,c=_n;u.nodeType!==8;){if(!c){u=null;break t}if(u=Cn(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){lt=Cn(u.nextSibling),i=u.data==="F!";break e}}Va(i)}i=!1}i&&(t=n[0])}}return n=Bt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ep,lastRenderedState:t},n.queue=i,n=xp.bind(null,Ce,i),i.dispatch=n,i=Yc(!1),c=Pc.bind(null,Ce,!1,i.queue),i=Bt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,n=o1.bind(null,Ce,u,c,n),u.dispatch=n,i.memoizedState=e,[t,n,!1]}function np(e){var t=mt();return ap(t,$e,e)}function ap(e,t,n){if(t=Vc(e,t,ep)[0],e=gu(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Kr(t)}catch(p){throw p===Oi?uu:p}else i=t;t=mt();var u=t.queue,c=u.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Ui(9,{destroy:void 0},c1.bind(null,u,n),null)),[i,c,e]}function c1(e,t){e.action=t}function lp(e){var t=mt(),n=$e;if(n!==null)return ap(t,n,e);mt(),t=t.memoizedState,n=mt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Ui(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=yu(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function ip(){return mt().memoizedState}function bu(e,t,n,i){var u=Bt();Ce.flags|=e,u.memoizedState=Ui(1|t,{destroy:void 0},n,i===void 0?null:i)}function xu(e,t,n,i){var u=mt();i=i===void 0?null:i;var c=u.memoizedState.inst;$e!==null&&i!==null&&Lc(i,$e.memoizedState.deps)?u.memoizedState=Ui(t,c,n,i):(Ce.flags|=e,u.memoizedState=Ui(1|t,c,n,i))}function rp(e,t){bu(8390656,8,e,t)}function Kc(e,t){xu(2048,8,e,t)}function f1(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=yu(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function sp(e){var t=mt().memoizedState;return f1({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function up(e,t){return xu(4,2,e,t)}function op(e,t){return xu(4,4,e,t)}function cp(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fp(e,t,n){n=n!=null?n.concat([e]):null,xu(4,4,cp.bind(null,t,e),n)}function Fc(){}function dp(e,t){var n=mt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Lc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function hp(e,t){var n=mt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Lc(t,i[1]))return i[0];if(i=e(),Zl){Ba(!0);try{e()}finally{Ba(!1)}}return n.memoizedState=[i,t],i}function Jc(e,t,n){return n===void 0||(da&1073741824)!==0&&(ke&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=my(),Ce.lanes|=e,Pa|=e,n)}function mp(e,t,n,i){return ln(n,t)?n:Di.current!==null?(e=Jc(e,n,i),ln(e,t)||(gt=!0),e):(da&42)===0||(da&1073741824)!==0&&(ke&261930)===0?(gt=!0,e.memoizedState=n):(e=my(),Ce.lanes|=e,Pa|=e,t)}function pp(e,t,n,i,u){var c=J.p;J.p=c!==0&&8>c?c:8;var p=U.T,g={};U.T=g,Pc(e,!1,t,n);try{var _=u(),O=U.S;if(O!==null&&O(g,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var B=r1(_,i);Fr(e,t,B,fn(e))}else Fr(e,t,i,fn(e))}catch(Z){Fr(e,t,{then:function(){},status:"rejected",reason:Z},fn())}finally{J.p=c,p!==null&&g.types!==null&&(p.types=g.types),U.T=p}}function d1(){}function $c(e,t,n,i){if(e.tag!==5)throw Error(s(476));var u=yp(e).queue;pp(e,u,t,ne,n===null?d1:function(){return vp(e),n(i)})}function yp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vp(e){var t=yp(e);t.next===null&&(t=e.alternate.memoizedState),Fr(e,t.next.queue,{},fn())}function Ic(){return Rt(fs)}function gp(){return mt().memoizedState}function bp(){return mt().memoizedState}function h1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fn();e=Xa(n);var i=Ka(t,e,n);i!==null&&(Jt(i,t,n),Vr(i,t,n)),t={cache:jc()},e.payload=t;return}t=t.return}}function m1(e,t,n){var i=fn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Su(e)?Sp(t,n):(n=pc(e,t,n,i),n!==null&&(Jt(n,e,i),_p(n,t,i)))}function xp(e,t,n){var i=fn();Fr(e,t,n,i)}function Fr(e,t,n,i){var u={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Su(e))Sp(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,g=c(p,n);if(u.hasEagerState=!0,u.eagerState=g,ln(g,p))return tu(e,t,u,0),et===null&&eu(),!1}catch{}finally{}if(n=pc(e,t,u,i),n!==null)return Jt(n,e,i),_p(n,t,i),!0}return!1}function Pc(e,t,n,i){if(i={lane:2,revertLane:Of(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Su(e)){if(t)throw Error(s(479))}else t=pc(e,n,i,2),t!==null&&Jt(t,e,2)}function Su(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Sp(e,t){zi=mu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _p(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Th(e,n)}}var Jr={readContext:Rt,use:vu,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};Jr.useEffectEvent=ct;var Ep={readContext:Rt,use:vu,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:rp,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,bu(4194308,4,cp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bu(4194308,4,e,t)},useInsertionEffect:function(e,t){bu(4,2,e,t)},useMemo:function(e,t){var n=Bt();t=t===void 0?null:t;var i=e();if(Zl){Ba(!0);try{e()}finally{Ba(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Bt();if(n!==void 0){var u=n(t);if(Zl){Ba(!0);try{n(t)}finally{Ba(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=m1.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Yc(e);var t=e.queue,n=xp.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Fc,useDeferredValue:function(e,t){var n=Bt();return Jc(n,e,t)},useTransition:function(){var e=Yc(!1);return e=pp.bind(null,Ce,e.queue,!0,!1),Bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,u=Bt();if(Le){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),et===null)throw Error(s(349));(ke&127)!==0||Gm(i,t,n)}u.memoizedState=n;var c={value:n,getSnapshot:t};return u.queue=c,rp(Xm.bind(null,i,c,e),[e]),i.flags|=2048,Ui(9,{destroy:void 0},Ym.bind(null,i,c,n,t),null),n},useId:function(){var e=Bt(),t=et.identifierPrefix;if(Le){var n=Yn,i=Gn;n=(i&~(1<<32-an(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=s1++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ic,useFormState:tp,useActionState:tp,useOptimistic:function(e){var t=Bt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Pc.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Zc,useCacheRefresh:function(){return Bt().memoizedState=h1.bind(null,Ce)},useEffectEvent:function(e){var t=Bt(),n={impl:e};return t.memoizedState=n,function(){if((Xe&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Wc={readContext:Rt,use:vu,useCallback:dp,useContext:Rt,useEffect:Kc,useImperativeHandle:fp,useInsertionEffect:up,useLayoutEffect:op,useMemo:hp,useReducer:gu,useRef:ip,useState:function(){return gu(ha)},useDebugValue:Fc,useDeferredValue:function(e,t){var n=mt();return mp(n,$e.memoizedState,e,t)},useTransition:function(){var e=gu(ha)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:Kr(e),t]},useSyncExternalStore:Vm,useId:gp,useHostTransitionStatus:Ic,useFormState:np,useActionState:np,useOptimistic:function(e,t){var n=mt();return Jm(n,$e,e,t)},useMemoCache:Zc,useCacheRefresh:bp};Wc.useEffectEvent=sp;var Cp={readContext:Rt,use:vu,useCallback:dp,useContext:Rt,useEffect:Kc,useImperativeHandle:fp,useInsertionEffect:up,useLayoutEffect:op,useMemo:hp,useReducer:Gc,useRef:ip,useState:function(){return Gc(ha)},useDebugValue:Fc,useDeferredValue:function(e,t){var n=mt();return $e===null?Jc(n,e,t):mp(n,$e.memoizedState,e,t)},useTransition:function(){var e=Gc(ha)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:Kr(e),t]},useSyncExternalStore:Vm,useId:gp,useHostTransitionStatus:Ic,useFormState:lp,useActionState:lp,useOptimistic:function(e,t){var n=mt();return $e!==null?Jm(n,$e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Zc,useCacheRefresh:bp};Cp.useEffectEvent=sp;function ef(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var tf={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=fn(),u=Xa(i);u.payload=t,n!=null&&(u.callback=n),t=Ka(e,u,i),t!==null&&(Jt(t,e,i),Vr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=fn(),u=Xa(i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Ka(e,u,i),t!==null&&(Jt(t,e,i),Vr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fn(),i=Xa(n);i.tag=2,t!=null&&(i.callback=t),t=Ka(e,i,n),t!==null&&(Jt(t,e,n),Vr(t,e,n))}};function Np(e,t,n,i,u,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,p):t.prototype&&t.prototype.isPureReactComponent?!kr(n,i)||!kr(u,c):!0}function jp(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&tf.enqueueReplaceState(t,t.state,null)}function Vl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Tp(e){Ws(e)}function wp(e){console.error(e)}function Ap(e){Ws(e)}function _u(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Rp(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function nf(e,t,n){return n=Xa(n),n.tag=3,n.payload={element:null},n.callback=function(){_u(e,t)},n}function Op(e){return e=Xa(e),e.tag=3,e}function Mp(e,t,n,i){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=i.value;e.payload=function(){return u(c)},e.callback=function(){Rp(t,n,i)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Rp(t,n,i),typeof u!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function p1(e,t,n,i,u){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&wi(t,n,u,!0),n=sn.current,n!==null){switch(n.tag){case 31:case 13:return En===null?zu():n.alternate===null&&ft===0&&(ft=3),n.flags&=-257,n.flags|=65536,n.lanes=u,i===ou?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),wf(e,i,u)),!1;case 22:return n.flags|=65536,i===ou?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),wf(e,i,u)),!1}throw Error(s(435,n.tag))}return wf(e,i,u),zu(),!1}if(Le)return t=sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==Sc&&(e=Error(s(422),{cause:i}),Br(bn(e,n)))):(i!==Sc&&(t=Error(s(423),{cause:i}),Br(bn(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=bn(i,n),u=nf(e.stateNode,i,u),Mc(e,u),ft!==4&&(ft=2)),!1;var c=Error(s(520),{cause:i});if(c=bn(c,n),as===null?as=[c]:as.push(c),ft!==4&&(ft=2),t===null)return!0;i=bn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=nf(n.stateNode,i,e),Mc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Wa===null||!Wa.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Op(u),Mp(u,e,n,i),Mc(n,u),!1}n=n.return}while(n!==null);return!1}var af=Error(s(461)),gt=!1;function Ot(e,t,n,i){t.child=e===null?Um(t,null,n,i):Ql(t,e.child,n,i)}function Dp(e,t,n,i,u){n=n.render;var c=t.ref;if("ref"in i){var p={};for(var g in i)g!=="ref"&&(p[g]=i[g])}else p=i;return Ll(t),i=Bc(e,t,n,p,c,u),g=qc(),e!==null&&!gt?(Hc(e,t,u),ma(e,t,u)):(Le&&g&&bc(t),t.flags|=1,Ot(e,t,i,u),t.child)}function zp(e,t,n,i,u){if(e===null){var c=n.type;return typeof c=="function"&&!yc(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,kp(e,t,c,i,u)):(e=au(n.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!df(e,u)){var p=c.memoizedProps;if(n=n.compare,n=n!==null?n:kr,n(p,i)&&e.ref===t.ref)return ma(e,t,u)}return t.flags|=1,e=ua(c,i),e.ref=t.ref,e.return=t,t.child=e}function kp(e,t,n,i,u){if(e!==null){var c=e.memoizedProps;if(kr(c,i)&&e.ref===t.ref)if(gt=!1,t.pendingProps=i=c,df(e,u))(e.flags&131072)!==0&&(gt=!0);else return t.lanes=e.lanes,ma(e,t,u)}return lf(e,t,n,i,u)}function Up(e,t,n,i){var u=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|n:n,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~c}else i=0,t.child=null;return Lp(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&su(t,c!==null?c.cachePool:null),c!==null?qm(t,c):zc(),Hm(t);else return i=t.lanes=536870912,Lp(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(su(t,c.cachePool),qm(t,c),Ja(),t.memoizedState=null):(e!==null&&su(t,null),zc(),Ja());return Ot(e,t,u,n),t.child}function $r(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lp(e,t,n,i,u){var c=wc();return c=c===null?null:{parent:yt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&su(t,null),zc(),Hm(t),e!==null&&wi(e,t,i,!0),t.childLanes=u,null}function Eu(e,t){return t=Nu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bp(e,t,n){return Ql(t,e.child,null,n),e=Eu(t,t.pendingProps),e.flags|=2,un(t),t.memoizedState=null,e}function y1(e,t,n){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Le){if(i.mode==="hidden")return e=Eu(t,i),t.lanes=536870912,$r(null,e);if(Uc(t),(e=lt)?(e=$y(e,_n),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Sm(e),n.return=t,t.child=n,At=t,lt=null)):e=null,e===null)throw Va(t);return t.lanes=536870912,null}return Eu(t,i)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Uc(t),u)if(t.flags&256)t.flags&=-257,t=Bp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(gt||wi(e,t,n,!1),u=(n&e.childLanes)!==0,gt||u){if(i=et,i!==null&&(p=wh(i,n),p!==0&&p!==c.retryLane))throw c.retryLane=p,Dl(e,p),Jt(i,e,p),af;zu(),t=Bp(e,t,n)}else e=c.treeContext,lt=Cn(p.nextSibling),At=t,Le=!0,Za=null,_n=!1,e!==null&&Cm(t,e),t=Eu(t,i),t.flags|=4096;return t}return e=ua(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Cu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lf(e,t,n,i,u){return Ll(t),n=Bc(e,t,n,i,void 0,u),i=qc(),e!==null&&!gt?(Hc(e,t,u),ma(e,t,u)):(Le&&i&&bc(t),t.flags|=1,Ot(e,t,n,u),t.child)}function qp(e,t,n,i,u,c){return Ll(t),t.updateQueue=null,n=Zm(t,i,n,u),Qm(e),i=qc(),e!==null&&!gt?(Hc(e,t,c),ma(e,t,c)):(Le&&i&&bc(t),t.flags|=1,Ot(e,t,n,c),t.child)}function Hp(e,t,n,i,u){if(Ll(t),t.stateNode===null){var c=Ci,p=n.contextType;typeof p=="object"&&p!==null&&(c=Rt(p)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=tf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Rc(t),p=n.contextType,c.context=typeof p=="object"&&p!==null?Rt(p):Ci,c.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(ef(t,n,p,i),c.state=t.memoizedState),typeof n.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&&tf.enqueueReplaceState(c,c.state,null),Yr(t,i,c,u),Gr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,_=Vl(n,g);c.props=_;var O=c.context,B=n.contextType;p=Ci,typeof B=="object"&&B!==null&&(p=Rt(B));var Z=n.getDerivedStateFromProps;B=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||O!==p)&&jp(t,c,i,p),Ya=!1;var D=t.memoizedState;c.state=D,Yr(t,i,c,u),Gr(),O=t.memoizedState,g||D!==O||Ya?(typeof Z=="function"&&(ef(t,n,Z,i),O=t.memoizedState),(_=Ya||Np(t,n,_,i,D,O,p))?(B||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=O),c.props=i,c.state=O,c.context=p,i=_):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Oc(e,t),p=t.memoizedProps,B=Vl(n,p),c.props=B,Z=t.pendingProps,D=c.context,O=n.contextType,_=Ci,typeof O=="object"&&O!==null&&(_=Rt(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==Z||D!==_)&&jp(t,c,i,_),Ya=!1,D=t.memoizedState,c.state=D,Yr(t,i,c,u),Gr();var k=t.memoizedState;p!==Z||D!==k||Ya||e!==null&&e.dependencies!==null&&iu(e.dependencies)?(typeof g=="function"&&(ef(t,n,g,i),k=t.memoizedState),(B=Ya||Np(t,n,B,i,D,k,_)||e!==null&&e.dependencies!==null&&iu(e.dependencies))?(O||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,k,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,k,_)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=k),c.props=i,c.state=k,c.context=_,i=B):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Cu(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Ql(t,e.child,null,u),t.child=Ql(t,null,n,u)):Ot(e,t,n,u),t.memoizedState=c.state,e=t.child):e=ma(e,t,u),e}function Qp(e,t,n,i){return kl(),t.flags|=256,Ot(e,t,n,i),t.child}var rf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sf(e){return{baseLanes:e,cachePool:Rm()}}function uf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=cn),e}function Zp(e,t,n){var i=t.pendingProps,u=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),p&&(u=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Le){if(u?Fa(t):Ja(),(e=lt)?(e=$y(e,_n),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Sm(e),n.return=t,t.child=n,At=t,lt=null)):e=null,e===null)throw Va(t);return Gf(e)?t.lanes=32:t.lanes=536870912,null}var g=i.children;return i=i.fallback,u?(Ja(),u=t.mode,g=Nu({mode:"hidden",children:g},u),i=zl(i,u,n,null),g.return=t,i.return=t,g.sibling=i,t.child=g,i=t.child,i.memoizedState=sf(n),i.childLanes=uf(e,p,n),t.memoizedState=rf,$r(null,i)):(Fa(t),of(t,g))}var _=e.memoizedState;if(_!==null&&(g=_.dehydrated,g!==null)){if(c)t.flags&256?(Fa(t),t.flags&=-257,t=cf(e,t,n)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,t=null):(Ja(),g=i.fallback,u=t.mode,i=Nu({mode:"visible",children:i.children},u),g=zl(g,u,n,null),g.flags|=2,i.return=t,g.return=t,i.sibling=g,t.child=i,Ql(t,e.child,null,n),i=t.child,i.memoizedState=sf(n),i.childLanes=uf(e,p,n),t.memoizedState=rf,t=$r(null,i));else if(Fa(t),Gf(g)){if(p=g.nextSibling&&g.nextSibling.dataset,p)var O=p.dgst;p=O,i=Error(s(419)),i.stack="",i.digest=p,Br({value:i,source:null,stack:null}),t=cf(e,t,n)}else if(gt||wi(e,t,n,!1),p=(n&e.childLanes)!==0,gt||p){if(p=et,p!==null&&(i=wh(p,n),i!==0&&i!==_.retryLane))throw _.retryLane=i,Dl(e,i),Jt(p,e,i),af;Vf(g)||zu(),t=cf(e,t,n)}else Vf(g)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,lt=Cn(g.nextSibling),At=t,Le=!0,Za=null,_n=!1,e!==null&&Cm(t,e),t=of(t,i.children),t.flags|=4096);return t}return u?(Ja(),g=i.fallback,u=t.mode,_=e.child,O=_.sibling,i=ua(_,{mode:"hidden",children:i.children}),i.subtreeFlags=_.subtreeFlags&65011712,O!==null?g=ua(O,g):(g=zl(g,u,n,null),g.flags|=2),g.return=t,i.return=t,i.sibling=g,t.child=i,$r(null,i),i=t.child,g=e.child.memoizedState,g===null?g=sf(n):(u=g.cachePool,u!==null?(_=yt._currentValue,u=u.parent!==_?{parent:_,pool:_}:u):u=Rm(),g={baseLanes:g.baseLanes|n,cachePool:u}),i.memoizedState=g,i.childLanes=uf(e,p,n),t.memoizedState=rf,$r(e.child,i)):(Fa(t),n=e.child,e=n.sibling,n=ua(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function of(e,t){return t=Nu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nu(e,t){return e=rn(22,e,null,t),e.lanes=0,e}function cf(e,t,n){return Ql(t,e.child,null,n),e=of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Cc(e.return,t,n)}function ff(e,t,n,i,u,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:u,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=n,p.tailMode=u,p.treeForkCount=c)}function Gp(e,t,n){var i=t.pendingProps,u=i.revealOrder,c=i.tail;i=i.children;var p=ht.current,g=(p&2)!==0;if(g?(p=p&1|2,t.flags|=128):p&=1,ee(ht,p),Ot(e,t,i,n),i=Le?Lr:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vp(e,n,t);else if(e.tag===19)Vp(e,n,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(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&hu(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),ff(t,!1,u,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&hu(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}ff(t,!0,n,null,c,i);break;case"together":ff(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function ma(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(wi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function df(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&iu(e)))}function v1(e,t,n){switch(t.tag){case 3:at(t,t.stateNode.containerInfo),Ga(t,yt,e.memoizedState.cache),kl();break;case 27:case 5:mn(t);break;case 4:at(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Uc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Fa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Zp(e,t,n):(Fa(t),e=ma(e,t,n),e!==null?e.sibling:null);Fa(t);break;case 19:var u=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(wi(e,t,n,!1),i=(n&t.childLanes)!==0),u){if(i)return Gp(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(ht,ht.current),i)break;return null;case 22:return t.lanes=0,Up(e,t,n,t.pendingProps);case 24:Ga(t,yt,e.memoizedState.cache)}return ma(e,t,n)}function Yp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)gt=!0;else{if(!df(e,n)&&(t.flags&128)===0)return gt=!1,v1(e,t,n);gt=(e.flags&131072)!==0}else gt=!1,Le&&(t.flags&1048576)!==0&&Em(t,Lr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ql(t.elementType),t.type=e,typeof e=="function")yc(e)?(i=Vl(e,i),t.tag=1,t=Hp(null,t,e,i,n)):(t.tag=0,t=lf(null,t,e,i,n));else{if(e!=null){var u=e.$$typeof;if(u===V){t.tag=11,t=Dp(null,t,e,i,n);break e}else if(u===$){t.tag=14,t=zp(null,t,e,i,n);break e}}throw t=rt(e)||e,Error(s(306,t,""))}}return t;case 0:return lf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,u=Vl(i,t.pendingProps),Hp(e,t,i,u,n);case 3:e:{if(at(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;u=c.element,Oc(e,t),Yr(t,i,null,n);var p=t.memoizedState;if(i=p.cache,Ga(t,yt,i),i!==c.cache&&Nc(t,[yt],n,!0),Gr(),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=Qp(e,t,i,n);break e}else if(i!==u){u=bn(Error(s(424)),t),Br(u),t=Qp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(lt=Cn(e.firstChild),At=t,Le=!0,Za=null,_n=!0,n=Um(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(kl(),i===u){t=ma(e,t,n);break e}Ot(e,t,i,n)}t=t.child}return t;case 26:return Cu(e,t),e===null?(n=nv(t.type,null,t.pendingProps,null))?t.memoizedState=n:Le||(n=t.type,e=t.pendingProps,i=Qu(me.current).createElement(n),i[wt]=t,i[Vt]=e,Mt(i,n,e),Ct(i),t.stateNode=i):t.memoizedState=nv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return mn(t),e===null&&Le&&(i=t.stateNode=Wy(t.type,t.pendingProps,me.current),At=t,_n=!0,u=lt,al(t.type)?(Yf=u,lt=Cn(i.firstChild)):lt=u),Ot(e,t,t.pendingProps.children,n),Cu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Le&&((u=i=lt)&&(i=K1(i,t.type,t.pendingProps,_n),i!==null?(t.stateNode=i,At=t,lt=Cn(i.firstChild),_n=!1,u=!0):u=!1),u||Va(t)),mn(t),u=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,i=c.children,Hf(u,c)?i=null:p!==null&&Hf(u,p)&&(t.flags|=32),t.memoizedState!==null&&(u=Bc(e,t,u1,null,null,n),fs._currentValue=u),Cu(e,t),Ot(e,t,i,n),t.child;case 6:return e===null&&Le&&((e=n=lt)&&(n=F1(n,t.pendingProps,_n),n!==null?(t.stateNode=n,At=t,lt=null,e=!0):e=!1),e||Va(t)),null;case 13:return Zp(e,t,n);case 4:return at(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ql(t,null,i,n):Ot(e,t,i,n),t.child;case 11:return Dp(e,t,t.type,t.pendingProps,n);case 7:return Ot(e,t,t.pendingProps,n),t.child;case 8:return Ot(e,t,t.pendingProps.children,n),t.child;case 12:return Ot(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Ga(t,t.type,i.value),Ot(e,t,i.children,n),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Ll(t),u=Rt(u),i=i(u),t.flags|=1,Ot(e,t,i,n),t.child;case 14:return zp(e,t,t.type,t.pendingProps,n);case 15:return kp(e,t,t.type,t.pendingProps,n);case 19:return Gp(e,t,n);case 31:return y1(e,t,n);case 22:return Up(e,t,n,t.pendingProps);case 24:return Ll(t),i=Rt(yt),e===null?(u=wc(),u===null&&(u=et,c=jc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),t.memoizedState={parent:i,cache:u},Rc(t),Ga(t,yt,u)):((e.lanes&n)!==0&&(Oc(e,t),Yr(t,null,null,n),Gr()),u=e.memoizedState,c=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ga(t,yt,i)):(i=c.cache,Ga(t,yt,i),i!==u.cache&&Nc(t,[yt],n,!0))),Ot(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function pa(e){e.flags|=4}function hf(e,t,n,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(gy())e.flags|=8192;else throw Hl=ou,Ac}else e.flags&=-16777217}function Xp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sv(t))if(gy())e.flags|=8192;else throw Hl=ou,Ac}function ju(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nh():536870912,e.lanes|=t,Hi|=t)}function Ir(e,t){if(!Le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function g1(e,t,n){var i=t.pendingProps;switch(xc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return it(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fa(yt),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ti(t)?pa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_c())),it(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(pa(t),c!==null?(it(t),Xp(t,c)):(it(t),hf(t,u,null,i,n))):c?c!==e.memoizedState?(pa(t),it(t),Xp(t,c)):(it(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&pa(t),it(t),hf(t,u,e,i,n)),null;case 27:if(pn(t),n=me.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pa(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return it(t),null}e=le.current,Ti(t)?Nm(t):(e=Wy(u,i,n),t.stateNode=e,pa(t))}return it(t),null;case 5:if(pn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pa(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return it(t),null}if(c=le.current,Ti(t))Nm(t);else{var p=Qu(me.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);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(u,{is:i.is}):p.createElement(u)}}c[wt]=t,c[Vt]=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(Mt(c,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&pa(t)}}return it(t),hf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&pa(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=me.current,Ti(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,u=At,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Zy(e.nodeValue,n)),e||Va(t,!0)}else e=Qu(e).createTextNode(i),e[wt]=t,t.stateNode=e}return it(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ti(t),n!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[wt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),e=!1}else n=_c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(un(t),t):(un(t),null);if((t.flags&128)!==0)throw Error(s(558))}return it(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ti(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[wt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),u=!1}else u=_c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(un(t),t):(un(t),null)}return un(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ju(t,t.updateQueue),it(t),null);case 4:return _e(),e===null&&kf(t.stateNode.containerInfo),it(t),null;case 10:return fa(t.type),it(t),null;case 19:if(Q(ht),i=t.memoizedState,i===null)return it(t),null;if(u=(t.flags&128)!==0,c=i.rendering,c===null)if(u)Ir(i,!1);else{if(ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=hu(e),c!==null){for(t.flags|=128,Ir(i,!1),e=c.updateQueue,t.updateQueue=e,ju(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)xm(n,e),n=n.sibling;return ee(ht,ht.current&1|2),Le&&oa(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&tn()>Ou&&(t.flags|=128,u=!0,Ir(i,!1),t.lanes=4194304)}else{if(!u)if(e=hu(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,ju(t,e),Ir(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Le)return it(t),null}else 2*tn()-i.renderingStartTime>Ou&&n!==536870912&&(t.flags|=128,u=!0,Ir(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=tn(),e.sibling=null,n=ht.current,ee(ht,u?n&1|2:n&1),Le&&oa(t,i.treeForkCount),e):(it(t),null);case 22:case 23:return un(t),kc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),n=t.updateQueue,n!==null&&ju(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Q(Bl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(yt),it(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function b1(e,t){switch(xc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(yt),_e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pn(t),null;case 31:if(t.memoizedState!==null){if(un(t),t.alternate===null)throw Error(s(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(un(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(ht),null;case 4:return _e(),null;case 10:return fa(t.type),null;case 22:case 23:return un(t),kc(),e!==null&&Q(Bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(yt),null;case 25:return null;default:return null}}function Kp(e,t){switch(xc(t),t.tag){case 3:fa(yt),_e();break;case 26:case 27:case 5:pn(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&un(t);break;case 13:un(t);break;case 19:Q(ht);break;case 10:fa(t.type);break;case 22:case 23:un(t),kc(),e!==null&&Q(Bl);break;case 24:fa(yt)}}function Pr(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&e)===e){i=void 0;var c=n.create,p=n.inst;i=c(),p.destroy=i}n=n.next}while(n!==u)}}catch(g){Je(t,t.return,g)}}function $a(e,t,n){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){var p=i.inst,g=p.destroy;if(g!==void 0){p.destroy=void 0,u=t;var _=n,O=g;try{O()}catch(B){Je(u,_,B)}}}i=i.next}while(i!==c)}}catch(B){Je(t,t.return,B)}}function Fp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Bm(t,n)}catch(i){Je(e,e.return,i)}}}function Jp(e,t,n){n.props=Vl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Je(e,t,i)}}function Wr(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(i):n.current=i}}catch(u){Je(e,t,u)}}function Xn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(u){Je(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Je(e,t,u)}else n.current=null}function $p(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(u){Je(e,e.return,u)}}function mf(e,t,n){try{var i=e.stateNode;Q1(i,e.type,n,t),i[Vt]=t}catch(u){Je(e,e.return,u)}}function Ip(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&al(e.type)||e.tag===4}function pf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ip(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&&al(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 yf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ra));else if(i!==4&&(i===27&&al(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(yf(e,t,n),e=e.sibling;e!==null;)yf(e,t,n),e=e.sibling}function Tu(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&al(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Tu(e,t,n),e=e.sibling;e!==null;)Tu(e,t,n),e=e.sibling}function Pp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Mt(t,i,n),t[wt]=e,t[Vt]=n}catch(c){Je(e,e.return,c)}}var ya=!1,bt=!1,vf=!1,Wp=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function x1(e,t){if(e=e.containerInfo,Bf=Fu,e=fm(e),oc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var p=0,g=-1,_=-1,O=0,B=0,Z=e,D=null;t:for(;;){for(var k;Z!==n||u!==0&&Z.nodeType!==3||(g=p+u),Z!==c||i!==0&&Z.nodeType!==3||(_=p+i),Z.nodeType===3&&(p+=Z.nodeValue.length),(k=Z.firstChild)!==null;)D=Z,Z=k;for(;;){if(Z===e)break t;if(D===n&&++O===u&&(g=p),D===c&&++B===i&&(_=p),(k=Z.nextSibling)!==null)break;Z=D,D=Z.parentNode}Z=k}n=g===-1||_===-1?null:{start:g,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(qf={focusedElem:e,selectionRange:n},Fu=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,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(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,u=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var ie=Vl(n.type,u);e=i.getSnapshotBeforeUpdate(ie,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Je(n,n.return,ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Zf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zf(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function ey(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ga(e,n),i&4&&Pr(5,n);break;case 1:if(ga(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Je(n,n.return,p)}else{var u=Vl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Je(n,n.return,p)}}i&64&&Fp(n),i&512&&Wr(n,n.return);break;case 3:if(ga(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Bm(e,t)}catch(p){Je(n,n.return,p)}}break;case 27:t===null&&i&4&&Pp(n);case 26:case 5:ga(e,n),t===null&&i&4&&$p(n),i&512&&Wr(n,n.return);break;case 12:ga(e,n);break;case 31:ga(e,n),i&4&&ay(e,n);break;case 13:ga(e,n),i&4&&ly(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=A1.bind(null,n),J1(e,n))));break;case 22:if(i=n.memoizedState!==null||ya,!i){t=t!==null&&t.memoizedState!==null||bt,u=ya;var c=bt;ya=i,(bt=t)&&!c?ba(e,n,(n.subtreeFlags&8772)!==0):ga(e,n),ya=u,bt=c}break;case 30:break;default:ga(e,n)}}function ty(e){var t=e.alternate;t!==null&&(e.alternate=null,ty(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xo(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 st=null,Yt=!1;function va(e,t,n){for(n=n.child;n!==null;)ny(e,t,n),n=n.sibling}function ny(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Er,n)}catch{}switch(n.tag){case 26:bt||Xn(n,t),va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:bt||Xn(n,t);var i=st,u=Yt;al(n.type)&&(st=n.stateNode,Yt=!1),va(e,t,n),us(n.stateNode),st=i,Yt=u;break;case 5:bt||Xn(n,t);case 6:if(i=st,u=Yt,st=null,va(e,t,n),st=i,Yt=u,st!==null)if(Yt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(n.stateNode)}catch(c){Je(n,t,c)}else try{st.removeChild(n.stateNode)}catch(c){Je(n,t,c)}break;case 18:st!==null&&(Yt?(e=st,Fy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Fi(e)):Fy(st,n.stateNode));break;case 4:i=st,u=Yt,st=n.stateNode.containerInfo,Yt=!0,va(e,t,n),st=i,Yt=u;break;case 0:case 11:case 14:case 15:$a(2,n,t),bt||$a(4,n,t),va(e,t,n);break;case 1:bt||(Xn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Jp(n,t,i)),va(e,t,n);break;case 21:va(e,t,n);break;case 22:bt=(i=bt)||n.memoizedState!==null,va(e,t,n),bt=i;break;default:va(e,t,n)}}function ay(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fi(e)}catch(n){Je(t,t.return,n)}}}function ly(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fi(e)}catch(n){Je(t,t.return,n)}}function S1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Wp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wp),t;default:throw Error(s(435,e.tag))}}function wu(e,t){var n=S1(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var u=R1.bind(null,e,i);i.then(u,u)}})}function Xt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var u=n[i],c=e,p=t,g=p;e:for(;g!==null;){switch(g.tag){case 27:if(al(g.type)){st=g.stateNode,Yt=!1;break e}break;case 5:st=g.stateNode,Yt=!1;break e;case 3:case 4:st=g.stateNode.containerInfo,Yt=!0;break e}g=g.return}if(st===null)throw Error(s(160));ny(c,p,u),st=null,Yt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)iy(t,e),t=t.sibling}var Un=null;function iy(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(t,e),Kt(e),i&4&&($a(3,e,e.return),Pr(3,e),$a(5,e,e.return));break;case 1:Xt(t,e),Kt(e),i&512&&(bt||n===null||Xn(n,n.return)),i&64&&ya&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var u=Un;if(Xt(t,e),Kt(e),i&512&&(bt||n===null||Xn(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":c=u.getElementsByTagName("title")[0],(!c||c[jr]||c[wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(i),u.head.insertBefore(c,u.querySelector("head > title"))),Mt(c,i,n),c[wt]=e,Ct(c),i=c;break e;case"link":var p=iv("link","href",u).get(i+(n.href||""));if(p){for(var g=0;g<p.length;g++)if(c=p[g],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(g,1);break t}}c=u.createElement(i),Mt(c,i,n),u.head.appendChild(c);break;case"meta":if(p=iv("meta","content",u).get(i+(n.content||""))){for(g=0;g<p.length;g++)if(c=p[g],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(g,1);break t}}c=u.createElement(i),Mt(c,i,n),u.head.appendChild(c);break;default:throw Error(s(468,i))}c[wt]=e,Ct(c),i=c}e.stateNode=i}else rv(u,e.type,e.stateNode);else e.stateNode=lv(u,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?rv(u,e.type,e.stateNode):lv(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&mf(e,e.memoizedProps,n.memoizedProps)}break;case 27:Xt(t,e),Kt(e),i&512&&(bt||n===null||Xn(n,n.return)),n!==null&&i&4&&mf(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Xt(t,e),Kt(e),i&512&&(bt||n===null||Xn(n,n.return)),e.flags&32){u=e.stateNode;try{vi(u,"")}catch(ie){Je(e,e.return,ie)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,mf(e,u,n!==null?n.memoizedProps:u)),i&1024&&(vf=!0);break;case 6:if(Xt(t,e),Kt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(ie){Je(e,e.return,ie)}}break;case 3:if(Gu=null,u=Un,Un=Zu(t.containerInfo),Xt(t,e),Un=u,Kt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Fi(t.containerInfo)}catch(ie){Je(e,e.return,ie)}vf&&(vf=!1,ry(e));break;case 4:i=Un,Un=Zu(e.stateNode.containerInfo),Xt(t,e),Kt(e),Un=i;break;case 12:Xt(t,e),Kt(e);break;case 31:Xt(t,e),Kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,wu(e,i)));break;case 13:Xt(t,e),Kt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ru=tn()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,wu(e,i)));break;case 22:u=e.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,O=ya,B=bt;if(ya=O||u,bt=B||_,Xt(t,e),bt=B,ya=O,Kt(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||_||ya||bt||Gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){_=n=t;try{if(c=_.stateNode,u)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{g=_.stateNode;var Z=_.memoizedProps.style,D=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;g.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(ie){Je(_,_.return,ie)}}}else if(t.tag===6){if(n===null){_=t;try{_.stateNode.nodeValue=u?"":_.memoizedProps}catch(ie){Je(_,_.return,ie)}}}else if(t.tag===18){if(n===null){_=t;try{var k=_.stateNode;u?Jy(k,!0):Jy(_.stateNode,!1)}catch(ie){Je(_,_.return,ie)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,wu(e,n))));break;case 19:Xt(t,e),Kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,wu(e,i)));break;case 30:break;case 21:break;default:Xt(t,e),Kt(e)}}function Kt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Ip(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,c=pf(e);Tu(e,c,u);break;case 5:var p=n.stateNode;n.flags&32&&(vi(p,""),n.flags&=-33);var g=pf(e);Tu(e,g,p);break;case 3:case 4:var _=n.stateNode.containerInfo,O=pf(e);yf(e,O,_);break;default:throw Error(s(161))}}catch(B){Je(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ry(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ry(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ga(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ey(e,t.alternate,t),t=t.sibling}function Gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$a(4,t,t.return),Gl(t);break;case 1:Xn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Jp(t,t.return,n),Gl(t);break;case 27:us(t.stateNode);case 26:case 5:Xn(t,t.return),Gl(t);break;case 22:t.memoizedState===null&&Gl(t);break;case 30:Gl(t);break;default:Gl(t)}e=e.sibling}}function ba(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:ba(u,c,n),Pr(4,c);break;case 1:if(ba(u,c,n),i=c,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(O){Je(i,i.return,O)}if(i=c,u=i.updateQueue,u!==null){var g=i.stateNode;try{var _=u.shared.hiddenCallbacks;if(_!==null)for(u.shared.hiddenCallbacks=null,u=0;u<_.length;u++)Lm(_[u],g)}catch(O){Je(i,i.return,O)}}n&&p&64&&Fp(c),Wr(c,c.return);break;case 27:Pp(c);case 26:case 5:ba(u,c,n),n&&i===null&&p&4&&$p(c),Wr(c,c.return);break;case 12:ba(u,c,n);break;case 31:ba(u,c,n),n&&p&4&&ay(u,c);break;case 13:ba(u,c,n),n&&p&4&&ly(u,c);break;case 22:c.memoizedState===null&&ba(u,c,n),Wr(c,c.return);break;case 30:break;default:ba(u,c,n)}t=t.sibling}}function gf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&qr(n))}function bf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qr(e))}function Ln(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sy(e,t,n,i),t=t.sibling}function sy(e,t,n,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Ln(e,t,n,i),u&2048&&Pr(9,t);break;case 1:Ln(e,t,n,i);break;case 3:Ln(e,t,n,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qr(e)));break;case 12:if(u&2048){Ln(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,g=c.onPostCommit;typeof g=="function"&&g(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){Je(t,t.return,_)}}else Ln(e,t,n,i);break;case 31:Ln(e,t,n,i);break;case 13:Ln(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Ln(e,t,n,i):es(e,t):c._visibility&2?Ln(e,t,n,i):(c._visibility|=2,Li(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&gf(p,t);break;case 24:Ln(e,t,n,i),u&2048&&bf(t.alternate,t);break;default:Ln(e,t,n,i)}}function Li(e,t,n,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,g=n,_=i,O=p.flags;switch(p.tag){case 0:case 11:case 15:Li(c,p,g,_,u),Pr(8,p);break;case 23:break;case 22:var B=p.stateNode;p.memoizedState!==null?B._visibility&2?Li(c,p,g,_,u):es(c,p):(B._visibility|=2,Li(c,p,g,_,u)),u&&O&2048&&gf(p.alternate,p);break;case 24:Li(c,p,g,_,u),u&&O&2048&&bf(p.alternate,p);break;default:Li(c,p,g,_,u)}t=t.sibling}}function es(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,u=i.flags;switch(i.tag){case 22:es(n,i),u&2048&&gf(i.alternate,i);break;case 24:es(n,i),u&2048&&bf(i.alternate,i);break;default:es(n,i)}t=t.sibling}}var ts=8192;function Bi(e,t,n){if(e.subtreeFlags&ts)for(e=e.child;e!==null;)uy(e,t,n),e=e.sibling}function uy(e,t,n){switch(e.tag){case 26:Bi(e,t,n),e.flags&ts&&e.memoizedState!==null&&sS(n,Un,e.memoizedState,e.memoizedProps);break;case 5:Bi(e,t,n);break;case 3:case 4:var i=Un;Un=Zu(e.stateNode.containerInfo),Bi(e,t,n),Un=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ts,ts=16777216,Bi(e,t,n),ts=i):Bi(e,t,n));break;default:Bi(e,t,n)}}function oy(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 ns(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Nt=i,fy(i,e)}oy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cy(e),e=e.sibling}function cy(e){switch(e.tag){case 0:case 11:case 15:ns(e),e.flags&2048&&$a(9,e,e.return);break;case 3:ns(e);break;case 12:ns(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Au(e)):ns(e);break;default:ns(e)}}function Au(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Nt=i,fy(i,e)}oy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$a(8,t,t.return),Au(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Au(t));break;default:Au(t)}e=e.sibling}}function fy(e,t){for(;Nt!==null;){var n=Nt;switch(n.tag){case 0:case 11:case 15:$a(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:qr(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Nt=i;else e:for(n=e;Nt!==null;){i=Nt;var u=i.sibling,c=i.return;if(ty(i),i===n){Nt=null;break e}if(u!==null){u.return=c,Nt=u;break e}Nt=c}}}var _1={getCacheForType:function(e){var t=Rt(yt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Rt(yt).controller.signal}},E1=typeof WeakMap=="function"?WeakMap:Map,Xe=0,et=null,Oe=null,ke=0,Fe=0,on=null,Ia=!1,qi=!1,xf=!1,xa=0,ft=0,Pa=0,Yl=0,Sf=0,cn=0,Hi=0,as=null,Ft=null,_f=!1,Ru=0,dy=0,Ou=1/0,Mu=null,Wa=null,St=0,el=null,Qi=null,Sa=0,Ef=0,Cf=null,hy=null,ls=0,Nf=null;function fn(){return(Xe&2)!==0&&ke!==0?ke&-ke:U.T!==null?Of():Ah()}function my(){if(cn===0)if((ke&536870912)===0||Le){var e=Hs;Hs<<=1,(Hs&3932160)===0&&(Hs=262144),cn=e}else cn=536870912;return e=sn.current,e!==null&&(e.flags|=32),cn}function Jt(e,t,n){(e===et&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Zi(e,0),tl(e,ke,cn,!1)),Nr(e,n),((Xe&2)===0||e!==et)&&(e===et&&((Xe&2)===0&&(Yl|=n),ft===4&&tl(e,ke,cn,!1)),Kn(e))}function py(e,t,n){if((Xe&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Cr(e,t),u=i?j1(e,t):Tf(e,t,!0),c=i;do{if(u===0){qi&&!i&&tl(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!C1(n)){u=Tf(e,t,!1),c=!1;continue}if(u===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 g=e;u=as;var _=g.current.memoizedState.isDehydrated;if(_&&(Zi(g,p).flags|=256),p=Tf(g,p,!1),p!==2){if(xf&&!_){g.errorRecoveryDisabledLanes|=c,Yl|=c,u=4;break e}c=Ft,Ft=u,c!==null&&(Ft===null?Ft=c:Ft.push.apply(Ft,c))}u=p}if(c=!1,u!==2)continue}}if(u===1){Zi(e,0),tl(e,t,0,!0);break}e:{switch(i=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:tl(i,t,cn,!Ia);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Ru+300-tn(),10<u)){if(tl(i,t,cn,!Ia),Zs(i,0,!0)!==0)break e;Sa=t,i.timeoutHandle=Xy(yy.bind(null,i,n,Ft,Mu,_f,t,cn,Yl,Hi,Ia,c,"Throttled",-0,0),u);break e}yy(i,n,Ft,Mu,_f,t,cn,Yl,Hi,Ia,c,null,-0,0)}}break}while(!0);Kn(e)}function yy(e,t,n,i,u,c,p,g,_,O,B,Z,D,k){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ra},uy(t,c,Z);var ie=(c&62914560)===c?Ru-tn():(c&4194048)===c?dy-tn():0;if(ie=uS(Z,ie),ie!==null){Sa=c,e.cancelPendingCommit=ie(Cy.bind(null,e,t,c,n,i,u,p,g,_,B,Z,null,D,k)),tl(e,c,p,!O);return}}Cy(e,t,c,n,i,u,p,g,_)}function C1(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var u=n[i],c=u.getSnapshot;u=u.value;try{if(!ln(c(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 tl(e,t,n,i){t&=~Sf,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var c=31-an(u),p=1<<c;i[c]=-1,u&=~p}n!==0&&jh(e,n,t)}function Du(){return(Xe&6)===0?(is(0),!1):!0}function jf(){if(Oe!==null){if(Fe===0)var e=Oe.return;else e=Oe,ca=Ul=null,Qc(e),Mi=null,Qr=0,e=Oe;for(;e!==null;)Kp(e.alternate,e),e=e.return;Oe=null}}function Zi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,G1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sa=0,jf(),et=e,Oe=n=ua(e.current,null),ke=t,Fe=0,on=null,Ia=!1,qi=Cr(e,t),xf=!1,Hi=cn=Sf=Yl=Pa=ft=0,Ft=as=null,_f=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-an(i),c=1<<u;t|=e[u],i&=~c}return xa=t,eu(),n}function vy(e,t){Ce=null,U.H=Jr,t===Oi||t===uu?(t=Dm(),Fe=3):t===Ac?(t=Dm(),Fe=4):Fe=t===af?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,on=t,Oe===null&&(ft=1,_u(e,bn(t,e.current)))}function gy(){var e=sn.current;return e===null?!0:(ke&4194048)===ke?En===null:(ke&62914560)===ke||(ke&536870912)!==0?e===En:!1}function by(){var e=U.H;return U.H=Jr,e===null?Jr:e}function xy(){var e=U.A;return U.A=_1,e}function zu(){ft=4,Ia||(ke&4194048)!==ke&&sn.current!==null||(qi=!0),(Pa&134217727)===0&&(Yl&134217727)===0||et===null||tl(et,ke,cn,!1)}function Tf(e,t,n){var i=Xe;Xe|=2;var u=by(),c=xy();(et!==e||ke!==t)&&(Mu=null,Zi(e,t)),t=!1;var p=ft;e:do try{if(Fe!==0&&Oe!==null){var g=Oe,_=on;switch(Fe){case 8:jf(),p=6;break e;case 3:case 2:case 9:case 6:sn.current===null&&(t=!0);var O=Fe;if(Fe=0,on=null,Vi(e,g,_,O),n&&qi){p=0;break e}break;default:O=Fe,Fe=0,on=null,Vi(e,g,_,O)}}N1(),p=ft;break}catch(B){vy(e,B)}while(!0);return t&&e.shellSuspendCounter++,ca=Ul=null,Xe=i,U.H=u,U.A=c,Oe===null&&(et=null,ke=0,eu()),p}function N1(){for(;Oe!==null;)Sy(Oe)}function j1(e,t){var n=Xe;Xe|=2;var i=by(),u=xy();et!==e||ke!==t?(Mu=null,Ou=tn()+500,Zi(e,t)):qi=Cr(e,t);e:do try{if(Fe!==0&&Oe!==null){t=Oe;var c=on;t:switch(Fe){case 1:Fe=0,on=null,Vi(e,t,c,1);break;case 2:case 9:if(Om(c)){Fe=0,on=null,_y(t);break}t=function(){Fe!==2&&Fe!==9||et!==e||(Fe=7),Kn(e)},c.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Om(c)?(Fe=0,on=null,_y(t)):(Fe=0,on=null,Vi(e,t,c,7));break;case 5:var p=null;switch(Oe.tag){case 26:p=Oe.memoizedState;case 5:case 27:var g=Oe;if(p?sv(p):g.stateNode.complete){Fe=0,on=null;var _=g.sibling;if(_!==null)Oe=_;else{var O=g.return;O!==null?(Oe=O,ku(O)):Oe=null}break t}}Fe=0,on=null,Vi(e,t,c,5);break;case 6:Fe=0,on=null,Vi(e,t,c,6);break;case 8:jf(),ft=6;break e;default:throw Error(s(462))}}T1();break}catch(B){vy(e,B)}while(!0);return ca=Ul=null,U.H=i,U.A=u,Xe=n,Oe!==null?0:(et=null,ke=0,eu(),ft)}function T1(){for(;Oe!==null&&!$0();)Sy(Oe)}function Sy(e){var t=Yp(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?ku(e):Oe=t}function _y(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qp(n,t,t.pendingProps,t.type,void 0,ke);break;case 11:t=qp(n,t,t.pendingProps,t.type.render,t.ref,ke);break;case 5:Qc(t);default:Kp(n,t),t=Oe=xm(t,xa),t=Yp(n,t,xa)}e.memoizedProps=e.pendingProps,t===null?ku(e):Oe=t}function Vi(e,t,n,i){ca=Ul=null,Qc(t),Mi=null,Qr=0;var u=t.return;try{if(p1(e,u,t,n,ke)){ft=1,_u(e,bn(n,e.current)),Oe=null;return}}catch(c){if(u!==null)throw Oe=u,c;ft=1,_u(e,bn(n,e.current)),Oe=null;return}t.flags&32768?(Le||i===1?e=!0:qi||(ke&536870912)!==0?e=!1:(Ia=e=!0,(i===2||i===9||i===3||i===6)&&(i=sn.current,i!==null&&i.tag===13&&(i.flags|=16384))),Ey(t,e)):ku(t)}function ku(e){var t=e;do{if((t.flags&32768)!==0){Ey(t,Ia);return}e=t.return;var n=g1(t.alternate,t,xa);if(n!==null){Oe=n;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);ft===0&&(ft=5)}function Ey(e,t){do{var n=b1(e.alternate,e);if(n!==null){n.flags&=32767,Oe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=n}while(e!==null);ft=6,Oe=null}function Cy(e,t,n,i,u,c,p,g,_){e.cancelPendingCommit=null;do Uu();while(St!==0);if((Xe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=mc,rx(e,n,c,p,g,_),e===et&&(Oe=et=null,ke=0),Qi=t,el=e,Sa=n,Ef=c,Cf=u,hy=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,O1(Bs,function(){return Ay(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=U.T,U.T=null,u=J.p,J.p=2,p=Xe,Xe|=4;try{x1(e,t,n)}finally{Xe=p,J.p=u,U.T=i}}St=1,Ny(),jy(),Ty()}}function Ny(){if(St===1){St=0;var e=el,t=Qi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var i=J.p;J.p=2;var u=Xe;Xe|=4;try{iy(t,e);var c=qf,p=fm(e.containerInfo),g=c.focusedElem,_=c.selectionRange;if(p!==g&&g&&g.ownerDocument&&cm(g.ownerDocument.documentElement,g)){if(_!==null&&oc(g)){var O=_.start,B=_.end;if(B===void 0&&(B=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(B,g.value.length);else{var Z=g.ownerDocument||document,D=Z&&Z.defaultView||window;if(D.getSelection){var k=D.getSelection(),ie=g.textContent.length,ve=Math.min(_.start,ie),Pe=_.end===void 0?ve:Math.min(_.end,ie);!k.extend&&ve>Pe&&(p=Pe,Pe=ve,ve=p);var w=om(g,ve),N=om(g,Pe);if(w&&N&&(k.rangeCount!==1||k.anchorNode!==w.node||k.anchorOffset!==w.offset||k.focusNode!==N.node||k.focusOffset!==N.offset)){var R=Z.createRange();R.setStart(w.node,w.offset),k.removeAllRanges(),ve>Pe?(k.addRange(R),k.extend(N.node,N.offset)):(R.setEnd(N.node,N.offset),k.addRange(R))}}}}for(Z=[],k=g;k=k.parentNode;)k.nodeType===1&&Z.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Z.length;g++){var q=Z[g];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Fu=!!Bf,qf=Bf=null}finally{Xe=u,J.p=i,U.T=n}}e.current=t,St=2}}function jy(){if(St===2){St=0;var e=el,t=Qi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var i=J.p;J.p=2;var u=Xe;Xe|=4;try{ey(e,t.alternate,t)}finally{Xe=u,J.p=i,U.T=n}}St=3}}function Ty(){if(St===4||St===3){St=0,I0();var e=el,t=Qi,n=Sa,i=hy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?St=5:(St=0,Qi=el=null,wy(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Wa=null),Go(n),t=t.stateNode,nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(Er,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=U.T,u=J.p,J.p=2,U.T=null;try{for(var c=e.onRecoverableError,p=0;p<i.length;p++){var g=i[p];c(g.value,{componentStack:g.stack})}}finally{U.T=t,J.p=u}}(Sa&3)!==0&&Uu(),Kn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Nf?ls++:(ls=0,Nf=e):ls=0,is(0)}}function wy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qr(t)))}function Uu(){return Ny(),jy(),Ty(),Ay()}function Ay(){if(St!==5)return!1;var e=el,t=Ef;Ef=0;var n=Go(Sa),i=U.T,u=J.p;try{J.p=32>n?32:n,U.T=null,n=Cf,Cf=null;var c=el,p=Sa;if(St=0,Qi=el=null,Sa=0,(Xe&6)!==0)throw Error(s(331));var g=Xe;if(Xe|=4,cy(c.current),sy(c,c.current,p,n),Xe=g,is(0,!1),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Er,c)}catch{}return!0}finally{J.p=u,U.T=i,wy(e,t)}}function Ry(e,t,n){t=bn(n,t),t=nf(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(Nr(e,2),Kn(e))}function Je(e,t,n){if(e.tag===3)Ry(e,e,n);else for(;t!==null;){if(t.tag===3){Ry(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Wa===null||!Wa.has(i))){e=bn(n,e),n=Op(2),i=Ka(t,n,2),i!==null&&(Mp(n,i,t,e),Nr(i,2),Kn(i));break}}t=t.return}}function wf(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new E1;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(n)||(xf=!0,u.add(n),e=w1.bind(null,e,t,n),t.then(e,e))}function w1(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,et===e&&(ke&n)===n&&(ft===4||ft===3&&(ke&62914560)===ke&&300>tn()-Ru?(Xe&2)===0&&Zi(e,0):Sf|=n,Hi===ke&&(Hi=0)),Kn(e)}function Oy(e,t){t===0&&(t=Nh()),e=Dl(e,t),e!==null&&(Nr(e,t),Kn(e))}function A1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Oy(e,n)}function R1(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Oy(e,n)}function O1(e,t){return Ho(e,t)}var Lu=null,Gi=null,Af=!1,Bu=!1,Rf=!1,nl=0;function Kn(e){e!==Gi&&e.next===null&&(Gi===null?Lu=Gi=e:Gi=Gi.next=e),Bu=!0,Af||(Af=!0,D1())}function is(e,t){if(!Rf&&Bu){Rf=!0;do for(var n=!1,i=Lu;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var c=0;else{var p=i.suspendedLanes,g=i.pingedLanes;c=(1<<31-an(42|e)+1)-1,c&=u&~(p&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,ky(i,c))}else c=ke,c=Zs(i,i===et?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Cr(i,c)||(n=!0,ky(i,c));i=i.next}while(n);Rf=!1}}function M1(){My()}function My(){Bu=Af=!1;var e=0;nl!==0&&V1()&&(e=nl);for(var t=tn(),n=null,i=Lu;i!==null;){var u=i.next,c=Dy(i,t);c===0?(i.next=null,n===null?Lu=u:n.next=u,u===null&&(Gi=n)):(n=i,(e!==0||(c&3)!==0)&&(Bu=!0)),i=u}St!==0&&St!==5||is(e),nl!==0&&(nl=0)}function Dy(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-an(c),g=1<<p,_=u[p];_===-1?((g&n)===0||(g&i)!==0)&&(u[p]=ix(g,t)):_<=t&&(e.expiredLanes|=g),c&=~g}if(t=et,n=ke,n=Zs(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Qo(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Cr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Qo(i),Go(n)){case 2:case 8:n=Eh;break;case 32:n=Bs;break;case 268435456:n=Ch;break;default:n=Bs}return i=zy.bind(null,e),n=Ho(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Qo(i),e.callbackPriority=2,e.callbackNode=null,2}function zy(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var i=ke;return i=Zs(e,e===et?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(py(e,i,t),Dy(e,tn()),e.callbackNode!=null&&e.callbackNode===n?zy.bind(null,e):null)}function ky(e,t){if(Uu())return null;py(e,t,!0)}function D1(){Y1(function(){(Xe&6)!==0?Ho(_h,M1):My()})}function Of(){if(nl===0){var e=Ai;e===0&&(e=qs,qs<<=1,(qs&261888)===0&&(qs=256)),nl=e}return nl}function Uy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xs(""+e)}function Ly(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function z1(e,t,n,i,u){if(t==="submit"&&n&&n.stateNode===u){var c=Uy((u[Vt]||null).action),p=i.submitter;p&&(t=(t=p[Vt]||null)?Uy(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var g=new $s("action","action",null,i,u);e.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(nl!==0){var _=p?Ly(u,p):new FormData(u);$c(n,{pending:!0,data:_,method:u.method,action:c},null,_)}}else typeof c=="function"&&(g.preventDefault(),_=p?Ly(u,p):new FormData(u),$c(n,{pending:!0,data:_,method:u.method,action:c},c,_))},currentTarget:u}]})}}for(var Mf=0;Mf<hc.length;Mf++){var Df=hc[Mf],k1=Df.toLowerCase(),U1=Df[0].toUpperCase()+Df.slice(1);kn(k1,"on"+U1)}kn(mm,"onAnimationEnd"),kn(pm,"onAnimationIteration"),kn(ym,"onAnimationStart"),kn("dblclick","onDoubleClick"),kn("focusin","onFocus"),kn("focusout","onBlur"),kn(Px,"onTransitionRun"),kn(Wx,"onTransitionStart"),kn(e1,"onTransitionCancel"),kn(vm,"onTransitionEnd"),pi("onMouseEnter",["mouseout","mouseover"]),pi("onMouseLeave",["mouseout","mouseover"]),pi("onPointerEnter",["pointerout","pointerover"]),pi("onPointerLeave",["pointerout","pointerover"]),Al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Al("onBeforeInput",["compositionend","keypress","textInput","paste"]),Al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rs="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(" "),L1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rs));function By(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var p=i.length-1;0<=p;p--){var g=i[p],_=g.instance,O=g.currentTarget;if(g=g.listener,_!==c&&u.isPropagationStopped())break e;c=g,u.currentTarget=O;try{c(u)}catch(B){Ws(B)}u.currentTarget=null,c=_}else for(p=0;p<i.length;p++){if(g=i[p],_=g.instance,O=g.currentTarget,g=g.listener,_!==c&&u.isPropagationStopped())break e;c=g,u.currentTarget=O;try{c(u)}catch(B){Ws(B)}u.currentTarget=null,c=_}}}}function Me(e,t){var n=t[Yo];n===void 0&&(n=t[Yo]=new Set);var i=e+"__bubble";n.has(i)||(qy(t,e,2,!1),n.add(i))}function zf(e,t,n){var i=0;t&&(i|=4),qy(n,e,i,t)}var qu="_reactListening"+Math.random().toString(36).slice(2);function kf(e){if(!e[qu]){e[qu]=!0,Mh.forEach(function(n){n!=="selectionchange"&&(L1.has(n)||zf(n,!1,e),zf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qu]||(t[qu]=!0,zf("selectionchange",!1,t))}}function qy(e,t,n,i){switch(mv(t)){case 2:var u=fS;break;case 8:u=dS;break;default:u=$f}n=u.bind(null,t,n,e),u=void 0,!ec||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Uf(e,t,n,i,u){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 g=i.stateNode.containerInfo;if(g===u)break;if(p===4)for(p=i.return;p!==null;){var _=p.tag;if((_===3||_===4)&&p.stateNode.containerInfo===u)return;p=p.return}for(;g!==null;){if(p=di(g),p===null)return;if(_=p.tag,_===5||_===6||_===26||_===27){i=c=p;continue e}g=g.parentNode}}i=i.return}Gh(function(){var O=c,B=Po(n),Z=[];e:{var D=gm.get(e);if(D!==void 0){var k=$s,ie=e;switch(e){case"keypress":if(Fs(n)===0)break e;case"keydown":case"keyup":k=Rx;break;case"focusin":ie="focus",k=lc;break;case"focusout":ie="blur",k=lc;break;case"beforeblur":case"afterblur":k=lc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Kh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=gx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Dx;break;case mm:case pm:case ym:k=Sx;break;case vm:k=kx;break;case"scroll":case"scrollend":k=yx;break;case"wheel":k=Lx;break;case"copy":case"cut":case"paste":k=Ex;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Jh;break;case"toggle":case"beforetoggle":k=qx}var ve=(t&4)!==0,Pe=!ve&&(e==="scroll"||e==="scrollend"),w=ve?D!==null?D+"Capture":null:D;ve=[];for(var N=O,R;N!==null;){var q=N;if(R=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||R===null||w===null||(q=wr(N,w),q!=null&&ve.push(ss(N,q,R))),Pe)break;N=N.return}0<ve.length&&(D=new k(D,ie,null,n,B),Z.push({event:D,listeners:ve}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",D&&n!==Io&&(ie=n.relatedTarget||n.fromElement)&&(di(ie)||ie[fi]))break e;if((k||D)&&(D=B.window===B?B:(D=B.ownerDocument)?D.defaultView||D.parentWindow:window,k?(ie=n.relatedTarget||n.toElement,k=O,ie=ie?di(ie):null,ie!==null&&(Pe=f(ie),ve=ie.tag,ie!==Pe||ve!==5&&ve!==27&&ve!==6)&&(ie=null)):(k=null,ie=O),k!==ie)){if(ve=Kh,q="onMouseLeave",w="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ve=Jh,q="onPointerLeave",w="onPointerEnter",N="pointer"),Pe=k==null?D:Tr(k),R=ie==null?D:Tr(ie),D=new ve(q,N+"leave",k,n,B),D.target=Pe,D.relatedTarget=R,q=null,di(B)===O&&(ve=new ve(w,N+"enter",ie,n,B),ve.target=R,ve.relatedTarget=Pe,q=ve),Pe=q,k&&ie)t:{for(ve=B1,w=k,N=ie,R=0,q=w;q;q=ve(q))R++;q=0;for(var ye=N;ye;ye=ve(ye))q++;for(;0<R-q;)w=ve(w),R--;for(;0<q-R;)N=ve(N),q--;for(;R--;){if(w===N||N!==null&&w===N.alternate){ve=w;break t}w=ve(w),N=ve(N)}ve=null}else ve=null;k!==null&&Hy(Z,D,k,ve,!1),ie!==null&&Pe!==null&&Hy(Z,Pe,ie,ve,!0)}}e:{if(D=O?Tr(O):window,k=D.nodeName&&D.nodeName.toLowerCase(),k==="select"||k==="input"&&D.type==="file")var Ve=am;else if(tm(D))if(lm)Ve=Jx;else{Ve=Kx;var fe=Xx}else k=D.nodeName,!k||k.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&$o(O.elementType)&&(Ve=am):Ve=Fx;if(Ve&&(Ve=Ve(e,O))){nm(Z,Ve,n,B);break e}fe&&fe(e,D,O),e==="focusout"&&O&&D.type==="number"&&O.memoizedProps.value!=null&&Jo(D,"number",D.value)}switch(fe=O?Tr(O):window,e){case"focusin":(tm(fe)||fe.contentEditable==="true")&&(Si=fe,cc=O,Ur=null);break;case"focusout":Ur=cc=Si=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,dm(Z,n,B);break;case"selectionchange":if(Ix)break;case"keydown":case"keyup":dm(Z,n,B)}var je;if(rc)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else xi?Wh(e,n)&&(Ue="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ue="onCompositionStart");Ue&&($h&&n.locale!=="ko"&&(xi||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&xi&&(je=Yh()):(Ha=B,tc="value"in Ha?Ha.value:Ha.textContent,xi=!0)),fe=Hu(O,Ue),0<fe.length&&(Ue=new Fh(Ue,e,null,n,B),Z.push({event:Ue,listeners:fe}),je?Ue.data=je:(je=em(n),je!==null&&(Ue.data=je)))),(je=Qx?Zx(e,n):Vx(e,n))&&(Ue=Hu(O,"onBeforeInput"),0<Ue.length&&(fe=new Fh("onBeforeInput","beforeinput",null,n,B),Z.push({event:fe,listeners:Ue}),fe.data=je)),z1(Z,e,O,n,B)}By(Z,t)})}function ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hu(e,t){for(var n=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=wr(e,n),u!=null&&i.unshift(ss(e,u,c)),u=wr(e,t),u!=null&&i.push(ss(e,u,c))),e.tag===3)return i;e=e.return}return[]}function B1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Hy(e,t,n,i,u){for(var c=t._reactName,p=[];n!==null&&n!==i;){var g=n,_=g.alternate,O=g.stateNode;if(g=g.tag,_!==null&&_===i)break;g!==5&&g!==26&&g!==27||O===null||(_=O,u?(O=wr(n,c),O!=null&&p.unshift(ss(n,O,_))):u||(O=wr(n,c),O!=null&&p.push(ss(n,O,_)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var q1=/\r\n?/g,H1=/\u0000|\uFFFD/g;function Qy(e){return(typeof e=="string"?e:""+e).replace(q1,`
|
|
49
|
-
`).replace(H1,"")}function Zy(e,t){return t=Qy(t),Qy(e)===t}function Ie(e,t,n,i,u,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||vi(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&vi(e,""+i);break;case"className":Gs(e,"class",i);break;case"tabIndex":Gs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Gs(e,n,i);break;case"style":Zh(e,i,c);break;case"data":if(t!=="object"){Gs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Xs(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Ie(e,t,"name",u.name,u,null),Ie(e,t,"formEncType",u.formEncType,u,null),Ie(e,t,"formMethod",u.formMethod,u,null),Ie(e,t,"formTarget",u.formTarget,u,null)):(Ie(e,t,"encType",u.encType,u,null),Ie(e,t,"method",u.method,u,null),Ie(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Xs(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ra);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}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}n=Xs(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Vs(e,"popover",i);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Vs(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=mx.get(n)||n,Vs(e,n,i))}}function Lf(e,t,n,i,u,c){switch(n){case"style":Zh(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?vi(e,i):(typeof i=="number"||typeof i=="bigint")&&vi(e,""+i);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dh.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),c=e[Vt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,u);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Vs(e,n,i)}}}function Mt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var i=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var p=n[c];if(p!=null)switch(c){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ie(e,t,c,p,n,null)}}u&&Ie(e,t,"srcSet",n.srcSet,n,null),i&&Ie(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var g=c=p=u=null,_=null,O=null;for(i in n)if(n.hasOwnProperty(i)){var B=n[i];if(B!=null)switch(i){case"name":u=B;break;case"type":p=B;break;case"checked":_=B;break;case"defaultChecked":O=B;break;case"value":c=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Ie(e,t,i,B,n,null)}}Bh(e,c,g,_,O,p,u,!1);return;case"select":Me("invalid",e),i=p=c=null;for(u in n)if(n.hasOwnProperty(u)&&(g=n[u],g!=null))switch(u){case"value":c=g;break;case"defaultValue":p=g;break;case"multiple":i=g;default:Ie(e,t,u,g,n,null)}t=c,n=p,e.multiple=!!i,t!=null?yi(e,!!i,t,!1):n!=null&&yi(e,!!i,n,!0);return;case"textarea":Me("invalid",e),c=u=i=null;for(p in n)if(n.hasOwnProperty(p)&&(g=n[p],g!=null))switch(p){case"value":i=g;break;case"defaultValue":u=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:Ie(e,t,p,g,n,null)}Hh(e,i,u,c);return;case"option":for(_ in n)if(n.hasOwnProperty(_)&&(i=n[_],i!=null))switch(_){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ie(e,t,_,i,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(i=0;i<rs.length;i++)Me(rs[i],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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(O in n)if(n.hasOwnProperty(O)&&(i=n[O],i!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ie(e,t,O,i,n,null)}return;default:if($o(t)){for(B in n)n.hasOwnProperty(B)&&(i=n[B],i!==void 0&&Lf(e,t,B,i,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(i=n[g],i!=null&&Ie(e,t,g,i,n,null))}function Q1(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,p=null,g=null,_=null,O=null,B=null;for(k in n){var Z=n[k];if(n.hasOwnProperty(k)&&Z!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":_=Z;default:i.hasOwnProperty(k)||Ie(e,t,k,null,i,Z)}}for(var D in i){var k=i[D];if(Z=n[D],i.hasOwnProperty(D)&&(k!=null||Z!=null))switch(D){case"type":c=k;break;case"name":u=k;break;case"checked":O=k;break;case"defaultChecked":B=k;break;case"value":p=k;break;case"defaultValue":g=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==Z&&Ie(e,t,D,k,i,Z)}}Fo(e,p,g,_,O,B,c,u);return;case"select":k=p=g=D=null;for(c in n)if(_=n[c],n.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":k=_;default:i.hasOwnProperty(c)||Ie(e,t,c,null,i,_)}for(u in i)if(c=i[u],_=n[u],i.hasOwnProperty(u)&&(c!=null||_!=null))switch(u){case"value":D=c;break;case"defaultValue":g=c;break;case"multiple":p=c;default:c!==_&&Ie(e,t,u,c,i,_)}t=g,n=p,i=k,D!=null?yi(e,!!n,D,!1):!!i!=!!n&&(t!=null?yi(e,!!n,t,!0):yi(e,!!n,n?[]:"",!1));return;case"textarea":k=D=null;for(g in n)if(u=n[g],n.hasOwnProperty(g)&&u!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ie(e,t,g,null,i,u)}for(p in i)if(u=i[p],c=n[p],i.hasOwnProperty(p)&&(u!=null||c!=null))switch(p){case"value":D=u;break;case"defaultValue":k=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&Ie(e,t,p,u,i,c)}qh(e,D,k);return;case"option":for(var ie in n)if(D=n[ie],n.hasOwnProperty(ie)&&D!=null&&!i.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Ie(e,t,ie,null,i,D)}for(_ in i)if(D=i[_],k=n[_],i.hasOwnProperty(_)&&D!==k&&(D!=null||k!=null))switch(_){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Ie(e,t,_,D,i,k)}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 ve in n)D=n[ve],n.hasOwnProperty(ve)&&D!=null&&!i.hasOwnProperty(ve)&&Ie(e,t,ve,null,i,D);for(O in i)if(D=i[O],k=n[O],i.hasOwnProperty(O)&&D!==k&&(D!=null||k!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:Ie(e,t,O,D,i,k)}return;default:if($o(t)){for(var Pe in n)D=n[Pe],n.hasOwnProperty(Pe)&&D!==void 0&&!i.hasOwnProperty(Pe)&&Lf(e,t,Pe,void 0,i,D);for(B in i)D=i[B],k=n[B],!i.hasOwnProperty(B)||D===k||D===void 0&&k===void 0||Lf(e,t,B,D,i,k);return}}for(var w in n)D=n[w],n.hasOwnProperty(w)&&D!=null&&!i.hasOwnProperty(w)&&Ie(e,t,w,null,i,D);for(Z in i)D=i[Z],k=n[Z],!i.hasOwnProperty(Z)||D===k||D==null&&k==null||Ie(e,t,Z,D,i,k)}function Vy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var u=n[i],c=u.transferSize,p=u.initiatorType,g=u.duration;if(c&&g&&Vy(p)){for(p=0,g=u.responseEnd,i+=1;i<n.length;i++){var _=n[i],O=_.startTime;if(O>g)break;var B=_.transferSize,Z=_.initiatorType;B&&Vy(Z)&&(_=_.responseEnd,p+=B*(_<g?1:(g-O)/(_-O)))}if(--i,t+=8*(c+p)/(u.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 Bf=null,qf=null;function Qu(e){return e.nodeType===9?e:e.ownerDocument}function Gy(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 Yy(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 Hf(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 Qf=null;function V1(){var e=window.event;return e&&e.type==="popstate"?e===Qf?!1:(Qf=e,!0):(Qf=null,!1)}var Xy=typeof setTimeout=="function"?setTimeout:void 0,G1=typeof clearTimeout=="function"?clearTimeout:void 0,Ky=typeof Promise=="function"?Promise:void 0,Y1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ky<"u"?function(e){return Ky.resolve(null).then(e).catch(X1)}:Xy;function X1(e){setTimeout(function(){throw e})}function al(e){return e==="head"}function Fy(e,t){var n=t,i=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(u),Fi(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")us(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,us(n);for(var c=n.firstChild;c;){var p=c.nextSibling,g=c.nodeName;c[jr]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=p}}else n==="body"&&us(e.ownerDocument.body);n=u}while(n);Fi(t)}function Jy(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Zf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Zf(n),Xo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function K1(e,t,n,i){for(;e.nodeType===1;){var u=n;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!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Cn(e.nextSibling),e===null)break}return null}function F1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Cn(e.nextSibling),e===null))return null;return e}function $y(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Cn(e.nextSibling),e===null))return null;return e}function Vf(e){return e.data==="$?"||e.data==="$~"}function Gf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function J1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Cn(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 Yf=null;function Iy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Py(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Wy(e,t,n){switch(t=Qu(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function us(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xo(e)}var Nn=new Map,ev=new Set;function Zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _a=J.d;J.d={f:$1,r:I1,D:P1,C:W1,L:eS,m:tS,X:aS,S:nS,M:lS};function $1(){var e=_a.f(),t=Du();return e||t}function I1(e){var t=hi(e);t!==null&&t.tag===5&&t.type==="form"?vp(t):_a.r(e)}var Yi=typeof document>"u"?null:document;function tv(e,t,n){var i=Yi;if(i&&typeof t=="string"&&t){var u=vn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),ev.has(u)||(ev.add(u),e={rel:e,crossOrigin:n,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Mt(t,"link",e),Ct(t),i.head.appendChild(t)))}}function P1(e){_a.D(e),tv("dns-prefetch",e,null)}function W1(e,t){_a.C(e,t),tv("preconnect",e,t)}function eS(e,t,n){_a.L(e,t,n);var i=Yi;if(i&&e&&t){var u='link[rel="preload"][as="'+vn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+vn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+vn(n.imageSizes)+'"]')):u+='[href="'+vn(e)+'"]';var c=u;switch(t){case"style":c=Xi(e);break;case"script":c=Ki(e)}Nn.has(c)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Nn.set(c,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(os(c))||t==="script"&&i.querySelector(cs(c))||(t=i.createElement("link"),Mt(t,"link",e),Ct(t),i.head.appendChild(t)))}}function tS(e,t){_a.m(e,t);var n=Yi;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+vn(i)+'"][href="'+vn(e)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ki(e)}if(!Nn.has(c)&&(e=S({rel:"modulepreload",href:e},t),Nn.set(c,e),n.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(cs(c)))return}i=n.createElement("link"),Mt(i,"link",e),Ct(i),n.head.appendChild(i)}}}function nS(e,t,n){_a.S(e,t,n);var i=Yi;if(i&&e){var u=mi(i).hoistableStyles,c=Xi(e);t=t||"default";var p=u.get(c);if(!p){var g={loading:0,preload:null};if(p=i.querySelector(os(c)))g.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Nn.get(c))&&Xf(e,n);var _=p=i.createElement("link");Ct(_),Mt(_,"link",e),_._p=new Promise(function(O,B){_.onload=O,_.onerror=B}),_.addEventListener("load",function(){g.loading|=1}),_.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Vu(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:g},u.set(c,p)}}}function aS(e,t){_a.X(e,t);var n=Yi;if(n&&e){var i=mi(n).hoistableScripts,u=Ki(e),c=i.get(u);c||(c=n.querySelector(cs(u)),c||(e=S({src:e,async:!0},t),(t=Nn.get(u))&&Kf(e,t),c=n.createElement("script"),Ct(c),Mt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function lS(e,t){_a.M(e,t);var n=Yi;if(n&&e){var i=mi(n).hoistableScripts,u=Ki(e),c=i.get(u);c||(c=n.querySelector(cs(u)),c||(e=S({src:e,async:!0,type:"module"},t),(t=Nn.get(u))&&Kf(e,t),c=n.createElement("script"),Ct(c),Mt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function nv(e,t,n,i){var u=(u=me.current)?Zu(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Xi(n.href),n=mi(u).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Xi(n.href);var c=mi(u).hoistableStyles,p=c.get(e);if(p||(u=u.ownerDocument||u,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=u.querySelector(os(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Nn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Nn.set(e,n),c||iS(u,e,n,p.state))),t&&i===null)throw Error(s(528,""));return p}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ki(n),n=mi(u).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Xi(e){return'href="'+vn(e)+'"'}function os(e){return'link[rel="stylesheet"]['+e+"]"}function av(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function iS(e,t,n,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}),Mt(t,"link",n),Ct(t),e.head.appendChild(t))}function Ki(e){return'[src="'+vn(e)+'"]'}function cs(e){return"script[async]"+e}function lv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+vn(n.href)+'"]');if(i)return t.instance=i,Ct(i),i;var u=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ct(i),Mt(i,"style",u),Vu(i,n.precedence,e),t.instance=i;case"stylesheet":u=Xi(n.href);var c=e.querySelector(os(u));if(c)return t.state.loading|=4,t.instance=c,Ct(c),c;i=av(n),(u=Nn.get(u))&&Xf(i,u),c=(e.ownerDocument||e).createElement("link"),Ct(c);var p=c;return p._p=new Promise(function(g,_){p.onload=g,p.onerror=_}),Mt(c,"link",i),t.state.loading|=4,Vu(c,n.precedence,e),t.instance=c;case"script":return c=Ki(n.src),(u=e.querySelector(cs(c)))?(t.instance=u,Ct(u),u):(i=n,(u=Nn.get(c))&&(i=S({},n),Kf(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ct(u),Mt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Vu(i,n.precedence,e));return t.instance}function Vu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,p=0;p<i.length;p++){var g=i[p];if(g.dataset.precedence===t)c=g;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Xf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Gu=null;function iv(e,t,n){if(Gu===null){var i=new Map,u=Gu=new Map;u.set(n,i)}else u=Gu,i=u.get(n),i||(i=new Map,u.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var c=n[u];if(!(c[jr]||c[wt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var g=i.get(p);g?g.push(c):i.set(p,[c])}}return i}function rv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function rS(e,t,n){if(n===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;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!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 sv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function sS(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Xi(i.href),c=t.querySelector(os(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Ct(c);return}c=t.ownerDocument||t,i=av(i),(u=Nn.get(u))&&Xf(i,u),c=c.createElement("link"),Ct(c);var p=c;p._p=new Promise(function(g,_){p.onload=g,p.onerror=_}),Mt(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Yu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ff=0;function uS(e,t){return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Ff===0&&(Ff=62500*Z1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Ff?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function Yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xu=null;function Ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xu=new Map,t.forEach(oS,e),Xu=null,Yu.call(e))}function oS(e,t){if(!(t.state.loading&4)){var n=Xu.get(e);if(n)var i=n.get(null);else{n=new Map,Xu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var p=u[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),i=p)}i&&n.set(null,i)}u=t.instance,p=u.getAttribute("data-precedence"),c=n.get(p)||i,c===i&&n.set(null,u),n.set(p,u),this.count++,i=Yu.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var fs={$$typeof:H,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function cS(e,t,n,i,u,c,p,g,_){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=Zo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zo(0),this.hiddenUpdates=Zo(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function uv(e,t,n,i,u,c,p,g,_,O,B,Z){return e=new cS(e,t,n,p,_,O,B,Z,g),t=1,c===!0&&(t|=24),c=rn(3,null,null,t),e.current=c,c.stateNode=e,t=jc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Rc(c),e}function ov(e){return e?(e=Ci,e):Ci}function cv(e,t,n,i,u,c){u=ov(u),i.context===null?i.context=u:i.pendingContext=u,i=Xa(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=Ka(e,i,t),n!==null&&(Jt(n,e,t),Vr(n,e,t))}function fv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jf(e,t){fv(e,t),(e=e.alternate)&&fv(e,t)}function dv(e){if(e.tag===13||e.tag===31){var t=Dl(e,67108864);t!==null&&Jt(t,e,67108864),Jf(e,67108864)}}function hv(e){if(e.tag===13||e.tag===31){var t=fn();t=Vo(t);var n=Dl(e,t);n!==null&&Jt(n,e,t),Jf(e,t)}}var Fu=!0;function fS(e,t,n,i){var u=U.T;U.T=null;var c=J.p;try{J.p=2,$f(e,t,n,i)}finally{J.p=c,U.T=u}}function dS(e,t,n,i){var u=U.T;U.T=null;var c=J.p;try{J.p=8,$f(e,t,n,i)}finally{J.p=c,U.T=u}}function $f(e,t,n,i){if(Fu){var u=If(i);if(u===null)Uf(e,t,i,Ju,n),pv(e,i);else if(mS(u,e,t,n,i))i.stopPropagation();else if(pv(e,i),t&4&&-1<hS.indexOf(e)){for(;u!==null;){var c=hi(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=wl(c.pendingLanes);if(p!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;p;){var _=1<<31-an(p);g.entanglements[1]|=_,p&=~_}Kn(c),(Xe&6)===0&&(Ou=tn()+500,is(0))}}break;case 31:case 13:g=Dl(c,2),g!==null&&Jt(g,c,2),Du(),Jf(c,2)}if(c=If(i),c===null&&Uf(e,t,i,Ju,n),c===u)break;u=c}u!==null&&i.stopPropagation()}else Uf(e,t,i,null,n)}}function If(e){return e=Po(e),Pf(e)}var Ju=null;function Pf(e){if(Ju=null,e=di(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===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 mv(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(P0()){case _h:return 2;case Eh:return 8;case Bs:case W0:return 32;case Ch:return 268435456;default:return 32}default:return 32}}var Wf=!1,ll=null,il=null,rl=null,ds=new Map,hs=new Map,sl=[],hS="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 pv(e,t){switch(e){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":il=null;break;case"mouseover":case"mouseout":rl=null;break;case"pointerover":case"pointerout":ds.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hs.delete(t.pointerId)}}function ms(e,t,n,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=hi(t),t!==null&&dv(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function mS(e,t,n,i,u){switch(t){case"focusin":return ll=ms(ll,e,t,n,i,u),!0;case"dragenter":return il=ms(il,e,t,n,i,u),!0;case"mouseover":return rl=ms(rl,e,t,n,i,u),!0;case"pointerover":var c=u.pointerId;return ds.set(c,ms(ds.get(c)||null,e,t,n,i,u)),!0;case"gotpointercapture":return c=u.pointerId,hs.set(c,ms(hs.get(c)||null,e,t,n,i,u)),!0}return!1}function yv(e){var t=di(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Rh(e.priority,function(){hv(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,Rh(e.priority,function(){hv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $u(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=If(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Io=i,n.target.dispatchEvent(i),Io=null}else return t=hi(n),t!==null&&dv(t),e.blockedOn=n,!1;t.shift()}return!0}function vv(e,t,n){$u(e)&&n.delete(t)}function pS(){Wf=!1,ll!==null&&$u(ll)&&(ll=null),il!==null&&$u(il)&&(il=null),rl!==null&&$u(rl)&&(rl=null),ds.forEach(vv),hs.forEach(vv)}function Iu(e,t){e.blockedOn===t&&(e.blockedOn=null,Wf||(Wf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,pS)))}var Pu=null;function gv(e){Pu!==e&&(Pu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Pu===e&&(Pu=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(Pf(i||n)===null)continue;break}var c=hi(n);c!==null&&(e.splice(t,3),t-=3,$c(c,{pending:!0,data:u,method:n.method,action:i},i,u))}}))}function Fi(e){function t(_){return Iu(_,e)}ll!==null&&Iu(ll,e),il!==null&&Iu(il,e),rl!==null&&Iu(rl,e),ds.forEach(t),hs.forEach(t);for(var n=0;n<sl.length;n++){var i=sl[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<sl.length&&(n=sl[0],n.blockedOn===null);)yv(n),n.blockedOn===null&&sl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var u=n[i],c=n[i+1],p=u[Vt]||null;if(typeof c=="function")p||gv(n);else if(p){var g=null;if(c&&c.hasAttribute("formAction")){if(u=c,p=c[Vt]||null)g=p.formAction;else if(Pf(u)!==null)continue}else g=p.action;typeof g=="function"?n[i+1]=g:(n.splice(i,3),i-=3),gv(n)}}}function bv(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return u=p})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(n,20)}function n(){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,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function ed(e){this._internalRoot=e}Wu.prototype.render=ed.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=fn();cv(n,i,e,t,null,null)},Wu.prototype.unmount=ed.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cv(e.current,2,null,e,null,null),Du(),t[fi]=null}};function Wu(e){this._internalRoot=e}Wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ah();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sl.length&&t!==0&&t<sl[n].priority;n++);sl.splice(n,0,e),n===0&&yv(e)}};var xv=a.version;if(xv!=="19.2.4")throw Error(s(527,xv,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var yS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eo.isDisabled&&eo.supportsFiber)try{Er=eo.inject(yS),nn=eo}catch{}}return ys.createRoot=function(e,t){if(!o(e))throw Error(s(299));var n=!1,i="",u=Tp,c=wp,p=Ap;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=uv(e,1,!1,null,null,n,i,null,u,c,p,bv),e[fi]=t.current,kf(e),new ed(t)},ys.hydrateRoot=function(e,t,n){if(!o(e))throw Error(s(299));var i=!1,u="",c=Tp,p=wp,g=Ap,_=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),t=uv(e,1,!0,t,n??null,i,u,_,c,p,g,bv),t.context=ov(null),n=t.current,i=fn(),i=Vo(i),u=Xa(i),u.callback=null,Ka(n,u,i),n=i,t.current.lanes=n,Nr(t,n),Kn(t),e[fi]=t.current,kf(e),new Wu(t)},ys.version="19.2.4",ys}var Ov;function TS(){if(Ov)return ld.exports;Ov=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),ld.exports=jS(),ld.exports}var wS=TS(),gr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fl,ml,tr,zg,AS=(zg=class extends gr{constructor(){super();pe(this,Fl);pe(this,ml);pe(this,tr);te(this,tr,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,ml)||this.setEventListener(E(this,tr))}onUnsubscribe(){var a;this.hasListeners()||((a=E(this,ml))==null||a.call(this),te(this,ml,void 0))}setEventListener(a){var r;te(this,tr,a),(r=E(this,ml))==null||r.call(this),te(this,ml,a(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(a){E(this,Fl)!==a&&(te(this,Fl,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof E(this,Fl)=="boolean"?E(this,Fl):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Fl=new WeakMap,ml=new WeakMap,tr=new WeakMap,zg),Wd=new AS,RS={setTimeout:(l,a)=>setTimeout(l,a),clearTimeout:l=>clearTimeout(l),setInterval:(l,a)=>setInterval(l,a),clearInterval:l=>clearInterval(l)},pl,$d,kg,OS=(kg=class{constructor(){pe(this,pl,RS);pe(this,$d,!1)}setTimeoutProvider(l){te(this,pl,l)}setTimeout(l,a){return E(this,pl).setTimeout(l,a)}clearTimeout(l){E(this,pl).clearTimeout(l)}setInterval(l,a){return E(this,pl).setInterval(l,a)}clearInterval(l){E(this,pl).clearInterval(l)}},pl=new WeakMap,$d=new WeakMap,kg),Kl=new OS;function MS(l){setTimeout(l,0)}var DS=typeof window>"u"||"Deno"in globalThis;function Ht(){}function zS(l,a){return typeof l=="function"?l(a):l}function _d(l){return typeof l=="number"&&l>=0&&l!==1/0}function Kg(l,a){return Math.max(l+(a||0)-Date.now(),0)}function El(l,a){return typeof l=="function"?l(a):l}function Tn(l,a){return typeof l=="function"?l(a):l}function Mv(l,a){const{type:r="all",exact:s,fetchStatus:o,predicate:f,queryKey:h,stale:m}=l;if(h){if(s){if(a.queryHash!==eh(h,a.options))return!1}else if(!Es(a.queryKey,h))return!1}if(r!=="all"){const v=a.isActive();if(r==="active"&&!v||r==="inactive"&&v)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||f&&!f(a))}function Dv(l,a){const{exact:r,status:s,predicate:o,mutationKey:f}=l;if(f){if(!a.options.mutationKey)return!1;if(r){if(ai(a.options.mutationKey)!==ai(f))return!1}else if(!Es(a.options.mutationKey,f))return!1}return!(s&&a.state.status!==s||o&&!o(a))}function eh(l,a){return((a==null?void 0:a.queryKeyHashFn)||ai)(l)}function ai(l){return JSON.stringify(l,(a,r)=>Ed(r)?Object.keys(r).sort().reduce((s,o)=>(s[o]=r[o],s),{}):r)}function Es(l,a){return l===a?!0:typeof l!=typeof a?!1:l&&a&&typeof l=="object"&&typeof a=="object"?Object.keys(a).every(r=>Es(l[r],a[r])):!1}var kS=Object.prototype.hasOwnProperty;function Fg(l,a,r=0){if(l===a)return l;if(r>500)return a;const s=zv(l)&&zv(a);if(!s&&!(Ed(l)&&Ed(a)))return a;const f=(s?l:Object.keys(l)).length,h=s?a:Object.keys(a),m=h.length,v=s?new Array(m):{};let y=0;for(let x=0;x<m;x++){const S=s?x:h[x],C=l[S],M=a[S];if(C===M){v[S]=C,(s?x<f:kS.call(l,S))&&y++;continue}if(C===null||M===null||typeof C!="object"||typeof M!="object"){v[S]=M;continue}const L=Fg(C,M,r+1);v[S]=L,L===C&&y++}return f===m&&y===f?l:v}function bo(l,a){if(!a||Object.keys(l).length!==Object.keys(a).length)return!1;for(const r in l)if(l[r]!==a[r])return!1;return!0}function zv(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Ed(l){if(!kv(l))return!1;const a=l.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!kv(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function kv(l){return Object.prototype.toString.call(l)==="[object Object]"}function US(l){return new Promise(a=>{Kl.setTimeout(a,l)})}function Cd(l,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(l,a):r.structuralSharing!==!1?Fg(l,a):a}function LS(l,a,r=0){const s=[...l,a];return r&&s.length>r?s.slice(1):s}function BS(l,a,r=0){const s=[a,...l];return r&&s.length>r?s.slice(0,-1):s}var th=Symbol();function Jg(l,a){return!l.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!l.queryFn||l.queryFn===th?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function nh(l,a){return typeof l=="function"?l(...a):!!l}function qS(l,a,r){let s=!1,o;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o??(o=a()),s||(s=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),l}var Cs=(()=>{let l=()=>DS;return{isServer(){return l()},setIsServer(a){l=a}}})();function Nd(){let l,a;const r=new Promise((o,f)=>{l=o,a=f});r.status="pending",r.catch(()=>{});function s(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{s({status:"fulfilled",value:o}),l(o)},r.reject=o=>{s({status:"rejected",reason:o}),a(o)},r}var HS=MS;function QS(){let l=[],a=0,r=m=>{m()},s=m=>{m()},o=HS;const f=m=>{a?l.push(m):o(()=>{r(m)})},h=()=>{const m=l;l=[],m.length&&o(()=>{s(()=>{m.forEach(v=>{r(v)})})})};return{batch:m=>{let v;a++;try{v=m()}finally{a--,a||h()}return v},batchCalls:m=>(...v)=>{f(()=>{m(...v)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{o=m}}}var Et=QS(),nr,yl,ar,Ug,ZS=(Ug=class extends gr{constructor(){super();pe(this,nr,!0);pe(this,yl);pe(this,ar);te(this,ar,a=>{if(typeof window<"u"&&window.addEventListener){const r=()=>a(!0),s=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){E(this,yl)||this.setEventListener(E(this,ar))}onUnsubscribe(){var a;this.hasListeners()||((a=E(this,yl))==null||a.call(this),te(this,yl,void 0))}setEventListener(a){var r;te(this,ar,a),(r=E(this,yl))==null||r.call(this),te(this,yl,a(this.setOnline.bind(this)))}setOnline(a){E(this,nr)!==a&&(te(this,nr,a),this.listeners.forEach(s=>{s(a)}))}isOnline(){return E(this,nr)}},nr=new WeakMap,yl=new WeakMap,ar=new WeakMap,Ug),xo=new ZS;function VS(l){return Math.min(1e3*2**l,3e4)}function $g(l){return(l??"online")==="online"?xo.isOnline():!0}var jd=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function Ig(l){let a=!1,r=0,s;const o=Nd(),f=()=>o.status!=="pending",h=T=>{var A;if(!f()){const z=new jd(T);C(z),(A=l.onCancel)==null||A.call(l,z)}},m=()=>{a=!0},v=()=>{a=!1},y=()=>Wd.isFocused()&&(l.networkMode==="always"||xo.isOnline())&&l.canRun(),x=()=>$g(l.networkMode)&&l.canRun(),S=T=>{f()||(s==null||s(),o.resolve(T))},C=T=>{f()||(s==null||s(),o.reject(T))},M=()=>new Promise(T=>{var A;s=z=>{(f()||y())&&T(z)},(A=l.onPause)==null||A.call(l)}).then(()=>{var T;s=void 0,f()||(T=l.onContinue)==null||T.call(l)}),L=()=>{if(f())return;let T;const A=r===0?l.initialPromise:void 0;try{T=A??l.fn()}catch(z){T=Promise.reject(z)}Promise.resolve(T).then(S).catch(z=>{var K;if(f())return;const F=l.retry??(Cs.isServer()?0:3),H=l.retryDelay??VS,V=typeof H=="function"?H(r,z):H,X=F===!0||typeof F=="number"&&r<F||typeof F=="function"&&F(r,z);if(a||!X){C(z);return}r++,(K=l.onFail)==null||K.call(l,r,z),US(V).then(()=>y()?void 0:M()).then(()=>{a?C(z):L()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(s==null||s(),o),cancelRetry:m,continueRetry:v,canStart:x,start:()=>(x()?L():M().then(L),o)}}var Jl,Lg,Pg=(Lg=class{constructor(){pe(this,Jl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_d(this.gcTime)&&te(this,Jl,Kl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(Cs.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,Jl)&&(Kl.clearTimeout(E(this,Jl)),te(this,Jl,void 0))}},Jl=new WeakMap,Lg),$l,lr,jn,Il,jt,As,Pl,dn,Wg,Ca,Bg,GS=(Bg=class extends Pg{constructor(a){super();pe(this,dn);pe(this,$l);pe(this,lr);pe(this,jn);pe(this,Il);pe(this,jt);pe(this,As);pe(this,Pl);te(this,Pl,!1),te(this,As,a.defaultOptions),this.setOptions(a.options),this.observers=[],te(this,Il,a.client),te(this,jn,E(this,Il).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,te(this,$l,Lv(this.options)),this.state=a.state??E(this,$l),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=E(this,jt))==null?void 0:a.promise}setOptions(a){if(this.options={...E(this,As),...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Lv(this.options);r.data!==void 0&&(this.setState(Uv(r.data,r.dataUpdatedAt)),te(this,$l,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,jn).remove(this)}setData(a,r){const s=Cd(this.state.data,a,this.options);return Te(this,dn,Ca).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(a,r){Te(this,dn,Ca).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var s,o;const r=(s=E(this,jt))==null?void 0:s.promise;return(o=E(this,jt))==null||o.cancel(a),r?r.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,$l)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>Tn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===th||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>El(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!Kg(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(s=>s.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=E(this,jt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(s=>s.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=E(this,jt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),E(this,jn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(E(this,jt)&&(E(this,Pl)||Te(this,dn,Wg).call(this)?E(this,jt).cancel({revert:!0}):E(this,jt).cancelRetry()),this.scheduleGc()),E(this,jn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,dn,Ca).call(this,{type:"invalidate"})}async fetch(a,r){var v,y,x,S,C,M,L,T,A,z,F,H;if(this.state.fetchStatus!=="idle"&&((v=E(this,jt))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,jt))return E(this,jt).continueRetry(),E(this,jt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const V=this.observers.find(X=>X.options.queryFn);V&&this.setOptions(V.options)}const s=new AbortController,o=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(te(this,Pl,!0),s.signal)})},f=()=>{const V=Jg(this.options,r),K=(()=>{const $={client:E(this,Il),queryKey:this.queryKey,meta:this.meta};return o($),$})();return te(this,Pl,!1),this.options.persister?this.options.persister(V,K,this):V(K)},m=(()=>{const V={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,Il),state:this.state,fetchFn:f};return o(V),V})();(y=this.options.behavior)==null||y.onFetch(m,this),te(this,lr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&Te(this,dn,Ca).call(this,{type:"fetch",meta:(S=m.fetchOptions)==null?void 0:S.meta}),te(this,jt,Ig({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:V=>{V instanceof jd&&V.revert&&this.setState({...E(this,lr),fetchStatus:"idle"}),s.abort()},onFail:(V,X)=>{Te(this,dn,Ca).call(this,{type:"failed",failureCount:V,error:X})},onPause:()=>{Te(this,dn,Ca).call(this,{type:"pause"})},onContinue:()=>{Te(this,dn,Ca).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const V=await E(this,jt).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(M=(C=E(this,jn).config).onSuccess)==null||M.call(C,V,this),(T=(L=E(this,jn).config).onSettled)==null||T.call(L,V,this.state.error,this),V}catch(V){if(V instanceof jd){if(V.silent)return E(this,jt).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw Te(this,dn,Ca).call(this,{type:"error",error:V}),(z=(A=E(this,jn).config).onError)==null||z.call(A,V,this),(H=(F=E(this,jn).config).onSettled)==null||H.call(F,this.state.data,V,this),V}finally{this.scheduleGc()}}},$l=new WeakMap,lr=new WeakMap,jn=new WeakMap,Il=new WeakMap,jt=new WeakMap,As=new WeakMap,Pl=new WeakMap,dn=new WeakSet,Wg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ca=function(a){const r=s=>{switch(a.type){case"failed":return{...s,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...eb(s.data,this.options),fetchMeta:a.meta??null};case"success":const o={...s,...Uv(a.data,a.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return te(this,lr,a.manual?o:void 0),o;case"error":const f=a.error;return{...s,error:f,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...a.state}}};this.state=r(this.state),Et.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),E(this,jn).notify({query:this,type:"updated",action:a})})},Bg);function eb(l,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$g(a.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Uv(l,a){return{data:l,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Lv(l){const a=typeof l.initialData=="function"?l.initialData():l.initialData,r=a!==void 0,s=r?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var $t,Be,Rs,qt,Wl,ir,Na,vl,Os,rr,sr,ei,ti,gl,ur,Ke,xs,Td,wd,Ad,Rd,Od,Md,Dd,tb,qg,YS=(qg=class extends gr{constructor(a,r){super();pe(this,Ke);pe(this,$t);pe(this,Be);pe(this,Rs);pe(this,qt);pe(this,Wl);pe(this,ir);pe(this,Na);pe(this,vl);pe(this,Os);pe(this,rr);pe(this,sr);pe(this,ei);pe(this,ti);pe(this,gl);pe(this,ur,new Set);this.options=r,te(this,$t,a),te(this,vl,null),te(this,Na,Nd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Be).addObserver(this),Bv(E(this,Be),this.options)?Te(this,Ke,xs).call(this):this.updateResult(),Te(this,Ke,Rd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zd(E(this,Be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zd(E(this,Be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Ke,Od).call(this),Te(this,Ke,Md).call(this),E(this,Be).removeObserver(this)}setOptions(a){const r=this.options,s=E(this,Be);if(this.options=E(this,$t).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tn(this.options.enabled,E(this,Be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Ke,Dd).call(this),E(this,Be).setOptions(this.options),r._defaulted&&!bo(this.options,r)&&E(this,$t).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Be),observer:this});const o=this.hasListeners();o&&qv(E(this,Be),s,this.options,r)&&Te(this,Ke,xs).call(this),this.updateResult(),o&&(E(this,Be)!==s||Tn(this.options.enabled,E(this,Be))!==Tn(r.enabled,E(this,Be))||El(this.options.staleTime,E(this,Be))!==El(r.staleTime,E(this,Be)))&&Te(this,Ke,Td).call(this);const f=Te(this,Ke,wd).call(this);o&&(E(this,Be)!==s||Tn(this.options.enabled,E(this,Be))!==Tn(r.enabled,E(this,Be))||f!==E(this,gl))&&Te(this,Ke,Ad).call(this,f)}getOptimisticResult(a){const r=E(this,$t).getQueryCache().build(E(this,$t),a),s=this.createResult(r,a);return KS(this,s)&&(te(this,qt,s),te(this,ir,this.options),te(this,Wl,E(this,Be).state)),s}getCurrentResult(){return E(this,qt)}trackResult(a,r){return new Proxy(a,{get:(s,o)=>(this.trackProp(o),r==null||r(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Na).status==="pending"&&E(this,Na).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(a){E(this,ur).add(a)}getCurrentQuery(){return E(this,Be)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=E(this,$t).defaultQueryOptions(a),s=E(this,$t).getQueryCache().build(E(this,$t),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(a){return Te(this,Ke,xs).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,qt)))}createResult(a,r){var he;const s=E(this,Be),o=this.options,f=E(this,qt),h=E(this,Wl),m=E(this,ir),y=a!==s?a.state:E(this,Rs),{state:x}=a;let S={...x},C=!1,M;if(r._optimisticResults){const Ne=this.hasListeners(),Ze=!Ne&&Bv(a,r),He=Ne&&qv(a,s,r,o);(Ze||He)&&(S={...S,...eb(x.data,a.options)}),r._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:L,errorUpdatedAt:T,status:A}=S;M=S.data;let z=!1;if(r.placeholderData!==void 0&&M===void 0&&A==="pending"){let Ne;f!=null&&f.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(Ne=f.data,z=!0):Ne=typeof r.placeholderData=="function"?r.placeholderData((he=E(this,sr))==null?void 0:he.state.data,E(this,sr)):r.placeholderData,Ne!==void 0&&(A="success",M=Cd(f==null?void 0:f.data,Ne,r),C=!0)}if(r.select&&M!==void 0&&!z)if(f&&M===(h==null?void 0:h.data)&&r.select===E(this,Os))M=E(this,rr);else try{te(this,Os,r.select),M=r.select(M),M=Cd(f==null?void 0:f.data,M,r),te(this,rr,M),te(this,vl,null)}catch(Ne){te(this,vl,Ne)}E(this,vl)&&(L=E(this,vl),M=E(this,rr),T=Date.now(),A="error");const F=S.fetchStatus==="fetching",H=A==="pending",V=A==="error",X=H&&F,K=M!==void 0,G={status:A,fetchStatus:S.fetchStatus,isPending:H,isSuccess:A==="success",isError:V,isInitialLoading:X,isLoading:X,data:M,dataUpdatedAt:S.dataUpdatedAt,error:L,errorUpdatedAt:T,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:F,isRefetching:F&&!H,isLoadingError:V&&!K,isPaused:S.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:V&&K,isStale:ah(a,r),refetch:this.refetch,promise:E(this,Na),isEnabled:Tn(r.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const Ne=G.data!==void 0,Ze=G.status==="error"&&!Ne,He=ze=>{Ze?ze.reject(G.error):Ne&&ze.resolve(G.data)},pt=()=>{const ze=te(this,Na,G.promise=Nd());He(ze)},rt=E(this,Na);switch(rt.status){case"pending":a.queryHash===s.queryHash&&He(rt);break;case"fulfilled":(Ze||G.data!==rt.value)&&pt();break;case"rejected":(!Ze||G.error!==rt.reason)&&pt();break}}return G}updateResult(){const a=E(this,qt),r=this.createResult(E(this,Be),this.options);if(te(this,Wl,E(this,Be).state),te(this,ir,this.options),E(this,Wl).data!==void 0&&te(this,sr,E(this,Be)),bo(r,a))return;te(this,qt,r);const s=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!E(this,ur).size)return!0;const h=new Set(f??E(this,ur));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,qt)).some(m=>{const v=m;return E(this,qt)[v]!==a[v]&&h.has(v)})};Te(this,Ke,tb).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Ke,Rd).call(this)}},$t=new WeakMap,Be=new WeakMap,Rs=new WeakMap,qt=new WeakMap,Wl=new WeakMap,ir=new WeakMap,Na=new WeakMap,vl=new WeakMap,Os=new WeakMap,rr=new WeakMap,sr=new WeakMap,ei=new WeakMap,ti=new WeakMap,gl=new WeakMap,ur=new WeakMap,Ke=new WeakSet,xs=function(a){Te(this,Ke,Dd).call(this);let r=E(this,Be).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Ht)),r},Td=function(){Te(this,Ke,Od).call(this);const a=El(this.options.staleTime,E(this,Be));if(Cs.isServer()||E(this,qt).isStale||!_d(a))return;const s=Kg(E(this,qt).dataUpdatedAt,a)+1;te(this,ei,Kl.setTimeout(()=>{E(this,qt).isStale||this.updateResult()},s))},wd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Be)):this.options.refetchInterval)??!1},Ad=function(a){Te(this,Ke,Md).call(this),te(this,gl,a),!(Cs.isServer()||Tn(this.options.enabled,E(this,Be))===!1||!_d(E(this,gl))||E(this,gl)===0)&&te(this,ti,Kl.setInterval(()=>{(this.options.refetchIntervalInBackground||Wd.isFocused())&&Te(this,Ke,xs).call(this)},E(this,gl)))},Rd=function(){Te(this,Ke,Td).call(this),Te(this,Ke,Ad).call(this,Te(this,Ke,wd).call(this))},Od=function(){E(this,ei)&&(Kl.clearTimeout(E(this,ei)),te(this,ei,void 0))},Md=function(){E(this,ti)&&(Kl.clearInterval(E(this,ti)),te(this,ti,void 0))},Dd=function(){const a=E(this,$t).getQueryCache().build(E(this,$t),this.options);if(a===E(this,Be))return;const r=E(this,Be);te(this,Be,a),te(this,Rs,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},tb=function(a){Et.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(E(this,qt))}),E(this,$t).getQueryCache().notify({query:E(this,Be),type:"observerResultsUpdated"})})},qg);function XS(l,a){return Tn(a.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&a.retryOnMount===!1)}function Bv(l,a){return XS(l,a)||l.state.data!==void 0&&zd(l,a,a.refetchOnMount)}function zd(l,a,r){if(Tn(a.enabled,l)!==!1&&El(a.staleTime,l)!=="static"){const s=typeof r=="function"?r(l):r;return s==="always"||s!==!1&&ah(l,a)}return!1}function qv(l,a,r,s){return(l!==a||Tn(s.enabled,l)===!1)&&(!r.suspense||l.state.status!=="error")&&ah(l,r)}function ah(l,a){return Tn(a.enabled,l)!==!1&&l.isStaleByTime(El(a.staleTime,l))}function KS(l,a){return!bo(l.getCurrentResult(),a)}function Hv(l){return{onFetch:(a,r)=>{var x,S,C,M,L;const s=a.options,o=(C=(S=(x=a.fetchOptions)==null?void 0:x.meta)==null?void 0:S.fetchMore)==null?void 0:C.direction,f=((M=a.state.data)==null?void 0:M.pages)||[],h=((L=a.state.data)==null?void 0:L.pageParams)||[];let m={pages:[],pageParams:[]},v=0;const y=async()=>{let T=!1;const A=H=>{qS(H,()=>a.signal,()=>T=!0)},z=Jg(a.options,a.fetchOptions),F=async(H,V,X)=>{if(T)return Promise.reject();if(V==null&&H.pages.length)return Promise.resolve(H);const $=(()=>{const Ze={client:a.client,queryKey:a.queryKey,pageParam:V,direction:X?"backward":"forward",meta:a.options.meta};return A(Ze),Ze})(),G=await z($),{maxPages:he}=a.options,Ne=X?BS:LS;return{pages:Ne(H.pages,G,he),pageParams:Ne(H.pageParams,V,he)}};if(o&&f.length){const H=o==="backward",V=H?FS:Qv,X={pages:f,pageParams:h},K=V(s,X);m=await F(X,K,H)}else{const H=l??f.length;do{const V=v===0?h[0]??s.initialPageParam:Qv(s,m);if(v>0&&V==null)break;m=await F(m,V),v++}while(v<H)}return m};a.options.persister?a.fetchFn=()=>{var T,A;return(A=(T=a.options).persister)==null?void 0:A.call(T,y,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=y}}}function Qv(l,{pages:a,pageParams:r}){const s=a.length-1;return a.length>0?l.getNextPageParam(a[s],a,r[s],r):void 0}function FS(l,{pages:a,pageParams:r}){var s;return a.length>0?(s=l.getPreviousPageParam)==null?void 0:s.call(l,a[0],a,r[0],r):void 0}var Ms,Fn,zt,ni,Jn,fl,Hg,JS=(Hg=class extends Pg{constructor(a){super();pe(this,Jn);pe(this,Ms);pe(this,Fn);pe(this,zt);pe(this,ni);te(this,Ms,a.client),this.mutationId=a.mutationId,te(this,zt,a.mutationCache),te(this,Fn,[]),this.state=a.state||nb(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){E(this,Fn).includes(a)||(E(this,Fn).push(a),this.clearGcTimeout(),E(this,zt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){te(this,Fn,E(this,Fn).filter(r=>r!==a)),this.scheduleGc(),E(this,zt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){E(this,Fn).length||(this.state.status==="pending"?this.scheduleGc():E(this,zt).remove(this))}continue(){var a;return((a=E(this,ni))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var h,m,v,y,x,S,C,M,L,T,A,z,F,H,V,X,K,$;const r=()=>{Te(this,Jn,fl).call(this,{type:"continue"})},s={client:E(this,Ms),meta:this.options.meta,mutationKey:this.options.mutationKey};te(this,ni,Ig({fn:()=>this.options.mutationFn?this.options.mutationFn(a,s):Promise.reject(new Error("No mutationFn found")),onFail:(G,he)=>{Te(this,Jn,fl).call(this,{type:"failed",failureCount:G,error:he})},onPause:()=>{Te(this,Jn,fl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,zt).canRun(this)}));const o=this.state.status==="pending",f=!E(this,ni).canStart();try{if(o)r();else{Te(this,Jn,fl).call(this,{type:"pending",variables:a,isPaused:f}),E(this,zt).config.onMutate&&await E(this,zt).config.onMutate(a,this,s);const he=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,a,s));he!==this.state.context&&Te(this,Jn,fl).call(this,{type:"pending",context:he,variables:a,isPaused:f})}const G=await E(this,ni).start();return await((y=(v=E(this,zt).config).onSuccess)==null?void 0:y.call(v,G,a,this.state.context,this,s)),await((S=(x=this.options).onSuccess)==null?void 0:S.call(x,G,a,this.state.context,s)),await((M=(C=E(this,zt).config).onSettled)==null?void 0:M.call(C,G,null,this.state.variables,this.state.context,this,s)),await((T=(L=this.options).onSettled)==null?void 0:T.call(L,G,null,a,this.state.context,s)),Te(this,Jn,fl).call(this,{type:"success",data:G}),G}catch(G){try{await((z=(A=E(this,zt).config).onError)==null?void 0:z.call(A,G,a,this.state.context,this,s))}catch(he){Promise.reject(he)}try{await((H=(F=this.options).onError)==null?void 0:H.call(F,G,a,this.state.context,s))}catch(he){Promise.reject(he)}try{await((X=(V=E(this,zt).config).onSettled)==null?void 0:X.call(V,void 0,G,this.state.variables,this.state.context,this,s))}catch(he){Promise.reject(he)}try{await(($=(K=this.options).onSettled)==null?void 0:$.call(K,void 0,G,a,this.state.context,s))}catch(he){Promise.reject(he)}throw Te(this,Jn,fl).call(this,{type:"error",error:G}),G}finally{E(this,zt).runNext(this)}}},Ms=new WeakMap,Fn=new WeakMap,zt=new WeakMap,ni=new WeakMap,Jn=new WeakSet,fl=function(a){const r=s=>{switch(a.type){case"failed":return{...s,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...s,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:a.error,failureCount:s.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Et.batch(()=>{E(this,Fn).forEach(s=>{s.onMutationUpdate(a)}),E(this,zt).notify({mutation:this,type:"updated",action:a})})},Hg);function nb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ja,qn,Ds,Qg,$S=(Qg=class extends gr{constructor(a={}){super();pe(this,ja);pe(this,qn);pe(this,Ds);this.config=a,te(this,ja,new Set),te(this,qn,new Map),te(this,Ds,0)}build(a,r,s){const o=new JS({client:a,mutationCache:this,mutationId:++to(this,Ds)._,options:a.defaultMutationOptions(r),state:s});return this.add(o),o}add(a){E(this,ja).add(a);const r=no(a);if(typeof r=="string"){const s=E(this,qn).get(r);s?s.push(a):E(this,qn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(E(this,ja).delete(a)){const r=no(a);if(typeof r=="string"){const s=E(this,qn).get(r);if(s)if(s.length>1){const o=s.indexOf(a);o!==-1&&s.splice(o,1)}else s[0]===a&&E(this,qn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=no(a);if(typeof r=="string"){const s=E(this,qn).get(r),o=s==null?void 0:s.find(f=>f.state.status==="pending");return!o||o===a}else return!0}runNext(a){var s;const r=no(a);if(typeof r=="string"){const o=(s=E(this,qn).get(r))==null?void 0:s.find(f=>f!==a&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Et.batch(()=>{E(this,ja).forEach(a=>{this.notify({type:"removed",mutation:a})}),E(this,ja).clear(),E(this,qn).clear()})}getAll(){return Array.from(E(this,ja))}find(a){const r={exact:!0,...a};return this.getAll().find(s=>Dv(r,s))}findAll(a={}){return this.getAll().filter(r=>Dv(a,r))}notify(a){Et.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return Et.batch(()=>Promise.all(a.map(r=>r.continue().catch(Ht))))}},ja=new WeakMap,qn=new WeakMap,Ds=new WeakMap,Qg);function no(l){var a;return(a=l.options.scope)==null?void 0:a.id}var Ta,bl,It,wa,Da,ho,kd,Zg,IS=(Zg=class extends gr{constructor(r,s){super();pe(this,Da);pe(this,Ta);pe(this,bl);pe(this,It);pe(this,wa);te(this,Ta,r),this.setOptions(s),this.bindMethods(),Te(this,Da,ho).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const s=this.options;this.options=E(this,Ta).defaultMutationOptions(r),bo(this.options,s)||E(this,Ta).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,It),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&ai(s.mutationKey)!==ai(this.options.mutationKey)?this.reset():((o=E(this,It))==null?void 0:o.state.status)==="pending"&&E(this,It).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=E(this,It))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,Da,ho).call(this),Te(this,Da,kd).call(this,r)}getCurrentResult(){return E(this,bl)}reset(){var r;(r=E(this,It))==null||r.removeObserver(this),te(this,It,void 0),Te(this,Da,ho).call(this),Te(this,Da,kd).call(this)}mutate(r,s){var o;return te(this,wa,s),(o=E(this,It))==null||o.removeObserver(this),te(this,It,E(this,Ta).getMutationCache().build(E(this,Ta),this.options)),E(this,It).addObserver(this),E(this,It).execute(r)}},Ta=new WeakMap,bl=new WeakMap,It=new WeakMap,wa=new WeakMap,Da=new WeakSet,ho=function(){var s;const r=((s=E(this,It))==null?void 0:s.state)??nb();te(this,bl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},kd=function(r){Et.batch(()=>{var s,o,f,h,m,v,y,x;if(E(this,wa)&&this.hasListeners()){const S=E(this,bl).variables,C=E(this,bl).context,M={client:E(this,Ta),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(o=(s=E(this,wa)).onSuccess)==null||o.call(s,r.data,S,C,M)}catch(L){Promise.reject(L)}try{(h=(f=E(this,wa)).onSettled)==null||h.call(f,r.data,null,S,C,M)}catch(L){Promise.reject(L)}}else if((r==null?void 0:r.type)==="error"){try{(v=(m=E(this,wa)).onError)==null||v.call(m,r.error,S,C,M)}catch(L){Promise.reject(L)}try{(x=(y=E(this,wa)).onSettled)==null||x.call(y,void 0,r.error,S,C,M)}catch(L){Promise.reject(L)}}}this.listeners.forEach(S=>{S(E(this,bl))})})},Zg),$n,Vg,PS=(Vg=class extends gr{constructor(a={}){super();pe(this,$n);this.config=a,te(this,$n,new Map)}build(a,r,s){const o=r.queryKey,f=r.queryHash??eh(o,r);let h=this.get(f);return h||(h=new GS({client:a,queryKey:o,queryHash:f,options:a.defaultQueryOptions(r),state:s,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){E(this,$n).has(a.queryHash)||(E(this,$n).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=E(this,$n).get(a.queryHash);r&&(a.destroy(),r===a&&E(this,$n).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Et.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return E(this,$n).get(a)}getAll(){return[...E(this,$n).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(s=>Mv(r,s))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(s=>Mv(a,s)):r}notify(a){Et.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},$n=new WeakMap,Vg),dt,xl,Sl,or,cr,_l,fr,dr,Gg,WS=(Gg=class{constructor(l={}){pe(this,dt);pe(this,xl);pe(this,Sl);pe(this,or);pe(this,cr);pe(this,_l);pe(this,fr);pe(this,dr);te(this,dt,l.queryCache||new PS),te(this,xl,l.mutationCache||new $S),te(this,Sl,l.defaultOptions||{}),te(this,or,new Map),te(this,cr,new Map),te(this,_l,0)}mount(){to(this,_l)._++,E(this,_l)===1&&(te(this,fr,Wd.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,dt).onFocus())})),te(this,dr,xo.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,dt).onOnline())})))}unmount(){var l,a;to(this,_l)._--,E(this,_l)===0&&((l=E(this,fr))==null||l.call(this),te(this,fr,void 0),(a=E(this,dr))==null||a.call(this),te(this,dr,void 0))}isFetching(l){return E(this,dt).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return E(this,xl).findAll({...l,status:"pending"}).length}getQueryData(l){var r;const a=this.defaultQueryOptions({queryKey:l});return(r=E(this,dt).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(l){const a=this.defaultQueryOptions(l),r=E(this,dt).build(this,a),s=r.state.data;return s===void 0?this.fetchQuery(l):(l.revalidateIfStale&&r.isStaleByTime(El(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(l){return E(this,dt).findAll(l).map(({queryKey:a,state:r})=>{const s=r.data;return[a,s]})}setQueryData(l,a,r){const s=this.defaultQueryOptions({queryKey:l}),o=E(this,dt).get(s.queryHash),f=o==null?void 0:o.state.data,h=zS(a,f);if(h!==void 0)return E(this,dt).build(this,s).setData(h,{...r,manual:!0})}setQueriesData(l,a,r){return Et.batch(()=>E(this,dt).findAll(l).map(({queryKey:s})=>[s,this.setQueryData(s,a,r)]))}getQueryState(l){var r;const a=this.defaultQueryOptions({queryKey:l});return(r=E(this,dt).get(a.queryHash))==null?void 0:r.state}removeQueries(l){const a=E(this,dt);Et.batch(()=>{a.findAll(l).forEach(r=>{a.remove(r)})})}resetQueries(l,a){const r=E(this,dt);return Et.batch(()=>(r.findAll(l).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...l},a)))}cancelQueries(l,a={}){const r={revert:!0,...a},s=Et.batch(()=>E(this,dt).findAll(l).map(o=>o.cancel(r)));return Promise.all(s).then(Ht).catch(Ht)}invalidateQueries(l,a={}){return Et.batch(()=>(E(this,dt).findAll(l).forEach(r=>{r.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},a)))}refetchQueries(l,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},s=Et.batch(()=>E(this,dt).findAll(l).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,r);return r.throwOnError||(f=f.catch(Ht)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(Ht)}fetchQuery(l){const a=this.defaultQueryOptions(l);a.retry===void 0&&(a.retry=!1);const r=E(this,dt).build(this,a);return r.isStaleByTime(El(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(Ht).catch(Ht)}fetchInfiniteQuery(l){return l.behavior=Hv(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(Ht).catch(Ht)}ensureInfiniteQueryData(l){return l.behavior=Hv(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return xo.isOnline()?E(this,xl).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,dt)}getMutationCache(){return E(this,xl)}getDefaultOptions(){return E(this,Sl)}setDefaultOptions(l){te(this,Sl,l)}setQueryDefaults(l,a){E(this,or).set(ai(l),{queryKey:l,defaultOptions:a})}getQueryDefaults(l){const a=[...E(this,or).values()],r={};return a.forEach(s=>{Es(l,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(l,a){E(this,cr).set(ai(l),{mutationKey:l,defaultOptions:a})}getMutationDefaults(l){const a=[...E(this,cr).values()],r={};return a.forEach(s=>{Es(l,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(l){if(l._defaulted)return l;const a={...E(this,Sl).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return a.queryHash||(a.queryHash=eh(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===th&&(a.enabled=!1),a}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...E(this,Sl).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){E(this,dt).clear(),E(this,xl).clear()}},dt=new WeakMap,xl=new WeakMap,Sl=new WeakMap,or=new WeakMap,cr=new WeakMap,_l=new WeakMap,fr=new WeakMap,dr=new WeakMap,Gg),ab=b.createContext(void 0),br=l=>{const a=b.useContext(ab);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},e_=({client:l,children:a})=>(b.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),d.jsx(ab.Provider,{value:l,children:a})),lb=b.createContext(!1),t_=()=>b.useContext(lb);lb.Provider;function n_(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var a_=b.createContext(n_()),l_=()=>b.useContext(a_),i_=(l,a,r)=>{const s=r!=null&&r.state.error&&typeof l.throwOnError=="function"?nh(l.throwOnError,[r.state.error,r]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||s)&&(a.isReset()||(l.retryOnMount=!1))},r_=l=>{b.useEffect(()=>{l.clearReset()},[l])},s_=({result:l,errorResetBoundary:a,throwOnError:r,query:s,suspense:o})=>l.isError&&!a.isReset()&&!l.isFetching&&s&&(o&&l.data===void 0||nh(r,[l.error,s])),u_=l=>{if(l.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),s=l.staleTime;l.staleTime=typeof s=="function"?(...o)=>r(s(...o)):r(s),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},o_=(l,a)=>l.isLoading&&l.isFetching&&!a,c_=(l,a)=>(l==null?void 0:l.suspense)&&a.isPending,Zv=(l,a,r)=>a.fetchOptimistic(l).catch(()=>{r.clearReset()});function f_(l,a,r){var C,M,L,T;const s=t_(),o=l_(),f=br(),h=f.defaultQueryOptions(l);(M=(C=f.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||M.call(C,h);const m=f.getQueryCache().get(h.queryHash);h._optimisticResults=s?"isRestoring":"optimistic",u_(h),i_(h,o,m),r_(o);const v=!f.getQueryCache().get(h.queryHash),[y]=b.useState(()=>new a(f,h)),x=y.getOptimisticResult(h),S=!s&&l.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(A=>{const z=S?y.subscribe(Et.batchCalls(A)):Ht;return y.updateResult(),z},[y,S]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),b.useEffect(()=>{y.setOptions(h)},[h,y]),c_(h,x))throw Zv(h,y,o);if(s_({result:x,errorResetBoundary:o,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw x.error;if((T=(L=f.getDefaultOptions().queries)==null?void 0:L._experimental_afterQuery)==null||T.call(L,h,x),h.experimental_prefetchInRender&&!Cs.isServer()&&o_(x,s)){const A=v?Zv(h,y,o):m==null?void 0:m.promise;A==null||A.catch(Ht).finally(()=>{y.updateResult()})}return h.notifyOnChangeProps?x:y.trackResult(x)}function kt(l,a){return f_(l,YS)}function Pt(l,a){const r=br(),[s]=b.useState(()=>new IS(r,l));b.useEffect(()=>{s.setOptions(l)},[s,l]);const o=b.useSyncExternalStore(b.useCallback(h=>s.subscribe(Et.batchCalls(h)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=b.useCallback((h,m)=>{s.mutate(h,m).catch(Ht)},[s]);if(o.error&&nh(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:f,mutateAsync:o.mutate}}/**
|
|
50
|
-
* react-router v7.13.1
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var Vv="popstate";function Gv(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function d_(l={}){function a(s,o){var y;let f=(y=o.state)==null?void 0:y.masked,{pathname:h,search:m,hash:v}=f||s.location;return Ud("",{pathname:h,search:m,hash:v},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,o){return typeof o=="string"?o:Ns(o)}return m_(a,r,null,l)}function ut(l,a){if(l===!1||l===null||typeof l>"u")throw new Error(a)}function Zn(l,a){if(!l){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function h_(){return Math.random().toString(36).substring(2,10)}function Yv(l,a){return{usr:l.state,key:l.key,idx:a,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Ud(l,a,r=null,s,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof a=="string"?xr(a):a,state:r,key:a&&a.key||s||h_(),unstable_mask:o}}function Ns({pathname:l="/",search:a="",hash:r=""}){return a&&a!=="?"&&(l+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(l+=r.charAt(0)==="#"?r:"#"+r),l}function xr(l){let a={};if(l){let r=l.indexOf("#");r>=0&&(a.hash=l.substring(r),l=l.substring(0,r));let s=l.indexOf("?");s>=0&&(a.search=l.substring(s),l=l.substring(0,s)),l&&(a.pathname=l)}return a}function m_(l,a,r,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,h=o.history,m="POP",v=null,y=x();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function x(){return(h.state||{idx:null}).idx}function S(){m="POP";let A=x(),z=A==null?null:A-y;y=A,v&&v({action:m,location:T.location,delta:z})}function C(A,z){m="PUSH";let F=Gv(A)?A:Ud(T.location,A,z);y=x()+1;let H=Yv(F,y),V=T.createHref(F.unstable_mask||F);try{h.pushState(H,"",V)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;o.location.assign(V)}f&&v&&v({action:m,location:T.location,delta:1})}function M(A,z){m="REPLACE";let F=Gv(A)?A:Ud(T.location,A,z);y=x();let H=Yv(F,y),V=T.createHref(F.unstable_mask||F);h.replaceState(H,"",V),f&&v&&v({action:m,location:T.location,delta:0})}function L(A){return p_(A)}let T={get action(){return m},get location(){return l(o,h)},listen(A){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(Vv,S),v=A,()=>{o.removeEventListener(Vv,S),v=null}},createHref(A){return a(o,A)},createURL:L,encodeLocation(A){let z=L(A);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:C,replace:M,go(A){return h.go(A)}};return T}function p_(l,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ut(r,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:Ns(l);return s=s.replace(/ $/,"%20"),!a&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function ib(l,a,r="/"){return y_(l,a,r,!1)}function y_(l,a,r,s){let o=typeof a=="string"?xr(a):a,f=za(o.pathname||"/",r);if(f==null)return null;let h=rb(l);v_(h);let m=null;for(let v=0;m==null&&v<h.length;++v){let y=w_(f);m=j_(h[v],y,s)}return m}function rb(l,a=[],r=[],s="",o=!1){let f=(h,m,v=o,y)=>{let x={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&v)return;ut(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let S=ea([s,x.relativePath]),C=r.concat(x);h.children&&h.children.length>0&&(ut(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),rb(h.children,a,C,S,v)),!(h.path==null&&!h.index)&&a.push({path:S,score:C_(S,h.index),routesMeta:C})};return l.forEach((h,m)=>{var v;if(h.path===""||!((v=h.path)!=null&&v.includes("?")))f(h,m);else for(let y of sb(h.path))f(h,m,!0,y)}),a}function sb(l){let a=l.split("/");if(a.length===0)return[];let[r,...s]=a,o=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return o?[f,""]:[f];let h=sb(s.join("/")),m=[];return m.push(...h.map(v=>v===""?f:[f,v].join("/"))),o&&m.push(...h),m.map(v=>l.startsWith("/")&&v===""?"/":v)}function v_(l){l.sort((a,r)=>a.score!==r.score?r.score-a.score:N_(a.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var g_=/^:[\w-]+$/,b_=3,x_=2,S_=1,__=10,E_=-2,Xv=l=>l==="*";function C_(l,a){let r=l.split("/"),s=r.length;return r.some(Xv)&&(s+=E_),a&&(s+=x_),r.filter(o=>!Xv(o)).reduce((o,f)=>o+(g_.test(f)?b_:f===""?S_:__),s)}function N_(l,a){return l.length===a.length&&l.slice(0,-1).every((s,o)=>s===a[o])?l[l.length-1]-a[a.length-1]:0}function j_(l,a,r=!1){let{routesMeta:s}=l,o={},f="/",h=[];for(let m=0;m<s.length;++m){let v=s[m],y=m===s.length-1,x=f==="/"?a:a.slice(f.length)||"/",S=So({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},x),C=v.route;if(!S&&y&&r&&!s[s.length-1].route.index&&(S=So({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!S)return null;Object.assign(o,S.params),h.push({params:o,pathname:ea([f,S.pathname]),pathnameBase:M_(ea([f,S.pathnameBase])),route:C}),S.pathnameBase!=="/"&&(f=ea([f,S.pathnameBase]))}return h}function So(l,a){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[r,s]=T_(l.path,l.caseSensitive,l.end),o=a.match(r);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:s.reduce((y,{paramName:x,isOptional:S},C)=>{if(x==="*"){let L=m[C]||"";h=f.slice(0,f.length-L.length).replace(/(.)\/+$/,"$1")}const M=m[C];return S&&!M?y[x]=void 0:y[x]=(M||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:h,pattern:l}}function T_(l,a=!1,r=!0){Zn(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,v,y,x)=>{if(s.push({paramName:m,isOptional:v!=null}),v){let S=x.charAt(y+h.length);return S&&S!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),s]}function w_(l){try{return l.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Zn(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),l}}function za(l,a){if(a==="/")return l;if(!l.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,s=l.charAt(r);return s&&s!=="/"?null:l.slice(r)||"/"}var A_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function R_(l,a="/"){let{pathname:r,search:s="",hash:o=""}=typeof l=="string"?xr(l):l,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=Kv(r.substring(1),"/"):f=Kv(r,a)):f=a,{pathname:f,search:D_(s),hash:z_(o)}}function Kv(l,a){let r=a.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function ud(l,a,r,s){return`Cannot include a '${l}' character in a manually specified \`to.${a}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function O_(l){return l.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function lh(l){let a=O_(l);return a.map((r,s)=>s===a.length-1?r.pathname:r.pathnameBase)}function Do(l,a,r,s=!1){let o;typeof l=="string"?o=xr(l):(o={...l},ut(!o.pathname||!o.pathname.includes("?"),ud("?","pathname","search",o)),ut(!o.pathname||!o.pathname.includes("#"),ud("#","pathname","hash",o)),ut(!o.search||!o.search.includes("#"),ud("#","search","hash",o)));let f=l===""||o.pathname==="",h=f?"/":o.pathname,m;if(h==null)m=r;else{let S=a.length-1;if(!s&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),S-=1;o.pathname=C.join("/")}m=S>=0?a[S]:"/"}let v=R_(o,m),y=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(y||x)&&(v.pathname+="/"),v}var ea=l=>l.join("/").replace(/\/\/+/g,"/"),M_=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),D_=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,z_=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,k_=class{constructor(l,a,r,s=!1){this.status=l,this.statusText=a||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function U_(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function L_(l){return l.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ub=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ob(l,a){let r=l;if(typeof r!="string"||!A_.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,o=!1;if(ub)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=za(h.pathname,a);h.origin===f.origin&&m!=null?r=m+h.search+h.hash:o=!0}catch{Zn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var cb=["POST","PUT","PATCH","DELETE"];new Set(cb);var B_=["GET",...cb];new Set(B_);var Sr=b.createContext(null);Sr.displayName="DataRouter";var zo=b.createContext(null);zo.displayName="DataRouterState";var q_=b.createContext(!1),fb=b.createContext({isTransitioning:!1});fb.displayName="ViewTransition";var H_=b.createContext(new Map);H_.displayName="Fetchers";var Q_=b.createContext(null);Q_.displayName="Await";var hn=b.createContext(null);hn.displayName="Navigation";var zs=b.createContext(null);zs.displayName="Location";var On=b.createContext({outlet:null,matches:[],isDataRoute:!1});On.displayName="Route";var ih=b.createContext(null);ih.displayName="RouteError";var db="REACT_ROUTER_ERROR",Z_="REDIRECT",V_="ROUTE_ERROR_RESPONSE";function G_(l){if(l.startsWith(`${db}:${Z_}:{`))try{let a=JSON.parse(l.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function Y_(l){if(l.startsWith(`${db}:${V_}:{`))try{let a=JSON.parse(l.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new k_(a.status,a.statusText,a.data)}catch{}}function X_(l,{relative:a}={}){ut(_r(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=b.useContext(hn),{hash:o,pathname:f,search:h}=Us(l,{relative:a}),m=f;return r!=="/"&&(m=f==="/"?r:ea([r,f])),s.createHref({pathname:m,search:h,hash:o})}function _r(){return b.useContext(zs)!=null}function Ua(){return ut(_r(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(zs).location}var hb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function mb(l){b.useContext(hn).static||b.useLayoutEffect(l)}function ks(){let{isDataRoute:l}=b.useContext(On);return l?uE():K_()}function K_(){ut(_r(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(Sr),{basename:a,navigator:r}=b.useContext(hn),{matches:s}=b.useContext(On),{pathname:o}=Ua(),f=JSON.stringify(lh(s)),h=b.useRef(!1);return mb(()=>{h.current=!0}),b.useCallback((v,y={})=>{if(Zn(h.current,hb),!h.current)return;if(typeof v=="number"){r.go(v);return}let x=Do(v,JSON.parse(f),o,y.relative==="path");l==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:ea([a,x.pathname])),(y.replace?r.replace:r.push)(x,y.state,y)},[a,r,f,o,l])}var F_=b.createContext(null);function J_(l){let a=b.useContext(On).outlet;return b.useMemo(()=>a&&b.createElement(F_.Provider,{value:l},a),[a,l])}function $_(){let{matches:l}=b.useContext(On),a=l[l.length-1];return a?a.params:{}}function Us(l,{relative:a}={}){let{matches:r}=b.useContext(On),{pathname:s}=Ua(),o=JSON.stringify(lh(r));return b.useMemo(()=>Do(l,JSON.parse(o),s,a==="path"),[l,o,s,a])}function I_(l,a){return pb(l,a)}function pb(l,a,r){var A;ut(_r(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=b.useContext(hn),{matches:o}=b.useContext(On),f=o[o.length-1],h=f?f.params:{},m=f?f.pathname:"/",v=f?f.pathnameBase:"/",y=f&&f.route;{let z=y&&y.path||"";vb(m,!y||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let x=Ua(),S;if(a){let z=typeof a=="string"?xr(a):a;ut(v==="/"||((A=z.pathname)==null?void 0:A.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${z.pathname}" was given in the \`location\` prop.`),S=z}else S=x;let C=S.pathname||"/",M=C;if(v!=="/"){let z=v.replace(/^\//,"").split("/");M="/"+C.replace(/^\//,"").split("/").slice(z.length).join("/")}let L=ib(l,{pathname:M});Zn(y||L!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Zn(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=nE(L&&L.map(z=>Object.assign({},z,{params:Object.assign({},h,z.params),pathname:ea([v,s.encodeLocation?s.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?v:ea([v,s.encodeLocation?s.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),o,r);return a&&T?b.createElement(zs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...S},navigationType:"POP"}},T):T}function P_(){let l=sE(),a=U_(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),r=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},a),r?b.createElement("pre",{style:o},r):null,h)}var W_=b.createElement(P_,null),yb=class extends b.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,a){return a.location!==l.location||a.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:a.error,location:a.location,revalidation:l.revalidation||a.revalidation}}componentDidCatch(l,a){this.props.onError?this.props.onError(l,a):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const r=Y_(l.digest);r&&(l=r)}let a=l!==void 0?b.createElement(On.Provider,{value:this.props.routeContext},b.createElement(ih.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?b.createElement(eE,{error:l},a):a}};yb.contextType=q_;var od=new WeakMap;function eE({children:l,error:a}){let{basename:r}=b.useContext(hn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let s=G_(a.digest);if(s){let o=od.get(a);if(o)throw o;let f=ob(s.location,r);if(ub&&!od.get(a))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw od.set(a,h),h}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function tE({routeContext:l,match:a,children:r}){let s=b.useContext(Sr);return s&&s.static&&s.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=a.route.id),b.createElement(On.Provider,{value:l},r)}function nE(l,a=[],r){let s=r==null?void 0:r.state;if(l==null){if(!s)return null;if(s.errors)l=s.matches;else if(a.length===0&&!s.initialized&&s.matches.length>0)l=s.matches;else return null}let o=l,f=s==null?void 0:s.errors;if(f!=null){let x=o.findIndex(S=>S.route.id&&(f==null?void 0:f[S.route.id])!==void 0);ut(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let h=!1,m=-1;if(r&&s){h=s.renderFallback;for(let x=0;x<o.length;x++){let S=o[x];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(m=x),S.route.id){let{loaderData:C,errors:M}=s,L=S.route.loader&&!C.hasOwnProperty(S.route.id)&&(!M||M[S.route.id]===void 0);if(S.route.lazy||L){r.isStatic&&(h=!0),m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}}let v=r==null?void 0:r.onError,y=s&&v?(x,S)=>{var C,M;v(x,{location:s.location,params:((M=(C=s.matches)==null?void 0:C[0])==null?void 0:M.params)??{},unstable_pattern:L_(s.matches),errorInfo:S})}:void 0;return o.reduceRight((x,S,C)=>{let M,L=!1,T=null,A=null;s&&(M=f&&S.route.id?f[S.route.id]:void 0,T=S.route.errorElement||W_,h&&(m<0&&C===0?(vb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,A=null):m===C&&(L=!0,A=S.route.hydrateFallbackElement||null)));let z=a.concat(o.slice(0,C+1)),F=()=>{let H;return M?H=T:L?H=A:S.route.Component?H=b.createElement(S.route.Component,null):S.route.element?H=S.route.element:H=x,b.createElement(tE,{match:S,routeContext:{outlet:x,matches:z,isDataRoute:s!=null},children:H})};return s&&(S.route.ErrorBoundary||S.route.errorElement||C===0)?b.createElement(yb,{location:s.location,revalidation:s.revalidation,component:T,error:M,children:F(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:y}):F()},null)}function rh(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function aE(l){let a=b.useContext(Sr);return ut(a,rh(l)),a}function lE(l){let a=b.useContext(zo);return ut(a,rh(l)),a}function iE(l){let a=b.useContext(On);return ut(a,rh(l)),a}function sh(l){let a=iE(l),r=a.matches[a.matches.length-1];return ut(r.route.id,`${l} can only be used on routes that contain a unique "id"`),r.route.id}function rE(){return sh("useRouteId")}function sE(){var s;let l=b.useContext(ih),a=lE("useRouteError"),r=sh("useRouteError");return l!==void 0?l:(s=a.errors)==null?void 0:s[r]}function uE(){let{router:l}=aE("useNavigate"),a=sh("useNavigate"),r=b.useRef(!1);return mb(()=>{r.current=!0}),b.useCallback(async(o,f={})=>{Zn(r.current,hb),r.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:a,...f}))},[l,a])}var Fv={};function vb(l,a,r){!a&&!Fv[l]&&(Fv[l]=!0,Zn(!1,r))}b.memo(oE);function oE({routes:l,future:a,state:r,isStatic:s,onError:o}){return pb(l,void 0,{state:r,isStatic:s,onError:o})}function gb({to:l,replace:a,state:r,relative:s}){ut(_r(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=b.useContext(hn);Zn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=b.useContext(On),{pathname:h}=Ua(),m=ks(),v=Do(l,lh(f),h,s==="path"),y=JSON.stringify(v);return b.useEffect(()=>{m(JSON.parse(y),{replace:a,state:r,relative:s})},[m,y,s,a,r]),null}function bb(l){return J_(l.context)}function Bn(l){ut(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function cE({basename:l="/",children:a=null,location:r,navigationType:s="POP",navigator:o,static:f=!1,unstable_useTransitions:h}){ut(!_r(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=l.replace(/^\/*/,"/"),v=b.useMemo(()=>({basename:m,navigator:o,static:f,unstable_useTransitions:h,future:{}}),[m,o,f,h]);typeof r=="string"&&(r=xr(r));let{pathname:y="/",search:x="",hash:S="",state:C=null,key:M="default",unstable_mask:L}=r,T=b.useMemo(()=>{let A=za(y,m);return A==null?null:{location:{pathname:A,search:x,hash:S,state:C,key:M,unstable_mask:L},navigationType:s}},[m,y,x,S,C,M,s,L]);return Zn(T!=null,`<Router basename="${m}"> is not able to match the URL "${y}${x}${S}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:b.createElement(hn.Provider,{value:v},b.createElement(zs.Provider,{children:a,value:T}))}function fE({children:l,location:a}){return I_(Ld(l),a)}function Ld(l,a=[]){let r=[];return b.Children.forEach(l,(s,o)=>{if(!b.isValidElement(s))return;let f=[...a,o];if(s.type===b.Fragment){r.push.apply(r,Ld(s.props.children,f));return}ut(s.type===Bn,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ut(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=Ld(s.props.children,f)),r.push(h)}),r}var mo="get",po="application/x-www-form-urlencoded";function ko(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function dE(l){return ko(l)&&l.tagName.toLowerCase()==="button"}function hE(l){return ko(l)&&l.tagName.toLowerCase()==="form"}function mE(l){return ko(l)&&l.tagName.toLowerCase()==="input"}function pE(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function yE(l,a){return l.button===0&&(!a||a==="_self")&&!pE(l)}var ao=null;function vE(){if(ao===null)try{new FormData(document.createElement("form"),0),ao=!1}catch{ao=!0}return ao}var gE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cd(l){return l!=null&&!gE.has(l)?(Zn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${po}"`),null):l}function bE(l,a){let r,s,o,f,h;if(hE(l)){let m=l.getAttribute("action");s=m?za(m,a):null,r=l.getAttribute("method")||mo,o=cd(l.getAttribute("enctype"))||po,f=new FormData(l)}else if(dE(l)||mE(l)&&(l.type==="submit"||l.type==="image")){let m=l.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||m.getAttribute("action");if(s=v?za(v,a):null,r=l.getAttribute("formmethod")||m.getAttribute("method")||mo,o=cd(l.getAttribute("formenctype"))||cd(m.getAttribute("enctype"))||po,f=new FormData(m,l),!vE()){let{name:y,type:x,value:S}=l;if(x==="image"){let C=y?`${y}.`:"";f.append(`${C}x`,"0"),f.append(`${C}y`,"0")}else y&&f.append(y,S)}}else{if(ko(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=mo,s=null,o=po,h=l}return f&&o==="text/plain"&&(h=f,f=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function uh(l,a){if(l===!1||l===null||typeof l>"u")throw new Error(a)}function xE(l,a,r,s){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${s}`:o.pathname=`${o.pathname}.${s}`:o.pathname==="/"?o.pathname=`_root.${s}`:a&&za(o.pathname,a)==="/"?o.pathname=`${a.replace(/\/$/,"")}/_root.${s}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${s}`,o}async function SE(l,a){if(l.id in a)return a[l.id];try{let r=await import(l.module);return a[l.id]=r,r}catch(r){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _E(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function EE(l,a,r){let s=await Promise.all(l.map(async o=>{let f=a.routes[o.route.id];if(f){let h=await SE(f,r);return h.links?h.links():[]}return[]}));return TE(s.flat(1).filter(_E).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Jv(l,a,r,s,o,f){let h=(v,y)=>r[y]?v.route.id!==r[y].route.id:!0,m=(v,y)=>{var x;return r[y].pathname!==v.pathname||((x=r[y].route.path)==null?void 0:x.endsWith("*"))&&r[y].params["*"]!==v.params["*"]};return f==="assets"?a.filter((v,y)=>h(v,y)||m(v,y)):f==="data"?a.filter((v,y)=>{var S;let x=s.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(h(v,y)||m(v,y))return!0;if(v.route.shouldRevalidate){let C=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((S=r[0])==null?void 0:S.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function CE(l,a,{includeHydrateFallback:r}={}){return NE(l.map(s=>{let o=a.routes[s.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function NE(l){return[...new Set(l)]}function jE(l){let a={},r=Object.keys(l).sort();for(let s of r)a[s]=l[s];return a}function TE(l,a){let r=new Set;return new Set(a),l.reduce((s,o)=>{let f=JSON.stringify(jE(o));return r.has(f)||(r.add(f),s.push({key:f,link:o})),s},[])}function xb(){let l=b.useContext(Sr);return uh(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function wE(){let l=b.useContext(zo);return uh(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var oh=b.createContext(void 0);oh.displayName="FrameworkContext";function Sb(){let l=b.useContext(oh);return uh(l,"You must render this element inside a <HydratedRouter> element"),l}function AE(l,a){let r=b.useContext(oh),[s,o]=b.useState(!1),[f,h]=b.useState(!1),{onFocus:m,onBlur:v,onMouseEnter:y,onMouseLeave:x,onTouchStart:S}=a,C=b.useRef(null);b.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let T=z=>{z.forEach(F=>{h(F.isIntersecting)})},A=new IntersectionObserver(T,{threshold:.5});return C.current&&A.observe(C.current),()=>{A.disconnect()}}},[l]),b.useEffect(()=>{if(s){let T=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(T)}}},[s]);let M=()=>{o(!0)},L=()=>{o(!1),h(!1)};return r?l!=="intent"?[f,C,{}]:[f,C,{onFocus:vs(m,M),onBlur:vs(v,L),onMouseEnter:vs(y,M),onMouseLeave:vs(x,L),onTouchStart:vs(S,M)}]:[!1,C,{}]}function vs(l,a){return r=>{l&&l(r),r.defaultPrevented||a(r)}}function RE({page:l,...a}){let{router:r}=xb(),s=b.useMemo(()=>ib(r.routes,l,r.basename),[r.routes,l,r.basename]);return s?b.createElement(ME,{page:l,matches:s,...a}):null}function OE(l){let{manifest:a,routeModules:r}=Sb(),[s,o]=b.useState([]);return b.useEffect(()=>{let f=!1;return EE(l,a,r).then(h=>{f||o(h)}),()=>{f=!0}},[l,a,r]),s}function ME({page:l,matches:a,...r}){let s=Ua(),{future:o,manifest:f,routeModules:h}=Sb(),{basename:m}=xb(),{loaderData:v,matches:y}=wE(),x=b.useMemo(()=>Jv(l,a,y,f,s,"data"),[l,a,y,f,s]),S=b.useMemo(()=>Jv(l,a,y,f,s,"assets"),[l,a,y,f,s]),C=b.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let T=new Set,A=!1;if(a.forEach(F=>{var V;let H=f.routes[F.route.id];!H||!H.hasLoader||(!x.some(X=>X.route.id===F.route.id)&&F.route.id in v&&((V=h[F.route.id])!=null&&V.shouldRevalidate)||H.hasClientLoader?A=!0:T.add(F.route.id))}),T.size===0)return[];let z=xE(l,m,o.unstable_trailingSlashAwareDataRequests,"data");return A&&T.size>0&&z.searchParams.set("_routes",a.filter(F=>T.has(F.route.id)).map(F=>F.route.id).join(",")),[z.pathname+z.search]},[m,o.unstable_trailingSlashAwareDataRequests,v,s,f,x,a,l,h]),M=b.useMemo(()=>CE(S,f),[S,f]),L=OE(S);return b.createElement(b.Fragment,null,C.map(T=>b.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...r})),M.map(T=>b.createElement("link",{key:T,rel:"modulepreload",href:T,...r})),L.map(({key:T,link:A})=>b.createElement("link",{key:T,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function DE(...l){return a=>{l.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var zE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zE&&(window.__reactRouterVersion="7.13.1")}catch{}function kE({basename:l,children:a,unstable_useTransitions:r,window:s}){let o=b.useRef();o.current==null&&(o.current=d_({window:s,v5Compat:!0}));let f=o.current,[h,m]=b.useState({action:f.action,location:f.location}),v=b.useCallback(y=>{r===!1?m(y):b.startTransition(()=>m(y))},[r]);return b.useLayoutEffect(()=>f.listen(v),[f,v]),b.createElement(cE,{basename:l,children:a,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:r})}var _b=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Eb=b.forwardRef(function({onClick:a,discover:r="render",prefetch:s="none",relative:o,reloadDocument:f,replace:h,unstable_mask:m,state:v,target:y,to:x,preventScrollReset:S,viewTransition:C,unstable_defaultShouldRevalidate:M,...L},T){let{basename:A,navigator:z,unstable_useTransitions:F}=b.useContext(hn),H=typeof x=="string"&&_b.test(x),V=ob(x,A);x=V.to;let X=X_(x,{relative:o}),K=Ua(),$=null;if(m){let ze=Do(m,[],K.unstable_mask?K.unstable_mask.pathname:"/",!0);A!=="/"&&(ze.pathname=ze.pathname==="/"?A:ea([A,ze.pathname])),$=z.createHref(ze)}let[G,he,Ne]=AE(s,L),Ze=BE(x,{replace:h,unstable_mask:m,state:v,target:y,preventScrollReset:S,relative:o,viewTransition:C,unstable_defaultShouldRevalidate:M,unstable_useTransitions:F});function He(ze){a&&a(ze),ze.defaultPrevented||Ze(ze)}let pt=!(V.isExternal||f),rt=b.createElement("a",{...L,...Ne,href:(pt?$:void 0)||V.absoluteURL||X,onClick:pt?He:a,ref:DE(T,he),target:y,"data-discover":!H&&r==="render"?"true":void 0});return G&&!H?b.createElement(b.Fragment,null,rt,b.createElement(RE,{page:X})):rt});Eb.displayName="Link";var Cb=b.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:s="",end:o=!1,style:f,to:h,viewTransition:m,children:v,...y},x){let S=Us(h,{relative:y.relative}),C=Ua(),M=b.useContext(zo),{navigator:L,basename:T}=b.useContext(hn),A=M!=null&&VE(S)&&m===!0,z=L.encodeLocation?L.encodeLocation(S).pathname:S.pathname,F=C.pathname,H=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;r||(F=F.toLowerCase(),H=H?H.toLowerCase():null,z=z.toLowerCase()),H&&T&&(H=za(H,T)||H);const V=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let X=F===z||!o&&F.startsWith(z)&&F.charAt(V)==="/",K=H!=null&&(H===z||!o&&H.startsWith(z)&&H.charAt(z.length)==="/"),$={isActive:X,isPending:K,isTransitioning:A},G=X?a:void 0,he;typeof s=="function"?he=s($):he=[s,X?"active":null,K?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let Ne=typeof f=="function"?f($):f;return b.createElement(Eb,{...y,"aria-current":G,className:he,ref:x,style:Ne,to:h,viewTransition:m},typeof v=="function"?v($):v)});Cb.displayName="NavLink";var UE=b.forwardRef(({discover:l="render",fetcherKey:a,navigate:r,reloadDocument:s,replace:o,state:f,method:h=mo,action:m,onSubmit:v,relative:y,preventScrollReset:x,viewTransition:S,unstable_defaultShouldRevalidate:C,...M},L)=>{let{unstable_useTransitions:T}=b.useContext(hn),A=QE(),z=ZE(m,{relative:y}),F=h.toLowerCase()==="get"?"get":"post",H=typeof m=="string"&&_b.test(m),V=X=>{if(v&&v(X),X.defaultPrevented)return;X.preventDefault();let K=X.nativeEvent.submitter,$=(K==null?void 0:K.getAttribute("formmethod"))||h,G=()=>A(K||X.currentTarget,{fetcherKey:a,method:$,navigate:r,replace:o,state:f,relative:y,preventScrollReset:x,viewTransition:S,unstable_defaultShouldRevalidate:C});T&&r!==!1?b.startTransition(()=>G()):G()};return b.createElement("form",{ref:L,method:F,action:z,onSubmit:s?v:V,...M,"data-discover":!H&&l==="render"?"true":void 0})});UE.displayName="Form";function LE(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nb(l){let a=b.useContext(Sr);return ut(a,LE(l)),a}function BE(l,{target:a,replace:r,unstable_mask:s,state:o,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:v,unstable_useTransitions:y}={}){let x=ks(),S=Ua(),C=Us(l,{relative:h});return b.useCallback(M=>{if(yE(M,a)){M.preventDefault();let L=r!==void 0?r:Ns(S)===Ns(C),T=()=>x(l,{replace:L,unstable_mask:s,state:o,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:v});y?b.startTransition(()=>T()):T()}},[S,x,C,r,s,o,a,l,f,h,m,v,y])}var qE=0,HE=()=>`__${String(++qE)}__`;function QE(){let{router:l}=Nb("useSubmit"),{basename:a}=b.useContext(hn),r=rE(),s=l.fetch,o=l.navigate;return b.useCallback(async(f,h={})=>{let{action:m,method:v,encType:y,formData:x,body:S}=bE(f,a);if(h.navigate===!1){let C=h.fetcherKey||HE();await s(C,r,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:S,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await o(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:S,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,o,a,r])}function ZE(l,{relative:a}={}){let{basename:r}=b.useContext(hn),s=b.useContext(On);ut(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...Us(l||".",{relative:a})},h=Ua();if(l==null){f.search=h.search;let m=new URLSearchParams(f.search),v=m.getAll("index");if(v.some(x=>x==="")){m.delete("index"),v.filter(S=>S).forEach(S=>m.append("index",S));let x=m.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:ea([r,f.pathname])),Ns(f)}function VE(l,{relative:a}={}){let r=b.useContext(fb);ut(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Nb("useViewTransitionState"),o=Us(l,{relative:a});if(!r.isTransitioning)return!1;let f=za(r.currentLocation.pathname,s)||r.currentLocation.pathname,h=za(r.nextLocation.pathname,s)||r.nextLocation.pathname;return So(o.pathname,h)!=null||So(o.pathname,f)!=null}const GE="/api/v1";async function YE(l,a){const r=await fetch(`${GE}/admin/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:l,password:a})});if(!r.ok){const s=await r.text();let o;try{o=JSON.parse(s).error??s}catch{o=s}throw new Error(o)}return await r.json()}const jb="/api/v1",ch="first-tree-hub:tokens";function Tb(){const l=localStorage.getItem(ch);if(!l)return null;try{return JSON.parse(l)}catch{return null}}function wb(l){localStorage.setItem(ch,JSON.stringify(l))}function Ab(){localStorage.removeItem(ch)}class XE extends Error{constructor(a,r){super(r),this.status=a,this.name="ApiError"}}let gs=null;async function KE(l){return gs||(gs=(async()=>{try{const a=await fetch(`${jb}/admin/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:l})});if(!a.ok)return null;const r=await a.json(),s={accessToken:r.accessToken,refreshToken:r.refreshToken??l};return wb(s),s}catch{return null}finally{gs=null}})(),gs)}async function lo(l,a){const{method:r="GET",body:s}=a??{},o=m=>{const v={};return m&&(v.Authorization=`Bearer ${m}`),s!==void 0&&(v["Content-Type"]="application/json"),fetch(`${jb}${l}`,{method:r,headers:v,body:s!==void 0?JSON.stringify(s):void 0})},f=Tb();let h=await o(f==null?void 0:f.accessToken);if(h.status===401&&(f!=null&&f.refreshToken)){const m=await KE(f.refreshToken);m&&(h=await o(m.accessToken))}if(!h.ok){h.status===401&&(Ab(),window.dispatchEvent(new CustomEvent("auth:logout")));const m=await h.text();let v;try{v=JSON.parse(m).error??m}catch{v=m}throw new XE(h.status,v)}if(h.status!==204)return await h.json()}const nt={get:l=>lo(l),post:(l,a)=>lo(l,{method:"POST",body:a}),patch:(l,a)=>lo(l,{method:"PATCH",body:a}),delete:l=>lo(l,{method:"DELETE"})},Rb=b.createContext(null);function FE({children:l}){const[a,r]=b.useState(()=>!!Tb()),s=b.useCallback(()=>{Ab(),r(!1)},[]),o=b.useCallback(async(f,h)=>{const m=await YE(f,h);wb({accessToken:m.accessToken,refreshToken:m.refreshToken}),r(!0)},[]);return b.useEffect(()=>{const f=()=>s();return window.addEventListener("auth:logout",f),()=>window.removeEventListener("auth:logout",f)},[s]),d.jsx(Rb.Provider,{value:{isAuthenticated:a,login:o,logout:s},children:l})}function fh(){const l=b.useContext(Rb);if(!l)throw new Error("useAuth must be used within AuthProvider");return l}function JE(){const{isAuthenticated:l}=fh();return l?d.jsx(bb,{}):d.jsx(gb,{to:"/login",replace:!0})}/**
|
|
61
|
-
* @license lucide-react v0.577.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const Ob=(...l)=>l.filter((a,r,s)=>!!a&&a.trim()!==""&&s.indexOf(a)===r).join(" ").trim();/**
|
|
66
|
-
* @license lucide-react v0.577.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const $E=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
71
|
-
* @license lucide-react v0.577.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const IE=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,s)=>s?s.toUpperCase():r.toLowerCase());/**
|
|
76
|
-
* @license lucide-react v0.577.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const $v=l=>{const a=IE(l);return a.charAt(0).toUpperCase()+a.slice(1)};/**
|
|
81
|
-
* @license lucide-react v0.577.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/var PE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
86
|
-
* @license lucide-react v0.577.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const WE=l=>{for(const a in l)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
|
|
91
|
-
* @license lucide-react v0.577.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const e2=b.forwardRef(({color:l="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:f,iconNode:h,...m},v)=>b.createElement("svg",{ref:v,...PE,width:a,height:a,stroke:l,strokeWidth:s?Number(r)*24/Number(a):r,className:Ob("lucide",o),...!f&&!WE(m)&&{"aria-hidden":"true"},...m},[...h.map(([y,x])=>b.createElement(y,x)),...Array.isArray(f)?f:[f]]));/**
|
|
96
|
-
* @license lucide-react v0.577.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const Tt=(l,a)=>{const r=b.forwardRef(({className:s,...o},f)=>b.createElement(e2,{ref:f,iconNode:a,className:Ob(`lucide-${$E($v(l))}`,`lucide-${l}`,s),...o}));return r.displayName=$v(l),r};/**
|
|
101
|
-
* @license lucide-react v0.577.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const t2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Mb=Tt("arrow-left",t2);/**
|
|
106
|
-
* @license lucide-react v0.577.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const n2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Db=Tt("bot",n2);/**
|
|
111
|
-
* @license lucide-react v0.577.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const a2=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],zb=Tt("cable",a2);/**
|
|
116
|
-
* @license lucide-react v0.577.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const l2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],i2=Tt("copy",l2);/**
|
|
121
|
-
* @license lucide-react v0.577.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const r2=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],s2=Tt("key",r2);/**
|
|
126
|
-
* @license lucide-react v0.577.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const u2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],o2=Tt("layout-dashboard",u2);/**
|
|
131
|
-
* @license lucide-react v0.577.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const c2=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],f2=Tt("link-2",c2);/**
|
|
136
|
-
* @license lucide-react v0.577.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const d2=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],h2=Tt("log-out",d2);/**
|
|
141
|
-
* @license lucide-react v0.577.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const m2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],dh=Tt("message-square",m2);/**
|
|
146
|
-
* @license lucide-react v0.577.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const p2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],kb=Tt("pencil",p2);/**
|
|
151
|
-
* @license lucide-react v0.577.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const y2=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],v2=Tt("play",y2);/**
|
|
156
|
-
* @license lucide-react v0.577.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const g2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Bd=Tt("plus",g2);/**
|
|
161
|
-
* @license lucide-react v0.577.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const b2=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],x2=Tt("radio",b2);/**
|
|
166
|
-
* @license lucide-react v0.577.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const S2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],_2=Tt("refresh-cw",S2);/**
|
|
171
|
-
* @license lucide-react v0.577.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const E2=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],C2=Tt("settings",E2);/**
|
|
176
|
-
* @license lucide-react v0.577.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const N2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],j2=Tt("shield",N2);/**
|
|
181
|
-
* @license lucide-react v0.577.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const T2=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ss=Tt("trash-2",T2);/**
|
|
186
|
-
* @license lucide-react v0.577.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const w2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],A2=Tt("x",w2);function Ub(l){var a,r,s="";if(typeof l=="string"||typeof l=="number")s+=l;else if(typeof l=="object")if(Array.isArray(l)){var o=l.length;for(a=0;a<o;a++)l[a]&&(r=Ub(l[a]))&&(s&&(s+=" "),s+=r)}else for(r in l)l[r]&&(s&&(s+=" "),s+=r);return s}function Lb(){for(var l,a,r=0,s="",o=arguments.length;r<o;r++)(l=arguments[r])&&(a=Ub(l))&&(s&&(s+=" "),s+=a);return s}const R2=(l,a)=>{const r=new Array(l.length+a.length);for(let s=0;s<l.length;s++)r[s]=l[s];for(let s=0;s<a.length;s++)r[l.length+s]=a[s];return r},O2=(l,a)=>({classGroupId:l,validator:a}),Bb=(l=new Map,a=null,r)=>({nextPart:l,validators:a,classGroupId:r}),_o="-",Iv=[],M2="arbitrary..",D2=l=>{const a=k2(l),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=l;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return z2(h);const m=h.split(_o),v=m[0]===""&&m.length>1?1:0;return qb(m,v,a)},getConflictingClassGroupIds:(h,m)=>{if(m){const v=s[h],y=r[h];return v?y?R2(y,v):v:y||Iv}return r[h]||Iv}}},qb=(l,a,r)=>{if(l.length-a===0)return r.classGroupId;const o=l[a],f=r.nextPart.get(o);if(f){const y=qb(l,a+1,f);if(y)return y}const h=r.validators;if(h===null)return;const m=a===0?l.join(_o):l.slice(a).join(_o),v=h.length;for(let y=0;y<v;y++){const x=h[y];if(x.validator(m))return x.classGroupId}},z2=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=l.slice(1,-1),r=a.indexOf(":"),s=a.slice(0,r);return s?M2+s:void 0})(),k2=l=>{const{theme:a,classGroups:r}=l;return U2(r,a)},U2=(l,a)=>{const r=Bb();for(const s in l){const o=l[s];hh(o,r,s,a)}return r},hh=(l,a,r,s)=>{const o=l.length;for(let f=0;f<o;f++){const h=l[f];L2(h,a,r,s)}},L2=(l,a,r,s)=>{if(typeof l=="string"){B2(l,a,r);return}if(typeof l=="function"){q2(l,a,r,s);return}H2(l,a,r,s)},B2=(l,a,r)=>{const s=l===""?a:Hb(a,l);s.classGroupId=r},q2=(l,a,r,s)=>{if(Q2(l)){hh(l(s),a,r,s);return}a.validators===null&&(a.validators=[]),a.validators.push(O2(r,l))},H2=(l,a,r,s)=>{const o=Object.entries(l),f=o.length;for(let h=0;h<f;h++){const[m,v]=o[h];hh(v,Hb(a,m),r,s)}},Hb=(l,a)=>{let r=l;const s=a.split(_o),o=s.length;for(let f=0;f<o;f++){const h=s[f];let m=r.nextPart.get(h);m||(m=Bb(),r.nextPart.set(h,m)),r=m}return r},Q2=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,Z2=l=>{if(l<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),s=Object.create(null);const o=(f,h)=>{r[f]=h,a++,a>l&&(a=0,s=r,r=Object.create(null))};return{get(f){let h=r[f];if(h!==void 0)return h;if((h=s[f])!==void 0)return o(f,h),h},set(f,h){f in r?r[f]=h:o(f,h)}}},qd="!",Pv=":",V2=[],Wv=(l,a,r,s,o)=>({modifiers:l,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:s,isExternal:o}),G2=l=>{const{prefix:a,experimentalParseClassName:r}=l;let s=o=>{const f=[];let h=0,m=0,v=0,y;const x=o.length;for(let T=0;T<x;T++){const A=o[T];if(h===0&&m===0){if(A===Pv){f.push(o.slice(v,T)),v=T+1;continue}if(A==="/"){y=T;continue}}A==="["?h++:A==="]"?h--:A==="("?m++:A===")"&&m--}const S=f.length===0?o:o.slice(v);let C=S,M=!1;S.endsWith(qd)?(C=S.slice(0,-1),M=!0):S.startsWith(qd)&&(C=S.slice(1),M=!0);const L=y&&y>v?y-v:void 0;return Wv(f,M,C,L)};if(a){const o=a+Pv,f=s;s=h=>h.startsWith(o)?f(h.slice(o.length)):Wv(V2,!1,h,void 0,!0)}if(r){const o=s;s=f=>r({className:f,parseClassName:o})}return s},Y2=l=>{const a=new Map;return l.orderSensitiveModifiers.forEach((r,s)=>{a.set(r,1e6+s)}),r=>{const s=[];let o=[];for(let f=0;f<r.length;f++){const h=r[f],m=h[0]==="[",v=a.has(h);m||v?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(h)):o.push(h)}return o.length>0&&(o.sort(),s.push(...o)),s}},X2=l=>({cache:Z2(l.cacheSize),parseClassName:G2(l),sortModifiers:Y2(l),...D2(l)}),K2=/\s+/,F2=(l,a)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:f}=a,h=[],m=l.trim().split(K2);let v="";for(let y=m.length-1;y>=0;y-=1){const x=m[y],{isExternal:S,modifiers:C,hasImportantModifier:M,baseClassName:L,maybePostfixModifierPosition:T}=r(x);if(S){v=x+(v.length>0?" "+v:v);continue}let A=!!T,z=s(A?L.substring(0,T):L);if(!z){if(!A){v=x+(v.length>0?" "+v:v);continue}if(z=s(L),!z){v=x+(v.length>0?" "+v:v);continue}A=!1}const F=C.length===0?"":C.length===1?C[0]:f(C).join(":"),H=M?F+qd:F,V=H+z;if(h.indexOf(V)>-1)continue;h.push(V);const X=o(z,A);for(let K=0;K<X.length;++K){const $=X[K];h.push(H+$)}v=x+(v.length>0?" "+v:v)}return v},J2=(...l)=>{let a=0,r,s,o="";for(;a<l.length;)(r=l[a++])&&(s=Qb(r))&&(o&&(o+=" "),o+=s);return o},Qb=l=>{if(typeof l=="string")return l;let a,r="";for(let s=0;s<l.length;s++)l[s]&&(a=Qb(l[s]))&&(r&&(r+=" "),r+=a);return r},$2=(l,...a)=>{let r,s,o,f;const h=v=>{const y=a.reduce((x,S)=>S(x),l());return r=X2(y),s=r.cache.get,o=r.cache.set,f=m,m(v)},m=v=>{const y=s(v);if(y)return y;const x=F2(v,r);return o(v,x),x};return f=h,(...v)=>f(J2(...v))},I2=[],_t=l=>{const a=r=>r[l]||I2;return a.isThemeGetter=!0,a},Zb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,W2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ol=l=>P2.test(l),Re=l=>!!l&&!Number.isNaN(Number(l)),cl=l=>!!l&&Number.isInteger(Number(l)),fd=l=>l.endsWith("%")&&Re(l.slice(0,-1)),Ea=l=>W2.test(l),Gb=()=>!0,lC=l=>eC.test(l)&&!tC.test(l),mh=()=>!1,iC=l=>nC.test(l),rC=l=>aC.test(l),sC=l=>!re(l)&&!ue(l),uC=l=>Tl(l,Kb,mh),re=l=>Zb.test(l),Xl=l=>Tl(l,Fb,lC),eg=l=>Tl(l,yC,Re),oC=l=>Tl(l,$b,Gb),cC=l=>Tl(l,Jb,mh),tg=l=>Tl(l,Yb,mh),fC=l=>Tl(l,Xb,rC),io=l=>Tl(l,Ib,iC),ue=l=>Vb.test(l),bs=l=>ui(l,Fb),dC=l=>ui(l,Jb),ng=l=>ui(l,Yb),hC=l=>ui(l,Kb),mC=l=>ui(l,Xb),ro=l=>ui(l,Ib,!0),pC=l=>ui(l,$b,!0),Tl=(l,a,r)=>{const s=Zb.exec(l);return s?s[1]?a(s[1]):r(s[2]):!1},ui=(l,a,r=!1)=>{const s=Vb.exec(l);return s?s[1]?a(s[1]):r:!1},Yb=l=>l==="position"||l==="percentage",Xb=l=>l==="image"||l==="url",Kb=l=>l==="length"||l==="size"||l==="bg-size",Fb=l=>l==="length",yC=l=>l==="number",Jb=l=>l==="family-name",$b=l=>l==="number"||l==="weight",Ib=l=>l==="shadow",vC=()=>{const l=_t("color"),a=_t("font"),r=_t("text"),s=_t("font-weight"),o=_t("tracking"),f=_t("leading"),h=_t("breakpoint"),m=_t("container"),v=_t("spacing"),y=_t("radius"),x=_t("shadow"),S=_t("inset-shadow"),C=_t("text-shadow"),M=_t("drop-shadow"),L=_t("blur"),T=_t("perspective"),A=_t("aspect"),z=_t("ease"),F=_t("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...V(),ue,re],K=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],G=()=>[ue,re,v],he=()=>[ol,"full","auto",...G()],Ne=()=>[cl,"none","subgrid",ue,re],Ze=()=>["auto",{span:["full",cl,ue,re]},cl,ue,re],He=()=>[cl,"auto",ue,re],pt=()=>["auto","min","max","fr",ue,re],rt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ze=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...G()],J=()=>[ol,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],ne=()=>[ol,"screen","full","dvw","lvw","svw","min","max","fit",...G()],Ee=()=>[ol,"screen","full","lh","dvh","lvh","svh","min","max","fit",...G()],P=()=>[l,ue,re],j=()=>[...V(),ng,tg,{position:[ue,re]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",hC,uC,{size:[ue,re]}],le=()=>[fd,bs,Xl],ce=()=>["","none","full",y,ue,re],me=()=>["",Re,bs,Xl],Ae=()=>["solid","dashed","dotted","double"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[Re,fd,ng,tg],mn=()=>["","none",L,ue,re],pn=()=>["none",Re,ue,re],zn=()=>["none",Re,ue,re],la=()=>[Re,ue,re],Ut=()=>[ol,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ea],breakpoint:[Ea],color:[Gb],container:[Ea],"drop-shadow":[Ea],ease:["in","out","in-out"],font:[sC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ea],shadow:[Ea],spacing:["px",Re],text:[Ea],"text-shadow":[Ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ol,re,ue,A]}],container:["container"],columns:[{columns:[Re,re,ue,m]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:he()}],"inset-x":[{"inset-x":he()}],"inset-y":[{"inset-y":he()}],start:[{"inset-s":he(),start:he()}],end:[{"inset-e":he(),end:he()}],"inset-bs":[{"inset-bs":he()}],"inset-be":[{"inset-be":he()}],top:[{top:he()}],right:[{right:he()}],bottom:[{bottom:he()}],left:[{left:he()}],visibility:["visible","invisible","collapse"],z:[{z:[cl,"auto",ue,re]}],basis:[{basis:[ol,"full","auto",m,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,ol,"auto","initial","none",re]}],grow:[{grow:["",Re,ue,re]}],shrink:[{shrink:["",Re,ue,re]}],order:[{order:[cl,"first","last","none",ue,re]}],"grid-cols":[{"grid-cols":Ne()}],"col-start-end":[{col:Ze()}],"col-start":[{"col-start":He()}],"col-end":[{"col-end":He()}],"grid-rows":[{"grid-rows":Ne()}],"row-start-end":[{row:Ze()}],"row-start":[{"row-start":He()}],"row-end":[{"row-end":He()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pt()}],"auto-rows":[{"auto-rows":pt()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...rt(),"normal"]}],"justify-items":[{"justify-items":[...ze(),"normal"]}],"justify-self":[{"justify-self":["auto",...ze()]}],"align-content":[{content:["normal",...rt()]}],"align-items":[{items:[...ze(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ze(),{baseline:["","last"]}]}],"place-content":[{"place-content":rt()}],"place-items":[{"place-items":[...ze(),"baseline"]}],"place-self":[{"place-self":["auto",...ze()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pbs:[{pbs:G()}],pbe:[{pbe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...ne()]}],"min-inline-size":[{"min-inline":["auto",...ne()]}],"max-inline-size":[{"max-inline":["none",...ne()]}],"block-size":[{block:["auto",...Ee()]}],"min-block-size":[{"min-block":["auto",...Ee()]}],"max-block-size":[{"max-block":["none",...Ee()]}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",r,bs,Xl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,pC,oC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fd,re]}],"font-family":[{font:[dC,cC,a]}],"font-features":[{"font-features":[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ue,re]}],"line-clamp":[{"line-clamp":[Re,"none",ue,eg]}],leading:[{leading:[f,...G()]}],"list-image":[{"list-image":["none",ue,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ue,Xl]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Re,"auto",ue,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cl,ue,re],radial:["",ue,re],conic:[cl,ue,re]},mC,fC]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ue,re]}],"outline-w":[{outline:["",Re,bs,Xl]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",x,ro,io]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",S,ro,io]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Re,Xl]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",C,ro,io]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Re,ue,re]}],"mix-blend":[{"mix-blend":[...at(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":at()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[ue,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,re]}],filter:[{filter:["","none",ue,re]}],blur:[{blur:mn()}],brightness:[{brightness:[Re,ue,re]}],contrast:[{contrast:[Re,ue,re]}],"drop-shadow":[{"drop-shadow":["","none",M,ro,io]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Re,ue,re]}],"hue-rotate":[{"hue-rotate":[Re,ue,re]}],invert:[{invert:["",Re,ue,re]}],saturate:[{saturate:[Re,ue,re]}],sepia:[{sepia:["",Re,ue,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,re]}],"backdrop-blur":[{"backdrop-blur":mn()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ue,re]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ue,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ue,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ue,re]}],"backdrop-invert":[{"backdrop-invert":["",Re,ue,re]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ue,re]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ue,re]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ue,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ue,re]}],ease:[{ease:["linear","initial",z,ue,re]}],delay:[{delay:[Re,ue,re]}],animate:[{animate:["none",F,ue,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,ue,re]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:pn()}],"rotate-x":[{"rotate-x":pn()}],"rotate-y":[{"rotate-y":pn()}],"rotate-z":[{"rotate-z":pn()}],scale:[{scale:zn()}],"scale-x":[{"scale-x":zn()}],"scale-y":[{"scale-y":zn()}],"scale-z":[{"scale-z":zn()}],"scale-3d":["scale-3d"],skew:[{skew:la()}],"skew-x":[{"skew-x":la()}],"skew-y":[{"skew-y":la()}],transform:[{transform:[ue,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ut()}],"translate-x":[{"translate-x":Ut()}],"translate-y":[{"translate-y":Ut()}],"translate-z":[{"translate-z":Ut()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mbs":[{"scroll-mbs":G()}],"scroll-mbe":[{"scroll-mbe":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pbs":[{"scroll-pbs":G()}],"scroll-pbe":[{"scroll-pbe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue,re]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Re,bs,Xl,eg]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gC=$2(vC);function We(...l){return gC(Lb(l))}function Wt(l){return l?new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(new Date(l)):"—"}const bC=[{to:"/",icon:o2,label:"Overview"},{to:"/agents",icon:Db,label:"Agents"},{to:"/bindings",icon:zb,label:"Bindings"},{to:"/chats",icon:dh,label:"Chats"},{to:"/admin-users",icon:j2,label:"Admin Users"},{to:"/settings",icon:C2,label:"Settings"}];function xC(){const{logout:l}=fh();return d.jsxs("div",{className:"flex h-screen bg-background",children:[d.jsxs("aside",{className:"w-60 shrink-0 border-r border-border bg-card flex flex-col",children:[d.jsxs("div",{className:"p-4 border-b border-border",children:[d.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"First Tree"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"Admin Console"})]}),d.jsx("nav",{className:"flex-1 p-2 space-y-1",children:bC.map(a=>d.jsxs(Cb,{to:a.to,end:a.to==="/",className:({isActive:r})=>We("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[d.jsx(a.icon,{className:"h-4 w-4"}),a.label]},a.to))}),d.jsx("div",{className:"p-2 border-t border-border",children:d.jsxs("button",{type:"button",onClick:l,className:"flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors",children:[d.jsx(h2,{className:"h-4 w-4"}),"Logout"]})})]}),d.jsx("main",{className:"flex-1 overflow-auto",children:d.jsx("div",{className:"p-6 max-w-5xl",children:d.jsx(bb,{})})})]})}var Ye;(function(l){l.assertEqual=o=>{};function a(o){}l.assertIs=a;function r(o){throw new Error}l.assertNever=r,l.arrayToEnum=o=>{const f={};for(const h of o)f[h]=h;return f},l.getValidEnumValues=o=>{const f=l.objectKeys(o).filter(m=>typeof o[o[m]]!="number"),h={};for(const m of f)h[m]=o[m];return l.objectValues(h)},l.objectValues=o=>l.objectKeys(o).map(function(f){return o[f]}),l.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const f=[];for(const h in o)Object.prototype.hasOwnProperty.call(o,h)&&f.push(h);return f},l.find=(o,f)=>{for(const h of o)if(f(h))return h},l.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function s(o,f=" | "){return o.map(h=>typeof h=="string"?`'${h}'`:h).join(f)}l.joinValues=s,l.jsonStringifyReplacer=(o,f)=>typeof f=="bigint"?f.toString():f})(Ye||(Ye={}));var ag;(function(l){l.mergeShapes=(a,r)=>({...a,...r})})(ag||(ag={}));const se=Ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),hl=l=>{switch(typeof l){case"undefined":return se.undefined;case"string":return se.string;case"number":return Number.isNaN(l)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(l)?se.array:l===null?se.null:l.then&&typeof l.then=="function"&&l.catch&&typeof l.catch=="function"?se.promise:typeof Map<"u"&&l instanceof Map?se.map:typeof Set<"u"&&l instanceof Set?se.set:typeof Date<"u"&&l instanceof Date?se.date:se.object;default:return se.unknown}},I=Ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ka extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=a}format(a){const r=a||function(f){return f.message},s={_errors:[]},o=f=>{for(const h of f.issues)if(h.code==="invalid_union")h.unionErrors.map(o);else if(h.code==="invalid_return_type")o(h.returnTypeError);else if(h.code==="invalid_arguments")o(h.argumentsError);else if(h.path.length===0)s._errors.push(r(h));else{let m=s,v=0;for(;v<h.path.length;){const y=h.path[v];v===h.path.length-1?(m[y]=m[y]||{_errors:[]},m[y]._errors.push(r(h))):m[y]=m[y]||{_errors:[]},m=m[y],v++}}};return o(this),s}static assert(a){if(!(a instanceof ka))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=r=>r.message){const r={},s=[];for(const o of this.issues)if(o.path.length>0){const f=o.path[0];r[f]=r[f]||[],r[f].push(a(o))}else s.push(a(o));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}ka.create=l=>new ka(l);const Hd=(l,a)=>{let r;switch(l.code){case I.invalid_type:l.received===se.undefined?r="Required":r=`Expected ${l.expected}, received ${l.received}`;break;case I.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(l.expected,Ye.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ye.joinValues(l.keys,", ")}`;break;case I.invalid_union:r="Invalid input";break;case I.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ye.joinValues(l.options)}`;break;case I.invalid_enum_value:r=`Invalid enum value. Expected ${Ye.joinValues(l.options)}, received '${l.received}'`;break;case I.invalid_arguments:r="Invalid function arguments";break;case I.invalid_return_type:r="Invalid function return type";break;case I.invalid_date:r="Invalid date";break;case I.invalid_string:typeof l.validation=="object"?"includes"in l.validation?(r=`Invalid input: must include "${l.validation.includes}"`,typeof l.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${l.validation.position}`)):"startsWith"in l.validation?r=`Invalid input: must start with "${l.validation.startsWith}"`:"endsWith"in l.validation?r=`Invalid input: must end with "${l.validation.endsWith}"`:Ye.assertNever(l.validation):l.validation!=="regex"?r=`Invalid ${l.validation}`:r="Invalid";break;case I.too_small:l.type==="array"?r=`Array must contain ${l.exact?"exactly":l.inclusive?"at least":"more than"} ${l.minimum} element(s)`:l.type==="string"?r=`String must contain ${l.exact?"exactly":l.inclusive?"at least":"over"} ${l.minimum} character(s)`:l.type==="number"?r=`Number must be ${l.exact?"exactly equal to ":l.inclusive?"greater than or equal to ":"greater than "}${l.minimum}`:l.type==="bigint"?r=`Number must be ${l.exact?"exactly equal to ":l.inclusive?"greater than or equal to ":"greater than "}${l.minimum}`:l.type==="date"?r=`Date must be ${l.exact?"exactly equal to ":l.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(l.minimum))}`:r="Invalid input";break;case I.too_big:l.type==="array"?r=`Array must contain ${l.exact?"exactly":l.inclusive?"at most":"less than"} ${l.maximum} element(s)`:l.type==="string"?r=`String must contain ${l.exact?"exactly":l.inclusive?"at most":"under"} ${l.maximum} character(s)`:l.type==="number"?r=`Number must be ${l.exact?"exactly":l.inclusive?"less than or equal to":"less than"} ${l.maximum}`:l.type==="bigint"?r=`BigInt must be ${l.exact?"exactly":l.inclusive?"less than or equal to":"less than"} ${l.maximum}`:l.type==="date"?r=`Date must be ${l.exact?"exactly":l.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(l.maximum))}`:r="Invalid input";break;case I.custom:r="Invalid input";break;case I.invalid_intersection_types:r="Intersection results could not be merged";break;case I.not_multiple_of:r=`Number must be a multiple of ${l.multipleOf}`;break;case I.not_finite:r="Number must be finite";break;default:r=a.defaultError,Ye.assertNever(l)}return{message:r}};let SC=Hd;function _C(){return SC}const EC=l=>{const{data:a,path:r,errorMaps:s,issueData:o}=l,f=[...r,...o.path||[]],h={...o,path:f};if(o.message!==void 0)return{...o,path:f,message:o.message};let m="";const v=s.filter(y=>!!y).slice().reverse();for(const y of v)m=y(h,{data:a,defaultError:m}).message;return{...o,path:f,message:m}};function ae(l,a){const r=_C(),s=EC({issueData:a,data:l.data,path:l.path,errorMaps:[l.common.contextualErrorMap,l.schemaErrorMap,r,r===Hd?void 0:Hd].filter(o=>!!o)});l.common.issues.push(s)}class Zt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,r){const s=[];for(const o of r){if(o.status==="aborted")return xe;o.status==="dirty"&&a.dirty(),s.push(o.value)}return{status:a.value,value:s}}static async mergeObjectAsync(a,r){const s=[];for(const o of r){const f=await o.key,h=await o.value;s.push({key:f,value:h})}return Zt.mergeObjectSync(a,s)}static mergeObjectSync(a,r){const s={};for(const o of r){const{key:f,value:h}=o;if(f.status==="aborted"||h.status==="aborted")return xe;f.status==="dirty"&&a.dirty(),h.status==="dirty"&&a.dirty(),f.value!=="__proto__"&&(typeof h.value<"u"||o.alwaysSet)&&(s[f.value]=h.value)}return{status:a.value,value:s}}}const xe=Object.freeze({status:"aborted"}),_s=l=>({status:"dirty",value:l}),Mn=l=>({status:"valid",value:l}),lg=l=>l.status==="aborted",ig=l=>l.status==="dirty",hr=l=>l.status==="valid",Eo=l=>typeof Promise<"u"&&l instanceof Promise;var de;(function(l){l.errToObj=a=>typeof a=="string"?{message:a}:a||{},l.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(de||(de={}));class na{constructor(a,r,s,o){this._cachedPath=[],this.parent=a,this.data=r,this._path=s,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const rg=(l,a)=>{if(hr(a))return{success:!0,data:a.value};if(!l.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ka(l.common.issues);return this._error=r,this._error}}};function we(l){if(!l)return{};const{errorMap:a,invalid_type_error:r,required_error:s,description:o}=l;if(a&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:o}:{errorMap:(h,m)=>{const{message:v}=l;return h.code==="invalid_enum_value"?{message:v??m.defaultError}:typeof m.data>"u"?{message:v??s??m.defaultError}:h.code!=="invalid_type"?{message:m.defaultError}:{message:v??r??m.defaultError}},description:o}}class qe{get description(){return this._def.description}_getType(a){return hl(a.data)}_getOrReturnCtx(a,r){return r||{common:a.parent.common,data:a.data,parsedType:hl(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Zt,ctx:{common:a.parent.common,data:a.data,parsedType:hl(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const r=this._parse(a);if(Eo(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(a){const r=this._parse(a);return Promise.resolve(r)}parse(a,r){const s=this.safeParse(a,r);if(s.success)return s.data;throw s.error}safeParse(a,r){const s={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:hl(a)},o=this._parseSync({data:a,path:s.path,parent:s});return rg(s,o)}"~validate"(a){var s,o;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:hl(a)};if(!this["~standard"].async)try{const f=this._parseSync({data:a,path:[],parent:r});return hr(f)?{value:f.value}:{issues:r.common.issues}}catch(f){(o=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:r}).then(f=>hr(f)?{value:f.value}:{issues:r.common.issues})}async parseAsync(a,r){const s=await this.safeParseAsync(a,r);if(s.success)return s.data;throw s.error}async safeParseAsync(a,r){const s={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:hl(a)},o=this._parse({data:a,path:s.path,parent:s}),f=await(Eo(o)?o:Promise.resolve(o));return rg(s,f)}refine(a,r){const s=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,f)=>{const h=a(o),m=()=>f.addIssue({code:I.custom,...s(o)});return typeof Promise<"u"&&h instanceof Promise?h.then(v=>v?!0:(m(),!1)):h?!0:(m(),!1)})}refinement(a,r){return this._refinement((s,o)=>a(s)?!0:(o.addIssue(typeof r=="function"?r(s,o):r),!1))}_refinement(a){return new yr({schema:this,typeName:be.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Cl.create(this,this._def)}nullable(){return vr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ta.create(this)}promise(){return wo.create(this,this._def)}or(a){return No.create([this,a],this._def)}and(a){return jo.create(this,a,this._def)}transform(a){return new yr({...we(this._def),schema:this,typeName:be.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const r=typeof a=="function"?a:()=>a;return new Vd({...we(this._def),innerType:this,defaultValue:r,typeName:be.ZodDefault})}brand(){return new XC({typeName:be.ZodBranded,type:this,...we(this._def)})}catch(a){const r=typeof a=="function"?a:()=>a;return new Gd({...we(this._def),innerType:this,catchValue:r,typeName:be.ZodCatch})}describe(a){const r=this.constructor;return new r({...this._def,description:a})}pipe(a){return ph.create(this,a)}readonly(){return Yd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const CC=/^c[^\s-]{8,}$/i,NC=/^[0-9a-z]+$/,jC=/^[0-9A-HJKMNP-TV-Z]{26}$/i,TC=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,wC=/^[a-z0-9_-]{21}$/i,AC=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,RC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,OC=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,MC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dd;const DC=/^(?:(?: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])$/,zC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,kC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,UC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,LC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,BC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Pb="((\\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])))",qC=new RegExp(`^${Pb}$`);function Wb(l){let a="[0-5]\\d";l.precision?a=`${a}\\.\\d{${l.precision}}`:l.precision==null&&(a=`${a}(\\.\\d+)?`);const r=l.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${r}`}function HC(l){return new RegExp(`^${Wb(l)}$`)}function QC(l){let a=`${Pb}T${Wb(l)}`;const r=[];return r.push(l.local?"Z?":"Z"),l.offset&&r.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${r.join("|")})`,new RegExp(`^${a}$`)}function ZC(l,a){return!!((a==="v4"||!a)&&DC.test(l)||(a==="v6"||!a)&&kC.test(l))}function VC(l,a){if(!AC.test(l))return!1;try{const[r]=l.split(".");if(!r)return!1;const s=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||a&&o.alg!==a)}catch{return!1}}function GC(l,a){return!!((a==="v4"||!a)&&zC.test(l)||(a==="v6"||!a)&&UC.test(l))}class Wn extends qe{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==se.string){const f=this._getOrReturnCtx(a);return ae(f,{code:I.invalid_type,expected:se.string,received:f.parsedType}),xe}const s=new Zt;let o;for(const f of this._def.checks)if(f.kind==="min")a.data.length<f.value&&(o=this._getOrReturnCtx(a,o),ae(o,{code:I.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")a.data.length>f.value&&(o=this._getOrReturnCtx(a,o),ae(o,{code:I.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const h=a.data.length>f.value,m=a.data.length<f.value;(h||m)&&(o=this._getOrReturnCtx(a,o),h?ae(o,{code:I.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&ae(o,{code:I.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")OC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"email",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")dd||(dd=new RegExp(MC,"u")),dd.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"emoji",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")TC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"uuid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")wC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"nanoid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")CC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"cuid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")NC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"cuid2",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")jC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"ulid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(a.data)}catch{o=this._getOrReturnCtx(a,o),ae(o,{validation:"url",code:I.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"regex",code:I.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?a.data=a.data.trim():f.kind==="includes"?a.data.includes(f.value,f.position)||(o=this._getOrReturnCtx(a,o),ae(o,{code:I.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?a.data=a.data.toLowerCase():f.kind==="toUpperCase"?a.data=a.data.toUpperCase():f.kind==="startsWith"?a.data.startsWith(f.value)||(o=this._getOrReturnCtx(a,o),ae(o,{code:I.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?a.data.endsWith(f.value)||(o=this._getOrReturnCtx(a,o),ae(o,{code:I.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?QC(f).test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{code:I.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?qC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{code:I.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?HC(f).test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{code:I.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?RC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"duration",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?ZC(a.data,f.version)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"ip",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?VC(a.data,f.alg)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"jwt",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?GC(a.data,f.version)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"cidr",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?LC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"base64",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?BC.test(a.data)||(o=this._getOrReturnCtx(a,o),ae(o,{validation:"base64url",code:I.invalid_string,message:f.message}),s.dirty()):Ye.assertNever(f);return{status:s.value,value:a.data}}_regex(a,r,s){return this.refinement(o=>a.test(o),{validation:r,code:I.invalid_string,...de.errToObj(s)})}_addCheck(a){return new Wn({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...de.errToObj(a)})}url(a){return this._addCheck({kind:"url",...de.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...de.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...de.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...de.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...de.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...de.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...de.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...de.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...de.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...de.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...de.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...de.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(a==null?void 0:a.offset)??!1,local:(a==null?void 0:a.local)??!1,...de.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...de.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...de.errToObj(a)})}regex(a,r){return this._addCheck({kind:"regex",regex:a,...de.errToObj(r)})}includes(a,r){return this._addCheck({kind:"includes",value:a,position:r==null?void 0:r.position,...de.errToObj(r==null?void 0:r.message)})}startsWith(a,r){return this._addCheck({kind:"startsWith",value:a,...de.errToObj(r)})}endsWith(a,r){return this._addCheck({kind:"endsWith",value:a,...de.errToObj(r)})}min(a,r){return this._addCheck({kind:"min",value:a,...de.errToObj(r)})}max(a,r){return this._addCheck({kind:"max",value:a,...de.errToObj(r)})}length(a,r){return this._addCheck({kind:"length",value:a,...de.errToObj(r)})}nonempty(a){return this.min(1,de.errToObj(a))}trim(){return new Wn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Wn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Wn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const r of this._def.checks)r.kind==="min"&&(a===null||r.value>a)&&(a=r.value);return a}get maxLength(){let a=null;for(const r of this._def.checks)r.kind==="max"&&(a===null||r.value<a)&&(a=r.value);return a}}Wn.create=l=>new Wn({checks:[],typeName:be.ZodString,coerce:(l==null?void 0:l.coerce)??!1,...we(l)});function YC(l,a){const r=(l.toString().split(".")[1]||"").length,s=(a.toString().split(".")[1]||"").length,o=r>s?r:s,f=Number.parseInt(l.toFixed(o).replace(".","")),h=Number.parseInt(a.toFixed(o).replace(".",""));return f%h/10**o}class li extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==se.number){const f=this._getOrReturnCtx(a);return ae(f,{code:I.invalid_type,expected:se.number,received:f.parsedType}),xe}let s;const o=new Zt;for(const f of this._def.checks)f.kind==="int"?Ye.isInteger(a.data)||(s=this._getOrReturnCtx(a,s),ae(s,{code:I.invalid_type,expected:"integer",received:"float",message:f.message}),o.dirty()):f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(s=this._getOrReturnCtx(a,s),ae(s,{code:I.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(s=this._getOrReturnCtx(a,s),ae(s,{code:I.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="multipleOf"?YC(a.data,f.value)!==0&&(s=this._getOrReturnCtx(a,s),ae(s,{code:I.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):f.kind==="finite"?Number.isFinite(a.data)||(s=this._getOrReturnCtx(a,s),ae(s,{code:I.not_finite,message:f.message}),o.dirty()):Ye.assertNever(f);return{status:o.value,value:a.data}}gte(a,r){return this.setLimit("min",a,!0,de.toString(r))}gt(a,r){return this.setLimit("min",a,!1,de.toString(r))}lte(a,r){return this.setLimit("max",a,!0,de.toString(r))}lt(a,r){return this.setLimit("max",a,!1,de.toString(r))}setLimit(a,r,s,o){return new li({...this._def,checks:[...this._def.checks,{kind:a,value:r,inclusive:s,message:de.toString(o)}]})}_addCheck(a){return new li({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:de.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:de.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:de.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:de.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:de.toString(a)})}multipleOf(a,r){return this._addCheck({kind:"multipleOf",value:a,message:de.toString(r)})}finite(a){return this._addCheck({kind:"finite",message:de.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:de.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:de.toString(a)})}get minValue(){let a=null;for(const r of this._def.checks)r.kind==="min"&&(a===null||r.value>a)&&(a=r.value);return a}get maxValue(){let a=null;for(const r of this._def.checks)r.kind==="max"&&(a===null||r.value<a)&&(a=r.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&Ye.isInteger(a.value))}get isFinite(){let a=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(a===null||s.value<a)&&(a=s.value)}return Number.isFinite(r)&&Number.isFinite(a)}}li.create=l=>new li({checks:[],typeName:be.ZodNumber,coerce:(l==null?void 0:l.coerce)||!1,...we(l)});class ii extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==se.bigint)return this._getInvalidInput(a);let s;const o=new Zt;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(s=this._getOrReturnCtx(a,s),ae(s,{code:I.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(s=this._getOrReturnCtx(a,s),ae(s,{code:I.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="multipleOf"?a.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(a,s),ae(s,{code:I.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):Ye.assertNever(f);return{status:o.value,value:a.data}}_getInvalidInput(a){const r=this._getOrReturnCtx(a);return ae(r,{code:I.invalid_type,expected:se.bigint,received:r.parsedType}),xe}gte(a,r){return this.setLimit("min",a,!0,de.toString(r))}gt(a,r){return this.setLimit("min",a,!1,de.toString(r))}lte(a,r){return this.setLimit("max",a,!0,de.toString(r))}lt(a,r){return this.setLimit("max",a,!1,de.toString(r))}setLimit(a,r,s,o){return new ii({...this._def,checks:[...this._def.checks,{kind:a,value:r,inclusive:s,message:de.toString(o)}]})}_addCheck(a){return new ii({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:de.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:de.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:de.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:de.toString(a)})}multipleOf(a,r){return this._addCheck({kind:"multipleOf",value:a,message:de.toString(r)})}get minValue(){let a=null;for(const r of this._def.checks)r.kind==="min"&&(a===null||r.value>a)&&(a=r.value);return a}get maxValue(){let a=null;for(const r of this._def.checks)r.kind==="max"&&(a===null||r.value<a)&&(a=r.value);return a}}ii.create=l=>new ii({checks:[],typeName:be.ZodBigInt,coerce:(l==null?void 0:l.coerce)??!1,...we(l)});class Co extends qe{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==se.boolean){const s=this._getOrReturnCtx(a);return ae(s,{code:I.invalid_type,expected:se.boolean,received:s.parsedType}),xe}return Mn(a.data)}}Co.create=l=>new Co({typeName:be.ZodBoolean,coerce:(l==null?void 0:l.coerce)||!1,...we(l)});class mr extends qe{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==se.date){const f=this._getOrReturnCtx(a);return ae(f,{code:I.invalid_type,expected:se.date,received:f.parsedType}),xe}if(Number.isNaN(a.data.getTime())){const f=this._getOrReturnCtx(a);return ae(f,{code:I.invalid_date}),xe}const s=new Zt;let o;for(const f of this._def.checks)f.kind==="min"?a.data.getTime()<f.value&&(o=this._getOrReturnCtx(a,o),ae(o,{code:I.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?a.data.getTime()>f.value&&(o=this._getOrReturnCtx(a,o),ae(o,{code:I.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):Ye.assertNever(f);return{status:s.value,value:new Date(a.data.getTime())}}_addCheck(a){return new mr({...this._def,checks:[...this._def.checks,a]})}min(a,r){return this._addCheck({kind:"min",value:a.getTime(),message:de.toString(r)})}max(a,r){return this._addCheck({kind:"max",value:a.getTime(),message:de.toString(r)})}get minDate(){let a=null;for(const r of this._def.checks)r.kind==="min"&&(a===null||r.value>a)&&(a=r.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const r of this._def.checks)r.kind==="max"&&(a===null||r.value<a)&&(a=r.value);return a!=null?new Date(a):null}}mr.create=l=>new mr({checks:[],coerce:(l==null?void 0:l.coerce)||!1,typeName:be.ZodDate,...we(l)});class sg extends qe{_parse(a){if(this._getType(a)!==se.symbol){const s=this._getOrReturnCtx(a);return ae(s,{code:I.invalid_type,expected:se.symbol,received:s.parsedType}),xe}return Mn(a.data)}}sg.create=l=>new sg({typeName:be.ZodSymbol,...we(l)});class ug extends qe{_parse(a){if(this._getType(a)!==se.undefined){const s=this._getOrReturnCtx(a);return ae(s,{code:I.invalid_type,expected:se.undefined,received:s.parsedType}),xe}return Mn(a.data)}}ug.create=l=>new ug({typeName:be.ZodUndefined,...we(l)});class og extends qe{_parse(a){if(this._getType(a)!==se.null){const s=this._getOrReturnCtx(a);return ae(s,{code:I.invalid_type,expected:se.null,received:s.parsedType}),xe}return Mn(a.data)}}og.create=l=>new og({typeName:be.ZodNull,...we(l)});class cg extends qe{constructor(){super(...arguments),this._any=!0}_parse(a){return Mn(a.data)}}cg.create=l=>new cg({typeName:be.ZodAny,...we(l)});class Qd extends qe{constructor(){super(...arguments),this._unknown=!0}_parse(a){return Mn(a.data)}}Qd.create=l=>new Qd({typeName:be.ZodUnknown,...we(l)});class jl extends qe{_parse(a){const r=this._getOrReturnCtx(a);return ae(r,{code:I.invalid_type,expected:se.never,received:r.parsedType}),xe}}jl.create=l=>new jl({typeName:be.ZodNever,...we(l)});class fg extends qe{_parse(a){if(this._getType(a)!==se.undefined){const s=this._getOrReturnCtx(a);return ae(s,{code:I.invalid_type,expected:se.void,received:s.parsedType}),xe}return Mn(a.data)}}fg.create=l=>new fg({typeName:be.ZodVoid,...we(l)});class ta extends qe{_parse(a){const{ctx:r,status:s}=this._processInputParams(a),o=this._def;if(r.parsedType!==se.array)return ae(r,{code:I.invalid_type,expected:se.array,received:r.parsedType}),xe;if(o.exactLength!==null){const h=r.data.length>o.exactLength.value,m=r.data.length<o.exactLength.value;(h||m)&&(ae(r,{code:h?I.too_big:I.too_small,minimum:m?o.exactLength.value:void 0,maximum:h?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),s.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(ae(r,{code:I.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(ae(r,{code:I.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((h,m)=>o.type._parseAsync(new na(r,h,r.path,m)))).then(h=>Zt.mergeArray(s,h));const f=[...r.data].map((h,m)=>o.type._parseSync(new na(r,h,r.path,m)));return Zt.mergeArray(s,f)}get element(){return this._def.type}min(a,r){return new ta({...this._def,minLength:{value:a,message:de.toString(r)}})}max(a,r){return new ta({...this._def,maxLength:{value:a,message:de.toString(r)}})}length(a,r){return new ta({...this._def,exactLength:{value:a,message:de.toString(r)}})}nonempty(a){return this.min(1,a)}}ta.create=(l,a)=>new ta({type:l,minLength:null,maxLength:null,exactLength:null,typeName:be.ZodArray,...we(a)});function Pi(l){if(l instanceof xt){const a={};for(const r in l.shape){const s=l.shape[r];a[r]=Cl.create(Pi(s))}return new xt({...l._def,shape:()=>a})}else return l instanceof ta?new ta({...l._def,type:Pi(l.element)}):l instanceof Cl?Cl.create(Pi(l.unwrap())):l instanceof vr?vr.create(Pi(l.unwrap())):l instanceof ri?ri.create(l.items.map(a=>Pi(a))):l}class xt extends qe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),r=Ye.objectKeys(a);return this._cached={shape:a,keys:r},this._cached}_parse(a){if(this._getType(a)!==se.object){const y=this._getOrReturnCtx(a);return ae(y,{code:I.invalid_type,expected:se.object,received:y.parsedType}),xe}const{status:s,ctx:o}=this._processInputParams(a),{shape:f,keys:h}=this._getCached(),m=[];if(!(this._def.catchall instanceof jl&&this._def.unknownKeys==="strip"))for(const y in o.data)h.includes(y)||m.push(y);const v=[];for(const y of h){const x=f[y],S=o.data[y];v.push({key:{status:"valid",value:y},value:x._parse(new na(o,S,o.path,y)),alwaysSet:y in o.data})}if(this._def.catchall instanceof jl){const y=this._def.unknownKeys;if(y==="passthrough")for(const x of m)v.push({key:{status:"valid",value:x},value:{status:"valid",value:o.data[x]}});else if(y==="strict")m.length>0&&(ae(o,{code:I.unrecognized_keys,keys:m}),s.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const x of m){const S=o.data[x];v.push({key:{status:"valid",value:x},value:y._parse(new na(o,S,o.path,x)),alwaysSet:x in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const y=[];for(const x of v){const S=await x.key,C=await x.value;y.push({key:S,value:C,alwaysSet:x.alwaysSet})}return y}).then(y=>Zt.mergeObjectSync(s,y)):Zt.mergeObjectSync(s,v)}get shape(){return this._def.shape()}strict(a){return de.errToObj,new xt({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(r,s)=>{var f,h;const o=((h=(f=this._def).errorMap)==null?void 0:h.call(f,r,s).message)??s.defaultError;return r.code==="unrecognized_keys"?{message:de.errToObj(a).message??o}:{message:o}}}:{}})}strip(){return new xt({...this._def,unknownKeys:"strip"})}passthrough(){return new xt({...this._def,unknownKeys:"passthrough"})}extend(a){return new xt({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new xt({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:be.ZodObject})}setKey(a,r){return this.augment({[a]:r})}catchall(a){return new xt({...this._def,catchall:a})}pick(a){const r={};for(const s of Ye.objectKeys(a))a[s]&&this.shape[s]&&(r[s]=this.shape[s]);return new xt({...this._def,shape:()=>r})}omit(a){const r={};for(const s of Ye.objectKeys(this.shape))a[s]||(r[s]=this.shape[s]);return new xt({...this._def,shape:()=>r})}deepPartial(){return Pi(this)}partial(a){const r={};for(const s of Ye.objectKeys(this.shape)){const o=this.shape[s];a&&!a[s]?r[s]=o:r[s]=o.optional()}return new xt({...this._def,shape:()=>r})}required(a){const r={};for(const s of Ye.objectKeys(this.shape))if(a&&!a[s])r[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof Cl;)f=f._def.innerType;r[s]=f}return new xt({...this._def,shape:()=>r})}keyof(){return e0(Ye.objectKeys(this.shape))}}xt.create=(l,a)=>new xt({shape:()=>l,unknownKeys:"strip",catchall:jl.create(),typeName:be.ZodObject,...we(a)});xt.strictCreate=(l,a)=>new xt({shape:()=>l,unknownKeys:"strict",catchall:jl.create(),typeName:be.ZodObject,...we(a)});xt.lazycreate=(l,a)=>new xt({shape:l,unknownKeys:"strip",catchall:jl.create(),typeName:be.ZodObject,...we(a)});class No extends qe{_parse(a){const{ctx:r}=this._processInputParams(a),s=this._def.options;function o(f){for(const m of f)if(m.result.status==="valid")return m.result;for(const m of f)if(m.result.status==="dirty")return r.common.issues.push(...m.ctx.common.issues),m.result;const h=f.map(m=>new ka(m.ctx.common.issues));return ae(r,{code:I.invalid_union,unionErrors:h}),xe}if(r.common.async)return Promise.all(s.map(async f=>{const h={...r,common:{...r.common,issues:[]},parent:null};return{result:await f._parseAsync({data:r.data,path:r.path,parent:h}),ctx:h}})).then(o);{let f;const h=[];for(const v of s){const y={...r,common:{...r.common,issues:[]},parent:null},x=v._parseSync({data:r.data,path:r.path,parent:y});if(x.status==="valid")return x;x.status==="dirty"&&!f&&(f={result:x,ctx:y}),y.common.issues.length&&h.push(y.common.issues)}if(f)return r.common.issues.push(...f.ctx.common.issues),f.result;const m=h.map(v=>new ka(v));return ae(r,{code:I.invalid_union,unionErrors:m}),xe}}get options(){return this._def.options}}No.create=(l,a)=>new No({options:l,typeName:be.ZodUnion,...we(a)});function Zd(l,a){const r=hl(l),s=hl(a);if(l===a)return{valid:!0,data:l};if(r===se.object&&s===se.object){const o=Ye.objectKeys(a),f=Ye.objectKeys(l).filter(m=>o.indexOf(m)!==-1),h={...l,...a};for(const m of f){const v=Zd(l[m],a[m]);if(!v.valid)return{valid:!1};h[m]=v.data}return{valid:!0,data:h}}else if(r===se.array&&s===se.array){if(l.length!==a.length)return{valid:!1};const o=[];for(let f=0;f<l.length;f++){const h=l[f],m=a[f],v=Zd(h,m);if(!v.valid)return{valid:!1};o.push(v.data)}return{valid:!0,data:o}}else return r===se.date&&s===se.date&&+l==+a?{valid:!0,data:l}:{valid:!1}}class jo extends qe{_parse(a){const{status:r,ctx:s}=this._processInputParams(a),o=(f,h)=>{if(lg(f)||lg(h))return xe;const m=Zd(f.value,h.value);return m.valid?((ig(f)||ig(h))&&r.dirty(),{status:r.value,value:m.data}):(ae(s,{code:I.invalid_intersection_types}),xe)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([f,h])=>o(f,h)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}jo.create=(l,a,r)=>new jo({left:l,right:a,typeName:be.ZodIntersection,...we(r)});class ri extends qe{_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.parsedType!==se.array)return ae(s,{code:I.invalid_type,expected:se.array,received:s.parsedType}),xe;if(s.data.length<this._def.items.length)return ae(s,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&s.data.length>this._def.items.length&&(ae(s,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const f=[...s.data].map((h,m)=>{const v=this._def.items[m]||this._def.rest;return v?v._parse(new na(s,h,s.path,m)):null}).filter(h=>!!h);return s.common.async?Promise.all(f).then(h=>Zt.mergeArray(r,h)):Zt.mergeArray(r,f)}get items(){return this._def.items}rest(a){return new ri({...this._def,rest:a})}}ri.create=(l,a)=>{if(!Array.isArray(l))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ri({items:l,typeName:be.ZodTuple,rest:null,...we(a)})};class To extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.parsedType!==se.object)return ae(s,{code:I.invalid_type,expected:se.object,received:s.parsedType}),xe;const o=[],f=this._def.keyType,h=this._def.valueType;for(const m in s.data)o.push({key:f._parse(new na(s,m,s.path,m)),value:h._parse(new na(s,s.data[m],s.path,m)),alwaysSet:m in s.data});return s.common.async?Zt.mergeObjectAsync(r,o):Zt.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(a,r,s){return r instanceof qe?new To({keyType:a,valueType:r,typeName:be.ZodRecord,...we(s)}):new To({keyType:Wn.create(),valueType:a,typeName:be.ZodRecord,...we(r)})}}class dg extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.parsedType!==se.map)return ae(s,{code:I.invalid_type,expected:se.map,received:s.parsedType}),xe;const o=this._def.keyType,f=this._def.valueType,h=[...s.data.entries()].map(([m,v],y)=>({key:o._parse(new na(s,m,s.path,[y,"key"])),value:f._parse(new na(s,v,s.path,[y,"value"]))}));if(s.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const v of h){const y=await v.key,x=await v.value;if(y.status==="aborted"||x.status==="aborted")return xe;(y.status==="dirty"||x.status==="dirty")&&r.dirty(),m.set(y.value,x.value)}return{status:r.value,value:m}})}else{const m=new Map;for(const v of h){const y=v.key,x=v.value;if(y.status==="aborted"||x.status==="aborted")return xe;(y.status==="dirty"||x.status==="dirty")&&r.dirty(),m.set(y.value,x.value)}return{status:r.value,value:m}}}}dg.create=(l,a,r)=>new dg({valueType:a,keyType:l,typeName:be.ZodMap,...we(r)});class js extends qe{_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.parsedType!==se.set)return ae(s,{code:I.invalid_type,expected:se.set,received:s.parsedType}),xe;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(ae(s,{code:I.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(ae(s,{code:I.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const f=this._def.valueType;function h(v){const y=new Set;for(const x of v){if(x.status==="aborted")return xe;x.status==="dirty"&&r.dirty(),y.add(x.value)}return{status:r.value,value:y}}const m=[...s.data.values()].map((v,y)=>f._parse(new na(s,v,s.path,y)));return s.common.async?Promise.all(m).then(v=>h(v)):h(m)}min(a,r){return new js({...this._def,minSize:{value:a,message:de.toString(r)}})}max(a,r){return new js({...this._def,maxSize:{value:a,message:de.toString(r)}})}size(a,r){return this.min(a,r).max(a,r)}nonempty(a){return this.min(1,a)}}js.create=(l,a)=>new js({valueType:l,minSize:null,maxSize:null,typeName:be.ZodSet,...we(a)});class hg extends qe{get schema(){return this._def.getter()}_parse(a){const{ctx:r}=this._processInputParams(a);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}hg.create=(l,a)=>new hg({getter:l,typeName:be.ZodLazy,...we(a)});class mg extends qe{_parse(a){if(a.data!==this._def.value){const r=this._getOrReturnCtx(a);return ae(r,{received:r.data,code:I.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:a.data}}get value(){return this._def.value}}mg.create=(l,a)=>new mg({value:l,typeName:be.ZodLiteral,...we(a)});function e0(l,a){return new pr({values:l,typeName:be.ZodEnum,...we(a)})}class pr extends qe{_parse(a){if(typeof a.data!="string"){const r=this._getOrReturnCtx(a),s=this._def.values;return ae(r,{expected:Ye.joinValues(s),received:r.parsedType,code:I.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const r=this._getOrReturnCtx(a),s=this._def.values;return ae(r,{received:r.data,code:I.invalid_enum_value,options:s}),xe}return Mn(a.data)}get options(){return this._def.values}get enum(){const a={};for(const r of this._def.values)a[r]=r;return a}get Values(){const a={};for(const r of this._def.values)a[r]=r;return a}get Enum(){const a={};for(const r of this._def.values)a[r]=r;return a}extract(a,r=this._def){return pr.create(a,{...this._def,...r})}exclude(a,r=this._def){return pr.create(this.options.filter(s=>!a.includes(s)),{...this._def,...r})}}pr.create=e0;class pg extends qe{_parse(a){const r=Ye.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(a);if(s.parsedType!==se.string&&s.parsedType!==se.number){const o=Ye.objectValues(r);return ae(s,{expected:Ye.joinValues(o),received:s.parsedType,code:I.invalid_type}),xe}if(this._cache||(this._cache=new Set(Ye.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const o=Ye.objectValues(r);return ae(s,{received:s.data,code:I.invalid_enum_value,options:o}),xe}return Mn(a.data)}get enum(){return this._def.values}}pg.create=(l,a)=>new pg({values:l,typeName:be.ZodNativeEnum,...we(a)});class wo extends qe{unwrap(){return this._def.type}_parse(a){const{ctx:r}=this._processInputParams(a);if(r.parsedType!==se.promise&&r.common.async===!1)return ae(r,{code:I.invalid_type,expected:se.promise,received:r.parsedType}),xe;const s=r.parsedType===se.promise?r.data:Promise.resolve(r.data);return Mn(s.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}wo.create=(l,a)=>new wo({type:l,typeName:be.ZodPromise,...we(a)});class yr extends qe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:r,ctx:s}=this._processInputParams(a),o=this._def.effect||null,f={addIssue:h=>{ae(s,h),h.fatal?r.abort():r.dirty()},get path(){return s.path}};if(f.addIssue=f.addIssue.bind(f),o.type==="preprocess"){const h=o.transform(s.data,f);if(s.common.async)return Promise.resolve(h).then(async m=>{if(r.value==="aborted")return xe;const v=await this._def.schema._parseAsync({data:m,path:s.path,parent:s});return v.status==="aborted"?xe:v.status==="dirty"||r.value==="dirty"?_s(v.value):v});{if(r.value==="aborted")return xe;const m=this._def.schema._parseSync({data:h,path:s.path,parent:s});return m.status==="aborted"?xe:m.status==="dirty"||r.value==="dirty"?_s(m.value):m}}if(o.type==="refinement"){const h=m=>{const v=o.refinement(m,f);if(s.common.async)return Promise.resolve(v);if(v instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return m};if(s.common.async===!1){const m=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return m.status==="aborted"?xe:(m.status==="dirty"&&r.dirty(),h(m.value),{status:r.value,value:m.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(m=>m.status==="aborted"?xe:(m.status==="dirty"&&r.dirty(),h(m.value).then(()=>({status:r.value,value:m.value}))))}if(o.type==="transform")if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!hr(h))return xe;const m=o.transform(h.value,f);if(m instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:m}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>hr(h)?Promise.resolve(o.transform(h.value,f)).then(m=>({status:r.value,value:m})):xe);Ye.assertNever(o)}}yr.create=(l,a,r)=>new yr({schema:l,typeName:be.ZodEffects,effect:a,...we(r)});yr.createWithPreprocess=(l,a,r)=>new yr({schema:a,effect:{type:"preprocess",transform:l},typeName:be.ZodEffects,...we(r)});class Cl extends qe{_parse(a){return this._getType(a)===se.undefined?Mn(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Cl.create=(l,a)=>new Cl({innerType:l,typeName:be.ZodOptional,...we(a)});class vr extends qe{_parse(a){return this._getType(a)===se.null?Mn(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}vr.create=(l,a)=>new vr({innerType:l,typeName:be.ZodNullable,...we(a)});class Vd extends qe{_parse(a){const{ctx:r}=this._processInputParams(a);let s=r.data;return r.parsedType===se.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Vd.create=(l,a)=>new Vd({innerType:l,typeName:be.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...we(a)});class Gd extends qe{_parse(a){const{ctx:r}=this._processInputParams(a),s={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Eo(o)?o.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new ka(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ka(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Gd.create=(l,a)=>new Gd({innerType:l,typeName:be.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...we(a)});class yg extends qe{_parse(a){if(this._getType(a)!==se.nan){const s=this._getOrReturnCtx(a);return ae(s,{code:I.invalid_type,expected:se.nan,received:s.parsedType}),xe}return{status:"valid",value:a.data}}}yg.create=l=>new yg({typeName:be.ZodNaN,...we(l)});class XC extends qe{_parse(a){const{ctx:r}=this._processInputParams(a),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class ph extends qe{_parse(a){const{status:r,ctx:s}=this._processInputParams(a);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?xe:f.status==="dirty"?(r.dirty(),_s(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?xe:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(a,r){return new ph({in:a,out:r,typeName:be.ZodPipeline})}}class Yd extends qe{_parse(a){const r=this._def.innerType._parse(a),s=o=>(hr(o)&&(o.value=Object.freeze(o.value)),o);return Eo(r)?r.then(o=>s(o)):s(r)}unwrap(){return this._def.innerType}}Yd.create=(l,a)=>new Yd({innerType:l,typeName:be.ZodReadonly,...we(a)});var be;(function(l){l.ZodString="ZodString",l.ZodNumber="ZodNumber",l.ZodNaN="ZodNaN",l.ZodBigInt="ZodBigInt",l.ZodBoolean="ZodBoolean",l.ZodDate="ZodDate",l.ZodSymbol="ZodSymbol",l.ZodUndefined="ZodUndefined",l.ZodNull="ZodNull",l.ZodAny="ZodAny",l.ZodUnknown="ZodUnknown",l.ZodNever="ZodNever",l.ZodVoid="ZodVoid",l.ZodArray="ZodArray",l.ZodObject="ZodObject",l.ZodUnion="ZodUnion",l.ZodDiscriminatedUnion="ZodDiscriminatedUnion",l.ZodIntersection="ZodIntersection",l.ZodTuple="ZodTuple",l.ZodRecord="ZodRecord",l.ZodMap="ZodMap",l.ZodSet="ZodSet",l.ZodFunction="ZodFunction",l.ZodLazy="ZodLazy",l.ZodLiteral="ZodLiteral",l.ZodEnum="ZodEnum",l.ZodEffects="ZodEffects",l.ZodNativeEnum="ZodNativeEnum",l.ZodOptional="ZodOptional",l.ZodNullable="ZodNullable",l.ZodDefault="ZodDefault",l.ZodCatch="ZodCatch",l.ZodPromise="ZodPromise",l.ZodBranded="ZodBranded",l.ZodPipeline="ZodPipeline",l.ZodReadonly="ZodReadonly"})(be||(be={}));const Y=Wn.create,In=li.create;ii.create;const yh=Co.create;mr.create;const en=Qd.create;jl.create;const Wi=ta.create,De=xt.create;No.create;jo.create;ri.create;const aa=To.create,Dn=pr.create;wo.create;Cl.create;vr.create;const t0={string:(l=>Wn.create({...l,coerce:!0})),number:(l=>li.create({...l,coerce:!0})),boolean:(l=>Co.create({...l,coerce:!0})),bigint:(l=>ii.create({...l,coerce:!0})),date:(l=>mr.create({...l,coerce:!0}))},KC={FEISHU:"feishu",SLACK:"slack"},n0=Dn(["feishu","slack"]),a0=Dn(["active","inactive"]);De({platform:n0,agentId:Y().min(1),credentials:aa(en()),status:a0.default("active")});De({agentId:Y().min(1).optional(),credentials:aa(en()).optional(),status:a0.optional()});De({id:In(),platform:Y(),agentId:Y(),hasCredentials:yh(),status:Y(),createdAt:Y(),updatedAt:Y()});const FC=Dn(["code","reverse_token","oauth","manual"]);De({appId:Y().min(1),appSecret:Y().min(1)});De({platform:n0,externalUserId:Y().min(1),agentId:Y().min(1),boundVia:FC.default("manual"),displayName:Y().max(200).optional()});De({id:In(),platform:Y(),externalUserId:Y(),agentId:Y(),boundVia:Y().nullable(),displayName:Y().nullable(),createdAt:Y()});De({feishuUserId:Y().min(1),displayName:Y().max(200).optional()});De({configId:In(),platform:Y(),agentId:Y(),appId:Y(),connected:yh(),lastActiveAt:Y().nullable()});De({username:Y().min(1),password:Y().min(1)});De({accessToken:Y(),refreshToken:Y()});De({refreshToken:Y().min(1)});const JC={SUPER_ADMIN:"super_admin",ADMIN:"admin"},vh=Dn(["super_admin","admin"]);De({id:Y(),username:Y(),role:vh,createdAt:Y(),lastLoginAt:Y().nullable()});De({username:Y().min(1).max(100),password:Y().min(8).max(200),role:vh.default("admin")});De({role:vh.optional(),password:Y().min(8).max(200).optional()});const l0=Dn(["online","offline"]);De({agentId:Y(),status:l0,connectedAt:Y().nullable(),lastSeenAt:Y()});const $C={HUMAN:"human",PERSONAL_ASSISTANT:"personal_assistant",AUTONOMOUS_AGENT:"autonomous_agent"},i0=Dn(["human","personal_assistant","autonomous_agent"]);Dn(["active","suspended"]);De({id:Y().min(1).max(100).regex(/^[a-z0-9_-]+$/,"Only lowercase alphanumeric, hyphens, and underscores").optional(),type:i0,displayName:Y().max(200).optional(),organizationId:Y().max(100).optional(),metadata:aa(en()).optional()});De({syncedAt:Y(),treePath:Y(),summary:De({created:In(),updated:In(),suspended:In(),unchanged:In(),errors:In()}),created:Wi(Y()),updated:Wi(Y()),suspended:Wi(Y()),errors:Wi(De({memberId:Y(),error:Y()}))});De({id:Y(),organizationId:Y(),type:i0,displayName:Y().nullable(),delegateMention:Y().nullable(),treePath:Y().nullable(),inboxId:Y(),status:Y(),metadata:aa(en()),presenceStatus:l0.optional(),createdAt:Y(),updatedAt:Y()});De({name:Y().max(100).optional()});De({exists:yh(),status:Dn(["active","suspended"]).nullable()});De({repo:Y(),branch:Y(),lastSync:Y().nullable()});De({name:Y().max(100).optional(),expiresAt:Y().datetime().optional()});const IC=De({id:Y(),agentId:Y(),name:Y().nullable(),expiresAt:Y().nullable(),revokedAt:Y().nullable(),createdAt:Y(),lastUsedAt:Y().nullable()});IC.extend({token:Y()});const PC=Dn(["direct","group","thread"]);De({type:PC,topic:Y().max(500).optional(),participantIds:Wi(Y()).min(1),metadata:aa(en()).optional()});const WC=De({agentId:Y(),role:Y(),mode:Y(),joinedAt:Y()}),eN=De({id:Y(),organizationId:Y(),type:Y(),topic:Y().nullable(),lifecyclePolicy:Y().nullable().optional(),metadata:aa(en()),createdAt:Y(),updatedAt:Y()});eN.extend({participants:Wi(WC)});De({agentId:Y().min(1),mode:Dn(["full","mention_only"]).default("full")});De({agentId:Y().min(1)});De({limit:t0.number().int().min(1).max(100).default(20),cursor:Y().optional()});const r0=Dn(["text","markdown","card","reference","file"]);De({format:r0.default("text"),content:en(),metadata:aa(en()).optional(),inReplyTo:Y().optional(),replyToInbox:Y().optional(),replyToChat:Y().optional()});De({format:r0.default("text"),content:en(),metadata:aa(en()).optional(),replyToInbox:Y().optional(),replyToChat:Y().optional()});const tN=De({id:Y(),chatId:Y(),senderId:Y(),format:Y(),content:en(),metadata:aa(en()),replyToInbox:Y().nullable(),replyToChat:Y().nullable(),inReplyTo:Y().nullable(),createdAt:Y()});Dn(["pending","delivered","acked","failed"]);const nN=De({id:In(),inboxId:Y(),messageId:Y(),chatId:Y().nullable(),status:Y(),retryCount:In(),createdAt:Y(),deliveredAt:Y().nullable(),ackedAt:Y().nullable()});nN.extend({message:tN});De({limit:t0.number().int().min(1).max(50).default(10)});De({key:Y(),value:en(),updatedAt:Y()});aa(Y(),en());const Aa={INBOX_TIMEOUT_SECONDS:"inbox_timeout_seconds",MAX_RETRY_COUNT:"max_retry_count",POLLING_INTERVAL_SECONDS:"polling_interval_seconds",PRESENCE_CLEANUP_SECONDS:"presence_cleanup_seconds"},hd={[Aa.INBOX_TIMEOUT_SECONDS]:300,[Aa.MAX_RETRY_COUNT]:3,[Aa.POLLING_INTERVAL_SECONDS]:5,[Aa.PRESENCE_CLEANUP_SECONDS]:60};function aN(){return nt.get("/admin/users")}function lN(l){return nt.post("/admin/users",l)}function iN(l,a){return nt.patch(`/admin/users/${encodeURIComponent(l)}`,a)}function rN(l){return nt.delete(`/admin/users/${encodeURIComponent(l)}`)}const vg=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,gg=Lb,s0=(l,a)=>r=>{var s;if((a==null?void 0:a.variants)==null)return gg(l,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:f}=a,h=Object.keys(o).map(y=>{const x=r==null?void 0:r[y],S=f==null?void 0:f[y];if(x===null)return null;const C=vg(x)||vg(S);return o[y][C]}),m=r&&Object.entries(r).reduce((y,x)=>{let[S,C]=x;return C===void 0||(y[S]=C),y},{}),v=a==null||(s=a.compoundVariants)===null||s===void 0?void 0:s.reduce((y,x)=>{let{class:S,className:C,...M}=x;return Object.entries(M).every(L=>{let[T,A]=L;return Array.isArray(A)?A.includes({...f,...m}[T]):{...f,...m}[T]===A})?[...y,S,C]:y},[]);return gg(l,h,v,r==null?void 0:r.class,r==null?void 0:r.className)},sN=s0("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive/10 text-destructive",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ot({className:l,variant:a,...r}){return d.jsx("div",{className:We(sN({variant:a}),l),...r})}function bg(l,a){if(typeof l=="function")return l(a);l!=null&&(l.current=a)}function gh(...l){return a=>{let r=!1;const s=l.map(o=>{const f=bg(o,a);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let o=0;o<s.length;o++){const f=s[o];typeof f=="function"?f():bg(l[o],null)}}}}function oi(...l){return b.useCallback(gh(...l),l)}var uN=Symbol.for("react.lazy"),Ao=Pd[" use ".trim().toString()];function oN(l){return typeof l=="object"&&l!==null&&"then"in l}function u0(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===uN&&"_payload"in l&&oN(l._payload)}function o0(l){const a=fN(l),r=b.forwardRef((s,o)=>{let{children:f,...h}=s;u0(f)&&typeof Ao=="function"&&(f=Ao(f._payload));const m=b.Children.toArray(f),v=m.find(hN);if(v){const y=v.props.children,x=m.map(S=>S===v?b.Children.count(y)>1?b.Children.only(null):b.isValidElement(y)?y.props.children:null:S);return d.jsx(a,{...h,ref:o,children:b.isValidElement(y)?b.cloneElement(y,void 0,x):null})}return d.jsx(a,{...h,ref:o,children:f})});return r.displayName=`${l}.Slot`,r}var cN=o0("Slot");function fN(l){const a=b.forwardRef((r,s)=>{let{children:o,...f}=r;if(u0(o)&&typeof Ao=="function"&&(o=Ao(o._payload)),b.isValidElement(o)){const h=pN(o),m=mN(f,o.props);return o.type!==b.Fragment&&(m.ref=s?gh(s,h):h),b.cloneElement(o,m)}return b.Children.count(o)>1?b.Children.only(null):null});return a.displayName=`${l}.SlotClone`,a}var dN=Symbol("radix.slottable");function hN(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===dN}function mN(l,a){const r={...a};for(const s in a){const o=l[s],f=a[s];/^on[A-Z]/.test(s)?o&&f?r[s]=(...m)=>{const v=f(...m);return o(...m),v}:o&&(r[s]=o):s==="style"?r[s]={...o,...f}:s==="className"&&(r[s]=[o,f].filter(Boolean).join(" "))}return{...l,...r}}function pN(l){var s,o;let a=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?l.ref:(a=(o=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?l.props.ref:l.props.ref||l.ref)}const yN=s0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-white shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),tt=b.forwardRef(({className:l,variant:a,size:r,asChild:s=!1,...o},f)=>{const h=s?cN:"button";return d.jsx(h,{className:We(yN({variant:a,size:r,className:l})),ref:f,...o})});tt.displayName="Button";function Nl(l,a,{checkForDefaultPrevented:r=!0}={}){return function(o){if(l==null||l(o),r===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function vN(l,a){const r=b.createContext(a),s=f=>{const{children:h,...m}=f,v=b.useMemo(()=>m,Object.values(m));return d.jsx(r.Provider,{value:v,children:h})};s.displayName=l+"Provider";function o(f){const h=b.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[s,o]}function gN(l,a=[]){let r=[];function s(f,h){const m=b.createContext(h),v=r.length;r=[...r,h];const y=S=>{var z;const{scope:C,children:M,...L}=S,T=((z=C==null?void 0:C[l])==null?void 0:z[v])||m,A=b.useMemo(()=>L,Object.values(L));return d.jsx(T.Provider,{value:A,children:M})};y.displayName=f+"Provider";function x(S,C){var T;const M=((T=C==null?void 0:C[l])==null?void 0:T[v])||m,L=b.useContext(M);if(L)return L;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[y,x]}const o=()=>{const f=r.map(h=>b.createContext(h));return function(m){const v=(m==null?void 0:m[l])||f;return b.useMemo(()=>({[`__scope${l}`]:{...m,[l]:v}}),[m,v])}};return o.scopeName=l,[s,bN(o,...a)]}function bN(...l){const a=l[0];if(l.length===1)return a;const r=()=>{const s=l.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(f){const h=s.reduce((m,{useScope:v,scopeName:y})=>{const S=v(f)[`__scope${y}`];return{...m,...S}},{});return b.useMemo(()=>({[`__scope${a.scopeName}`]:h}),[h])}};return r.scopeName=a.scopeName,r}var Ts=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},xN=Pd[" useId ".trim().toString()]||(()=>{}),SN=0;function md(l){const[a,r]=b.useState(xN());return Ts(()=>{r(s=>s??String(SN++))},[l]),l||(a?`radix-${a}`:"")}var _N=Pd[" useInsertionEffect ".trim().toString()]||Ts;function EN({prop:l,defaultProp:a,onChange:r=()=>{},caller:s}){const[o,f,h]=CN({defaultProp:a,onChange:r}),m=l!==void 0,v=m?l:o;{const x=b.useRef(l!==void 0);b.useEffect(()=>{const S=x.current;S!==m&&console.warn(`${s} is changing from ${S?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,s])}const y=b.useCallback(x=>{var S;if(m){const C=NN(x)?x(l):x;C!==l&&((S=h.current)==null||S.call(h,C))}else f(x)},[m,l,f,h]);return[v,y]}function CN({defaultProp:l,onChange:a}){const[r,s]=b.useState(l),o=b.useRef(r),f=b.useRef(a);return _N(()=>{f.current=a},[a]),b.useEffect(()=>{var h;o.current!==r&&((h=f.current)==null||h.call(f,r),o.current=r)},[r,o]),[r,s,f]}function NN(l){return typeof l=="function"}var c0=Xg();const jN=Yg(c0);function f0(l){const a=TN(l),r=b.forwardRef((s,o)=>{const{children:f,...h}=s,m=b.Children.toArray(f),v=m.find(AN);if(v){const y=v.props.children,x=m.map(S=>S===v?b.Children.count(y)>1?b.Children.only(null):b.isValidElement(y)?y.props.children:null:S);return d.jsx(a,{...h,ref:o,children:b.isValidElement(y)?b.cloneElement(y,void 0,x):null})}return d.jsx(a,{...h,ref:o,children:f})});return r.displayName=`${l}.Slot`,r}function TN(l){const a=b.forwardRef((r,s)=>{const{children:o,...f}=r;if(b.isValidElement(o)){const h=ON(o),m=RN(f,o.props);return o.type!==b.Fragment&&(m.ref=s?gh(s,h):h),b.cloneElement(o,m)}return b.Children.count(o)>1?b.Children.only(null):null});return a.displayName=`${l}.SlotClone`,a}var wN=Symbol("radix.slottable");function AN(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===wN}function RN(l,a){const r={...a};for(const s in a){const o=l[s],f=a[s];/^on[A-Z]/.test(s)?o&&f?r[s]=(...m)=>{const v=f(...m);return o(...m),v}:o&&(r[s]=o):s==="style"?r[s]={...o,...f}:s==="className"&&(r[s]=[o,f].filter(Boolean).join(" "))}return{...l,...r}}function ON(l){var s,o;let a=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?l.ref:(a=(o=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?l.props.ref:l.props.ref||l.ref)}var MN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],La=MN.reduce((l,a)=>{const r=f0(`Primitive.${a}`),s=b.forwardRef((o,f)=>{const{asChild:h,...m}=o,v=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(v,{...m,ref:f})});return s.displayName=`Primitive.${a}`,{...l,[a]:s}},{});function DN(l,a){l&&c0.flushSync(()=>l.dispatchEvent(a))}function ws(l){const a=b.useRef(l);return b.useEffect(()=>{a.current=l}),b.useMemo(()=>(...r)=>{var s;return(s=a.current)==null?void 0:s.call(a,...r)},[])}function zN(l,a=globalThis==null?void 0:globalThis.document){const r=ws(l);b.useEffect(()=>{const s=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",s,{capture:!0}),()=>a.removeEventListener("keydown",s,{capture:!0})},[r,a])}var kN="DismissableLayer",Xd="dismissableLayer.update",UN="dismissableLayer.pointerDownOutside",LN="dismissableLayer.focusOutside",xg,d0=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h0=b.forwardRef((l,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f,onInteractOutside:h,onDismiss:m,...v}=l,y=b.useContext(d0),[x,S]=b.useState(null),C=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,M]=b.useState({}),L=oi(a,$=>S($)),T=Array.from(y.layers),[A]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),z=T.indexOf(A),F=x?T.indexOf(x):-1,H=y.layersWithOutsidePointerEventsDisabled.size>0,V=F>=z,X=HN($=>{const G=$.target,he=[...y.branches].some(Ne=>Ne.contains(G));!V||he||(o==null||o($),h==null||h($),$.defaultPrevented||m==null||m())},C),K=QN($=>{const G=$.target;[...y.branches].some(Ne=>Ne.contains(G))||(f==null||f($),h==null||h($),$.defaultPrevented||m==null||m())},C);return zN($=>{F===y.layers.size-1&&(s==null||s($),!$.defaultPrevented&&m&&($.preventDefault(),m()))},C),b.useEffect(()=>{if(x)return r&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(xg=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(x)),y.layers.add(x),Sg(),()=>{r&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=xg)}},[x,C,r,y]),b.useEffect(()=>()=>{x&&(y.layers.delete(x),y.layersWithOutsidePointerEventsDisabled.delete(x),Sg())},[x,y]),b.useEffect(()=>{const $=()=>M({});return document.addEventListener(Xd,$),()=>document.removeEventListener(Xd,$)},[]),d.jsx(La.div,{...v,ref:L,style:{pointerEvents:H?V?"auto":"none":void 0,...l.style},onFocusCapture:Nl(l.onFocusCapture,K.onFocusCapture),onBlurCapture:Nl(l.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Nl(l.onPointerDownCapture,X.onPointerDownCapture)})});h0.displayName=kN;var BN="DismissableLayerBranch",qN=b.forwardRef((l,a)=>{const r=b.useContext(d0),s=b.useRef(null),o=oi(a,s);return b.useEffect(()=>{const f=s.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),d.jsx(La.div,{...l,ref:o})});qN.displayName=BN;function HN(l,a=globalThis==null?void 0:globalThis.document){const r=ws(l),s=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const f=m=>{if(m.target&&!s.current){let v=function(){m0(UN,r,y,{discrete:!0})};const y={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=v,a.addEventListener("click",o.current,{once:!0})):v()}else a.removeEventListener("click",o.current);s.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",f),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>s.current=!0}}function QN(l,a=globalThis==null?void 0:globalThis.document){const r=ws(l),s=b.useRef(!1);return b.useEffect(()=>{const o=f=>{f.target&&!s.current&&m0(LN,r,{originalEvent:f},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Sg(){const l=new CustomEvent(Xd);document.dispatchEvent(l)}function m0(l,a,r,{discrete:s}){const o=r.originalEvent.target,f=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(l,a,{once:!0}),s?DN(o,f):o.dispatchEvent(f)}var pd="focusScope.autoFocusOnMount",yd="focusScope.autoFocusOnUnmount",_g={bubbles:!1,cancelable:!0},ZN="FocusScope",p0=b.forwardRef((l,a)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:f,...h}=l,[m,v]=b.useState(null),y=ws(o),x=ws(f),S=b.useRef(null),C=oi(a,T=>v(T)),M=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let T=function(H){if(M.paused||!m)return;const V=H.target;m.contains(V)?S.current=V:dl(S.current,{select:!0})},A=function(H){if(M.paused||!m)return;const V=H.relatedTarget;V!==null&&(m.contains(V)||dl(S.current,{select:!0}))},z=function(H){if(document.activeElement===document.body)for(const X of H)X.removedNodes.length>0&&dl(m)};document.addEventListener("focusin",T),document.addEventListener("focusout",A);const F=new MutationObserver(z);return m&&F.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",A),F.disconnect()}}},[s,m,M.paused]),b.useEffect(()=>{if(m){Cg.add(M);const T=document.activeElement;if(!m.contains(T)){const z=new CustomEvent(pd,_g);m.addEventListener(pd,y),m.dispatchEvent(z),z.defaultPrevented||(VN(FN(y0(m)),{select:!0}),document.activeElement===T&&dl(m))}return()=>{m.removeEventListener(pd,y),setTimeout(()=>{const z=new CustomEvent(yd,_g);m.addEventListener(yd,x),m.dispatchEvent(z),z.defaultPrevented||dl(T??document.body,{select:!0}),m.removeEventListener(yd,x),Cg.remove(M)},0)}}},[m,y,x,M]);const L=b.useCallback(T=>{if(!r&&!s||M.paused)return;const A=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,z=document.activeElement;if(A&&z){const F=T.currentTarget,[H,V]=GN(F);H&&V?!T.shiftKey&&z===V?(T.preventDefault(),r&&dl(H,{select:!0})):T.shiftKey&&z===H&&(T.preventDefault(),r&&dl(V,{select:!0})):z===F&&T.preventDefault()}},[r,s,M.paused]);return d.jsx(La.div,{tabIndex:-1,...h,ref:C,onKeyDown:L})});p0.displayName=ZN;function VN(l,{select:a=!1}={}){const r=document.activeElement;for(const s of l)if(dl(s,{select:a}),document.activeElement!==r)return}function GN(l){const a=y0(l),r=Eg(a,l),s=Eg(a.reverse(),l);return[r,s]}function y0(l){const a=[],r=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Eg(l,a){for(const r of l)if(!YN(r,{upTo:a}))return r}function YN(l,{upTo:a}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(a!==void 0&&l===a)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function XN(l){return l instanceof HTMLInputElement&&"select"in l}function dl(l,{select:a=!1}={}){if(l&&l.focus){const r=document.activeElement;l.focus({preventScroll:!0}),l!==r&&XN(l)&&a&&l.select()}}var Cg=KN();function KN(){let l=[];return{add(a){const r=l[0];a!==r&&(r==null||r.pause()),l=Ng(l,a),l.unshift(a)},remove(a){var r;l=Ng(l,a),(r=l[0])==null||r.resume()}}}function Ng(l,a){const r=[...l],s=r.indexOf(a);return s!==-1&&r.splice(s,1),r}function FN(l){return l.filter(a=>a.tagName!=="A")}var JN="Portal",v0=b.forwardRef((l,a)=>{var m;const{container:r,...s}=l,[o,f]=b.useState(!1);Ts(()=>f(!0),[]);const h=r||o&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return h?jN.createPortal(d.jsx(La.div,{...s,ref:a}),h):null});v0.displayName=JN;function $N(l,a){return b.useReducer((r,s)=>a[r][s]??r,l)}var Uo=l=>{const{present:a,children:r}=l,s=IN(a),o=typeof r=="function"?r({present:s.isPresent}):b.Children.only(r),f=oi(s.ref,PN(o));return typeof r=="function"||s.isPresent?b.cloneElement(o,{ref:f}):null};Uo.displayName="Presence";function IN(l){const[a,r]=b.useState(),s=b.useRef(null),o=b.useRef(l),f=b.useRef("none"),h=l?"mounted":"unmounted",[m,v]=$N(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const y=so(s.current);f.current=m==="mounted"?y:"none"},[m]),Ts(()=>{const y=s.current,x=o.current;if(x!==l){const C=f.current,M=so(y);l?v("MOUNT"):M==="none"||(y==null?void 0:y.display)==="none"?v("UNMOUNT"):v(x&&C!==M?"ANIMATION_OUT":"UNMOUNT"),o.current=l}},[l,v]),Ts(()=>{if(a){let y;const x=a.ownerDocument.defaultView??window,S=M=>{const T=so(s.current).includes(CSS.escape(M.animationName));if(M.target===a&&T&&(v("ANIMATION_END"),!o.current)){const A=a.style.animationFillMode;a.style.animationFillMode="forwards",y=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=A)})}},C=M=>{M.target===a&&(f.current=so(s.current))};return a.addEventListener("animationstart",C),a.addEventListener("animationcancel",S),a.addEventListener("animationend",S),()=>{x.clearTimeout(y),a.removeEventListener("animationstart",C),a.removeEventListener("animationcancel",S),a.removeEventListener("animationend",S)}}else v("ANIMATION_END")},[a,v]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(y=>{s.current=y?getComputedStyle(y):null,r(y)},[])}}function so(l){return(l==null?void 0:l.animationName)||"none"}function PN(l){var s,o;let a=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?l.ref:(a=(o=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:o.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?l.props.ref:l.props.ref||l.ref)}var vd=0;function WN(){b.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??jg()),document.body.insertAdjacentElement("beforeend",l[1]??jg()),vd++,()=>{vd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),vd--}},[])}function jg(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var Pn=function(){return Pn=Object.assign||function(a){for(var r,s=1,o=arguments.length;s<o;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(a[f]=r[f])}return a},Pn.apply(this,arguments)};function g0(l,a){var r={};for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&a.indexOf(s)<0&&(r[s]=l[s]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(l);o<s.length;o++)a.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(l,s[o])&&(r[s[o]]=l[s[o]]);return r}function ej(l,a,r){if(r||arguments.length===2)for(var s=0,o=a.length,f;s<o;s++)(f||!(s in a))&&(f||(f=Array.prototype.slice.call(a,0,s)),f[s]=a[s]);return l.concat(f||Array.prototype.slice.call(a))}var yo="right-scroll-bar-position",vo="width-before-scroll-bar",tj="with-scroll-bars-hidden",nj="--removed-body-scroll-bar-size";function gd(l,a){return typeof l=="function"?l(a):l&&(l.current=a),l}function aj(l,a){var r=b.useState(function(){return{value:l,callback:a,facade:{get current(){return r.value},set current(s){var o=r.value;o!==s&&(r.value=s,r.callback(s,o))}}}})[0];return r.callback=a,r.facade}var lj=typeof window<"u"?b.useLayoutEffect:b.useEffect,Tg=new WeakMap;function ij(l,a){var r=aj(null,function(s){return l.forEach(function(o){return gd(o,s)})});return lj(function(){var s=Tg.get(r);if(s){var o=new Set(s),f=new Set(l),h=r.current;o.forEach(function(m){f.has(m)||gd(m,null)}),f.forEach(function(m){o.has(m)||gd(m,h)})}Tg.set(r,l)},[l]),r}function rj(l){return l}function sj(l,a){a===void 0&&(a=rj);var r=[],s=!1,o={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:l},useMedium:function(f){var h=a(f,s);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(f){for(s=!0;r.length;){var h=r;r=[],h.forEach(f)}r={push:function(m){return f(m)},filter:function(){return r}}},assignMedium:function(f){s=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(f),h=r}var v=function(){var x=h;h=[],x.forEach(f)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(x){h.push(x),y()},filter:function(x){return h=h.filter(x),r}}}};return o}function uj(l){l===void 0&&(l={});var a=sj(null);return a.options=Pn({async:!0,ssr:!1},l),a}var b0=function(l){var a=l.sideCar,r=g0(l,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=a.read();if(!s)throw new Error("Sidecar medium not found");return b.createElement(s,Pn({},r))};b0.isSideCarExport=!0;function oj(l,a){return l.useMedium(a),b0}var x0=uj(),bd=function(){},Lo=b.forwardRef(function(l,a){var r=b.useRef(null),s=b.useState({onScrollCapture:bd,onWheelCapture:bd,onTouchMoveCapture:bd}),o=s[0],f=s[1],h=l.forwardProps,m=l.children,v=l.className,y=l.removeScrollBar,x=l.enabled,S=l.shards,C=l.sideCar,M=l.noRelative,L=l.noIsolation,T=l.inert,A=l.allowPinchZoom,z=l.as,F=z===void 0?"div":z,H=l.gapMode,V=g0(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),X=C,K=ij([r,a]),$=Pn(Pn({},V),o);return b.createElement(b.Fragment,null,x&&b.createElement(X,{sideCar:x0,removeScrollBar:y,shards:S,noRelative:M,noIsolation:L,inert:T,setCallbacks:f,allowPinchZoom:!!A,lockRef:r,gapMode:H}),h?b.cloneElement(b.Children.only(m),Pn(Pn({},$),{ref:K})):b.createElement(F,Pn({},$,{className:v,ref:K}),m))});Lo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lo.classNames={fullWidth:vo,zeroRight:yo};var cj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fj(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var a=cj();return a&&l.setAttribute("nonce",a),l}function dj(l,a){l.styleSheet?l.styleSheet.cssText=a:l.appendChild(document.createTextNode(a))}function hj(l){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(l)}var mj=function(){var l=0,a=null;return{add:function(r){l==0&&(a=fj())&&(dj(a,r),hj(a)),l++},remove:function(){l--,!l&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},pj=function(){var l=mj();return function(a,r){b.useEffect(function(){return l.add(a),function(){l.remove()}},[a&&r])}},S0=function(){var l=pj(),a=function(r){var s=r.styles,o=r.dynamic;return l(s,o),null};return a},yj={left:0,top:0,right:0,gap:0},xd=function(l){return parseInt(l||"",10)||0},vj=function(l){var a=window.getComputedStyle(document.body),r=a[l==="padding"?"paddingLeft":"marginLeft"],s=a[l==="padding"?"paddingTop":"marginTop"],o=a[l==="padding"?"paddingRight":"marginRight"];return[xd(r),xd(s),xd(o)]},gj=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return yj;var a=vj(l),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,s-r+a[2]-a[0])}},bj=S0(),er="data-scroll-locked",xj=function(l,a,r,s){var o=l.left,f=l.top,h=l.right,m=l.gap;return r===void 0&&(r="margin"),`
|
|
191
|
-
.`.concat(tj,` {
|
|
192
|
-
overflow: hidden `).concat(s,`;
|
|
193
|
-
padding-right: `).concat(m,"px ").concat(s,`;
|
|
194
|
-
}
|
|
195
|
-
body[`).concat(er,`] {
|
|
196
|
-
overflow: hidden `).concat(s,`;
|
|
197
|
-
overscroll-behavior: contain;
|
|
198
|
-
`).concat([a&&"position: relative ".concat(s,";"),r==="margin"&&`
|
|
199
|
-
padding-left: `.concat(o,`px;
|
|
200
|
-
padding-top: `).concat(f,`px;
|
|
201
|
-
padding-right: `).concat(h,`px;
|
|
202
|
-
margin-left:0;
|
|
203
|
-
margin-top:0;
|
|
204
|
-
margin-right: `).concat(m,"px ").concat(s,`;
|
|
205
|
-
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.`).concat(yo,` {
|
|
209
|
-
right: `).concat(m,"px ").concat(s,`;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.`).concat(vo,` {
|
|
213
|
-
margin-right: `).concat(m,"px ").concat(s,`;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.`).concat(yo," .").concat(yo,` {
|
|
217
|
-
right: 0 `).concat(s,`;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.`).concat(vo," .").concat(vo,` {
|
|
221
|
-
margin-right: 0 `).concat(s,`;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
body[`).concat(er,`] {
|
|
225
|
-
`).concat(nj,": ").concat(m,`px;
|
|
226
|
-
}
|
|
227
|
-
`)},wg=function(){var l=parseInt(document.body.getAttribute(er)||"0",10);return isFinite(l)?l:0},Sj=function(){b.useEffect(function(){return document.body.setAttribute(er,(wg()+1).toString()),function(){var l=wg()-1;l<=0?document.body.removeAttribute(er):document.body.setAttribute(er,l.toString())}},[])},_j=function(l){var a=l.noRelative,r=l.noImportant,s=l.gapMode,o=s===void 0?"margin":s;Sj();var f=b.useMemo(function(){return gj(o)},[o]);return b.createElement(bj,{styles:xj(f,!a,o,r?"":"!important")})},Kd=!1;if(typeof window<"u")try{var uo=Object.defineProperty({},"passive",{get:function(){return Kd=!0,!0}});window.addEventListener("test",uo,uo),window.removeEventListener("test",uo,uo)}catch{Kd=!1}var Ji=Kd?{passive:!1}:!1,Ej=function(l){return l.tagName==="TEXTAREA"},_0=function(l,a){if(!(l instanceof Element))return!1;var r=window.getComputedStyle(l);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ej(l)&&r[a]==="visible")},Cj=function(l){return _0(l,"overflowY")},Nj=function(l){return _0(l,"overflowX")},Ag=function(l,a){var r=a.ownerDocument,s=a;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var o=E0(l,s);if(o){var f=C0(l,s),h=f[1],m=f[2];if(h>m)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},jj=function(l){var a=l.scrollTop,r=l.scrollHeight,s=l.clientHeight;return[a,r,s]},Tj=function(l){var a=l.scrollLeft,r=l.scrollWidth,s=l.clientWidth;return[a,r,s]},E0=function(l,a){return l==="v"?Cj(a):Nj(a)},C0=function(l,a){return l==="v"?jj(a):Tj(a)},wj=function(l,a){return l==="h"&&a==="rtl"?-1:1},Aj=function(l,a,r,s,o){var f=wj(l,window.getComputedStyle(a).direction),h=f*s,m=r.target,v=a.contains(m),y=!1,x=h>0,S=0,C=0;do{if(!m)break;var M=C0(l,m),L=M[0],T=M[1],A=M[2],z=T-A-f*L;(L||z)&&E0(l,m)&&(S+=z,C+=L);var F=m.parentNode;m=F&&F.nodeType===Node.DOCUMENT_FRAGMENT_NODE?F.host:F}while(!v&&m!==document.body||v&&(a.contains(m)||a===m));return(x&&Math.abs(S)<1||!x&&Math.abs(C)<1)&&(y=!0),y},oo=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},Rg=function(l){return[l.deltaX,l.deltaY]},Og=function(l){return l&&"current"in l?l.current:l},Rj=function(l,a){return l[0]===a[0]&&l[1]===a[1]},Oj=function(l){return`
|
|
228
|
-
.block-interactivity-`.concat(l,` {pointer-events: none;}
|
|
229
|
-
.allow-interactivity-`).concat(l,` {pointer-events: all;}
|
|
230
|
-
`)},Mj=0,$i=[];function Dj(l){var a=b.useRef([]),r=b.useRef([0,0]),s=b.useRef(),o=b.useState(Mj++)[0],f=b.useState(S0)[0],h=b.useRef(l);b.useEffect(function(){h.current=l},[l]),b.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(o));var T=ej([l.lockRef.current],(l.shards||[]).map(Og),!0).filter(Boolean);return T.forEach(function(A){return A.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),T.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(o))})}}},[l.inert,l.lockRef.current,l.shards]);var m=b.useCallback(function(T,A){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!h.current.allowPinchZoom;var z=oo(T),F=r.current,H="deltaX"in T?T.deltaX:F[0]-z[0],V="deltaY"in T?T.deltaY:F[1]-z[1],X,K=T.target,$=Math.abs(H)>Math.abs(V)?"h":"v";if("touches"in T&&$==="h"&&K.type==="range")return!1;var G=window.getSelection(),he=G&&G.anchorNode,Ne=he?he===K||he.contains(K):!1;if(Ne)return!1;var Ze=Ag($,K);if(!Ze)return!0;if(Ze?X=$:(X=$==="v"?"h":"v",Ze=Ag($,K)),!Ze)return!1;if(!s.current&&"changedTouches"in T&&(H||V)&&(s.current=X),!X)return!0;var He=s.current||X;return Aj(He,A,T,He==="h"?H:V)},[]),v=b.useCallback(function(T){var A=T;if(!(!$i.length||$i[$i.length-1]!==f)){var z="deltaY"in A?Rg(A):oo(A),F=a.current.filter(function(X){return X.name===A.type&&(X.target===A.target||A.target===X.shadowParent)&&Rj(X.delta,z)})[0];if(F&&F.should){A.cancelable&&A.preventDefault();return}if(!F){var H=(h.current.shards||[]).map(Og).filter(Boolean).filter(function(X){return X.contains(A.target)}),V=H.length>0?m(A,H[0]):!h.current.noIsolation;V&&A.cancelable&&A.preventDefault()}}},[]),y=b.useCallback(function(T,A,z,F){var H={name:T,delta:A,target:z,should:F,shadowParent:zj(z)};a.current.push(H),setTimeout(function(){a.current=a.current.filter(function(V){return V!==H})},1)},[]),x=b.useCallback(function(T){r.current=oo(T),s.current=void 0},[]),S=b.useCallback(function(T){y(T.type,Rg(T),T.target,m(T,l.lockRef.current))},[]),C=b.useCallback(function(T){y(T.type,oo(T),T.target,m(T,l.lockRef.current))},[]);b.useEffect(function(){return $i.push(f),l.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:C}),document.addEventListener("wheel",v,Ji),document.addEventListener("touchmove",v,Ji),document.addEventListener("touchstart",x,Ji),function(){$i=$i.filter(function(T){return T!==f}),document.removeEventListener("wheel",v,Ji),document.removeEventListener("touchmove",v,Ji),document.removeEventListener("touchstart",x,Ji)}},[]);var M=l.removeScrollBar,L=l.inert;return b.createElement(b.Fragment,null,L?b.createElement(f,{styles:Oj(o)}):null,M?b.createElement(_j,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function zj(l){for(var a=null;l!==null;)l instanceof ShadowRoot&&(a=l.host,l=l.host),l=l.parentNode;return a}const kj=oj(x0,Dj);var N0=b.forwardRef(function(l,a){return b.createElement(Lo,Pn({},l,{ref:a,sideCar:kj}))});N0.classNames=Lo.classNames;var Uj=function(l){if(typeof document>"u")return null;var a=Array.isArray(l)?l[0]:l;return a.ownerDocument.body},Ii=new WeakMap,co=new WeakMap,fo={},Sd=0,j0=function(l){return l&&(l.host||j0(l.parentNode))},Lj=function(l,a){return a.map(function(r){if(l.contains(r))return r;var s=j0(r);return s&&l.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",l,". Doing nothing"),null)}).filter(function(r){return!!r})},Bj=function(l,a,r,s){var o=Lj(a,Array.isArray(l)?l:[l]);fo[r]||(fo[r]=new WeakMap);var f=fo[r],h=[],m=new Set,v=new Set(o),y=function(S){!S||m.has(S)||(m.add(S),y(S.parentNode))};o.forEach(y);var x=function(S){!S||v.has(S)||Array.prototype.forEach.call(S.children,function(C){if(m.has(C))x(C);else try{var M=C.getAttribute(s),L=M!==null&&M!=="false",T=(Ii.get(C)||0)+1,A=(f.get(C)||0)+1;Ii.set(C,T),f.set(C,A),h.push(C),T===1&&L&&co.set(C,!0),A===1&&C.setAttribute(r,"true"),L||C.setAttribute(s,"true")}catch(z){console.error("aria-hidden: cannot operate on ",C,z)}})};return x(a),m.clear(),Sd++,function(){h.forEach(function(S){var C=Ii.get(S)-1,M=f.get(S)-1;Ii.set(S,C),f.set(S,M),C||(co.has(S)||S.removeAttribute(s),co.delete(S)),M||S.removeAttribute(r)}),Sd--,Sd||(Ii=new WeakMap,Ii=new WeakMap,co=new WeakMap,fo={})}},qj=function(l,a,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(l)?l:[l]),o=Uj(l);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),Bj(s,o,r,"aria-hidden")):function(){return null}},Bo="Dialog",[T0]=gN(Bo),[Hj,Vn]=T0(Bo),w0=l=>{const{__scopeDialog:a,children:r,open:s,defaultOpen:o,onOpenChange:f,modal:h=!0}=l,m=b.useRef(null),v=b.useRef(null),[y,x]=EN({prop:s,defaultProp:o??!1,onChange:f,caller:Bo});return d.jsx(Hj,{scope:a,triggerRef:m,contentRef:v,contentId:md(),titleId:md(),descriptionId:md(),open:y,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(S=>!S),[x]),modal:h,children:r})};w0.displayName=Bo;var A0="DialogTrigger",R0=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(A0,r),f=oi(a,o.triggerRef);return d.jsx(La.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Sh(o.open),...s,ref:f,onClick:Nl(l.onClick,o.onOpenToggle)})});R0.displayName=A0;var bh="DialogPortal",[Qj,O0]=T0(bh,{forceMount:void 0}),M0=l=>{const{__scopeDialog:a,forceMount:r,children:s,container:o}=l,f=Vn(bh,a);return d.jsx(Qj,{scope:a,forceMount:r,children:b.Children.map(s,h=>d.jsx(Uo,{present:r||f.open,children:d.jsx(v0,{asChild:!0,container:o,children:h})}))})};M0.displayName=bh;var Ro="DialogOverlay",D0=b.forwardRef((l,a)=>{const r=O0(Ro,l.__scopeDialog),{forceMount:s=r.forceMount,...o}=l,f=Vn(Ro,l.__scopeDialog);return f.modal?d.jsx(Uo,{present:s||f.open,children:d.jsx(Vj,{...o,ref:a})}):null});D0.displayName=Ro;var Zj=f0("DialogOverlay.RemoveScroll"),Vj=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(Ro,r);return d.jsx(N0,{as:Zj,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(La.div,{"data-state":Sh(o.open),...s,ref:a,style:{pointerEvents:"auto",...s.style}})})}),si="DialogContent",z0=b.forwardRef((l,a)=>{const r=O0(si,l.__scopeDialog),{forceMount:s=r.forceMount,...o}=l,f=Vn(si,l.__scopeDialog);return d.jsx(Uo,{present:s||f.open,children:f.modal?d.jsx(Gj,{...o,ref:a}):d.jsx(Yj,{...o,ref:a})})});z0.displayName=si;var Gj=b.forwardRef((l,a)=>{const r=Vn(si,l.__scopeDialog),s=b.useRef(null),o=oi(a,r.contentRef,s);return b.useEffect(()=>{const f=s.current;if(f)return qj(f)},[]),d.jsx(k0,{...l,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nl(l.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Nl(l.onPointerDownOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&f.preventDefault()}),onFocusOutside:Nl(l.onFocusOutside,f=>f.preventDefault())})}),Yj=b.forwardRef((l,a)=>{const r=Vn(si,l.__scopeDialog),s=b.useRef(!1),o=b.useRef(!1);return d.jsx(k0,{...l,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=l.onCloseAutoFocus)==null||h.call(l,f),f.defaultPrevented||(s.current||(m=r.triggerRef.current)==null||m.focus(),f.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:f=>{var v,y;(v=l.onInteractOutside)==null||v.call(l,f),f.defaultPrevented||(s.current=!0,f.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const h=f.target;((y=r.triggerRef.current)==null?void 0:y.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&o.current&&f.preventDefault()}})}),k0=b.forwardRef((l,a)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:f,...h}=l,m=Vn(si,r),v=b.useRef(null),y=oi(a,v);return WN(),d.jsxs(d.Fragment,{children:[d.jsx(p0,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:f,children:d.jsx(h0,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Sh(m.open),...h,ref:y,onDismiss:()=>m.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(Xj,{titleId:m.titleId}),d.jsx(Fj,{contentRef:v,descriptionId:m.descriptionId})]})]})}),xh="DialogTitle",U0=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(xh,r);return d.jsx(La.h2,{id:o.titleId,...s,ref:a})});U0.displayName=xh;var L0="DialogDescription",B0=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(L0,r);return d.jsx(La.p,{id:o.descriptionId,...s,ref:a})});B0.displayName=L0;var q0="DialogClose",H0=b.forwardRef((l,a)=>{const{__scopeDialog:r,...s}=l,o=Vn(q0,r);return d.jsx(La.button,{type:"button",...s,ref:a,onClick:Nl(l.onClick,()=>o.onOpenChange(!1))})});H0.displayName=q0;function Sh(l){return l?"open":"closed"}var Q0="DialogTitleWarning",[IT,Z0]=vN(Q0,{contentName:si,titleName:xh,docsSlug:"dialog"}),Xj=({titleId:l})=>{const a=Z0(Q0),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
231
|
-
|
|
232
|
-
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
233
|
-
|
|
234
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return b.useEffect(()=>{l&&(document.getElementById(l)||console.error(r))},[r,l]),null},Kj="DialogDescriptionWarning",Fj=({contentRef:l,descriptionId:a})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Z0(Kj).contentName}}.`;return b.useEffect(()=>{var f;const o=(f=l.current)==null?void 0:f.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(s))},[s,l,a]),null},Jj=w0,$j=R0,Ij=M0,Pj=D0,Wj=z0,eT=U0,tT=B0,nT=H0;const Fd=Jj,aT=$j,lT=Ij,V0=b.forwardRef(({className:l,...a},r)=>d.jsx(Pj,{ref:r,className:We("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",l),...a}));V0.displayName="DialogOverlay";const Oo=b.forwardRef(({className:l,children:a,...r},s)=>d.jsxs(lT,{children:[d.jsx(V0,{}),d.jsxs(Wj,{ref:s,className:We("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg",l),...r,children:[a,d.jsxs(nT,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(A2,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Oo.displayName="DialogContent";function Jd({className:l,...a}){return d.jsx("div",{className:We("flex flex-col space-y-1.5 text-center sm:text-left",l),...a})}function go({className:l,...a}){return d.jsx("div",{className:We("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",l),...a})}const Mo=b.forwardRef(({className:l,...a},r)=>d.jsx(eT,{ref:r,className:We("text-lg font-semibold leading-none tracking-tight",l),...a}));Mo.displayName="DialogTitle";const iT=b.forwardRef(({className:l,...a},r)=>d.jsx(tT,{ref:r,className:We("text-sm text-muted-foreground",l),...a}));iT.displayName="DialogDescription";const wn=b.forwardRef(({className:l,type:a,...r},s)=>d.jsx("input",{type:a,className:We("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",l),ref:s,...r}));wn.displayName="Input";var rT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sT=rT.reduce((l,a)=>{const r=o0(`Primitive.${a}`),s=b.forwardRef((o,f)=>{const{asChild:h,...m}=o,v=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(v,{...m,ref:f})});return s.displayName=`Primitive.${a}`,{...l,[a]:s}},{}),uT="Label",G0=b.forwardRef((l,a)=>d.jsx(sT.label,{...l,ref:a,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=l.onMouseDown)==null||o.call(l,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));G0.displayName=uT;var oT=G0;const Qt=b.forwardRef(({className:l,...a},r)=>d.jsx(oT,{ref:r,className:We("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",l),...a}));Qt.displayName="Label";const Ra=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{className:"relative w-full overflow-auto",children:d.jsx("table",{ref:r,className:We("w-full caption-bottom text-sm",l),...a})}));Ra.displayName="Table";const Oa=b.forwardRef(({className:l,...a},r)=>d.jsx("thead",{ref:r,className:We("[&_tr]:border-b",l),...a}));Oa.displayName="TableHeader";const Ma=b.forwardRef(({className:l,...a},r)=>d.jsx("tbody",{ref:r,className:We("[&_tr:last-child]:border-0",l),...a}));Ma.displayName="TableBody";const Qe=b.forwardRef(({className:l,...a},r)=>d.jsx("tr",{ref:r,className:We("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",l),...a}));Qe.displayName="TableRow";const ge=b.forwardRef(({className:l,...a},r)=>d.jsx("th",{ref:r,className:We("h-10 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",l),...a}));ge.displayName="TableHead";const oe=b.forwardRef(({className:l,...a},r)=>d.jsx("td",{ref:r,className:We("p-4 align-middle [&:has([role=checkbox])]:pr-0",l),...a}));oe.displayName="TableCell";const cT=Object.values(JC);function fT(){const l=br(),[a,r]=b.useState(!1),[s,o]=b.useState("create"),[f,h]=b.useState(null),[m,v]=b.useState({username:"",password:"",role:"admin"}),{data:y,isLoading:x,error:S}=kt({queryKey:["admin-users"],queryFn:aN}),C=Pt({mutationFn:()=>lN({username:m.username,password:m.password,role:m.role}),onSuccess:()=>{l.invalidateQueries({queryKey:["admin-users"]}),T()}}),M=Pt({mutationFn:()=>{if(!f)throw new Error("No user selected");const K={};return s==="edit"&&(K.role=m.role),s==="reset-password"&&(K.password=m.password),iN(f,K)},onSuccess:()=>{l.invalidateQueries({queryKey:["admin-users"]}),T()}}),L=Pt({mutationFn:rN,onSuccess:()=>l.invalidateQueries({queryKey:["admin-users"]})});function T(){r(!1),o("create"),h(null),v({username:"",password:"",role:"admin"})}function A(K){h(K.id),o("edit"),v({username:"",password:"",role:K.role}),r(!0)}function z(K){h(K),o("reset-password"),v({username:"",password:"",role:"admin"}),r(!0)}function F(K){K.preventDefault(),s==="create"?C.mutate():M.mutate()}function H(K){window.confirm("Delete this admin user?")&&L.mutate(K)}const V=C.error??M.error,X=C.isPending||M.isPending;return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Admin Users"}),d.jsxs(Fd,{open:a,onOpenChange:K=>K?r(!0):T(),children:[d.jsx(aT,{asChild:!0,children:d.jsxs(tt,{onClick:()=>o("create"),children:[d.jsx(Bd,{className:"h-4 w-4 mr-2"}),"Add Admin"]})}),d.jsxs(Oo,{children:[d.jsx(Jd,{children:d.jsx(Mo,{children:s==="create"?"Create Admin User":s==="edit"?"Edit Role":"Reset Password"})}),d.jsxs("form",{onSubmit:F,className:"space-y-4",children:[s==="create"&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"admin-username",children:"Username"}),d.jsx(wn,{id:"admin-username",value:m.username,onChange:K=>v({...m,username:K.target.value}),required:!0})]}),(s==="create"||s==="reset-password")&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"admin-password",children:"Password"}),d.jsx(wn,{id:"admin-password",type:"password",autoComplete:"new-password",value:m.password,onChange:K=>v({...m,password:K.target.value}),required:!0,minLength:8})]}),(s==="create"||s==="edit")&&d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"admin-role",children:"Role"}),d.jsx("select",{id:"admin-role",value:m.role,onChange:K=>v({...m,role:K.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:cT.map(K=>d.jsx("option",{value:K,children:K},K))})]}),V instanceof Error&&d.jsx("div",{className:"text-sm text-destructive",children:V.message}),d.jsx(go,{children:d.jsx(tt,{type:"submit",disabled:X,children:X?"Saving...":"Save"})})]})]})]})]}),d.jsx("div",{className:"border rounded-lg",children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(Qe,{children:[d.jsx(ge,{children:"Username"}),d.jsx(ge,{children:"Role"}),d.jsx(ge,{children:"Created"}),d.jsx(ge,{children:"Last Login"}),d.jsx(ge,{className:"w-32"})]})}),d.jsx(Ma,{children:x?d.jsx(Qe,{children:d.jsx(oe,{colSpan:5,className:"text-center py-8 text-muted-foreground",children:"Loading..."})}):S?d.jsx(Qe,{children:d.jsxs(oe,{colSpan:5,className:"text-center py-8 text-destructive",children:["Failed to load admin users: ",S instanceof Error?S.message:"Unknown error"]})}):(y==null?void 0:y.length)===0?d.jsx(Qe,{children:d.jsx(oe,{colSpan:5,className:"text-center py-8 text-muted-foreground",children:"No admin users"})}):y==null?void 0:y.map(K=>d.jsxs(Qe,{children:[d.jsx(oe,{className:"font-medium",children:K.username}),d.jsx(oe,{children:d.jsx(ot,{variant:K.role==="super_admin"?"default":"secondary",children:K.role})}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(K.createdAt)}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(K.lastLoginAt)}),d.jsx(oe,{children:d.jsxs("div",{className:"flex gap-1",children:[d.jsx(tt,{variant:"ghost",size:"icon",onClick:()=>A(K),title:"Edit role",children:d.jsx(kb,{className:"h-4 w-4"})}),d.jsx(tt,{variant:"ghost",size:"sm",onClick:()=>z(K.id),title:"Reset password",children:"Reset PW"}),K.role!=="super_admin"&&d.jsx(tt,{variant:"ghost",size:"icon",onClick:()=>H(K.id),disabled:L.isPending,title:"Delete",children:d.jsx(Ss,{className:"h-4 w-4"})})]})})]},K.id))})]})})]})}function Y0(){return nt.get("/admin/adapter-mappings")}function dT(l){return nt.post("/admin/adapter-mappings",l)}function hT(l){return nt.delete(`/admin/adapter-mappings/${l}`)}function X0(){return nt.get("/admin/adapters/status")}function K0(){return nt.get("/admin/adapters")}function mT(l){return nt.post("/admin/adapters",l)}function pT(l,a){return nt.patch(`/admin/adapters/${l}`,a)}function yT(l){return nt.delete(`/admin/adapters/${l}`)}function vT(l){const a=new URLSearchParams;a.set("limit",String(l.limit)),l!=null&&l.cursor&&a.set("cursor",l.cursor);const r=a.toString();return nt.get(`/admin/agents${r?`?${r}`:""}`)}function gT(l){return nt.get(`/admin/agents/${encodeURIComponent(l)}`)}function bT(l){return nt.delete(`/admin/agents/${encodeURIComponent(l)}`)}function xT(l){return nt.post(`/admin/agents/${encodeURIComponent(l)}/test`,{})}function ST(){return nt.post("/admin/agents/sync",{})}function _T(){return nt.get("/admin/agents/sync/status")}function ET(l){return nt.get(`/admin/agents/${encodeURIComponent(l)}/tokens`)}function CT(l,a){return nt.post(`/admin/agents/${encodeURIComponent(l)}/tokens`,a)}function NT(l,a){return nt.delete(`/admin/agents/${encodeURIComponent(l)}/tokens/${encodeURIComponent(a)}`)}const An=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:We("rounded-xl border bg-card text-card-foreground shadow-sm",l),...a}));An.displayName="Card";const Hn=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:We("flex flex-col space-y-1.5 p-6",l),...a}));Hn.displayName="CardHeader";const Qn=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:We("font-semibold leading-none tracking-tight",l),...a}));Qn.displayName="CardTitle";const F0=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:We("text-sm text-muted-foreground",l),...a}));F0.displayName="CardDescription";const Rn=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:We("p-6 pt-0",l),...a}));Rn.displayName="CardContent";const jT=b.forwardRef(({className:l,...a},r)=>d.jsx("div",{ref:r,className:We("flex items-center p-6 pt-0",l),...a}));jT.displayName="CardFooter";const TT=Object.values(KC);function wT(){var pn,zn,la,Ut,ci;const a=$_().agentId??"",r=ks(),s=br(),o=kt({queryKey:["agent",a],queryFn:()=>gT(a),enabled:!!a}),f=kt({queryKey:["tokens",a],queryFn:()=>ET(a),enabled:!!a&&o.isSuccess&&((pn=o.data)==null?void 0:pn.type)!=="human"}),h=kt({queryKey:["adapters"],queryFn:K0}),m=kt({queryKey:["adapter-mappings"],queryFn:Y0}),{data:v}=kt({queryKey:["adapter-statuses"],queryFn:X0,refetchInterval:15e3}),y=((zn=h.data)==null?void 0:zn.filter(W=>W.agentId===a))??[],x=((la=m.data)==null?void 0:la.filter(W=>W.agentId===a))??[],[S,C]=b.useState(!1),[M,L]=b.useState(""),[T,A]=b.useState(null),[z,F]=b.useState(!1),[H,V]=b.useState(null),[X,K]=b.useState({platform:"feishu",feishuAppId:"",feishuAppSecret:"",credentialsJson:"{}",status:"active",externalUserId:"",displayName:""}),[$,G]=b.useState(""),he=Pt({mutationFn:()=>bT(a),onSuccess:()=>r("/agents")}),Ne=Pt({mutationFn:W=>CT(a,{name:W||void 0}),onSuccess:W=>{A(W.token),L(""),s.invalidateQueries({queryKey:["tokens",a]})}}),Ze=Pt({mutationFn:W=>NT(a,W),onSuccess:()=>s.invalidateQueries({queryKey:["tokens",a]})}),He=Pt({mutationFn:()=>{const W=Mg(X);if(!W)throw new Error("Credentials are required");return mT({platform:X.platform,agentId:a,credentials:W,status:X.status})},onSuccess:()=>{s.invalidateQueries({queryKey:["adapters"]}),P()}}),pt=Pt({mutationFn:()=>{if(!H)throw new Error("No adapter selected");const W={status:X.status},Lt=Mg(X);return Lt&&(W.credentials=Lt),pT(H,W)},onSuccess:()=>{s.invalidateQueries({queryKey:["adapters"]}),P()}}),rt=Pt({mutationFn:yT,onSuccess:()=>s.invalidateQueries({queryKey:["adapters"]})}),ze=Pt({mutationFn:()=>dT({platform:X.platform,externalUserId:X.externalUserId,agentId:a,boundVia:"manual",displayName:X.displayName||void 0}),onSuccess:()=>{s.invalidateQueries({queryKey:["adapter-mappings"]}),P()}}),U=Pt({mutationFn:hT,onSuccess:()=>s.invalidateQueries({queryKey:["adapter-mappings"]})}),J=Pt({mutationFn:()=>xT(a)}),ne=o.data,Ee=(ne==null?void 0:ne.type)==="human";function P(){F(!1),V(null),K({platform:"feishu",feishuAppId:"",feishuAppSecret:"",credentialsJson:"{}",status:"active",externalUserId:"",displayName:""}),G("")}function j(W){V(W.id),K({platform:W.platform,feishuAppId:"",feishuAppSecret:"",credentialsJson:"",status:W.status,externalUserId:"",displayName:""}),F(!0)}function Q(W){if(W.preventDefault(),G(""),Ee){if(!X.externalUserId)return;ze.mutate();return}if(X.platform==="feishu"){if(!H&&(!X.feishuAppId||!X.feishuAppSecret)){G("App ID and App Secret are required");return}}else{const Lt=X.credentialsJson.trim();if(!H&&!Lt){G("Credentials are required");return}if(Lt)try{JSON.parse(Lt)}catch{G("Invalid JSON");return}}H?pt.mutate():He.mutate()}if(o.isLoading)return d.jsx("div",{className:"text-muted-foreground",children:"Loading..."});if(o.error)return d.jsxs("div",{className:"text-destructive",children:["Failed to load agent: ",o.error instanceof Error?o.error.message:"Unknown error"]});if(!ne)return d.jsx("div",{className:"text-muted-foreground",children:"Agent not found"});const ee=()=>{window.confirm("Are you sure you want to delete this agent? This cannot be undone.")&&he.mutate()},le=W=>{W.preventDefault(),Ne.mutate(M)},ce=He.error??pt.error??ze.error,me=He.isPending||pt.isPending||ze.isPending,Ae=ne.metadata,at=Ae==null?void 0:Ae.tree,_e=at==null?void 0:at.role,mn=at==null?void 0:at.domains;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(tt,{variant:"ghost",size:"icon",onClick:()=>r("/agents"),children:d.jsx(Mb,{className:"h-4 w-4"})}),d.jsxs("div",{className:"flex-1",children:[d.jsx("h1",{className:"text-2xl font-semibold",children:ne.displayName??ne.id}),d.jsx("p",{className:"text-sm text-muted-foreground font-mono",children:ne.id})]}),!Ee&&ne.status==="active"&&d.jsxs(tt,{variant:"outline",size:"sm",onClick:()=>{J.reset(),J.mutate()},disabled:J.isPending,children:[d.jsx(v2,{className:"h-4 w-4 mr-2"}),J.isPending?"Testing...":"Test Connection"]}),ne.status==="suspended"&&d.jsxs(tt,{variant:"destructive",size:"sm",onClick:ee,children:[d.jsx(Ss,{className:"h-4 w-4 mr-2"}),"Delete"]})]}),(J.data||J.error)&&d.jsx(RT,{result:J.data??{status:"error",message:"Failed to reach server"},onDismiss:()=>J.reset()}),d.jsxs(An,{children:[d.jsxs(Hn,{className:"flex flex-row items-center justify-between",children:[d.jsx(Qn,{children:"Agent Info"}),d.jsx("span",{className:"text-xs text-muted-foreground",children:"Managed by Context Tree"})]}),d.jsx(Rn,{children:d.jsxs("dl",{className:"grid grid-cols-2 gap-4 text-sm",children:[d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Display Name"}),d.jsx("dd",{children:ne.displayName??"—"})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Type"}),d.jsx("dd",{children:d.jsx(ot,{variant:"secondary",children:ne.type})})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Status"}),d.jsx("dd",{children:d.jsx(ot,{variant:ne.status==="active"?"default":"destructive",children:ne.status})})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Inbox ID"}),d.jsx("dd",{className:"font-mono",children:ne.inboxId})]}),ne.delegateMention&&d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Delegate Mention"}),d.jsx("dd",{className:"font-mono",children:ne.delegateMention})]}),_e&&d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Role"}),d.jsx("dd",{children:_e})]}),mn&&mn.length>0&&d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Domains"}),d.jsx("dd",{className:"flex flex-wrap gap-1",children:mn.map(W=>d.jsx(ot,{variant:"outline",children:W},W))})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Organization"}),d.jsx("dd",{className:"font-mono",children:ne.organizationId})]}),d.jsxs("div",{children:[d.jsx("dt",{className:"text-muted-foreground mb-1",children:"Created"}),d.jsx("dd",{children:Wt(ne.createdAt)})]})]})})]}),d.jsxs(An,{children:[d.jsxs(Hn,{className:"flex flex-row items-center justify-between",children:[d.jsxs(Qn,{className:"flex items-center gap-2",children:[Ee?d.jsx(f2,{className:"h-4 w-4"}):d.jsx(zb,{className:"h-4 w-4"}),"Platform Bindings"]}),d.jsxs(tt,{size:"sm",onClick:()=>F(!0),children:[d.jsx(Bd,{className:"h-4 w-4 mr-2"}),Ee?"Bind User":"Bind Bot"]})]}),d.jsx(Rn,{children:Ee?d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(Qe,{children:[d.jsx(ge,{children:"Platform"}),d.jsx(ge,{children:"External User ID"}),d.jsx(ge,{children:"Display Name"}),d.jsx(ge,{children:"Bound Via"}),d.jsx(ge,{children:"Created"}),d.jsx(ge,{className:"w-16"})]})}),d.jsx(Ma,{children:x.length===0?d.jsx(Qe,{children:d.jsx(oe,{colSpan:6,className:"text-center py-4 text-muted-foreground",children:"No platform bindings"})}):x.map(W=>d.jsxs(Qe,{children:[d.jsx(oe,{children:d.jsx(ot,{variant:"secondary",children:W.platform})}),d.jsx(oe,{className:"font-mono text-sm",children:W.externalUserId}),d.jsx(oe,{children:W.displayName??"—"}),d.jsx(oe,{children:d.jsx(ot,{variant:"outline",children:W.boundVia??"—"})}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(W.createdAt)}),d.jsx(oe,{children:d.jsx(tt,{variant:"ghost",size:"icon",onClick:()=>{window.confirm("Remove this binding?")&&U.mutate(W.id)},disabled:U.isPending,children:d.jsx(Ss,{className:"h-4 w-4"})})})]},W.id))})]}):d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(Qe,{children:[d.jsx(ge,{children:"Platform"}),d.jsx(ge,{children:"Status"}),d.jsx(ge,{children:"Connection"}),d.jsx(ge,{children:"Created"}),d.jsx(ge,{className:"w-24"})]})}),d.jsx(Ma,{children:y.length===0?d.jsx(Qe,{children:d.jsx(oe,{colSpan:5,className:"text-center py-4 text-muted-foreground",children:"No platform bindings"})}):y.map(W=>{const Lt=v==null?void 0:v.find(Ls=>Ls.configId===W.id);return d.jsxs(Qe,{children:[d.jsx(oe,{children:d.jsx(ot,{variant:"secondary",children:W.platform})}),d.jsx(oe,{children:d.jsx(ot,{variant:W.status==="active"?"default":"destructive",children:W.status})}),d.jsx(oe,{children:d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx("span",{className:We("inline-block h-2 w-2 rounded-full",Lt!=null&&Lt.connected?"bg-green-500":"bg-gray-300")}),d.jsx("span",{className:"text-xs text-muted-foreground",children:Lt!=null&&Lt.connected?"Online":"Offline"})]})}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(W.createdAt)}),d.jsx(oe,{children:d.jsxs("div",{className:"flex gap-1",children:[d.jsx(tt,{variant:"ghost",size:"icon",onClick:()=>j(W),title:"Edit",children:d.jsx(kb,{className:"h-4 w-4"})}),d.jsx(tt,{variant:"ghost",size:"icon",onClick:()=>{window.confirm("Remove this bot binding?")&&rt.mutate(W.id)},disabled:rt.isPending,title:"Delete",children:d.jsx(Ss,{className:"h-4 w-4"})})]})})]},W.id)})})]})})]}),!Ee&&d.jsxs(An,{children:[d.jsxs(Hn,{className:"flex flex-row items-center justify-between",children:[d.jsxs(Qn,{className:"flex items-center gap-2",children:[d.jsx(s2,{className:"h-4 w-4"}),"Tokens"]}),d.jsxs(tt,{size:"sm",onClick:()=>{A(null),L(""),C(!0)},children:[d.jsx(Bd,{className:"h-4 w-4 mr-2"}),"Create Token"]})]}),d.jsx(Rn,{children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(Qe,{children:[d.jsx(ge,{children:"Name"}),d.jsx(ge,{children:"Created"}),d.jsx(ge,{children:"Last Used"}),d.jsx(ge,{children:"Expires"}),d.jsx(ge,{className:"w-20"})]})}),d.jsx(Ma,{children:((Ut=f.data)==null?void 0:Ut.length)===0?d.jsx(Qe,{children:d.jsx(oe,{colSpan:5,className:"text-center py-4 text-muted-foreground",children:"No tokens"})}):(ci=f.data)==null?void 0:ci.map(W=>d.jsxs(Qe,{children:[d.jsx(oe,{children:W.name??"—"}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(W.createdAt)}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(W.lastUsedAt)}),d.jsx(oe,{className:"text-muted-foreground",children:W.revokedAt?d.jsx(ot,{variant:"destructive",children:"Revoked"}):W.expiresAt?Wt(W.expiresAt):"Never"}),d.jsx(oe,{children:!W.revokedAt&&d.jsx(tt,{variant:"ghost",size:"sm",onClick:()=>Ze.mutate(W.id),disabled:Ze.isPending,children:d.jsx(Ss,{className:"h-4 w-4"})})})]},W.id))})]})})]}),d.jsx(Fd,{open:z,onOpenChange:W=>W?F(!0):P(),children:d.jsxs(Oo,{children:[d.jsx(Jd,{children:d.jsx(Mo,{children:Ee?"Bind External User":H?"Edit Bot Binding":"Bind Bot"})}),d.jsxs("form",{onSubmit:Q,className:"space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"binding-platform",children:"Platform"}),d.jsx("select",{id:"binding-platform",value:X.platform,onChange:W=>K({...X,platform:W.target.value}),disabled:!!H,className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50",children:TT.map(W=>d.jsx("option",{value:W,children:W},W))})]}),Ee?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"binding-ext-id",children:"External User ID"}),d.jsx(wn,{id:"binding-ext-id",value:X.externalUserId,onChange:W=>K({...X,externalUserId:W.target.value}),placeholder:"ou_xxxxxxxx...",className:"font-mono",required:!0})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"binding-name",children:"Display Name (optional)"}),d.jsx(wn,{id:"binding-name",value:X.displayName,onChange:W=>K({...X,displayName:W.target.value})})]})]}):d.jsxs(d.Fragment,{children:[X.platform==="feishu"?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"space-y-2",children:[d.jsxs(Qt,{htmlFor:"feishu-app-id",children:["App ID",H?" — leave empty to keep existing":""]}),d.jsx(wn,{id:"feishu-app-id",value:X.feishuAppId,onChange:W=>K({...X,feishuAppId:W.target.value}),placeholder:"cli_xxxxxxxx",className:"font-mono",autoComplete:"off"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs(Qt,{htmlFor:"feishu-app-secret",children:["App Secret",H?" — leave empty to keep existing":""]}),d.jsx(wn,{id:"feishu-app-secret",type:"password",autoComplete:"new-password",value:X.feishuAppSecret,onChange:W=>K({...X,feishuAppSecret:W.target.value}),placeholder:"••••••••"})]})]}):d.jsxs("div",{className:"space-y-2",children:[d.jsxs(Qt,{htmlFor:"binding-creds",children:["Credentials (JSON)",H?" — leave empty to keep existing":""]}),d.jsx("textarea",{id:"binding-creds",value:X.credentialsJson,onChange:W=>K({...X,credentialsJson:W.target.value}),rows:4,className:"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm font-mono transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",placeholder:'{"bot_token": "xoxb-...", "signing_secret": "..."}'})]}),$&&d.jsx("p",{className:"text-sm text-destructive",children:$}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"binding-status",children:"Status"}),d.jsxs("select",{id:"binding-status",value:X.status,onChange:W=>K({...X,status:W.target.value}),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[d.jsx("option",{value:"active",children:"active"}),d.jsx("option",{value:"inactive",children:"inactive"})]})]})]}),ce instanceof Error&&d.jsx("div",{className:"text-sm text-destructive",children:ce.message}),d.jsx(go,{children:d.jsx(tt,{type:"submit",disabled:me,children:me?"Saving...":H?"Update":"Create"})})]})]})}),!Ee&&d.jsx(Fd,{open:S,onOpenChange:W=>{C(W),W||A(null)},children:d.jsxs(Oo,{children:[d.jsx(Jd,{children:d.jsx(Mo,{children:T?"Token Created":"Create Token"})}),T?d.jsxs("div",{className:"space-y-4",children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Copy this token now. It will not be shown again."}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(wn,{value:T,readOnly:!0,className:"font-mono text-xs"}),d.jsx(tt,{variant:"outline",size:"icon",onClick:()=>navigator.clipboard.writeText(T),children:d.jsx(i2,{className:"h-4 w-4"})})]}),d.jsx(go,{children:d.jsx(tt,{onClick:()=>C(!1),children:"Done"})})]}):d.jsxs("form",{onSubmit:le,className:"space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{children:"Name (optional)"}),d.jsx(wn,{value:M,onChange:W=>L(W.target.value),placeholder:"e.g. production"})]}),Ne.error instanceof Error&&d.jsx("div",{className:"text-sm text-destructive",children:Ne.error.message}),d.jsx(go,{children:d.jsx(tt,{type:"submit",disabled:Ne.isPending,children:Ne.isPending?"Creating...":"Create"})})]})]})})]})}const AT={success:"Connected",timeout:"Timed out",offline:"Offline",error:"Error"};function RT({result:l,onDismiss:a}){const r={success:"border-l-green-500",timeout:"border-l-yellow-500",offline:"border-l-gray-400",error:"border-l-red-500"}[l.status],s=l.status==="success"?"default":l.status==="timeout"?"secondary":"destructive";return d.jsx(An,{className:We("border-l-4",r),children:d.jsx(Rn,{className:"pt-4",children:d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{className:"space-y-1",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ot,{variant:s,children:AT[l.status]}),l.responseTime!=null&&d.jsxs("span",{className:"text-xs text-muted-foreground",children:[(l.responseTime/1e3).toFixed(1),"s"]})]}),l.message&&d.jsx("p",{className:"text-sm text-muted-foreground",children:l.message}),l.responseContent&&d.jsx("p",{className:"text-sm mt-2 whitespace-pre-wrap bg-muted rounded p-2 max-h-40 overflow-auto",children:l.responseContent})]}),d.jsx(tt,{variant:"ghost",size:"sm",onClick:a,children:"Dismiss"})]})})})}function Mg(l){if(l.platform==="feishu"){if(!l.feishuAppId&&!l.feishuAppSecret)return null;if(!l.feishuAppId||!l.feishuAppSecret)throw new Error("Both App ID and App Secret are required");return{app_id:l.feishuAppId,app_secret:l.feishuAppSecret}}const a=l.credentialsJson.trim();return a?JSON.parse(a):null}const OT=Object.values($C);function MT(){const l=ks(),a=br(),[r,s]=b.useState(),[o,f]=b.useState(""),{data:h,isLoading:m,error:v}=kt({queryKey:["agents",r],queryFn:()=>vT({limit:20,cursor:r})}),{data:y}=kt({queryKey:["sync-status"],queryFn:_T,refetchInterval:3e4}),x=Pt({mutationFn:ST,onSuccess:()=>{a.invalidateQueries({queryKey:["agents"]}),a.invalidateQueries({queryKey:["sync-status"]})}});return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Agents"}),d.jsxs("select",{value:o,onChange:S=>{f(S.target.value),s(void 0)},className:"h-8 rounded-md border border-input bg-transparent px-2 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[d.jsx("option",{value:"",children:"All types"}),OT.map(S=>d.jsx("option",{value:S,children:S},S))]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[(y==null?void 0:y.lastSync)&&d.jsxs("span",{className:"text-xs text-muted-foreground",children:["Last sync: ",Wt(y.lastSync.syncedAt)]}),d.jsxs(tt,{variant:"outline",size:"sm",onClick:()=>x.mutate(),disabled:x.isPending,children:[d.jsx(_2,{className:We("h-4 w-4 mr-2",x.isPending&&"animate-spin")}),x.isPending?"Syncing...":"Sync Now"]})]})]}),x.data&&d.jsxs("div",{className:"mb-4 rounded-md border bg-muted/50 p-3 text-sm",children:[d.jsx("span",{className:"font-medium",children:"Sync complete: "}),x.data.summary.created>0&&d.jsxs(ot,{variant:"default",className:"mr-1",children:["+",x.data.summary.created," created"]}),x.data.summary.updated>0&&d.jsxs(ot,{variant:"secondary",className:"mr-1",children:[x.data.summary.updated," updated"]}),x.data.summary.suspended>0&&d.jsxs(ot,{variant:"destructive",className:"mr-1",children:[x.data.summary.suspended," suspended"]}),x.data.summary.unchanged>0&&d.jsxs("span",{className:"text-muted-foreground mr-1",children:[x.data.summary.unchanged," unchanged"]}),x.data.summary.errors>0&&d.jsxs(ot,{variant:"destructive",children:[x.data.summary.errors," errors"]})]}),x.error instanceof Error&&d.jsx("div",{className:"mb-4 text-sm text-destructive",children:x.error.message}),d.jsx("div",{className:"border rounded-lg",children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(Qe,{children:[d.jsx(ge,{children:"ID"}),d.jsx(ge,{children:"Display Name"}),d.jsx(ge,{children:"Type"}),d.jsx(ge,{children:"Delegate"}),d.jsx(ge,{children:"Online"}),d.jsx(ge,{children:"Status"}),d.jsx(ge,{children:"Created"})]})}),d.jsx(Ma,{children:m?d.jsx(Qe,{children:d.jsx(oe,{colSpan:7,className:"text-center py-8 text-muted-foreground",children:"Loading..."})}):v?d.jsx(Qe,{children:d.jsxs(oe,{colSpan:7,className:"text-center py-8 text-destructive",children:["Failed to load agents: ",v instanceof Error?v.message:"Unknown error"]})}):(()=>{const S=o?h==null?void 0:h.items.filter(C=>C.type===o):h==null?void 0:h.items;return!S||S.length===0?d.jsx(Qe,{children:d.jsx(oe,{colSpan:7,className:"text-center py-8 text-muted-foreground",children:o?`No ${o} agents`:"No agents yet — click Sync Now to import from Context Tree"})}):S.map(C=>d.jsxs(Qe,{className:"cursor-pointer",onClick:()=>l(`/agents/${C.id}`),children:[d.jsx(oe,{className:"font-mono text-sm",children:C.id}),d.jsx(oe,{children:C.displayName??"—"}),d.jsx(oe,{children:d.jsx(ot,{variant:"secondary",children:C.type})}),d.jsx(oe,{className:"font-mono text-sm text-muted-foreground",children:C.delegateMention??"—"}),d.jsx(oe,{children:d.jsx("span",{className:We("inline-block h-2 w-2 rounded-full",C.presenceStatus==="online"?"bg-green-500":"bg-gray-300"),title:C.presenceStatus??"offline"})}),d.jsx(oe,{children:d.jsx(ot,{variant:C.status==="active"?"default":"destructive",children:C.status})}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(C.createdAt)})]},C.id))})()})]})}),(h==null?void 0:h.nextCursor)&&d.jsx("div",{className:"flex justify-end mt-4",children:d.jsx(tt,{variant:"outline",onClick:()=>s(h.nextCursor??void 0),children:"Next Page"})})]})}function DT(){const l=ks(),{data:a,isLoading:r}=kt({queryKey:["adapters"],queryFn:K0}),{data:s,isLoading:o}=kt({queryKey:["adapter-mappings"],queryFn:Y0}),{data:f}=kt({queryKey:["adapter-statuses"],queryFn:X0,refetchInterval:15e3}),h=r||o;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Platform Bindings"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Overview of all platform bindings. Manage bindings from each Agent's detail page."})]}),d.jsxs(An,{children:[d.jsx(Hn,{children:d.jsx(Qn,{children:"Bot Bindings"})}),d.jsx(Rn,{children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(Qe,{children:[d.jsx(ge,{children:"Agent"}),d.jsx(ge,{children:"Platform"}),d.jsx(ge,{children:"Status"}),d.jsx(ge,{children:"Connection"}),d.jsx(ge,{children:"Created"})]})}),d.jsx(Ma,{children:h?d.jsx(Qe,{children:d.jsx(oe,{colSpan:5,className:"text-center py-4 text-muted-foreground",children:"Loading..."})}):a!=null&&a.length?a.map(m=>{const v=f==null?void 0:f.find(y=>y.configId===m.id);return d.jsxs(Qe,{className:"cursor-pointer",onClick:()=>l(`/agents/${m.agentId}`),children:[d.jsx(oe,{className:"font-mono text-sm",children:m.agentId}),d.jsx(oe,{children:d.jsx(ot,{variant:"secondary",children:m.platform})}),d.jsx(oe,{children:d.jsx(ot,{variant:m.status==="active"?"default":"destructive",children:m.status})}),d.jsx(oe,{children:d.jsxs("span",{className:"flex items-center gap-1.5",children:[d.jsx("span",{className:We("inline-block h-2 w-2 rounded-full",v!=null&&v.connected?"bg-green-500":"bg-gray-300")}),d.jsx("span",{className:"text-xs text-muted-foreground",children:v!=null&&v.connected?"Online":"Offline"})]})}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(m.createdAt)})]},m.id)}):d.jsx(Qe,{children:d.jsx(oe,{colSpan:5,className:"text-center py-4 text-muted-foreground",children:"No bot bindings"})})})]})})]}),d.jsxs(An,{children:[d.jsx(Hn,{children:d.jsx(Qn,{children:"User Bindings"})}),d.jsx(Rn,{children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(Qe,{children:[d.jsx(ge,{children:"Agent"}),d.jsx(ge,{children:"Platform"}),d.jsx(ge,{children:"External User ID"}),d.jsx(ge,{children:"Display Name"}),d.jsx(ge,{children:"Bound Via"}),d.jsx(ge,{children:"Created"})]})}),d.jsx(Ma,{children:h?d.jsx(Qe,{children:d.jsx(oe,{colSpan:6,className:"text-center py-4 text-muted-foreground",children:"Loading..."})}):s!=null&&s.length?s.map(m=>d.jsxs(Qe,{className:"cursor-pointer",onClick:()=>l(`/agents/${m.agentId}`),children:[d.jsx(oe,{className:"font-mono text-sm",children:m.agentId}),d.jsx(oe,{children:d.jsx(ot,{variant:"secondary",children:m.platform})}),d.jsx(oe,{className:"font-mono text-sm",children:m.externalUserId}),d.jsx(oe,{children:m.displayName??"—"}),d.jsx(oe,{children:d.jsx(ot,{variant:"outline",children:m.boundVia??"—"})}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(m.createdAt)})]},m.id)):d.jsx(Qe,{children:d.jsx(oe,{colSpan:6,className:"text-center py-4 text-muted-foreground",children:"No user bindings"})})})]})})]})]})}function zT(l){const a=new URLSearchParams;a.set("limit",String(l.limit)),l!=null&&l.cursor&&a.set("cursor",l.cursor);const r=a.toString();return nt.get(`/admin/chats${r?`?${r}`:""}`)}function kT(l){return nt.get(`/admin/chats/${encodeURIComponent(l)}`)}function UT(l,a){const r=new URLSearchParams;r.set("limit",String(a.limit)),a!=null&&a.cursor&&r.set("cursor",a.cursor);const s=r.toString();return nt.get(`/admin/chats/${encodeURIComponent(l)}/messages${s?`?${s}`:""}`)}function LT(){const[l,a]=b.useState(),[r,s]=b.useState(null);return r?d.jsx(qT,{chatId:r,onBack:()=>s(null)}):d.jsx(BT,{cursor:l,setCursor:a,onSelect:s})}function BT({cursor:l,setCursor:a,onSelect:r}){const{data:s,isLoading:o,error:f}=kt({queryKey:["chats",l],queryFn:()=>zT({limit:20,cursor:l})});return d.jsxs("div",{children:[d.jsx("div",{className:"flex items-center justify-between mb-6",children:d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Chats"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Browse chat history (read-only)"})]})}),d.jsx("div",{className:"border rounded-lg",children:d.jsxs(Ra,{children:[d.jsx(Oa,{children:d.jsxs(Qe,{children:[d.jsx(ge,{children:"ID"}),d.jsx(ge,{children:"Type"}),d.jsx(ge,{children:"Topic"}),d.jsx(ge,{children:"Participants"}),d.jsx(ge,{children:"Lifecycle"}),d.jsx(ge,{children:"Created"})]})}),d.jsx(Ma,{children:o?d.jsx(Qe,{children:d.jsx(oe,{colSpan:6,className:"text-center py-8 text-muted-foreground",children:"Loading..."})}):f?d.jsx(Qe,{children:d.jsxs(oe,{colSpan:6,className:"text-center py-8 text-destructive",children:["Failed to load chats: ",f instanceof Error?f.message:"Unknown error"]})}):(s==null?void 0:s.items.length)===0?d.jsx(Qe,{children:d.jsx(oe,{colSpan:6,className:"text-center py-8 text-muted-foreground",children:"No chats"})}):s==null?void 0:s.items.map(h=>d.jsxs(Qe,{className:"cursor-pointer",onClick:()=>r(h.id),children:[d.jsx(oe,{className:"font-mono text-xs max-w-[200px] truncate",children:h.id}),d.jsx(oe,{children:d.jsx(ot,{variant:"secondary",children:h.type})}),d.jsx(oe,{children:h.topic??"—"}),d.jsx(oe,{children:h.participantCount}),d.jsx(oe,{className:"text-muted-foreground text-xs",children:h.lifecyclePolicy??"—"}),d.jsx(oe,{className:"text-muted-foreground",children:Wt(h.createdAt)})]},h.id))})]})}),(s==null?void 0:s.nextCursor)&&d.jsx("div",{className:"flex justify-end mt-4",children:d.jsx(tt,{variant:"outline",onClick:()=>a(s.nextCursor??void 0),children:"Next Page"})})]})}function qT({chatId:l,onBack:a}){const[r,s]=b.useState(),o=kt({queryKey:["chat",l],queryFn:()=>kT(l)}),f=kt({queryKey:["chat-messages",l,r],queryFn:()=>UT(l,{limit:50,cursor:r})}),h=o.data,m=f.data;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(tt,{variant:"ghost",size:"icon",onClick:a,children:d.jsx(Mb,{className:"h-4 w-4"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold",children:(h==null?void 0:h.topic)??"Chat"}),d.jsx("p",{className:"text-sm text-muted-foreground font-mono",children:l})]})]}),h&&d.jsxs(An,{children:[d.jsx(Hn,{children:d.jsx(Qn,{children:"Participants"})}),d.jsx(Rn,{children:d.jsx("div",{className:"flex flex-wrap gap-2",children:h.participants.map(v=>d.jsxs(ot,{variant:"outline",children:[v.agentId," (",v.role,")"]},v.agentId))})})]}),d.jsxs(An,{children:[d.jsx(Hn,{children:d.jsxs(Qn,{className:"flex items-center gap-2",children:[d.jsx(dh,{className:"h-4 w-4"}),"Messages"]})}),d.jsxs(Rn,{children:[f.isLoading?d.jsx("div",{className:"text-muted-foreground py-4 text-center",children:"Loading messages..."}):(m==null?void 0:m.items.length)===0?d.jsx("div",{className:"text-muted-foreground py-4 text-center",children:"No messages"}):d.jsx("div",{className:"space-y-3",children:m==null?void 0:m.items.map(v=>d.jsxs("div",{className:"border rounded-md p-3",children:[d.jsxs("div",{className:"flex items-center justify-between mb-1",children:[d.jsx("span",{className:"font-mono text-sm font-medium",children:v.senderId}),d.jsx("span",{className:"text-xs text-muted-foreground",children:Wt(v.createdAt)})]}),d.jsx("div",{className:"text-sm",children:v.format==="text"?d.jsx("p",{className:"whitespace-pre-wrap",children:typeof v.content=="string"?v.content:JSON.stringify(v.content)}):d.jsx("pre",{className:"text-xs bg-muted p-2 rounded overflow-auto max-h-40",children:JSON.stringify(v.content,null,2)})}),d.jsx("div",{className:"flex gap-2 mt-1",children:d.jsx(ot,{variant:"outline",className:"text-xs",children:v.format})})]},v.id))}),(m==null?void 0:m.nextCursor)&&d.jsx("div",{className:"flex justify-center mt-4",children:d.jsx(tt,{variant:"outline",size:"sm",onClick:()=>s(m.nextCursor??void 0),children:"Load More"})})]})]})]})}function HT(){const{isAuthenticated:l,login:a}=fh(),[r,s]=b.useState(""),[o,f]=b.useState(""),[h,m]=b.useState(null),[v,y]=b.useState(!1);if(l)return d.jsx(gb,{to:"/",replace:!0});const x=async S=>{S.preventDefault(),m(null),y(!0);try{await a(r,o)}catch(C){m(C instanceof Error?C.message:"Login failed")}finally{y(!1)}};return d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:d.jsxs(An,{className:"w-full max-w-sm",children:[d.jsxs(Hn,{className:"text-center",children:[d.jsx(Qn,{className:"text-2xl",children:"First Tree"}),d.jsx(F0,{children:"Sign in to admin console"})]}),d.jsx(Rn,{children:d.jsxs("form",{onSubmit:x,className:"space-y-4",children:[h&&d.jsx("div",{className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:h}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"username",children:"Username"}),d.jsx(wn,{id:"username",value:r,onChange:S=>s(S.target.value),required:!0,autoFocus:!0})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:"password",children:"Password"}),d.jsx(wn,{id:"password",type:"password",value:o,onChange:S=>f(S.target.value),required:!0})]}),d.jsx(tt,{type:"submit",className:"w-full",disabled:v,children:v?"Signing in...":"Sign in"})]})})]})})}function QT(){return nt.get("/admin/overview")}function ZT(){const{data:l,isLoading:a,error:r}=kt({queryKey:["overview"],queryFn:QT,refetchInterval:3e4}),s=[{label:"Total Agents",value:l==null?void 0:l.agents,icon:Db},{label:"Online Agents",value:l==null?void 0:l.onlineAgents,icon:x2},{label:"Total Chats",value:l==null?void 0:l.chats,icon:dh}];return d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold mb-6",children:"Overview"}),r&&d.jsxs("div",{className:"mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:["Failed to load overview: ",r instanceof Error?r.message:"Unknown error"]}),d.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:s.map(o=>d.jsxs(An,{children:[d.jsxs(Hn,{className:"flex flex-row items-center justify-between pb-2",children:[d.jsx(Qn,{className:"text-sm font-medium text-muted-foreground",children:o.label}),d.jsx(o.icon,{className:"h-4 w-4 text-muted-foreground"})]}),d.jsx(Rn,{children:d.jsx("div",{className:"text-3xl font-bold",children:a?"...":o.value??"—"})})]},o.label))})]})}function VT(){return nt.get("/admin/system/config")}function GT(l){return nt.patch("/admin/system/config",l)}const YT={[Aa.INBOX_TIMEOUT_SECONDS]:"Inbox Timeout (seconds)",[Aa.MAX_RETRY_COUNT]:"Max Retry Count",[Aa.POLLING_INTERVAL_SECONDS]:"Polling Interval (seconds)",[Aa.PRESENCE_CLEANUP_SECONDS]:"Presence Cleanup (seconds)"},Dg=Object.values(Aa);function XT(){const l=br(),{data:a,isLoading:r}=kt({queryKey:["system-config"],queryFn:VT}),[s,o]=b.useState({}),[f,h]=b.useState(!1);b.useEffect(()=>{if(!a)return;const y={};for(const x of Dg){const S=a[x]??hd[x]??"";y[x]=String(S)}o(y)},[a]);const m=Pt({mutationFn:()=>{const y={};for(const[x,S]of Object.entries(s)){const C=S.trim();if(C==="")y[x]=hd[x]??0;else{const M=Number(C);y[x]=Number.isNaN(M)?C:M}}return GT(y)},onSuccess:()=>{l.invalidateQueries({queryKey:["system-config"]}),h(!0),setTimeout(()=>h(!1),2e3)}}),v=y=>{y.preventDefault(),m.mutate()};return r?d.jsx("div",{className:"text-muted-foreground",children:"Loading..."}):d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold mb-6",children:"Settings"}),d.jsxs(An,{children:[d.jsx(Hn,{children:d.jsx(Qn,{children:"System Configuration"})}),d.jsx(Rn,{children:d.jsxs("form",{onSubmit:v,className:"space-y-4",children:[Dg.map(y=>d.jsxs("div",{className:"space-y-2",children:[d.jsx(Qt,{htmlFor:y,children:YT[y]??y}),d.jsx(wn,{id:y,value:s[y]??"",onChange:x=>o({...s,[y]:x.target.value})}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Default: ",String(hd[y]??"—")]})]},y)),m.error instanceof Error&&d.jsx("div",{className:"text-sm text-destructive",children:m.error.message}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(tt,{type:"submit",disabled:m.isPending,children:m.isPending?"Saving...":"Save Changes"}),f&&d.jsx("span",{className:"text-sm text-green-600",children:"Saved!"})]})]})})]})]})}const KT=new WS({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});function FT(){return d.jsx(e_,{client:KT,children:d.jsx(FE,{children:d.jsx(kE,{children:d.jsxs(fE,{children:[d.jsx(Bn,{path:"/login",element:d.jsx(HT,{})}),d.jsx(Bn,{element:d.jsx(JE,{}),children:d.jsxs(Bn,{element:d.jsx(xC,{}),children:[d.jsx(Bn,{index:!0,element:d.jsx(ZT,{})}),d.jsx(Bn,{path:"agents",element:d.jsx(MT,{})}),d.jsx(Bn,{path:"agents/:agentId",element:d.jsx(wT,{})}),d.jsx(Bn,{path:"bindings",element:d.jsx(DT,{})}),d.jsx(Bn,{path:"chats",element:d.jsx(LT,{})}),d.jsx(Bn,{path:"admin-users",element:d.jsx(fT,{})}),d.jsx(Bn,{path:"settings",element:d.jsx(XT,{})})]})})]})})})})}const J0=document.getElementById("root");if(!J0)throw new Error("Root element not found");wS.createRoot(J0).render(d.jsx(b.StrictMode,{children:d.jsx(FT,{})}));
|