@cloudnux/dev-console 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var Ka=e=>{throw TypeError(e)};var li=(e,t,n)=>t.has(e)||Ka("Cannot "+n);var y=(e,t,n)=>(li(e,t,"read from private field"),n?n.call(e):t.get(e)),$=(e,t,n)=>t.has(e)?Ka("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(li(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),A=(e,t,n)=>(li(e,t,"access private method"),n);var Ms=(e,t,n,r)=>({set _(s){M(e,t,s,n)},get _(){return y(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function wh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lc={exports:{}},Al={},Tc={exports:{}},z={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 Ss=Symbol.for("react.element"),jh=Symbol.for("react.portal"),Sh=Symbol.for("react.fragment"),kh=Symbol.for("react.strict_mode"),Nh=Symbol.for("react.profiler"),Ch=Symbol.for("react.provider"),Eh=Symbol.for("react.context"),bh=Symbol.for("react.forward_ref"),Ph=Symbol.for("react.suspense"),Rh=Symbol.for("react.memo"),Lh=Symbol.for("react.lazy"),Ga=Symbol.iterator;function Th(e){return e===null||typeof e!="object"?null:(e=Ga&&e[Ga]||e["@@iterator"],typeof e=="function"?e:null)}var _c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oc=Object.assign,Mc={};function kr(e,t,n){this.props=e,this.context=t,this.refs=Mc,this.updater=n||_c}kr.prototype.isReactComponent={};kr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fc(){}Fc.prototype=kr.prototype;function Wo(e,t,n){this.props=e,this.context=t,this.refs=Mc,this.updater=n||_c}var Vo=Wo.prototype=new Fc;Vo.constructor=Wo;Oc(Vo,kr.prototype);Vo.isPureReactComponent=!0;var Ja=Array.isArray,Dc=Object.prototype.hasOwnProperty,qo={current:null},Ic={key:!0,ref:!0,__self:!0,__source:!0};function $c(e,t,n){var r,s={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Dc.call(t,r)&&!Ic.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Ss,type:e,key:l,ref:o,props:s,_owner:qo.current}}function _h(e,t){return{$$typeof:Ss,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ko(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ss}function Oh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ya=/\/+/g;function ii(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Oh(""+e.key):t.toString(36)}function el(e,t,n,r,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ss:case jh:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+ii(o,0):r,Ja(s)?(n="",e!=null&&(n=e.replace(Ya,"$&/")+"/"),el(s,t,n,"",function(c){return c})):s!=null&&(Ko(s)&&(s=_h(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Ya,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Ja(e))for(var a=0;a<e.length;a++){l=e[a];var u=r+ii(l,a);o+=el(l,t,n,u,s)}else if(u=Th(e),typeof u=="function")for(e=u.call(e),a=0;!(l=e.next()).done;)l=l.value,u=r+ii(l,a++),o+=el(l,t,n,u,s);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Fs(e,t,n){if(e==null)return e;var r=[],s=0;return el(e,r,"","",function(l){return t.call(n,l,s++)}),r}function Mh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ce={current:null},tl={transition:null},Fh={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:tl,ReactCurrentOwner:qo};function zc(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:Fs,forEach:function(e,t,n){Fs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fs(e,function(){t++}),t},toArray:function(e){return Fs(e,function(t){return t})||[]},only:function(e){if(!Ko(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=kr;z.Fragment=Sh;z.Profiler=Nh;z.PureComponent=Wo;z.StrictMode=kh;z.Suspense=Ph;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fh;z.act=zc;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Oc({},e.props),s=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=qo.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Dc.call(t,u)&&!Ic.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ss,type:e.type,key:s,ref:l,props:r,_owner:o}};z.createContext=function(e){return e={$$typeof:Eh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ch,_context:e},e.Consumer=e};z.createElement=$c;z.createFactory=function(e){var t=$c.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:bh,render:e}};z.isValidElement=Ko;z.lazy=function(e){return{$$typeof:Lh,_payload:{_status:-1,_result:e},_init:Mh}};z.memo=function(e,t){return{$$typeof:Rh,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=tl.transition;tl.transition={};try{e()}finally{tl.transition=t}};z.unstable_act=zc;z.useCallback=function(e,t){return Ce.current.useCallback(e,t)};z.useContext=function(e){return Ce.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Ce.current.useDeferredValue(e)};z.useEffect=function(e,t){return Ce.current.useEffect(e,t)};z.useId=function(){return Ce.current.useId()};z.useImperativeHandle=function(e,t,n){return Ce.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Ce.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Ce.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Ce.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Ce.current.useReducer(e,t,n)};z.useRef=function(e){return Ce.current.useRef(e)};z.useState=function(e){return Ce.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Ce.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Ce.current.useTransition()};z.version="18.3.1";Tc.exports=z;var j=Tc.exports;const Dh=wh(j);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 Ih=j,$h=Symbol.for("react.element"),zh=Symbol.for("react.fragment"),Ah=Object.prototype.hasOwnProperty,Uh=Ih.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qh={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,s={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Ah.call(t,r)&&!Qh.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:$h,type:e,key:l,ref:o,props:s,_owner:Uh.current}}Al.Fragment=zh;Al.jsx=Ac;Al.jsxs=Ac;Lc.exports=Al;var i=Lc.exports,Mi={},Uc={exports:{}},Ue={},Qc={exports:{}},Bc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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
|
+
*/(function(e){function t(L,D){var C=L.length;L.push(D);e:for(;0<C;){var I=C-1>>>1,Q=L[I];if(0<s(Q,D))L[I]=D,L[C]=Q,C=I;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var D=L[0],C=L.pop();if(C!==D){L[0]=C;e:for(var I=0,Q=L.length,me=Q>>>1;I<me;){var Pe=2*(I+1)-1,Pr=L[Pe],hn=Pe+1,Os=L[hn];if(0>s(Pr,C))hn<Q&&0>s(Os,Pr)?(L[I]=Os,L[hn]=C,I=hn):(L[I]=Pr,L[Pe]=C,I=Pe);else if(hn<Q&&0>s(Os,C))L[I]=Os,L[hn]=C,I=hn;else break e}}return D}function s(L,D){var C=L.sortIndex-D.sortIndex;return C!==0?C:L.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],h=1,d=null,g=3,v=!1,w=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(L){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=L)r(c),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(c)}}function x(L){if(S=!1,m(L),!w)if(n(u)!==null)w=!0,F(E);else{var D=n(c);D!==null&&we(x,D.startTime-L)}}function E(L,D){w=!1,S&&(S=!1,p(P),P=-1),v=!0;var C=g;try{for(m(D),d=n(u);d!==null&&(!(d.expirationTime>D)||L&&!V());){var I=d.callback;if(typeof I=="function"){d.callback=null,g=d.priorityLevel;var Q=I(d.expirationTime<=D);D=e.unstable_now(),typeof Q=="function"?d.callback=Q:d===n(u)&&r(u),m(D)}else r(u);d=n(u)}if(d!==null)var me=!0;else{var Pe=n(c);Pe!==null&&we(x,Pe.startTime-D),me=!1}return me}finally{d=null,g=C,v=!1}}var N=!1,R=null,P=-1,_=5,T=-1;function V(){return!(e.unstable_now()-T<_)}function le(){if(R!==null){var L=e.unstable_now();T=L;var D=!0;try{D=R(!0,L)}finally{D?be():(N=!1,R=null)}}else N=!1}var be;if(typeof f=="function")be=function(){f(le)};else if(typeof MessageChannel<"u"){var In=new MessageChannel,Ot=In.port2;In.port1.onmessage=le,be=function(){Ot.postMessage(null)}}else be=function(){k(le,0)};function F(L){R=L,N||(N=!0,be())}function we(L,D){P=k(function(){L(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,F(E))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(L){switch(g){case 1:case 2:case 3:var D=3;break;default:D=g}var C=g;g=D;try{return L()}finally{g=C}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,D){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var C=g;g=L;try{return D()}finally{g=C}},e.unstable_scheduleCallback=function(L,D,C){var I=e.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?I+C:I):C=I,L){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=C+Q,L={id:h++,callback:D,priorityLevel:L,startTime:C,expirationTime:Q,sortIndex:-1},C>I?(L.sortIndex=C,t(c,L),n(u)===null&&L===n(c)&&(S?(p(P),P=-1):S=!0,we(x,C-I))):(L.sortIndex=Q,t(u,L),w||v||(w=!0,F(E))),L},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(L){var D=g;return function(){var C=g;g=D;try{return L.apply(this,arguments)}finally{g=C}}}})(Bc);Qc.exports=Bc;var Bh=Qc.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 Hh=j,Ae=Bh;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var Hc=new Set,Xr={};function Fn(e,t){gr(e,t),gr(e+"Capture",t)}function gr(e,t){for(Xr[e]=t,e=0;e<t.length;e++)Hc.add(t[e])}var Et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fi=Object.prototype.hasOwnProperty,Wh=/^[: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]*$/,Xa={},Za={};function Vh(e){return Fi.call(Za,e)?!0:Fi.call(Xa,e)?!1:Wh.test(e)?Za[e]=!0:(Xa[e]=!0,!1)}function qh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Kh(e,t,n,r){if(t===null||typeof t>"u"||qh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,s,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var Go=/[\-:]([a-z])/g;function Jo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Go,Jo);pe[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Go,Jo);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Go,Jo);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yo(e,t,n,r){var s=pe.hasOwnProperty(t)?pe[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Kh(t,n,s,r)&&(n=null),r||s===null?Vh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tt=Hh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ds=Symbol.for("react.element"),zn=Symbol.for("react.portal"),An=Symbol.for("react.fragment"),Xo=Symbol.for("react.strict_mode"),Di=Symbol.for("react.profiler"),Wc=Symbol.for("react.provider"),Vc=Symbol.for("react.context"),Zo=Symbol.for("react.forward_ref"),Ii=Symbol.for("react.suspense"),$i=Symbol.for("react.suspense_list"),ea=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),qc=Symbol.for("react.offscreen"),eu=Symbol.iterator;function Rr(e){return e===null||typeof e!="object"?null:(e=eu&&e[eu]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,oi;function $r(e){if(oi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oi=t&&t[1]||""}return`
|
|
34
|
+
`+oi+e}var ai=!1;function ui(e,t){if(!e||ai)return"";ai=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),o=s.length-1,a=l.length-1;1<=o&&0<=a&&s[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==l[a]){var u=`
|
|
37
|
+
`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{ai=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$r(e):""}function Gh(e){switch(e.tag){case 5:return $r(e.type);case 16:return $r("Lazy");case 13:return $r("Suspense");case 19:return $r("SuspenseList");case 0:case 2:case 15:return e=ui(e.type,!1),e;case 11:return e=ui(e.type.render,!1),e;case 1:return e=ui(e.type,!0),e;default:return""}}function zi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case An:return"Fragment";case zn:return"Portal";case Di:return"Profiler";case Xo:return"StrictMode";case Ii:return"Suspense";case $i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vc:return(e.displayName||"Context")+".Consumer";case Wc:return(e._context.displayName||"Context")+".Provider";case Zo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ea:return t=e.displayName||null,t!==null?t:zi(e.type)||"Memo";case It:t=e._payload,e=e._init;try{return zi(e(t))}catch{}}return null}function Jh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zi(t);case 8:return t===Xo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yh(e){var t=Kc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Is(e){e._valueTracker||(e._valueTracker=Yh(e))}function Gc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pl(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}}function Ai(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jc(e,t){t=t.checked,t!=null&&Yo(e,"checked",t,!1)}function Ui(e,t){Jc(e,t);var n=ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qi(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qi(e,t,n){(t!=="number"||pl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function Yn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ln(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Bi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(b(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ru(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(b(92));if(zr(n)){if(1<n.length)throw Error(b(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ln(n)}}function Yc(e,t){var n=ln(t.value),r=ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function su(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Hi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $s,Zc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($s=$s||document.createElement("div"),$s.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$s.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xh=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){Xh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function ed(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function td(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=ed(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Zh=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wi(e,t){if(t){if(Zh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Vi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 qi=null;function ta(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ki=null,Xn=null,Zn=null;function lu(e){if(e=Cs(e)){if(typeof Ki!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Wl(t),Ki(e.stateNode,e.type,t))}}function nd(e){Xn?Zn?Zn.push(e):Zn=[e]:Xn=e}function rd(){if(Xn){var e=Xn,t=Zn;if(Zn=Xn=null,lu(e),t)for(e=0;e<t.length;e++)lu(t[e])}}function sd(e,t){return e(t)}function ld(){}var ci=!1;function id(e,t,n){if(ci)return e(t,n);ci=!0;try{return sd(e,t,n)}finally{ci=!1,(Xn!==null||Zn!==null)&&(ld(),rd())}}function es(e,t){var n=e.stateNode;if(n===null)return null;var r=Wl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(b(231,t,typeof n));return n}var Gi=!1;if(Et)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){Gi=!0}}),window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{Gi=!1}function ep(e,t,n,r,s,l,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(h){this.onError(h)}}var Hr=!1,ml=null,gl=!1,Ji=null,tp={onError:function(e){Hr=!0,ml=e}};function np(e,t,n,r,s,l,o,a,u){Hr=!1,ml=null,ep.apply(tp,arguments)}function rp(e,t,n,r,s,l,o,a,u){if(np.apply(this,arguments),Hr){if(Hr){var c=ml;Hr=!1,ml=null}else throw Error(b(198));gl||(gl=!0,Ji=c)}}function Dn(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 od(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 iu(e){if(Dn(e)!==e)throw Error(b(188))}function sp(e){var t=e.alternate;if(!t){if(t=Dn(e),t===null)throw Error(b(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var l=s.alternate;if(l===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===n)return iu(s),e;if(l===r)return iu(s),t;l=l.sibling}throw Error(b(188))}if(n.return!==r.return)n=s,r=l;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o)throw Error(b(189))}}if(n.alternate!==r)throw Error(b(190))}if(n.tag!==3)throw Error(b(188));return n.stateNode.current===n?e:t}function ad(e){return e=sp(e),e!==null?ud(e):null}function ud(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ud(e);if(t!==null)return t;e=e.sibling}return null}var cd=Ae.unstable_scheduleCallback,ou=Ae.unstable_cancelCallback,lp=Ae.unstable_shouldYield,ip=Ae.unstable_requestPaint,re=Ae.unstable_now,op=Ae.unstable_getCurrentPriorityLevel,na=Ae.unstable_ImmediatePriority,dd=Ae.unstable_UserBlockingPriority,yl=Ae.unstable_NormalPriority,ap=Ae.unstable_LowPriority,fd=Ae.unstable_IdlePriority,Ul=null,ht=null;function up(e){if(ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Ul,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:fp,cp=Math.log,dp=Math.LN2;function fp(e){return e>>>=0,e===0?32:31-(cp(e)/dp|0)|0}var zs=64,As=4194304;function Ar(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ar(a):(l&=o,l!==0&&(r=Ar(l)))}else o=n&~s,o!==0?r=Ar(o):l!==0&&(r=Ar(l));if(r===0)return 0;if(t!==0&&t!==r&&(t&s)===0&&(s=r&-r,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),s=1<<n,r|=e[n],t&=~s;return r}function hp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-rt(l),a=1<<o,u=s[o];u===-1?((a&n)===0||(a&r)!==0)&&(s[o]=hp(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function Yi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hd(){var e=zs;return zs<<=1,(zs&4194240)===0&&(zs=64),e}function di(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ks(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function mp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-rt(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function ra(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var W=0;function pd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var md,sa,gd,yd,xd,Xi=!1,Us=[],Jt=null,Yt=null,Xt=null,ts=new Map,ns=new Map,zt=[],gp="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 submit".split(" ");function au(e,t){switch(e){case"focusin":case"focusout":Jt=null;break;case"dragenter":case"dragleave":Yt=null;break;case"mouseover":case"mouseout":Xt=null;break;case"pointerover":case"pointerout":ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function Tr(e,t,n,r,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[s]},t!==null&&(t=Cs(t),t!==null&&sa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function yp(e,t,n,r,s){switch(t){case"focusin":return Jt=Tr(Jt,e,t,n,r,s),!0;case"dragenter":return Yt=Tr(Yt,e,t,n,r,s),!0;case"mouseover":return Xt=Tr(Xt,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return ts.set(l,Tr(ts.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,ns.set(l,Tr(ns.get(l)||null,e,t,n,r,s)),!0}return!1}function vd(e){var t=gn(e.target);if(t!==null){var n=Dn(t);if(n!==null){if(t=n.tag,t===13){if(t=od(n),t!==null){e.blockedOn=t,xd(e.priority,function(){gd(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 nl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qi=r,n.target.dispatchEvent(r),qi=null}else return t=Cs(n),t!==null&&sa(t),e.blockedOn=n,!1;t.shift()}return!0}function uu(e,t,n){nl(e)&&n.delete(t)}function xp(){Xi=!1,Jt!==null&&nl(Jt)&&(Jt=null),Yt!==null&&nl(Yt)&&(Yt=null),Xt!==null&&nl(Xt)&&(Xt=null),ts.forEach(uu),ns.forEach(uu)}function _r(e,t){e.blockedOn===t&&(e.blockedOn=null,Xi||(Xi=!0,Ae.unstable_scheduleCallback(Ae.unstable_NormalPriority,xp)))}function rs(e){function t(s){return _r(s,e)}if(0<Us.length){_r(Us[0],e);for(var n=1;n<Us.length;n++){var r=Us[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Jt!==null&&_r(Jt,e),Yt!==null&&_r(Yt,e),Xt!==null&&_r(Xt,e),ts.forEach(t),ns.forEach(t),n=0;n<zt.length;n++)r=zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&(n=zt[0],n.blockedOn===null);)vd(n),n.blockedOn===null&&zt.shift()}var er=Tt.ReactCurrentBatchConfig,vl=!0;function vp(e,t,n,r){var s=W,l=er.transition;er.transition=null;try{W=1,la(e,t,n,r)}finally{W=s,er.transition=l}}function wp(e,t,n,r){var s=W,l=er.transition;er.transition=null;try{W=4,la(e,t,n,r)}finally{W=s,er.transition=l}}function la(e,t,n,r){if(vl){var s=Zi(e,t,n,r);if(s===null)ji(e,t,r,wl,n),au(e,r);else if(yp(s,e,t,n,r))r.stopPropagation();else if(au(e,r),t&4&&-1<gp.indexOf(e)){for(;s!==null;){var l=Cs(s);if(l!==null&&md(l),l=Zi(e,t,n,r),l===null&&ji(e,t,r,wl,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else ji(e,t,r,null,n)}}var wl=null;function Zi(e,t,n,r){if(wl=null,e=ta(r),e=gn(e),e!==null)if(t=Dn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=od(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 wl=e,null}function wd(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(op()){case na:return 1;case dd:return 4;case yl:case ap:return 16;case fd:return 536870912;default:return 16}default:return 16}}var Kt=null,ia=null,rl=null;function jd(){if(rl)return rl;var e,t=ia,n=t.length,r,s="value"in Kt?Kt.value:Kt.textContent,l=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[l-r];r++);return rl=s.slice(e,1<r?1-r:void 0)}function sl(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 Qs(){return!0}function cu(){return!1}function Qe(e){function t(n,r,s,l,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Qs:cu,this.isPropagationStopped=cu,this}return ee(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=Qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qs)},persist:function(){},isPersistent:Qs}),t}var Nr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oa=Qe(Nr),Ns=ee({},Nr,{view:0,detail:0}),jp=Qe(Ns),fi,hi,Or,Ql=ee({},Ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:aa,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"?(fi=e.screenX-Or.screenX,hi=e.screenY-Or.screenY):hi=fi=0,Or=e),fi)},movementY:function(e){return"movementY"in e?e.movementY:hi}}),du=Qe(Ql),Sp=ee({},Ql,{dataTransfer:0}),kp=Qe(Sp),Np=ee({},Ns,{relatedTarget:0}),pi=Qe(Np),Cp=ee({},Nr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ep=Qe(Cp),bp=ee({},Nr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Pp=Qe(bp),Rp=ee({},Nr,{data:0}),fu=Qe(Rp),Lp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tp={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"},_p={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Op(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_p[e])?!!t[e]:!1}function aa(){return Op}var Mp=ee({},Ns,{key:function(e){if(e.key){var t=Lp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:aa,charCode:function(e){return e.type==="keypress"?sl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fp=Qe(Mp),Dp=ee({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hu=Qe(Dp),Ip=ee({},Ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:aa}),$p=Qe(Ip),zp=ee({},Nr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ap=Qe(zp),Up=ee({},Ql,{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}),Qp=Qe(Up),Bp=[9,13,27,32],ua=Et&&"CompositionEvent"in window,Wr=null;Et&&"documentMode"in document&&(Wr=document.documentMode);var Hp=Et&&"TextEvent"in window&&!Wr,Sd=Et&&(!ua||Wr&&8<Wr&&11>=Wr),pu=" ",mu=!1;function kd(e,t){switch(e){case"keyup":return Bp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function Wp(e,t){switch(e){case"compositionend":return Nd(t);case"keypress":return t.which!==32?null:(mu=!0,pu);case"textInput":return e=t.data,e===pu&&mu?null:e;default:return null}}function Vp(e,t){if(Un)return e==="compositionend"||!ua&&kd(e,t)?(e=jd(),rl=ia=Kt=null,Un=!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 Sd&&t.locale!=="ko"?null:t.data;default:return null}}var qp={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 gu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qp[e.type]:t==="textarea"}function Cd(e,t,n,r){nd(r),t=jl(t,"onChange"),0<t.length&&(n=new oa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vr=null,ss=null;function Kp(e){Dd(e,0)}function Bl(e){var t=Hn(e);if(Gc(t))return e}function Gp(e,t){if(e==="change")return t}var Ed=!1;if(Et){var mi;if(Et){var gi="oninput"in document;if(!gi){var yu=document.createElement("div");yu.setAttribute("oninput","return;"),gi=typeof yu.oninput=="function"}mi=gi}else mi=!1;Ed=mi&&(!document.documentMode||9<document.documentMode)}function xu(){Vr&&(Vr.detachEvent("onpropertychange",bd),ss=Vr=null)}function bd(e){if(e.propertyName==="value"&&Bl(ss)){var t=[];Cd(t,ss,e,ta(e)),id(Kp,t)}}function Jp(e,t,n){e==="focusin"?(xu(),Vr=t,ss=n,Vr.attachEvent("onpropertychange",bd)):e==="focusout"&&xu()}function Yp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bl(ss)}function Xp(e,t){if(e==="click")return Bl(t)}function Zp(e,t){if(e==="input"||e==="change")return Bl(t)}function em(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lt=typeof Object.is=="function"?Object.is:em;function ls(e,t){if(lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Fi.call(t,s)||!lt(e[s],t[s]))return!1}return!0}function vu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wu(e,t){var n=vu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vu(n)}}function Pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rd(){for(var e=window,t=pl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pl(e.document)}return t}function ca(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")}function tm(e){var t=Rd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pd(n.ownerDocument.documentElement,n)){if(r!==null&&ca(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,l=Math.min(r.start,s);r=r.end===void 0?l:Math.min(r.end,s),!e.extend&&l>r&&(s=r,r=l,l=s),s=wu(n,l);var o=wu(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var nm=Et&&"documentMode"in document&&11>=document.documentMode,Qn=null,eo=null,qr=null,to=!1;function ju(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;to||Qn==null||Qn!==pl(r)||(r=Qn,"selectionStart"in r&&ca(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qr&&ls(qr,r)||(qr=r,r=jl(eo,"onSelect"),0<r.length&&(t=new oa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qn)))}function Bs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Bn={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionend:Bs("Transition","TransitionEnd")},yi={},Ld={};Et&&(Ld=document.createElement("div").style,"AnimationEvent"in window||(delete Bn.animationend.animation,delete Bn.animationiteration.animation,delete Bn.animationstart.animation),"TransitionEvent"in window||delete Bn.transitionend.transition);function Hl(e){if(yi[e])return yi[e];if(!Bn[e])return e;var t=Bn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ld)return yi[e]=t[n];return e}var Td=Hl("animationend"),_d=Hl("animationiteration"),Od=Hl("animationstart"),Md=Hl("transitionend"),Fd=new Map,Su="abort auxClick 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(" ");function an(e,t){Fd.set(e,t),Fn(t,[e])}for(var xi=0;xi<Su.length;xi++){var vi=Su[xi],rm=vi.toLowerCase(),sm=vi[0].toUpperCase()+vi.slice(1);an(rm,"on"+sm)}an(Td,"onAnimationEnd");an(_d,"onAnimationIteration");an(Od,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(Md,"onTransitionEnd");gr("onMouseEnter",["mouseout","mouseover"]);gr("onMouseLeave",["mouseout","mouseover"]);gr("onPointerEnter",["pointerout","pointerover"]);gr("onPointerLeave",["pointerout","pointerover"]);Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="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(" "),lm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ur));function ku(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,rp(r,t,void 0,e),e.currentTarget=null}function Dd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==l&&s.isPropagationStopped())break e;ku(s,a,c),l=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,c=a.currentTarget,a=a.listener,u!==l&&s.isPropagationStopped())break e;ku(s,a,c),l=u}}}if(gl)throw e=Ji,gl=!1,Ji=null,e}function K(e,t){var n=t[io];n===void 0&&(n=t[io]=new Set);var r=e+"__bubble";n.has(r)||(Id(t,e,2,!1),n.add(r))}function wi(e,t,n){var r=0;t&&(r|=4),Id(n,e,r,t)}var Hs="_reactListening"+Math.random().toString(36).slice(2);function is(e){if(!e[Hs]){e[Hs]=!0,Hc.forEach(function(n){n!=="selectionchange"&&(lm.has(n)||wi(n,!1,e),wi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hs]||(t[Hs]=!0,wi("selectionchange",!1,t))}}function Id(e,t,n,r){switch(wd(t)){case 1:var s=vp;break;case 4:s=wp;break;default:s=la}n=s.bind(null,t,n,e),s=void 0,!Gi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ji(e,t,n,r,s){var l=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;o=o.return}for(;a!==null;){if(o=gn(a),o===null)return;if(u=o.tag,u===5||u===6){r=l=o;continue e}a=a.parentNode}}r=r.return}id(function(){var c=l,h=ta(n),d=[];e:{var g=Fd.get(e);if(g!==void 0){var v=oa,w=e;switch(e){case"keypress":if(sl(n)===0)break e;case"keydown":case"keyup":v=Fp;break;case"focusin":w="focus",v=pi;break;case"focusout":w="blur",v=pi;break;case"beforeblur":case"afterblur":v=pi;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":v=du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=kp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=$p;break;case Td:case _d:case Od:v=Ep;break;case Md:v=Ap;break;case"scroll":v=jp;break;case"wheel":v=Qp;break;case"copy":case"cut":case"paste":v=Pp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=hu}var S=(t&4)!==0,k=!S&&e==="scroll",p=S?g!==null?g+"Capture":null:g;S=[];for(var f=c,m;f!==null;){m=f;var x=m.stateNode;if(m.tag===5&&x!==null&&(m=x,p!==null&&(x=es(f,p),x!=null&&S.push(os(f,x,m)))),k)break;f=f.return}0<S.length&&(g=new v(g,w,null,n,h),d.push({event:g,listeners:S}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",g&&n!==qi&&(w=n.relatedTarget||n.fromElement)&&(gn(w)||w[bt]))break e;if((v||g)&&(g=h.window===h?h:(g=h.ownerDocument)?g.defaultView||g.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=c,w=w?gn(w):null,w!==null&&(k=Dn(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=c),v!==w)){if(S=du,x="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(S=hu,x="onPointerLeave",p="onPointerEnter",f="pointer"),k=v==null?g:Hn(v),m=w==null?g:Hn(w),g=new S(x,f+"leave",v,n,h),g.target=k,g.relatedTarget=m,x=null,gn(h)===c&&(S=new S(p,f+"enter",w,n,h),S.target=m,S.relatedTarget=k,x=S),k=x,v&&w)t:{for(S=v,p=w,f=0,m=S;m;m=$n(m))f++;for(m=0,x=p;x;x=$n(x))m++;for(;0<f-m;)S=$n(S),f--;for(;0<m-f;)p=$n(p),m--;for(;f--;){if(S===p||p!==null&&S===p.alternate)break t;S=$n(S),p=$n(p)}S=null}else S=null;v!==null&&Nu(d,g,v,S,!1),w!==null&&k!==null&&Nu(d,k,w,S,!0)}}e:{if(g=c?Hn(c):window,v=g.nodeName&&g.nodeName.toLowerCase(),v==="select"||v==="input"&&g.type==="file")var E=Gp;else if(gu(g))if(Ed)E=Zp;else{E=Yp;var N=Jp}else(v=g.nodeName)&&v.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(E=Xp);if(E&&(E=E(e,c))){Cd(d,E,n,h);break e}N&&N(e,g,c),e==="focusout"&&(N=g._wrapperState)&&N.controlled&&g.type==="number"&&Qi(g,"number",g.value)}switch(N=c?Hn(c):window,e){case"focusin":(gu(N)||N.contentEditable==="true")&&(Qn=N,eo=c,qr=null);break;case"focusout":qr=eo=Qn=null;break;case"mousedown":to=!0;break;case"contextmenu":case"mouseup":case"dragend":to=!1,ju(d,n,h);break;case"selectionchange":if(nm)break;case"keydown":case"keyup":ju(d,n,h)}var R;if(ua)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Un?kd(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Sd&&n.locale!=="ko"&&(Un||P!=="onCompositionStart"?P==="onCompositionEnd"&&Un&&(R=jd()):(Kt=h,ia="value"in Kt?Kt.value:Kt.textContent,Un=!0)),N=jl(c,P),0<N.length&&(P=new fu(P,e,null,n,h),d.push({event:P,listeners:N}),R?P.data=R:(R=Nd(n),R!==null&&(P.data=R)))),(R=Hp?Wp(e,n):Vp(e,n))&&(c=jl(c,"onBeforeInput"),0<c.length&&(h=new fu("onBeforeInput","beforeinput",null,n,h),d.push({event:h,listeners:c}),h.data=R))}Dd(d,t)})}function os(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=es(e,n),l!=null&&r.unshift(os(e,l,s)),l=es(e,t),l!=null&&r.push(os(e,l,s))),e=e.return}return r}function $n(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nu(e,t,n,r,s){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,s?(u=es(n,l),u!=null&&o.unshift(os(n,u,a))):s||(u=es(n,l),u!=null&&o.push(os(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var im=/\r\n?/g,om=/\u0000|\uFFFD/g;function Cu(e){return(typeof e=="string"?e:""+e).replace(im,`
|
|
38
|
+
`).replace(om,"")}function Ws(e,t,n){if(t=Cu(t),Cu(e)!==t&&n)throw Error(b(425))}function Sl(){}var no=null,ro=null;function so(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var lo=typeof setTimeout=="function"?setTimeout:void 0,am=typeof clearTimeout=="function"?clearTimeout:void 0,Eu=typeof Promise=="function"?Promise:void 0,um=typeof queueMicrotask=="function"?queueMicrotask:typeof Eu<"u"?function(e){return Eu.resolve(null).then(e).catch(cm)}:lo;function cm(e){setTimeout(function(){throw e})}function Si(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),rs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);rs(t)}function Zt(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==="$?")break;if(t==="/$")return null}}return e}function bu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),ft="__reactFiber$"+Cr,as="__reactProps$"+Cr,bt="__reactContainer$"+Cr,io="__reactEvents$"+Cr,dm="__reactListeners$"+Cr,fm="__reactHandles$"+Cr;function gn(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bt]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bu(e);e!==null;){if(n=e[ft])return n;e=bu(e)}return t}e=n,n=e.parentNode}return null}function Cs(e){return e=e[ft]||e[bt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function Wl(e){return e[as]||null}var oo=[],Wn=-1;function un(e){return{current:e}}function G(e){0>Wn||(e.current=oo[Wn],oo[Wn]=null,Wn--)}function q(e,t){Wn++,oo[Wn]=e.current,e.current=t}var on={},ve=un(on),Me=un(!1),Rn=on;function yr(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in n)s[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Fe(e){return e=e.childContextTypes,e!=null}function kl(){G(Me),G(ve)}function Pu(e,t,n){if(ve.current!==on)throw Error(b(168));q(ve,t),q(Me,n)}function $d(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(b(108,Jh(e)||"Unknown",s));return ee({},n,r)}function Nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Rn=ve.current,q(ve,e),q(Me,Me.current),!0}function Ru(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=$d(e,t,Rn),r.__reactInternalMemoizedMergedChildContext=e,G(Me),G(ve),q(ve,e)):G(Me),q(Me,n)}var vt=null,Vl=!1,ki=!1;function zd(e){vt===null?vt=[e]:vt.push(e)}function hm(e){Vl=!0,zd(e)}function cn(){if(!ki&&vt!==null){ki=!0;var e=0,t=W;try{var n=vt;for(W=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vt=null,Vl=!1}catch(s){throw vt!==null&&(vt=vt.slice(e+1)),cd(na,cn),s}finally{W=t,ki=!1}}return null}var Vn=[],qn=0,Cl=null,El=0,We=[],Ve=0,Ln=null,St=1,kt="";function pn(e,t){Vn[qn++]=El,Vn[qn++]=Cl,Cl=e,El=t}function Ad(e,t,n){We[Ve++]=St,We[Ve++]=kt,We[Ve++]=Ln,Ln=e;var r=St;e=kt;var s=32-rt(r)-1;r&=~(1<<s),n+=1;var l=32-rt(t)+s;if(30<l){var o=s-s%5;l=(r&(1<<o)-1).toString(32),r>>=o,s-=o,St=1<<32-rt(t)+s|n<<s|r,kt=l+e}else St=1<<l|n<<s|r,kt=e}function da(e){e.return!==null&&(pn(e,1),Ad(e,1,0))}function fa(e){for(;e===Cl;)Cl=Vn[--qn],Vn[qn]=null,El=Vn[--qn],Vn[qn]=null;for(;e===Ln;)Ln=We[--Ve],We[Ve]=null,kt=We[--Ve],We[Ve]=null,St=We[--Ve],We[Ve]=null}var ze=null,$e=null,J=!1,nt=null;function Ud(e,t){var n=qe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Lu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ze=e,$e=Zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ze=e,$e=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ln!==null?{id:St,overflow:kt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ze=e,$e=null,!0):!1;default:return!1}}function ao(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uo(e){if(J){var t=$e;if(t){var n=t;if(!Lu(e,t)){if(ao(e))throw Error(b(418));t=Zt(n.nextSibling);var r=ze;t&&Lu(e,t)?Ud(r,n):(e.flags=e.flags&-4097|2,J=!1,ze=e)}}else{if(ao(e))throw Error(b(418));e.flags=e.flags&-4097|2,J=!1,ze=e}}}function Tu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ze=e}function Vs(e){if(e!==ze)return!1;if(!J)return Tu(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!so(e.type,e.memoizedProps)),t&&(t=$e)){if(ao(e))throw Qd(),Error(b(418));for(;t;)Ud(e,t),t=Zt(t.nextSibling)}if(Tu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){$e=Zt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}$e=null}}else $e=ze?Zt(e.stateNode.nextSibling):null;return!0}function Qd(){for(var e=$e;e;)e=Zt(e.nextSibling)}function xr(){$e=ze=null,J=!1}function ha(e){nt===null?nt=[e]:nt.push(e)}var pm=Tt.ReactCurrentBatchConfig;function Mr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(b(309));var r=n.stateNode}if(!r)throw Error(b(147,e));var s=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=s.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(b(284));if(!n._owner)throw Error(b(290,e))}return e}function qs(e,t){throw e=Object.prototype.toString.call(t),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _u(e){var t=e._init;return t(e._payload)}function Bd(e){function t(p,f){if(e){var m=p.deletions;m===null?(p.deletions=[f],p.flags|=16):m.push(f)}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function s(p,f){return p=rn(p,f),p.index=0,p.sibling=null,p}function l(p,f,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<f?(p.flags|=2,f):m):(p.flags|=2,f)):(p.flags|=1048576,f)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,f,m,x){return f===null||f.tag!==6?(f=Li(m,p.mode,x),f.return=p,f):(f=s(f,m),f.return=p,f)}function u(p,f,m,x){var E=m.type;return E===An?h(p,f,m.props.children,x,m.key):f!==null&&(f.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===It&&_u(E)===f.type)?(x=s(f,m.props),x.ref=Mr(p,f,m),x.return=p,x):(x=dl(m.type,m.key,m.props,null,p.mode,x),x.ref=Mr(p,f,m),x.return=p,x)}function c(p,f,m,x){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=Ti(m,p.mode,x),f.return=p,f):(f=s(f,m.children||[]),f.return=p,f)}function h(p,f,m,x,E){return f===null||f.tag!==7?(f=Pn(m,p.mode,x,E),f.return=p,f):(f=s(f,m),f.return=p,f)}function d(p,f,m){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Li(""+f,p.mode,m),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Ds:return m=dl(f.type,f.key,f.props,null,p.mode,m),m.ref=Mr(p,null,f),m.return=p,m;case zn:return f=Ti(f,p.mode,m),f.return=p,f;case It:var x=f._init;return d(p,x(f._payload),m)}if(zr(f)||Rr(f))return f=Pn(f,p.mode,m,null),f.return=p,f;qs(p,f)}return null}function g(p,f,m,x){var E=f!==null?f.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return E!==null?null:a(p,f,""+m,x);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ds:return m.key===E?u(p,f,m,x):null;case zn:return m.key===E?c(p,f,m,x):null;case It:return E=m._init,g(p,f,E(m._payload),x)}if(zr(m)||Rr(m))return E!==null?null:h(p,f,m,x,null);qs(p,m)}return null}function v(p,f,m,x,E){if(typeof x=="string"&&x!==""||typeof x=="number")return p=p.get(m)||null,a(f,p,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ds:return p=p.get(x.key===null?m:x.key)||null,u(f,p,x,E);case zn:return p=p.get(x.key===null?m:x.key)||null,c(f,p,x,E);case It:var N=x._init;return v(p,f,m,N(x._payload),E)}if(zr(x)||Rr(x))return p=p.get(m)||null,h(f,p,x,E,null);qs(f,x)}return null}function w(p,f,m,x){for(var E=null,N=null,R=f,P=f=0,_=null;R!==null&&P<m.length;P++){R.index>P?(_=R,R=null):_=R.sibling;var T=g(p,R,m[P],x);if(T===null){R===null&&(R=_);break}e&&R&&T.alternate===null&&t(p,R),f=l(T,f,P),N===null?E=T:N.sibling=T,N=T,R=_}if(P===m.length)return n(p,R),J&&pn(p,P),E;if(R===null){for(;P<m.length;P++)R=d(p,m[P],x),R!==null&&(f=l(R,f,P),N===null?E=R:N.sibling=R,N=R);return J&&pn(p,P),E}for(R=r(p,R);P<m.length;P++)_=v(R,p,P,m[P],x),_!==null&&(e&&_.alternate!==null&&R.delete(_.key===null?P:_.key),f=l(_,f,P),N===null?E=_:N.sibling=_,N=_);return e&&R.forEach(function(V){return t(p,V)}),J&&pn(p,P),E}function S(p,f,m,x){var E=Rr(m);if(typeof E!="function")throw Error(b(150));if(m=E.call(m),m==null)throw Error(b(151));for(var N=E=null,R=f,P=f=0,_=null,T=m.next();R!==null&&!T.done;P++,T=m.next()){R.index>P?(_=R,R=null):_=R.sibling;var V=g(p,R,T.value,x);if(V===null){R===null&&(R=_);break}e&&R&&V.alternate===null&&t(p,R),f=l(V,f,P),N===null?E=V:N.sibling=V,N=V,R=_}if(T.done)return n(p,R),J&&pn(p,P),E;if(R===null){for(;!T.done;P++,T=m.next())T=d(p,T.value,x),T!==null&&(f=l(T,f,P),N===null?E=T:N.sibling=T,N=T);return J&&pn(p,P),E}for(R=r(p,R);!T.done;P++,T=m.next())T=v(R,p,P,T.value,x),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?P:T.key),f=l(T,f,P),N===null?E=T:N.sibling=T,N=T);return e&&R.forEach(function(le){return t(p,le)}),J&&pn(p,P),E}function k(p,f,m,x){if(typeof m=="object"&&m!==null&&m.type===An&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ds:e:{for(var E=m.key,N=f;N!==null;){if(N.key===E){if(E=m.type,E===An){if(N.tag===7){n(p,N.sibling),f=s(N,m.props.children),f.return=p,p=f;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===It&&_u(E)===N.type){n(p,N.sibling),f=s(N,m.props),f.ref=Mr(p,N,m),f.return=p,p=f;break e}n(p,N);break}else t(p,N);N=N.sibling}m.type===An?(f=Pn(m.props.children,p.mode,x,m.key),f.return=p,p=f):(x=dl(m.type,m.key,m.props,null,p.mode,x),x.ref=Mr(p,f,m),x.return=p,p=x)}return o(p);case zn:e:{for(N=m.key;f!==null;){if(f.key===N)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(p,f.sibling),f=s(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=Ti(m,p.mode,x),f.return=p,p=f}return o(p);case It:return N=m._init,k(p,f,N(m._payload),x)}if(zr(m))return w(p,f,m,x);if(Rr(m))return S(p,f,m,x);qs(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(p,f.sibling),f=s(f,m),f.return=p,p=f):(n(p,f),f=Li(m,p.mode,x),f.return=p,p=f),o(p)):n(p,f)}return k}var vr=Bd(!0),Hd=Bd(!1),bl=un(null),Pl=null,Kn=null,pa=null;function ma(){pa=Kn=Pl=null}function ga(e){var t=bl.current;G(bl),e._currentValue=t}function co(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function tr(e,t){Pl=e,pa=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Oe=!0),e.firstContext=null)}function Ge(e){var t=e._currentValue;if(pa!==e)if(e={context:e,memoizedValue:t,next:null},Kn===null){if(Pl===null)throw Error(b(308));Kn=e,Pl.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return t}var yn=null;function ya(e){yn===null?yn=[e]:yn.push(e)}function Wd(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,ya(t)):(n.next=s.next,s.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $t=!1;function xa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function en(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(B&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Pt(e,n)}return s=r.interleaved,s===null?(t.next=t,ya(r)):(t.next=s.next,s.next=t),r.interleaved=t,Pt(e,n)}function ll(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ra(e,n)}}function Ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?s=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?s=l=t:l=l.next=t}else s=l=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Rl(e,t,n,r){var s=e.updateQueue;$t=!1;var l=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?l=c:o.next=c,o=u;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==o&&(a===null?h.firstBaseUpdate=c:a.next=c,h.lastBaseUpdate=u))}if(l!==null){var d=s.baseState;o=0,h=c=u=null,a=l;do{var g=a.lane,v=a.eventTime;if((r&g)===g){h!==null&&(h=h.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,S=a;switch(g=t,v=n,S.tag){case 1:if(w=S.payload,typeof w=="function"){d=w.call(v,d,g);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,g=typeof w=="function"?w.call(v,d,g):w,g==null)break e;d=ee({},d,g);break e;case 2:$t=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[a]:g.push(a))}else v={eventTime:v,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(c=h=v,u=d):h=h.next=v,o|=g;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;g=a,a=g.next,g.next=null,s.lastBaseUpdate=g,s.shared.pending=null}}while(!0);if(h===null&&(u=d),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=h,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);_n|=o,e.lanes=o,e.memoizedState=d}}function Mu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(b(191,s));s.call(r)}}}var Es={},pt=un(Es),us=un(Es),cs=un(Es);function xn(e){if(e===Es)throw Error(b(174));return e}function va(e,t){switch(q(cs,t),q(us,e),q(pt,Es),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hi(t,e)}G(pt),q(pt,t)}function wr(){G(pt),G(us),G(cs)}function qd(e){xn(cs.current);var t=xn(pt.current),n=Hi(t,e.type);t!==n&&(q(us,e),q(pt,n))}function wa(e){us.current===e&&(G(pt),G(us))}var Y=un(0);function Ll(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Ni=[];function ja(){for(var e=0;e<Ni.length;e++)Ni[e]._workInProgressVersionPrimary=null;Ni.length=0}var il=Tt.ReactCurrentDispatcher,Ci=Tt.ReactCurrentBatchConfig,Tn=0,X=null,ie=null,ue=null,Tl=!1,Kr=!1,ds=0,mm=0;function ge(){throw Error(b(321))}function Sa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lt(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,s,l){if(Tn=l,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,il.current=e===null||e.memoizedState===null?vm:wm,e=n(r,s),Kr){l=0;do{if(Kr=!1,ds=0,25<=l)throw Error(b(301));l+=1,ue=ie=null,t.updateQueue=null,il.current=jm,e=n(r,s)}while(Kr)}if(il.current=_l,t=ie!==null&&ie.next!==null,Tn=0,ue=ie=X=null,Tl=!1,t)throw Error(b(300));return e}function Na(){var e=ds!==0;return ds=0,e}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?X.memoizedState=ue=e:ue=ue.next=e,ue}function Je(){if(ie===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=ue===null?X.memoizedState:ue.next;if(t!==null)ue=t,ie=e;else{if(e===null)throw Error(b(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},ue===null?X.memoizedState=ue=e:ue=ue.next=e}return ue}function fs(e,t){return typeof t=="function"?t(e):t}function Ei(e){var t=Je(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=ie,s=r.baseQueue,l=n.pending;if(l!==null){if(s!==null){var o=s.next;s.next=l.next,l.next=o}r.baseQueue=s=l,n.pending=null}if(s!==null){l=s.next,r=r.baseState;var a=o=null,u=null,c=l;do{var h=c.lane;if((Tn&h)===h)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=d,o=r):u=u.next=d,X.lanes|=h,_n|=h}c=c.next}while(c!==null&&c!==l);u===null?o=r:u.next=a,lt(r,t.memoizedState)||(Oe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do l=s.lane,X.lanes|=l,_n|=l,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bi(e){var t=Je(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,l=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do l=e(l,o.action),o=o.next;while(o!==s);lt(l,t.memoizedState)||(Oe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Kd(){}function Gd(e,t){var n=X,r=Je(),s=t(),l=!lt(r.memoizedState,s);if(l&&(r.memoizedState=s,Oe=!0),r=r.queue,Ca(Xd.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,hs(9,Yd.bind(null,n,r,s,t),void 0,null),ce===null)throw Error(b(349));(Tn&30)!==0||Jd(n,t,s)}return s}function Jd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yd(e,t,n,r){t.value=n,t.getSnapshot=r,Zd(t)&&ef(e)}function Xd(e,t,n){return n(function(){Zd(t)&&ef(e)})}function Zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lt(e,n)}catch{return!0}}function ef(e){var t=Pt(e,1);t!==null&&st(t,e,1,-1)}function Fu(e){var t=at();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:e},t.queue=e,e=e.dispatch=xm.bind(null,X,e),[t.memoizedState,e]}function hs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function tf(){return Je().memoizedState}function ol(e,t,n,r){var s=at();X.flags|=e,s.memoizedState=hs(1|t,n,void 0,r===void 0?null:r)}function ql(e,t,n,r){var s=Je();r=r===void 0?null:r;var l=void 0;if(ie!==null){var o=ie.memoizedState;if(l=o.destroy,r!==null&&Sa(r,o.deps)){s.memoizedState=hs(t,n,l,r);return}}X.flags|=e,s.memoizedState=hs(1|t,n,l,r)}function Du(e,t){return ol(8390656,8,e,t)}function Ca(e,t){return ql(2048,8,e,t)}function nf(e,t){return ql(4,2,e,t)}function rf(e,t){return ql(4,4,e,t)}function sf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lf(e,t,n){return n=n!=null?n.concat([e]):null,ql(4,4,sf.bind(null,t,e),n)}function Ea(){}function of(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function af(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function uf(e,t,n){return(Tn&21)===0?(e.baseState&&(e.baseState=!1,Oe=!0),e.memoizedState=n):(lt(n,t)||(n=hd(),X.lanes|=n,_n|=n,e.baseState=!0),t)}function gm(e,t){var n=W;W=n!==0&&4>n?n:4,e(!0);var r=Ci.transition;Ci.transition={};try{e(!1),t()}finally{W=n,Ci.transition=r}}function cf(){return Je().memoizedState}function ym(e,t,n){var r=nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},df(e))ff(t,n);else if(n=Wd(e,t,n,r),n!==null){var s=Ne();st(n,e,r,s),hf(n,t,r)}}function xm(e,t,n){var r=nn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(df(e))ff(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(s.hasEagerState=!0,s.eagerState=a,lt(a,o)){var u=t.interleaved;u===null?(s.next=s,ya(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Wd(e,t,s,r),n!==null&&(s=Ne(),st(n,e,r,s),hf(n,t,r))}}function df(e){var t=e.alternate;return e===X||t!==null&&t===X}function ff(e,t){Kr=Tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hf(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ra(e,n)}}var _l={readContext:Ge,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},vm={readContext:Ge,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:Du,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ol(4194308,4,sf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return ol(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ym.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:Fu,useDebugValue:Ea,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=Fu(!1),t=e[0];return e=gm.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,s=at();if(J){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ce===null)throw Error(b(349));(Tn&30)!==0||Jd(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,Du(Xd.bind(null,r,l,e),[e]),r.flags|=2048,hs(9,Yd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=at(),t=ce.identifierPrefix;if(J){var n=kt,r=St;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=mm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},wm={readContext:Ge,useCallback:of,useContext:Ge,useEffect:Ca,useImperativeHandle:lf,useInsertionEffect:nf,useLayoutEffect:rf,useMemo:af,useReducer:Ei,useRef:tf,useState:function(){return Ei(fs)},useDebugValue:Ea,useDeferredValue:function(e){var t=Je();return uf(t,ie.memoizedState,e)},useTransition:function(){var e=Ei(fs)[0],t=Je().memoizedState;return[e,t]},useMutableSource:Kd,useSyncExternalStore:Gd,useId:cf,unstable_isNewReconciler:!1},jm={readContext:Ge,useCallback:of,useContext:Ge,useEffect:Ca,useImperativeHandle:lf,useInsertionEffect:nf,useLayoutEffect:rf,useMemo:af,useReducer:bi,useRef:tf,useState:function(){return bi(fs)},useDebugValue:Ea,useDeferredValue:function(e){var t=Je();return ie===null?t.memoizedState=e:uf(t,ie.memoizedState,e)},useTransition:function(){var e=bi(fs)[0],t=Je().memoizedState;return[e,t]},useMutableSource:Kd,useSyncExternalStore:Gd,useId:cf,unstable_isNewReconciler:!1};function Xe(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function fo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kl={isMounted:function(e){return(e=e._reactInternals)?Dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ne(),s=nn(e),l=Nt(r,s);l.payload=t,n!=null&&(l.callback=n),t=en(e,l,s),t!==null&&(st(t,e,s,r),ll(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ne(),s=nn(e),l=Nt(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=en(e,l,s),t!==null&&(st(t,e,s,r),ll(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ne(),r=nn(e),s=Nt(n,r);s.tag=2,t!=null&&(s.callback=t),t=en(e,s,r),t!==null&&(st(t,e,r,n),ll(t,e,r))}};function Iu(e,t,n,r,s,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!ls(n,r)||!ls(s,l):!0}function pf(e,t,n){var r=!1,s=on,l=t.contextType;return typeof l=="object"&&l!==null?l=Ge(l):(s=Fe(t)?Rn:ve.current,r=t.contextTypes,l=(r=r!=null)?yr(e,s):on),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function $u(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kl.enqueueReplaceState(t,t.state,null)}function ho(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},xa(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=Ge(l):(l=Fe(t)?Rn:ve.current,s.context=yr(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(fo(e,t,l,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Kl.enqueueReplaceState(s,s.state,null),Rl(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function jr(e,t){try{var n="",r=t;do n+=Gh(r),r=r.return;while(r);var s=n}catch(l){s=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:s,digest:null}}function Pi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function po(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Sm=typeof WeakMap=="function"?WeakMap:Map;function mf(e,t,n){n=Nt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ml||(Ml=!0,No=r),po(e,t)},n}function gf(e,t,n){n=Nt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){po(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){po(e,t),typeof r!="function"&&(tn===null?tn=new Set([this]):tn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Sm;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Dm.bind(null,e,t,n),t.then(e,e))}function Au(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Uu(e,t,n,r,s){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nt(-1,1),t.tag=2,en(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=s,e)}var km=Tt.ReactCurrentOwner,Oe=!1;function ke(e,t,n,r){t.child=e===null?Hd(t,null,n,r):vr(t,e.child,n,r)}function Qu(e,t,n,r,s){n=n.render;var l=t.ref;return tr(t,s),r=ka(e,t,n,r,l,s),n=Na(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(J&&n&&da(t),t.flags|=1,ke(e,t,r,s),t.child)}function Bu(e,t,n,r,s){if(e===null){var l=n.type;return typeof l=="function"&&!Ma(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,yf(e,t,l,r,s)):(e=dl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,(e.lanes&s)===0){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:ls,n(o,r)&&e.ref===t.ref)return Rt(e,t,s)}return t.flags|=1,e=rn(l,r),e.ref=t.ref,e.return=t,t.child=e}function yf(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(ls(l,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=l,(e.lanes&s)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,Rt(e,t,s)}return mo(e,t,n,r,s)}function xf(e,t,n){var r=t.pendingProps,s=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(Jn,Ie),Ie|=n;else{if((n&1073741824)===0)return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,q(Jn,Ie),Ie|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,q(Jn,Ie),Ie|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,q(Jn,Ie),Ie|=r;return ke(e,t,s,n),t.child}function vf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mo(e,t,n,r,s){var l=Fe(n)?Rn:ve.current;return l=yr(t,l),tr(t,s),n=ka(e,t,n,r,l,s),r=Na(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(J&&r&&da(t),t.flags|=1,ke(e,t,n,s),t.child)}function Hu(e,t,n,r,s){if(Fe(n)){var l=!0;Nl(t)}else l=!1;if(tr(t,s),t.stateNode===null)al(e,t),pf(t,n,r),ho(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ge(c):(c=Fe(n)?Rn:ve.current,c=yr(t,c));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&$u(t,o,r,c),$t=!1;var g=t.memoizedState;o.state=g,Rl(t,r,o,s),u=t.memoizedState,a!==r||g!==u||Me.current||$t?(typeof h=="function"&&(fo(t,n,h,r),u=t.memoizedState),(a=$t||Iu(t,n,a,r,g,u,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Vd(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Xe(t.type,a),o.props=c,d=t.pendingProps,g=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ge(u):(u=Fe(n)?Rn:ve.current,u=yr(t,u));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||g!==u)&&$u(t,o,r,u),$t=!1,g=t.memoizedState,o.state=g,Rl(t,r,o,s);var w=t.memoizedState;a!==d||g!==w||Me.current||$t?(typeof v=="function"&&(fo(t,n,v,r),w=t.memoizedState),(c=$t||Iu(t,n,c,r,g,w,u)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return go(e,t,n,r,l,s)}function go(e,t,n,r,s,l){vf(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Ru(t,n,!1),Rt(e,t,l);r=t.stateNode,km.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vr(t,e.child,null,l),t.child=vr(t,null,a,l)):ke(e,t,a,l),t.memoizedState=r.state,s&&Ru(t,n,!0),t.child}function wf(e){var t=e.stateNode;t.pendingContext?Pu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Pu(e,t.context,!1),va(e,t.containerInfo)}function Wu(e,t,n,r,s){return xr(),ha(s),t.flags|=256,ke(e,t,n,r),t.child}var yo={dehydrated:null,treeContext:null,retryLane:0};function xo(e){return{baseLanes:e,cachePool:null,transitions:null}}function jf(e,t,n){var r=t.pendingProps,s=Y.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),q(Y,s&1),e===null)return uo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},(r&1)===0&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Yl(o,r,0,null),e=Pn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=xo(n),t.memoizedState=yo,e):ba(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Nm(e,t,o,r,a,s,n);if(l){l=r.fallback,o=t.mode,s=e.child,a=s.sibling;var u={mode:"hidden",children:r.children};return(o&1)===0&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=rn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?l=rn(a,l):(l=Pn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?xo(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=yo,r}return l=e.child,e=l.sibling,r=rn(l,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ba(e,t){return t=Yl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ks(e,t,n,r){return r!==null&&ha(r),vr(t,e.child,null,n),e=ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nm(e,t,n,r,s,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Pi(Error(b(422))),Ks(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=Yl({mode:"visible",children:r.children},s,0,null),l=Pn(l,s,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,(t.mode&1)!==0&&vr(t,e.child,null,o),t.child.memoizedState=xo(o),t.memoizedState=yo,l);if((t.mode&1)===0)return Ks(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(b(419)),r=Pi(l,r,void 0),Ks(e,t,o,r)}if(a=(o&e.childLanes)!==0,Oe||a){if(r=ce,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=(s&(r.suspendedLanes|o))!==0?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,Pt(e,s),st(r,e,s,-1))}return Oa(),r=Pi(Error(b(421))),Ks(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Im.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,$e=Zt(s.nextSibling),ze=t,J=!0,nt=null,e!==null&&(We[Ve++]=St,We[Ve++]=kt,We[Ve++]=Ln,St=e.id,kt=e.overflow,Ln=t),t=ba(t,r.children),t.flags|=4096,t)}function Vu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),co(e.return,t,n)}function Ri(e,t,n,r,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=s)}function Sf(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(ke(e,t,r.children,n),r=Y.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vu(e,n,t);else if(e.tag===19)Vu(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}r&=1}if(q(Y,r),(t.mode&1)===0)t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Ll(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ri(t,!1,s,n,l);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ll(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ri(t,!0,n,null,l);break;case"together":Ri(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function al(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_n|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,n=rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cm(e,t,n){switch(t.tag){case 3:wf(t),xr();break;case 5:qd(t);break;case 1:Fe(t.type)&&Nl(t);break;case 4:va(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;q(bl,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(q(Y,Y.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?jf(e,t,n):(q(Y,Y.current&1),e=Rt(e,t,n),e!==null?e.sibling:null);q(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Sf(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),q(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,xf(e,t,n)}return Rt(e,t,n)}var kf,vo,Nf,Cf;kf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};vo=function(){};Nf=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,xn(pt.current);var l=null;switch(n){case"input":s=Ai(e,s),r=Ai(e,r),l=[];break;case"select":s=ee({},s,{value:void 0}),r=ee({},r,{value:void 0}),l=[];break;case"textarea":s=Bi(e,s),r=Bi(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Sl)}Wi(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Xr.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(l||(l=[]),l.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Xr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&K("scroll",e),l||a===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};Cf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fr(e,t){if(!J)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Em(e,t,n){var r=t.pendingProps;switch(fa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(t),null;case 1:return Fe(t.type)&&kl(),ye(t),null;case 3:return r=t.stateNode,wr(),G(Me),G(ve),ja(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Vs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nt!==null&&(bo(nt),nt=null))),vo(e,t),ye(t),null;case 5:wa(t);var s=xn(cs.current);if(n=t.type,e!==null&&t.stateNode!=null)Nf(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return ye(t),null}if(e=xn(pt.current),Vs(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ft]=t,r[as]=l,e=(t.mode&1)!==0,n){case"dialog":K("cancel",r),K("close",r);break;case"iframe":case"object":case"embed":K("load",r);break;case"video":case"audio":for(s=0;s<Ur.length;s++)K(Ur[s],r);break;case"source":K("error",r);break;case"img":case"image":case"link":K("error",r),K("load",r);break;case"details":K("toggle",r);break;case"input":tu(r,l),K("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},K("invalid",r);break;case"textarea":ru(r,l),K("invalid",r)}Wi(n,l),s=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&Ws(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&Ws(r.textContent,a,e),s=["children",""+a]):Xr.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&K("scroll",r)}switch(n){case"input":Is(r),nu(r,l,!0);break;case"textarea":Is(r),su(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Sl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ft]=t,e[as]=r,kf(e,t,!1,!1),t.stateNode=e;e:{switch(o=Vi(n,r),n){case"dialog":K("cancel",e),K("close",e),s=r;break;case"iframe":case"object":case"embed":K("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ur.length;s++)K(Ur[s],e);s=r;break;case"source":K("error",e),s=r;break;case"img":case"image":case"link":K("error",e),K("load",e),s=r;break;case"details":K("toggle",e),s=r;break;case"input":tu(e,r),s=Ai(e,r),K("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ee({},r,{value:void 0}),K("invalid",e);break;case"textarea":ru(e,r),s=Bi(e,r),K("invalid",e);break;default:s=r}Wi(n,s),a=s;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?td(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Zc(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Zr(e,u):typeof u=="number"&&Zr(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Xr.hasOwnProperty(l)?u!=null&&l==="onScroll"&&K("scroll",e):u!=null&&Yo(e,l,u,o))}switch(n){case"input":Is(e),nu(e,r,!1);break;case"textarea":Is(e),su(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ln(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Yn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Yn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Sl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ye(t),null;case 6:if(e&&t.stateNode!=null)Cf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(b(166));if(n=xn(cs.current),xn(pt.current),Vs(t)){if(r=t.stateNode,n=t.memoizedProps,r[ft]=t,(l=r.nodeValue!==n)&&(e=ze,e!==null))switch(e.tag){case 3:Ws(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ws(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ft]=t,t.stateNode=r}return ye(t),null;case 13:if(G(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&$e!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Qd(),xr(),t.flags|=98560,l=!1;else if(l=Vs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(b(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(b(317));l[ft]=t}else xr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ye(t),l=!1}else nt!==null&&(bo(nt),nt=null),l=!0;if(!l)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Y.current&1)!==0?oe===0&&(oe=3):Oa())),t.updateQueue!==null&&(t.flags|=4),ye(t),null);case 4:return wr(),vo(e,t),e===null&&is(t.stateNode.containerInfo),ye(t),null;case 10:return ga(t.type._context),ye(t),null;case 17:return Fe(t.type)&&kl(),ye(t),null;case 19:if(G(Y),l=t.memoizedState,l===null)return ye(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Fr(l,!1);else{if(oe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Ll(e),o!==null){for(t.flags|=128,Fr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(Y,Y.current&1|2),t.child}e=e.sibling}l.tail!==null&&re()>Sr&&(t.flags|=128,r=!0,Fr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ll(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!J)return ye(t),null}else 2*re()-l.renderingStartTime>Sr&&n!==1073741824&&(t.flags|=128,r=!0,Fr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=re(),t.sibling=null,n=Y.current,q(Y,r?n&1|2:n&1),t):(ye(t),null);case 22:case 23:return _a(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Ie&1073741824)!==0&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function bm(e,t){switch(fa(t),t.tag){case 1:return Fe(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),G(Me),G(ve),ja(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wa(t),null;case 13:if(G(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Y),null;case 4:return wr(),null;case 10:return ga(t.type._context),null;case 22:case 23:return _a(),null;case 24:return null;default:return null}}var Gs=!1,xe=!1,Pm=typeof WeakSet=="function"?WeakSet:Set,O=null;function Gn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function wo(e,t,n){try{n()}catch(r){ne(e,t,r)}}var qu=!1;function Rm(e,t){if(no=vl,e=Rd(),ca(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,h=0,d=e,g=null;t:for(;;){for(var v;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==l||r!==0&&d.nodeType!==3||(u=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(v=d.firstChild)!==null;)g=d,d=v;for(;;){if(d===e)break t;if(g===n&&++c===s&&(a=o),g===l&&++h===r&&(u=o),(v=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=v}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ro={focusedElem:e,selectionRange:n},vl=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,k=w.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xe(t.type,S),k);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(x){ne(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return w=qu,qu=!1,w}function Gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&wo(t,n,l)}s=s.next}while(s!==r)}}function Gl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ef(e){var t=e.alternate;t!==null&&(e.alternate=null,Ef(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ft],delete t[as],delete t[io],delete t[dm],delete t[fm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bf(e){return e.tag===5||e.tag===3||e.tag===4}function Ku(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(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.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 So(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sl));else if(r!==4&&(e=e.child,e!==null))for(So(e,t,n),e=e.sibling;e!==null;)So(e,t,n),e=e.sibling}function ko(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ko(e,t,n),e=e.sibling;e!==null;)ko(e,t,n),e=e.sibling}var de=null,tt=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Pf(e,t,n),n=n.sibling}function Pf(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Ul,n)}catch{}switch(n.tag){case 5:xe||Gn(n,t);case 6:var r=de,s=tt;de=null,Mt(e,t,n),de=r,tt=s,de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?Si(e.parentNode,n):e.nodeType===1&&Si(e,n),rs(e)):Si(de,n.stateNode));break;case 4:r=de,s=tt,de=n.stateNode.containerInfo,tt=!0,Mt(e,t,n),de=r,tt=s;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var l=s,o=l.destroy;l=l.tag,o!==void 0&&((l&2)!==0||(l&4)!==0)&&wo(n,t,o),s=s.next}while(s!==r)}Mt(e,t,n);break;case 1:if(!xe&&(Gn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ne(n,t,a)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,Mt(e,t,n),xe=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Gu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pm),t.forEach(function(r){var s=$m.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:de=a.stateNode,tt=!1;break e;case 3:de=a.stateNode.containerInfo,tt=!0;break e;case 4:de=a.stateNode.containerInfo,tt=!0;break e}a=a.return}if(de===null)throw Error(b(160));Pf(l,o,s),de=null,tt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){ne(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rf(t,e),t=t.sibling}function Rf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ye(t,e),ot(e),r&4){try{Gr(3,e,e.return),Gl(3,e)}catch(S){ne(e,e.return,S)}try{Gr(5,e,e.return)}catch(S){ne(e,e.return,S)}}break;case 1:Ye(t,e),ot(e),r&512&&n!==null&&Gn(n,n.return);break;case 5:if(Ye(t,e),ot(e),r&512&&n!==null&&Gn(n,n.return),e.flags&32){var s=e.stateNode;try{Zr(s,"")}catch(S){ne(e,e.return,S)}}if(r&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&Jc(s,l),Vi(a,o);var c=Vi(a,l);for(o=0;o<u.length;o+=2){var h=u[o],d=u[o+1];h==="style"?td(s,d):h==="dangerouslySetInnerHTML"?Zc(s,d):h==="children"?Zr(s,d):Yo(s,h,d,c)}switch(a){case"input":Ui(s,l);break;case"textarea":Yc(s,l);break;case"select":var g=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?Yn(s,!!l.multiple,v,!1):g!==!!l.multiple&&(l.defaultValue!=null?Yn(s,!!l.multiple,l.defaultValue,!0):Yn(s,!!l.multiple,l.multiple?[]:"",!1))}s[as]=l}catch(S){ne(e,e.return,S)}}break;case 6:if(Ye(t,e),ot(e),r&4){if(e.stateNode===null)throw Error(b(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(S){ne(e,e.return,S)}}break;case 3:if(Ye(t,e),ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rs(t.containerInfo)}catch(S){ne(e,e.return,S)}break;case 4:Ye(t,e),ot(e);break;case 13:Ye(t,e),ot(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(La=re())),r&4&&Gu(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(xe=(c=xe)||h,Ye(t,e),xe=c):Ye(t,e),ot(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&(e.mode&1)!==0)for(O=e,h=e.child;h!==null;){for(d=O=h;O!==null;){switch(g=O,v=g.child,g.tag){case 0:case 11:case 14:case 15:Gr(4,g,g.return);break;case 1:Gn(g,g.return);var w=g.stateNode;if(typeof w.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(S){ne(r,n,S)}}break;case 5:Gn(g,g.return);break;case 22:if(g.memoizedState!==null){Yu(d);continue}}v!==null?(v.return=g,O=v):Yu(d)}h=h.sibling}e:for(h=null,d=e;;){if(d.tag===5){if(h===null){h=d;try{s=d.stateNode,c?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=d.stateNode,u=d.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=ed("display",o))}catch(S){ne(e,e.return,S)}}}else if(d.tag===6){if(h===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(S){ne(e,e.return,S)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ye(t,e),ot(e),r&4&&Gu(e);break;case 21:break;default:Ye(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bf(n)){var r=n;break e}n=n.return}throw Error(b(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Zr(s,""),r.flags&=-33);var l=Ku(e);ko(e,l,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Ku(e);So(e,a,o);break;default:throw Error(b(161))}}catch(u){ne(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lm(e,t,n){O=e,Lf(e)}function Lf(e,t,n){for(var r=(e.mode&1)!==0;O!==null;){var s=O,l=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Gs;if(!o){var a=s.alternate,u=a!==null&&a.memoizedState!==null||xe;a=Gs;var c=xe;if(Gs=o,(xe=u)&&!c)for(O=s;O!==null;)o=O,u=o.child,o.tag===22&&o.memoizedState!==null?Xu(s):u!==null?(u.return=o,O=u):Xu(s);for(;l!==null;)O=l,Lf(l),l=l.sibling;O=s,Gs=a,xe=c}Ju(e)}else(s.subtreeFlags&8772)!==0&&l!==null?(l.return=s,O=l):Ju(e)}}function Ju(e){for(;O!==null;){var t=O;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:xe||Gl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Xe(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Mu(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mu(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var h=c.memoizedState;if(h!==null){var d=h.dehydrated;d!==null&&rs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}xe||t.flags&512&&jo(t)}catch(g){ne(t,t.return,g)}}if(t===e){O=null;break}if(n=t.sibling,n!==null){n.return=t.return,O=n;break}O=t.return}}function Yu(e){for(;O!==null;){var t=O;if(t===e){O=null;break}var n=t.sibling;if(n!==null){n.return=t.return,O=n;break}O=t.return}}function Xu(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gl(4,t)}catch(u){ne(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){ne(t,s,u)}}var l=t.return;try{jo(t)}catch(u){ne(t,l,u)}break;case 5:var o=t.return;try{jo(t)}catch(u){ne(t,o,u)}}}catch(u){ne(t,t.return,u)}if(t===e){O=null;break}var a=t.sibling;if(a!==null){a.return=t.return,O=a;break}O=t.return}}var Tm=Math.ceil,Ol=Tt.ReactCurrentDispatcher,Pa=Tt.ReactCurrentOwner,Ke=Tt.ReactCurrentBatchConfig,B=0,ce=null,se=null,he=0,Ie=0,Jn=un(0),oe=0,ps=null,_n=0,Jl=0,Ra=0,Jr=null,Te=null,La=0,Sr=1/0,xt=null,Ml=!1,No=null,tn=null,Js=!1,Gt=null,Fl=0,Yr=0,Co=null,ul=-1,cl=0;function Ne(){return(B&6)!==0?re():ul!==-1?ul:ul=re()}function nn(e){return(e.mode&1)===0?1:(B&2)!==0&&he!==0?he&-he:pm.transition!==null?(cl===0&&(cl=hd()),cl):(e=W,e!==0||(e=window.event,e=e===void 0?16:wd(e.type)),e)}function st(e,t,n,r){if(50<Yr)throw Yr=0,Co=null,Error(b(185));ks(e,n,r),((B&2)===0||e!==ce)&&(e===ce&&((B&2)===0&&(Jl|=n),oe===4&&At(e,he)),De(e,r),n===1&&B===0&&(t.mode&1)===0&&(Sr=re()+500,Vl&&cn()))}function De(e,t){var n=e.callbackNode;pp(e,t);var r=xl(e,e===ce?he:0);if(r===0)n!==null&&ou(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ou(n),t===1)e.tag===0?hm(Zu.bind(null,e)):zd(Zu.bind(null,e)),um(function(){(B&6)===0&&cn()}),n=null;else{switch(pd(r)){case 1:n=na;break;case 4:n=dd;break;case 16:n=yl;break;case 536870912:n=fd;break;default:n=yl}n=$f(n,Tf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tf(e,t){if(ul=-1,cl=0,(B&6)!==0)throw Error(b(327));var n=e.callbackNode;if(nr()&&e.callbackNode!==n)return null;var r=xl(e,e===ce?he:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Dl(e,r);else{t=r;var s=B;B|=2;var l=Of();(ce!==e||he!==t)&&(xt=null,Sr=re()+500,bn(e,t));do try{Mm();break}catch(a){_f(e,a)}while(!0);ma(),Ol.current=l,B=s,se!==null?t=0:(ce=null,he=0,t=oe)}if(t!==0){if(t===2&&(s=Yi(e),s!==0&&(r=s,t=Eo(e,s))),t===1)throw n=ps,bn(e,0),At(e,r),De(e,re()),n;if(t===6)At(e,r);else{if(s=e.current.alternate,(r&30)===0&&!_m(s)&&(t=Dl(e,r),t===2&&(l=Yi(e),l!==0&&(r=l,t=Eo(e,l))),t===1))throw n=ps,bn(e,0),At(e,r),De(e,re()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(b(345));case 2:mn(e,Te,xt);break;case 3:if(At(e,r),(r&130023424)===r&&(t=La+500-re(),10<t)){if(xl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ne(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=lo(mn.bind(null,e,Te,xt),t);break}mn(e,Te,xt);break;case 4:if(At(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-rt(r);l=1<<o,o=t[o],o>s&&(s=o),r&=~l}if(r=s,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tm(r/1960))-r,10<r){e.timeoutHandle=lo(mn.bind(null,e,Te,xt),r);break}mn(e,Te,xt);break;case 5:mn(e,Te,xt);break;default:throw Error(b(329))}}}return De(e,re()),e.callbackNode===n?Tf.bind(null,e):null}function Eo(e,t){var n=Jr;return e.current.memoizedState.isDehydrated&&(bn(e,t).flags|=256),e=Dl(e,t),e!==2&&(t=Te,Te=n,t!==null&&bo(t)),e}function bo(e){Te===null?Te=e:Te.push.apply(Te,e)}function _m(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],l=s.getSnapshot;s=s.value;try{if(!lt(l(),s))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 At(e,t){for(t&=~Ra,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function Zu(e){if((B&6)!==0)throw Error(b(327));nr();var t=xl(e,0);if((t&1)===0)return De(e,re()),null;var n=Dl(e,t);if(e.tag!==0&&n===2){var r=Yi(e);r!==0&&(t=r,n=Eo(e,r))}if(n===1)throw n=ps,bn(e,0),At(e,t),De(e,re()),n;if(n===6)throw Error(b(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mn(e,Te,xt),De(e,re()),null}function Ta(e,t){var n=B;B|=1;try{return e(t)}finally{B=n,B===0&&(Sr=re()+500,Vl&&cn())}}function On(e){Gt!==null&&Gt.tag===0&&(B&6)===0&&nr();var t=B;B|=1;var n=Ke.transition,r=W;try{if(Ke.transition=null,W=1,e)return e()}finally{W=r,Ke.transition=n,B=t,(B&6)===0&&cn()}}function _a(){Ie=Jn.current,G(Jn)}function bn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,am(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(fa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kl();break;case 3:wr(),G(Me),G(ve),ja();break;case 5:wa(r);break;case 4:wr();break;case 13:G(Y);break;case 19:G(Y);break;case 10:ga(r.type._context);break;case 22:case 23:_a()}n=n.return}if(ce=e,se=e=rn(e.current,null),he=Ie=t,oe=0,ps=null,Ra=Jl=_n=0,Te=Jr=null,yn!==null){for(t=0;t<yn.length;t++)if(n=yn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=s,r.next=o}n.pending=r}yn=null}return e}function _f(e,t){do{var n=se;try{if(ma(),il.current=_l,Tl){for(var r=X.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Tl=!1}if(Tn=0,ue=ie=X=null,Kr=!1,ds=0,Pa.current=null,n===null||n.return===null){oe=1,ps=t,se=null;break}e:{var l=e,o=n.return,a=n,u=t;if(t=he,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,h=a,d=h.tag;if((h.mode&1)===0&&(d===0||d===11||d===15)){var g=h.alternate;g?(h.updateQueue=g.updateQueue,h.memoizedState=g.memoizedState,h.lanes=g.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=Au(o);if(v!==null){v.flags&=-257,Uu(v,o,a,l,t),v.mode&1&&zu(l,c,t),t=v,u=c;var w=t.updateQueue;if(w===null){var S=new Set;S.add(u),t.updateQueue=S}else w.add(u);break e}else{if((t&1)===0){zu(l,c,t),Oa();break e}u=Error(b(426))}}else if(J&&a.mode&1){var k=Au(o);if(k!==null){(k.flags&65536)===0&&(k.flags|=256),Uu(k,o,a,l,t),ha(jr(u,a));break e}}l=u=jr(u,a),oe!==4&&(oe=2),Jr===null?Jr=[l]:Jr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var p=mf(l,u,t);Ou(l,p);break e;case 1:a=u;var f=l.type,m=l.stateNode;if((l.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(tn===null||!tn.has(m)))){l.flags|=65536,t&=-t,l.lanes|=t;var x=gf(l,a,t);Ou(l,x);break e}}l=l.return}while(l!==null)}Ff(n)}catch(E){t=E,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function Of(){var e=Ol.current;return Ol.current=_l,e===null?_l:e}function Oa(){(oe===0||oe===3||oe===2)&&(oe=4),ce===null||(_n&268435455)===0&&(Jl&268435455)===0||At(ce,he)}function Dl(e,t){var n=B;B|=2;var r=Of();(ce!==e||he!==t)&&(xt=null,bn(e,t));do try{Om();break}catch(s){_f(e,s)}while(!0);if(ma(),B=n,Ol.current=r,se!==null)throw Error(b(261));return ce=null,he=0,oe}function Om(){for(;se!==null;)Mf(se)}function Mm(){for(;se!==null&&!lp();)Mf(se)}function Mf(e){var t=If(e.alternate,e,Ie);e.memoizedProps=e.pendingProps,t===null?Ff(e):se=t,Pa.current=null}function Ff(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Em(n,t,Ie),n!==null){se=n;return}}else{if(n=bm(n,t),n!==null){n.flags&=32767,se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{oe=6,se=null;return}}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);oe===0&&(oe=5)}function mn(e,t,n){var r=W,s=Ke.transition;try{Ke.transition=null,W=1,Fm(e,t,n,r)}finally{Ke.transition=s,W=r}return null}function Fm(e,t,n,r){do nr();while(Gt!==null);if((B&6)!==0)throw Error(b(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(b(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(mp(e,l),e===ce&&(se=ce=null,he=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Js||(Js=!0,$f(yl,function(){return nr(),null})),l=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||l){l=Ke.transition,Ke.transition=null;var o=W;W=1;var a=B;B|=4,Pa.current=null,Rm(e,n),Rf(n,e),tm(ro),vl=!!no,ro=no=null,e.current=n,Lm(n),ip(),B=a,W=o,Ke.transition=l}else e.current=n;if(Js&&(Js=!1,Gt=e,Fl=s),l=e.pendingLanes,l===0&&(tn=null),up(n.stateNode),De(e,re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Ml)throw Ml=!1,e=No,No=null,e;return(Fl&1)!==0&&e.tag!==0&&nr(),l=e.pendingLanes,(l&1)!==0?e===Co?Yr++:(Yr=0,Co=e):Yr=0,cn(),null}function nr(){if(Gt!==null){var e=pd(Fl),t=Ke.transition,n=W;try{if(Ke.transition=null,W=16>e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Fl=0,(B&6)!==0)throw Error(b(331));var s=B;for(B|=4,O=e.current;O!==null;){var l=O,o=l.child;if((O.flags&16)!==0){var a=l.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(O=c;O!==null;){var h=O;switch(h.tag){case 0:case 11:case 15:Gr(8,h,l)}var d=h.child;if(d!==null)d.return=h,O=d;else for(;O!==null;){h=O;var g=h.sibling,v=h.return;if(Ef(h),h===c){O=null;break}if(g!==null){g.return=v,O=g;break}O=v}}}var w=l.alternate;if(w!==null){var S=w.child;if(S!==null){w.child=null;do{var k=S.sibling;S.sibling=null,S=k}while(S!==null)}}O=l}}if((l.subtreeFlags&2064)!==0&&o!==null)o.return=l,O=o;else e:for(;O!==null;){if(l=O,(l.flags&2048)!==0)switch(l.tag){case 0:case 11:case 15:Gr(9,l,l.return)}var p=l.sibling;if(p!==null){p.return=l.return,O=p;break e}O=l.return}}var f=e.current;for(O=f;O!==null;){o=O;var m=o.child;if((o.subtreeFlags&2064)!==0&&m!==null)m.return=o,O=m;else e:for(o=f;O!==null;){if(a=O,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Gl(9,a)}}catch(E){ne(a,a.return,E)}if(a===o){O=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,O=x;break e}O=a.return}}if(B=s,cn(),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Ul,e)}catch{}r=!0}return r}finally{W=n,Ke.transition=t}}return!1}function ec(e,t,n){t=jr(n,t),t=mf(e,t,1),e=en(e,t,1),t=Ne(),e!==null&&(ks(e,1,t),De(e,t))}function ne(e,t,n){if(e.tag===3)ec(e,e,n);else for(;t!==null;){if(t.tag===3){ec(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(tn===null||!tn.has(r))){e=jr(n,e),e=gf(t,e,1),t=en(t,e,1),e=Ne(),t!==null&&(ks(t,1,e),De(t,e));break}}t=t.return}}function Dm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ne(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(he&n)===n&&(oe===4||oe===3&&(he&130023424)===he&&500>re()-La?bn(e,0):Ra|=n),De(e,t)}function Df(e,t){t===0&&((e.mode&1)===0?t=1:(t=As,As<<=1,(As&130023424)===0&&(As=4194304)));var n=Ne();e=Pt(e,t),e!==null&&(ks(e,t,n),De(e,n))}function Im(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Df(e,n)}function $m(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Df(e,n)}var If;If=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Me.current)Oe=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Oe=!1,Cm(e,t,n);Oe=(e.flags&131072)!==0}else Oe=!1,J&&(t.flags&1048576)!==0&&Ad(t,El,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var s=yr(t,ve.current);tr(t,n),s=ka(null,t,r,e,s,n);var l=Na();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(l=!0,Nl(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,xa(t),s.updater=Kl,t.stateNode=s,s._reactInternals=t,ho(t,r,e,n),t=go(null,t,r,!0,l,n)):(t.tag=0,J&&l&&da(t),ke(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Am(r),e=Xe(r,e),s){case 0:t=mo(null,t,r,e,n);break e;case 1:t=Hu(null,t,r,e,n);break e;case 11:t=Qu(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,Xe(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),mo(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),Hu(e,t,r,s,n);case 3:e:{if(wf(t),e===null)throw Error(b(387));r=t.pendingProps,l=t.memoizedState,s=l.element,Vd(e,t),Rl(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=jr(Error(b(423)),t),t=Wu(e,t,r,n,s);break e}else if(r!==s){s=jr(Error(b(424)),t),t=Wu(e,t,r,n,s);break e}else for($e=Zt(t.stateNode.containerInfo.firstChild),ze=t,J=!0,nt=null,n=Hd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===s){t=Rt(e,t,n);break e}ke(e,t,r,n)}t=t.child}return t;case 5:return qd(t),e===null&&uo(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,o=s.children,so(r,s)?o=null:l!==null&&so(r,l)&&(t.flags|=32),vf(e,t),ke(e,t,o,n),t.child;case 6:return e===null&&uo(t),null;case 13:return jf(e,t,n);case 4:return va(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):ke(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),Qu(e,t,r,s,n);case 7:return ke(e,t,t.pendingProps,n),t.child;case 8:return ke(e,t,t.pendingProps.children,n),t.child;case 12:return ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,l=t.memoizedProps,o=s.value,q(bl,r._currentValue),r._currentValue=o,l!==null)if(lt(l.value,o)){if(l.children===s.children&&!Me.current){t=Rt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Nt(-1,n&-n),u.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),co(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(b(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),co(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}ke(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,tr(t,n),s=Ge(s),r=r(s),t.flags|=1,ke(e,t,r,n),t.child;case 14:return r=t.type,s=Xe(r,t.pendingProps),s=Xe(r.type,s),Bu(e,t,r,s,n);case 15:return yf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Xe(r,s),al(e,t),t.tag=1,Fe(r)?(e=!0,Nl(t)):e=!1,tr(t,n),pf(t,r,s),ho(t,r,s,n),go(null,t,r,!0,e,n);case 19:return Sf(e,t,n);case 22:return xf(e,t,n)}throw Error(b(156,t.tag))};function $f(e,t){return cd(e,t)}function zm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qe(e,t,n,r){return new zm(e,t,n,r)}function Ma(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Am(e){if(typeof e=="function")return Ma(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zo)return 11;if(e===ea)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=qe(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&14680064,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}function dl(e,t,n,r,s,l){var o=2;if(r=e,typeof e=="function")Ma(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case An:return Pn(n.children,s,l,t);case Xo:o=8,s|=8;break;case Di:return e=qe(12,n,t,s|2),e.elementType=Di,e.lanes=l,e;case Ii:return e=qe(13,n,t,s),e.elementType=Ii,e.lanes=l,e;case $i:return e=qe(19,n,t,s),e.elementType=$i,e.lanes=l,e;case qc:return Yl(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wc:o=10;break e;case Vc:o=9;break e;case Zo:o=11;break e;case ea:o=14;break e;case It:o=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=qe(o,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function Pn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function Yl(e,t,n,r){return e=qe(22,e,r,t),e.elementType=qc,e.lanes=n,e.stateNode={isHidden:!1},e}function Li(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function Ti(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Um(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=di(0),this.expirationTimes=di(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=di(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Fa(e,t,n,r,s,l,o,a,u){return e=new Um(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=qe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xa(l),e}function Qm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zf(e){if(!e)return on;e=e._reactInternals;e:{if(Dn(e)!==e||e.tag!==1)throw Error(b(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(b(171))}if(e.tag===1){var n=e.type;if(Fe(n))return $d(e,n,t)}return t}function Af(e,t,n,r,s,l,o,a,u){return e=Fa(n,r,!0,e,s,l,o,a,u),e.context=zf(null),n=e.current,r=Ne(),s=nn(n),l=Nt(r,s),l.callback=t??null,en(n,l,s),e.current.lanes=s,ks(e,s,r),De(e,r),e}function Xl(e,t,n,r){var s=t.current,l=Ne(),o=nn(s);return n=zf(n),t.context===null?t.context=n:t.pendingContext=n,t=Nt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=en(s,t,o),e!==null&&(st(e,s,o,l),ll(e,s,o)),o}function Il(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function tc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Da(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function Bm(){return null}var Uf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ia(e){this._internalRoot=e}Zl.prototype.render=Ia.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(b(409));Xl(e,t,null,null)};Zl.prototype.unmount=Ia.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;On(function(){Xl(null,e,null,null)}),t[bt]=null}};function Zl(e){this._internalRoot=e}Zl.prototype.unstable_scheduleHydration=function(e){if(e){var t=yd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&t!==0&&t<zt[n].priority;n++);zt.splice(n,0,e),n===0&&vd(e)}};function $a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ei(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function nc(){}function Hm(e,t,n,r,s){if(s){if(typeof r=="function"){var l=r;r=function(){var c=Il(o);l.call(c)}}var o=Af(t,r,e,0,null,!1,!1,"",nc);return e._reactRootContainer=o,e[bt]=o.current,is(e.nodeType===8?e.parentNode:e),On(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=Il(u);a.call(c)}}var u=Fa(e,0,!1,null,null,!1,!1,"",nc);return e._reactRootContainer=u,e[bt]=u.current,is(e.nodeType===8?e.parentNode:e),On(function(){Xl(t,u,n,r)}),u}function ti(e,t,n,r,s){var l=n._reactRootContainer;if(l){var o=l;if(typeof s=="function"){var a=s;s=function(){var u=Il(o);a.call(u)}}Xl(t,o,e,s)}else o=Hm(n,t,e,s,r);return Il(o)}md=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ar(t.pendingLanes);n!==0&&(ra(t,n|1),De(t,re()),(B&6)===0&&(Sr=re()+500,cn()))}break;case 13:On(function(){var r=Pt(e,1);if(r!==null){var s=Ne();st(r,e,1,s)}}),Da(e,1)}};sa=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=Ne();st(t,e,134217728,n)}Da(e,134217728)}};gd=function(e){if(e.tag===13){var t=nn(e),n=Pt(e,t);if(n!==null){var r=Ne();st(n,e,t,r)}Da(e,t)}};yd=function(){return W};xd=function(e,t){var n=W;try{return W=e,t()}finally{W=n}};Ki=function(e,t,n){switch(t){case"input":if(Ui(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Wl(r);if(!s)throw Error(b(90));Gc(r),Ui(r,s)}}}break;case"textarea":Yc(e,n);break;case"select":t=n.value,t!=null&&Yn(e,!!n.multiple,t,!1)}};sd=Ta;ld=On;var Wm={usingClientEntryPoint:!1,Events:[Cs,Hn,Wl,nd,rd,Ta]},Dr={findFiberByHostInstance:gn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Vm={bundleType:Dr.bundleType,version:Dr.version,rendererPackageName:Dr.rendererPackageName,rendererConfig:Dr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ad(e),e===null?null:e.stateNode},findFiberByHostInstance:Dr.findFiberByHostInstance||Bm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ys.isDisabled&&Ys.supportsFiber)try{Ul=Ys.inject(Vm),ht=Ys}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wm;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$a(t))throw Error(b(200));return Qm(e,t,null,n)};Ue.createRoot=function(e,t){if(!$a(e))throw Error(b(299));var n=!1,r="",s=Uf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Fa(e,1,!1,null,null,n,!1,r,s),e[bt]=t.current,is(e.nodeType===8?e.parentNode:e),new Ia(t)};Ue.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=ad(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return On(e)};Ue.hydrate=function(e,t,n){if(!ei(t))throw Error(b(200));return ti(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!$a(e))throw Error(b(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",o=Uf;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Af(t,null,e,1,n??null,s,!1,l,o),e[bt]=t.current,is(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Zl(t)};Ue.render=function(e,t,n){if(!ei(t))throw Error(b(200));return ti(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!ei(e))throw Error(b(40));return e._reactRootContainer?(On(function(){ti(null,null,e,!1,function(){e._reactRootContainer=null,e[bt]=null})}),!0):!1};Ue.unstable_batchedUpdates=Ta;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ei(n))throw Error(b(200));if(e==null||e._reactInternals===void 0)throw Error(b(38));return ti(e,t,n,!1,r)};Ue.version="18.3.1-next-f1338f8080-20240426";function Qf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qf)}catch(e){console.error(e)}}Qf(),Uc.exports=Ue;var qm=Uc.exports,rc=qm;Mi.createRoot=rc.createRoot,Mi.hydrateRoot=rc.hydrateRoot;/**
|
|
41
|
+
* react-router v7.8.2
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var sc="popstate";function Km(e={}){function t(r,s){let{pathname:l,search:o,hash:a}=r.location;return Po("",{pathname:l,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:ms(s)}return Jm(t,n,null,e)}function Z(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function it(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Gm(){return Math.random().toString(36).substring(2,10)}function lc(e,t){return{usr:e.state,key:e.key,idx:t}}function Po(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Er(t):t,state:n,key:t&&t.key||r||Gm()}}function ms({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Er(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Jm(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,o=s.history,a="POP",u=null,c=h();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function h(){return(o.state||{idx:null}).idx}function d(){a="POP";let k=h(),p=k==null?null:k-c;c=k,u&&u({action:a,location:S.location,delta:p})}function g(k,p){a="PUSH";let f=Po(S.location,k,p);c=h()+1;let m=lc(f,c),x=S.createHref(f);try{o.pushState(m,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(x)}l&&u&&u({action:a,location:S.location,delta:1})}function v(k,p){a="REPLACE";let f=Po(S.location,k,p);c=h();let m=lc(f,c),x=S.createHref(f);o.replaceState(m,"",x),l&&u&&u({action:a,location:S.location,delta:0})}function w(k){return Ym(k)}let S={get action(){return a},get location(){return e(s,o)},listen(k){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(sc,d),u=k,()=>{s.removeEventListener(sc,d),u=null}},createHref(k){return t(s,k)},createURL:w,encodeLocation(k){let p=w(k);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:g,replace:v,go(k){return o.go(k)}};return S}function Ym(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Z(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ms(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Bf(e,t,n="/"){return Xm(e,t,n,!1)}function Xm(e,t,n,r){let s=typeof t=="string"?Er(t):t,l=Lt(s.pathname||"/",n);if(l==null)return null;let o=Hf(e);Zm(o);let a=null;for(let u=0;a==null&&u<o.length;++u){let c=cg(l);a=ag(o[u],c,r)}return a}function Hf(e,t=[],n=[],r="",s=!1){let l=(o,a,u=s,c)=>{let h={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&u)return;Z(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let d=Ct([r,h.relativePath]),g=n.concat(h);o.children&&o.children.length>0&&(Z(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Hf(o.children,t,g,d,u)),!(o.path==null&&!o.index)&&t.push({path:d,score:ig(d,o.index),routesMeta:g})};return e.forEach((o,a)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,a);else for(let c of Wf(o.path))l(o,a,!0,c)}),t}function Wf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return s?[l,""]:[l];let o=Wf(r.join("/")),a=[];return a.push(...o.map(u=>u===""?l:[l,u].join("/"))),s&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:og(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var eg=/^:[\w-]+$/,tg=3,ng=2,rg=1,sg=10,lg=-2,ic=e=>e==="*";function ig(e,t){let n=e.split("/"),r=n.length;return n.some(ic)&&(r+=lg),t&&(r+=ng),n.filter(s=>!ic(s)).reduce((s,l)=>s+(eg.test(l)?tg:l===""?rg:sg),r)}function og(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function ag(e,t,n=!1){let{routesMeta:r}=e,s={},l="/",o=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,h=l==="/"?t:t.slice(l.length)||"/",d=$l({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},h),g=u.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=$l({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},h)),!d)return null;Object.assign(s,d.params),o.push({params:s,pathname:Ct([l,d.pathname]),pathnameBase:pg(Ct([l,d.pathnameBase])),route:g}),d.pathnameBase!=="/"&&(l=Ct([l,d.pathnameBase]))}return o}function $l(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ug(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let l=s[0],o=l.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,{paramName:h,isOptional:d},g)=>{if(h==="*"){let w=a[g]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const v=a[g];return d&&!v?c[h]=void 0:c[h]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:o,pattern:e}}function ug(e,t=!1,n=!0){it(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function cg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return it(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Lt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dg(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Er(e):e;return{pathname:n?n.startsWith("/")?n:fg(n,t):t,search:mg(r),hash:gg(s)}}function fg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function _i(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function hg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Vf(e){let t=hg(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function qf(e,t,n,r=!1){let s;typeof e=="string"?s=Er(e):(s={...e},Z(!s.pathname||!s.pathname.includes("?"),_i("?","pathname","search",s)),Z(!s.pathname||!s.pathname.includes("#"),_i("#","pathname","hash",s)),Z(!s.search||!s.search.includes("#"),_i("#","search","hash",s)));let l=e===""||s.pathname==="",o=l?"/":s.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),d-=1;s.pathname=g.join("/")}a=d>=0?t[d]:"/"}let u=dg(s,a),c=o&&o!=="/"&&o.endsWith("/"),h=(l||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||h)&&(u.pathname+="/"),u}var Ct=e=>e.join("/").replace(/\/\/+/g,"/"),pg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Kf=["POST","PUT","PATCH","DELETE"];new Set(Kf);var xg=["GET",...Kf];new Set(xg);var br=j.createContext(null);br.displayName="DataRouter";var ni=j.createContext(null);ni.displayName="DataRouterState";j.createContext(!1);var Gf=j.createContext({isTransitioning:!1});Gf.displayName="ViewTransition";var vg=j.createContext(new Map);vg.displayName="Fetchers";var wg=j.createContext(null);wg.displayName="Await";var mt=j.createContext(null);mt.displayName="Navigation";var bs=j.createContext(null);bs.displayName="Location";var gt=j.createContext({outlet:null,matches:[],isDataRoute:!1});gt.displayName="Route";var za=j.createContext(null);za.displayName="RouteError";function jg(e,{relative:t}={}){Z(Ps(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=j.useContext(mt),{hash:s,pathname:l,search:o}=Ls(e,{relative:t}),a=l;return n!=="/"&&(a=l==="/"?n:Ct([n,l])),r.createHref({pathname:a,search:o,hash:s})}function Ps(){return j.useContext(bs)!=null}function dn(){return Z(Ps(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(bs).location}var Jf="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yf(e){j.useContext(mt).static||j.useLayoutEffect(e)}function _t(){let{isDataRoute:e}=j.useContext(gt);return e?Mg():Sg()}function Sg(){Z(Ps(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(br),{basename:t,navigator:n}=j.useContext(mt),{matches:r}=j.useContext(gt),{pathname:s}=dn(),l=JSON.stringify(Vf(r)),o=j.useRef(!1);return Yf(()=>{o.current=!0}),j.useCallback((u,c={})=>{if(it(o.current,Jf),!o.current)return;if(typeof u=="number"){n.go(u);return}let h=qf(u,JSON.parse(l),s,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ct([t,h.pathname])),(c.replace?n.replace:n.push)(h,c.state,c)},[t,n,l,s,e])}j.createContext(null);function Rs(){let{matches:e}=j.useContext(gt),t=e[e.length-1];return t?t.params:{}}function Ls(e,{relative:t}={}){let{matches:n}=j.useContext(gt),{pathname:r}=dn(),s=JSON.stringify(Vf(n));return j.useMemo(()=>qf(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function kg(e,t){return Xf(e,t)}function Xf(e,t,n,r,s){var f;Z(Ps(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=j.useContext(mt),{matches:o}=j.useContext(gt),a=o[o.length-1],u=a?a.params:{},c=a?a.pathname:"/",h=a?a.pathnameBase:"/",d=a&&a.route;{let m=d&&d.path||"";Zf(c,!d||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${m}">) 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.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let g=dn(),v;if(t){let m=typeof t=="string"?Er(t):t;Z(h==="/"||((f=m.pathname)==null?void 0:f.startsWith(h)),`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 "${h}" but pathname "${m.pathname}" was given in the \`location\` prop.`),v=m}else v=g;let w=v.pathname||"/",S=w;if(h!=="/"){let m=h.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(m.length).join("/")}let k=Bf(e,{pathname:S});it(d||k!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),it(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 p=Pg(k&&k.map(m=>Object.assign({},m,{params:Object.assign({},u,m.params),pathname:Ct([h,l.encodeLocation?l.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?h:Ct([h,l.encodeLocation?l.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,n,r,s);return t&&p?j.createElement(bs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},p):p}function Ng(){let e=Og(),t=yg(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:l},"ErrorBoundary")," or"," ",j.createElement("code",{style:l},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:s},n):null,o)}var Cg=j.createElement(Ng,null),Eg=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?j.createElement(gt.Provider,{value:this.props.routeContext},j.createElement(za.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function bg({routeContext:e,match:t,children:n}){let r=j.useContext(br);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),j.createElement(gt.Provider,{value:e},n)}function Pg(e,t=[],n=null,r=null,s=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=n==null?void 0:n.errors;if(o!=null){let c=l.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);Z(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,c+1))}let a=!1,u=-1;if(n)for(let c=0;c<l.length;c++){let h=l[c];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=c),h.route.id){let{loaderData:d,errors:g}=n,v=h.route.loader&&!d.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||v){a=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,h,d)=>{let g,v=!1,w=null,S=null;n&&(g=o&&h.route.id?o[h.route.id]:void 0,w=h.route.errorElement||Cg,a&&(u<0&&d===0?(Zf("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,S=null):u===d&&(v=!0,S=h.route.hydrateFallbackElement||null)));let k=t.concat(l.slice(0,d+1)),p=()=>{let f;return g?f=w:v?f=S:h.route.Component?f=j.createElement(h.route.Component,null):h.route.element?f=h.route.element:f=c,j.createElement(bg,{match:h,routeContext:{outlet:c,matches:k,isDataRoute:n!=null},children:f})};return n&&(h.route.ErrorBoundary||h.route.errorElement||d===0)?j.createElement(Eg,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:p(),routeContext:{outlet:null,matches:k,isDataRoute:!0},unstable_onError:r}):p()},null)}function Aa(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rg(e){let t=j.useContext(br);return Z(t,Aa(e)),t}function Lg(e){let t=j.useContext(ni);return Z(t,Aa(e)),t}function Tg(e){let t=j.useContext(gt);return Z(t,Aa(e)),t}function Ua(e){let t=Tg(e),n=t.matches[t.matches.length-1];return Z(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function _g(){return Ua("useRouteId")}function Og(){var r;let e=j.useContext(za),t=Lg("useRouteError"),n=Ua("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Mg(){let{router:e}=Rg("useNavigate"),t=Ua("useNavigate"),n=j.useRef(!1);return Yf(()=>{n.current=!0}),j.useCallback(async(s,l={})=>{it(n.current,Jf),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var oc={};function Zf(e,t,n){!t&&!oc[e]&&(oc[e]=!0,it(!1,n))}j.memo(Fg);function Fg({routes:e,future:t,state:n,unstable_onError:r}){return Xf(e,void 0,n,r,t)}function Ft(e){Z(!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 Dg({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:l=!1}){Z(!Ps(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),a=j.useMemo(()=>({basename:o,navigator:s,static:l,future:{}}),[o,s,l]);typeof n=="string"&&(n=Er(n));let{pathname:u="/",search:c="",hash:h="",state:d=null,key:g="default"}=n,v=j.useMemo(()=>{let w=Lt(u,o);return w==null?null:{location:{pathname:w,search:c,hash:h,state:d,key:g},navigationType:r}},[o,u,c,h,d,g,r]);return it(v!=null,`<Router basename="${o}"> is not able to match the URL "${u}${c}${h}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:j.createElement(mt.Provider,{value:a},j.createElement(bs.Provider,{children:t,value:v}))}function Ig({children:e,location:t}){return kg(Ro(e),t)}function Ro(e,t=[]){let n=[];return j.Children.forEach(e,(r,s)=>{if(!j.isValidElement(r))return;let l=[...t,s];if(r.type===j.Fragment){n.push.apply(n,Ro(r.props.children,l));return}Z(r.type===Ft,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Z(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Ro(r.props.children,l)),n.push(o)}),n}var fl="get",hl="application/x-www-form-urlencoded";function ri(e){return e!=null&&typeof e.tagName=="string"}function $g(e){return ri(e)&&e.tagName.toLowerCase()==="button"}function zg(e){return ri(e)&&e.tagName.toLowerCase()==="form"}function Ag(e){return ri(e)&&e.tagName.toLowerCase()==="input"}function Ug(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Qg(e,t){return e.button===0&&(!t||t==="_self")&&!Ug(e)}function Lo(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Bg(e,t){let n=Lo(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(l=>{n.append(s,l)})}),n}var Xs=null;function Hg(){if(Xs===null)try{new FormData(document.createElement("form"),0),Xs=!1}catch{Xs=!0}return Xs}var Wg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oi(e){return e!=null&&!Wg.has(e)?(it(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hl}"`),null):e}function Vg(e,t){let n,r,s,l,o;if(zg(e)){let a=e.getAttribute("action");r=a?Lt(a,t):null,n=e.getAttribute("method")||fl,s=Oi(e.getAttribute("enctype"))||hl,l=new FormData(e)}else if($g(e)||Ag(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||a.getAttribute("action");if(r=u?Lt(u,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||fl,s=Oi(e.getAttribute("formenctype"))||Oi(a.getAttribute("enctype"))||hl,l=new FormData(a,e),!Hg()){let{name:c,type:h,value:d}=e;if(h==="image"){let g=c?`${c}.`:"";l.append(`${g}x`,"0"),l.append(`${g}y`,"0")}else c&&l.append(c,d)}}else{if(ri(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=fl,r=null,s=hl,o=e}return l&&s==="text/plain"&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:l,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qa(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qg(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Lt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Kg(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Gg(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Jg(e,t,n){let r=await Promise.all(e.map(async s=>{let l=t.routes[s.route.id];if(l){let o=await Kg(l,n);return o.links?o.links():[]}return[]}));return e0(r.flat(1).filter(Gg).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function ac(e,t,n,r,s,l){let o=(u,c)=>n[c]?u.route.id!==n[c].route.id:!0,a=(u,c)=>{var h;return n[c].pathname!==u.pathname||((h=n[c].route.path)==null?void 0:h.endsWith("*"))&&n[c].params["*"]!==u.params["*"]};return l==="assets"?t.filter((u,c)=>o(u,c)||a(u,c)):l==="data"?t.filter((u,c)=>{var d;let h=r.routes[u.route.id];if(!h||!h.hasLoader)return!1;if(o(u,c)||a(u,c))return!0;if(u.route.shouldRevalidate){let g=u.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function Yg(e,t,{includeHydrateFallback:n}={}){return Xg(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let l=[s.module];return s.clientActionModule&&(l=l.concat(s.clientActionModule)),s.clientLoaderModule&&(l=l.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(l=l.concat(s.hydrateFallbackModule)),s.imports&&(l=l.concat(s.imports)),l}).flat(1))}function Xg(e){return[...new Set(e)]}function Zg(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function e0(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let l=JSON.stringify(Zg(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function eh(){let e=j.useContext(br);return Qa(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function t0(){let e=j.useContext(ni);return Qa(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ba=j.createContext(void 0);Ba.displayName="FrameworkContext";function th(){let e=j.useContext(Ba);return Qa(e,"You must render this element inside a <HydratedRouter> element"),e}function n0(e,t){let n=j.useContext(Ba),[r,s]=j.useState(!1),[l,o]=j.useState(!1),{onFocus:a,onBlur:u,onMouseEnter:c,onMouseLeave:h,onTouchStart:d}=t,g=j.useRef(null);j.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let S=p=>{p.forEach(f=>{o(f.isIntersecting)})},k=new IntersectionObserver(S,{threshold:.5});return g.current&&k.observe(g.current),()=>{k.disconnect()}}},[e]),j.useEffect(()=>{if(r){let S=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(S)}}},[r]);let v=()=>{s(!0)},w=()=>{s(!1),o(!1)};return n?e!=="intent"?[l,g,{}]:[l,g,{onFocus:Ir(a,v),onBlur:Ir(u,w),onMouseEnter:Ir(c,v),onMouseLeave:Ir(h,w),onTouchStart:Ir(d,v)}]:[!1,g,{}]}function Ir(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function r0({page:e,...t}){let{router:n}=eh(),r=j.useMemo(()=>Bf(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?j.createElement(l0,{page:e,matches:r,...t}):null}function s0(e){let{manifest:t,routeModules:n}=th(),[r,s]=j.useState([]);return j.useEffect(()=>{let l=!1;return Jg(e,t,n).then(o=>{l||s(o)}),()=>{l=!0}},[e,t,n]),r}function l0({page:e,matches:t,...n}){let r=dn(),{manifest:s,routeModules:l}=th(),{basename:o}=eh(),{loaderData:a,matches:u}=t0(),c=j.useMemo(()=>ac(e,t,u,s,r,"data"),[e,t,u,s,r]),h=j.useMemo(()=>ac(e,t,u,s,r,"assets"),[e,t,u,s,r]),d=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,S=!1;if(t.forEach(p=>{var m;let f=s.routes[p.route.id];!f||!f.hasLoader||(!c.some(x=>x.route.id===p.route.id)&&p.route.id in a&&((m=l[p.route.id])!=null&&m.shouldRevalidate)||f.hasClientLoader?S=!0:w.add(p.route.id))}),w.size===0)return[];let k=qg(e,o,"data");return S&&w.size>0&&k.searchParams.set("_routes",t.filter(p=>w.has(p.route.id)).map(p=>p.route.id).join(",")),[k.pathname+k.search]},[o,a,r,s,c,t,e,l]),g=j.useMemo(()=>Yg(h,s),[h,s]),v=s0(h);return j.createElement(j.Fragment,null,d.map(w=>j.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),g.map(w=>j.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),v.map(({key:w,link:S})=>j.createElement("link",{key:w,nonce:n.nonce,...S})))}function i0(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var nh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{nh&&(window.__reactRouterVersion="7.8.2")}catch{}function o0({basename:e,children:t,window:n}){let r=j.useRef();r.current==null&&(r.current=Km({window:n,v5Compat:!0}));let s=r.current,[l,o]=j.useState({action:s.action,location:s.location}),a=j.useCallback(u=>{j.startTransition(()=>o(u))},[o]);return j.useLayoutEffect(()=>s.listen(a),[s,a]),j.createElement(Dg,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s})}var rh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sh=j.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:o,state:a,target:u,to:c,preventScrollReset:h,viewTransition:d,...g},v){let{basename:w}=j.useContext(mt),S=typeof c=="string"&&rh.test(c),k,p=!1;if(typeof c=="string"&&S&&(k=c,nh))try{let _=new URL(window.location.href),T=c.startsWith("//")?new URL(_.protocol+c):new URL(c),V=Lt(T.pathname,w);T.origin===_.origin&&V!=null?c=V+T.search+T.hash:p=!0}catch{it(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let f=jg(c,{relative:s}),[m,x,E]=n0(r,g),N=d0(c,{replace:o,state:a,target:u,preventScrollReset:h,relative:s,viewTransition:d});function R(_){t&&t(_),_.defaultPrevented||N(_)}let P=j.createElement("a",{...g,...E,href:k||f,onClick:p||l?t:R,ref:i0(v,x),target:u,"data-discover":!S&&n==="render"?"true":void 0});return m&&!S?j.createElement(j.Fragment,null,P,j.createElement(r0,{page:f})):P});sh.displayName="Link";var a0=j.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:o,viewTransition:a,children:u,...c},h){let d=Ls(o,{relative:c.relative}),g=dn(),v=j.useContext(ni),{navigator:w,basename:S}=j.useContext(mt),k=v!=null&&y0(d)&&a===!0,p=w.encodeLocation?w.encodeLocation(d).pathname:d.pathname,f=g.pathname,m=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(f=f.toLowerCase(),m=m?m.toLowerCase():null,p=p.toLowerCase()),m&&S&&(m=Lt(m,S)||m);const x=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let E=f===p||!s&&f.startsWith(p)&&f.charAt(x)==="/",N=m!=null&&(m===p||!s&&m.startsWith(p)&&m.charAt(p.length)==="/"),R={isActive:E,isPending:N,isTransitioning:k},P=E?t:void 0,_;typeof r=="function"?_=r(R):_=[r,E?"active":null,N?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let T=typeof l=="function"?l(R):l;return j.createElement(sh,{...c,"aria-current":P,className:_,ref:h,style:T,to:o,viewTransition:a},typeof u=="function"?u(R):u)});a0.displayName="NavLink";var u0=j.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:l,method:o=fl,action:a,onSubmit:u,relative:c,preventScrollReset:h,viewTransition:d,...g},v)=>{let w=m0(),S=g0(a,{relative:c}),k=o.toLowerCase()==="get"?"get":"post",p=typeof a=="string"&&rh.test(a),f=m=>{if(u&&u(m),m.defaultPrevented)return;m.preventDefault();let x=m.nativeEvent.submitter,E=(x==null?void 0:x.getAttribute("formmethod"))||o;w(x||m.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:s,state:l,relative:c,preventScrollReset:h,viewTransition:d})};return j.createElement("form",{ref:v,method:k,action:S,onSubmit:r?u:f,...g,"data-discover":!p&&e==="render"?"true":void 0})});u0.displayName="Form";function c0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lh(e){let t=j.useContext(br);return Z(t,c0(e)),t}function d0(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:l,viewTransition:o}={}){let a=_t(),u=dn(),c=Ls(e,{relative:l});return j.useCallback(h=>{if(Qg(h,t)){h.preventDefault();let d=n!==void 0?n:ms(u)===ms(c);a(e,{replace:d,state:r,preventScrollReset:s,relative:l,viewTransition:o})}},[u,a,c,n,r,t,e,s,l,o])}function f0(e){it(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=j.useRef(Lo(e)),n=j.useRef(!1),r=dn(),s=j.useMemo(()=>Bg(r.search,n.current?null:t.current),[r.search]),l=_t(),o=j.useCallback((a,u)=>{const c=Lo(typeof a=="function"?a(new URLSearchParams(s)):a);n.current=!0,l("?"+c,u)},[l,s]);return[s,o]}var h0=0,p0=()=>`__${String(++h0)}__`;function m0(){let{router:e}=lh("useSubmit"),{basename:t}=j.useContext(mt),n=_g();return j.useCallback(async(r,s={})=>{let{action:l,method:o,encType:a,formData:u,body:c}=Vg(r,t);if(s.navigate===!1){let h=s.fetcherKey||p0();await e.fetch(h,n,s.action||l,{preventScrollReset:s.preventScrollReset,formData:u,body:c,formMethod:s.method||o,formEncType:s.encType||a,flushSync:s.flushSync})}else await e.navigate(s.action||l,{preventScrollReset:s.preventScrollReset,formData:u,body:c,formMethod:s.method||o,formEncType:s.encType||a,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function g0(e,{relative:t}={}){let{basename:n}=j.useContext(mt),r=j.useContext(gt);Z(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...Ls(e||".",{relative:t})},o=dn();if(e==null){l.search=o.search;let a=new URLSearchParams(l.search),u=a.getAll("index");if(u.some(h=>h==="")){a.delete("index"),u.filter(d=>d).forEach(d=>a.append("index",d));let h=a.toString();l.search=h?`?${h}`:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ct([n,l.pathname])),ms(l)}function y0(e,{relative:t}={}){let n=j.useContext(Gf);Z(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lh("useViewTransitionState"),s=Ls(e,{relative:t});if(!n.isTransitioning)return!1;let l=Lt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Lt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $l(s.pathname,o)!=null||$l(s.pathname,l)!=null}var Ts=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Mn=typeof window>"u"||"Deno"in globalThis;function Le(){}function x0(e,t){return typeof e=="function"?e(t):e}function To(e){return typeof e=="number"&&e>=0&&e!==1/0}function ih(e,t){return Math.max(e+(t||0)-Date.now(),0)}function sn(e,t){return typeof e=="function"?e(t):e}function He(e,t){return typeof e=="function"?e(t):e}function uc(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:l,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Ha(o,t.options))return!1}else if(!ys(t.queryKey,o))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||l&&!l(t))}function cc(e,t){const{exact:n,status:r,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(gs(t.options.mutationKey)!==gs(l))return!1}else if(!ys(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Ha(e,t){return((t==null?void 0:t.queryKeyHashFn)||gs)(e)}function gs(e){return JSON.stringify(e,(t,n)=>Oo(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ys(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ys(e[n],t[n])):!1}function oh(e,t){if(e===t)return e;const n=dc(e)&&dc(t);if(n||Oo(e)&&Oo(t)){const r=n?e:Object.keys(e),s=r.length,l=n?t:Object.keys(t),o=l.length,a=n?[]:{},u=new Set(r);let c=0;for(let h=0;h<o;h++){const d=n?h:l[h];(!n&&u.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=oh(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function _o(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function dc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oo(e){if(!fc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!fc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fc(e){return Object.prototype.toString.call(e)==="[object Object]"}function v0(e){return new Promise(t=>{setTimeout(t,e)})}function Mo(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?oh(e,t):t}function w0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function j0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wa=Symbol();function ah(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function S0(e,t){return typeof e=="function"?e(...t):!!e}var vn,Ut,rr,jc,k0=(jc=class extends Ts{constructor(){super();$(this,vn);$(this,Ut);$(this,rr);M(this,rr,t=>{if(!Mn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,Ut)||this.setEventListener(y(this,rr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Ut))==null||t.call(this),M(this,Ut,void 0))}setEventListener(t){var n;M(this,rr,t),(n=y(this,Ut))==null||n.call(this),M(this,Ut,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,vn)!==t&&(M(this,vn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,vn)=="boolean"?y(this,vn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},vn=new WeakMap,Ut=new WeakMap,rr=new WeakMap,jc),Va=new k0,sr,Qt,lr,Sc,N0=(Sc=class extends Ts{constructor(){super();$(this,sr,!0);$(this,Qt);$(this,lr);M(this,lr,t=>{if(!Mn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Qt)||this.setEventListener(y(this,lr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Qt))==null||t.call(this),M(this,Qt,void 0))}setEventListener(t){var n;M(this,lr,t),(n=y(this,Qt))==null||n.call(this),M(this,Qt,t(this.setOnline.bind(this)))}setOnline(t){y(this,sr)!==t&&(M(this,sr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,sr)}},sr=new WeakMap,Qt=new WeakMap,lr=new WeakMap,Sc),zl=new N0;function Fo(){let e,t;const n=new Promise((s,l)=>{e=s,t=l});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function C0(e){return Math.min(1e3*2**e,3e4)}function uh(e){return(e??"online")==="online"?zl.isOnline():!0}var ch=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dh(e){let t=!1,n=0,r;const s=Fo(),l=()=>s.status!=="pending",o=S=>{var k;l()||(g(new ch(S)),(k=e.abort)==null||k.call(e))},a=()=>{t=!0},u=()=>{t=!1},c=()=>Va.isFocused()&&(e.networkMode==="always"||zl.isOnline())&&e.canRun(),h=()=>uh(e.networkMode)&&e.canRun(),d=S=>{l()||(r==null||r(),s.resolve(S))},g=S=>{l()||(r==null||r(),s.reject(S))},v=()=>new Promise(S=>{var k;r=p=>{(l()||c())&&S(p)},(k=e.onPause)==null||k.call(e)}).then(()=>{var S;r=void 0,l()||(S=e.onContinue)==null||S.call(e)}),w=()=>{if(l())return;let S;const k=n===0?e.initialPromise:void 0;try{S=k??e.fn()}catch(p){S=Promise.reject(p)}Promise.resolve(S).then(d).catch(p=>{var N;if(l())return;const f=e.retry??(Mn?0:3),m=e.retryDelay??C0,x=typeof m=="function"?m(n,p):m,E=f===!0||typeof f=="number"&&n<f||typeof f=="function"&&f(n,p);if(t||!E){g(p);return}n++,(N=e.onFail)==null||N.call(e,n,p),v0(x).then(()=>c()?void 0:v()).then(()=>{t?g(p):w()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:u,canStart:h,start:()=>(h()?w():v().then(w),s)}}var E0=e=>setTimeout(e,0);function b0(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=E0;const l=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(u=>{n(u)})})})};return{batch:a=>{let u;t++;try{u=a()}finally{t--,t||o()}return u},batchCalls:a=>(...u)=>{l(()=>{a(...u)})},schedule:l,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var fe=b0(),wn,kc,fh=(kc=class{constructor(){$(this,wn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),To(this.gcTime)&&M(this,wn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mn?1/0:5*60*1e3))}clearGcTimeout(){y(this,wn)&&(clearTimeout(y(this,wn)),M(this,wn,void 0))}},wn=new WeakMap,kc),ir,or,Be,jn,ae,xs,Sn,Ze,yt,Nc,P0=(Nc=class extends fh{constructor(t){super();$(this,Ze);$(this,ir);$(this,or);$(this,Be);$(this,jn);$(this,ae);$(this,xs);$(this,Sn);M(this,Sn,!1),M(this,xs,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,jn,t.client),M(this,Be,y(this,jn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,ir,R0(this.options)),this.state=t.state??y(this,ir),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,ae))==null?void 0:t.promise}setOptions(t){this.options={...y(this,xs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Be).remove(this)}setData(t,n){const r=Mo(this.state.data,t,this.options);return A(this,Ze,yt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){A(this,Ze,yt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=y(this,ae))==null?void 0:r.promise;return(s=y(this,ae))==null||s.cancel(t),n?n.then(Le).catch(Le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,ir))}isActive(){return this.observers.some(t=>He(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>sn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ih(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Be).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,ae)&&(y(this,Sn)?y(this,ae).cancel({revert:!0}):y(this,ae).cancelRetry()),this.scheduleGc()),y(this,Be).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||A(this,Ze,yt).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,h,d,g,v,w,S,k,p,f,m;if(this.state.fetchStatus!=="idle"&&((u=y(this,ae))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,ae))return y(this,ae).continueRetry(),y(this,ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(E=>E.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,s=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(M(this,Sn,!0),r.signal)})},l=()=>{const x=ah(this.options,n),N=(()=>{const R={client:y(this,jn),queryKey:this.queryKey,meta:this.meta};return s(R),R})();return M(this,Sn,!1),this.options.persister?this.options.persister(x,N,this):x(N)},a=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,jn),state:this.state,fetchFn:l};return s(x),x})();(c=this.options.behavior)==null||c.onFetch(a,this),M(this,or,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=a.fetchOptions)==null?void 0:h.meta))&&A(this,Ze,yt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),M(this,ae,dh({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onFail:(x,E)=>{A(this,Ze,yt).call(this,{type:"failed",failureCount:x,error:E})},onPause:()=>{A(this,Ze,yt).call(this,{type:"pause"})},onContinue:()=>{A(this,Ze,yt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const x=await y(this,ae).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(v=(g=y(this,Be).config).onSuccess)==null||v.call(g,x,this),(S=(w=y(this,Be).config).onSettled)==null||S.call(w,x,this.state.error,this),x}catch(x){if(x instanceof ch){if(x.silent)return y(this,ae).promise;if(x.revert){if(this.setState({...y(this,or),fetchStatus:"idle"}),this.state.data===void 0)throw x;return this.state.data}}throw A(this,Ze,yt).call(this,{type:"error",error:x}),(p=(k=y(this,Be).config).onError)==null||p.call(k,x,this),(m=(f=y(this,Be).config).onSettled)==null||m.call(f,this.state.data,x,this),x}finally{this.scheduleGc()}}},ir=new WeakMap,or=new WeakMap,Be=new WeakMap,jn=new WeakMap,ae=new WeakMap,xs=new WeakMap,Sn=new WeakMap,Ze=new WeakSet,yt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...hh(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,or,t.manual?s:void 0),s;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),fe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Be).notify({query:this,type:"updated",action:t})})},Nc);function hh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:uh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function R0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ut,Cc,L0=(Cc=class extends Ts{constructor(t={}){super();$(this,ut);this.config=t,M(this,ut,new Map)}build(t,n,r){const s=n.queryKey,l=n.queryHash??Ha(s,n);let o=this.get(l);return o||(o=new P0({client:t,queryKey:s,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){y(this,ut).has(t.queryHash)||(y(this,ut).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ut).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ut).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ut).get(t)}getAll(){return[...y(this,ut).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>uc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>uc(t,r)):n}notify(t){fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ut=new WeakMap,Cc),ct,je,kn,dt,Dt,Ec,T0=(Ec=class extends fh{constructor(t){super();$(this,dt);$(this,ct);$(this,je);$(this,kn);this.mutationId=t.mutationId,M(this,je,t.mutationCache),M(this,ct,[]),this.state=t.state||_0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,ct).includes(t)||(y(this,ct).push(t),this.clearGcTimeout(),y(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,ct,y(this,ct).filter(n=>n!==t)),this.scheduleGc(),y(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,ct).length||(this.state.status==="pending"?this.scheduleGc():y(this,je).remove(this))}continue(){var t;return((t=y(this,kn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,o,a,u,c,h,d,g,v,w,S,k,p,f,m,x,E,N,R,P;const n=()=>{A(this,dt,Dt).call(this,{type:"continue"})};M(this,kn,dh({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,T)=>{A(this,dt,Dt).call(this,{type:"failed",failureCount:_,error:T})},onPause:()=>{A(this,dt,Dt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,je).canRun(this)}));const r=this.state.status==="pending",s=!y(this,kn).canStart();try{if(r)n();else{A(this,dt,Dt).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(l=y(this,je).config).onMutate)==null?void 0:o.call(l,t,this));const T=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t));T!==this.state.context&&A(this,dt,Dt).call(this,{type:"pending",context:T,variables:t,isPaused:s})}const _=await y(this,kn).start();return await((h=(c=y(this,je).config).onSuccess)==null?void 0:h.call(c,_,t,this.state.context,this)),await((g=(d=this.options).onSuccess)==null?void 0:g.call(d,_,t,this.state.context)),await((w=(v=y(this,je).config).onSettled)==null?void 0:w.call(v,_,null,this.state.variables,this.state.context,this)),await((k=(S=this.options).onSettled)==null?void 0:k.call(S,_,null,t,this.state.context)),A(this,dt,Dt).call(this,{type:"success",data:_}),_}catch(_){try{throw await((f=(p=y(this,je).config).onError)==null?void 0:f.call(p,_,t,this.state.context,this)),await((x=(m=this.options).onError)==null?void 0:x.call(m,_,t,this.state.context)),await((N=(E=y(this,je).config).onSettled)==null?void 0:N.call(E,void 0,_,this.state.variables,this.state.context,this)),await((P=(R=this.options).onSettled)==null?void 0:P.call(R,void 0,_,t,this.state.context)),_}finally{A(this,dt,Dt).call(this,{type:"error",error:_})}}finally{y(this,je).runNext(this)}}},ct=new WeakMap,je=new WeakMap,kn=new WeakMap,dt=new WeakSet,Dt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),fe.batch(()=>{y(this,ct).forEach(r=>{r.onMutationUpdate(t)}),y(this,je).notify({mutation:this,type:"updated",action:t})})},Ec);function _0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wt,et,vs,bc,O0=(bc=class extends Ts{constructor(t={}){super();$(this,wt);$(this,et);$(this,vs);this.config=t,M(this,wt,new Set),M(this,et,new Map),M(this,vs,0)}build(t,n,r){const s=new T0({mutationCache:this,mutationId:++Ms(this,vs)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){y(this,wt).add(t);const n=Zs(t);if(typeof n=="string"){const r=y(this,et).get(n);r?r.push(t):y(this,et).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,wt).delete(t)){const n=Zs(t);if(typeof n=="string"){const r=y(this,et).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&y(this,et).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Zs(t);if(typeof n=="string"){const r=y(this,et).get(n),s=r==null?void 0:r.find(l=>l.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Zs(t);if(typeof n=="string"){const s=(r=y(this,et).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fe.batch(()=>{y(this,wt).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,wt).clear(),y(this,et).clear()})}getAll(){return Array.from(y(this,wt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cc(n,r))}findAll(t={}){return this.getAll().filter(n=>cc(t,n))}notify(t){fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return fe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Le))))}},wt=new WeakMap,et=new WeakMap,vs=new WeakMap,bc);function Zs(e){var t;return(t=e.options.scope)==null?void 0:t.id}function hc(e){return{onFetch:(t,n)=>{var h,d,g,v,w;const r=t.options,s=(g=(d=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:d.fetchMore)==null?void 0:g.direction,l=((v=t.state.data)==null?void 0:v.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},u=0;const c=async()=>{let S=!1;const k=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?S=!0:t.signal.addEventListener("abort",()=>{S=!0}),t.signal)})},p=ah(t.options,t.fetchOptions),f=async(m,x,E)=>{if(S)return Promise.reject();if(x==null&&m.pages.length)return Promise.resolve(m);const R=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:x,direction:E?"backward":"forward",meta:t.options.meta};return k(V),V})(),P=await p(R),{maxPages:_}=t.options,T=E?j0:w0;return{pages:T(m.pages,P,_),pageParams:T(m.pageParams,x,_)}};if(s&&l.length){const m=s==="backward",x=m?M0:pc,E={pages:l,pageParams:o},N=x(r,E);a=await f(E,N,m)}else{const m=e??l.length;do{const x=u===0?o[0]??r.initialPageParam:pc(r,a);if(u>0&&x==null)break;a=await f(a,x),u++}while(u<m)}return a};t.options.persister?t.fetchFn=()=>{var S,k;return(k=(S=t.options).persister)==null?void 0:k.call(S,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function pc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function M0(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var te,Bt,Ht,ar,ur,Wt,cr,dr,Pc,F0=(Pc=class{constructor(e={}){$(this,te);$(this,Bt);$(this,Ht);$(this,ar);$(this,ur);$(this,Wt);$(this,cr);$(this,dr);M(this,te,e.queryCache||new L0),M(this,Bt,e.mutationCache||new O0),M(this,Ht,e.defaultOptions||{}),M(this,ar,new Map),M(this,ur,new Map),M(this,Wt,0)}mount(){Ms(this,Wt)._++,y(this,Wt)===1&&(M(this,cr,Va.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,te).onFocus())})),M(this,dr,zl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,te).onOnline())})))}unmount(){var e,t;Ms(this,Wt)._--,y(this,Wt)===0&&((e=y(this,cr))==null||e.call(this),M(this,cr,void 0),(t=y(this,dr))==null||t.call(this),M(this,dr,void 0))}isFetching(e){return y(this,te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Bt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,te).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,te).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(sn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,te).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=y(this,te).get(r.queryHash),l=s==null?void 0:s.state.data,o=x0(t,l);if(o!==void 0)return y(this,te).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return fe.batch(()=>y(this,te).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,te).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,te);fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,te);return fe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=fe.batch(()=>y(this,te).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Le).catch(Le)}invalidateQueries(e,t={}){return fe.batch(()=>(y(this,te).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=fe.batch(()=>y(this,te).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let l=s.fetch(void 0,n);return n.throwOnError||(l=l.catch(Le)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Le)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,te).build(this,t);return n.isStaleByTime(sn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Le).catch(Le)}fetchInfiniteQuery(e){return e.behavior=hc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Le).catch(Le)}ensureInfiniteQueryData(e){return e.behavior=hc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zl.isOnline()?y(this,Bt).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,te)}getMutationCache(){return y(this,Bt)}getDefaultOptions(){return y(this,Ht)}setDefaultOptions(e){M(this,Ht,e)}setQueryDefaults(e,t){y(this,ar).set(gs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,ar).values()],n={};return t.forEach(r=>{ys(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,ur).set(gs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,ur).values()],n={};return t.forEach(r=>{ys(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Ht).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ha(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Wa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Ht).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,te).clear(),y(this,Bt).clear()}},te=new WeakMap,Bt=new WeakMap,Ht=new WeakMap,ar=new WeakMap,ur=new WeakMap,Wt=new WeakMap,cr=new WeakMap,dr=new WeakMap,Pc),Re,U,ws,Se,Nn,fr,jt,Vt,js,hr,pr,Cn,En,qt,mr,H,Qr,Do,Io,$o,zo,Ao,Uo,Qo,ph,Rc,D0=(Rc=class extends Ts{constructor(t,n){super();$(this,H);$(this,Re);$(this,U);$(this,ws);$(this,Se);$(this,Nn);$(this,fr);$(this,jt);$(this,Vt);$(this,js);$(this,hr);$(this,pr);$(this,Cn);$(this,En);$(this,qt);$(this,mr,new Set);this.options=n,M(this,Re,t),M(this,Vt,null),M(this,jt,Fo()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,U).addObserver(this),mc(y(this,U),this.options)?A(this,H,Qr).call(this):this.updateResult(),A(this,H,zo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bo(y(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bo(y(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,A(this,H,Ao).call(this),A(this,H,Uo).call(this),y(this,U).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,U);if(this.options=y(this,Re).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof He(this.options.enabled,y(this,U))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");A(this,H,Qo).call(this),y(this,U).setOptions(this.options),n._defaulted&&!_o(this.options,n)&&y(this,Re).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,U),observer:this});const s=this.hasListeners();s&&gc(y(this,U),r,this.options,n)&&A(this,H,Qr).call(this),this.updateResult(),s&&(y(this,U)!==r||He(this.options.enabled,y(this,U))!==He(n.enabled,y(this,U))||sn(this.options.staleTime,y(this,U))!==sn(n.staleTime,y(this,U)))&&A(this,H,Do).call(this);const l=A(this,H,Io).call(this);s&&(y(this,U)!==r||He(this.options.enabled,y(this,U))!==He(n.enabled,y(this,U))||l!==y(this,qt))&&A(this,H,$o).call(this,l)}getOptimisticResult(t){const n=y(this,Re).getQueryCache().build(y(this,Re),t),r=this.createResult(n,t);return $0(this,r)&&(M(this,Se,r),M(this,fr,this.options),M(this,Nn,y(this,U).state)),r}getCurrentResult(){return y(this,Se)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&!this.options.experimental_prefetchInRender&&y(this,jt).status==="pending"&&y(this,jt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,s))})}trackProp(t){y(this,mr).add(t)}getCurrentQuery(){return y(this,U)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Re).defaultQueryOptions(t),r=y(this,Re).getQueryCache().build(y(this,Re),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return A(this,H,Qr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Se)))}createResult(t,n){var _;const r=y(this,U),s=this.options,l=y(this,Se),o=y(this,Nn),a=y(this,fr),c=t!==r?t.state:y(this,ws),{state:h}=t;let d={...h},g=!1,v;if(n._optimisticResults){const T=this.hasListeners(),V=!T&&mc(t,n),le=T&&gc(t,r,n,s);(V||le)&&(d={...d,...hh(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:w,errorUpdatedAt:S,status:k}=d;v=d.data;let p=!1;if(n.placeholderData!==void 0&&v===void 0&&k==="pending"){let T;l!=null&&l.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(T=l.data,p=!0):T=typeof n.placeholderData=="function"?n.placeholderData((_=y(this,pr))==null?void 0:_.state.data,y(this,pr)):n.placeholderData,T!==void 0&&(k="success",v=Mo(l==null?void 0:l.data,T,n),g=!0)}if(n.select&&v!==void 0&&!p)if(l&&v===(o==null?void 0:o.data)&&n.select===y(this,js))v=y(this,hr);else try{M(this,js,n.select),v=n.select(v),v=Mo(l==null?void 0:l.data,v,n),M(this,hr,v),M(this,Vt,null)}catch(T){M(this,Vt,T)}y(this,Vt)&&(w=y(this,Vt),v=y(this,hr),S=Date.now(),k="error");const f=d.fetchStatus==="fetching",m=k==="pending",x=k==="error",E=m&&f,N=v!==void 0,P={status:k,fetchStatus:d.fetchStatus,isPending:m,isSuccess:k==="success",isError:x,isInitialLoading:E,isLoading:E,data:v,dataUpdatedAt:d.dataUpdatedAt,error:w,errorUpdatedAt:S,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:f,isRefetching:f&&!m,isLoadingError:x&&!N,isPaused:d.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:x&&N,isStale:qa(t,n),refetch:this.refetch,promise:y(this,jt),isEnabled:He(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=be=>{P.status==="error"?be.reject(P.error):P.data!==void 0&&be.resolve(P.data)},V=()=>{const be=M(this,jt,P.promise=Fo());T(be)},le=y(this,jt);switch(le.status){case"pending":t.queryHash===r.queryHash&&T(le);break;case"fulfilled":(P.status==="error"||P.data!==le.value)&&V();break;case"rejected":(P.status!=="error"||P.error!==le.reason)&&V();break}}return P}updateResult(){const t=y(this,Se),n=this.createResult(y(this,U),this.options);if(M(this,Nn,y(this,U).state),M(this,fr,this.options),y(this,Nn).data!==void 0&&M(this,pr,y(this,U)),_o(n,t))return;M(this,Se,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!y(this,mr).size)return!0;const o=new Set(l??y(this,mr));return this.options.throwOnError&&o.add("error"),Object.keys(y(this,Se)).some(a=>{const u=a;return y(this,Se)[u]!==t[u]&&o.has(u)})};A(this,H,ph).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&A(this,H,zo).call(this)}},Re=new WeakMap,U=new WeakMap,ws=new WeakMap,Se=new WeakMap,Nn=new WeakMap,fr=new WeakMap,jt=new WeakMap,Vt=new WeakMap,js=new WeakMap,hr=new WeakMap,pr=new WeakMap,Cn=new WeakMap,En=new WeakMap,qt=new WeakMap,mr=new WeakMap,H=new WeakSet,Qr=function(t){A(this,H,Qo).call(this);let n=y(this,U).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Le)),n},Do=function(){A(this,H,Ao).call(this);const t=sn(this.options.staleTime,y(this,U));if(Mn||y(this,Se).isStale||!To(t))return;const r=ih(y(this,Se).dataUpdatedAt,t)+1;M(this,Cn,setTimeout(()=>{y(this,Se).isStale||this.updateResult()},r))},Io=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,U)):this.options.refetchInterval)??!1},$o=function(t){A(this,H,Uo).call(this),M(this,qt,t),!(Mn||He(this.options.enabled,y(this,U))===!1||!To(y(this,qt))||y(this,qt)===0)&&M(this,En,setInterval(()=>{(this.options.refetchIntervalInBackground||Va.isFocused())&&A(this,H,Qr).call(this)},y(this,qt)))},zo=function(){A(this,H,Do).call(this),A(this,H,$o).call(this,A(this,H,Io).call(this))},Ao=function(){y(this,Cn)&&(clearTimeout(y(this,Cn)),M(this,Cn,void 0))},Uo=function(){y(this,En)&&(clearInterval(y(this,En)),M(this,En,void 0))},Qo=function(){const t=y(this,Re).getQueryCache().build(y(this,Re),this.options);if(t===y(this,U))return;const n=y(this,U);M(this,U,t),M(this,ws,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ph=function(t){fe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Se))}),y(this,Re).getQueryCache().notify({query:y(this,U),type:"observerResultsUpdated"})})},Rc);function I0(e,t){return He(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mc(e,t){return I0(e,t)||e.state.data!==void 0&&Bo(e,t,t.refetchOnMount)}function Bo(e,t,n){if(He(t.enabled,e)!==!1&&sn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qa(e,t)}return!1}function gc(e,t,n,r){return(e!==t||He(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&qa(e,n)}function qa(e,t){return He(t.enabled,e)!==!1&&e.isStaleByTime(sn(t.staleTime,e))}function $0(e,t){return!_o(e.getCurrentResult(),t)}var mh=j.createContext(void 0),si=e=>{const t=j.useContext(mh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},z0=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),i.jsx(mh.Provider,{value:e,children:t})),gh=j.createContext(!1),A0=()=>j.useContext(gh);gh.Provider;function U0(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Q0=j.createContext(U0()),B0=()=>j.useContext(Q0),H0=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},W0=e=>{j.useEffect(()=>{e.clearReset()},[e])},V0=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||S0(n,[e.error,r])),q0=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},K0=(e,t)=>e.isLoading&&e.isFetching&&!t,G0=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function J0(e,t,n){var d,g,v,w,S;const r=A0(),s=B0(),l=si(),o=l.defaultQueryOptions(e);(g=(d=l.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||g.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",q0(o),H0(o,s),W0(s);const a=!l.getQueryCache().get(o.queryHash),[u]=j.useState(()=>new t(l,o)),c=u.getOptimisticResult(o),h=!r&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(k=>{const p=h?u.subscribe(fe.batchCalls(k)):Le;return u.updateResult(),p},[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),j.useEffect(()=>{u.setOptions(o)},[o,u]),G0(o,c))throw yc(o,u,s);if(V0({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:l.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if((w=(v=l.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||w.call(v,o,c),o.experimental_prefetchInRender&&!Mn&&K0(c,r)){const k=a?yc(o,u,s):(S=l.getQueryCache().get(o.queryHash))==null?void 0:S.promise;k==null||k.catch(Le).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?c:u.trackResult(c)}function fn(e,t){return J0(e,D0)}const Y0="",X0=(e,t)=>fn({queryKey:["route-history",e,t],queryFn:async()=>{const n=new URLSearchParams({method:e,url:t}),r=await fetch(`${Y0}/console/routes/history?${n}`);if(!r.ok)throw new Error(`Failed to fetch history for ${e} ${t}`);return r.json()},enabled:!!e&&!!t,refetchInterval:3e3}),yh="",Z0=e=>fn({queryKey:["queue",e],queryFn:async()=>{const t=await fetch(`${yh}/console/queues/${e}`);if(!t.ok)throw new Error(`Failed to fetch queue ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),ey=e=>fn({queryKey:["queue-history",e],queryFn:async()=>{const t=await fetch(`${yh}/console/queues/${e}/history`);if(!t.ok)throw new Error(`Failed to fetch history for ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),xh="",ty=e=>fn({queryKey:["schedule",e],queryFn:async()=>{const t=await fetch(`${xh}/console/schedules/${e}`);if(!t.ok)throw new Error(`Failed to fetch schedule ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),ny=e=>fn({queryKey:["schedule-executions",e],queryFn:async()=>{const t=await fetch(`${xh}/console/schedules/${e}/executions`);if(!t.ok)throw new Error(`Failed to fetch executions for ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),ry="",vh=()=>fn({queryKey:["modules"],queryFn:async()=>{const e=await fetch(`${ry}/console/modules`);if(!e.ok)throw new Error("Failed to fetch modules");return e.json()},refetchInterval:3e3}),Ho="",sy=(e={})=>{const{limit:t=100,level:n,module:r,reqId:s}=e,l=si(),o=j.useRef(null),a=fn({queryKey:["logs",t,n,r,s],queryFn:async()=>{const u=new URLSearchParams;u.append("limit",t.toString()),n&&u.append("level",n),r&&u.append("module",r),s&&u.append("reqId",s);const c=await fetch(`${Ho}/console/logs?${u}`);if(!c.ok)throw new Error("Failed to fetch logs");return c.json()},refetchInterval:5e3});return j.useEffect(()=>{o.current&&o.current.close();const u=new URLSearchParams;n&&u.append("level",n),r&&u.append("module",r),s&&u.append("reqId",s);const c=new EventSource(`${Ho}/console/logs/stream?${u}`);return o.current=c,c.onmessage=h=>{try{const d=JSON.parse(h.data);d.type==="initial"?l.setQueryData(["logs",t,n,r,s],{logs:d.logs}):d.type==="log"&&l.setQueryData(["logs",t,n,r,s],g=>g?{logs:[d.log,...g.logs].slice(0,t)}:{logs:[d.log]})}catch(d){console.error("Failed to parse SSE data:",d)}},c.onerror=h=>{console.error("SSE connection error:",h)},()=>{o.current&&(o.current.close(),o.current=null)}},[l,t,n,r,s]),a},ly=()=>{const e=si();return{clearLogs:async()=>{const n=await fetch(`${Ho}/console/logs`,{method:"DELETE"});if(n.ok)return e.invalidateQueries({queryKey:["logs"]}),n.json();throw new Error("Failed to clear logs")}}},iy=e=>fn({queryKey:["websockets",e],queryFn:async()=>{const t=e.replace(/^\//,""),n=await fetch(`/console/websockets/${t}`);if(!n.ok)throw new Error("Failed to fetch websocket path");return n.json()},refetchInterval:3e3,enabled:!!e}),oy=()=>{const e=si();return{send:async(n,r)=>{const s=await fetch(`/console/websockets/${n}/send`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!s.ok){const l=await s.json().catch(()=>({error:"Unknown error"}));throw new Error(l.error||"Failed to send message")}return e.invalidateQueries({queryKey:["websockets"]}),s.json()}}},ay=({module:e,onSelect:t})=>{var r,s;const n=e.routes.length+e.queues.length+e.schedules.length+(((r=e.websockets)==null?void 0:r.length)??0);return i.jsxs("div",{className:"group relative bg-white rounded-xl shadow-sm border border-gray-200 hover:shadow-lg hover:border-blue-300 transition-all duration-200 cursor-pointer overflow-hidden",onClick:t,children:[i.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-blue-500 to-purple-600"}),i.jsxs("div",{className:"p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center",children:i.jsx("span",{className:"text-white font-bold text-lg",children:e.name.charAt(0).toUpperCase()})}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900 group-hover:text-blue-600 transition-colors",children:e.name}),i.jsxs("p",{className:"text-sm text-gray-500",children:[n," total resources"]})]})]}),i.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:i.jsx("svg",{className:"w-5 h-5 text-blue-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[i.jsxs("div",{className:"text-center p-3 bg-green-50 rounded-lg border border-green-100",children:[i.jsx("div",{className:"text-2xl font-bold text-green-600 mb-1",children:e.routes.length}),i.jsx("div",{className:"text-xs font-medium text-green-700 uppercase tracking-wide",children:"HTTP Routes"})]}),i.jsxs("div",{className:"text-center p-3 bg-blue-50 rounded-lg border border-blue-100",children:[i.jsx("div",{className:"text-2xl font-bold text-blue-600 mb-1",children:e.queues.length}),i.jsx("div",{className:"text-xs font-medium text-blue-700 uppercase tracking-wide",children:"Event Queues"})]}),i.jsxs("div",{className:"text-center p-3 bg-purple-50 rounded-lg border border-purple-100",children:[i.jsx("div",{className:"text-2xl font-bold text-purple-600 mb-1",children:e.schedules.length}),i.jsx("div",{className:"text-xs font-medium text-purple-700 uppercase tracking-wide",children:"Schedules"})]}),i.jsxs("div",{className:"text-center p-3 bg-indigo-50 rounded-lg border border-indigo-100",children:[i.jsx("div",{className:"text-2xl font-bold text-indigo-600 mb-1",children:((s=e.websockets)==null?void 0:s.length)??0}),i.jsx("div",{className:"text-xs font-medium text-indigo-700 uppercase tracking-wide",children:"WebSockets"})]})]}),i.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100",children:i.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[i.jsx("span",{children:"Click to explore module"}),i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}),i.jsx("span",{children:"Active"})]})]})})]})]})},uy=({onModuleSelect:e})=>{const{data:t,isLoading:n,error:r}=vh();if(n)return i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"animate-pulse",children:"Loading modules..."})});if(r)return i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"text-red-600",children:["Error loading modules: ",r.message]})});const s=(t==null?void 0:t.modules)||[];return i.jsxs("div",{className:"space-y-8",children:[i.jsxs("div",{className:"text-center",children:[i.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Your Modules"}),i.jsx("p",{className:"text-gray-600",children:"Explore and manage your CloudNux modules"})]}),s.length===0?i.jsxs("div",{className:"text-center py-16",children:[i.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:i.jsx("svg",{className:"w-10 h-10 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"})})}),i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No modules found"}),i.jsx("p",{className:"text-gray-500 mb-4",children:"Deploy some modules to see them here"})]}):i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:s.map(l=>i.jsx(ay,{module:l,onSelect:()=>e(l.name)},l.name))})]})},xc=()=>{const e=_t(),t=n=>{e(`/modules/${n}`)};return i.jsx(uy,{onModuleSelect:t})},cy=({type:e,title:t,count:n,color:r,items:s,moduleName:l})=>{const[o,a]=j.useState(!1),u=_t(),h=(g=>{switch(g){case"green":return{bg:"bg-green-50",border:"border-green-200",header:"bg-green-100",text:"text-green-800",badge:"bg-green-500"};case"blue":return{bg:"bg-blue-50",border:"border-blue-200",header:"bg-blue-100",text:"text-blue-800",badge:"bg-blue-500"};case"purple":return{bg:"bg-purple-50",border:"border-purple-200",header:"bg-purple-100",text:"text-purple-800",badge:"bg-purple-500"};case"indigo":return{bg:"bg-indigo-50",border:"border-indigo-200",header:"bg-indigo-100",text:"text-indigo-800",badge:"bg-indigo-500"}}})(r),d=(g,v)=>{if(e==="http"){const w=g;return i.jsx("div",{className:"p-2 bg-white rounded border text-xs cursor-pointer hover:bg-green-50 transition-colors",onClick:()=>l&&u(`/modules/${l}/routes?url=${encodeURIComponent(w.url)}&method=${w.method}`),children:i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:`px-1 py-0.5 rounded text-xs font-medium ${w.method==="GET"?"bg-green-100 text-green-700":w.method==="POST"?"bg-blue-100 text-blue-700":w.method==="PUT"?"bg-orange-100 text-orange-700":w.method==="DELETE"?"bg-red-100 text-red-700":"bg-gray-100 text-gray-700"}`,children:Array.isArray(w.method)?w.method.join(","):w.method}),i.jsx("span",{className:"font-mono",children:w.url})]})},v)}if(e==="queue"){const w=g;return i.jsx("div",{className:"p-2 bg-white rounded border text-xs cursor-pointer hover:bg-blue-50 transition-colors",onClick:()=>l&&u(`/modules/${l}/queues/${w.name}`),children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"font-medium",children:w.name}),w.stats&&i.jsxs("div",{className:"flex space-x-1",children:[i.jsxs("span",{className:"text-green-600",children:["I:",w.stats.incoming]}),i.jsxs("span",{className:"text-yellow-600",children:["P:",w.stats.processing]}),i.jsxs("span",{className:"text-red-600",children:["D:",w.stats.dlq]})]})]})},v)}if(e==="schedule"){const w=g;return i.jsx("div",{className:"p-2 bg-white rounded border text-xs cursor-pointer hover:bg-purple-50 transition-colors",onClick:()=>l&&u(`/modules/${l}/schedules/${w.name}`),children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:`px-1 py-0.5 rounded text-xs ${w.isRunning?"bg-yellow-100 text-yellow-700":w.enabled?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"}`,children:w.isRunning?"RUN":w.enabled?"ON":"OFF"}),i.jsx("span",{className:"font-medium",children:w.name})]}),w.cronExpression&&i.jsx("span",{className:"font-mono text-gray-600",children:w.cronExpression})]})},v)}if(e==="websocket"){const w=g;return i.jsx("div",{className:"p-2 bg-white rounded border text-xs cursor-pointer hover:bg-indigo-50 transition-colors",onClick:()=>l&&u(`/modules/${l}/websockets/${w.path.replace(/^\//,"")}`),children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"font-mono font-medium",children:w.path}),i.jsxs("span",{className:"text-indigo-600",children:[w.connectionCount," conn"]})]})},v)}return null};return i.jsxs("div",{className:`border rounded-lg overflow-hidden ${h.border} ${h.bg}`,children:[i.jsx("div",{className:`p-4 cursor-pointer hover:opacity-80 transition-opacity ${h.header}`,onClick:()=>a(!o),children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("span",{className:`w-3 h-3 rounded-full ${h.badge}`}),i.jsx("span",{className:`font-medium ${h.text}`,children:t})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:`text-2xl font-bold ${h.text}`,children:n}),i.jsx("span",{className:"text-gray-400 text-sm",children:o?"▼":"▶"})]})]})}),o&&n>0&&i.jsx("div",{className:"p-4 space-y-2 max-h-64 overflow-y-auto",children:s.map((g,v)=>d(g,v))})]})},dy=e=>{const t=new Date(e),n=t.toLocaleTimeString("en-US",{hour12:!1}),r=t.getMilliseconds().toString().padStart(3,"0");return`${n}.${r}`},_s=({moduleName:e,title:t})=>{const[n,r]=j.useState(!0),[s,l]=j.useState(""),[o,a]=j.useState(""),[u,c]=j.useState(new Set),h=j.useRef(null),d=j.useRef(null),g=N=>{c(R=>{const P=new Set(R);return P.has(N)?P.delete(N):P.add(N),P})},{data:v,isLoading:w}=sy({limit:200,level:o||void 0,module:e}),{clearLogs:S}=ly(),k=(v==null?void 0:v.logs)||[];j.useEffect(()=>{n&&h.current&&h.current.scrollIntoView({behavior:"smooth"})},[k,n]);const p=()=>{if(d.current){const{scrollTop:N,scrollHeight:R,clientHeight:P}=d.current,_=N+P>=R-10;r(_)}},f=N=>{switch(N.toLowerCase()){case"fatal":return"text-red-500";case"error":return"text-red-400";case"warn":return"text-yellow-400";case"info":return"text-blue-400";case"debug":return"text-gray-400";case"trace":return"text-gray-500";default:return"text-gray-300"}},m=N=>{switch(N.toLowerCase()){case"fatal":return"bg-red-900 text-red-300";case"error":return"bg-red-800 text-red-200";case"warn":return"bg-yellow-800 text-yellow-200";case"info":return"bg-blue-800 text-blue-200";case"debug":return"bg-gray-700 text-gray-300";case"trace":return"bg-gray-800 text-gray-400";default:return"bg-gray-700 text-gray-300"}},x=k.filter(N=>{var P,_;const R=s.toLowerCase();return R?N.message.toLowerCase().includes(R)||N.levelName.toLowerCase().includes(R)||((P=N.module)==null?void 0:P.toLowerCase().includes(R))||((_=N.reqId)==null?void 0:_.toLowerCase().includes(R)):!0}),E=async()=>{try{await S()}catch(N){console.error("Failed to clear logs:",N)}};return i.jsxs("div",{className:"bg-gray-900 rounded-lg border border-gray-700 overflow-hidden",children:[i.jsx("div",{className:"bg-gray-800 px-4 py-3 border-b border-gray-700",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsxs("div",{className:"flex space-x-1",children:[i.jsx("div",{className:"w-3 h-3 bg-red-500 rounded-full"}),i.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full"}),i.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"})]}),i.jsx("span",{className:"text-gray-300 text-sm font-medium",children:t||(e?`${e} — Logs`:"Logs")}),x.length>0&&i.jsxs("span",{className:"text-xs text-gray-500",children:[x.length," entries"]})]}),i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("input",{type:"text",placeholder:"Filter...",value:s,onChange:N=>l(N.target.value),className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 border border-gray-600 rounded focus:outline-none focus:border-blue-500 w-36"}),i.jsxs("select",{value:o,onChange:N=>a(N.target.value),className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 border border-gray-600 rounded focus:outline-none focus:border-blue-500",children:[i.jsx("option",{value:"",children:"All Levels"}),i.jsx("option",{value:"fatal",children:"Fatal"}),i.jsx("option",{value:"error",children:"Error"}),i.jsx("option",{value:"warn",children:"Warn"}),i.jsx("option",{value:"info",children:"Info"}),i.jsx("option",{value:"debug",children:"Debug"}),i.jsx("option",{value:"trace",children:"Trace"})]}),i.jsx("button",{onClick:E,className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 rounded hover:bg-gray-600",children:"Clear"}),i.jsxs("label",{className:"flex items-center space-x-1 cursor-pointer",children:[i.jsx("input",{type:"checkbox",checked:n,onChange:N=>r(N.target.checked),className:"text-blue-500"}),i.jsx("span",{className:"text-xs text-gray-400",children:"Auto-scroll"})]})]})]})}),i.jsx("div",{ref:d,onScroll:p,className:"bg-gray-900 p-3 h-96 overflow-y-auto font-mono text-xs",children:w?i.jsx("div",{className:"text-gray-500 text-center py-8",children:"Loading logs..."}):x.length===0?i.jsx("div",{className:"text-gray-500 text-center py-8",children:s||o?"No logs match your filters":"No logs yet"}):i.jsxs("div",{className:"space-y-0.5",children:[x.map(N=>i.jsxs("div",{className:"hover:bg-gray-800 px-2 py-0.5 rounded group",children:[i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsx("span",{className:"text-gray-600 shrink-0 tabular-nums",children:dy(N.timestamp)}),i.jsx("span",{className:`shrink-0 uppercase font-bold px-1 rounded leading-4 ${m(N.levelName)}`,children:N.levelName.slice(0,4)}),N.module&&i.jsxs("span",{className:"text-purple-400 shrink-0 font-medium",children:["[",N.module,"]"]}),i.jsx("span",{className:`break-all flex-1 ${f(N.levelName)}`,children:N.message}),N.reqId&&i.jsx("span",{className:"text-gray-700 group-hover:text-gray-500 shrink-0 transition-colors",children:N.reqId})]}),N.meta&&Object.keys(N.meta).length>0&&i.jsxs("div",{className:"ml-6 mt-0.5 mb-1",children:[i.jsxs("button",{onClick:()=>g(N.id),className:"text-gray-600 hover:text-gray-400 select-none",children:[u.has(N.id)?"▼":"▶"," meta (",Object.keys(N.meta).length,")"]}),u.has(N.id)&&i.jsx("pre",{className:"text-gray-500 whitespace-pre-wrap break-all",children:JSON.stringify(N.meta,null,2)})]})]},N.id)),i.jsx("div",{ref:h})]})})]})},fy=({moduleName:e,onBack:t})=>{const{data:n,isLoading:r}=vh();if(r)return i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"animate-pulse",children:"Loading module details..."})});const s=n==null?void 0:n.modules.find(d=>d.name===e);if(!s)return i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsxs("div",{className:"text-red-600",children:["Module not found: ",e]}),i.jsx("button",{onClick:t,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]});const l=s.routes,o=s.queues,a=s.schedules,u=s.websockets??[],c=[l.length>0&&{type:"http",title:"HTTP Endpoints",count:l.length,color:"green",items:l},o.length>0&&{type:"queue",title:"Event Queues",count:o.length,color:"blue",items:o},a.length>0&&{type:"schedule",title:"Scheduled Jobs",count:a.length,color:"purple",items:a},u.length>0&&{type:"websocket",title:"WebSockets",count:u.length,color:"indigo",items:u}].filter(Boolean),h=c.length<=2?"md:grid-cols-2":c.length===3?"md:grid-cols-3":"md:grid-cols-4";return i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("button",{onClick:t,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"← Back"}),i.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:s.name}),i.jsx("span",{className:"px-2 py-1 text-xs font-medium rounded bg-indigo-100 text-indigo-800",children:"MODULE"})]}),i.jsxs("div",{className:"flex space-x-4 text-sm text-gray-600",children:[l.length>0&&i.jsxs("span",{children:[l.length," routes"]}),o.length>0&&i.jsxs("span",{children:[o.length," queues"]}),a.length>0&&i.jsxs("span",{children:[a.length," schedules"]}),u.length>0&&i.jsxs("span",{children:[u.length," websockets"]})]})]})}),i.jsx("div",{className:`grid grid-cols-1 gap-6 ${h}`,children:c.map(d=>i.jsx(cy,{type:d.type,title:d.title,count:d.count,color:d.color,items:d.items,moduleName:e},d.type))}),i.jsx(_s,{moduleName:e})]})},hy=()=>{const{moduleName:e}=Rs(),t=_t(),n=()=>{t("/modules")};return e?i.jsx(fy,{moduleName:e,onBack:n}):i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("div",{className:"text-red-600",children:"Invalid module name"}),i.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]})},_e=()=>`${window.location.protocol}//${window.location.host}`,py=({moduleName:e,queueName:t,onBack:n})=>{var F,we,L,D;const{data:r,isLoading:s,error:l}=Z0(t),{data:o}=ey(t),a=(o==null?void 0:o.history)??[],[u,c]=j.useState(null),[h,d]=j.useState("incoming"),[g,v]=j.useState(new Set),[w,S]=j.useState(!1),[k,p]=j.useState(`{
|
|
52
|
+
"message": "",
|
|
53
|
+
"data": {}
|
|
54
|
+
}`),[f,m]=j.useState(`{
|
|
55
|
+
"custom-header": "value"
|
|
56
|
+
}`),[x,E]=j.useState(!1),[N,R]=j.useState(!1),[P,_]=j.useState(!1);if(s)return i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"animate-pulse",children:"Loading queue details..."})});if(l||!r)return i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsxs("div",{className:"text-red-600",children:["Error loading queue: ",l==null?void 0:l.message]}),i.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Module"})]});const T=async()=>{try{const C=await fetch(`/console/queues/${t}/process-dlq`);if(C.ok){const I=await C.json();alert(I.message||"DLQ processing completed")}else{const I=await C.json();alert(`Failed to process DLQ: ${I.error}`)}}catch(C){console.error("Failed to process DLQ:",C),alert("Failed to process DLQ")}},V=async()=>{if(confirm("Are you sure you want to purge all DLQ messages? This cannot be undone."))try{const C=await fetch(`/console/queues/${t}/purge-dlq`);if(C.ok){const I=await C.json();alert(I.message||"DLQ purged successfully")}else{const I=await C.json();alert(`Failed to purge DLQ: ${I.error}`)}}catch(C){console.error("Failed to purge DLQ:",C),alert("Failed to purge DLQ")}},le=async()=>{try{const C=JSON.parse(k),Q={"Content-Type":"application/json",...JSON.parse(f)},me=await fetch(`/console/queues/${t}/enqueue`,{method:"POST",headers:Q,body:JSON.stringify(C)});if(me.ok){const Pe=await me.json();alert(`Message enqueued with ID: ${Pe.id}`),S(!1),p(`{
|
|
57
|
+
"message": "",
|
|
58
|
+
"data": {}
|
|
59
|
+
}`),m(`{
|
|
60
|
+
"custom-header": "value"
|
|
61
|
+
}`)}else{const Pe=await me.json();alert(`Failed to enqueue: ${Pe.error}`)}}catch{alert("Invalid JSON format in message or attributes")}},be=C=>{const I=new Set(g);I.has(C)?I.delete(C):I.add(C),v(I)},In=async()=>{try{const C=await fetch(`/console/queues/${t}`,{method:"DELETE"});if(C.ok){const I=await C.json();alert(I.message||"Queue deleted successfully"),n()}else{const I=await C.json();alert(`Failed to delete queue: ${I.error}`)}}catch(C){console.error("Failed to delete queue:",C),alert("Failed to delete queue")}E(!1)},Ot=()=>{switch(h){case"incoming":return r.messages.incoming;case"processing":return r.messages.processing;case"dlq":return r.messages.dlq;default:return[]}};return i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsxs("button",{onClick:n,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:["← Back to ",e]}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t}),i.jsxs("p",{className:"text-gray-600",children:["Event Queue in ",e," module"]})]})]}),i.jsxs("div",{className:"flex space-x-2",children:[i.jsx("button",{onClick:()=>S(!w),className:"px-4 py-2 bg-green-100 text-green-700 rounded hover:bg-green-200 text-sm",children:"+ Enqueue Message"}),r.stats&&r.stats.dlq>0&&i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:T,className:"px-4 py-2 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 text-sm",children:["Process DLQ (",r.stats.dlq,")"]}),i.jsx("button",{onClick:V,className:"px-4 py-2 bg-red-100 text-red-700 rounded hover:bg-red-200 text-sm",children:"Purge DLQ"})]}),i.jsx("button",{onClick:()=>E(!0),className:"px-4 py-2 bg-red-100 text-red-700 rounded hover:bg-red-200 text-sm",children:"🗑️ Delete Queue"})]})]})}),x&&i.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:i.jsxs("div",{className:"bg-white rounded-lg p-6 max-w-md w-full mx-4",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Delete Queue"}),i.jsxs("p",{className:"text-sm text-gray-600 mb-6",children:["Are you sure you want to delete the queue ",i.jsx("strong",{children:t}),"? This will permanently remove the queue and all its messages. This action cannot be undone."]}),i.jsxs("div",{className:"flex space-x-3",children:[i.jsx("button",{onClick:In,className:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700",children:"Delete Queue"}),i.jsx("button",{onClick:()=>E(!1),className:"px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Cancel"})]})]})}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[i.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>R(!N),children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Queue Endpoints"}),i.jsx("svg",{className:`w-5 h-5 text-gray-400 transition-transform ${N?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),N&&i.jsx("div",{className:"p-6",children:i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800",children:"POST"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/queues/",t]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Enqueue message"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/queues/",t]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Get queue details"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/queues/",t,"/process-dlq"]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Process DLQ messages"})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/queues/",t,"/purge-dlq"]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Purge DLQ messages"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/queues/dashboard"]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- All queues overview"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-100 text-red-800",children:"DELETE"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/queues/",t]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Delete queue"})]})]})]})})]}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[i.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>_(!P),children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Queue Configuration"}),i.jsx("svg",{className:`w-5 h-5 text-gray-400 transition-transform ${P?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),P&&((F=r.stats)==null?void 0:F.configuration)&&i.jsx("div",{className:"p-6",children:i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-semibold text-gray-800 mb-3",children:"Processing Configuration"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Batch Size"}),i.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.batchSize," messages"]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Batch Window"}),i.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.batchWindowMs,"ms"]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Max Retries"}),i.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.maxRetries," attempts"]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Parallel Processing"}),i.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.parallel?"Enabled":"Disabled"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Max Concurrent"}),i.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.maxConcurrent," workers"]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Retry Backoff"}),i.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.retryBackoff?"Enabled":"Disabled"})]})]})]}),r.stats.configuration.persistence&&i.jsxs("div",{children:[i.jsx("h4",{className:"text-sm font-semibold text-gray-800 mb-3",children:"Persistence Configuration"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Persistence"}),i.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.enabled?"Enabled":"Disabled"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Data Directory"}),i.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border font-mono",children:r.stats.configuration.persistence.directory})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Save Interval"}),i.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.persistence.saveInterval,"ms"]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Save on Shutdown"}),i.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.saveOnShutdown?"Enabled":"Disabled"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Load on Startup"}),i.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.loadOnStartup?"Enabled":"Disabled"})]})]})]})]})})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Incoming Messages"}),i.jsx("p",{className:"text-3xl font-bold text-green-600",children:(we=r==null?void 0:r.stats)==null?void 0:we.incoming})]}),i.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center",children:i.jsx("svg",{className:"w-6 h-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16l-4-4m0 0l4-4m-4 4h18"})})})]})}),i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Processing"}),i.jsx("p",{className:"text-3xl font-bold text-yellow-600",children:(L=r==null?void 0:r.stats)==null?void 0:L.processing})]}),i.jsx("div",{className:"w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center",children:i.jsx("svg",{className:"w-6 h-6 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})})]})}),i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Dead Letter Queue"}),i.jsx("p",{className:"text-3xl font-bold text-red-600",children:(D=r==null?void 0:r.stats)==null?void 0:D.dlq})]}),i.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center",children:i.jsx("svg",{className:"w-6 h-6 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})})]})})]}),w&&i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Enqueue New Message"}),i.jsx("button",{onClick:()=>S(!1),className:"text-gray-400 hover:text-gray-600",children:i.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Message JSON"}),i.jsx("textarea",{value:k,onChange:C=>p(C.target.value),className:"w-full h-32 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter message JSON..."})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Message Attributes (Headers)"}),i.jsx("textarea",{value:f,onChange:C=>m(C.target.value),className:"w-full h-24 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter attributes JSON..."}),i.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Custom headers/attributes to include with the message"})]}),i.jsxs("div",{className:"flex space-x-3",children:[i.jsx("button",{onClick:le,className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700",children:"Enqueue Message"}),i.jsx("button",{onClick:()=>S(!1),className:"px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Cancel"})]})]})]}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[i.jsx("div",{className:"border-b border-gray-200",children:i.jsx("nav",{className:"flex space-x-8 px-6",children:["incoming","processing","dlq"].map(C=>{var I,Q,me;return i.jsxs("button",{onClick:()=>d(C),className:`py-4 px-1 border-b-2 font-medium text-sm capitalize ${h===C?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[C," (",C==="incoming"?(I=r==null?void 0:r.stats)==null?void 0:I.incoming:C==="processing"?(Q=r==null?void 0:r.stats)==null?void 0:Q.processing:(me=r==null?void 0:r.stats)==null?void 0:me.dlq,")"]},C)})})}),i.jsx("div",{className:"p-6",children:i.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:Ot().length===0?i.jsxs("div",{className:"text-center py-8 text-gray-500",children:["No messages in ",h," queue"]}):Ot().map((C,I)=>{var me;const Q=g.has(C.id);return i.jsxs("div",{className:"border border-gray-200 rounded bg-gray-50",children:[i.jsxs("div",{className:"p-4",children:[i.jsxs("div",{className:"flex items-start justify-between mb-2",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsxs("button",{onClick:()=>be(C.id),className:"flex items-center space-x-1 text-xs font-mono text-gray-500 hover:text-gray-700",children:[i.jsx("svg",{className:`w-4 h-4 transition-transform ${Q?"rotate-90":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),i.jsxs("span",{children:["ID: ",C.id]})]}),C.error&&i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-100 text-red-800",children:"Error"}),C.reprocessed&&i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800",children:"Reprocessed"})]}),i.jsx("span",{className:"text-xs text-gray-500",children:new Date(C.timestamp||Date.now()).toLocaleString()})]}),!Q&&i.jsx("div",{className:"text-sm text-gray-600 truncate",children:((me=C.payload)==null?void 0:me.message)||JSON.stringify(C.payload).substring(0,80)+"..."})]}),Q&&i.jsx("div",{className:"border-t border-gray-200 p-4 bg-white",children:i.jsxs("div",{className:"space-y-3",children:[C.payload&&i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Payload:"}),i.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto",children:JSON.stringify(C.payload,null,2)})]}),C.error&&i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-medium text-red-600 mb-1",children:"Error:"}),i.jsx("div",{className:"text-sm bg-red-50 p-3 rounded border text-red-800",children:C.error})]}),C.attempts&&i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Attempts:"}),i.jsx("div",{className:"text-sm text-gray-700",children:C.attempts})]}),C.attributes&&Object.keys(C.attributes).length>0&&i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Headers:"}),i.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto",children:JSON.stringify(C.attributes,null,2)})]})]})})]},I)})})})]}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[i.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Message History"}),i.jsxs("span",{className:"text-xs text-gray-500",children:[a.length," processed message",a.length!==1?"s":""]})]}),a.length===0?i.jsx("div",{className:"p-8 text-center text-gray-500 text-sm",children:"No messages have finished processing yet"}):i.jsx("div",{className:"divide-y divide-gray-100",children:a.map(C=>i.jsxs("div",{children:[i.jsxs("div",{className:"p-4 flex items-center justify-between cursor-pointer hover:bg-gray-50 transition-colors",onClick:()=>c(u===C.id?null:C.id),children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${C.status==="completed"?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:C.status}),i.jsxs("span",{className:"text-xs font-mono text-gray-500",children:["ID: ",C.id]}),C.attempts>0&&i.jsxs("span",{className:"text-xs text-gray-400",children:[C.attempts," attempt",C.attempts!==1?"s":""]})]}),i.jsx("span",{className:"text-xs text-gray-400",children:new Date(C.completedAt).toLocaleString()})]}),u===C.id&&i.jsxs("div",{className:"px-4 pb-4 space-y-3 bg-gray-50",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Payload:"}),i.jsx("pre",{className:"text-xs bg-white p-2 rounded border overflow-x-auto",children:JSON.stringify(C.payload,null,2)})]}),C.error&&i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-medium text-red-600 mb-1",children:"Error:"}),i.jsx("div",{className:"text-sm bg-red-50 p-3 rounded border text-red-800",children:C.error})]})]})]},C.id))})]}),i.jsx(_s,{moduleName:e,title:`${t} Queue Logs`})]})},my=()=>{const{moduleName:e,queueName:t}=Rs(),n=_t(),r=()=>{n(`/modules/${e}`)};return!e||!t?i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("div",{className:"text-red-600",children:"Invalid queue parameters"}),i.jsx("button",{onClick:()=>n("/modules"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]}):i.jsx(py,{moduleName:e,queueName:t,onBack:r})},gy=e=>{switch(e){case"completed":return"text-green-600";case"failed":return"text-red-600";case"running":return"text-blue-600";default:return"text-gray-500"}},yy=({moduleName:e,scheduleName:t,onBack:n})=>{const{data:r,isLoading:s,error:l}=ty(t),{data:o}=ny(t),a=(o==null?void 0:o.executions)??[];if(s)return i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"animate-pulse",children:"Loading schedule details..."})});if(l||!r)return i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsxs("div",{className:"text-red-600",children:["Error loading schedule: ",l==null?void 0:l.message]}),i.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Module"})]});const u=async()=>{try{const d=await fetch(`/console/schedules/${t}/trigger`,{method:"POST"});if(d.ok){const g=await d.json();alert(g.message||"Schedule triggered successfully")}else{const g=await d.json();alert(`Failed to trigger schedule: ${g.error}`)}}catch(d){console.error("Failed to trigger schedule:",d),alert("Failed to trigger schedule")}},c=async()=>{try{const d=r.job.enabled?"disable":"enable",g=await fetch(`/console/schedules/${t}/${d}`,{method:"PUT"});if(g.ok){const v=await g.json();alert(v.message||`Schedule ${d}d successfully`)}else{const v=await g.json();alert(`Failed to ${d} schedule: ${v.error}`)}}catch(d){console.error("Failed to toggle schedule:",d),alert("Failed to toggle schedule")}},h=d=>{const g=new Date(d),v=new Date,w=g.getTime()-v.getTime(),S=Math.floor(w/1e3),k=Math.floor(S/60),p=Math.floor(k/60),f=Math.floor(p/24);return f>0?`in ${f} days`:p>0?`in ${p} hours`:k>0?`in ${k} minutes`:S>0?`in ${S} seconds`:"now"};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsxs("button",{onClick:n,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:["← Back to ",e]}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t}),i.jsxs("p",{className:"text-gray-600",children:["Scheduled Job in ",e," module"]})]})]}),i.jsxs("div",{className:"flex space-x-2",children:[i.jsx("button",{onClick:u,className:"px-4 py-2 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 text-sm",children:"🚀 Trigger Now"}),i.jsx("button",{onClick:c,className:`px-4 py-2 rounded text-sm ${r.job.enabled?"bg-red-100 text-red-700 hover:bg-red-200":"bg-green-100 text-green-700 hover:bg-green-200"}`,children:r.job.enabled?"⏸ Disable":"▶️ Enable"})]})]}),i.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[i.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Available Endpoints"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:"GET"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/schedules/",t]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Get schedule details"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800",children:"POST"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/schedules/",t,"/trigger"]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Trigger job now"})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-orange-100 text-orange-800",children:"PUT"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/schedules/",t,"/enable"]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Enable schedule"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-orange-100 text-orange-800",children:"PUT"}),i.jsxs("code",{className:"text-xs font-mono text-gray-700",children:[_e(),"/schedules/",t,"/disable"]}),i.jsx("span",{className:"text-xs text-gray-500",children:"- Disable schedule"})]})]})]})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Status"}),i.jsx("p",{className:`text-2xl font-bold ${r.job.enabled?"text-green-600":"text-gray-400"}`,children:r.job.enabled?"Enabled":"Disabled"})]}),i.jsx("div",{className:`w-12 h-12 rounded-lg flex items-center justify-center ${r.job.enabled?"bg-green-100":"bg-gray-100"}`,children:i.jsx("svg",{className:`w-6 h-6 ${r.job.enabled?"text-green-600":"text-gray-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})})]})}),i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Running"}),i.jsx("p",{className:`text-2xl font-bold ${r.isRunning?"text-blue-600":"text-gray-400"}`,children:r.isRunning?"Yes":"No"})]}),i.jsx("div",{className:`w-12 h-12 rounded-lg flex items-center justify-center ${r.isRunning?"bg-blue-100":"bg-gray-100"}`,children:i.jsx("svg",{className:`w-6 h-6 ${r.isRunning?"text-blue-600":"text-gray-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.828 14.828a4 4 0 01-5.656 0M9 10h1m4 0h1m-6 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})]})}),i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Run Count"}),i.jsx("p",{className:"text-2xl font-bold text-purple-600",children:r.job.runCount||0})]}),i.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center",children:i.jsx("svg",{className:"w-6 h-6 text-purple-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v4a2 2 0 01-2 2H9a2 2 0 01-2-2z"})})})]})}),i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Next Run"}),i.jsx("p",{className:"text-sm font-bold text-orange-600",children:h(r.job.nextRun)}),i.jsx("p",{className:"text-xs text-gray-500",children:new Date(r.job.nextRun).toLocaleString()})]}),i.jsx("div",{className:"w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center",children:i.jsx("svg",{className:"w-6 h-6 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})})]})})]}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Schedule Configuration"}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Cron Expression"}),i.jsx("code",{className:"block text-sm font-mono bg-gray-50 p-2 rounded border",children:r.job.cronExpression})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Created At"}),i.jsx("div",{className:"text-sm text-gray-700",children:new Date(r.job.createdAt).toLocaleString()})]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Job ID"}),i.jsx("code",{className:"block text-xs font-mono bg-gray-50 p-2 rounded border break-all",children:r.job.id})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Timer Status"}),i.jsx("span",{className:`inline-flex items-center px-2 py-1 rounded text-xs font-medium ${r.timerId==="scheduled"?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:r.timerId})]})]})]})]}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[i.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Execution History"}),i.jsxs("span",{className:"text-xs text-gray-500",children:[a.length," execution",a.length!==1?"s":""," (tick-triggered and manual)"]})]}),a.length===0?i.jsx("div",{className:"p-8 text-center text-gray-500 text-sm",children:"No executions recorded yet"}):i.jsx("div",{className:"divide-y divide-gray-100",children:a.map(d=>{const g=d.endTime?new Date(d.endTime).getTime()-new Date(d.startTime).getTime():void 0;return i.jsxs("div",{className:"p-4 flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:`text-xs font-medium capitalize ${gy(d.status)}`,children:d.status}),d.error&&i.jsx("span",{className:"text-xs text-red-600 font-mono truncate max-w-md",children:d.error}),g!==void 0&&i.jsxs("span",{className:"text-xs text-gray-400",children:[g,"ms"]})]}),i.jsx("span",{className:"text-xs text-gray-400",children:new Date(d.startTime).toLocaleString()})]},d.id)})})]}),i.jsx(_s,{moduleName:e,title:`${t} Schedule Logs`})]})},xy=()=>{const{moduleName:e,scheduleName:t}=Rs(),n=_t(),r=()=>{n(`/modules/${e}`)};return!e||!t?i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("div",{className:"text-red-600",children:"Invalid schedule parameters"}),i.jsx("button",{onClick:()=>n("/modules"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]}):i.jsx(yy,{moduleName:e,scheduleName:t,onBack:r})};function vy(e){return(e.match(/:([a-zA-Z_][a-zA-Z0-9_]*)(\?)?/g)??[]).map(n=>n.replace(/^:/,"").replace(/\?$/,""))}function wy(e,t,n){let r=e;for(const{key:l,value:o}of t)r=r.replace(new RegExp(`:${l}\\??`,"g"),encodeURIComponent(o)||`:${l}`);const s=n.filter(({key:l})=>l.trim()!=="").map(({key:l,value:o})=>`${encodeURIComponent(l)}=${encodeURIComponent(o)}`).join("&");return s?`${r}?${s}`:r}const vc=({label:e,rows:t,onChange:n,keyPlaceholder:r="key",valuePlaceholder:s="value",fixedKeys:l=!1})=>{const o=(c,h,d)=>{const g=t.map((v,w)=>w===c?{...v,[h]:d}:v);n(g)},a=()=>n([...t,{key:"",value:""}]),u=c=>n(t.filter((h,d)=>d!==c));return i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-1",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700",children:e}),!l&&i.jsx("button",{type:"button",onClick:a,className:"text-xs text-blue-600 hover:text-blue-800",children:"+ Add"})]}),i.jsxs("div",{className:"border border-gray-300 rounded-md divide-y divide-gray-200",children:[t.map((c,h)=>i.jsxs("div",{className:"flex items-center",children:[i.jsx("input",{value:c.key,onChange:d=>o(h,"key",d.target.value),readOnly:l,placeholder:r,className:`w-2/5 px-2 py-1.5 text-sm font-mono border-r border-gray-200 focus:outline-none focus:bg-blue-50 ${l?"bg-gray-50 text-gray-500":""}`}),i.jsx("input",{value:c.value,onChange:d=>o(h,"value",d.target.value),placeholder:s,className:"flex-1 px-2 py-1.5 text-sm font-mono focus:outline-none focus:bg-blue-50"}),!l&&i.jsx("button",{type:"button",onClick:()=>u(h),className:"px-2 text-gray-300 hover:text-red-500 text-lg leading-none",children:"×"})]},h)),t.length===0&&i.jsx("div",{className:"px-3 py-2 text-xs text-gray-400 italic",children:"No entries"})]})]})},wc=({response:e})=>i.jsx("div",{className:"border border-gray-300 rounded-md",children:e.error?i.jsxs("div",{className:"p-3 text-red-600 text-sm font-mono",children:["Error: ",e.error]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"p-3 border-b border-gray-200 bg-gray-50",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:`inline-flex items-center px-2 py-1 rounded text-sm font-medium ${(e.status??0)>=200&&(e.status??0)<300?"bg-green-100 text-green-800":(e.status??0)>=400?"bg-red-100 text-red-800":"bg-yellow-100 text-yellow-800"}`,children:[e.status," ",e.statusText]}),i.jsxs("span",{className:"text-sm text-gray-600",children:[e.duration,"ms"]})]})}),e.headers&&Object.keys(e.headers).length>0&&i.jsxs("div",{className:"p-3 border-b border-gray-200",children:[i.jsx("div",{className:"text-xs font-medium text-gray-600 mb-2",children:"Response Headers:"}),i.jsx("pre",{className:"text-xs bg-gray-50 p-2 rounded overflow-x-auto",children:JSON.stringify(e.headers,null,2)})]}),i.jsxs("div",{className:"p-3",children:[i.jsx("div",{className:"text-xs font-medium text-gray-600 mb-2",children:"Response Body:"}),i.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto max-h-64",children:typeof e.data=="string"?e.data:JSON.stringify(e.data,null,2)})]})]})}),jy=({moduleName:e,routeUrl:t,routeMethod:n,onBack:r})=>{const[s,l]=j.useState(!1),[o,a]=j.useState(n),[u,c]=j.useState("{}"),[h,d]=j.useState(`{
|
|
62
|
+
"Content-Type": "application/json"
|
|
63
|
+
}`),[g,v]=j.useState(null),[w,S]=j.useState(!1),[k,p]=j.useState([]),[f,m]=j.useState(null),x=j.useMemo(()=>vy(t),[t]),[E,N]=j.useState(()=>x.map(F=>({key:F,value:""}))),[R,P]=j.useState([]),_=j.useMemo(()=>wy(t,E,R),[t,E,R]),{data:T}=X0(n,t),V=j.useMemo(()=>((T==null?void 0:T.history)??[]).map(F=>({id:F.id,executedAt:new Date(F.timestamp),method:F.method,url:F.url,headers:F.requestHeaders,body:F.requestBody!==void 0?JSON.stringify(F.requestBody):void 0,source:"live",response:{status:F.statusCode,duration:F.duration}})),[T]),le=j.useMemo(()=>[...k,...V].sort((F,we)=>we.executedAt.getTime()-F.executedAt.getTime()).slice(0,30),[k,V]),be=async()=>{S(!0),v(null);let F;try{F=JSON.parse(h)}catch{v({error:"Invalid JSON in headers",duration:0}),S(!1);return}const we={method:o,headers:F};o!=="GET"&&o!=="HEAD"&&(we.body=u);const L=new Date,D=Date.now();try{const C=await fetch(`${_e()}${_}`,we),I=Date.now()-D,Q=C.headers.get("content-type"),me=Q!=null&&Q.includes("application/json")?await C.json():await C.text(),Pe={status:C.status,statusText:C.statusText,headers:Object.fromEntries(C.headers.entries()),data:me,duration:I};v(Pe),p(Pr=>[{id:L.getTime().toString(),executedAt:L,method:o,url:_,headers:F,body:o!=="GET"&&o!=="HEAD"?u:void 0,source:"console",response:Pe},...Pr].slice(0,20))}catch(C){const I={error:C instanceof Error?C.message:"Unknown error occurred",duration:Date.now()-D};v(I),p(Q=>[{id:L.getTime().toString(),executedAt:L,method:o,url:_,headers:F,body:o!=="GET"&&o!=="HEAD"?u:void 0,source:"console",response:I},...Q].slice(0,20))}finally{S(!1)}},In=F=>{a(F.method),d(JSON.stringify(F.headers,null,2)),F.body&&c(F.body);try{const we=new URL(F.url,"http://x"),L=[];we.searchParams.forEach((D,C)=>L.push({key:C,value:D})),P(L)}catch{}},Ot=F=>{switch(F.toUpperCase()){case"GET":return"bg-green-100 text-green-800";case"POST":return"bg-blue-100 text-blue-800";case"PUT":return"bg-orange-100 text-orange-800";case"DELETE":return"bg-red-100 text-red-800";case"PATCH":return"bg-purple-100 text-purple-800";case"HEAD":return"bg-gray-100 text-gray-800";default:return"bg-gray-100 text-gray-800"}};return i.jsxs("div",{className:"space-y-6",children:[i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"flex items-center justify-between mb-6",children:i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsxs("button",{onClick:r,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:["← Back to ",e]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[i.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded text-sm font-medium ${Ot(n)}`,children:n}),i.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t})]}),i.jsxs("p",{className:"text-gray-600",children:["HTTP Endpoint in ",e," module"]})]})]})})}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[i.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>l(!s),children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Route Information"}),i.jsx("svg",{className:`w-5 h-5 text-gray-400 transition-transform ${s?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),s&&i.jsx("div",{className:"p-6",children:i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Full URL"}),i.jsxs("code",{className:"block text-sm font-mono bg-gray-50 p-3 rounded border",children:[_e(),t]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Method"}),i.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded text-sm font-medium ${Ot(n)}`,children:n})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Module"}),i.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:e})]})]})})]}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Test Route"}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Method"}),i.jsxs("select",{value:o,onChange:F=>a(F.target.value),className:"w-full p-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500",children:[i.jsx("option",{value:"GET",children:"GET"}),i.jsx("option",{value:"POST",children:"POST"}),i.jsx("option",{value:"PUT",children:"PUT"}),i.jsx("option",{value:"DELETE",children:"DELETE"}),i.jsx("option",{value:"PATCH",children:"PATCH"}),i.jsx("option",{value:"HEAD",children:"HEAD"})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Request URL"}),i.jsxs("code",{className:"block text-xs font-mono bg-gray-50 p-2 rounded border text-gray-700 break-all",children:[_e(),_]})]}),x.length>0&&i.jsx(vc,{label:"Path Parameters",rows:E,onChange:N,keyPlaceholder:"param",valuePlaceholder:"value",fixedKeys:!0}),i.jsx(vc,{label:"Query Parameters",rows:R,onChange:P,keyPlaceholder:"param",valuePlaceholder:"value"}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Headers"}),i.jsx("textarea",{value:h,onChange:F=>d(F.target.value),className:"w-full h-24 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter headers JSON..."})]}),o!=="GET"&&o!=="HEAD"&&i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Request Body"}),i.jsx("textarea",{value:u,onChange:F=>c(F.target.value),className:"w-full h-32 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter request body..."})]}),i.jsx("button",{onClick:be,disabled:w,className:"w-full px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 disabled:opacity-50",children:w?"Testing...":"Test Route"})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Response"}),g?i.jsx(wc,{response:g}):i.jsx("div",{className:"border border-gray-300 rounded-md p-8 text-center text-gray-500",children:'Click "Test Route" to see the response'})]})]})]}),le.length>0&&i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[i.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Execution History"}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("span",{className:"text-xs text-gray-500",children:[le.length," execution",le.length!==1?"s":""," (console + live traffic)"]}),k.length>0&&i.jsx("button",{onClick:()=>p([]),className:"text-xs text-gray-400 hover:text-red-500 transition-colors",children:"Clear console entries"})]})]}),i.jsx("div",{className:"divide-y divide-gray-100",children:le.map(F=>i.jsxs("div",{children:[i.jsxs("div",{className:"p-4 flex items-center justify-between cursor-pointer hover:bg-gray-50 transition-colors",onClick:()=>m(f===F.id?null:F.id),children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${Ot(F.method)}`,children:F.method}),i.jsx("span",{className:"text-sm font-mono text-gray-700",children:F.url}),i.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${F.source==="console"?"bg-blue-50 text-blue-600":"bg-gray-100 text-gray-500"}`,children:F.source==="console"?"console":"live"}),F.response.error?i.jsx("span",{className:"text-xs text-red-600",children:"Error"}):i.jsx("span",{className:`text-xs font-medium ${(F.response.status??0)>=200&&(F.response.status??0)<300?"text-green-600":(F.response.status??0)>=400?"text-red-600":"text-yellow-600"}`,children:F.response.status}),i.jsxs("span",{className:"text-xs text-gray-400",children:[F.response.duration,"ms"]})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"text-xs text-gray-400",children:F.executedAt.toLocaleTimeString()}),F.source==="console"&&i.jsx("button",{onClick:we=>{we.stopPropagation(),In(F)},className:"text-xs px-2 py-0.5 bg-gray-100 text-gray-600 rounded hover:bg-blue-100 hover:text-blue-700 transition-colors",children:"Replay"}),i.jsx("svg",{className:`w-4 h-4 text-gray-400 transition-transform ${f===F.id?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}),f===F.id&&i.jsxs("div",{className:"px-4 pb-4 space-y-3 bg-gray-50",children:[F.body&&i.jsxs("div",{children:[i.jsx("div",{className:"text-xs font-medium text-gray-500 mb-1",children:"Request Body:"}),i.jsx("pre",{className:"text-xs bg-white p-2 rounded border overflow-x-auto",children:F.body})]}),i.jsx(wc,{response:F.response})]})]},F.id))})]}),i.jsx(_s,{moduleName:e,title:`${n} ${t} Logs`})]})},Sy=()=>{const{moduleName:e}=Rs(),[t]=f0(),n=_t(),r=t.get("url"),s=t.get("method"),l=()=>{n(`/modules/${e}`)};return!e||!r||!s?i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("div",{className:"text-red-600",children:"Invalid route parameters"}),i.jsx("button",{onClick:()=>n("/modules"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]}):i.jsx(jy,{moduleName:e,routeUrl:decodeURIComponent(r),routeMethod:s,onBack:l})},ky=({moduleName:e,wsPath:t,onBack:n})=>{var m;const{data:r,isLoading:s,error:l,refetch:o}=iy(t),{send:a}=oy(),[u,c]=j.useState(null),[h,d]=j.useState(`{
|
|
64
|
+
|
|
65
|
+
}`),[g,v]=j.useState(null),[w,S]=j.useState(!1),k=(r==null?void 0:r.connections)||[],p=u||((m=k[0])==null?void 0:m.connectionId)||null,f=async()=>{if(p){S(!0),v(null);try{let x;try{x=JSON.parse(h)}catch{v({ok:!1,text:"Invalid JSON in message body"}),S(!1);return}await a(p,x),v({ok:!0,text:"Message sent successfully"}),o()}catch(x){v({ok:!1,text:x instanceof Error?x.message:"Send failed"})}finally{S(!1)}}};return s?i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"animate-pulse",children:"Loading WebSocket details..."})}):l?i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsxs("div",{className:"text-red-600",children:["Error loading WebSocket path: ",l.message]}),i.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Module"})]}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsxs("button",{onClick:n,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:["← Back to ",e]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center space-x-3 mb-1",children:[i.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded text-sm font-medium bg-indigo-100 text-indigo-800",children:"WS"}),i.jsx("h1",{className:"text-2xl font-semibold text-gray-900 font-mono",children:t})]}),i.jsxs("p",{className:"text-gray-600",children:["WebSocket endpoint in ",e," module"]})]})]}),i.jsx("button",{onClick:()=>o(),className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"↻ Refresh"})]}),i.jsxs("div",{className:"border-t border-gray-200 pt-4",children:[i.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"WebSocket URL"}),i.jsxs("code",{className:"block text-sm font-mono bg-gray-50 p-3 rounded border",children:[_e().replace(/^http/,"ws"),t]})]})]}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Active Connections"}),i.jsxs("span",{className:`px-2 py-1 rounded text-sm font-medium ${k.length>0?"bg-green-100 text-green-800":"bg-gray-100 text-gray-500"}`,children:[k.length," connected"]})]}),k.length===0?i.jsx("div",{className:"text-center text-gray-500 py-6 border border-dashed rounded-lg",children:"No active connections on this path"}):i.jsx("div",{className:"space-y-2",children:k.map(x=>{var E;return i.jsx("div",{onClick:()=>c(x.connectionId),className:`p-3 rounded-lg border cursor-pointer transition-colors ${(u||((E=k[0])==null?void 0:E.connectionId))===x.connectionId?"border-indigo-300 bg-indigo-50":"border-gray-200 hover:bg-gray-50"}`,children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),i.jsx("code",{className:"text-sm font-mono text-gray-800",children:x.connectionId})]}),i.jsxs("span",{className:"text-xs text-gray-500",children:["connected ",new Date(x.connectedAt).toLocaleTimeString()]})]})},x.connectionId)})})]}),i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Send Message"}),k.length===0?i.jsx("div",{className:"text-gray-500 text-sm",children:"No active connections to send to."}):i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Target Connection"}),i.jsx("select",{value:p||"",onChange:x=>c(x.target.value),className:"w-full p-2 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",children:k.map(x=>i.jsx("option",{value:x.connectionId,children:x.connectionId},x.connectionId))})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Message (JSON)"}),i.jsx("textarea",{value:h,onChange:x=>d(x.target.value),className:"w-full h-32 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500",placeholder:"Enter JSON message..."})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("button",{onClick:f,disabled:w||!p,className:"px-4 py-2 bg-indigo-600 text-white rounded hover:bg-indigo-700 disabled:opacity-50",children:w?"Sending...":"Send Message"}),g&&i.jsx("span",{className:`text-sm ${g.ok?"text-green-600":"text-red-600"}`,children:g.text})]})]})]}),i.jsx(_s,{moduleName:e,title:`${t} WebSocket Logs`})]})},Ny=()=>{const{moduleName:e,"*":t}=Rs(),n=_t(),r=()=>{n(`/modules/${e}`)};return!e||!t?i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("div",{className:"text-red-600",children:"Invalid WebSocket parameters"}),i.jsx("button",{onClick:()=>n("/modules"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Modules"})]}):i.jsx(ky,{moduleName:e,wsPath:"/"+t,onBack:r})},Cy=()=>i.jsx("header",{className:"bg-white shadow-sm border-b",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsx("div",{className:"flex items-center h-16",children:i.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"CloudNux Dev Console"})})})}),Ey=new F0;function by(){return i.jsx(z0,{client:Ey,children:i.jsx(o0,{basename:"/console",children:i.jsxs("div",{className:"min-h-screen bg-gray-50",children:[i.jsx(Cy,{}),i.jsx("main",{className:"container mx-auto px-4 py-6",children:i.jsxs(Ig,{children:[i.jsx(Ft,{path:"/",element:i.jsx(xc,{})}),i.jsx(Ft,{path:"/modules",element:i.jsx(xc,{})}),i.jsx(Ft,{path:"/modules/:moduleName",element:i.jsx(hy,{})}),i.jsx(Ft,{path:"/modules/:moduleName/queues/:queueName",element:i.jsx(my,{})}),i.jsx(Ft,{path:"/modules/:moduleName/schedules/:scheduleName",element:i.jsx(xy,{})}),i.jsx(Ft,{path:"/modules/:moduleName/routes",element:i.jsx(Sy,{})}),i.jsx(Ft,{path:"/modules/:moduleName/websockets/*",element:i.jsx(Ny,{})})]})})]})})})}Mi.createRoot(document.getElementById("root")).render(i.jsx(Dh.StrictMode,{children:i.jsx(by,{})}));
|