@cloudnux/dev-console 0.20.0 → 0.21.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,75 @@
|
|
|
1
|
+
var Ga=e=>{throw TypeError(e)};var ii=(e,t,n)=>t.has(e)||Ga("Cannot "+n);var y=(e,t,n)=>(ii(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>t.has(e)?Ga("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(ii(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),A=(e,t,n)=>(ii(e,t,"access private method"),n);var Ms=(e,t,n,r)=>({set _(s){F(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 kh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oc={exports:{}},Ul={},Fc={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"),Sh=Symbol.for("react.portal"),bh=Symbol.for("react.fragment"),Ch=Symbol.for("react.strict_mode"),Eh=Symbol.for("react.profiler"),Ph=Symbol.for("react.provider"),Rh=Symbol.for("react.context"),Lh=Symbol.for("react.forward_ref"),Th=Symbol.for("react.suspense"),_h=Symbol.for("react.memo"),Oh=Symbol.for("react.lazy"),Ya=Symbol.iterator;function Fh(e){return e===null||typeof e!="object"?null:(e=Ya&&e[Ya]||e["@@iterator"],typeof e=="function"?e:null)}var Mc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dc=Object.assign,$c={};function Sr(e,t,n){this.props=e,this.context=t,this.refs=$c,this.updater=n||Mc}Sr.prototype.isReactComponent={};Sr.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")};Sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ic(){}Ic.prototype=Sr.prototype;function Vo(e,t,n){this.props=e,this.context=t,this.refs=$c,this.updater=n||Mc}var qo=Vo.prototype=new Ic;qo.constructor=Vo;Dc(qo,Sr.prototype);qo.isPureReactComponent=!0;var Xa=Array.isArray,zc=Object.prototype.hasOwnProperty,Ko={current:null},Ac={key:!0,ref:!0,__self:!0,__source:!0};function Uc(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)zc.call(t,r)&&!Ac.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:Ko.current}}function Mh(e,t){return{$$typeof:Ss,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Jo(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ss}function Dh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Za=/\/+/g;function oi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Dh(""+e.key):t.toString(36)}function tl(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 Sh:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+oi(o,0):r,Xa(s)?(n="",e!=null&&(n=e.replace(Za,"$&/")+"/"),tl(s,t,n,"",function(c){return c})):s!=null&&(Jo(s)&&(s=Mh(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Za,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Xa(e))for(var a=0;a<e.length;a++){l=e[a];var u=r+oi(l,a);o+=tl(l,t,n,u,s)}else if(u=Fh(e),typeof u=="function")for(e=u.call(e),a=0;!(l=e.next()).done;)l=l.value,u=r+oi(l,a++),o+=tl(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 Ds(e,t,n){if(e==null)return e;var r=[],s=0;return tl(e,r,"","",function(l){return t.call(n,l,s++)}),r}function $h(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},nl={transition:null},Ih={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:nl,ReactCurrentOwner:Ko};function Bc(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:Ds,forEach:function(e,t,n){Ds(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ds(e,function(){t++}),t},toArray:function(e){return Ds(e,function(t){return t})||[]},only:function(e){if(!Jo(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=Sr;z.Fragment=bh;z.Profiler=Eh;z.PureComponent=Vo;z.StrictMode=Ch;z.Suspense=Th;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ih;z.act=Bc;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=Dc({},e.props),s=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=Ko.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)zc.call(t,u)&&!Ac.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:Rh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ph,_context:e},e.Consumer=e};z.createElement=Uc;z.createFactory=function(e){var t=Uc.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:Lh,render:e}};z.isValidElement=Jo;z.lazy=function(e){return{$$typeof:Oh,_payload:{_status:-1,_result:e},_init:$h}};z.memo=function(e,t){return{$$typeof:_h,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=nl.transition;nl.transition={};try{e()}finally{nl.transition=t}};z.unstable_act=Bc;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";Fc.exports=z;var j=Fc.exports;const zh=kh(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 Ah=j,Uh=Symbol.for("react.element"),Bh=Symbol.for("react.fragment"),Qh=Object.prototype.hasOwnProperty,Hh=Ah.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Wh={key:!0,ref:!0,__self:!0,__source:!0};function Qc(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)Qh.call(t,r)&&!Wh.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:Uh,type:e,key:l,ref:o,props:s,_owner:Hh.current}}Ul.Fragment=Bh;Ul.jsx=Qc;Ul.jsxs=Qc;Oc.exports=Ul;var i=Oc.exports,Mi={},Hc={exports:{}},Ue={},Wc={exports:{}},Vc={};/**
|
|
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 b=L.length;L.push(D);e:for(;0<b;){var $=b-1>>>1,B=L[$];if(0<s(B,D))L[$]=D,L[b]=B,b=$;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],b=L.pop();if(b!==D){L[0]=b;e:for(var $=0,B=L.length,pe=B>>>1;$<pe;){var Re=2*($+1)-1,Rr=L[Re],hn=Re+1,Fs=L[hn];if(0>s(Rr,b))hn<B&&0>s(Fs,Rr)?(L[$]=Fs,L[hn]=b,$=hn):(L[$]=Rr,L[Re]=b,$=Re);else if(hn<B&&0>s(Fs,b))L[$]=Fs,L[hn]=b,$=hn;else break e}}return D}function s(L,D){var b=L.sortIndex-D.sortIndex;return b!==0?b: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=[],f=1,d=null,g=3,x=!1,w=!1,N=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(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 v(L){if(N=!1,p(L),!w)if(n(u)!==null)w=!0,M(C);else{var D=n(c);D!==null&&je(v,D.startTime-L)}}function C(L,D){w=!1,N&&(N=!1,m(P),P=-1),x=!0;var b=g;try{for(p(D),d=n(u);d!==null&&(!(d.expirationTime>D)||L&&!V());){var $=d.callback;if(typeof $=="function"){d.callback=null,g=d.priorityLevel;var B=$(d.expirationTime<=D);D=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(u)&&r(u),p(D)}else r(u);d=n(u)}if(d!==null)var pe=!0;else{var Re=n(c);Re!==null&&je(v,Re.startTime-D),pe=!1}return pe}finally{d=null,g=b,x=!1}}var S=!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?Pe():(S=!1,R=null)}}else S=!1}var Pe;if(typeof h=="function")Pe=function(){h(le)};else if(typeof MessageChannel<"u"){var In=new MessageChannel,Mt=In.port2;In.port1.onmessage=le,Pe=function(){Mt.postMessage(null)}}else Pe=function(){k(le,0)};function M(L){R=L,S||(S=!0,Pe())}function je(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||x||(w=!0,M(C))},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 b=g;g=D;try{return L()}finally{g=b}},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 b=g;g=L;try{return D()}finally{g=b}},e.unstable_scheduleCallback=function(L,D,b){var $=e.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?$+b:$):b=$,L){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=b+B,L={id:f++,callback:D,priorityLevel:L,startTime:b,expirationTime:B,sortIndex:-1},b>$?(L.sortIndex=b,t(c,L),n(u)===null&&L===n(c)&&(N?(m(P),P=-1):N=!0,je(v,b-$))):(L.sortIndex=B,t(u,L),w||x||(w=!0,M(C))),L},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(L){var D=g;return function(){var b=g;g=D;try{return L.apply(this,arguments)}finally{g=b}}}})(Vc);Wc.exports=Vc;var Vh=Wc.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 qh=j,Ae=Vh;function E(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 qc=new Set,es={};function Mn(e,t){xr(e,t),xr(e+"Capture",t)}function xr(e,t){for(es[e]=t,e=0;e<t.length;e++)qc.add(t[e])}var Rt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Di=Object.prototype.hasOwnProperty,Kh=/^[: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]*$/,eu={},tu={};function Jh(e){return Di.call(tu,e)?!0:Di.call(eu,e)?!1:Kh.test(e)?tu[e]=!0:(eu[e]=!0,!1)}function Gh(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 Yh(e,t,n,r){if(t===null||typeof t>"u"||Gh(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 me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[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];me[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[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){me[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var Go=/[\-:]([a-z])/g;function Yo(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,Yo);me[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,Yo);me[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,Yo);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xo(e,t,n,r){var s=me.hasOwnProperty(t)?me[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Yh(t,n,s,r)&&(n=null),r||s===null?Jh(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 Ft=qh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$s=Symbol.for("react.element"),An=Symbol.for("react.portal"),Un=Symbol.for("react.fragment"),Zo=Symbol.for("react.strict_mode"),$i=Symbol.for("react.profiler"),Kc=Symbol.for("react.provider"),Jc=Symbol.for("react.context"),ea=Symbol.for("react.forward_ref"),Ii=Symbol.for("react.suspense"),zi=Symbol.for("react.suspense_list"),ta=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),Gc=Symbol.for("react.offscreen"),nu=Symbol.iterator;function Lr(e){return e===null||typeof e!="object"?null:(e=nu&&e[nu]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,ai;function zr(e){if(ai===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ai=t&&t[1]||""}return`
|
|
34
|
+
`+ai+e}var ui=!1;function ci(e,t){if(!e||ui)return"";ui=!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{ui=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Xh(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=ci(e.type,!1),e;case 11:return e=ci(e.type.render,!1),e;case 1:return e=ci(e.type,!0),e;default:return""}}function Ai(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 Un:return"Fragment";case An:return"Portal";case $i:return"Profiler";case Zo:return"StrictMode";case Ii:return"Suspense";case zi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jc:return(e.displayName||"Context")+".Consumer";case Kc:return(e._context.displayName||"Context")+".Provider";case ea:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ta:return t=e.displayName||null,t!==null?t:Ai(e.type)||"Memo";case It:t=e._payload,e=e._init;try{return Ai(e(t))}catch{}}return null}function Zh(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 Ai(t);case 8:return t===Zo?"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 on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function em(e){var t=Yc(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=em(e))}function Xc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yc(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 Ui(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ru(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(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 Zc(e,t){t=t.checked,t!=null&&Xo(e,"checked",t,!1)}function Bi(e,t){Zc(e,t);var n=on(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,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(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 Ar=Array.isArray;function Xn(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=""+on(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 Hi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Ar(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function ed(e,t){var n=on(t.value),r=on(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 iu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function td(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 Wi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?td(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zs,nd=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(zs=zs||document.createElement("div"),zs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ts(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={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},tm=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){tm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function rd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function sd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=rd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var nm=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 Vi(e,t){if(t){if(nm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function qi(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 Ki=null;function na(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ji=null,Zn=null,er=null;function ou(e){if(e=Es(e)){if(typeof Ji!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Vl(t),Ji(e.stateNode,e.type,t))}}function ld(e){Zn?er?er.push(e):er=[e]:Zn=e}function id(){if(Zn){var e=Zn,t=er;if(er=Zn=null,ou(e),t)for(e=0;e<t.length;e++)ou(t[e])}}function od(e,t){return e(t)}function ad(){}var di=!1;function ud(e,t,n){if(di)return e(t,n);di=!0;try{return od(e,t,n)}finally{di=!1,(Zn!==null||er!==null)&&(ad(),id())}}function ns(e,t){var n=e.stateNode;if(n===null)return null;var r=Vl(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(E(231,t,typeof n));return n}var Gi=!1;if(Rt)try{var Tr={};Object.defineProperty(Tr,"passive",{get:function(){Gi=!0}}),window.addEventListener("test",Tr,Tr),window.removeEventListener("test",Tr,Tr)}catch{Gi=!1}function rm(e,t,n,r,s,l,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Wr=!1,gl=null,xl=!1,Yi=null,sm={onError:function(e){Wr=!0,gl=e}};function lm(e,t,n,r,s,l,o,a,u){Wr=!1,gl=null,rm.apply(sm,arguments)}function im(e,t,n,r,s,l,o,a,u){if(lm.apply(this,arguments),Wr){if(Wr){var c=gl;Wr=!1,gl=null}else throw Error(E(198));xl||(xl=!0,Yi=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 cd(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 au(e){if(Dn(e)!==e)throw Error(E(188))}function om(e){var t=e.alternate;if(!t){if(t=Dn(e),t===null)throw Error(E(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 au(s),e;if(l===r)return au(s),t;l=l.sibling}throw Error(E(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(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function dd(e){return e=om(e),e!==null?fd(e):null}function fd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fd(e);if(t!==null)return t;e=e.sibling}return null}var hd=Ae.unstable_scheduleCallback,uu=Ae.unstable_cancelCallback,am=Ae.unstable_shouldYield,um=Ae.unstable_requestPaint,re=Ae.unstable_now,cm=Ae.unstable_getCurrentPriorityLevel,ra=Ae.unstable_ImmediatePriority,md=Ae.unstable_UserBlockingPriority,yl=Ae.unstable_NormalPriority,dm=Ae.unstable_LowPriority,pd=Ae.unstable_IdlePriority,Bl=null,gt=null;function fm(e){if(gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Bl,e,void 0,(e.current.flags&128)===128)}catch{}}var it=Math.clz32?Math.clz32:pm,hm=Math.log,mm=Math.LN2;function pm(e){return e>>>=0,e===0?32:31-(hm(e)/mm|0)|0}var As=64,Us=4194304;function Ur(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 vl(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=Ur(a):(l&=o,l!==0&&(r=Ur(l)))}else o=n&~s,o!==0?r=Ur(o):l!==0&&(r=Ur(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-it(t),s=1<<n,r|=e[n],t&=~s;return r}function gm(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 xm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-it(l),a=1<<o,u=s[o];u===-1?((a&n)===0||(a&r)!==0)&&(s[o]=gm(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function Xi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gd(){var e=As;return As<<=1,(As&4194240)===0&&(As=64),e}function fi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function ym(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-it(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function sa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var W=0;function xd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var yd,la,vd,wd,jd,Zi=!1,Bs=[],Yt=null,Xt=null,Zt=null,rs=new Map,ss=new Map,At=[],vm="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 cu(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Zt=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ss.delete(t.pointerId)}}function _r(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=Es(t),t!==null&&la(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function wm(e,t,n,r,s){switch(t){case"focusin":return Yt=_r(Yt,e,t,n,r,s),!0;case"dragenter":return Xt=_r(Xt,e,t,n,r,s),!0;case"mouseover":return Zt=_r(Zt,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return rs.set(l,_r(rs.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,ss.set(l,_r(ss.get(l)||null,e,t,n,r,s)),!0}return!1}function Nd(e){var t=gn(e.target);if(t!==null){var n=Dn(t);if(n!==null){if(t=n.tag,t===13){if(t=cd(n),t!==null){e.blockedOn=t,jd(e.priority,function(){vd(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 rl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=eo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ki=r,n.target.dispatchEvent(r),Ki=null}else return t=Es(n),t!==null&&la(t),e.blockedOn=n,!1;t.shift()}return!0}function du(e,t,n){rl(e)&&n.delete(t)}function jm(){Zi=!1,Yt!==null&&rl(Yt)&&(Yt=null),Xt!==null&&rl(Xt)&&(Xt=null),Zt!==null&&rl(Zt)&&(Zt=null),rs.forEach(du),ss.forEach(du)}function Or(e,t){e.blockedOn===t&&(e.blockedOn=null,Zi||(Zi=!0,Ae.unstable_scheduleCallback(Ae.unstable_NormalPriority,jm)))}function ls(e){function t(s){return Or(s,e)}if(0<Bs.length){Or(Bs[0],e);for(var n=1;n<Bs.length;n++){var r=Bs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&Or(Yt,e),Xt!==null&&Or(Xt,e),Zt!==null&&Or(Zt,e),rs.forEach(t),ss.forEach(t),n=0;n<At.length;n++)r=At[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&(n=At[0],n.blockedOn===null);)Nd(n),n.blockedOn===null&&At.shift()}var tr=Ft.ReactCurrentBatchConfig,wl=!0;function Nm(e,t,n,r){var s=W,l=tr.transition;tr.transition=null;try{W=1,ia(e,t,n,r)}finally{W=s,tr.transition=l}}function km(e,t,n,r){var s=W,l=tr.transition;tr.transition=null;try{W=4,ia(e,t,n,r)}finally{W=s,tr.transition=l}}function ia(e,t,n,r){if(wl){var s=eo(e,t,n,r);if(s===null)Ni(e,t,r,jl,n),cu(e,r);else if(wm(s,e,t,n,r))r.stopPropagation();else if(cu(e,r),t&4&&-1<vm.indexOf(e)){for(;s!==null;){var l=Es(s);if(l!==null&&yd(l),l=eo(e,t,n,r),l===null&&Ni(e,t,r,jl,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else Ni(e,t,r,null,n)}}var jl=null;function eo(e,t,n,r){if(jl=null,e=na(r),e=gn(e),e!==null)if(t=Dn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=cd(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 jl=e,null}function kd(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(cm()){case ra:return 1;case md:return 4;case yl:case dm:return 16;case pd:return 536870912;default:return 16}default:return 16}}var Jt=null,oa=null,sl=null;function Sd(){if(sl)return sl;var e,t=oa,n=t.length,r,s="value"in Jt?Jt.value:Jt.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 sl=s.slice(e,1<r?1-r:void 0)}function ll(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 fu(){return!1}function Be(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:fu,this.isPropagationStopped=fu,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 br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},aa=Be(br),Cs=ee({},br,{view:0,detail:0}),Sm=Be(Cs),hi,mi,Fr,Ql=ee({},Cs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ua,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!==Fr&&(Fr&&e.type==="mousemove"?(hi=e.screenX-Fr.screenX,mi=e.screenY-Fr.screenY):mi=hi=0,Fr=e),hi)},movementY:function(e){return"movementY"in e?e.movementY:mi}}),hu=Be(Ql),bm=ee({},Ql,{dataTransfer:0}),Cm=Be(bm),Em=ee({},Cs,{relatedTarget:0}),pi=Be(Em),Pm=ee({},br,{animationName:0,elapsedTime:0,pseudoElement:0}),Rm=Be(Pm),Lm=ee({},br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tm=Be(Lm),_m=ee({},br,{data:0}),mu=Be(_m),Om={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fm={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"},Mm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mm[e])?!!t[e]:!1}function ua(){return Dm}var $m=ee({},Cs,{key:function(e){if(e.key){var t=Om[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ua,charCode:function(e){return e.type==="keypress"?ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Im=Be($m),zm=ee({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pu=Be(zm),Am=ee({},Cs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ua}),Um=Be(Am),Bm=ee({},br,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qm=Be(Bm),Hm=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}),Wm=Be(Hm),Vm=[9,13,27,32],ca=Rt&&"CompositionEvent"in window,Vr=null;Rt&&"documentMode"in document&&(Vr=document.documentMode);var qm=Rt&&"TextEvent"in window&&!Vr,bd=Rt&&(!ca||Vr&&8<Vr&&11>=Vr),gu=" ",xu=!1;function Cd(e,t){switch(e){case"keyup":return Vm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ed(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function Km(e,t){switch(e){case"compositionend":return Ed(t);case"keypress":return t.which!==32?null:(xu=!0,gu);case"textInput":return e=t.data,e===gu&&xu?null:e;default:return null}}function Jm(e,t){if(Bn)return e==="compositionend"||!ca&&Cd(e,t)?(e=Sd(),sl=oa=Jt=null,Bn=!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 bd&&t.locale!=="ko"?null:t.data;default:return null}}var Gm={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 yu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gm[e.type]:t==="textarea"}function Pd(e,t,n,r){ld(r),t=Nl(t,"onChange"),0<t.length&&(n=new aa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qr=null,is=null;function Ym(e){zd(e,0)}function Hl(e){var t=Wn(e);if(Xc(t))return e}function Xm(e,t){if(e==="change")return t}var Rd=!1;if(Rt){var gi;if(Rt){var xi="oninput"in document;if(!xi){var vu=document.createElement("div");vu.setAttribute("oninput","return;"),xi=typeof vu.oninput=="function"}gi=xi}else gi=!1;Rd=gi&&(!document.documentMode||9<document.documentMode)}function wu(){qr&&(qr.detachEvent("onpropertychange",Ld),is=qr=null)}function Ld(e){if(e.propertyName==="value"&&Hl(is)){var t=[];Pd(t,is,e,na(e)),ud(Ym,t)}}function Zm(e,t,n){e==="focusin"?(wu(),qr=t,is=n,qr.attachEvent("onpropertychange",Ld)):e==="focusout"&&wu()}function ep(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(is)}function tp(e,t){if(e==="click")return Hl(t)}function np(e,t){if(e==="input"||e==="change")return Hl(t)}function rp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var at=typeof Object.is=="function"?Object.is:rp;function os(e,t){if(at(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(!Di.call(t,s)||!at(e[s],t[s]))return!1}return!0}function ju(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nu(e,t){var n=ju(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=ju(n)}}function Td(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Td(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _d(){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 da(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 sp(e){var t=_d(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Td(n.ownerDocument.documentElement,n)){if(r!==null&&da(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=Nu(n,l);var o=Nu(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 lp=Rt&&"documentMode"in document&&11>=document.documentMode,Qn=null,to=null,Kr=null,no=!1;function ku(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;no||Qn==null||Qn!==pl(r)||(r=Qn,"selectionStart"in r&&da(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}),Kr&&os(Kr,r)||(Kr=r,r=Nl(to,"onSelect"),0<r.length&&(t=new aa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qn)))}function Hs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hn={animationend:Hs("Animation","AnimationEnd"),animationiteration:Hs("Animation","AnimationIteration"),animationstart:Hs("Animation","AnimationStart"),transitionend:Hs("Transition","TransitionEnd")},yi={},Od={};Rt&&(Od=document.createElement("div").style,"AnimationEvent"in window||(delete Hn.animationend.animation,delete Hn.animationiteration.animation,delete Hn.animationstart.animation),"TransitionEvent"in window||delete Hn.transitionend.transition);function Wl(e){if(yi[e])return yi[e];if(!Hn[e])return e;var t=Hn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Od)return yi[e]=t[n];return e}var Fd=Wl("animationend"),Md=Wl("animationiteration"),Dd=Wl("animationstart"),$d=Wl("transitionend"),Id=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 un(e,t){Id.set(e,t),Mn(t,[e])}for(var vi=0;vi<Su.length;vi++){var wi=Su[vi],ip=wi.toLowerCase(),op=wi[0].toUpperCase()+wi.slice(1);un(ip,"on"+op)}un(Fd,"onAnimationEnd");un(Md,"onAnimationIteration");un(Dd,"onAnimationStart");un("dblclick","onDoubleClick");un("focusin","onFocus");un("focusout","onBlur");un($d,"onTransitionEnd");xr("onMouseEnter",["mouseout","mouseover"]);xr("onMouseLeave",["mouseout","mouseover"]);xr("onPointerEnter",["pointerout","pointerover"]);xr("onPointerLeave",["pointerout","pointerover"]);Mn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),ap=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function bu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,im(r,t,void 0,e),e.currentTarget=null}function zd(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;bu(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;bu(s,a,c),l=u}}}if(xl)throw e=Yi,xl=!1,Yi=null,e}function K(e,t){var n=t[oo];n===void 0&&(n=t[oo]=new Set);var r=e+"__bubble";n.has(r)||(Ad(t,e,2,!1),n.add(r))}function ji(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[Ws]){e[Ws]=!0,qc.forEach(function(n){n!=="selectionchange"&&(ap.has(n)||ji(n,!1,e),ji(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ws]||(t[Ws]=!0,ji("selectionchange",!1,t))}}function Ad(e,t,n,r){switch(kd(t)){case 1:var s=Nm;break;case 4:s=km;break;default:s=ia}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 Ni(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}ud(function(){var c=l,f=na(n),d=[];e:{var g=Id.get(e);if(g!==void 0){var x=aa,w=e;switch(e){case"keypress":if(ll(n)===0)break e;case"keydown":case"keyup":x=Im;break;case"focusin":w="focus",x=pi;break;case"focusout":w="blur",x=pi;break;case"beforeblur":case"afterblur":x=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":x=hu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Cm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Um;break;case Fd:case Md:case Dd:x=Rm;break;case $d:x=Qm;break;case"scroll":x=Sm;break;case"wheel":x=Wm;break;case"copy":case"cut":case"paste":x=Tm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=pu}var N=(t&4)!==0,k=!N&&e==="scroll",m=N?g!==null?g+"Capture":null:g;N=[];for(var h=c,p;h!==null;){p=h;var v=p.stateNode;if(p.tag===5&&v!==null&&(p=v,m!==null&&(v=ns(h,m),v!=null&&N.push(us(h,v,p)))),k)break;h=h.return}0<N.length&&(g=new x(g,w,null,n,f),d.push({event:g,listeners:N}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",g&&n!==Ki&&(w=n.relatedTarget||n.fromElement)&&(gn(w)||w[Lt]))break e;if((x||g)&&(g=f.window===f?f:(g=f.ownerDocument)?g.defaultView||g.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=c,w=w?gn(w):null,w!==null&&(k=Dn(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=c),x!==w)){if(N=hu,v="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(N=pu,v="onPointerLeave",m="onPointerEnter",h="pointer"),k=x==null?g:Wn(x),p=w==null?g:Wn(w),g=new N(v,h+"leave",x,n,f),g.target=k,g.relatedTarget=p,v=null,gn(f)===c&&(N=new N(m,h+"enter",w,n,f),N.target=p,N.relatedTarget=k,v=N),k=v,x&&w)t:{for(N=x,m=w,h=0,p=N;p;p=zn(p))h++;for(p=0,v=m;v;v=zn(v))p++;for(;0<h-p;)N=zn(N),h--;for(;0<p-h;)m=zn(m),p--;for(;h--;){if(N===m||m!==null&&N===m.alternate)break t;N=zn(N),m=zn(m)}N=null}else N=null;x!==null&&Cu(d,g,x,N,!1),w!==null&&k!==null&&Cu(d,k,w,N,!0)}}e:{if(g=c?Wn(c):window,x=g.nodeName&&g.nodeName.toLowerCase(),x==="select"||x==="input"&&g.type==="file")var C=Xm;else if(yu(g))if(Rd)C=np;else{C=ep;var S=Zm}else(x=g.nodeName)&&x.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(C=tp);if(C&&(C=C(e,c))){Pd(d,C,n,f);break e}S&&S(e,g,c),e==="focusout"&&(S=g._wrapperState)&&S.controlled&&g.type==="number"&&Qi(g,"number",g.value)}switch(S=c?Wn(c):window,e){case"focusin":(yu(S)||S.contentEditable==="true")&&(Qn=S,to=c,Kr=null);break;case"focusout":Kr=to=Qn=null;break;case"mousedown":no=!0;break;case"contextmenu":case"mouseup":case"dragend":no=!1,ku(d,n,f);break;case"selectionchange":if(lp)break;case"keydown":case"keyup":ku(d,n,f)}var R;if(ca)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 Bn?Cd(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(bd&&n.locale!=="ko"&&(Bn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Bn&&(R=Sd()):(Jt=f,oa="value"in Jt?Jt.value:Jt.textContent,Bn=!0)),S=Nl(c,P),0<S.length&&(P=new mu(P,e,null,n,f),d.push({event:P,listeners:S}),R?P.data=R:(R=Ed(n),R!==null&&(P.data=R)))),(R=qm?Km(e,n):Jm(e,n))&&(c=Nl(c,"onBeforeInput"),0<c.length&&(f=new mu("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:c}),f.data=R))}zd(d,t)})}function us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=ns(e,n),l!=null&&r.unshift(us(e,l,s)),l=ns(e,t),l!=null&&r.push(us(e,l,s))),e=e.return}return r}function zn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cu(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=ns(n,l),u!=null&&o.unshift(us(n,u,a))):s||(u=ns(n,l),u!=null&&o.push(us(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var up=/\r\n?/g,cp=/\u0000|\uFFFD/g;function Eu(e){return(typeof e=="string"?e:""+e).replace(up,`
|
|
38
|
+
`).replace(cp,"")}function Vs(e,t,n){if(t=Eu(t),Eu(e)!==t&&n)throw Error(E(425))}function kl(){}var ro=null,so=null;function lo(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 io=typeof setTimeout=="function"?setTimeout:void 0,dp=typeof clearTimeout=="function"?clearTimeout:void 0,Pu=typeof Promise=="function"?Promise:void 0,fp=typeof queueMicrotask=="function"?queueMicrotask:typeof Pu<"u"?function(e){return Pu.resolve(null).then(e).catch(hp)}:io;function hp(e){setTimeout(function(){throw e})}function ki(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),ls(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ls(t)}function en(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 Ru(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),pt="__reactFiber$"+Cr,cs="__reactProps$"+Cr,Lt="__reactContainer$"+Cr,oo="__reactEvents$"+Cr,mp="__reactListeners$"+Cr,pp="__reactHandles$"+Cr;function gn(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lt]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ru(e);e!==null;){if(n=e[pt])return n;e=Ru(e)}return t}e=n,n=e.parentNode}return null}function Es(e){return e=e[pt]||e[Lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Vl(e){return e[cs]||null}var ao=[],Vn=-1;function cn(e){return{current:e}}function J(e){0>Vn||(e.current=ao[Vn],ao[Vn]=null,Vn--)}function q(e,t){Vn++,ao[Vn]=e.current,e.current=t}var an={},we=cn(an),Fe=cn(!1),Rn=an;function yr(e,t){var n=e.type.contextTypes;if(!n)return an;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 Me(e){return e=e.childContextTypes,e!=null}function Sl(){J(Fe),J(we)}function Lu(e,t,n){if(we.current!==an)throw Error(E(168));q(we,t),q(Fe,n)}function Ud(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(E(108,Zh(e)||"Unknown",s));return ee({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,Rn=we.current,q(we,e),q(Fe,Fe.current),!0}function Tu(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Ud(e,t,Rn),r.__reactInternalMemoizedMergedChildContext=e,J(Fe),J(we),q(we,e)):J(Fe),q(Fe,n)}var Nt=null,ql=!1,Si=!1;function Bd(e){Nt===null?Nt=[e]:Nt.push(e)}function gp(e){ql=!0,Bd(e)}function dn(){if(!Si&&Nt!==null){Si=!0;var e=0,t=W;try{var n=Nt;for(W=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Nt=null,ql=!1}catch(s){throw Nt!==null&&(Nt=Nt.slice(e+1)),hd(ra,dn),s}finally{W=t,Si=!1}}return null}var qn=[],Kn=0,Cl=null,El=0,Ke=[],Je=0,Ln=null,bt=1,Ct="";function mn(e,t){qn[Kn++]=El,qn[Kn++]=Cl,Cl=e,El=t}function Qd(e,t,n){Ke[Je++]=bt,Ke[Je++]=Ct,Ke[Je++]=Ln,Ln=e;var r=bt;e=Ct;var s=32-it(r)-1;r&=~(1<<s),n+=1;var l=32-it(t)+s;if(30<l){var o=s-s%5;l=(r&(1<<o)-1).toString(32),r>>=o,s-=o,bt=1<<32-it(t)+s|n<<s|r,Ct=l+e}else bt=1<<l|n<<s|r,Ct=e}function fa(e){e.return!==null&&(mn(e,1),Qd(e,1,0))}function ha(e){for(;e===Cl;)Cl=qn[--Kn],qn[Kn]=null,El=qn[--Kn],qn[Kn]=null;for(;e===Ln;)Ln=Ke[--Je],Ke[Je]=null,Ct=Ke[--Je],Ke[Je]=null,bt=Ke[--Je],Ke[Je]=null}var ze=null,Ie=null,G=!1,lt=null;function Hd(e,t){var n=Ge(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 _u(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,Ie=en(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ze=e,Ie=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ln!==null?{id:bt,overflow:Ct}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ge(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ze=e,Ie=null,!0):!1;default:return!1}}function uo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function co(e){if(G){var t=Ie;if(t){var n=t;if(!_u(e,t)){if(uo(e))throw Error(E(418));t=en(n.nextSibling);var r=ze;t&&_u(e,t)?Hd(r,n):(e.flags=e.flags&-4097|2,G=!1,ze=e)}}else{if(uo(e))throw Error(E(418));e.flags=e.flags&-4097|2,G=!1,ze=e}}}function Ou(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ze=e}function qs(e){if(e!==ze)return!1;if(!G)return Ou(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lo(e.type,e.memoizedProps)),t&&(t=Ie)){if(uo(e))throw Wd(),Error(E(418));for(;t;)Hd(e,t),t=en(t.nextSibling)}if(Ou(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ie=en(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ie=null}}else Ie=ze?en(e.stateNode.nextSibling):null;return!0}function Wd(){for(var e=Ie;e;)e=en(e.nextSibling)}function vr(){Ie=ze=null,G=!1}function ma(e){lt===null?lt=[e]:lt.push(e)}var xp=Ft.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(E(309));var r=n.stateNode}if(!r)throw Error(E(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(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Ks(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fu(e){var t=e._init;return t(e._payload)}function Vd(e){function t(m,h){if(e){var p=m.deletions;p===null?(m.deletions=[h],m.flags|=16):p.push(h)}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function s(m,h){return m=sn(m,h),m.index=0,m.sibling=null,m}function l(m,h,p){return m.index=p,e?(p=m.alternate,p!==null?(p=p.index,p<h?(m.flags|=2,h):p):(m.flags|=2,h)):(m.flags|=1048576,h)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,h,p,v){return h===null||h.tag!==6?(h=Ti(p,m.mode,v),h.return=m,h):(h=s(h,p),h.return=m,h)}function u(m,h,p,v){var C=p.type;return C===Un?f(m,h,p.props.children,v,p.key):h!==null&&(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===It&&Fu(C)===h.type)?(v=s(h,p.props),v.ref=Mr(m,h,p),v.return=m,v):(v=fl(p.type,p.key,p.props,null,m.mode,v),v.ref=Mr(m,h,p),v.return=m,v)}function c(m,h,p,v){return h===null||h.tag!==4||h.stateNode.containerInfo!==p.containerInfo||h.stateNode.implementation!==p.implementation?(h=_i(p,m.mode,v),h.return=m,h):(h=s(h,p.children||[]),h.return=m,h)}function f(m,h,p,v,C){return h===null||h.tag!==7?(h=Pn(p,m.mode,v,C),h.return=m,h):(h=s(h,p),h.return=m,h)}function d(m,h,p){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Ti(""+h,m.mode,p),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case $s:return p=fl(h.type,h.key,h.props,null,m.mode,p),p.ref=Mr(m,null,h),p.return=m,p;case An:return h=_i(h,m.mode,p),h.return=m,h;case It:var v=h._init;return d(m,v(h._payload),p)}if(Ar(h)||Lr(h))return h=Pn(h,m.mode,p,null),h.return=m,h;Ks(m,h)}return null}function g(m,h,p,v){var C=h!==null?h.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return C!==null?null:a(m,h,""+p,v);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case $s:return p.key===C?u(m,h,p,v):null;case An:return p.key===C?c(m,h,p,v):null;case It:return C=p._init,g(m,h,C(p._payload),v)}if(Ar(p)||Lr(p))return C!==null?null:f(m,h,p,v,null);Ks(m,p)}return null}function x(m,h,p,v,C){if(typeof v=="string"&&v!==""||typeof v=="number")return m=m.get(p)||null,a(h,m,""+v,C);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case $s:return m=m.get(v.key===null?p:v.key)||null,u(h,m,v,C);case An:return m=m.get(v.key===null?p:v.key)||null,c(h,m,v,C);case It:var S=v._init;return x(m,h,p,S(v._payload),C)}if(Ar(v)||Lr(v))return m=m.get(p)||null,f(h,m,v,C,null);Ks(h,v)}return null}function w(m,h,p,v){for(var C=null,S=null,R=h,P=h=0,_=null;R!==null&&P<p.length;P++){R.index>P?(_=R,R=null):_=R.sibling;var T=g(m,R,p[P],v);if(T===null){R===null&&(R=_);break}e&&R&&T.alternate===null&&t(m,R),h=l(T,h,P),S===null?C=T:S.sibling=T,S=T,R=_}if(P===p.length)return n(m,R),G&&mn(m,P),C;if(R===null){for(;P<p.length;P++)R=d(m,p[P],v),R!==null&&(h=l(R,h,P),S===null?C=R:S.sibling=R,S=R);return G&&mn(m,P),C}for(R=r(m,R);P<p.length;P++)_=x(R,m,P,p[P],v),_!==null&&(e&&_.alternate!==null&&R.delete(_.key===null?P:_.key),h=l(_,h,P),S===null?C=_:S.sibling=_,S=_);return e&&R.forEach(function(V){return t(m,V)}),G&&mn(m,P),C}function N(m,h,p,v){var C=Lr(p);if(typeof C!="function")throw Error(E(150));if(p=C.call(p),p==null)throw Error(E(151));for(var S=C=null,R=h,P=h=0,_=null,T=p.next();R!==null&&!T.done;P++,T=p.next()){R.index>P?(_=R,R=null):_=R.sibling;var V=g(m,R,T.value,v);if(V===null){R===null&&(R=_);break}e&&R&&V.alternate===null&&t(m,R),h=l(V,h,P),S===null?C=V:S.sibling=V,S=V,R=_}if(T.done)return n(m,R),G&&mn(m,P),C;if(R===null){for(;!T.done;P++,T=p.next())T=d(m,T.value,v),T!==null&&(h=l(T,h,P),S===null?C=T:S.sibling=T,S=T);return G&&mn(m,P),C}for(R=r(m,R);!T.done;P++,T=p.next())T=x(R,m,P,T.value,v),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?P:T.key),h=l(T,h,P),S===null?C=T:S.sibling=T,S=T);return e&&R.forEach(function(le){return t(m,le)}),G&&mn(m,P),C}function k(m,h,p,v){if(typeof p=="object"&&p!==null&&p.type===Un&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case $s:e:{for(var C=p.key,S=h;S!==null;){if(S.key===C){if(C=p.type,C===Un){if(S.tag===7){n(m,S.sibling),h=s(S,p.props.children),h.return=m,m=h;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===It&&Fu(C)===S.type){n(m,S.sibling),h=s(S,p.props),h.ref=Mr(m,S,p),h.return=m,m=h;break e}n(m,S);break}else t(m,S);S=S.sibling}p.type===Un?(h=Pn(p.props.children,m.mode,v,p.key),h.return=m,m=h):(v=fl(p.type,p.key,p.props,null,m.mode,v),v.ref=Mr(m,h,p),v.return=m,m=v)}return o(m);case An:e:{for(S=p.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(m,h.sibling),h=s(h,p.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=_i(p,m.mode,v),h.return=m,m=h}return o(m);case It:return S=p._init,k(m,h,S(p._payload),v)}if(Ar(p))return w(m,h,p,v);if(Lr(p))return N(m,h,p,v);Ks(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(m,h.sibling),h=s(h,p),h.return=m,m=h):(n(m,h),h=Ti(p,m.mode,v),h.return=m,m=h),o(m)):n(m,h)}return k}var wr=Vd(!0),qd=Vd(!1),Pl=cn(null),Rl=null,Jn=null,pa=null;function ga(){pa=Jn=Rl=null}function xa(e){var t=Pl.current;J(Pl),e._currentValue=t}function fo(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 nr(e,t){Rl=e,pa=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Oe=!0),e.firstContext=null)}function Xe(e){var t=e._currentValue;if(pa!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if(Rl===null)throw Error(E(308));Jn=e,Rl.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var xn=null;function ya(e){xn===null?xn=[e]:xn.push(e)}function Kd(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,Tt(e,r)}function Tt(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 zt=!1;function va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jd(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 Et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Q&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Tt(e,n)}return s=r.interleaved,s===null?(t.next=t,ya(r)):(t.next=s.next,s.next=t),r.interleaved=t,Tt(e,n)}function il(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,sa(e,n)}}function Mu(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 Ll(e,t,n,r){var s=e.updateQueue;zt=!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 f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==o&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=u))}if(l!==null){var d=s.baseState;o=0,f=c=u=null,a=l;do{var g=a.lane,x=a.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,N=a;switch(g=t,x=n,N.tag){case 1:if(w=N.payload,typeof w=="function"){d=w.call(x,d,g);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=N.payload,g=typeof w=="function"?w.call(x,d,g):w,g==null)break e;d=ee({},d,g);break e;case 2:zt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[a]:g.push(a))}else x={eventTime:x,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=x,u=d):f=f.next=x,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(f===null&&(u=d),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=f,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 Du(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(E(191,s));s.call(r)}}}var Ps={},xt=cn(Ps),ds=cn(Ps),fs=cn(Ps);function yn(e){if(e===Ps)throw Error(E(174));return e}function wa(e,t){switch(q(fs,t),q(ds,e),q(xt,Ps),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wi(t,e)}J(xt),q(xt,t)}function jr(){J(xt),J(ds),J(fs)}function Gd(e){yn(fs.current);var t=yn(xt.current),n=Wi(t,e.type);t!==n&&(q(ds,e),q(xt,n))}function ja(e){ds.current===e&&(J(xt),J(ds))}var Y=cn(0);function Tl(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 bi=[];function Na(){for(var e=0;e<bi.length;e++)bi[e]._workInProgressVersionPrimary=null;bi.length=0}var ol=Ft.ReactCurrentDispatcher,Ci=Ft.ReactCurrentBatchConfig,Tn=0,X=null,ie=null,ue=null,_l=!1,Jr=!1,hs=0,yp=0;function ge(){throw Error(E(321))}function ka(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!at(e[n],t[n]))return!1;return!0}function Sa(e,t,n,r,s,l){if(Tn=l,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ol.current=e===null||e.memoizedState===null?Np:kp,e=n(r,s),Jr){l=0;do{if(Jr=!1,hs=0,25<=l)throw Error(E(301));l+=1,ue=ie=null,t.updateQueue=null,ol.current=Sp,e=n(r,s)}while(Jr)}if(ol.current=Ol,t=ie!==null&&ie.next!==null,Tn=0,ue=ie=X=null,_l=!1,t)throw Error(E(300));return e}function ba(){var e=hs!==0;return hs=0,e}function dt(){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 Ze(){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(E(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 ms(e,t){return typeof t=="function"?t(e):t}function Ei(e){var t=Ze(),n=t.queue;if(n===null)throw Error(E(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 f=c.lane;if((Tn&f)===f)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:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=d,o=r):u=u.next=d,X.lanes|=f,_n|=f}c=c.next}while(c!==null&&c!==l);u===null?o=r:u.next=a,at(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 Pi(e){var t=Ze(),n=t.queue;if(n===null)throw Error(E(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);at(l,t.memoizedState)||(Oe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Yd(){}function Xd(e,t){var n=X,r=Ze(),s=t(),l=!at(r.memoizedState,s);if(l&&(r.memoizedState=s,Oe=!0),r=r.queue,Ca(tf.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,ps(9,ef.bind(null,n,r,s,t),void 0,null),ce===null)throw Error(E(349));(Tn&30)!==0||Zd(n,t,s)}return s}function Zd(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 ef(e,t,n,r){t.value=n,t.getSnapshot=r,nf(t)&&rf(e)}function tf(e,t,n){return n(function(){nf(t)&&rf(e)})}function nf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!at(e,n)}catch{return!0}}function rf(e){var t=Tt(e,1);t!==null&&ot(t,e,1,-1)}function $u(e){var t=dt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:e},t.queue=e,e=e.dispatch=jp.bind(null,X,e),[t.memoizedState,e]}function ps(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 sf(){return Ze().memoizedState}function al(e,t,n,r){var s=dt();X.flags|=e,s.memoizedState=ps(1|t,n,void 0,r===void 0?null:r)}function Kl(e,t,n,r){var s=Ze();r=r===void 0?null:r;var l=void 0;if(ie!==null){var o=ie.memoizedState;if(l=o.destroy,r!==null&&ka(r,o.deps)){s.memoizedState=ps(t,n,l,r);return}}X.flags|=e,s.memoizedState=ps(1|t,n,l,r)}function Iu(e,t){return al(8390656,8,e,t)}function Ca(e,t){return Kl(2048,8,e,t)}function lf(e,t){return Kl(4,2,e,t)}function of(e,t){return Kl(4,4,e,t)}function af(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 uf(e,t,n){return n=n!=null?n.concat([e]):null,Kl(4,4,af.bind(null,t,e),n)}function Ea(){}function cf(e,t){var n=Ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function df(e,t){var n=Ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ff(e,t,n){return(Tn&21)===0?(e.baseState&&(e.baseState=!1,Oe=!0),e.memoizedState=n):(at(n,t)||(n=gd(),X.lanes|=n,_n|=n,e.baseState=!0),t)}function vp(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 hf(){return Ze().memoizedState}function wp(e,t,n){var r=rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mf(e))pf(t,n);else if(n=Kd(e,t,n,r),n!==null){var s=be();ot(n,e,r,s),gf(n,t,r)}}function jp(e,t,n){var r=rn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mf(e))pf(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,at(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=Kd(e,t,s,r),n!==null&&(s=be(),ot(n,e,r,s),gf(n,t,r))}}function mf(e){var t=e.alternate;return e===X||t!==null&&t===X}function pf(e,t){Jr=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gf(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sa(e,n)}}var Ol={readContext:Xe,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},Np={readContext:Xe,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:Iu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,al(4194308,4,af.bind(null,t,e),n)},useLayoutEffect:function(e,t){return al(4194308,4,e,t)},useInsertionEffect:function(e,t){return al(4,2,e,t)},useMemo:function(e,t){var n=dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dt();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=wp.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:$u,useDebugValue:Ea,useDeferredValue:function(e){return dt().memoizedState=e},useTransition:function(){var e=$u(!1),t=e[0];return e=vp.bind(null,e[1]),dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,s=dt();if(G){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ce===null)throw Error(E(349));(Tn&30)!==0||Zd(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,Iu(tf.bind(null,r,l,e),[e]),r.flags|=2048,ps(9,ef.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=dt(),t=ce.identifierPrefix;if(G){var n=Ct,r=bt;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=yp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kp={readContext:Xe,useCallback:cf,useContext:Xe,useEffect:Ca,useImperativeHandle:uf,useInsertionEffect:lf,useLayoutEffect:of,useMemo:df,useReducer:Ei,useRef:sf,useState:function(){return Ei(ms)},useDebugValue:Ea,useDeferredValue:function(e){var t=Ze();return ff(t,ie.memoizedState,e)},useTransition:function(){var e=Ei(ms)[0],t=Ze().memoizedState;return[e,t]},useMutableSource:Yd,useSyncExternalStore:Xd,useId:hf,unstable_isNewReconciler:!1},Sp={readContext:Xe,useCallback:cf,useContext:Xe,useEffect:Ca,useImperativeHandle:uf,useInsertionEffect:lf,useLayoutEffect:of,useMemo:df,useReducer:Pi,useRef:sf,useState:function(){return Pi(ms)},useDebugValue:Ea,useDeferredValue:function(e){var t=Ze();return ie===null?t.memoizedState=e:ff(t,ie.memoizedState,e)},useTransition:function(){var e=Pi(ms)[0],t=Ze().memoizedState;return[e,t]},useMutableSource:Yd,useSyncExternalStore:Xd,useId:hf,unstable_isNewReconciler:!1};function tt(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 ho(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 Jl={isMounted:function(e){return(e=e._reactInternals)?Dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=be(),s=rn(e),l=Et(r,s);l.payload=t,n!=null&&(l.callback=n),t=tn(e,l,s),t!==null&&(ot(t,e,s,r),il(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=be(),s=rn(e),l=Et(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=tn(e,l,s),t!==null&&(ot(t,e,s,r),il(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=be(),r=rn(e),s=Et(n,r);s.tag=2,t!=null&&(s.callback=t),t=tn(e,s,r),t!==null&&(ot(t,e,r,n),il(t,e,r))}};function zu(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?!os(n,r)||!os(s,l):!0}function xf(e,t,n){var r=!1,s=an,l=t.contextType;return typeof l=="object"&&l!==null?l=Xe(l):(s=Me(t)?Rn:we.current,r=t.contextTypes,l=(r=r!=null)?yr(e,s):an),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function Au(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&&Jl.enqueueReplaceState(t,t.state,null)}function mo(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},va(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=Xe(l):(l=Me(t)?Rn:we.current,s.context=yr(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(ho(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&&Jl.enqueueReplaceState(s,s.state,null),Ll(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Nr(e,t){try{var n="",r=t;do n+=Xh(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 Ri(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 bp=typeof WeakMap=="function"?WeakMap:Map;function yf(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ml||(Ml=!0,bo=r),po(e,t)},n}function vf(e,t,n){n=Et(-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"&&(nn===null?nn=new Set([this]):nn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Uu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bp;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=zp.bind(null,e,t,n),t.then(e,e))}function Bu(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 Qu(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=Et(-1,1),t.tag=2,tn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=s,e)}var Cp=Ft.ReactCurrentOwner,Oe=!1;function Se(e,t,n,r){t.child=e===null?qd(t,null,n,r):wr(t,e.child,n,r)}function Hu(e,t,n,r,s){n=n.render;var l=t.ref;return nr(t,s),r=Sa(e,t,n,r,l,s),n=ba(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,_t(e,t,s)):(G&&n&&fa(t),t.flags|=1,Se(e,t,r,s),t.child)}function Wu(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,wf(e,t,l,r,s)):(e=fl(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:os,n(o,r)&&e.ref===t.ref)return _t(e,t,s)}return t.flags|=1,e=sn(l,r),e.ref=t.ref,e.return=t,t.child=e}function wf(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(os(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,_t(e,t,s)}return go(e,t,n,r,s)}function jf(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(Yn,$e),$e|=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(Yn,$e),$e|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,q(Yn,$e),$e|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,q(Yn,$e),$e|=r;return Se(e,t,s,n),t.child}function Nf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function go(e,t,n,r,s){var l=Me(n)?Rn:we.current;return l=yr(t,l),nr(t,s),n=Sa(e,t,n,r,l,s),r=ba(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,_t(e,t,s)):(G&&r&&fa(t),t.flags|=1,Se(e,t,n,s),t.child)}function Vu(e,t,n,r,s){if(Me(n)){var l=!0;bl(t)}else l=!1;if(nr(t,s),t.stateNode===null)ul(e,t),xf(t,n,r),mo(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=Xe(c):(c=Me(n)?Rn:we.current,c=yr(t,c));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Au(t,o,r,c),zt=!1;var g=t.memoizedState;o.state=g,Ll(t,r,o,s),u=t.memoizedState,a!==r||g!==u||Fe.current||zt?(typeof f=="function"&&(ho(t,n,f,r),u=t.memoizedState),(a=zt||zu(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,Jd(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:tt(t.type,a),o.props=c,d=t.pendingProps,g=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Xe(u):(u=Me(n)?Rn:we.current,u=yr(t,u));var x=n.getDerivedStateFromProps;(f=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||g!==u)&&Au(t,o,r,u),zt=!1,g=t.memoizedState,o.state=g,Ll(t,r,o,s);var w=t.memoizedState;a!==d||g!==w||Fe.current||zt?(typeof x=="function"&&(ho(t,n,x,r),w=t.memoizedState),(c=zt||zu(t,n,c,r,g,w,u)||!1)?(f||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 xo(e,t,n,r,l,s)}function xo(e,t,n,r,s,l){Nf(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Tu(t,n,!1),_t(e,t,l);r=t.stateNode,Cp.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=wr(t,e.child,null,l),t.child=wr(t,null,a,l)):Se(e,t,a,l),t.memoizedState=r.state,s&&Tu(t,n,!0),t.child}function kf(e){var t=e.stateNode;t.pendingContext?Lu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lu(e,t.context,!1),wa(e,t.containerInfo)}function qu(e,t,n,r,s){return vr(),ma(s),t.flags|=256,Se(e,t,n,r),t.child}var yo={dehydrated:null,treeContext:null,retryLane:0};function vo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sf(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 co(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=Xl(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=vo(n),t.memoizedState=yo,e):Pa(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Ep(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=sn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?l=sn(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?vo(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=sn(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 Pa(e,t){return t=Xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Js(e,t,n,r){return r!==null&&ma(r),wr(t,e.child,null,n),e=Pa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ep(e,t,n,r,s,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Ri(Error(E(422))),Js(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=Xl({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&&wr(t,e.child,null,o),t.child.memoizedState=vo(o),t.memoizedState=yo,l);if((t.mode&1)===0)return Js(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(E(419)),r=Ri(l,r,void 0),Js(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,Tt(e,s),ot(r,e,s,-1))}return Fa(),r=Ri(Error(E(421))),Js(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Ap.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,Ie=en(s.nextSibling),ze=t,G=!0,lt=null,e!==null&&(Ke[Je++]=bt,Ke[Je++]=Ct,Ke[Je++]=Ln,bt=e.id,Ct=e.overflow,Ln=t),t=Pa(t,r.children),t.flags|=4096,t)}function Ku(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fo(e.return,t,n)}function Li(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 bf(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(Se(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&&Ku(e,n,t);else if(e.tag===19)Ku(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&&Tl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Li(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&&Tl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Li(t,!0,n,null,l);break;case"together":Li(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _t(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(E(153));if(t.child!==null){for(e=t.child,n=sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pp(e,t,n){switch(t.tag){case 3:kf(t),vr();break;case 5:Gd(t);break;case 1:Me(t.type)&&bl(t);break;case 4:wa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;q(Pl,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?Sf(e,t,n):(q(Y,Y.current&1),e=_t(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 bf(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,jf(e,t,n)}return _t(e,t,n)}var Cf,wo,Ef,Pf;Cf=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}};wo=function(){};Ef=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,yn(xt.current);var l=null;switch(n){case"input":s=Ui(e,s),r=Ui(e,r),l=[];break;case"select":s=ee({},s,{value:void 0}),r=ee({},r,{value:void 0}),l=[];break;case"textarea":s=Hi(e,s),r=Hi(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=kl)}Vi(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"&&(es.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"&&(es.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)}};Pf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Dr(e,t){if(!G)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 xe(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 Rp(e,t,n){var r=t.pendingProps;switch(ha(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Me(t.type)&&Sl(),xe(t),null;case 3:return r=t.stateNode,jr(),J(Fe),J(we),Na(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(qs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lt!==null&&(Po(lt),lt=null))),wo(e,t),xe(t),null;case 5:ja(t);var s=yn(fs.current);if(n=t.type,e!==null&&t.stateNode!=null)Ef(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return xe(t),null}if(e=yn(xt.current),qs(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[pt]=t,r[cs]=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<Br.length;s++)K(Br[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":ru(r,l),K("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},K("invalid",r);break;case"textarea":lu(r,l),K("invalid",r)}Vi(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&&Vs(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&Vs(r.textContent,a,e),s=["children",""+a]):es.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&K("scroll",r)}switch(n){case"input":Is(r),su(r,l,!0);break;case"textarea":Is(r),iu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=kl)}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=td(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[pt]=t,e[cs]=r,Cf(e,t,!1,!1),t.stateNode=e;e:{switch(o=qi(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<Br.length;s++)K(Br[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":ru(e,r),s=Ui(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":lu(e,r),s=Hi(e,r),K("invalid",e);break;default:s=r}Vi(n,s),a=s;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?sd(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&nd(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&ts(e,u):typeof u=="number"&&ts(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(es.hasOwnProperty(l)?u!=null&&l==="onScroll"&&K("scroll",e):u!=null&&Xo(e,l,u,o))}switch(n){case"input":Is(e),su(e,r,!1);break;case"textarea":Is(e),iu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Xn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Xn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=kl)}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 xe(t),null;case 6:if(e&&t.stateNode!=null)Pf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=yn(fs.current),yn(xt.current),qs(t)){if(r=t.stateNode,n=t.memoizedProps,r[pt]=t,(l=r.nodeValue!==n)&&(e=ze,e!==null))switch(e.tag){case 3:Vs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vs(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[pt]=t,t.stateNode=r}return xe(t),null;case 13:if(J(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&Ie!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Wd(),vr(),t.flags|=98560,l=!1;else if(l=qs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(E(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(E(317));l[pt]=t}else vr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xe(t),l=!1}else lt!==null&&(Po(lt),lt=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):Fa())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return jr(),wo(e,t),e===null&&as(t.stateNode.containerInfo),xe(t),null;case 10:return xa(t.type._context),xe(t),null;case 17:return Me(t.type)&&Sl(),xe(t),null;case 19:if(J(Y),l=t.memoizedState,l===null)return xe(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Dr(l,!1);else{if(oe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Tl(e),o!==null){for(t.flags|=128,Dr(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()>kr&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Tl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!G)return xe(t),null}else 2*re()-l.renderingStartTime>kr&&n!==1073741824&&(t.flags|=128,r=!0,Dr(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):(xe(t),null);case 22:case 23:return Oa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?($e&1073741824)!==0&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Lp(e,t){switch(ha(t),t.tag){case 1:return Me(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jr(),J(Fe),J(we),Na(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ja(t),null;case 13:if(J(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(Y),null;case 4:return jr(),null;case 10:return xa(t.type._context),null;case 22:case 23:return Oa(),null;case 24:return null;default:return null}}var Gs=!1,ye=!1,Tp=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 jo(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Ju=!1;function _p(e,t){if(ro=wl,e=_d(),da(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,f=0,d=e,g=null;t:for(;;){for(var x;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),(x=d.firstChild)!==null;)g=d,d=x;for(;;){if(d===e)break t;if(g===n&&++c===s&&(a=o),g===l&&++f===r&&(u=o),(x=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=x}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(so={focusedElem:e,selectionRange:n},wl=!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 N=w.memoizedProps,k=w.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?N:tt(t.type,N),k);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(v){ne(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return w=Ju,Ju=!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&&jo(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 No(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 Rf(e){var t=e.alternate;t!==null&&(e.alternate=null,Rf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[cs],delete t[oo],delete t[mp],delete t[pp])),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 Lf(e){return e.tag===5||e.tag===3||e.tag===4}function Gu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lf(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 ko(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=kl));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}function So(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(So(e,t,n),e=e.sibling;e!==null;)So(e,t,n),e=e.sibling}var de=null,st=!1;function Dt(e,t,n){for(n=n.child;n!==null;)Tf(e,t,n),n=n.sibling}function Tf(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Bl,n)}catch{}switch(n.tag){case 5:ye||Gn(n,t);case 6:var r=de,s=st;de=null,Dt(e,t,n),de=r,st=s,de!==null&&(st?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(st?(e=de,n=n.stateNode,e.nodeType===8?ki(e.parentNode,n):e.nodeType===1&&ki(e,n),ls(e)):ki(de,n.stateNode));break;case 4:r=de,s=st,de=n.stateNode.containerInfo,st=!0,Dt(e,t,n),de=r,st=s;break;case 0:case 11:case 14:case 15:if(!ye&&(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)&&jo(n,t,o),s=s.next}while(s!==r)}Dt(e,t,n);break;case 1:if(!ye&&(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)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,Dt(e,t,n),ye=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function Yu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tp),t.forEach(function(r){var s=Up.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function et(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,st=!1;break e;case 3:de=a.stateNode.containerInfo,st=!0;break e;case 4:de=a.stateNode.containerInfo,st=!0;break e}a=a.return}if(de===null)throw Error(E(160));Tf(l,o,s),de=null,st=!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;)_f(t,e),t=t.sibling}function _f(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(et(t,e),ct(e),r&4){try{Gr(3,e,e.return),Gl(3,e)}catch(N){ne(e,e.return,N)}try{Gr(5,e,e.return)}catch(N){ne(e,e.return,N)}}break;case 1:et(t,e),ct(e),r&512&&n!==null&&Gn(n,n.return);break;case 5:if(et(t,e),ct(e),r&512&&n!==null&&Gn(n,n.return),e.flags&32){var s=e.stateNode;try{ts(s,"")}catch(N){ne(e,e.return,N)}}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&&Zc(s,l),qi(a,o);var c=qi(a,l);for(o=0;o<u.length;o+=2){var f=u[o],d=u[o+1];f==="style"?sd(s,d):f==="dangerouslySetInnerHTML"?nd(s,d):f==="children"?ts(s,d):Xo(s,f,d,c)}switch(a){case"input":Bi(s,l);break;case"textarea":ed(s,l);break;case"select":var g=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var x=l.value;x!=null?Xn(s,!!l.multiple,x,!1):g!==!!l.multiple&&(l.defaultValue!=null?Xn(s,!!l.multiple,l.defaultValue,!0):Xn(s,!!l.multiple,l.multiple?[]:"",!1))}s[cs]=l}catch(N){ne(e,e.return,N)}}break;case 6:if(et(t,e),ct(e),r&4){if(e.stateNode===null)throw Error(E(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(N){ne(e,e.return,N)}}break;case 3:if(et(t,e),ct(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ls(t.containerInfo)}catch(N){ne(e,e.return,N)}break;case 4:et(t,e),ct(e);break;case 13:et(t,e),ct(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(Ta=re())),r&4&&Yu(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(c=ye)||f,et(t,e),ye=c):et(t,e),ct(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&(e.mode&1)!==0)for(O=e,f=e.child;f!==null;){for(d=O=f;O!==null;){switch(g=O,x=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(N){ne(r,n,N)}}break;case 5:Gn(g,g.return);break;case 22:if(g.memoizedState!==null){Zu(d);continue}}x!==null?(x.return=g,O=x):Zu(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=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=rd("display",o))}catch(N){ne(e,e.return,N)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(N){ne(e,e.return,N)}}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;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:et(t,e),ct(e),r&4&&Yu(e);break;case 21:break;default:et(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Lf(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ts(s,""),r.flags&=-33);var l=Gu(e);So(e,l,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Gu(e);ko(e,a,o);break;default:throw Error(E(161))}}catch(u){ne(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Op(e,t,n){O=e,Of(e)}function Of(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||ye;a=Gs;var c=ye;if(Gs=o,(ye=u)&&!c)for(O=s;O!==null;)o=O,u=o.child,o.tag===22&&o.memoizedState!==null?ec(s):u!==null?(u.return=o,O=u):ec(s);for(;l!==null;)O=l,Of(l),l=l.sibling;O=s,Gs=a,ye=c}Xu(e)}else(s.subtreeFlags&8772)!==0&&l!==null?(l.return=s,O=l):Xu(e)}}function Xu(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:ye||Gl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:tt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Du(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}Du(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 f=c.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&ls(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}ye||t.flags&512&&No(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 Zu(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 ec(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{No(t)}catch(u){ne(t,l,u)}break;case 5:var o=t.return;try{No(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 Fp=Math.ceil,Fl=Ft.ReactCurrentDispatcher,Ra=Ft.ReactCurrentOwner,Ye=Ft.ReactCurrentBatchConfig,Q=0,ce=null,se=null,he=0,$e=0,Yn=cn(0),oe=0,gs=null,_n=0,Yl=0,La=0,Yr=null,_e=null,Ta=0,kr=1/0,jt=null,Ml=!1,bo=null,nn=null,Ys=!1,Gt=null,Dl=0,Xr=0,Co=null,cl=-1,dl=0;function be(){return(Q&6)!==0?re():cl!==-1?cl:cl=re()}function rn(e){return(e.mode&1)===0?1:(Q&2)!==0&&he!==0?he&-he:xp.transition!==null?(dl===0&&(dl=gd()),dl):(e=W,e!==0||(e=window.event,e=e===void 0?16:kd(e.type)),e)}function ot(e,t,n,r){if(50<Xr)throw Xr=0,Co=null,Error(E(185));bs(e,n,r),((Q&2)===0||e!==ce)&&(e===ce&&((Q&2)===0&&(Yl|=n),oe===4&&Ut(e,he)),De(e,r),n===1&&Q===0&&(t.mode&1)===0&&(kr=re()+500,ql&&dn()))}function De(e,t){var n=e.callbackNode;xm(e,t);var r=vl(e,e===ce?he:0);if(r===0)n!==null&&uu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&uu(n),t===1)e.tag===0?gp(tc.bind(null,e)):Bd(tc.bind(null,e)),fp(function(){(Q&6)===0&&dn()}),n=null;else{switch(xd(r)){case 1:n=ra;break;case 4:n=md;break;case 16:n=yl;break;case 536870912:n=pd;break;default:n=yl}n=Uf(n,Ff.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ff(e,t){if(cl=-1,dl=0,(Q&6)!==0)throw Error(E(327));var n=e.callbackNode;if(rr()&&e.callbackNode!==n)return null;var r=vl(e,e===ce?he:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=$l(e,r);else{t=r;var s=Q;Q|=2;var l=Df();(ce!==e||he!==t)&&(jt=null,kr=re()+500,En(e,t));do try{$p();break}catch(a){Mf(e,a)}while(!0);ga(),Fl.current=l,Q=s,se!==null?t=0:(ce=null,he=0,t=oe)}if(t!==0){if(t===2&&(s=Xi(e),s!==0&&(r=s,t=Eo(e,s))),t===1)throw n=gs,En(e,0),Ut(e,r),De(e,re()),n;if(t===6)Ut(e,r);else{if(s=e.current.alternate,(r&30)===0&&!Mp(s)&&(t=$l(e,r),t===2&&(l=Xi(e),l!==0&&(r=l,t=Eo(e,l))),t===1))throw n=gs,En(e,0),Ut(e,r),De(e,re()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:pn(e,_e,jt);break;case 3:if(Ut(e,r),(r&130023424)===r&&(t=Ta+500-re(),10<t)){if(vl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){be(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=io(pn.bind(null,e,_e,jt),t);break}pn(e,_e,jt);break;case 4:if(Ut(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-it(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*Fp(r/1960))-r,10<r){e.timeoutHandle=io(pn.bind(null,e,_e,jt),r);break}pn(e,_e,jt);break;case 5:pn(e,_e,jt);break;default:throw Error(E(329))}}}return De(e,re()),e.callbackNode===n?Ff.bind(null,e):null}function Eo(e,t){var n=Yr;return e.current.memoizedState.isDehydrated&&(En(e,t).flags|=256),e=$l(e,t),e!==2&&(t=_e,_e=n,t!==null&&Po(t)),e}function Po(e){_e===null?_e=e:_e.push.apply(_e,e)}function Mp(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(!at(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 Ut(e,t){for(t&=~La,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function tc(e){if((Q&6)!==0)throw Error(E(327));rr();var t=vl(e,0);if((t&1)===0)return De(e,re()),null;var n=$l(e,t);if(e.tag!==0&&n===2){var r=Xi(e);r!==0&&(t=r,n=Eo(e,r))}if(n===1)throw n=gs,En(e,0),Ut(e,t),De(e,re()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pn(e,_e,jt),De(e,re()),null}function _a(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(kr=re()+500,ql&&dn())}}function On(e){Gt!==null&&Gt.tag===0&&(Q&6)===0&&rr();var t=Q;Q|=1;var n=Ye.transition,r=W;try{if(Ye.transition=null,W=1,e)return e()}finally{W=r,Ye.transition=n,Q=t,(Q&6)===0&&dn()}}function Oa(){$e=Yn.current,J(Yn)}function En(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dp(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(ha(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sl();break;case 3:jr(),J(Fe),J(we),Na();break;case 5:ja(r);break;case 4:jr();break;case 13:J(Y);break;case 19:J(Y);break;case 10:xa(r.type._context);break;case 22:case 23:Oa()}n=n.return}if(ce=e,se=e=sn(e.current,null),he=$e=t,oe=0,gs=null,La=Yl=_n=0,_e=Yr=null,xn!==null){for(t=0;t<xn.length;t++)if(n=xn[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}xn=null}return e}function Mf(e,t){do{var n=se;try{if(ga(),ol.current=Ol,_l){for(var r=X.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}_l=!1}if(Tn=0,ue=ie=X=null,Jr=!1,hs=0,Ra.current=null,n===null||n.return===null){oe=1,gs=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,f=a,d=f.tag;if((f.mode&1)===0&&(d===0||d===11||d===15)){var g=f.alternate;g?(f.updateQueue=g.updateQueue,f.memoizedState=g.memoizedState,f.lanes=g.lanes):(f.updateQueue=null,f.memoizedState=null)}var x=Bu(o);if(x!==null){x.flags&=-257,Qu(x,o,a,l,t),x.mode&1&&Uu(l,c,t),t=x,u=c;var w=t.updateQueue;if(w===null){var N=new Set;N.add(u),t.updateQueue=N}else w.add(u);break e}else{if((t&1)===0){Uu(l,c,t),Fa();break e}u=Error(E(426))}}else if(G&&a.mode&1){var k=Bu(o);if(k!==null){(k.flags&65536)===0&&(k.flags|=256),Qu(k,o,a,l,t),ma(Nr(u,a));break e}}l=u=Nr(u,a),oe!==4&&(oe=2),Yr===null?Yr=[l]:Yr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var m=yf(l,u,t);Mu(l,m);break e;case 1:a=u;var h=l.type,p=l.stateNode;if((l.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(nn===null||!nn.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var v=vf(l,a,t);Mu(l,v);break e}}l=l.return}while(l!==null)}If(n)}catch(C){t=C,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function Df(){var e=Fl.current;return Fl.current=Ol,e===null?Ol:e}function Fa(){(oe===0||oe===3||oe===2)&&(oe=4),ce===null||(_n&268435455)===0&&(Yl&268435455)===0||Ut(ce,he)}function $l(e,t){var n=Q;Q|=2;var r=Df();(ce!==e||he!==t)&&(jt=null,En(e,t));do try{Dp();break}catch(s){Mf(e,s)}while(!0);if(ga(),Q=n,Fl.current=r,se!==null)throw Error(E(261));return ce=null,he=0,oe}function Dp(){for(;se!==null;)$f(se)}function $p(){for(;se!==null&&!am();)$f(se)}function $f(e){var t=Af(e.alternate,e,$e);e.memoizedProps=e.pendingProps,t===null?If(e):se=t,Ra.current=null}function If(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Rp(n,t,$e),n!==null){se=n;return}}else{if(n=Lp(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 pn(e,t,n){var r=W,s=Ye.transition;try{Ye.transition=null,W=1,Ip(e,t,n,r)}finally{Ye.transition=s,W=r}return null}function Ip(e,t,n,r){do rr();while(Gt!==null);if((Q&6)!==0)throw Error(E(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(E(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(ym(e,l),e===ce&&(se=ce=null,he=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Ys||(Ys=!0,Uf(yl,function(){return rr(),null})),l=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||l){l=Ye.transition,Ye.transition=null;var o=W;W=1;var a=Q;Q|=4,Ra.current=null,_p(e,n),_f(n,e),sp(so),wl=!!ro,so=ro=null,e.current=n,Op(n),um(),Q=a,W=o,Ye.transition=l}else e.current=n;if(Ys&&(Ys=!1,Gt=e,Dl=s),l=e.pendingLanes,l===0&&(nn=null),fm(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=bo,bo=null,e;return(Dl&1)!==0&&e.tag!==0&&rr(),l=e.pendingLanes,(l&1)!==0?e===Co?Xr++:(Xr=0,Co=e):Xr=0,dn(),null}function rr(){if(Gt!==null){var e=xd(Dl),t=Ye.transition,n=W;try{if(Ye.transition=null,W=16>e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Dl=0,(Q&6)!==0)throw Error(E(331));var s=Q;for(Q|=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 f=O;switch(f.tag){case 0:case 11:case 15:Gr(8,f,l)}var d=f.child;if(d!==null)d.return=f,O=d;else for(;O!==null;){f=O;var g=f.sibling,x=f.return;if(Rf(f),f===c){O=null;break}if(g!==null){g.return=x,O=g;break}O=x}}}var w=l.alternate;if(w!==null){var N=w.child;if(N!==null){w.child=null;do{var k=N.sibling;N.sibling=null,N=k}while(N!==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 m=l.sibling;if(m!==null){m.return=l.return,O=m;break e}O=l.return}}var h=e.current;for(O=h;O!==null;){o=O;var p=o.child;if((o.subtreeFlags&2064)!==0&&p!==null)p.return=o,O=p;else e:for(o=h;O!==null;){if(a=O,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Gl(9,a)}}catch(C){ne(a,a.return,C)}if(a===o){O=null;break e}var v=a.sibling;if(v!==null){v.return=a.return,O=v;break e}O=a.return}}if(Q=s,dn(),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Bl,e)}catch{}r=!0}return r}finally{W=n,Ye.transition=t}}return!1}function nc(e,t,n){t=Nr(n,t),t=yf(e,t,1),e=tn(e,t,1),t=be(),e!==null&&(bs(e,1,t),De(e,t))}function ne(e,t,n){if(e.tag===3)nc(e,e,n);else for(;t!==null;){if(t.tag===3){nc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nn===null||!nn.has(r))){e=Nr(n,e),e=vf(t,e,1),t=tn(t,e,1),e=be(),t!==null&&(bs(t,1,e),De(t,e));break}}t=t.return}}function zp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=be(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(he&n)===n&&(oe===4||oe===3&&(he&130023424)===he&&500>re()-Ta?En(e,0):La|=n),De(e,t)}function zf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Us,Us<<=1,(Us&130023424)===0&&(Us=4194304)));var n=be();e=Tt(e,t),e!==null&&(bs(e,t,n),De(e,n))}function Ap(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zf(e,n)}function Up(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(E(314))}r!==null&&r.delete(t),zf(e,n)}var Af;Af=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)Oe=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Oe=!1,Pp(e,t,n);Oe=(e.flags&131072)!==0}else Oe=!1,G&&(t.flags&1048576)!==0&&Qd(t,El,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var s=yr(t,we.current);nr(t,n),s=Sa(null,t,r,e,s,n);var l=ba();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,Me(r)?(l=!0,bl(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,va(t),s.updater=Jl,t.stateNode=s,s._reactInternals=t,mo(t,r,e,n),t=xo(null,t,r,!0,l,n)):(t.tag=0,G&&l&&fa(t),Se(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Qp(r),e=tt(r,e),s){case 0:t=go(null,t,r,e,n);break e;case 1:t=Vu(null,t,r,e,n);break e;case 11:t=Hu(null,t,r,e,n);break e;case 14:t=Wu(null,t,r,tt(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:tt(r,s),go(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:tt(r,s),Vu(e,t,r,s,n);case 3:e:{if(kf(t),e===null)throw Error(E(387));r=t.pendingProps,l=t.memoizedState,s=l.element,Jd(e,t),Ll(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=Nr(Error(E(423)),t),t=qu(e,t,r,n,s);break e}else if(r!==s){s=Nr(Error(E(424)),t),t=qu(e,t,r,n,s);break e}else for(Ie=en(t.stateNode.containerInfo.firstChild),ze=t,G=!0,lt=null,n=qd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vr(),r===s){t=_t(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return Gd(t),e===null&&co(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,o=s.children,lo(r,s)?o=null:l!==null&&lo(r,l)&&(t.flags|=32),Nf(e,t),Se(e,t,o,n),t.child;case 6:return e===null&&co(t),null;case 13:return Sf(e,t,n);case 4:return wa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wr(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:tt(r,s),Hu(e,t,r,s,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(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(Pl,r._currentValue),r._currentValue=o,l!==null)if(at(l.value,o)){if(l.children===s.children&&!Fe.current){t=_t(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=Et(-1,n&-n),u.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),fo(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(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),fo(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}Se(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,nr(t,n),s=Xe(s),r=r(s),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,s=tt(r,t.pendingProps),s=tt(r.type,s),Wu(e,t,r,s,n);case 15:return wf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:tt(r,s),ul(e,t),t.tag=1,Me(r)?(e=!0,bl(t)):e=!1,nr(t,n),xf(t,r,s),mo(t,r,s,n),xo(null,t,r,!0,e,n);case 19:return bf(e,t,n);case 22:return jf(e,t,n)}throw Error(E(156,t.tag))};function Uf(e,t){return hd(e,t)}function Bp(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 Ge(e,t,n,r){return new Bp(e,t,n,r)}function Ma(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qp(e){if(typeof e=="function")return Ma(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ea)return 11;if(e===ta)return 14}return 2}function sn(e,t){var n=e.alternate;return n===null?(n=Ge(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 fl(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 Un:return Pn(n.children,s,l,t);case Zo:o=8,s|=8;break;case $i:return e=Ge(12,n,t,s|2),e.elementType=$i,e.lanes=l,e;case Ii:return e=Ge(13,n,t,s),e.elementType=Ii,e.lanes=l,e;case zi:return e=Ge(19,n,t,s),e.elementType=zi,e.lanes=l,e;case Gc:return Xl(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kc:o=10;break e;case Jc:o=9;break e;case ea:o=11;break e;case ta:o=14;break e;case It:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ge(o,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function Pn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Gc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ti(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function _i(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hp(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=fi(0),this.expirationTimes=fi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fi(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Da(e,t,n,r,s,l,o,a,u){return e=new Hp(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ge(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},va(l),e}function Wp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:An,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Bf(e){if(!e)return an;e=e._reactInternals;e:{if(Dn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(Me(n))return Ud(e,n,t)}return t}function Qf(e,t,n,r,s,l,o,a,u){return e=Da(n,r,!0,e,s,l,o,a,u),e.context=Bf(null),n=e.current,r=be(),s=rn(n),l=Et(r,s),l.callback=t??null,tn(n,l,s),e.current.lanes=s,bs(e,s,r),De(e,r),e}function Zl(e,t,n,r){var s=t.current,l=be(),o=rn(s);return n=Bf(n),t.context===null?t.context=n:t.pendingContext=n,t=Et(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tn(s,t,o),e!==null&&(ot(e,s,o,l),il(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 rc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $a(e,t){rc(e,t),(e=e.alternate)&&rc(e,t)}function Vp(){return null}var Hf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ia(e){this._internalRoot=e}ei.prototype.render=Ia.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));Zl(e,t,null,null)};ei.prototype.unmount=Ia.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;On(function(){Zl(null,e,null,null)}),t[Lt]=null}};function ei(e){this._internalRoot=e}ei.prototype.unstable_scheduleHydration=function(e){if(e){var t=wd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&t!==0&&t<At[n].priority;n++);At.splice(n,0,e),n===0&&Nd(e)}};function za(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ti(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sc(){}function qp(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=Qf(t,r,e,0,null,!1,!1,"",sc);return e._reactRootContainer=o,e[Lt]=o.current,as(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=Da(e,0,!1,null,null,!1,!1,"",sc);return e._reactRootContainer=u,e[Lt]=u.current,as(e.nodeType===8?e.parentNode:e),On(function(){Zl(t,u,n,r)}),u}function ni(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)}}Zl(t,o,e,s)}else o=qp(n,t,e,s,r);return Il(o)}yd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ur(t.pendingLanes);n!==0&&(sa(t,n|1),De(t,re()),(Q&6)===0&&(kr=re()+500,dn()))}break;case 13:On(function(){var r=Tt(e,1);if(r!==null){var s=be();ot(r,e,1,s)}}),$a(e,1)}};la=function(e){if(e.tag===13){var t=Tt(e,134217728);if(t!==null){var n=be();ot(t,e,134217728,n)}$a(e,134217728)}};vd=function(e){if(e.tag===13){var t=rn(e),n=Tt(e,t);if(n!==null){var r=be();ot(n,e,t,r)}$a(e,t)}};wd=function(){return W};jd=function(e,t){var n=W;try{return W=e,t()}finally{W=n}};Ji=function(e,t,n){switch(t){case"input":if(Bi(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=Vl(r);if(!s)throw Error(E(90));Xc(r),Bi(r,s)}}}break;case"textarea":ed(e,n);break;case"select":t=n.value,t!=null&&Xn(e,!!n.multiple,t,!1)}};od=_a;ad=On;var Kp={usingClientEntryPoint:!1,Events:[Es,Wn,Vl,ld,id,_a]},$r={findFiberByHostInstance:gn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Jp={bundleType:$r.bundleType,version:$r.version,rendererPackageName:$r.rendererPackageName,rendererConfig:$r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ft.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dd(e),e===null?null:e.stateNode},findFiberByHostInstance:$r.findFiberByHostInstance||Vp,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 Xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xs.isDisabled&&Xs.supportsFiber)try{Bl=Xs.inject(Jp),gt=Xs}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kp;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!za(t))throw Error(E(200));return Wp(e,t,null,n)};Ue.createRoot=function(e,t){if(!za(e))throw Error(E(299));var n=!1,r="",s=Hf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Da(e,1,!1,null,null,n,!1,r,s),e[Lt]=t.current,as(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(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=dd(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return On(e)};Ue.hydrate=function(e,t,n){if(!ti(t))throw Error(E(200));return ni(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!za(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",o=Hf;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Qf(t,null,e,1,n??null,s,!1,l,o),e[Lt]=t.current,as(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 ei(t)};Ue.render=function(e,t,n){if(!ti(t))throw Error(E(200));return ni(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!ti(e))throw Error(E(40));return e._reactRootContainer?(On(function(){ni(null,null,e,!1,function(){e._reactRootContainer=null,e[Lt]=null})}),!0):!1};Ue.unstable_batchedUpdates=_a;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ti(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return ni(e,t,n,!1,r)};Ue.version="18.3.1-next-f1338f8080-20240426";function Wf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wf)}catch(e){console.error(e)}}Wf(),Hc.exports=Ue;var Gp=Hc.exports,lc=Gp;Mi.createRoot=lc.createRoot,Mi.hydrateRoot=lc.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 ic="popstate";function Yp(e={}){function t(r,s){let{pathname:l,search:o,hash:a}=r.location;return Ro("",{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:xs(s)}return Zp(t,n,null,e)}function Z(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ut(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Xp(){return Math.random().toString(36).substring(2,10)}function oc(e,t){return{usr:e.state,key:e.key,idx:t}}function Ro(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||Xp()}}function xs({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 Zp(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,o=s.history,a="POP",u=null,c=f();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function f(){return(o.state||{idx:null}).idx}function d(){a="POP";let k=f(),m=k==null?null:k-c;c=k,u&&u({action:a,location:N.location,delta:m})}function g(k,m){a="PUSH";let h=Ro(N.location,k,m);c=f()+1;let p=oc(h,c),v=N.createHref(h);try{o.pushState(p,"",v)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;s.location.assign(v)}l&&u&&u({action:a,location:N.location,delta:1})}function x(k,m){a="REPLACE";let h=Ro(N.location,k,m);c=f();let p=oc(h,c),v=N.createHref(h);o.replaceState(p,"",v),l&&u&&u({action:a,location:N.location,delta:0})}function w(k){return eg(k)}let N={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(ic,d),u=k,()=>{s.removeEventListener(ic,d),u=null}},createHref(k){return t(s,k)},createURL:w,encodeLocation(k){let m=w(k);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:x,go(k){return o.go(k)}};return N}function eg(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:xs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Vf(e,t,n="/"){return tg(e,t,n,!1)}function tg(e,t,n,r){let s=typeof t=="string"?Er(t):t,l=Ot(s.pathname||"/",n);if(l==null)return null;let o=qf(e);ng(o);let a=null;for(let u=0;a==null&&u<o.length;++u){let c=hg(l);a=dg(o[u],c,r)}return a}function qf(e,t=[],n=[],r="",s=!1){let l=(o,a,u=s,c)=>{let f={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&u)return;Z(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let d=Pt([r,f.relativePath]),g=n.concat(f);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}".`),qf(o.children,t,g,d,u)),!(o.path==null&&!o.index)&&t.push({path:d,score:ug(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 Kf(o.path))l(o,a,!0,c)}),t}function Kf(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=Kf(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 ng(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var rg=/^:[\w-]+$/,sg=3,lg=2,ig=1,og=10,ag=-2,ac=e=>e==="*";function ug(e,t){let n=e.split("/"),r=n.length;return n.some(ac)&&(r+=ag),t&&(r+=lg),n.filter(s=>!ac(s)).reduce((s,l)=>s+(rg.test(l)?sg:l===""?ig:og),r)}function cg(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 dg(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,f=l==="/"?t:t.slice(l.length)||"/",d=zl({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},f),g=u.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=zl({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!d)return null;Object.assign(s,d.params),o.push({params:s,pathname:Pt([l,d.pathname]),pathnameBase:xg(Pt([l,d.pathnameBase])),route:g}),d.pathnameBase!=="/"&&(l=Pt([l,d.pathnameBase]))}return o}function zl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=fg(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:f,isOptional:d},g)=>{if(f==="*"){let w=a[g]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const x=a[g];return d&&!x?c[f]=void 0:c[f]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:o,pattern:e}}function fg(e,t=!1,n=!0){ut(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 hg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ut(!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 Ot(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 mg(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Er(e):e;return{pathname:n?n.startsWith("/")?n:pg(n,t):t,search:yg(r),hash:vg(s)}}function pg(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 Oi(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 gg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jf(e){let t=gg(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Gf(e,t,n,r=!1){let s;typeof e=="string"?s=Er(e):(s={...e},Z(!s.pathname||!s.pathname.includes("?"),Oi("?","pathname","search",s)),Z(!s.pathname||!s.pathname.includes("#"),Oi("#","pathname","hash",s)),Z(!s.search||!s.search.includes("#"),Oi("#","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=mg(s,a),c=o&&o!=="/"&&o.endsWith("/"),f=(l||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}var Pt=e=>e.join("/").replace(/\/\/+/g,"/"),xg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Yf=["POST","PUT","PATCH","DELETE"];new Set(Yf);var jg=["GET",...Yf];new Set(jg);var Pr=j.createContext(null);Pr.displayName="DataRouter";var ri=j.createContext(null);ri.displayName="DataRouterState";j.createContext(!1);var Xf=j.createContext({isTransitioning:!1});Xf.displayName="ViewTransition";var Ng=j.createContext(new Map);Ng.displayName="Fetchers";var kg=j.createContext(null);kg.displayName="Await";var yt=j.createContext(null);yt.displayName="Navigation";var Rs=j.createContext(null);Rs.displayName="Location";var vt=j.createContext({outlet:null,matches:[],isDataRoute:!1});vt.displayName="Route";var Aa=j.createContext(null);Aa.displayName="RouteError";function Sg(e,{relative:t}={}){Z(Ls(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=j.useContext(yt),{hash:s,pathname:l,search:o}=Ts(e,{relative:t}),a=l;return n!=="/"&&(a=l==="/"?n:Pt([n,l])),r.createHref({pathname:a,search:o,hash:s})}function Ls(){return j.useContext(Rs)!=null}function fn(){return Z(Ls(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Rs).location}var Zf="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eh(e){j.useContext(yt).static||j.useLayoutEffect(e)}function Qe(){let{isDataRoute:e}=j.useContext(vt);return e?$g():bg()}function bg(){Z(Ls(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(Pr),{basename:t,navigator:n}=j.useContext(yt),{matches:r}=j.useContext(vt),{pathname:s}=fn(),l=JSON.stringify(Jf(r)),o=j.useRef(!1);return eh(()=>{o.current=!0}),j.useCallback((u,c={})=>{if(ut(o.current,Zf),!o.current)return;if(typeof u=="number"){n.go(u);return}let f=Gf(u,JSON.parse(l),s,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Pt([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,l,s,e])}j.createContext(null);function $n(){let{matches:e}=j.useContext(vt),t=e[e.length-1];return t?t.params:{}}function Ts(e,{relative:t}={}){let{matches:n}=j.useContext(vt),{pathname:r}=fn(),s=JSON.stringify(Jf(n));return j.useMemo(()=>Gf(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function Cg(e,t){return th(e,t)}function th(e,t,n,r,s){var h;Z(Ls(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=j.useContext(yt),{matches:o}=j.useContext(vt),a=o[o.length-1],u=a?a.params:{},c=a?a.pathname:"/",f=a?a.pathnameBase:"/",d=a&&a.route;{let p=d&&d.path||"";nh(c,!d||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${p}">) 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="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let g=fn(),x;if(t){let p=typeof t=="string"?Er(t):t;Z(f==="/"||((h=p.pathname)==null?void 0:h.startsWith(f)),`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 "${f}" but pathname "${p.pathname}" was given in the \`location\` prop.`),x=p}else x=g;let w=x.pathname||"/",N=w;if(f!=="/"){let p=f.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(p.length).join("/")}let k=Vf(e,{pathname:N});ut(d||k!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),ut(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 "${x.pathname}${x.search}${x.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 m=Tg(k&&k.map(p=>Object.assign({},p,{params:Object.assign({},u,p.params),pathname:Pt([f,l.encodeLocation?l.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?f:Pt([f,l.encodeLocation?l.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,n,r,s);return t&&m?j.createElement(Rs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},m):m}function Eg(){let e=Dg(),t=wg(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 Pg=j.createElement(Eg,null),Rg=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(vt.Provider,{value:this.props.routeContext},j.createElement(Aa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Lg({routeContext:e,match:t,children:n}){let r=j.useContext(Pr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),j.createElement(vt.Provider,{value:e},n)}function Tg(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(f=>f.route.id&&(o==null?void 0:o[f.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 f=l[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:g}=n,x=f.route.loader&&!d.hasOwnProperty(f.route.id)&&(!g||g[f.route.id]===void 0);if(f.route.lazy||x){a=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,f,d)=>{let g,x=!1,w=null,N=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,w=f.route.errorElement||Pg,a&&(u<0&&d===0?(nh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,N=null):u===d&&(x=!0,N=f.route.hydrateFallbackElement||null)));let k=t.concat(l.slice(0,d+1)),m=()=>{let h;return g?h=w:x?h=N:f.route.Component?h=j.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=c,j.createElement(Lg,{match:f,routeContext:{outlet:c,matches:k,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?j.createElement(Rg,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:m(),routeContext:{outlet:null,matches:k,isDataRoute:!0},unstable_onError:r}):m()},null)}function Ua(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _g(e){let t=j.useContext(Pr);return Z(t,Ua(e)),t}function Og(e){let t=j.useContext(ri);return Z(t,Ua(e)),t}function Fg(e){let t=j.useContext(vt);return Z(t,Ua(e)),t}function Ba(e){let t=Fg(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 Mg(){return Ba("useRouteId")}function Dg(){var r;let e=j.useContext(Aa),t=Og("useRouteError"),n=Ba("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function $g(){let{router:e}=_g("useNavigate"),t=Ba("useNavigate"),n=j.useRef(!1);return eh(()=>{n.current=!0}),j.useCallback(async(s,l={})=>{ut(n.current,Zf),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var uc={};function nh(e,t,n){!t&&!uc[e]&&(uc[e]=!0,ut(!1,n))}j.memo(Ig);function Ig({routes:e,future:t,state:n,unstable_onError:r}){return th(e,void 0,n,r,t)}function We(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 zg({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:l=!1}){Z(!Ls(),"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:f="",state:d=null,key:g="default"}=n,x=j.useMemo(()=>{let w=Ot(u,o);return w==null?null:{location:{pathname:w,search:c,hash:f,state:d,key:g},navigationType:r}},[o,u,c,f,d,g,r]);return ut(x!=null,`<Router basename="${o}"> is not able to match the URL "${u}${c}${f}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:j.createElement(yt.Provider,{value:a},j.createElement(Rs.Provider,{children:t,value:x}))}function Ag({children:e,location:t}){return Cg(Lo(e),t)}function Lo(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,Lo(r.props.children,l));return}Z(r.type===We,`[${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=Lo(r.props.children,l)),n.push(o)}),n}var hl="get",ml="application/x-www-form-urlencoded";function si(e){return e!=null&&typeof e.tagName=="string"}function Ug(e){return si(e)&&e.tagName.toLowerCase()==="button"}function Bg(e){return si(e)&&e.tagName.toLowerCase()==="form"}function Qg(e){return si(e)&&e.tagName.toLowerCase()==="input"}function Hg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wg(e,t){return e.button===0&&(!t||t==="_self")&&!Hg(e)}function To(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 Vg(e,t){let n=To(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(l=>{n.append(s,l)})}),n}var Zs=null;function qg(){if(Zs===null)try{new FormData(document.createElement("form"),0),Zs=!1}catch{Zs=!0}return Zs}var Kg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fi(e){return e!=null&&!Kg.has(e)?(ut(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ml}"`),null):e}function Jg(e,t){let n,r,s,l,o;if(Bg(e)){let a=e.getAttribute("action");r=a?Ot(a,t):null,n=e.getAttribute("method")||hl,s=Fi(e.getAttribute("enctype"))||ml,l=new FormData(e)}else if(Ug(e)||Qg(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?Ot(u,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||hl,s=Fi(e.getAttribute("formenctype"))||Fi(a.getAttribute("enctype"))||ml,l=new FormData(a,e),!qg()){let{name:c,type:f,value:d}=e;if(f==="image"){let g=c?`${c}.`:"";l.append(`${g}x`,"0"),l.append(`${g}y`,"0")}else c&&l.append(c,d)}}else{if(si(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=hl,r=null,s=ml,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 Gg(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&&Ot(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Yg(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 Xg(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 Zg(e,t,n){let r=await Promise.all(e.map(async s=>{let l=t.routes[s.route.id];if(l){let o=await Yg(l,n);return o.links?o.links():[]}return[]}));return r0(r.flat(1).filter(Xg).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function cc(e,t,n,r,s,l){let o=(u,c)=>n[c]?u.route.id!==n[c].route.id:!0,a=(u,c)=>{var f;return n[c].pathname!==u.pathname||((f=n[c].route.path)==null?void 0:f.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 f=r.routes[u.route.id];if(!f||!f.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 e0(e,t,{includeHydrateFallback:n}={}){return t0(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 t0(e){return[...new Set(e)]}function n0(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function r0(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let l=JSON.stringify(n0(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function rh(){let e=j.useContext(Pr);return Qa(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function s0(){let e=j.useContext(ri);return Qa(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ha=j.createContext(void 0);Ha.displayName="FrameworkContext";function sh(){let e=j.useContext(Ha);return Qa(e,"You must render this element inside a <HydratedRouter> element"),e}function l0(e,t){let n=j.useContext(Ha),[r,s]=j.useState(!1),[l,o]=j.useState(!1),{onFocus:a,onBlur:u,onMouseEnter:c,onMouseLeave:f,onTouchStart:d}=t,g=j.useRef(null);j.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let N=m=>{m.forEach(h=>{o(h.isIntersecting)})},k=new IntersectionObserver(N,{threshold:.5});return g.current&&k.observe(g.current),()=>{k.disconnect()}}},[e]),j.useEffect(()=>{if(r){let N=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(N)}}},[r]);let x=()=>{s(!0)},w=()=>{s(!1),o(!1)};return n?e!=="intent"?[l,g,{}]:[l,g,{onFocus:Ir(a,x),onBlur:Ir(u,w),onMouseEnter:Ir(c,x),onMouseLeave:Ir(f,w),onTouchStart:Ir(d,x)}]:[!1,g,{}]}function Ir(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function i0({page:e,...t}){let{router:n}=rh(),r=j.useMemo(()=>Vf(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?j.createElement(a0,{page:e,matches:r,...t}):null}function o0(e){let{manifest:t,routeModules:n}=sh(),[r,s]=j.useState([]);return j.useEffect(()=>{let l=!1;return Zg(e,t,n).then(o=>{l||s(o)}),()=>{l=!0}},[e,t,n]),r}function a0({page:e,matches:t,...n}){let r=fn(),{manifest:s,routeModules:l}=sh(),{basename:o}=rh(),{loaderData:a,matches:u}=s0(),c=j.useMemo(()=>cc(e,t,u,s,r,"data"),[e,t,u,s,r]),f=j.useMemo(()=>cc(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,N=!1;if(t.forEach(m=>{var p;let h=s.routes[m.route.id];!h||!h.hasLoader||(!c.some(v=>v.route.id===m.route.id)&&m.route.id in a&&((p=l[m.route.id])!=null&&p.shouldRevalidate)||h.hasClientLoader?N=!0:w.add(m.route.id))}),w.size===0)return[];let k=Gg(e,o,"data");return N&&w.size>0&&k.searchParams.set("_routes",t.filter(m=>w.has(m.route.id)).map(m=>m.route.id).join(",")),[k.pathname+k.search]},[o,a,r,s,c,t,e,l]),g=j.useMemo(()=>e0(f,s),[f,s]),x=o0(f);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})),x.map(({key:w,link:N})=>j.createElement("link",{key:w,nonce:n.nonce,...N})))}function u0(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var lh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{lh&&(window.__reactRouterVersion="7.8.2")}catch{}function c0({basename:e,children:t,window:n}){let r=j.useRef();r.current==null&&(r.current=Yp({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(zg,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s})}var ih=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zr=j.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:o,state:a,target:u,to:c,preventScrollReset:f,viewTransition:d,...g},x){let{basename:w}=j.useContext(yt),N=typeof c=="string"&&ih.test(c),k,m=!1;if(typeof c=="string"&&N&&(k=c,lh))try{let _=new URL(window.location.href),T=c.startsWith("//")?new URL(_.protocol+c):new URL(c),V=Ot(T.pathname,w);T.origin===_.origin&&V!=null?c=V+T.search+T.hash:m=!0}catch{ut(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let h=Sg(c,{relative:s}),[p,v,C]=l0(r,g),S=m0(c,{replace:o,state:a,target:u,preventScrollReset:f,relative:s,viewTransition:d});function R(_){t&&t(_),_.defaultPrevented||S(_)}let P=j.createElement("a",{...g,...C,href:k||h,onClick:m||l?t:R,ref:u0(x,v),target:u,"data-discover":!N&&n==="render"?"true":void 0});return p&&!N?j.createElement(j.Fragment,null,P,j.createElement(i0,{page:h})):P});Zr.displayName="Link";var d0=j.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:o,viewTransition:a,children:u,...c},f){let d=Ts(o,{relative:c.relative}),g=fn(),x=j.useContext(ri),{navigator:w,basename:N}=j.useContext(yt),k=x!=null&&w0(d)&&a===!0,m=w.encodeLocation?w.encodeLocation(d).pathname:d.pathname,h=g.pathname,p=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(h=h.toLowerCase(),p=p?p.toLowerCase():null,m=m.toLowerCase()),p&&N&&(p=Ot(p,N)||p);const v=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let C=h===m||!s&&h.startsWith(m)&&h.charAt(v)==="/",S=p!=null&&(p===m||!s&&p.startsWith(m)&&p.charAt(m.length)==="/"),R={isActive:C,isPending:S,isTransitioning:k},P=C?t:void 0,_;typeof r=="function"?_=r(R):_=[r,C?"active":null,S?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let T=typeof l=="function"?l(R):l;return j.createElement(Zr,{...c,"aria-current":P,className:_,ref:f,style:T,to:o,viewTransition:a},typeof u=="function"?u(R):u)});d0.displayName="NavLink";var f0=j.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:l,method:o=hl,action:a,onSubmit:u,relative:c,preventScrollReset:f,viewTransition:d,...g},x)=>{let w=y0(),N=v0(a,{relative:c}),k=o.toLowerCase()==="get"?"get":"post",m=typeof a=="string"&&ih.test(a),h=p=>{if(u&&u(p),p.defaultPrevented)return;p.preventDefault();let v=p.nativeEvent.submitter,C=(v==null?void 0:v.getAttribute("formmethod"))||o;w(v||p.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:s,state:l,relative:c,preventScrollReset:f,viewTransition:d})};return j.createElement("form",{ref:x,method:k,action:N,onSubmit:r?u:h,...g,"data-discover":!m&&e==="render"?"true":void 0})});f0.displayName="Form";function h0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oh(e){let t=j.useContext(Pr);return Z(t,h0(e)),t}function m0(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:l,viewTransition:o}={}){let a=Qe(),u=fn(),c=Ts(e,{relative:l});return j.useCallback(f=>{if(Wg(f,t)){f.preventDefault();let d=n!==void 0?n:xs(u)===xs(c);a(e,{replace:d,state:r,preventScrollReset:s,relative:l,viewTransition:o})}},[u,a,c,n,r,t,e,s,l,o])}function p0(e){ut(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(To(e)),n=j.useRef(!1),r=fn(),s=j.useMemo(()=>Vg(r.search,n.current?null:t.current),[r.search]),l=Qe(),o=j.useCallback((a,u)=>{const c=To(typeof a=="function"?a(new URLSearchParams(s)):a);n.current=!0,l("?"+c,u)},[l,s]);return[s,o]}var g0=0,x0=()=>`__${String(++g0)}__`;function y0(){let{router:e}=oh("useSubmit"),{basename:t}=j.useContext(yt),n=Mg();return j.useCallback(async(r,s={})=>{let{action:l,method:o,encType:a,formData:u,body:c}=Jg(r,t);if(s.navigate===!1){let f=s.fetcherKey||x0();await e.fetch(f,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 v0(e,{relative:t}={}){let{basename:n}=j.useContext(yt),r=j.useContext(vt);Z(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...Ts(e||".",{relative:t})},o=fn();if(e==null){l.search=o.search;let a=new URLSearchParams(l.search),u=a.getAll("index");if(u.some(f=>f==="")){a.delete("index"),u.filter(d=>d).forEach(d=>a.append("index",d));let f=a.toString();l.search=f?`?${f}`:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Pt([n,l.pathname])),xs(l)}function w0(e,{relative:t}={}){let n=j.useContext(Xf);Z(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=oh("useViewTransitionState"),s=Ts(e,{relative:t});if(!n.isTransitioning)return!1;let l=Ot(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ot(n.nextLocation.pathname,r)||n.nextLocation.pathname;return zl(s.pathname,o)!=null||zl(s.pathname,l)!=null}var _s=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(){}},Fn=typeof window>"u"||"Deno"in globalThis;function Te(){}function j0(e,t){return typeof e=="function"?e(t):e}function _o(e){return typeof e=="number"&&e>=0&&e!==1/0}function ah(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ln(e,t){return typeof e=="function"?e(t):e}function qe(e,t){return typeof e=="function"?e(t):e}function dc(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:l,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Wa(o,t.options))return!1}else if(!vs(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 fc(e,t){const{exact:n,status:r,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(ys(t.options.mutationKey)!==ys(l))return!1}else if(!vs(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Wa(e,t){return((t==null?void 0:t.queryKeyHashFn)||ys)(e)}function ys(e){return JSON.stringify(e,(t,n)=>Fo(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function vs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>vs(e[n],t[n])):!1}function uh(e,t){if(e===t)return e;const n=hc(e)&&hc(t);if(n||Fo(e)&&Fo(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 f=0;f<o;f++){const d=n?f:l[f];(!n&&u.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=uh(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function Oo(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 hc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fo(e){if(!mc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!mc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function mc(e){return Object.prototype.toString.call(e)==="[object Object]"}function N0(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?uh(e,t):t}function k0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function S0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Va=Symbol();function ch(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Va?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function b0(e,t){return typeof e=="function"?e(...t):!!e}var vn,Bt,sr,Sc,C0=(Sc=class extends _s{constructor(){super();I(this,vn);I(this,Bt);I(this,sr);F(this,sr,t=>{if(!Fn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,Bt)||this.setEventListener(y(this,sr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Bt))==null||t.call(this),F(this,Bt,void 0))}setEventListener(t){var n;F(this,sr,t),(n=y(this,Bt))==null||n.call(this),F(this,Bt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,vn)!==t&&(F(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,Bt=new WeakMap,sr=new WeakMap,Sc),qa=new C0,lr,Qt,ir,bc,E0=(bc=class extends _s{constructor(){super();I(this,lr,!0);I(this,Qt);I(this,ir);F(this,ir,t=>{if(!Fn&&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,ir))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Qt))==null||t.call(this),F(this,Qt,void 0))}setEventListener(t){var n;F(this,ir,t),(n=y(this,Qt))==null||n.call(this),F(this,Qt,t(this.setOnline.bind(this)))}setOnline(t){y(this,lr)!==t&&(F(this,lr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,lr)}},lr=new WeakMap,Qt=new WeakMap,ir=new WeakMap,bc),Al=new E0;function Do(){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 P0(e){return Math.min(1e3*2**e,3e4)}function dh(e){return(e??"online")==="online"?Al.isOnline():!0}var fh=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function hh(e){let t=!1,n=0,r;const s=Do(),l=()=>s.status!=="pending",o=N=>{var k;l()||(g(new fh(N)),(k=e.abort)==null||k.call(e))},a=()=>{t=!0},u=()=>{t=!1},c=()=>qa.isFocused()&&(e.networkMode==="always"||Al.isOnline())&&e.canRun(),f=()=>dh(e.networkMode)&&e.canRun(),d=N=>{l()||(r==null||r(),s.resolve(N))},g=N=>{l()||(r==null||r(),s.reject(N))},x=()=>new Promise(N=>{var k;r=m=>{(l()||c())&&N(m)},(k=e.onPause)==null||k.call(e)}).then(()=>{var N;r=void 0,l()||(N=e.onContinue)==null||N.call(e)}),w=()=>{if(l())return;let N;const k=n===0?e.initialPromise:void 0;try{N=k??e.fn()}catch(m){N=Promise.reject(m)}Promise.resolve(N).then(d).catch(m=>{var S;if(l())return;const h=e.retry??(Fn?0:3),p=e.retryDelay??P0,v=typeof p=="function"?p(n,m):p,C=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,m);if(t||!C){g(m);return}n++,(S=e.onFail)==null||S.call(e,n,m),N0(v).then(()=>c()?void 0:x()).then(()=>{t?g(m):w()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:u,canStart:f,start:()=>(f()?w():x().then(w),s)}}var R0=e=>setTimeout(e,0);function L0(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=R0;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=L0(),wn,Cc,mh=(Cc=class{constructor(){I(this,wn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_o(this.gcTime)&&F(this,wn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Fn?1/0:5*60*1e3))}clearGcTimeout(){y(this,wn)&&(clearTimeout(y(this,wn)),F(this,wn,void 0))}},wn=new WeakMap,Cc),or,ar,Ve,jn,ae,ws,Nn,nt,wt,Ec,T0=(Ec=class extends mh{constructor(t){super();I(this,nt);I(this,or);I(this,ar);I(this,Ve);I(this,jn);I(this,ae);I(this,ws);I(this,Nn);F(this,Nn,!1),F(this,ws,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,jn,t.client),F(this,Ve,y(this,jn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,or,_0(this.options)),this.state=t.state??y(this,or),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,ws),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ve).remove(this)}setData(t,n){const r=Mo(this.state.data,t,this.options);return A(this,nt,wt).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,nt,wt).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(Te).catch(Te):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,or))}isActive(){return this.observers.some(t=>qe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Va||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ln(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:!ah(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,Ve).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,Nn)?y(this,ae).cancel({revert:!0}):y(this,ae).cancelRetry()),this.scheduleGc()),y(this,Ve).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||A(this,nt,wt).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,f,d,g,x,w,N,k,m,h,p;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 v=this.observers.find(C=>C.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,s=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(F(this,Nn,!0),r.signal)})},l=()=>{const v=ch(this.options,n),S=(()=>{const R={client:y(this,jn),queryKey:this.queryKey,meta:this.meta};return s(R),R})();return F(this,Nn,!1),this.options.persister?this.options.persister(v,S,this):v(S)},a=(()=>{const v={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,jn),state:this.state,fetchFn:l};return s(v),v})();(c=this.options.behavior)==null||c.onFetch(a,this),F(this,ar,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&A(this,nt,wt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),F(this,ae,hh({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onFail:(v,C)=>{A(this,nt,wt).call(this,{type:"failed",failureCount:v,error:C})},onPause:()=>{A(this,nt,wt).call(this,{type:"pause"})},onContinue:()=>{A(this,nt,wt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const v=await y(this,ae).start();if(v===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(v),(x=(g=y(this,Ve).config).onSuccess)==null||x.call(g,v,this),(N=(w=y(this,Ve).config).onSettled)==null||N.call(w,v,this.state.error,this),v}catch(v){if(v instanceof fh){if(v.silent)return y(this,ae).promise;if(v.revert){if(this.setState({...y(this,ar),fetchStatus:"idle"}),this.state.data===void 0)throw v;return this.state.data}}throw A(this,nt,wt).call(this,{type:"error",error:v}),(m=(k=y(this,Ve).config).onError)==null||m.call(k,v,this),(p=(h=y(this,Ve).config).onSettled)==null||p.call(h,this.state.data,v,this),v}finally{this.scheduleGc()}}},or=new WeakMap,ar=new WeakMap,Ve=new WeakMap,jn=new WeakMap,ae=new WeakMap,ws=new WeakMap,Nn=new WeakMap,nt=new WeakSet,wt=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,...ph(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 F(this,ar,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,Ve).notify({query:this,type:"updated",action:t})})},Ec);function ph(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _0(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 ft,Pc,O0=(Pc=class extends _s{constructor(t={}){super();I(this,ft);this.config=t,F(this,ft,new Map)}build(t,n,r){const s=n.queryKey,l=n.queryHash??Wa(s,n);let o=this.get(l);return o||(o=new T0({client:t,queryKey:s,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){y(this,ft).has(t.queryHash)||(y(this,ft).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ft).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ft).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ft).get(t)}getAll(){return[...y(this,ft).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>dc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>dc(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()})})}},ft=new WeakMap,Pc),ht,Ne,kn,mt,$t,Rc,F0=(Rc=class extends mh{constructor(t){super();I(this,mt);I(this,ht);I(this,Ne);I(this,kn);this.mutationId=t.mutationId,F(this,Ne,t.mutationCache),F(this,ht,[]),this.state=t.state||M0(),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,ht).includes(t)||(y(this,ht).push(t),this.clearGcTimeout(),y(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,ht,y(this,ht).filter(n=>n!==t)),this.scheduleGc(),y(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,ht).length||(this.state.status==="pending"?this.scheduleGc():y(this,Ne).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,f,d,g,x,w,N,k,m,h,p,v,C,S,R,P;const n=()=>{A(this,mt,$t).call(this,{type:"continue"})};F(this,kn,hh({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,T)=>{A(this,mt,$t).call(this,{type:"failed",failureCount:_,error:T})},onPause:()=>{A(this,mt,$t).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,Ne).canRun(this)}));const r=this.state.status==="pending",s=!y(this,kn).canStart();try{if(r)n();else{A(this,mt,$t).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(l=y(this,Ne).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,mt,$t).call(this,{type:"pending",context:T,variables:t,isPaused:s})}const _=await y(this,kn).start();return await((f=(c=y(this,Ne).config).onSuccess)==null?void 0:f.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=(x=y(this,Ne).config).onSettled)==null?void 0:w.call(x,_,null,this.state.variables,this.state.context,this)),await((k=(N=this.options).onSettled)==null?void 0:k.call(N,_,null,t,this.state.context)),A(this,mt,$t).call(this,{type:"success",data:_}),_}catch(_){try{throw await((h=(m=y(this,Ne).config).onError)==null?void 0:h.call(m,_,t,this.state.context,this)),await((v=(p=this.options).onError)==null?void 0:v.call(p,_,t,this.state.context)),await((S=(C=y(this,Ne).config).onSettled)==null?void 0:S.call(C,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,mt,$t).call(this,{type:"error",error:_})}}finally{y(this,Ne).runNext(this)}}},ht=new WeakMap,Ne=new WeakMap,kn=new WeakMap,mt=new WeakSet,$t=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,ht).forEach(r=>{r.onMutationUpdate(t)}),y(this,Ne).notify({mutation:this,type:"updated",action:t})})},Rc);function M0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kt,rt,js,Lc,D0=(Lc=class extends _s{constructor(t={}){super();I(this,kt);I(this,rt);I(this,js);this.config=t,F(this,kt,new Set),F(this,rt,new Map),F(this,js,0)}build(t,n,r){const s=new F0({mutationCache:this,mutationId:++Ms(this,js)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){y(this,kt).add(t);const n=el(t);if(typeof n=="string"){const r=y(this,rt).get(n);r?r.push(t):y(this,rt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,kt).delete(t)){const n=el(t);if(typeof n=="string"){const r=y(this,rt).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,rt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=el(t);if(typeof n=="string"){const r=y(this,rt).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=el(t);if(typeof n=="string"){const s=(r=y(this,rt).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,kt).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,kt).clear(),y(this,rt).clear()})}getAll(){return Array.from(y(this,kt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>fc(n,r))}findAll(t={}){return this.getAll().filter(n=>fc(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(Te))))}},kt=new WeakMap,rt=new WeakMap,js=new WeakMap,Lc);function el(e){var t;return(t=e.options.scope)==null?void 0:t.id}function pc(e){return{onFetch:(t,n)=>{var f,d,g,x,w;const r=t.options,s=(g=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:g.direction,l=((x=t.state.data)==null?void 0:x.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},u=0;const c=async()=>{let N=!1;const k=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?N=!0:t.signal.addEventListener("abort",()=>{N=!0}),t.signal)})},m=ch(t.options,t.fetchOptions),h=async(p,v,C)=>{if(N)return Promise.reject();if(v==null&&p.pages.length)return Promise.resolve(p);const R=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:v,direction:C?"backward":"forward",meta:t.options.meta};return k(V),V})(),P=await m(R),{maxPages:_}=t.options,T=C?S0:k0;return{pages:T(p.pages,P,_),pageParams:T(p.pageParams,v,_)}};if(s&&l.length){const p=s==="backward",v=p?$0:gc,C={pages:l,pageParams:o},S=v(r,C);a=await h(C,S,p)}else{const p=e??l.length;do{const v=u===0?o[0]??r.initialPageParam:gc(r,a);if(u>0&&v==null)break;a=await h(a,v),u++}while(u<p)}return a};t.options.persister?t.fetchFn=()=>{var N,k;return(k=(N=t.options).persister)==null?void 0:k.call(N,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function gc(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 $0(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,Ht,Wt,ur,cr,Vt,dr,fr,Tc,I0=(Tc=class{constructor(e={}){I(this,te);I(this,Ht);I(this,Wt);I(this,ur);I(this,cr);I(this,Vt);I(this,dr);I(this,fr);F(this,te,e.queryCache||new O0),F(this,Ht,e.mutationCache||new D0),F(this,Wt,e.defaultOptions||{}),F(this,ur,new Map),F(this,cr,new Map),F(this,Vt,0)}mount(){Ms(this,Vt)._++,y(this,Vt)===1&&(F(this,dr,qa.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,te).onFocus())})),F(this,fr,Al.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,te).onOnline())})))}unmount(){var e,t;Ms(this,Vt)._--,y(this,Vt)===0&&((e=y(this,dr))==null||e.call(this),F(this,dr,void 0),(t=y(this,fr))==null||t.call(this),F(this,fr,void 0))}isFetching(e){return y(this,te).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Ht).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(ln(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=j0(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(Te).catch(Te)}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(Te)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Te)}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(ln(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Te).catch(Te)}fetchInfiniteQuery(e){return e.behavior=pc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Te).catch(Te)}ensureInfiniteQueryData(e){return e.behavior=pc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Al.isOnline()?y(this,Ht).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,te)}getMutationCache(){return y(this,Ht)}getDefaultOptions(){return y(this,Wt)}setDefaultOptions(e){F(this,Wt,e)}setQueryDefaults(e,t){y(this,ur).set(ys(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,ur).values()],n={};return t.forEach(r=>{vs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,cr).set(ys(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,cr).values()],n={};return t.forEach(r=>{vs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Wt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Wa(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===Va&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Wt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,te).clear(),y(this,Ht).clear()}},te=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,ur=new WeakMap,cr=new WeakMap,Vt=new WeakMap,dr=new WeakMap,fr=new WeakMap,Tc),Le,U,Ns,ke,Sn,hr,St,qt,ks,mr,pr,bn,Cn,Kt,gr,H,Qr,$o,Io,zo,Ao,Uo,Bo,Qo,gh,_c,z0=(_c=class extends _s{constructor(t,n){super();I(this,H);I(this,Le);I(this,U);I(this,Ns);I(this,ke);I(this,Sn);I(this,hr);I(this,St);I(this,qt);I(this,ks);I(this,mr);I(this,pr);I(this,bn);I(this,Cn);I(this,Kt);I(this,gr,new Set);this.options=n,F(this,Le,t),F(this,qt,null),F(this,St,Do()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,U).addObserver(this),xc(y(this,U),this.options)?A(this,H,Qr).call(this):this.updateResult(),A(this,H,Ao).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ho(y(this,U),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ho(y(this,U),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,A(this,H,Uo).call(this),A(this,H,Bo).call(this),y(this,U).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,U);if(this.options=y(this,Le).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qe(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&&!Oo(this.options,n)&&y(this,Le).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,U),observer:this});const s=this.hasListeners();s&&yc(y(this,U),r,this.options,n)&&A(this,H,Qr).call(this),this.updateResult(),s&&(y(this,U)!==r||qe(this.options.enabled,y(this,U))!==qe(n.enabled,y(this,U))||ln(this.options.staleTime,y(this,U))!==ln(n.staleTime,y(this,U)))&&A(this,H,$o).call(this);const l=A(this,H,Io).call(this);s&&(y(this,U)!==r||qe(this.options.enabled,y(this,U))!==qe(n.enabled,y(this,U))||l!==y(this,Kt))&&A(this,H,zo).call(this,l)}getOptimisticResult(t){const n=y(this,Le).getQueryCache().build(y(this,Le),t),r=this.createResult(n,t);return U0(this,r)&&(F(this,ke,r),F(this,hr,this.options),F(this,Sn,y(this,U).state)),r}getCurrentResult(){return y(this,ke)}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,St).status==="pending"&&y(this,St).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,s))})}trackProp(t){y(this,gr).add(t)}getCurrentQuery(){return y(this,U)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Le).defaultQueryOptions(t),r=y(this,Le).getQueryCache().build(y(this,Le),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,ke)))}createResult(t,n){var _;const r=y(this,U),s=this.options,l=y(this,ke),o=y(this,Sn),a=y(this,hr),c=t!==r?t.state:y(this,Ns),{state:f}=t;let d={...f},g=!1,x;if(n._optimisticResults){const T=this.hasListeners(),V=!T&&xc(t,n),le=T&&yc(t,r,n,s);(V||le)&&(d={...d,...ph(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:w,errorUpdatedAt:N,status:k}=d;x=d.data;let m=!1;if(n.placeholderData!==void 0&&x===void 0&&k==="pending"){let T;l!=null&&l.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(T=l.data,m=!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",x=Mo(l==null?void 0:l.data,T,n),g=!0)}if(n.select&&x!==void 0&&!m)if(l&&x===(o==null?void 0:o.data)&&n.select===y(this,ks))x=y(this,mr);else try{F(this,ks,n.select),x=n.select(x),x=Mo(l==null?void 0:l.data,x,n),F(this,mr,x),F(this,qt,null)}catch(T){F(this,qt,T)}y(this,qt)&&(w=y(this,qt),x=y(this,mr),N=Date.now(),k="error");const h=d.fetchStatus==="fetching",p=k==="pending",v=k==="error",C=p&&h,S=x!==void 0,P={status:k,fetchStatus:d.fetchStatus,isPending:p,isSuccess:k==="success",isError:v,isInitialLoading:C,isLoading:C,data:x,dataUpdatedAt:d.dataUpdatedAt,error:w,errorUpdatedAt:N,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:h,isRefetching:h&&!p,isLoadingError:v&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:v&&S,isStale:Ka(t,n),refetch:this.refetch,promise:y(this,St),isEnabled:qe(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=Pe=>{P.status==="error"?Pe.reject(P.error):P.data!==void 0&&Pe.resolve(P.data)},V=()=>{const Pe=F(this,St,P.promise=Do());T(Pe)},le=y(this,St);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,ke),n=this.createResult(y(this,U),this.options);if(F(this,Sn,y(this,U).state),F(this,hr,this.options),y(this,Sn).data!==void 0&&F(this,pr,y(this,U)),Oo(n,t))return;F(this,ke,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!y(this,gr).size)return!0;const o=new Set(l??y(this,gr));return this.options.throwOnError&&o.add("error"),Object.keys(y(this,ke)).some(a=>{const u=a;return y(this,ke)[u]!==t[u]&&o.has(u)})};A(this,H,gh).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&A(this,H,Ao).call(this)}},Le=new WeakMap,U=new WeakMap,Ns=new WeakMap,ke=new WeakMap,Sn=new WeakMap,hr=new WeakMap,St=new WeakMap,qt=new WeakMap,ks=new WeakMap,mr=new WeakMap,pr=new WeakMap,bn=new WeakMap,Cn=new WeakMap,Kt=new WeakMap,gr=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(Te)),n},$o=function(){A(this,H,Uo).call(this);const t=ln(this.options.staleTime,y(this,U));if(Fn||y(this,ke).isStale||!_o(t))return;const r=ah(y(this,ke).dataUpdatedAt,t)+1;F(this,bn,setTimeout(()=>{y(this,ke).isStale||this.updateResult()},r))},Io=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,U)):this.options.refetchInterval)??!1},zo=function(t){A(this,H,Bo).call(this),F(this,Kt,t),!(Fn||qe(this.options.enabled,y(this,U))===!1||!_o(y(this,Kt))||y(this,Kt)===0)&&F(this,Cn,setInterval(()=>{(this.options.refetchIntervalInBackground||qa.isFocused())&&A(this,H,Qr).call(this)},y(this,Kt)))},Ao=function(){A(this,H,$o).call(this),A(this,H,zo).call(this,A(this,H,Io).call(this))},Uo=function(){y(this,bn)&&(clearTimeout(y(this,bn)),F(this,bn,void 0))},Bo=function(){y(this,Cn)&&(clearInterval(y(this,Cn)),F(this,Cn,void 0))},Qo=function(){const t=y(this,Le).getQueryCache().build(y(this,Le),this.options);if(t===y(this,U))return;const n=y(this,U);F(this,U,t),F(this,Ns,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},gh=function(t){fe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,ke))}),y(this,Le).getQueryCache().notify({query:y(this,U),type:"observerResultsUpdated"})})},_c);function A0(e,t){return qe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xc(e,t){return A0(e,t)||e.state.data!==void 0&&Ho(e,t,t.refetchOnMount)}function Ho(e,t,n){if(qe(t.enabled,e)!==!1&&ln(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ka(e,t)}return!1}function yc(e,t,n,r){return(e!==t||qe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ka(e,n)}function Ka(e,t){return qe(t.enabled,e)!==!1&&e.isStaleByTime(ln(t.staleTime,e))}function U0(e,t){return!Oo(e.getCurrentResult(),t)}var xh=j.createContext(void 0),li=e=>{const t=j.useContext(xh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},B0=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),i.jsx(xh.Provider,{value:e,children:t})),yh=j.createContext(!1),Q0=()=>j.useContext(yh);yh.Provider;function H0(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var W0=j.createContext(H0()),V0=()=>j.useContext(W0),q0=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},K0=e=>{j.useEffect(()=>{e.clearReset()},[e])},J0=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||b0(n,[e.error,r])),G0=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))}},Y0=(e,t)=>e.isLoading&&e.isFetching&&!t,X0=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,vc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Z0(e,t,n){var d,g,x,w,N;const r=Q0(),s=V0(),l=li(),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",G0(o),q0(o,s),K0(s);const a=!l.getQueryCache().get(o.queryHash),[u]=j.useState(()=>new t(l,o)),c=u.getOptimisticResult(o),f=!r&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(k=>{const m=f?u.subscribe(fe.batchCalls(k)):Te;return u.updateResult(),m},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),j.useEffect(()=>{u.setOptions(o)},[o,u]),X0(o,c))throw vc(o,u,s);if(J0({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:l.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if((w=(x=l.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||w.call(x,o,c),o.experimental_prefetchInRender&&!Fn&&Y0(c,r)){const k=a?vc(o,u,s):(N=l.getQueryCache().get(o.queryHash))==null?void 0:N.promise;k==null||k.catch(Te).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?c:u.trackResult(c)}function He(e,t){return Z0(e,z0)}const ex="",tx=(e,t)=>He({queryKey:["route-history",e,t],queryFn:async()=>{const n=new URLSearchParams({method:e,url:t}),r=await fetch(`${ex}/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}),vh="",nx=e=>He({queryKey:["queue",e],queryFn:async()=>{const t=await fetch(`${vh}/console/queues/${e}`);if(!t.ok)throw new Error(`Failed to fetch queue ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),rx=e=>He({queryKey:["queue-history",e],queryFn:async()=>{const t=await fetch(`${vh}/console/queues/${e}/history`);if(!t.ok)throw new Error(`Failed to fetch history for ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),wh="",sx=e=>He({queryKey:["schedule",e],queryFn:async()=>{const t=await fetch(`${wh}/console/schedules/${e}`);if(!t.ok)throw new Error(`Failed to fetch schedule ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),lx=e=>He({queryKey:["schedule-executions",e],queryFn:async()=>{const t=await fetch(`${wh}/console/schedules/${e}/executions`);if(!t.ok)throw new Error(`Failed to fetch executions for ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),ix="",jh=()=>He({queryKey:["modules"],queryFn:async()=>{const e=await fetch(`${ix}/console/modules`);if(!e.ok)throw new Error("Failed to fetch modules");return e.json()},refetchInterval:3e3}),Wo="",ox=(e={})=>{const{limit:t=100,level:n,module:r,reqId:s}=e,l=li(),o=j.useRef(null),a=He({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(`${Wo}/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(`${Wo}/console/logs/stream?${u}`);return o.current=c,c.onmessage=f=>{try{const d=JSON.parse(f.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=f=>{console.error("SSE connection error:",f)},()=>{o.current&&(o.current.close(),o.current=null)}},[l,t,n,r,s]),a},ax=()=>{const e=li();return{clearLogs:async()=>{const n=await fetch(`${Wo}/console/logs`,{method:"DELETE"});if(n.ok)return e.invalidateQueries({queryKey:["logs"]}),n.json();throw new Error("Failed to clear logs")}}},ux=e=>He({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}),cx=()=>{const e=li();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()}}},Ja="",dx=()=>He({queryKey:["emails"],queryFn:async()=>{const e=await fetch(`${Ja}/console/emails`);if(!e.ok)throw new Error("Failed to fetch emails");return e.json()},refetchInterval:3e3}),fx=e=>He({queryKey:["email",e],queryFn:async()=>{const t=await fetch(`${Ja}/console/emails/${e}`);if(!t.ok)throw new Error(`Failed to fetch email ${e}`);return t.json()},enabled:!!e}),hx=e=>He({queryKey:["email",e,"body"],queryFn:async()=>{const t=await fetch(`${Ja}/console/emails/${e}/body`);if(!t.ok)throw new Error(`Failed to fetch email body ${e}`);return t.json()},enabled:!!e}),Nh="",mx=()=>He({queryKey:["topics"],queryFn:async()=>{const e=await fetch(`${Nh}/console/topics`);if(!e.ok)throw new Error("Failed to fetch topics");return e.json()},refetchInterval:3e3}),px=e=>He({queryKey:["topic",e],queryFn:async()=>{const t=await fetch(`${Nh}/console/topics/${e}`);if(!t.ok)throw new Error(`Failed to fetch topic ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),gx=({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"})]})]})})]})]})},xx=({onModuleSelect:e})=>{const{data:t,isLoading:n,error:r}=jh();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(gx,{module:l,onSelect:()=>e(l.name)},l.name))})]})},wc=()=>{const e=Qe(),t=n=>{e(`/modules/${n}`)};return i.jsx(xx,{onModuleSelect:t})},yx=({type:e,title:t,count:n,color:r,items:s,moduleName:l})=>{const[o,a]=j.useState(!1),u=Qe(),f=(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,x)=>{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})]})},x)}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]})]})]})},x)}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})]})},x)}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"]})]})},x)}return null};return i.jsxs("div",{className:`border rounded-lg overflow-hidden ${f.border} ${f.bg}`,children:[i.jsx("div",{className:`p-4 cursor-pointer hover:opacity-80 transition-opacity ${f.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 ${f.badge}`}),i.jsx("span",{className:`font-medium ${f.text}`,children:t})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:`text-2xl font-bold ${f.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,x)=>d(g,x))})]})},vx=e=>{const t=new Date(e),n=t.toLocaleTimeString("en-US",{hour12:!1}),r=t.getMilliseconds().toString().padStart(3,"0");return`${n}.${r}`},Os=({moduleName:e,title:t})=>{const[n,r]=j.useState(!0),[s,l]=j.useState(""),[o,a]=j.useState(""),[u,c]=j.useState(new Set),f=j.useRef(null),d=j.useRef(null),g=S=>{c(R=>{const P=new Set(R);return P.has(S)?P.delete(S):P.add(S),P})},{data:x,isLoading:w}=ox({limit:200,level:o||void 0,module:e}),{clearLogs:N}=ax(),k=(x==null?void 0:x.logs)||[];j.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[k,n]);const m=()=>{if(d.current){const{scrollTop:S,scrollHeight:R,clientHeight:P}=d.current,_=S+P>=R-10;r(_)}},h=S=>{switch(S.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"}},p=S=>{switch(S.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"}},v=k.filter(S=>{var P,_;const R=s.toLowerCase();return R?S.message.toLowerCase().includes(R)||S.levelName.toLowerCase().includes(R)||((P=S.module)==null?void 0:P.toLowerCase().includes(R))||((_=S.reqId)==null?void 0:_.toLowerCase().includes(R)):!0}),C=async()=>{try{await N()}catch(S){console.error("Failed to clear logs:",S)}};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")}),v.length>0&&i.jsxs("span",{className:"text-xs text-gray-500",children:[v.length," entries"]})]}),i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("input",{type:"text",placeholder:"Filter...",value:s,onChange:S=>l(S.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:S=>a(S.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:C,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:S=>r(S.target.checked),className:"text-blue-500"}),i.jsx("span",{className:"text-xs text-gray-400",children:"Auto-scroll"})]})]})]})}),i.jsx("div",{ref:d,onScroll:m,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..."}):v.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:[v.map(S=>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:vx(S.timestamp)}),i.jsx("span",{className:`shrink-0 uppercase font-bold px-1 rounded leading-4 ${p(S.levelName)}`,children:S.levelName.slice(0,4)}),S.module&&i.jsxs("span",{className:"text-purple-400 shrink-0 font-medium",children:["[",S.module,"]"]}),i.jsx("span",{className:`break-all flex-1 ${h(S.levelName)}`,children:S.message}),S.reqId&&i.jsx("span",{className:"text-gray-700 group-hover:text-gray-500 shrink-0 transition-colors",children:S.reqId})]}),S.meta&&Object.keys(S.meta).length>0&&i.jsxs("div",{className:"ml-6 mt-0.5 mb-1",children:[i.jsxs("button",{onClick:()=>g(S.id),className:"text-gray-600 hover:text-gray-400 select-none",children:[u.has(S.id)?"▼":"▶"," meta (",Object.keys(S.meta).length,")"]}),u.has(S.id)&&i.jsx("pre",{className:"text-gray-500 whitespace-pre-wrap break-all",children:JSON.stringify(S.meta,null,2)})]})]},S.id)),i.jsx("div",{ref:f})]})})]})},wx=({moduleName:e,onBack:t})=>{const{data:n,isLoading:r}=jh();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),f=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 ${f}`,children:c.map(d=>i.jsx(yx,{type:d.type,title:d.title,count:d.count,color:d.color,items:d.items,moduleName:e},d.type))}),i.jsx(Os,{moduleName:e})]})},jx=()=>{const{moduleName:e}=$n(),t=Qe(),n=()=>{t("/modules")};return e?i.jsx(wx,{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"})]})},ve=()=>`${window.location.protocol}//${window.location.host}`,Nx=({moduleName:e,queueName:t,onBack:n})=>{var M,je,L,D;const{data:r,isLoading:s,error:l}=nx(t),{data:o}=rx(t),a=(o==null?void 0:o.history)??[],[u,c]=j.useState(null),[f,d]=j.useState("incoming"),[g,x]=j.useState(new Set),[w,N]=j.useState(!1),[k,m]=j.useState(`{
|
|
52
|
+
"message": "",
|
|
53
|
+
"data": {}
|
|
54
|
+
}`),[h,p]=j.useState(`{
|
|
55
|
+
"custom-header": "value"
|
|
56
|
+
}`),[v,C]=j.useState(!1),[S,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 b=await fetch(`/console/queues/${t}/process-dlq`);if(b.ok){const $=await b.json();alert($.message||"DLQ processing completed")}else{const $=await b.json();alert(`Failed to process DLQ: ${$.error}`)}}catch(b){console.error("Failed to process DLQ:",b),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 b=await fetch(`/console/queues/${t}/purge-dlq`);if(b.ok){const $=await b.json();alert($.message||"DLQ purged successfully")}else{const $=await b.json();alert(`Failed to purge DLQ: ${$.error}`)}}catch(b){console.error("Failed to purge DLQ:",b),alert("Failed to purge DLQ")}},le=async()=>{try{const b=JSON.parse(k),B={"Content-Type":"application/json",...JSON.parse(h)},pe=await fetch(`/console/queues/${t}/enqueue`,{method:"POST",headers:B,body:JSON.stringify(b)});if(pe.ok){const Re=await pe.json();alert(`Message enqueued with ID: ${Re.id}`),N(!1),m(`{
|
|
57
|
+
"message": "",
|
|
58
|
+
"data": {}
|
|
59
|
+
}`),p(`{
|
|
60
|
+
"custom-header": "value"
|
|
61
|
+
}`)}else{const Re=await pe.json();alert(`Failed to enqueue: ${Re.error}`)}}catch{alert("Invalid JSON format in message or attributes")}},Pe=b=>{const $=new Set(g);$.has(b)?$.delete(b):$.add(b),x($)},In=async()=>{try{const b=await fetch(`/console/queues/${t}`,{method:"DELETE"});if(b.ok){const $=await b.json();alert($.message||"Queue deleted successfully"),n()}else{const $=await b.json();alert(`Failed to delete queue: ${$.error}`)}}catch(b){console.error("Failed to delete queue:",b),alert("Failed to delete queue")}C(!1)},Mt=()=>{switch(f){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:()=>N(!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:()=>C(!0),className:"px-4 py-2 bg-red-100 text-red-700 rounded hover:bg-red-200 text-sm",children:"🗑️ Delete Queue"})]})]})}),v&&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:()=>C(!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(!S),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 ${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:"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:[ve(),"/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:[ve(),"/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:[ve(),"/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:[ve(),"/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:[ve(),"/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:[ve(),"/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&&((M=r.stats)==null?void 0:M.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:(je=r==null?void 0:r.stats)==null?void 0:je.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:()=>N(!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:b=>m(b.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:h,onChange:b=>p(b.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:()=>N(!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(b=>{var $,B,pe;return i.jsxs("button",{onClick:()=>d(b),className:`py-4 px-1 border-b-2 font-medium text-sm capitalize ${f===b?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[b," (",b==="incoming"?($=r==null?void 0:r.stats)==null?void 0:$.incoming:b==="processing"?(B=r==null?void 0:r.stats)==null?void 0:B.processing:(pe=r==null?void 0:r.stats)==null?void 0:pe.dlq,")"]},b)})})}),i.jsx("div",{className:"p-6",children:i.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:Mt().length===0?i.jsxs("div",{className:"text-center py-8 text-gray-500",children:["No messages in ",f," queue"]}):Mt().map((b,$)=>{var pe;const B=g.has(b.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:()=>Pe(b.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 ${B?"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: ",b.id]})]}),b.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"}),b.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(b.timestamp||Date.now()).toLocaleString()})]}),!B&&i.jsx("div",{className:"text-sm text-gray-600 truncate",children:((pe=b.payload)==null?void 0:pe.message)||JSON.stringify(b.payload).substring(0,80)+"..."})]}),B&&i.jsx("div",{className:"border-t border-gray-200 p-4 bg-white",children:i.jsxs("div",{className:"space-y-3",children:[b.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(b.payload,null,2)})]}),b.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:b.error})]}),b.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:b.attempts})]}),b.attributes&&Object.keys(b.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(b.attributes,null,2)})]})]})})]},$)})})})]}),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(b=>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===b.id?null:b.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 ${b.status==="completed"?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:b.status}),i.jsxs("span",{className:"text-xs font-mono text-gray-500",children:["ID: ",b.id]}),b.attempts>0&&i.jsxs("span",{className:"text-xs text-gray-400",children:[b.attempts," attempt",b.attempts!==1?"s":""]})]}),i.jsx("span",{className:"text-xs text-gray-400",children:new Date(b.completedAt).toLocaleString()})]}),u===b.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(b.payload,null,2)})]}),b.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:b.error})]})]})]},b.id))})]}),i.jsx(Os,{moduleName:e,title:`${t} Queue Logs`})]})},kx=()=>{const{moduleName:e,queueName:t}=$n(),n=Qe(),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(Nx,{moduleName:e,queueName:t,onBack:r})},Sx=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"}},bx=({moduleName:e,scheduleName:t,onBack:n})=>{const{data:r,isLoading:s,error:l}=sx(t),{data:o}=lx(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 x=await g.json();alert(x.message||`Schedule ${d}d successfully`)}else{const x=await g.json();alert(`Failed to ${d} schedule: ${x.error}`)}}catch(d){console.error("Failed to toggle schedule:",d),alert("Failed to toggle schedule")}},f=d=>{const g=new Date(d),x=new Date,w=g.getTime()-x.getTime(),N=Math.floor(w/1e3),k=Math.floor(N/60),m=Math.floor(k/60),h=Math.floor(m/24);return h>0?`in ${h} days`:m>0?`in ${m} hours`:k>0?`in ${k} minutes`:N>0?`in ${N} 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:[ve(),"/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:[ve(),"/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:[ve(),"/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:[ve(),"/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:f(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 ${Sx(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(Os,{moduleName:e,title:`${t} Schedule Logs`})]})},Cx=()=>{const{moduleName:e,scheduleName:t}=$n(),n=Qe(),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(bx,{moduleName:e,scheduleName:t,onBack:r})};function Ex(e){return(e.match(/:([a-zA-Z_][a-zA-Z0-9_]*)(\?)?/g)??[]).map(n=>n.replace(/^:/,"").replace(/\?$/,""))}function Px(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 jc=({label:e,rows:t,onChange:n,keyPlaceholder:r="key",valuePlaceholder:s="value",fixedKeys:l=!1})=>{const o=(c,f,d)=>{const g=t.map((x,w)=>w===c?{...x,[f]:d}:x);n(g)},a=()=>n([...t,{key:"",value:""}]),u=c=>n(t.filter((f,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,f)=>i.jsxs("div",{className:"flex items-center",children:[i.jsx("input",{value:c.key,onChange:d=>o(f,"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(f,"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(f),className:"px-2 text-gray-300 hover:text-red-500 text-lg leading-none",children:"×"})]},f)),t.length===0&&i.jsx("div",{className:"px-3 py-2 text-xs text-gray-400 italic",children:"No entries"})]})]})},Nc=({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)})]})]})}),Rx=({moduleName:e,routeUrl:t,routeMethod:n,onBack:r})=>{const[s,l]=j.useState(!1),[o,a]=j.useState(n),[u,c]=j.useState("{}"),[f,d]=j.useState(`{
|
|
62
|
+
"Content-Type": "application/json"
|
|
63
|
+
}`),[g,x]=j.useState(null),[w,N]=j.useState(!1),[k,m]=j.useState([]),[h,p]=j.useState(null),v=j.useMemo(()=>Ex(t),[t]),[C,S]=j.useState(()=>v.map(M=>({key:M,value:""}))),[R,P]=j.useState([]),_=j.useMemo(()=>Px(t,C,R),[t,C,R]),{data:T}=tx(n,t),V=j.useMemo(()=>((T==null?void 0:T.history)??[]).map(M=>({id:M.id,executedAt:new Date(M.timestamp),method:M.method,url:M.url,headers:M.requestHeaders,body:M.requestBody!==void 0?JSON.stringify(M.requestBody):void 0,source:"live",response:{status:M.statusCode,duration:M.duration}})),[T]),le=j.useMemo(()=>[...k,...V].sort((M,je)=>je.executedAt.getTime()-M.executedAt.getTime()).slice(0,30),[k,V]),Pe=async()=>{N(!0),x(null);let M;try{M=JSON.parse(f)}catch{x({error:"Invalid JSON in headers",duration:0}),N(!1);return}const je={method:o,headers:M};o!=="GET"&&o!=="HEAD"&&(je.body=u);const L=new Date,D=Date.now();try{const b=await fetch(`${ve()}${_}`,je),$=Date.now()-D,B=b.headers.get("content-type"),pe=B!=null&&B.includes("application/json")?await b.json():await b.text(),Re={status:b.status,statusText:b.statusText,headers:Object.fromEntries(b.headers.entries()),data:pe,duration:$};x(Re),m(Rr=>[{id:L.getTime().toString(),executedAt:L,method:o,url:_,headers:M,body:o!=="GET"&&o!=="HEAD"?u:void 0,source:"console",response:Re},...Rr].slice(0,20))}catch(b){const $={error:b instanceof Error?b.message:"Unknown error occurred",duration:Date.now()-D};x($),m(B=>[{id:L.getTime().toString(),executedAt:L,method:o,url:_,headers:M,body:o!=="GET"&&o!=="HEAD"?u:void 0,source:"console",response:$},...B].slice(0,20))}finally{N(!1)}},In=M=>{a(M.method),d(JSON.stringify(M.headers,null,2)),M.body&&c(M.body);try{const je=new URL(M.url,"http://x"),L=[];je.searchParams.forEach((D,b)=>L.push({key:b,value:D})),P(L)}catch{}},Mt=M=>{switch(M.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 ${Mt(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:[ve(),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 ${Mt(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:M=>a(M.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:[ve(),_]})]}),v.length>0&&i.jsx(jc,{label:"Path Parameters",rows:C,onChange:S,keyPlaceholder:"param",valuePlaceholder:"value",fixedKeys:!0}),i.jsx(jc,{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:f,onChange:M=>d(M.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:M=>c(M.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:Pe,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(Nc,{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:()=>m([]),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(M=>i.jsxs("div",{children:[i.jsxs("div",{className:"p-4 flex items-center justify-between cursor-pointer hover:bg-gray-50 transition-colors",onClick:()=>p(h===M.id?null:M.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 ${Mt(M.method)}`,children:M.method}),i.jsx("span",{className:"text-sm font-mono text-gray-700",children:M.url}),i.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${M.source==="console"?"bg-blue-50 text-blue-600":"bg-gray-100 text-gray-500"}`,children:M.source==="console"?"console":"live"}),M.response.error?i.jsx("span",{className:"text-xs text-red-600",children:"Error"}):i.jsx("span",{className:`text-xs font-medium ${(M.response.status??0)>=200&&(M.response.status??0)<300?"text-green-600":(M.response.status??0)>=400?"text-red-600":"text-yellow-600"}`,children:M.response.status}),i.jsxs("span",{className:"text-xs text-gray-400",children:[M.response.duration,"ms"]})]}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"text-xs text-gray-400",children:M.executedAt.toLocaleTimeString()}),M.source==="console"&&i.jsx("button",{onClick:je=>{je.stopPropagation(),In(M)},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 ${h===M.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"})})]})]}),h===M.id&&i.jsxs("div",{className:"px-4 pb-4 space-y-3 bg-gray-50",children:[M.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:M.body})]}),i.jsx(Nc,{response:M.response})]})]},M.id))})]}),i.jsx(Os,{moduleName:e,title:`${n} ${t} Logs`})]})},Lx=()=>{const{moduleName:e}=$n(),[t]=p0(),n=Qe(),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(Rx,{moduleName:e,routeUrl:decodeURIComponent(r),routeMethod:s,onBack:l})},Tx=({moduleName:e,wsPath:t,onBack:n})=>{var p;const{data:r,isLoading:s,error:l,refetch:o}=ux(t),{send:a}=cx(),[u,c]=j.useState(null),[f,d]=j.useState(`{
|
|
64
|
+
|
|
65
|
+
}`),[g,x]=j.useState(null),[w,N]=j.useState(!1),k=(r==null?void 0:r.connections)||[],m=u||((p=k[0])==null?void 0:p.connectionId)||null,h=async()=>{if(m){N(!0),x(null);try{let v;try{v=JSON.parse(f)}catch{x({ok:!1,text:"Invalid JSON in message body"}),N(!1);return}await a(m,v),x({ok:!0,text:"Message sent successfully"}),o()}catch(v){x({ok:!1,text:v instanceof Error?v.message:"Send failed"})}finally{N(!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:[ve().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(v=>{var C;return i.jsx("div",{onClick:()=>c(v.connectionId),className:`p-3 rounded-lg border cursor-pointer transition-colors ${(u||((C=k[0])==null?void 0:C.connectionId))===v.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:v.connectionId})]}),i.jsxs("span",{className:"text-xs text-gray-500",children:["connected ",new Date(v.connectedAt).toLocaleTimeString()]})]})},v.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:m||"",onChange:v=>c(v.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(v=>i.jsx("option",{value:v.connectionId,children:v.connectionId},v.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:f,onChange:v=>d(v.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:h,disabled:w||!m,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(Os,{moduleName:e,title:`${t} WebSocket Logs`})]})},_x=()=>{const{moduleName:e,"*":t}=$n(),n=Qe(),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(Tx,{moduleName:e,wsPath:"/"+t,onBack:r})},Ox=()=>i.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 10-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13"})}),Fx=({status:e})=>i.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${e==="sent"?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:e}),Mx=({onSelect:e,selectedId:t})=>{const{data:n,isLoading:r,error:s}=dx(),l=(n==null?void 0:n.emails)??[];return r?i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"animate-pulse",children:"Loading emails..."})}):s?i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"text-red-600",children:["Error loading emails: ",s.message]})}):i.jsx("div",{className:"bg-white rounded-lg shadow-sm border h-full overflow-y-auto",children:l.length===0?i.jsx("div",{className:"p-8 text-center text-gray-500 text-sm",children:"No emails sent yet"}):i.jsx("div",{className:"divide-y divide-gray-100",children:l.map(o=>i.jsxs("div",{onClick:()=>e(o.id),className:`p-4 flex items-start justify-between gap-4 cursor-pointer transition-colors ${o.id===t?"bg-blue-50 hover:bg-blue-50":"hover:bg-gray-50"}`,children:[i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Fx,{status:o.status}),i.jsx("span",{className:"text-sm font-medium text-gray-900 truncate",children:o.from}),o.hasAttachments&&i.jsx(Ox,{}),o.configurationSet&&i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-50 text-blue-700 truncate",children:o.configurationSet})]}),i.jsx("div",{className:"text-sm text-gray-900 truncate mt-1",children:o.subject}),i.jsx("div",{className:"text-sm text-gray-500 truncate",children:o.preview})]}),i.jsx("span",{className:"text-xs text-gray-400 whitespace-nowrap",children:new Date(o.timestamp).toLocaleString()})]},o.id))})})},Dx=({id:e})=>{const{data:t,isLoading:n,error:r}=fx(e),{data:s,isLoading:l}=hx(e),[o,a]=j.useState(null),u=t==null?void 0:t.email,c=s==null?void 0:s.body,f=o??(c!=null&&c.html?"html":"text");return n?i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"animate-pulse",children:"Loading email..."})}):r||!u?i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"text-red-600",children:["Error loading email: ",r==null?void 0:r.message]})}):i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border flex flex-col h-full",children:[i.jsxs("div",{className:"p-4 border-b",children:[i.jsxs("div",{className:"flex items-start justify-between gap-4",children:[i.jsx("h2",{className:"text-lg font-semibold text-gray-900 break-words",children:u.subject}),i.jsx("a",{href:`${ve()}/console/emails/${u.id}/raw`,target:"_blank",rel:"noreferrer",className:"shrink-0 px-3 py-1.5 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 text-xs font-medium whitespace-nowrap",children:"Download .eml"})]}),i.jsxs("div",{className:"mt-2 space-y-1 text-sm",children:[i.jsxs("div",{children:[i.jsx("span",{className:"text-gray-500",children:"From:"})," ",i.jsx("span",{className:"text-gray-900",children:u.from})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-gray-500",children:"To:"})," ",i.jsx("span",{className:"text-gray-900",children:u.to.join(", ")})]}),u.cc&&u.cc.length>0&&i.jsxs("div",{children:[i.jsx("span",{className:"text-gray-500",children:"Cc:"})," ",i.jsx("span",{className:"text-gray-900",children:u.cc.join(", ")})]}),i.jsx("div",{className:"text-gray-500",children:new Date(u.timestamp).toLocaleString()})]}),i.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[i.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${u.status==="sent"?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:u.status}),u.configurationSet&&i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-50 text-blue-700",children:u.configurationSet}),u.hasAttachments&&i.jsxs("span",{className:"text-xs text-gray-500",children:[u.attachmentCount," attachment",u.attachmentCount!==1?"s":""]})]}),u.error&&i.jsx("div",{className:"mt-3 text-sm bg-red-50 p-3 rounded border text-red-800",children:u.error})]}),(c==null?void 0:c.html)&&(c==null?void 0:c.text)&&i.jsx("div",{className:"px-4 pt-3 flex gap-4 border-b",children:["html","text"].map(d=>i.jsx("button",{onClick:()=>a(d),className:`pb-2 text-sm font-medium border-b-2 -mb-px ${f===d?"border-blue-600 text-blue-700":"border-transparent text-gray-500 hover:text-gray-700"}`,children:d==="html"?"HTML":"Plain text"},d))}),i.jsx("div",{className:"flex-1 min-h-0",children:l?i.jsx("div",{className:"p-6 animate-pulse",children:"Loading content..."}):f==="html"&&(c!=null&&c.html)?i.jsx("iframe",{title:"Email preview",srcDoc:c.html,sandbox:"",className:"w-full h-full min-h-[500px] border-0"}):c!=null&&c.text?i.jsx("pre",{className:"p-4 text-sm text-gray-800 whitespace-pre-wrap font-sans",children:c.text}):i.jsx("div",{className:"p-6 text-sm text-gray-500",children:"No body content available"})})]})},kc=()=>{const e=Qe(),{id:t}=$n();return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:"Emails"}),i.jsx("p",{className:"text-gray-600",children:"Sent via the local email provider"})]}),i.jsxs("div",{className:"flex gap-6 items-start",style:{height:"calc(100vh - 260px)",minHeight:480},children:[i.jsx("div",{className:"w-full max-w-sm shrink-0 h-full",children:i.jsx(Mx,{selectedId:t,onSelect:n=>e(`/emails/${n}`)})}),i.jsx("div",{className:"flex-1 min-w-0 h-full",children:t?i.jsx(Dx,{id:t}):i.jsx("div",{className:"bg-white rounded-lg shadow-sm border h-full flex items-center justify-center text-gray-400 text-sm",children:"Select an email to preview it"})})]})]})},$x=({onSelect:e})=>{const{data:t,isLoading:n,error:r}=mx(),s=(t==null?void 0:t.topics)??[];return n?i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsx("div",{className:"animate-pulse",children:"Loading topics..."})}):r?i.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:i.jsxs("div",{className:"text-red-600",children:["Error loading topics: ",r.message]})}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:"Topics"}),i.jsx("p",{className:"text-gray-600",children:"Pub/sub topics - publishing fans a message out to every subscribed queue"})]}),i.jsx("div",{className:"bg-white rounded-lg shadow-sm border",children:s.length===0?i.jsx("div",{className:"p-8 text-center text-gray-500 text-sm",children:"No topics yet - subscribe a queue to one with an SNS-sourced event trigger"}):i.jsx("div",{className:"divide-y divide-gray-100",children:s.map(l=>{const o=l.subscribers.reduce((a,u)=>{var c;return a+(((c=u.stats)==null?void 0:c.dlq)??0)},0);return i.jsxs("div",{onClick:()=>e(l.name),className:"p-4 flex items-center justify-between cursor-pointer hover:bg-gray-50 transition-colors",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-gray-900",children:l.name}),i.jsxs("div",{className:"text-sm text-gray-500",children:[l.subscribers.length," subscriber",l.subscribers.length!==1?"s":""]})]}),o>0&&i.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-100 text-red-800",children:[o," in DLQ"]})]},l.name)})})})]})},Ix=()=>{const e=Qe();return i.jsx($x,{onSelect:t=>e(`/topics/${t}`)})},zx=({topicName:e,onBack:t})=>{const{data:n,isLoading:r,error:s}=px(e),l=Qe(),[o,a]=j.useState(!1),[u,c]=j.useState(`{
|
|
66
|
+
"message": "",
|
|
67
|
+
"data": {}
|
|
68
|
+
}`),[f,d]=j.useState(`{
|
|
69
|
+
"custom-header": "value"
|
|
70
|
+
}`);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 topic details..."})});if(s||!n)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 topic: ",s==null?void 0:s.message]}),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 Topics"})]});const g=async()=>{try{const x=JSON.parse(u),N={"Content-Type":"application/json",...JSON.parse(f)},k=await fetch(`/console/topics/${e}/publish`,{method:"POST",headers:N,body:JSON.stringify(x)});if(k.ok){const m=await k.json();alert(`Published to ${m.results.length} subscriber${m.results.length!==1?"s":""}`),a(!1),c(`{
|
|
71
|
+
"message": "",
|
|
72
|
+
"data": {}
|
|
73
|
+
}`),d(`{
|
|
74
|
+
"custom-header": "value"
|
|
75
|
+
}`)}else{const m=await k.json();alert(`Failed to publish: ${m.error}`)}}catch{alert("Invalid JSON format in message or attributes")}};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.jsx("button",{onClick:t,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"← Back to Topics"}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:e}),i.jsxs("p",{className:"text-gray-600",children:[n.subscribers.length," subscriber",n.subscribers.length!==1?"s":""]})]})]}),i.jsx("button",{onClick:()=>a(!o),className:"px-4 py-2 bg-green-100 text-green-700 rounded hover:bg-green-200 text-sm",children:"+ Publish Message"})]}),i.jsxs("div",{className:"flex items-center space-x-2 text-xs",children:[i.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded font-medium bg-blue-100 text-blue-800",children:"POST"}),i.jsxs("code",{className:"font-mono text-gray-700",children:[ve(),"/queues/topics/",e]}),i.jsx("span",{className:"text-gray-500",children:"- runtime publish endpoint (fans out to every subscriber)"})]})]}),o&&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:"Publish Message to Topic"}),i.jsx("button",{onClick:()=>a(!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:u,onChange:x=>c(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-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:x=>d(x.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:"Delivered to every subscriber - same message, independent backlog/DLQ per subscriber"})]}),i.jsxs("div",{className:"flex space-x-3",children:[i.jsx("button",{onClick:g,className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700",children:"Publish"}),i.jsx("button",{onClick:()=>a(!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 border-b border-gray-200",children:i.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Subscribers"})}),n.subscribers.length===0?i.jsx("div",{className:"p-8 text-center text-gray-500 text-sm",children:"No subscribers"}):i.jsx("div",{className:"divide-y divide-gray-100",children:n.subscribers.map(x=>i.jsxs("div",{onClick:()=>x.module&&l(`/modules/${x.module}/queues/${x.queueName}`),className:`p-4 flex items-center justify-between ${x.module?"cursor-pointer hover:bg-gray-50 transition-colors":""}`,children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-medium text-gray-900",children:x.queueName}),x.module&&i.jsxs("div",{className:"text-xs text-gray-500",children:["module: ",x.module]})]}),x.stats&&i.jsxs("div",{className:"flex items-center space-x-3 text-xs",children:[i.jsxs("span",{className:"text-green-700",children:[x.stats.incoming," incoming"]}),i.jsxs("span",{className:"text-yellow-700",children:[x.stats.processing," processing"]}),x.stats.dlq>0&&i.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded font-medium bg-red-100 text-red-800",children:[x.stats.dlq," DLQ"]})]})]},x.queueName))})]})]})},Ax=()=>{const{topicName:e}=$n(),t=Qe();return e?i.jsx(zx,{topicName:e,onBack:()=>t("/topics")}):i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[i.jsx("div",{className:"text-red-600",children:"Invalid topic name"}),i.jsx("button",{onClick:()=>t("/topics"),className:"mt-4 px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Back to Topics"})]})},Ux=()=>i.jsx("header",{className:"bg-white shadow-sm border-b",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"flex items-center justify-between h-16",children:[i.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"CloudNux Dev Console"}),i.jsxs("nav",{className:"flex items-center space-x-6",children:[i.jsx(Zr,{to:"/modules",className:"text-sm font-medium text-gray-600 hover:text-gray-900",children:"Modules"}),i.jsx(Zr,{to:"/emails",className:"text-sm font-medium text-gray-600 hover:text-gray-900",children:"Emails"}),i.jsx(Zr,{to:"/topics",className:"text-sm font-medium text-gray-600 hover:text-gray-900",children:"Topics"})]})]})})}),Bx=new I0;function Qx(){return i.jsx(B0,{client:Bx,children:i.jsx(c0,{basename:"/console",children:i.jsxs("div",{className:"min-h-screen bg-gray-50",children:[i.jsx(Ux,{}),i.jsx("main",{className:"container mx-auto px-4 py-6",children:i.jsxs(Ag,{children:[i.jsx(We,{path:"/",element:i.jsx(wc,{})}),i.jsx(We,{path:"/modules",element:i.jsx(wc,{})}),i.jsx(We,{path:"/modules/:moduleName",element:i.jsx(jx,{})}),i.jsx(We,{path:"/modules/:moduleName/queues/:queueName",element:i.jsx(kx,{})}),i.jsx(We,{path:"/modules/:moduleName/schedules/:scheduleName",element:i.jsx(Cx,{})}),i.jsx(We,{path:"/modules/:moduleName/routes",element:i.jsx(Lx,{})}),i.jsx(We,{path:"/modules/:moduleName/websockets/*",element:i.jsx(_x,{})}),i.jsx(We,{path:"/emails",element:i.jsx(kc,{})}),i.jsx(We,{path:"/emails/:id",element:i.jsx(kc,{})}),i.jsx(We,{path:"/topics",element:i.jsx(Ix,{})}),i.jsx(We,{path:"/topics/:topicName",element:i.jsx(Ax,{})})]})})]})})})}Mi.createRoot(document.getElementById("root")).render(i.jsx(zh.StrictMode,{children:i.jsx(Qx,{})}));
|