@cloudnux/dev-console 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-BN_SuCnG.js +63 -0
- package/dist/assets/index-BpV0XcCF.css +1 -0
- package/dist/index.html +14 -0
- package/package.json +34 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var qa=e=>{throw TypeError(e)};var ri=(e,t,n)=>t.has(e)||qa("Cannot "+n);var y=(e,t,n)=>(ri(e,t,"read from private field"),n?n.call(e):t.get(e)),M=(e,t,n)=>t.has(e)?qa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_=(e,t,n,r)=>(ri(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$=(e,t,n)=>(ri(e,t,"access private method"),n);var Ls=(e,t,n,r)=>({set _(s){_(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 i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).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 gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rc={exports:{}},Dl={},Lc={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 ys=Symbol.for("react.element"),yh=Symbol.for("react.portal"),vh=Symbol.for("react.fragment"),xh=Symbol.for("react.strict_mode"),wh=Symbol.for("react.profiler"),Sh=Symbol.for("react.provider"),jh=Symbol.for("react.context"),kh=Symbol.for("react.forward_ref"),Nh=Symbol.for("react.suspense"),Eh=Symbol.for("react.memo"),Ch=Symbol.for("react.lazy"),Ga=Symbol.iterator;function Ph(e){return e===null||typeof e!="object"?null:(e=Ga&&e[Ga]||e["@@iterator"],typeof e=="function"?e:null)}var bc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tc=Object.assign,_c={};function vr(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||bc}vr.prototype.isReactComponent={};vr.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")};vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Oc(){}Oc.prototype=vr.prototype;function Ho(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||bc}var Wo=Ho.prototype=new Oc;Wo.constructor=Ho;Tc(Wo,vr.prototype);Wo.isPureReactComponent=!0;var Ya=Array.isArray,Fc=Object.prototype.hasOwnProperty,Vo={current:null},Dc={key:!0,ref:!0,__self:!0,__source:!0};function Mc(e,t,n){var r,s={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Fc.call(t,r)&&!Dc.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:ys,type:e,key:l,ref:i,props:s,_owner:Vo.current}}function Rh(e,t){return{$$typeof:ys,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ko(e){return typeof e=="object"&&e!==null&&e.$$typeof===ys}function Lh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ja=/\/+/g;function si(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lh(""+e.key):t.toString(36)}function Gs(e,t,n,r,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ys:case yh:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+si(i,0):r,Ya(s)?(n="",e!=null&&(n=e.replace(Ja,"$&/")+"/"),Gs(s,t,n,"",function(c){return c})):s!=null&&(Ko(s)&&(s=Rh(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Ja,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Ya(e))for(var a=0;a<e.length;a++){l=e[a];var u=r+si(l,a);i+=Gs(l,t,n,u,s)}else if(u=Ph(e),typeof u=="function")for(e=u.call(e),a=0;!(l=e.next()).done;)l=l.value,u=r+si(l,a++),i+=Gs(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 i}function bs(e,t,n){if(e==null)return e;var r=[],s=0;return Gs(e,r,"","",function(l){return t.call(n,l,s++)}),r}function bh(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 Ne={current:null},Ys={transition:null},Th={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:Ys,ReactCurrentOwner:Vo};function Ic(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:bs,forEach:function(e,t,n){bs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bs(e,function(){t++}),t},toArray:function(e){return bs(e,function(t){return t})||[]},only:function(e){if(!Ko(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=vr;z.Fragment=vh;z.Profiler=wh;z.PureComponent=Ho;z.StrictMode=xh;z.Suspense=Nh;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Th;z.act=Ic;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=Tc({},e.props),s=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=Vo.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Fc.call(t,u)&&!Dc.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:ys,type:e.type,key:s,ref:l,props:r,_owner:i}};z.createContext=function(e){return e={$$typeof:jh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Sh,_context:e},e.Consumer=e};z.createElement=Mc;z.createFactory=function(e){var t=Mc.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:kh,render:e}};z.isValidElement=Ko;z.lazy=function(e){return{$$typeof:Ch,_payload:{_status:-1,_result:e},_init:bh}};z.memo=function(e,t){return{$$typeof:Eh,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=Ys.transition;Ys.transition={};try{e()}finally{Ys.transition=t}};z.unstable_act=Ic;z.useCallback=function(e,t){return Ne.current.useCallback(e,t)};z.useContext=function(e){return Ne.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Ne.current.useDeferredValue(e)};z.useEffect=function(e,t){return Ne.current.useEffect(e,t)};z.useId=function(){return Ne.current.useId()};z.useImperativeHandle=function(e,t,n){return Ne.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Ne.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Ne.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Ne.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Ne.current.useReducer(e,t,n)};z.useRef=function(e){return Ne.current.useRef(e)};z.useState=function(e){return Ne.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Ne.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Ne.current.useTransition()};z.version="18.3.1";Lc.exports=z;var S=Lc.exports;const _h=gh(S);/**
|
|
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 Oh=S,Fh=Symbol.for("react.element"),Dh=Symbol.for("react.fragment"),Mh=Object.prototype.hasOwnProperty,Ih=Oh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zh={key:!0,ref:!0,__self:!0,__source:!0};function zc(e,t,n){var r,s={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Mh.call(t,r)&&!zh.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:Fh,type:e,key:l,ref:i,props:s,_owner:Ih.current}}Dl.Fragment=Dh;Dl.jsx=zc;Dl.jsxs=zc;Rc.exports=Dl;var o=Rc.exports,Oi={},$c={exports:{}},ze={},Ac={exports:{}},Uc={};/**
|
|
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 I=L.length;L.push(D);e:for(;0<I;){var ne=I-1>>>1,oe=L[ne];if(0<s(oe,D))L[ne]=D,L[I]=oe,I=ne;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],I=L.pop();if(I!==D){L[0]=I;e:for(var ne=0,oe=L.length,Ps=oe>>>1;ne<Ps;){var on=2*(ne+1)-1,ni=L[on],an=on+1,Rs=L[an];if(0>s(ni,I))an<oe&&0>s(Rs,ni)?(L[ne]=Rs,L[an]=I,ne=an):(L[ne]=ni,L[on]=I,ne=on);else if(an<oe&&0>s(Rs,I))L[ne]=Rs,L[an]=I,ne=an;else break e}}return D}function s(L,D){var I=L.sortIndex-D.sortIndex;return I!==0?I:L.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],c=[],f=1,m=null,g=3,v=!1,x=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=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 w(L){if(j=!1,p(L),!x)if(n(u)!==null)x=!0,F(k);else{var D=n(c);D!==null&&H(w,D.startTime-L)}}function k(L,D){x=!1,j&&(j=!1,h(P),P=-1),v=!0;var I=g;try{for(p(D),m=n(u);m!==null&&(!(m.expirationTime>D)||L&&!V());){var ne=m.callback;if(typeof ne=="function"){m.callback=null,g=m.priorityLevel;var oe=ne(m.expirationTime<=D);D=e.unstable_now(),typeof oe=="function"?m.callback=oe:m===n(u)&&r(u),p(D)}else r(u);m=n(u)}if(m!==null)var Ps=!0;else{var on=n(c);on!==null&&H(w,on.startTime-D),Ps=!1}return Ps}finally{m=null,g=I,v=!1}}var C=!1,R=null,P=-1,O=5,T=-1;function V(){return!(e.unstable_now()-T<O)}function xe(){if(R!==null){var L=e.unstable_now();T=L;var D=!0;try{D=R(!0,L)}finally{D?Oe():(C=!1,R=null)}}else C=!1}var Oe;if(typeof d=="function")Oe=function(){d(xe)};else if(typeof MessageChannel<"u"){var kr=new MessageChannel,Cs=kr.port2;kr.port1.onmessage=xe,Oe=function(){Cs.postMessage(null)}}else Oe=function(){N(xe,0)};function F(L){R=L,C||(C=!0,Oe())}function H(L,D){P=N(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(){x||v||(x=!0,F(k))},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"):O=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 I=g;g=D;try{return L()}finally{g=I}},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 I=g;g=L;try{return D()}finally{g=I}},e.unstable_scheduleCallback=function(L,D,I){var ne=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ne+I:ne):I=ne,L){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=I+oe,L={id:f++,callback:D,priorityLevel:L,startTime:I,expirationTime:oe,sortIndex:-1},I>ne?(L.sortIndex=I,t(c,L),n(u)===null&&L===n(c)&&(j?(h(P),P=-1):j=!0,H(w,I-ne))):(L.sortIndex=oe,t(u,L),x||v||(x=!0,F(k))),L},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(L){var D=g;return function(){var I=g;g=D;try{return L.apply(this,arguments)}finally{g=I}}}})(Uc);Ac.exports=Uc;var $h=Ac.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 Ah=S,Ie=$h;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,Kr={};function Tn(e,t){dr(e,t),dr(e+"Capture",t)}function dr(e,t){for(Kr[e]=t,e=0;e<t.length;e++)Qc.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fi=Object.prototype.hasOwnProperty,Uh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xa={},Za={};function Qh(e){return Fi.call(Za,e)?!0:Fi.call(Xa,e)?!1:Uh.test(e)?Za[e]=!0:(Xa[e]=!0,!1)}function Bh(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 Hh(e,t,n,r){if(t===null||typeof t>"u"||Bh(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,i){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=i}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var qo=/[\-:]([a-z])/g;function Go(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(qo,Go);pe[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(qo,Go);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(qo,Go);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yo(e,t,n,r){var s=pe.hasOwnProperty(t)?pe[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Hh(t,n,s,r)&&(n=null),r||s===null?Qh(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 Rt=Ah.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ts=Symbol.for("react.element"),Fn=Symbol.for("react.portal"),Dn=Symbol.for("react.fragment"),Jo=Symbol.for("react.strict_mode"),Di=Symbol.for("react.profiler"),Bc=Symbol.for("react.provider"),Hc=Symbol.for("react.context"),Xo=Symbol.for("react.forward_ref"),Mi=Symbol.for("react.suspense"),Ii=Symbol.for("react.suspense_list"),Zo=Symbol.for("react.memo"),Tt=Symbol.for("react.lazy"),Wc=Symbol.for("react.offscreen"),eu=Symbol.iterator;function Nr(e){return e===null||typeof e!="object"?null:(e=eu&&e[eu]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Object.assign,li;function Or(e){if(li===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);li=t&&t[1]||""}return`
|
|
34
|
+
`+li+e}var ii=!1;function oi(e,t){if(!e||ii)return"";ii=!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
|
+
`),i=s.length-1,a=l.length-1;1<=i&&0<=a&&s[i]!==l[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==l[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==l[a]){var u=`
|
|
37
|
+
`+s[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{ii=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Or(e):""}function Wh(e){switch(e.tag){case 5:return Or(e.type);case 16:return Or("Lazy");case 13:return Or("Suspense");case 19:return Or("SuspenseList");case 0:case 2:case 15:return e=oi(e.type,!1),e;case 11:return e=oi(e.type.render,!1),e;case 1:return e=oi(e.type,!0),e;default:return""}}function zi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dn:return"Fragment";case Fn:return"Portal";case Di:return"Profiler";case Jo:return"StrictMode";case Mi:return"Suspense";case Ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hc:return(e.displayName||"Context")+".Consumer";case Bc:return(e._context.displayName||"Context")+".Provider";case Xo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zo:return t=e.displayName||null,t!==null?t:zi(e.type)||"Memo";case Tt:t=e._payload,e=e._init;try{return zi(e(t))}catch{}}return null}function Vh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zi(t);case 8:return t===Jo?"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 Zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kh(e){var t=Vc(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(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _s(e){e._valueTracker||(e._valueTracker=Kh(e))}function Kc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ul(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 $i(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zt(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 qc(e,t){t=t.checked,t!=null&&Yo(e,"checked",t,!1)}function Ai(e,t){qc(e,t);var n=Zt(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")?Ui(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ui(e,t.type,Zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ui(e,t,n){(t!=="number"||ul(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fr=Array.isArray;function Vn(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=""+Zt(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 Qi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return Z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ru(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Fr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Zt(n)}}function Gc(e,t){var n=Zt(t.value),r=Zt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function su(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Yc(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 Bi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Yc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Os,Jc=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(Os=Os||document.createElement("div"),Os.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Os.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zr={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},qh=["Webkit","ms","Moz","O"];Object.keys(zr).forEach(function(e){qh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zr[t]=zr[e]})});function Xc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zr.hasOwnProperty(e)&&zr[e]?(""+t).trim():t+"px"}function Zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Gh=Z({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 Hi(e,t){if(t){if(Gh[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 Wi(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 Vi=null;function ea(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ki=null,Kn=null,qn=null;function lu(e){if(e=ws(e)){if(typeof Ki!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Al(t),Ki(e.stateNode,e.type,t))}}function ed(e){Kn?qn?qn.push(e):qn=[e]:Kn=e}function td(){if(Kn){var e=Kn,t=qn;if(qn=Kn=null,lu(e),t)for(e=0;e<t.length;e++)lu(t[e])}}function nd(e,t){return e(t)}function rd(){}var ai=!1;function sd(e,t,n){if(ai)return e(t,n);ai=!0;try{return nd(e,t,n)}finally{ai=!1,(Kn!==null||qn!==null)&&(rd(),td())}}function Gr(e,t){var n=e.stateNode;if(n===null)return null;var r=Al(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 qi=!1;if(kt)try{var Er={};Object.defineProperty(Er,"passive",{get:function(){qi=!0}}),window.addEventListener("test",Er,Er),window.removeEventListener("test",Er,Er)}catch{qi=!1}function Yh(e,t,n,r,s,l,i,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var $r=!1,cl=null,dl=!1,Gi=null,Jh={onError:function(e){$r=!0,cl=e}};function Xh(e,t,n,r,s,l,i,a,u){$r=!1,cl=null,Yh.apply(Jh,arguments)}function Zh(e,t,n,r,s,l,i,a,u){if(Xh.apply(this,arguments),$r){if($r){var c=cl;$r=!1,cl=null}else throw Error(E(198));dl||(dl=!0,Gi=c)}}function _n(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ld(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function iu(e){if(_n(e)!==e)throw Error(E(188))}function ep(e){var t=e.alternate;if(!t){if(t=_n(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 iu(s),e;if(l===r)return iu(s),t;l=l.sibling}throw Error(E(188))}if(n.return!==r.return)n=s,r=l;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=l;break}if(a===r){i=!0,r=s,n=l;break}a=a.sibling}if(!i){for(a=l.child;a;){if(a===n){i=!0,n=l,r=s;break}if(a===r){i=!0,r=l,n=s;break}a=a.sibling}if(!i)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 id(e){return e=ep(e),e!==null?od(e):null}function od(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=od(e);if(t!==null)return t;e=e.sibling}return null}var ad=Ie.unstable_scheduleCallback,ou=Ie.unstable_cancelCallback,tp=Ie.unstable_shouldYield,np=Ie.unstable_requestPaint,re=Ie.unstable_now,rp=Ie.unstable_getCurrentPriorityLevel,ta=Ie.unstable_ImmediatePriority,ud=Ie.unstable_UserBlockingPriority,fl=Ie.unstable_NormalPriority,sp=Ie.unstable_LowPriority,cd=Ie.unstable_IdlePriority,Ml=null,ct=null;function lp(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Ml,e,void 0,(e.current.flags&128)===128)}catch{}}var et=Math.clz32?Math.clz32:ap,ip=Math.log,op=Math.LN2;function ap(e){return e>>>=0,e===0?32:31-(ip(e)/op|0)|0}var Fs=64,Ds=4194304;function Dr(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 hl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=Dr(a):(l&=i,l!==0&&(r=Dr(l)))}else i=n&~s,i!==0?r=Dr(i):l!==0&&(r=Dr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-et(t),s=1<<n,r|=e[n],t&=~s;return r}function up(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 cp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-et(l),a=1<<i,u=s[i];u===-1?(!(a&n)||a&r)&&(s[i]=up(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function Yi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dd(){var e=Fs;return Fs<<=1,!(Fs&4194240)&&(Fs=64),e}function ui(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function dp(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-et(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function na(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var B=0;function fd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hd,ra,pd,md,gd,Ji=!1,Ms=[],Ht=null,Wt=null,Vt=null,Yr=new Map,Jr=new Map,Ot=[],fp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function au(e,t){switch(e){case"focusin":case"focusout":Ht=null;break;case"dragenter":case"dragleave":Wt=null;break;case"mouseover":case"mouseout":Vt=null;break;case"pointerover":case"pointerout":Yr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jr.delete(t.pointerId)}}function Cr(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=ws(t),t!==null&&ra(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function hp(e,t,n,r,s){switch(t){case"focusin":return Ht=Cr(Ht,e,t,n,r,s),!0;case"dragenter":return Wt=Cr(Wt,e,t,n,r,s),!0;case"mouseover":return Vt=Cr(Vt,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return Yr.set(l,Cr(Yr.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,Jr.set(l,Cr(Jr.get(l)||null,e,t,n,r,s)),!0}return!1}function yd(e){var t=fn(e.target);if(t!==null){var n=_n(t);if(n!==null){if(t=n.tag,t===13){if(t=ld(n),t!==null){e.blockedOn=t,gd(e.priority,function(){pd(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 Js(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Vi=r,n.target.dispatchEvent(r),Vi=null}else return t=ws(n),t!==null&&ra(t),e.blockedOn=n,!1;t.shift()}return!0}function uu(e,t,n){Js(e)&&n.delete(t)}function pp(){Ji=!1,Ht!==null&&Js(Ht)&&(Ht=null),Wt!==null&&Js(Wt)&&(Wt=null),Vt!==null&&Js(Vt)&&(Vt=null),Yr.forEach(uu),Jr.forEach(uu)}function Pr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ji||(Ji=!0,Ie.unstable_scheduleCallback(Ie.unstable_NormalPriority,pp)))}function Xr(e){function t(s){return Pr(s,e)}if(0<Ms.length){Pr(Ms[0],e);for(var n=1;n<Ms.length;n++){var r=Ms[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ht!==null&&Pr(Ht,e),Wt!==null&&Pr(Wt,e),Vt!==null&&Pr(Vt,e),Yr.forEach(t),Jr.forEach(t),n=0;n<Ot.length;n++)r=Ot[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&(n=Ot[0],n.blockedOn===null);)yd(n),n.blockedOn===null&&Ot.shift()}var Gn=Rt.ReactCurrentBatchConfig,pl=!0;function mp(e,t,n,r){var s=B,l=Gn.transition;Gn.transition=null;try{B=1,sa(e,t,n,r)}finally{B=s,Gn.transition=l}}function gp(e,t,n,r){var s=B,l=Gn.transition;Gn.transition=null;try{B=4,sa(e,t,n,r)}finally{B=s,Gn.transition=l}}function sa(e,t,n,r){if(pl){var s=Xi(e,t,n,r);if(s===null)xi(e,t,r,ml,n),au(e,r);else if(hp(s,e,t,n,r))r.stopPropagation();else if(au(e,r),t&4&&-1<fp.indexOf(e)){for(;s!==null;){var l=ws(s);if(l!==null&&hd(l),l=Xi(e,t,n,r),l===null&&xi(e,t,r,ml,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else xi(e,t,r,null,n)}}var ml=null;function Xi(e,t,n,r){if(ml=null,e=ea(r),e=fn(e),e!==null)if(t=_n(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ld(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 ml=e,null}function vd(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(rp()){case ta:return 1;case ud:return 4;case fl:case sp:return 16;case cd:return 536870912;default:return 16}default:return 16}}var Qt=null,la=null,Xs=null;function xd(){if(Xs)return Xs;var e,t=la,n=t.length,r,s="value"in Qt?Qt.value:Qt.textContent,l=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[l-r];r++);return Xs=s.slice(e,1<r?1-r:void 0)}function Zs(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 Is(){return!0}function cu(){return!1}function $e(e){function t(n,r,s,l,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=l,this.target=i,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)?Is:cu,this.isPropagationStopped=cu,this}return Z(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=Is)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Is)},persist:function(){},isPersistent:Is}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ia=$e(xr),xs=Z({},xr,{view:0,detail:0}),yp=$e(xs),ci,di,Rr,Il=Z({},xs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oa,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!==Rr&&(Rr&&e.type==="mousemove"?(ci=e.screenX-Rr.screenX,di=e.screenY-Rr.screenY):di=ci=0,Rr=e),ci)},movementY:function(e){return"movementY"in e?e.movementY:di}}),du=$e(Il),vp=Z({},Il,{dataTransfer:0}),xp=$e(vp),wp=Z({},xs,{relatedTarget:0}),fi=$e(wp),Sp=Z({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),jp=$e(Sp),kp=Z({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Np=$e(kp),Ep=Z({},xr,{data:0}),fu=$e(Ep),Cp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pp={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"},Rp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rp[e])?!!t[e]:!1}function oa(){return Lp}var bp=Z({},xs,{key:function(e){if(e.key){var t=Cp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oa,charCode:function(e){return e.type==="keypress"?Zs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tp=$e(bp),_p=Z({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hu=$e(_p),Op=Z({},xs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oa}),Fp=$e(Op),Dp=Z({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mp=$e(Dp),Ip=Z({},Il,{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}),zp=$e(Ip),$p=[9,13,27,32],aa=kt&&"CompositionEvent"in window,Ar=null;kt&&"documentMode"in document&&(Ar=document.documentMode);var Ap=kt&&"TextEvent"in window&&!Ar,wd=kt&&(!aa||Ar&&8<Ar&&11>=Ar),pu=" ",mu=!1;function Sd(e,t){switch(e){case"keyup":return $p.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mn=!1;function Up(e,t){switch(e){case"compositionend":return jd(t);case"keypress":return t.which!==32?null:(mu=!0,pu);case"textInput":return e=t.data,e===pu&&mu?null:e;default:return null}}function Qp(e,t){if(Mn)return e==="compositionend"||!aa&&Sd(e,t)?(e=xd(),Xs=la=Qt=null,Mn=!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 wd&&t.locale!=="ko"?null:t.data;default:return null}}var Bp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bp[e.type]:t==="textarea"}function kd(e,t,n,r){ed(r),t=gl(t,"onChange"),0<t.length&&(n=new ia("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ur=null,Zr=null;function Hp(e){Fd(e,0)}function zl(e){var t=$n(e);if(Kc(t))return e}function Wp(e,t){if(e==="change")return t}var Nd=!1;if(kt){var hi;if(kt){var pi="oninput"in document;if(!pi){var yu=document.createElement("div");yu.setAttribute("oninput","return;"),pi=typeof yu.oninput=="function"}hi=pi}else hi=!1;Nd=hi&&(!document.documentMode||9<document.documentMode)}function vu(){Ur&&(Ur.detachEvent("onpropertychange",Ed),Zr=Ur=null)}function Ed(e){if(e.propertyName==="value"&&zl(Zr)){var t=[];kd(t,Zr,e,ea(e)),sd(Hp,t)}}function Vp(e,t,n){e==="focusin"?(vu(),Ur=t,Zr=n,Ur.attachEvent("onpropertychange",Ed)):e==="focusout"&&vu()}function Kp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zl(Zr)}function qp(e,t){if(e==="click")return zl(t)}function Gp(e,t){if(e==="input"||e==="change")return zl(t)}function Yp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nt=typeof Object.is=="function"?Object.is:Yp;function es(e,t){if(nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Fi.call(t,s)||!nt(e[s],t[s]))return!1}return!0}function xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wu(e,t){var n=xu(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=xu(n)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pd(){for(var e=window,t=ul();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ul(e.document)}return t}function ua(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 Jp(e){var t=Pd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cd(n.ownerDocument.documentElement,n)){if(r!==null&&ua(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,l=Math.min(r.start,s);r=r.end===void 0?l:Math.min(r.end,s),!e.extend&&l>r&&(s=r,r=l,l=s),s=wu(n,l);var i=wu(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 Xp=kt&&"documentMode"in document&&11>=document.documentMode,In=null,Zi=null,Qr=null,eo=!1;function Su(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eo||In==null||In!==ul(r)||(r=In,"selectionStart"in r&&ua(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qr&&es(Qr,r)||(Qr=r,r=gl(Zi,"onSelect"),0<r.length&&(t=new ia("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=In)))}function zs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zn={animationend:zs("Animation","AnimationEnd"),animationiteration:zs("Animation","AnimationIteration"),animationstart:zs("Animation","AnimationStart"),transitionend:zs("Transition","TransitionEnd")},mi={},Rd={};kt&&(Rd=document.createElement("div").style,"AnimationEvent"in window||(delete zn.animationend.animation,delete zn.animationiteration.animation,delete zn.animationstart.animation),"TransitionEvent"in window||delete zn.transitionend.transition);function $l(e){if(mi[e])return mi[e];if(!zn[e])return e;var t=zn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rd)return mi[e]=t[n];return e}var Ld=$l("animationend"),bd=$l("animationiteration"),Td=$l("animationstart"),_d=$l("transitionend"),Od=new Map,ju="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 tn(e,t){Od.set(e,t),Tn(t,[e])}for(var gi=0;gi<ju.length;gi++){var yi=ju[gi],Zp=yi.toLowerCase(),em=yi[0].toUpperCase()+yi.slice(1);tn(Zp,"on"+em)}tn(Ld,"onAnimationEnd");tn(bd,"onAnimationIteration");tn(Td,"onAnimationStart");tn("dblclick","onDoubleClick");tn("focusin","onFocus");tn("focusout","onBlur");tn(_d,"onTransitionEnd");dr("onMouseEnter",["mouseout","mouseover"]);dr("onMouseLeave",["mouseout","mouseover"]);dr("onPointerEnter",["pointerout","pointerover"]);dr("onPointerLeave",["pointerout","pointerover"]);Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),tm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function ku(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zh(r,t,void 0,e),e.currentTarget=null}function Fd(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 i=r.length-1;0<=i;i--){var a=r[i],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==l&&s.isPropagationStopped())break e;ku(s,a,c),l=u}else for(i=0;i<r.length;i++){if(a=r[i],u=a.instance,c=a.currentTarget,a=a.listener,u!==l&&s.isPropagationStopped())break e;ku(s,a,c),l=u}}}if(dl)throw e=Gi,dl=!1,Gi=null,e}function K(e,t){var n=t[lo];n===void 0&&(n=t[lo]=new Set);var r=e+"__bubble";n.has(r)||(Dd(t,e,2,!1),n.add(r))}function vi(e,t,n){var r=0;t&&(r|=4),Dd(n,e,r,t)}var $s="_reactListening"+Math.random().toString(36).slice(2);function ts(e){if(!e[$s]){e[$s]=!0,Qc.forEach(function(n){n!=="selectionchange"&&(tm.has(n)||vi(n,!1,e),vi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$s]||(t[$s]=!0,vi("selectionchange",!1,t))}}function Dd(e,t,n,r){switch(vd(t)){case 1:var s=mp;break;case 4:s=gp;break;default:s=sa}n=s.bind(null,t,n,e),s=void 0,!qi||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 xi(e,t,n,r,s){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;i=i.return}for(;a!==null;){if(i=fn(a),i===null)return;if(u=i.tag,u===5||u===6){r=l=i;continue e}a=a.parentNode}}r=r.return}sd(function(){var c=l,f=ea(n),m=[];e:{var g=Od.get(e);if(g!==void 0){var v=ia,x=e;switch(e){case"keypress":if(Zs(n)===0)break e;case"keydown":case"keyup":v=Tp;break;case"focusin":x="focus",v=fi;break;case"focusout":x="blur",v=fi;break;case"beforeblur":case"afterblur":v=fi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=xp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Fp;break;case Ld:case bd:case Td:v=jp;break;case _d:v=Mp;break;case"scroll":v=yp;break;case"wheel":v=zp;break;case"copy":case"cut":case"paste":v=Np;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=hu}var j=(t&4)!==0,N=!j&&e==="scroll",h=j?g!==null?g+"Capture":null:g;j=[];for(var d=c,p;d!==null;){p=d;var w=p.stateNode;if(p.tag===5&&w!==null&&(p=w,h!==null&&(w=Gr(d,h),w!=null&&j.push(ns(d,w,p)))),N)break;d=d.return}0<j.length&&(g=new v(g,x,null,n,f),m.push({event:g,listeners:j}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",g&&n!==Vi&&(x=n.relatedTarget||n.fromElement)&&(fn(x)||x[Nt]))break e;if((v||g)&&(g=f.window===f?f:(g=f.ownerDocument)?g.defaultView||g.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=c,x=x?fn(x):null,x!==null&&(N=_n(x),x!==N||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=c),v!==x)){if(j=du,w="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(j=hu,w="onPointerLeave",h="onPointerEnter",d="pointer"),N=v==null?g:$n(v),p=x==null?g:$n(x),g=new j(w,d+"leave",v,n,f),g.target=N,g.relatedTarget=p,w=null,fn(f)===c&&(j=new j(h,d+"enter",x,n,f),j.target=p,j.relatedTarget=N,w=j),N=w,v&&x)t:{for(j=v,h=x,d=0,p=j;p;p=On(p))d++;for(p=0,w=h;w;w=On(w))p++;for(;0<d-p;)j=On(j),d--;for(;0<p-d;)h=On(h),p--;for(;d--;){if(j===h||h!==null&&j===h.alternate)break t;j=On(j),h=On(h)}j=null}else j=null;v!==null&&Nu(m,g,v,j,!1),x!==null&&N!==null&&Nu(m,N,x,j,!0)}}e:{if(g=c?$n(c):window,v=g.nodeName&&g.nodeName.toLowerCase(),v==="select"||v==="input"&&g.type==="file")var k=Wp;else if(gu(g))if(Nd)k=Gp;else{k=Kp;var C=Vp}else(v=g.nodeName)&&v.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(k=qp);if(k&&(k=k(e,c))){kd(m,k,n,f);break e}C&&C(e,g,c),e==="focusout"&&(C=g._wrapperState)&&C.controlled&&g.type==="number"&&Ui(g,"number",g.value)}switch(C=c?$n(c):window,e){case"focusin":(gu(C)||C.contentEditable==="true")&&(In=C,Zi=c,Qr=null);break;case"focusout":Qr=Zi=In=null;break;case"mousedown":eo=!0;break;case"contextmenu":case"mouseup":case"dragend":eo=!1,Su(m,n,f);break;case"selectionchange":if(Xp)break;case"keydown":case"keyup":Su(m,n,f)}var R;if(aa)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 Mn?Sd(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(wd&&n.locale!=="ko"&&(Mn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Mn&&(R=xd()):(Qt=f,la="value"in Qt?Qt.value:Qt.textContent,Mn=!0)),C=gl(c,P),0<C.length&&(P=new fu(P,e,null,n,f),m.push({event:P,listeners:C}),R?P.data=R:(R=jd(n),R!==null&&(P.data=R)))),(R=Ap?Up(e,n):Qp(e,n))&&(c=gl(c,"onBeforeInput"),0<c.length&&(f=new fu("onBeforeInput","beforeinput",null,n,f),m.push({event:f,listeners:c}),f.data=R))}Fd(m,t)})}function ns(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=Gr(e,n),l!=null&&r.unshift(ns(e,l,s)),l=Gr(e,t),l!=null&&r.push(ns(e,l,s))),e=e.return}return r}function On(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nu(e,t,n,r,s){for(var l=t._reactName,i=[];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=Gr(n,l),u!=null&&i.unshift(ns(n,u,a))):s||(u=Gr(n,l),u!=null&&i.push(ns(n,u,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var nm=/\r\n?/g,rm=/\u0000|\uFFFD/g;function Eu(e){return(typeof e=="string"?e:""+e).replace(nm,`
|
|
38
|
+
`).replace(rm,"")}function As(e,t,n){if(t=Eu(t),Eu(e)!==t&&n)throw Error(E(425))}function yl(){}var to=null,no=null;function ro(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 so=typeof setTimeout=="function"?setTimeout:void 0,sm=typeof clearTimeout=="function"?clearTimeout:void 0,Cu=typeof Promise=="function"?Promise:void 0,lm=typeof queueMicrotask=="function"?queueMicrotask:typeof Cu<"u"?function(e){return Cu.resolve(null).then(e).catch(im)}:so;function im(e){setTimeout(function(){throw e})}function wi(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),Xr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Xr(t)}function Kt(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 Pu(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 wr=Math.random().toString(36).slice(2),ut="__reactFiber$"+wr,rs="__reactProps$"+wr,Nt="__reactContainer$"+wr,lo="__reactEvents$"+wr,om="__reactListeners$"+wr,am="__reactHandles$"+wr;function fn(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pu(e);e!==null;){if(n=e[ut])return n;e=Pu(e)}return t}e=n,n=e.parentNode}return null}function ws(e){return e=e[ut]||e[Nt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $n(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Al(e){return e[rs]||null}var io=[],An=-1;function nn(e){return{current:e}}function q(e){0>An||(e.current=io[An],io[An]=null,An--)}function W(e,t){An++,io[An]=e.current,e.current=t}var en={},ve=nn(en),be=nn(!1),En=en;function fr(e,t){var n=e.type.contextTypes;if(!n)return en;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 Te(e){return e=e.childContextTypes,e!=null}function vl(){q(be),q(ve)}function Ru(e,t,n){if(ve.current!==en)throw Error(E(168));W(ve,t),W(be,n)}function Md(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,Vh(e)||"Unknown",s));return Z({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||en,En=ve.current,W(ve,e),W(be,be.current),!0}function Lu(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Md(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,q(be),q(ve),W(ve,e)):q(be),W(be,n)}var gt=null,Ul=!1,Si=!1;function Id(e){gt===null?gt=[e]:gt.push(e)}function um(e){Ul=!0,Id(e)}function rn(){if(!Si&>!==null){Si=!0;var e=0,t=B;try{var n=gt;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Ul=!1}catch(s){throw gt!==null&&(gt=gt.slice(e+1)),ad(ta,rn),s}finally{B=t,Si=!1}}return null}var Un=[],Qn=0,wl=null,Sl=0,Qe=[],Be=0,Cn=null,xt=1,wt="";function un(e,t){Un[Qn++]=Sl,Un[Qn++]=wl,wl=e,Sl=t}function zd(e,t,n){Qe[Be++]=xt,Qe[Be++]=wt,Qe[Be++]=Cn,Cn=e;var r=xt;e=wt;var s=32-et(r)-1;r&=~(1<<s),n+=1;var l=32-et(t)+s;if(30<l){var i=s-s%5;l=(r&(1<<i)-1).toString(32),r>>=i,s-=i,xt=1<<32-et(t)+s|n<<s|r,wt=l+e}else xt=1<<l|n<<s|r,wt=e}function ca(e){e.return!==null&&(un(e,1),zd(e,1,0))}function da(e){for(;e===wl;)wl=Un[--Qn],Un[Qn]=null,Sl=Un[--Qn],Un[Qn]=null;for(;e===Cn;)Cn=Qe[--Be],Qe[Be]=null,wt=Qe[--Be],Qe[Be]=null,xt=Qe[--Be],Qe[Be]=null}var Me=null,De=null,G=!1,Ze=null;function $d(e,t){var n=He(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 bu(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,Me=e,De=Kt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Me=e,De=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cn!==null?{id:xt,overflow:wt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=He(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Me=e,De=null,!0):!1;default:return!1}}function oo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ao(e){if(G){var t=De;if(t){var n=t;if(!bu(e,t)){if(oo(e))throw Error(E(418));t=Kt(n.nextSibling);var r=Me;t&&bu(e,t)?$d(r,n):(e.flags=e.flags&-4097|2,G=!1,Me=e)}}else{if(oo(e))throw Error(E(418));e.flags=e.flags&-4097|2,G=!1,Me=e}}}function Tu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Me=e}function Us(e){if(e!==Me)return!1;if(!G)return Tu(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ro(e.type,e.memoizedProps)),t&&(t=De)){if(oo(e))throw Ad(),Error(E(418));for(;t;)$d(e,t),t=Kt(t.nextSibling)}if(Tu(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){De=Kt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}De=null}}else De=Me?Kt(e.stateNode.nextSibling):null;return!0}function Ad(){for(var e=De;e;)e=Kt(e.nextSibling)}function hr(){De=Me=null,G=!1}function fa(e){Ze===null?Ze=[e]:Ze.push(e)}var cm=Rt.ReactCurrentBatchConfig;function Lr(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(i){var a=s.refs;i===null?delete a[l]:a[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Qs(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _u(e){var t=e._init;return t(e._payload)}function Ud(e){function t(h,d){if(e){var p=h.deletions;p===null?(h.deletions=[d],h.flags|=16):p.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function s(h,d){return h=Jt(h,d),h.index=0,h.sibling=null,h}function l(h,d,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<d?(h.flags|=2,d):p):(h.flags|=2,d)):(h.flags|=1048576,d)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,d,p,w){return d===null||d.tag!==6?(d=Ri(p,h.mode,w),d.return=h,d):(d=s(d,p),d.return=h,d)}function u(h,d,p,w){var k=p.type;return k===Dn?f(h,d,p.props.children,w,p.key):d!==null&&(d.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Tt&&_u(k)===d.type)?(w=s(d,p.props),w.ref=Lr(h,d,p),w.return=h,w):(w=il(p.type,p.key,p.props,null,h.mode,w),w.ref=Lr(h,d,p),w.return=h,w)}function c(h,d,p,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==p.containerInfo||d.stateNode.implementation!==p.implementation?(d=Li(p,h.mode,w),d.return=h,d):(d=s(d,p.children||[]),d.return=h,d)}function f(h,d,p,w,k){return d===null||d.tag!==7?(d=Nn(p,h.mode,w,k),d.return=h,d):(d=s(d,p),d.return=h,d)}function m(h,d,p){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Ri(""+d,h.mode,p),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Ts:return p=il(d.type,d.key,d.props,null,h.mode,p),p.ref=Lr(h,null,d),p.return=h,p;case Fn:return d=Li(d,h.mode,p),d.return=h,d;case Tt:var w=d._init;return m(h,w(d._payload),p)}if(Fr(d)||Nr(d))return d=Nn(d,h.mode,p,null),d.return=h,d;Qs(h,d)}return null}function g(h,d,p,w){var k=d!==null?d.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return k!==null?null:a(h,d,""+p,w);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ts:return p.key===k?u(h,d,p,w):null;case Fn:return p.key===k?c(h,d,p,w):null;case Tt:return k=p._init,g(h,d,k(p._payload),w)}if(Fr(p)||Nr(p))return k!==null?null:f(h,d,p,w,null);Qs(h,p)}return null}function v(h,d,p,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(p)||null,a(d,h,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ts:return h=h.get(w.key===null?p:w.key)||null,u(d,h,w,k);case Fn:return h=h.get(w.key===null?p:w.key)||null,c(d,h,w,k);case Tt:var C=w._init;return v(h,d,p,C(w._payload),k)}if(Fr(w)||Nr(w))return h=h.get(p)||null,f(d,h,w,k,null);Qs(d,w)}return null}function x(h,d,p,w){for(var k=null,C=null,R=d,P=d=0,O=null;R!==null&&P<p.length;P++){R.index>P?(O=R,R=null):O=R.sibling;var T=g(h,R,p[P],w);if(T===null){R===null&&(R=O);break}e&&R&&T.alternate===null&&t(h,R),d=l(T,d,P),C===null?k=T:C.sibling=T,C=T,R=O}if(P===p.length)return n(h,R),G&&un(h,P),k;if(R===null){for(;P<p.length;P++)R=m(h,p[P],w),R!==null&&(d=l(R,d,P),C===null?k=R:C.sibling=R,C=R);return G&&un(h,P),k}for(R=r(h,R);P<p.length;P++)O=v(R,h,P,p[P],w),O!==null&&(e&&O.alternate!==null&&R.delete(O.key===null?P:O.key),d=l(O,d,P),C===null?k=O:C.sibling=O,C=O);return e&&R.forEach(function(V){return t(h,V)}),G&&un(h,P),k}function j(h,d,p,w){var k=Nr(p);if(typeof k!="function")throw Error(E(150));if(p=k.call(p),p==null)throw Error(E(151));for(var C=k=null,R=d,P=d=0,O=null,T=p.next();R!==null&&!T.done;P++,T=p.next()){R.index>P?(O=R,R=null):O=R.sibling;var V=g(h,R,T.value,w);if(V===null){R===null&&(R=O);break}e&&R&&V.alternate===null&&t(h,R),d=l(V,d,P),C===null?k=V:C.sibling=V,C=V,R=O}if(T.done)return n(h,R),G&&un(h,P),k;if(R===null){for(;!T.done;P++,T=p.next())T=m(h,T.value,w),T!==null&&(d=l(T,d,P),C===null?k=T:C.sibling=T,C=T);return G&&un(h,P),k}for(R=r(h,R);!T.done;P++,T=p.next())T=v(R,h,P,T.value,w),T!==null&&(e&&T.alternate!==null&&R.delete(T.key===null?P:T.key),d=l(T,d,P),C===null?k=T:C.sibling=T,C=T);return e&&R.forEach(function(xe){return t(h,xe)}),G&&un(h,P),k}function N(h,d,p,w){if(typeof p=="object"&&p!==null&&p.type===Dn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ts:e:{for(var k=p.key,C=d;C!==null;){if(C.key===k){if(k=p.type,k===Dn){if(C.tag===7){n(h,C.sibling),d=s(C,p.props.children),d.return=h,h=d;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Tt&&_u(k)===C.type){n(h,C.sibling),d=s(C,p.props),d.ref=Lr(h,C,p),d.return=h,h=d;break e}n(h,C);break}else t(h,C);C=C.sibling}p.type===Dn?(d=Nn(p.props.children,h.mode,w,p.key),d.return=h,h=d):(w=il(p.type,p.key,p.props,null,h.mode,w),w.ref=Lr(h,d,p),w.return=h,h=w)}return i(h);case Fn:e:{for(C=p.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){n(h,d.sibling),d=s(d,p.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=Li(p,h.mode,w),d.return=h,h=d}return i(h);case Tt:return C=p._init,N(h,d,C(p._payload),w)}if(Fr(p))return x(h,d,p,w);if(Nr(p))return j(h,d,p,w);Qs(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(n(h,d.sibling),d=s(d,p),d.return=h,h=d):(n(h,d),d=Ri(p,h.mode,w),d.return=h,h=d),i(h)):n(h,d)}return N}var pr=Ud(!0),Qd=Ud(!1),jl=nn(null),kl=null,Bn=null,ha=null;function pa(){ha=Bn=kl=null}function ma(e){var t=jl.current;q(jl),e._currentValue=t}function uo(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 Yn(e,t){kl=e,ha=Bn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function Ve(e){var t=e._currentValue;if(ha!==e)if(e={context:e,memoizedValue:t,next:null},Bn===null){if(kl===null)throw Error(E(308));Bn=e,kl.dependencies={lanes:0,firstContext:e}}else Bn=Bn.next=e;return t}var hn=null;function ga(e){hn===null?hn=[e]:hn.push(e)}function Bd(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,ga(t)):(n.next=s.next,s.next=n),t.interleaved=n,Et(e,r)}function Et(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _t=!1;function ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hd(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 St(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Et(e,n)}return s=r.interleaved,s===null?(t.next=t,ga(r)):(t.next=s.next,s.next=t),r.interleaved=t,Et(e,n)}function el(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,na(e,n)}}function Ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?s=l=i:l=l.next=i,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 Nl(e,t,n,r){var s=e.updateQueue;_t=!1;var l=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,c=u.next;u.next=null,i===null?l=c:i.next=c,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==i&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=u))}if(l!==null){var m=s.baseState;i=0,f=c=u=null,a=l;do{var g=a.lane,v=a.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,j=a;switch(g=t,v=n,j.tag){case 1:if(x=j.payload,typeof x=="function"){m=x.call(v,m,g);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=j.payload,g=typeof x=="function"?x.call(v,m,g):x,g==null)break e;m=Z({},m,g);break e;case 2:_t=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[a]:g.push(a))}else v={eventTime:v,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=v,u=m):f=f.next=v,i|=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=m),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=f,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);Rn|=i,e.lanes=i,e.memoizedState=m}}function Fu(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 Ss={},dt=nn(Ss),ss=nn(Ss),ls=nn(Ss);function pn(e){if(e===Ss)throw Error(E(174));return e}function va(e,t){switch(W(ls,t),W(ss,e),W(dt,Ss),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bi(t,e)}q(dt),W(dt,t)}function mr(){q(dt),q(ss),q(ls)}function Wd(e){pn(ls.current);var t=pn(dt.current),n=Bi(t,e.type);t!==n&&(W(ss,e),W(dt,n))}function xa(e){ss.current===e&&(q(dt),q(ss))}var Y=nn(0);function El(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)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 ji=[];function wa(){for(var e=0;e<ji.length;e++)ji[e]._workInProgressVersionPrimary=null;ji.length=0}var tl=Rt.ReactCurrentDispatcher,ki=Rt.ReactCurrentBatchConfig,Pn=0,J=null,le=null,ue=null,Cl=!1,Br=!1,is=0,dm=0;function me(){throw Error(E(321))}function Sa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nt(e[n],t[n]))return!1;return!0}function ja(e,t,n,r,s,l){if(Pn=l,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tl.current=e===null||e.memoizedState===null?mm:gm,e=n(r,s),Br){l=0;do{if(Br=!1,is=0,25<=l)throw Error(E(301));l+=1,ue=le=null,t.updateQueue=null,tl.current=ym,e=n(r,s)}while(Br)}if(tl.current=Pl,t=le!==null&&le.next!==null,Pn=0,ue=le=J=null,Cl=!1,t)throw Error(E(300));return e}function ka(){var e=is!==0;return is=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?J.memoizedState=ue=e:ue=ue.next=e,ue}function Ke(){if(le===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=le.next;var t=ue===null?J.memoizedState:ue.next;if(t!==null)ue=t,le=e;else{if(e===null)throw Error(E(310));le=e,e={memoizedState:le.memoizedState,baseState:le.baseState,baseQueue:le.baseQueue,queue:le.queue,next:null},ue===null?J.memoizedState=ue=e:ue=ue.next=e}return ue}function os(e,t){return typeof t=="function"?t(e):t}function Ni(e){var t=Ke(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=le,s=r.baseQueue,l=n.pending;if(l!==null){if(s!==null){var i=s.next;s.next=l.next,l.next=i}r.baseQueue=s=l,n.pending=null}if(s!==null){l=s.next,r=r.baseState;var a=i=null,u=null,c=l;do{var f=c.lane;if((Pn&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 m={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=m,i=r):u=u.next=m,J.lanes|=f,Rn|=f}c=c.next}while(c!==null&&c!==l);u===null?i=r:u.next=a,nt(r,t.memoizedState)||(Le=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do l=s.lane,J.lanes|=l,Rn|=l,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ei(e){var t=Ke(),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 i=s=s.next;do l=e(l,i.action),i=i.next;while(i!==s);nt(l,t.memoizedState)||(Le=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Vd(){}function Kd(e,t){var n=J,r=Ke(),s=t(),l=!nt(r.memoizedState,s);if(l&&(r.memoizedState=s,Le=!0),r=r.queue,Na(Yd.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,as(9,Gd.bind(null,n,r,s,t),void 0,null),ce===null)throw Error(E(349));Pn&30||qd(n,t,s)}return s}function qd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Gd(e,t,n,r){t.value=n,t.getSnapshot=r,Jd(t)&&Xd(e)}function Yd(e,t,n){return n(function(){Jd(t)&&Xd(e)})}function Jd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nt(e,n)}catch{return!0}}function Xd(e){var t=Et(e,1);t!==null&&tt(t,e,1,-1)}function Du(e){var t=lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:e},t.queue=e,e=e.dispatch=pm.bind(null,J,e),[t.memoizedState,e]}function as(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.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 Zd(){return Ke().memoizedState}function nl(e,t,n,r){var s=lt();J.flags|=e,s.memoizedState=as(1|t,n,void 0,r===void 0?null:r)}function Ql(e,t,n,r){var s=Ke();r=r===void 0?null:r;var l=void 0;if(le!==null){var i=le.memoizedState;if(l=i.destroy,r!==null&&Sa(r,i.deps)){s.memoizedState=as(t,n,l,r);return}}J.flags|=e,s.memoizedState=as(1|t,n,l,r)}function Mu(e,t){return nl(8390656,8,e,t)}function Na(e,t){return Ql(2048,8,e,t)}function ef(e,t){return Ql(4,2,e,t)}function tf(e,t){return Ql(4,4,e,t)}function nf(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 rf(e,t,n){return n=n!=null?n.concat([e]):null,Ql(4,4,nf.bind(null,t,e),n)}function Ea(){}function sf(e,t){var n=Ke();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function lf(e,t){var n=Ke();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function of(e,t,n){return Pn&21?(nt(n,t)||(n=dd(),J.lanes|=n,Rn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Le=!0),e.memoizedState=n)}function fm(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=ki.transition;ki.transition={};try{e(!1),t()}finally{B=n,ki.transition=r}}function af(){return Ke().memoizedState}function hm(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uf(e))cf(t,n);else if(n=Bd(e,t,n,r),n!==null){var s=ke();tt(n,e,r,s),df(n,t,r)}}function pm(e,t,n){var r=Yt(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uf(e))cf(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,a=l(i,n);if(s.hasEagerState=!0,s.eagerState=a,nt(a,i)){var u=t.interleaved;u===null?(s.next=s,ga(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Bd(e,t,s,r),n!==null&&(s=ke(),tt(n,e,r,s),df(n,t,r))}}function uf(e){var t=e.alternate;return e===J||t!==null&&t===J}function cf(e,t){Br=Cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function df(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,na(e,n)}}var Pl={readContext:Ve,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},mm={readContext:Ve,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Mu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,nf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();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=hm.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Du,useDebugValue:Ea,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Du(!1),t=e[0];return e=fm.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,s=lt();if(G){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ce===null)throw Error(E(349));Pn&30||qd(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,Mu(Yd.bind(null,r,l,e),[e]),r.flags|=2048,as(9,Gd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=lt(),t=ce.identifierPrefix;if(G){var n=wt,r=xt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=is++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gm={readContext:Ve,useCallback:sf,useContext:Ve,useEffect:Na,useImperativeHandle:rf,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:lf,useReducer:Ni,useRef:Zd,useState:function(){return Ni(os)},useDebugValue:Ea,useDeferredValue:function(e){var t=Ke();return of(t,le.memoizedState,e)},useTransition:function(){var e=Ni(os)[0],t=Ke().memoizedState;return[e,t]},useMutableSource:Vd,useSyncExternalStore:Kd,useId:af,unstable_isNewReconciler:!1},ym={readContext:Ve,useCallback:sf,useContext:Ve,useEffect:Na,useImperativeHandle:rf,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:lf,useReducer:Ei,useRef:Zd,useState:function(){return Ei(os)},useDebugValue:Ea,useDeferredValue:function(e){var t=Ke();return le===null?t.memoizedState=e:of(t,le.memoizedState,e)},useTransition:function(){var e=Ei(os)[0],t=Ke().memoizedState;return[e,t]},useMutableSource:Vd,useSyncExternalStore:Kd,useId:af,unstable_isNewReconciler:!1};function Ge(e,t){if(e&&e.defaultProps){t=Z({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function co(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bl={isMounted:function(e){return(e=e._reactInternals)?_n(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ke(),s=Yt(e),l=St(r,s);l.payload=t,n!=null&&(l.callback=n),t=qt(e,l,s),t!==null&&(tt(t,e,s,r),el(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ke(),s=Yt(e),l=St(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=qt(e,l,s),t!==null&&(tt(t,e,s,r),el(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ke(),r=Yt(e),s=St(n,r);s.tag=2,t!=null&&(s.callback=t),t=qt(e,s,r),t!==null&&(tt(t,e,r,n),el(t,e,r))}};function Iu(e,t,n,r,s,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!es(n,r)||!es(s,l):!0}function ff(e,t,n){var r=!1,s=en,l=t.contextType;return typeof l=="object"&&l!==null?l=Ve(l):(s=Te(t)?En:ve.current,r=t.contextTypes,l=(r=r!=null)?fr(e,s):en),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function zu(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&&Bl.enqueueReplaceState(t,t.state,null)}function fo(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},ya(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=Ve(l):(l=Te(t)?En:ve.current,s.context=fr(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(co(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&&Bl.enqueueReplaceState(s,s.state,null),Nl(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function gr(e,t){try{var n="",r=t;do n+=Wh(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 Ci(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ho(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vm=typeof WeakMap=="function"?WeakMap:Map;function hf(e,t,n){n=St(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ll||(Ll=!0,ko=r),ho(e,t)},n}function pf(e,t,n){n=St(-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(){ho(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ho(e,t),typeof r!="function"&&(Gt===null?Gt=new Set([this]):Gt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function $u(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new vm;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=_m.bind(null,e,t,n),t.then(e,e))}function Au(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Uu(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=St(-1,1),t.tag=2,qt(n,t,1))),n.lanes|=1),e)}var xm=Rt.ReactCurrentOwner,Le=!1;function je(e,t,n,r){t.child=e===null?Qd(t,null,n,r):pr(t,e.child,n,r)}function Qu(e,t,n,r,s){n=n.render;var l=t.ref;return Yn(t,s),r=ja(e,t,n,r,l,s),n=ka(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ct(e,t,s)):(G&&n&&ca(t),t.flags|=1,je(e,t,r,s),t.child)}function Bu(e,t,n,r,s){if(e===null){var l=n.type;return typeof l=="function"&&!Oa(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,mf(e,t,l,r,s)):(e=il(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)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:es,n(i,r)&&e.ref===t.ref)return Ct(e,t,s)}return t.flags|=1,e=Jt(l,r),e.ref=t.ref,e.return=t,t.child=e}function mf(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(es(l,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=l,(e.lanes&s)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,Ct(e,t,s)}return po(e,t,n,r,s)}function gf(e,t,n){var r=t.pendingProps,s=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(Wn,Fe),Fe|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(Wn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,W(Wn,Fe),Fe|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,W(Wn,Fe),Fe|=r;return je(e,t,s,n),t.child}function yf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function po(e,t,n,r,s){var l=Te(n)?En:ve.current;return l=fr(t,l),Yn(t,s),n=ja(e,t,n,r,l,s),r=ka(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ct(e,t,s)):(G&&r&&ca(t),t.flags|=1,je(e,t,n,s),t.child)}function Hu(e,t,n,r,s){if(Te(n)){var l=!0;xl(t)}else l=!1;if(Yn(t,s),t.stateNode===null)rl(e,t),ff(t,n,r),fo(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var u=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ve(c):(c=Te(n)?En:ve.current,c=fr(t,c));var f=n.getDerivedStateFromProps,m=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||u!==c)&&zu(t,i,r,c),_t=!1;var g=t.memoizedState;i.state=g,Nl(t,r,i,s),u=t.memoizedState,a!==r||g!==u||be.current||_t?(typeof f=="function"&&(co(t,n,f,r),u=t.memoizedState),(a=_t||Iu(t,n,a,r,g,u,c))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Hd(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Ge(t.type,a),i.props=c,m=t.pendingProps,g=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ve(u):(u=Te(n)?En:ve.current,u=fr(t,u));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==m||g!==u)&&zu(t,i,r,u),_t=!1,g=t.memoizedState,i.state=g,Nl(t,r,i,s);var x=t.memoizedState;a!==m||g!==x||be.current||_t?(typeof v=="function"&&(co(t,n,v,r),x=t.memoizedState),(c=_t||Iu(t,n,c,r,g,x,u)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,x,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,x,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),i.props=r,i.state=x,i.context=u,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return mo(e,t,n,r,l,s)}function mo(e,t,n,r,s,l){yf(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&Lu(t,n,!1),Ct(e,t,l);r=t.stateNode,xm.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=pr(t,e.child,null,l),t.child=pr(t,null,a,l)):je(e,t,a,l),t.memoizedState=r.state,s&&Lu(t,n,!0),t.child}function vf(e){var t=e.stateNode;t.pendingContext?Ru(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ru(e,t.context,!1),va(e,t.containerInfo)}function Wu(e,t,n,r,s){return hr(),fa(s),t.flags|=256,je(e,t,n,r),t.child}var go={dehydrated:null,treeContext:null,retryLane:0};function yo(e){return{baseLanes:e,cachePool:null,transitions:null}}function xf(e,t,n){var r=t.pendingProps,s=Y.current,l=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),W(Y,s&1),e===null)return ao(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=Vl(i,r,0,null),e=Nn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=yo(n),t.memoizedState=go,e):Ca(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return wm(e,t,i,r,a,s,n);if(l){l=r.fallback,i=t.mode,s=e.child,a=s.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Jt(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?l=Jt(a,l):(l=Nn(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?yo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=go,r}return l=e.child,e=l.sibling,r=Jt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(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 Ca(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bs(e,t,n,r){return r!==null&&fa(r),pr(t,e.child,null,n),e=Ca(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wm(e,t,n,r,s,l,i){if(n)return t.flags&256?(t.flags&=-257,r=Ci(Error(E(422))),Bs(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=Vl({mode:"visible",children:r.children},s,0,null),l=Nn(l,s,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&pr(t,e.child,null,i),t.child.memoizedState=yo(i),t.memoizedState=go,l);if(!(t.mode&1))return Bs(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(E(419)),r=Ci(l,r,void 0),Bs(e,t,i,r)}if(a=(i&e.childLanes)!==0,Le||a){if(r=ce,r!==null){switch(i&-i){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|i)?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,Et(e,s),tt(r,e,s,-1))}return _a(),r=Ci(Error(E(421))),Bs(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Om.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,De=Kt(s.nextSibling),Me=t,G=!0,Ze=null,e!==null&&(Qe[Be++]=xt,Qe[Be++]=wt,Qe[Be++]=Cn,xt=e.id,wt=e.overflow,Cn=t),t=Ca(t,r.children),t.flags|=4096,t)}function Vu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),uo(e.return,t,n)}function Pi(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 wf(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(je(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vu(e,n,t);else if(e.tag===19)Vu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(W(Y,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&El(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Pi(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&&El(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Pi(t,!0,n,null,l);break;case"together":Pi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ct(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sm(e,t,n){switch(t.tag){case 3:vf(t),hr();break;case 5:Wd(t);break;case 1:Te(t.type)&&xl(t);break;case 4:va(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;W(jl,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?xf(e,t,n):(W(Y,Y.current&1),e=Ct(e,t,n),e!==null?e.sibling:null);W(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return wf(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),W(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,gf(e,t,n)}return Ct(e,t,n)}var Sf,vo,jf,kf;Sf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};vo=function(){};jf=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,pn(dt.current);var l=null;switch(n){case"input":s=$i(e,s),r=$i(e,r),l=[];break;case"select":s=Z({},s,{value:void 0}),r=Z({},r,{value:void 0}),l=[];break;case"textarea":s=Qi(e,s),r=Qi(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=yl)}Hi(n,r);var i;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Kr.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(i in a)!a.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&a[i]!==u[i]&&(n||(n={}),n[i]=u[i])}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"&&(Kr.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)}};kf=function(e,t,n,r){n!==r&&(t.flags|=4)};function br(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 ge(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 jm(e,t,n){var r=t.pendingProps;switch(da(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ge(t),null;case 1:return Te(t.type)&&vl(),ge(t),null;case 3:return r=t.stateNode,mr(),q(be),q(ve),wa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Us(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ze!==null&&(Co(Ze),Ze=null))),vo(e,t),ge(t),null;case 5:xa(t);var s=pn(ls.current);if(n=t.type,e!==null&&t.stateNode!=null)jf(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 ge(t),null}if(e=pn(dt.current),Us(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ut]=t,r[rs]=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<Mr.length;s++)K(Mr[s],r);break;case"source":K("error",r);break;case"img":case"image":case"link":K("error",r),K("load",r);break;case"details":K("toggle",r);break;case"input":tu(r,l),K("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},K("invalid",r);break;case"textarea":ru(r,l),K("invalid",r)}Hi(n,l),s=null;for(var i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&As(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&As(r.textContent,a,e),s=["children",""+a]):Kr.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&K("scroll",r)}switch(n){case"input":_s(r),nu(r,l,!0);break;case"textarea":_s(r),su(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=yl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Yc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ut]=t,e[rs]=r,Sf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Wi(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<Mr.length;s++)K(Mr[s],e);s=r;break;case"source":K("error",e),s=r;break;case"img":case"image":case"link":K("error",e),K("load",e),s=r;break;case"details":K("toggle",e),s=r;break;case"input":tu(e,r),s=$i(e,r),K("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Z({},r,{value:void 0}),K("invalid",e);break;case"textarea":ru(e,r),s=Qi(e,r),K("invalid",e);break;default:s=r}Hi(n,s),a=s;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?Zc(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Jc(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&qr(e,u):typeof u=="number"&&qr(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Kr.hasOwnProperty(l)?u!=null&&l==="onScroll"&&K("scroll",e):u!=null&&Yo(e,l,u,i))}switch(n){case"input":_s(e),nu(e,r,!1);break;case"textarea":_s(e),su(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Zt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Vn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Vn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=yl)}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 ge(t),null;case 6:if(e&&t.stateNode!=null)kf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=pn(ls.current),pn(dt.current),Us(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(l=r.nodeValue!==n)&&(e=Me,e!==null))switch(e.tag){case 3:As(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&As(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return ge(t),null;case 13:if(q(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&De!==null&&t.mode&1&&!(t.flags&128))Ad(),hr(),t.flags|=98560,l=!1;else if(l=Us(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[ut]=t}else hr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ge(t),l=!1}else Ze!==null&&(Co(Ze),Ze=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?ie===0&&(ie=3):_a())),t.updateQueue!==null&&(t.flags|=4),ge(t),null);case 4:return mr(),vo(e,t),e===null&&ts(t.stateNode.containerInfo),ge(t),null;case 10:return ma(t.type._context),ge(t),null;case 17:return Te(t.type)&&vl(),ge(t),null;case 19:if(q(Y),l=t.memoizedState,l===null)return ge(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)br(l,!1);else{if(ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=El(e),i!==null){for(t.flags|=128,br(l,!1),r=i.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,i=l.alternate,i===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=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return W(Y,Y.current&1|2),t.child}e=e.sibling}l.tail!==null&&re()>yr&&(t.flags|=128,r=!0,br(l,!1),t.lanes=4194304)}else{if(!r)if(e=El(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),br(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!G)return ge(t),null}else 2*re()-l.renderingStartTime>yr&&n!==1073741824&&(t.flags|=128,r=!0,br(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=re(),t.sibling=null,n=Y.current,W(Y,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Ta(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function km(e,t){switch(da(t),t.tag){case 1:return Te(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),q(be),q(ve),wa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xa(t),null;case 13:if(q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Y),null;case 4:return mr(),null;case 10:return ma(t.type._context),null;case 22:case 23:return Ta(),null;case 24:return null;default:return null}}var Hs=!1,ye=!1,Nm=typeof WeakSet=="function"?WeakSet:Set,b=null;function Hn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function xo(e,t,n){try{n()}catch(r){te(e,t,r)}}var Ku=!1;function Em(e,t){if(to=pl,e=Pd(),ua(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 i=0,a=-1,u=-1,c=0,f=0,m=e,g=null;t:for(;;){for(var v;m!==n||s!==0&&m.nodeType!==3||(a=i+s),m!==l||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(v=m.firstChild)!==null;)g=m,m=v;for(;;){if(m===e)break t;if(g===n&&++c===s&&(a=i),g===l&&++f===r&&(u=i),(v=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=v}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(no={focusedElem:e,selectionRange:n},pl=!1,b=t;b!==null;)if(t=b,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,b=e;else for(;b!==null;){t=b;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var j=x.memoizedProps,N=x.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?j:Ge(t.type,j),N);h.__reactInternalSnapshotBeforeUpdate=d}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(w){te(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,b=e;break}b=t.return}return x=Ku,Ku=!1,x}function Hr(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&&xo(t,n,l)}s=s.next}while(s!==r)}}function Hl(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 wo(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 Nf(e){var t=e.alternate;t!==null&&(e.alternate=null,Nf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[rs],delete t[lo],delete t[om],delete t[am])),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 Ef(e){return e.tag===5||e.tag===3||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ef(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function So(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yl));else if(r!==4&&(e=e.child,e!==null))for(So(e,t,n),e=e.sibling;e!==null;)So(e,t,n),e=e.sibling}function jo(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(jo(e,t,n),e=e.sibling;e!==null;)jo(e,t,n),e=e.sibling}var de=null,Xe=!1;function Lt(e,t,n){for(n=n.child;n!==null;)Cf(e,t,n),n=n.sibling}function Cf(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ml,n)}catch{}switch(n.tag){case 5:ye||Hn(n,t);case 6:var r=de,s=Xe;de=null,Lt(e,t,n),de=r,Xe=s,de!==null&&(Xe?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(Xe?(e=de,n=n.stateNode,e.nodeType===8?wi(e.parentNode,n):e.nodeType===1&&wi(e,n),Xr(e)):wi(de,n.stateNode));break;case 4:r=de,s=Xe,de=n.stateNode.containerInfo,Xe=!0,Lt(e,t,n),de=r,Xe=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,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&xo(n,t,i),s=s.next}while(s!==r)}Lt(e,t,n);break;case 1:if(!ye&&(Hn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){te(n,t,a)}Lt(e,t,n);break;case 21:Lt(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,Lt(e,t,n),ye=r):Lt(e,t,n);break;default:Lt(e,t,n)}}function Gu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nm),t.forEach(function(r){var s=Fm.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function qe(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,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:de=a.stateNode,Xe=!1;break e;case 3:de=a.stateNode.containerInfo,Xe=!0;break e;case 4:de=a.stateNode.containerInfo,Xe=!0;break e}a=a.return}if(de===null)throw Error(E(160));Cf(l,i,s),de=null,Xe=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){te(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pf(t,e),t=t.sibling}function Pf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qe(t,e),st(e),r&4){try{Hr(3,e,e.return),Hl(3,e)}catch(j){te(e,e.return,j)}try{Hr(5,e,e.return)}catch(j){te(e,e.return,j)}}break;case 1:qe(t,e),st(e),r&512&&n!==null&&Hn(n,n.return);break;case 5:if(qe(t,e),st(e),r&512&&n!==null&&Hn(n,n.return),e.flags&32){var s=e.stateNode;try{qr(s,"")}catch(j){te(e,e.return,j)}}if(r&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,i=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&&qc(s,l),Wi(a,i);var c=Wi(a,l);for(i=0;i<u.length;i+=2){var f=u[i],m=u[i+1];f==="style"?Zc(s,m):f==="dangerouslySetInnerHTML"?Jc(s,m):f==="children"?qr(s,m):Yo(s,f,m,c)}switch(a){case"input":Ai(s,l);break;case"textarea":Gc(s,l);break;case"select":var g=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?Vn(s,!!l.multiple,v,!1):g!==!!l.multiple&&(l.defaultValue!=null?Vn(s,!!l.multiple,l.defaultValue,!0):Vn(s,!!l.multiple,l.multiple?[]:"",!1))}s[rs]=l}catch(j){te(e,e.return,j)}}break;case 6:if(qe(t,e),st(e),r&4){if(e.stateNode===null)throw Error(E(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(j){te(e,e.return,j)}}break;case 3:if(qe(t,e),st(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xr(t.containerInfo)}catch(j){te(e,e.return,j)}break;case 4:qe(t,e),st(e);break;case 13:qe(t,e),st(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(La=re())),r&4&&Gu(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(c=ye)||f,qe(t,e),ye=c):qe(t,e),st(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(b=e,f=e.child;f!==null;){for(m=b=f;b!==null;){switch(g=b,v=g.child,g.tag){case 0:case 11:case 14:case 15:Hr(4,g,g.return);break;case 1:Hn(g,g.return);var x=g.stateNode;if(typeof x.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(j){te(r,n,j)}}break;case 5:Hn(g,g.return);break;case 22:if(g.memoizedState!==null){Ju(m);continue}}v!==null?(v.return=g,b=v):Ju(m)}f=f.sibling}e:for(f=null,m=e;;){if(m.tag===5){if(f===null){f=m;try{s=m.stateNode,c?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=m.stateNode,u=m.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Xc("display",i))}catch(j){te(e,e.return,j)}}}else if(m.tag===6){if(f===null)try{m.stateNode.nodeValue=c?"":m.memoizedProps}catch(j){te(e,e.return,j)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;f===m&&(f=null),m=m.return}f===m&&(f=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:qe(t,e),st(e),r&4&&Gu(e);break;case 21:break;default:qe(t,e),st(e)}}function st(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ef(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&&(qr(s,""),r.flags&=-33);var l=qu(e);jo(e,l,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=qu(e);So(e,a,i);break;default:throw Error(E(161))}}catch(u){te(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cm(e,t,n){b=e,Rf(e)}function Rf(e,t,n){for(var r=(e.mode&1)!==0;b!==null;){var s=b,l=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Hs;if(!i){var a=s.alternate,u=a!==null&&a.memoizedState!==null||ye;a=Hs;var c=ye;if(Hs=i,(ye=u)&&!c)for(b=s;b!==null;)i=b,u=i.child,i.tag===22&&i.memoizedState!==null?Xu(s):u!==null?(u.return=i,b=u):Xu(s);for(;l!==null;)b=l,Rf(l),l=l.sibling;b=s,Hs=a,ye=c}Yu(e)}else s.subtreeFlags&8772&&l!==null?(l.return=s,b=l):Yu(e)}}function Yu(e){for(;b!==null;){var t=b;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||Hl(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:Ge(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Fu(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fu(t,i,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 m=f.dehydrated;m!==null&&Xr(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}ye||t.flags&512&&wo(t)}catch(g){te(t,t.return,g)}}if(t===e){b=null;break}if(n=t.sibling,n!==null){n.return=t.return,b=n;break}b=t.return}}function Ju(e){for(;b!==null;){var t=b;if(t===e){b=null;break}var n=t.sibling;if(n!==null){n.return=t.return,b=n;break}b=t.return}}function Xu(e){for(;b!==null;){var t=b;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hl(4,t)}catch(u){te(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){te(t,s,u)}}var l=t.return;try{wo(t)}catch(u){te(t,l,u)}break;case 5:var i=t.return;try{wo(t)}catch(u){te(t,i,u)}}}catch(u){te(t,t.return,u)}if(t===e){b=null;break}var a=t.sibling;if(a!==null){a.return=t.return,b=a;break}b=t.return}}var Pm=Math.ceil,Rl=Rt.ReactCurrentDispatcher,Pa=Rt.ReactCurrentOwner,We=Rt.ReactCurrentBatchConfig,U=0,ce=null,se=null,he=0,Fe=0,Wn=nn(0),ie=0,us=null,Rn=0,Wl=0,Ra=0,Wr=null,Re=null,La=0,yr=1/0,mt=null,Ll=!1,ko=null,Gt=null,Ws=!1,Bt=null,bl=0,Vr=0,No=null,sl=-1,ll=0;function ke(){return U&6?re():sl!==-1?sl:sl=re()}function Yt(e){return e.mode&1?U&2&&he!==0?he&-he:cm.transition!==null?(ll===0&&(ll=dd()),ll):(e=B,e!==0||(e=window.event,e=e===void 0?16:vd(e.type)),e):1}function tt(e,t,n,r){if(50<Vr)throw Vr=0,No=null,Error(E(185));vs(e,n,r),(!(U&2)||e!==ce)&&(e===ce&&(!(U&2)&&(Wl|=n),ie===4&&Ft(e,he)),_e(e,r),n===1&&U===0&&!(t.mode&1)&&(yr=re()+500,Ul&&rn()))}function _e(e,t){var n=e.callbackNode;cp(e,t);var r=hl(e,e===ce?he:0);if(r===0)n!==null&&ou(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ou(n),t===1)e.tag===0?um(Zu.bind(null,e)):Id(Zu.bind(null,e)),lm(function(){!(U&6)&&rn()}),n=null;else{switch(fd(r)){case 1:n=ta;break;case 4:n=ud;break;case 16:n=fl;break;case 536870912:n=cd;break;default:n=fl}n=Mf(n,Lf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Lf(e,t){if(sl=-1,ll=0,U&6)throw Error(E(327));var n=e.callbackNode;if(Jn()&&e.callbackNode!==n)return null;var r=hl(e,e===ce?he:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Tl(e,r);else{t=r;var s=U;U|=2;var l=Tf();(ce!==e||he!==t)&&(mt=null,yr=re()+500,kn(e,t));do try{bm();break}catch(a){bf(e,a)}while(!0);pa(),Rl.current=l,U=s,se!==null?t=0:(ce=null,he=0,t=ie)}if(t!==0){if(t===2&&(s=Yi(e),s!==0&&(r=s,t=Eo(e,s))),t===1)throw n=us,kn(e,0),Ft(e,r),_e(e,re()),n;if(t===6)Ft(e,r);else{if(s=e.current.alternate,!(r&30)&&!Rm(s)&&(t=Tl(e,r),t===2&&(l=Yi(e),l!==0&&(r=l,t=Eo(e,l))),t===1))throw n=us,kn(e,0),Ft(e,r),_e(e,re()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:cn(e,Re,mt);break;case 3:if(Ft(e,r),(r&130023424)===r&&(t=La+500-re(),10<t)){if(hl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ke(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=so(cn.bind(null,e,Re,mt),t);break}cn(e,Re,mt);break;case 4:if(Ft(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-et(r);l=1<<i,i=t[i],i>s&&(s=i),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*Pm(r/1960))-r,10<r){e.timeoutHandle=so(cn.bind(null,e,Re,mt),r);break}cn(e,Re,mt);break;case 5:cn(e,Re,mt);break;default:throw Error(E(329))}}}return _e(e,re()),e.callbackNode===n?Lf.bind(null,e):null}function Eo(e,t){var n=Wr;return e.current.memoizedState.isDehydrated&&(kn(e,t).flags|=256),e=Tl(e,t),e!==2&&(t=Re,Re=n,t!==null&&Co(t)),e}function Co(e){Re===null?Re=e:Re.push.apply(Re,e)}function Rm(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(!nt(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 Ft(e,t){for(t&=~Ra,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-et(t),r=1<<n;e[n]=-1,t&=~r}}function Zu(e){if(U&6)throw Error(E(327));Jn();var t=hl(e,0);if(!(t&1))return _e(e,re()),null;var n=Tl(e,t);if(e.tag!==0&&n===2){var r=Yi(e);r!==0&&(t=r,n=Eo(e,r))}if(n===1)throw n=us,kn(e,0),Ft(e,t),_e(e,re()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cn(e,Re,mt),_e(e,re()),null}function ba(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(yr=re()+500,Ul&&rn())}}function Ln(e){Bt!==null&&Bt.tag===0&&!(U&6)&&Jn();var t=U;U|=1;var n=We.transition,r=B;try{if(We.transition=null,B=1,e)return e()}finally{B=r,We.transition=n,U=t,!(U&6)&&rn()}}function Ta(){Fe=Wn.current,q(Wn)}function kn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sm(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(da(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vl();break;case 3:mr(),q(be),q(ve),wa();break;case 5:xa(r);break;case 4:mr();break;case 13:q(Y);break;case 19:q(Y);break;case 10:ma(r.type._context);break;case 22:case 23:Ta()}n=n.return}if(ce=e,se=e=Jt(e.current,null),he=Fe=t,ie=0,us=null,Ra=Wl=Rn=0,Re=Wr=null,hn!==null){for(t=0;t<hn.length;t++)if(n=hn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=s,r.next=i}n.pending=r}hn=null}return e}function bf(e,t){do{var n=se;try{if(pa(),tl.current=Pl,Cl){for(var r=J.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Cl=!1}if(Pn=0,ue=le=J=null,Br=!1,is=0,Pa.current=null,n===null||n.return===null){ie=1,us=t,se=null;break}e:{var l=e,i=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,m=f.tag;if(!(f.mode&1)&&(m===0||m===11||m===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 v=Au(i);if(v!==null){v.flags&=-257,Uu(v,i,a,l,t),v.mode&1&&$u(l,c,t),t=v,u=c;var x=t.updateQueue;if(x===null){var j=new Set;j.add(u),t.updateQueue=j}else x.add(u);break e}else{if(!(t&1)){$u(l,c,t),_a();break e}u=Error(E(426))}}else if(G&&a.mode&1){var N=Au(i);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Uu(N,i,a,l,t),fa(gr(u,a));break e}}l=u=gr(u,a),ie!==4&&(ie=2),Wr===null?Wr=[l]:Wr.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=hf(l,u,t);Ou(l,h);break e;case 1:a=u;var d=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof d.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Gt===null||!Gt.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var w=pf(l,a,t);Ou(l,w);break e}}l=l.return}while(l!==null)}Of(n)}catch(k){t=k,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function Tf(){var e=Rl.current;return Rl.current=Pl,e===null?Pl:e}function _a(){(ie===0||ie===3||ie===2)&&(ie=4),ce===null||!(Rn&268435455)&&!(Wl&268435455)||Ft(ce,he)}function Tl(e,t){var n=U;U|=2;var r=Tf();(ce!==e||he!==t)&&(mt=null,kn(e,t));do try{Lm();break}catch(s){bf(e,s)}while(!0);if(pa(),U=n,Rl.current=r,se!==null)throw Error(E(261));return ce=null,he=0,ie}function Lm(){for(;se!==null;)_f(se)}function bm(){for(;se!==null&&!tp();)_f(se)}function _f(e){var t=Df(e.alternate,e,Fe);e.memoizedProps=e.pendingProps,t===null?Of(e):se=t,Pa.current=null}function Of(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=km(n,t),n!==null){n.flags&=32767,se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ie=6,se=null;return}}else if(n=jm(n,t,Fe),n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);ie===0&&(ie=5)}function cn(e,t,n){var r=B,s=We.transition;try{We.transition=null,B=1,Tm(e,t,n,r)}finally{We.transition=s,B=r}return null}function Tm(e,t,n,r){do Jn();while(Bt!==null);if(U&6)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(dp(e,l),e===ce&&(se=ce=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ws||(Ws=!0,Mf(fl,function(){return Jn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=We.transition,We.transition=null;var i=B;B=1;var a=U;U|=4,Pa.current=null,Em(e,n),Pf(n,e),Jp(no),pl=!!to,no=to=null,e.current=n,Cm(n),np(),U=a,B=i,We.transition=l}else e.current=n;if(Ws&&(Ws=!1,Bt=e,bl=s),l=e.pendingLanes,l===0&&(Gt=null),lp(n.stateNode),_e(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(Ll)throw Ll=!1,e=ko,ko=null,e;return bl&1&&e.tag!==0&&Jn(),l=e.pendingLanes,l&1?e===No?Vr++:(Vr=0,No=e):Vr=0,rn(),null}function Jn(){if(Bt!==null){var e=fd(bl),t=We.transition,n=B;try{if(We.transition=null,B=16>e?16:e,Bt===null)var r=!1;else{if(e=Bt,Bt=null,bl=0,U&6)throw Error(E(331));var s=U;for(U|=4,b=e.current;b!==null;){var l=b,i=l.child;if(b.flags&16){var a=l.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(b=c;b!==null;){var f=b;switch(f.tag){case 0:case 11:case 15:Hr(8,f,l)}var m=f.child;if(m!==null)m.return=f,b=m;else for(;b!==null;){f=b;var g=f.sibling,v=f.return;if(Nf(f),f===c){b=null;break}if(g!==null){g.return=v,b=g;break}b=v}}}var x=l.alternate;if(x!==null){var j=x.child;if(j!==null){x.child=null;do{var N=j.sibling;j.sibling=null,j=N}while(j!==null)}}b=l}}if(l.subtreeFlags&2064&&i!==null)i.return=l,b=i;else e:for(;b!==null;){if(l=b,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Hr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,b=h;break e}b=l.return}}var d=e.current;for(b=d;b!==null;){i=b;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,b=p;else e:for(i=d;b!==null;){if(a=b,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Hl(9,a)}}catch(k){te(a,a.return,k)}if(a===i){b=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,b=w;break e}b=a.return}}if(U=s,rn(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ml,e)}catch{}r=!0}return r}finally{B=n,We.transition=t}}return!1}function ec(e,t,n){t=gr(n,t),t=hf(e,t,1),e=qt(e,t,1),t=ke(),e!==null&&(vs(e,1,t),_e(e,t))}function te(e,t,n){if(e.tag===3)ec(e,e,n);else for(;t!==null;){if(t.tag===3){ec(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gt===null||!Gt.has(r))){e=gr(n,e),e=pf(t,e,1),t=qt(t,e,1),e=ke(),t!==null&&(vs(t,1,e),_e(t,e));break}}t=t.return}}function _m(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ke(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(he&n)===n&&(ie===4||ie===3&&(he&130023424)===he&&500>re()-La?kn(e,0):Ra|=n),_e(e,t)}function Ff(e,t){t===0&&(e.mode&1?(t=Ds,Ds<<=1,!(Ds&130023424)&&(Ds=4194304)):t=1);var n=ke();e=Et(e,t),e!==null&&(vs(e,t,n),_e(e,n))}function Om(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ff(e,n)}function Fm(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),Ff(e,n)}var Df;Df=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Sm(e,t,n);Le=!!(e.flags&131072)}else Le=!1,G&&t.flags&1048576&&zd(t,Sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rl(e,t),e=t.pendingProps;var s=fr(t,ve.current);Yn(t,n),s=ja(null,t,r,e,s,n);var l=ka();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,Te(r)?(l=!0,xl(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ya(t),s.updater=Bl,t.stateNode=s,s._reactInternals=t,fo(t,r,e,n),t=mo(null,t,r,!0,l,n)):(t.tag=0,G&&l&&ca(t),je(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rl(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Mm(r),e=Ge(r,e),s){case 0:t=po(null,t,r,e,n);break e;case 1:t=Hu(null,t,r,e,n);break e;case 11:t=Qu(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,Ge(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:Ge(r,s),po(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ge(r,s),Hu(e,t,r,s,n);case 3:e:{if(vf(t),e===null)throw Error(E(387));r=t.pendingProps,l=t.memoizedState,s=l.element,Hd(e,t),Nl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=gr(Error(E(423)),t),t=Wu(e,t,r,n,s);break e}else if(r!==s){s=gr(Error(E(424)),t),t=Wu(e,t,r,n,s);break e}else for(De=Kt(t.stateNode.containerInfo.firstChild),Me=t,G=!0,Ze=null,n=Qd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hr(),r===s){t=Ct(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return Wd(t),e===null&&ao(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,i=s.children,ro(r,s)?i=null:l!==null&&ro(r,l)&&(t.flags|=32),yf(e,t),je(e,t,i,n),t.child;case 6:return e===null&&ao(t),null;case 13:return xf(e,t,n);case 4:return va(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pr(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ge(r,s),Qu(e,t,r,s,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,l=t.memoizedProps,i=s.value,W(jl,r._currentValue),r._currentValue=i,l!==null)if(nt(l.value,i)){if(l.children===s.children&&!be.current){t=Ct(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=St(-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),uo(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(E(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),uo(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}je(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Yn(t,n),s=Ve(s),r=r(s),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,s=Ge(r,t.pendingProps),s=Ge(r.type,s),Bu(e,t,r,s,n);case 15:return mf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ge(r,s),rl(e,t),t.tag=1,Te(r)?(e=!0,xl(t)):e=!1,Yn(t,n),ff(t,r,s),fo(t,r,s,n),mo(null,t,r,!0,e,n);case 19:return wf(e,t,n);case 22:return gf(e,t,n)}throw Error(E(156,t.tag))};function Mf(e,t){return ad(e,t)}function Dm(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 He(e,t,n,r){return new Dm(e,t,n,r)}function Oa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mm(e){if(typeof e=="function")return Oa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xo)return 11;if(e===Zo)return 14}return 2}function Jt(e,t){var n=e.alternate;return n===null?(n=He(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 il(e,t,n,r,s,l){var i=2;if(r=e,typeof e=="function")Oa(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Dn:return Nn(n.children,s,l,t);case Jo:i=8,s|=8;break;case Di:return e=He(12,n,t,s|2),e.elementType=Di,e.lanes=l,e;case Mi:return e=He(13,n,t,s),e.elementType=Mi,e.lanes=l,e;case Ii:return e=He(19,n,t,s),e.elementType=Ii,e.lanes=l,e;case Wc:return Vl(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bc:i=10;break e;case Hc:i=9;break e;case Xo:i=11;break e;case Zo:i=14;break e;case Tt:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=He(i,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function Nn(e,t,n,r){return e=He(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=He(22,e,r,t),e.elementType=Wc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ri(e,t,n){return e=He(6,e,null,t),e.lanes=n,e}function Li(e,t,n){return t=He(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Im(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=ui(0),this.expirationTimes=ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Fa(e,t,n,r,s,l,i,a,u){return e=new Im(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=He(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ya(l),e}function zm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function If(e){if(!e)return en;e=e._reactInternals;e:{if(_n(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(Te(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(Te(n))return Md(e,n,t)}return t}function zf(e,t,n,r,s,l,i,a,u){return e=Fa(n,r,!0,e,s,l,i,a,u),e.context=If(null),n=e.current,r=ke(),s=Yt(n),l=St(r,s),l.callback=t??null,qt(n,l,s),e.current.lanes=s,vs(e,s,r),_e(e,r),e}function Kl(e,t,n,r){var s=t.current,l=ke(),i=Yt(s);return n=If(n),t.context===null?t.context=n:t.pendingContext=n,t=St(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=qt(s,t,i),e!==null&&(tt(e,s,i,l),el(e,s,i)),i}function _l(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function tc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Da(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function $m(){return null}var $f=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ma(e){this._internalRoot=e}ql.prototype.render=Ma.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));Kl(e,t,null,null)};ql.prototype.unmount=Ma.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ln(function(){Kl(null,e,null,null)}),t[Nt]=null}};function ql(e){this._internalRoot=e}ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=md();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&t!==0&&t<Ot[n].priority;n++);Ot.splice(n,0,e),n===0&&yd(e)}};function Ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function nc(){}function Am(e,t,n,r,s){if(s){if(typeof r=="function"){var l=r;r=function(){var c=_l(i);l.call(c)}}var i=zf(t,r,e,0,null,!1,!1,"",nc);return e._reactRootContainer=i,e[Nt]=i.current,ts(e.nodeType===8?e.parentNode:e),Ln(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=_l(u);a.call(c)}}var u=Fa(e,0,!1,null,null,!1,!1,"",nc);return e._reactRootContainer=u,e[Nt]=u.current,ts(e.nodeType===8?e.parentNode:e),Ln(function(){Kl(t,u,n,r)}),u}function Yl(e,t,n,r,s){var l=n._reactRootContainer;if(l){var i=l;if(typeof s=="function"){var a=s;s=function(){var u=_l(i);a.call(u)}}Kl(t,i,e,s)}else i=Am(n,t,e,s,r);return _l(i)}hd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dr(t.pendingLanes);n!==0&&(na(t,n|1),_e(t,re()),!(U&6)&&(yr=re()+500,rn()))}break;case 13:Ln(function(){var r=Et(e,1);if(r!==null){var s=ke();tt(r,e,1,s)}}),Da(e,1)}};ra=function(e){if(e.tag===13){var t=Et(e,134217728);if(t!==null){var n=ke();tt(t,e,134217728,n)}Da(e,134217728)}};pd=function(e){if(e.tag===13){var t=Yt(e),n=Et(e,t);if(n!==null){var r=ke();tt(n,e,t,r)}Da(e,t)}};md=function(){return B};gd=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};Ki=function(e,t,n){switch(t){case"input":if(Ai(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=Al(r);if(!s)throw Error(E(90));Kc(r),Ai(r,s)}}}break;case"textarea":Gc(e,n);break;case"select":t=n.value,t!=null&&Vn(e,!!n.multiple,t,!1)}};nd=ba;rd=Ln;var Um={usingClientEntryPoint:!1,Events:[ws,$n,Al,ed,td,ba]},Tr={findFiberByHostInstance:fn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qm={bundleType:Tr.bundleType,version:Tr.version,rendererPackageName:Tr.rendererPackageName,rendererConfig:Tr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=id(e),e===null?null:e.stateNode},findFiberByHostInstance:Tr.findFiberByHostInstance||$m,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 Vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vs.isDisabled&&Vs.supportsFiber)try{Ml=Vs.inject(Qm),ct=Vs}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Um;ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ia(t))throw Error(E(200));return zm(e,t,null,n)};ze.createRoot=function(e,t){if(!Ia(e))throw Error(E(299));var n=!1,r="",s=$f;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Fa(e,1,!1,null,null,n,!1,r,s),e[Nt]=t.current,ts(e.nodeType===8?e.parentNode:e),new Ma(t)};ze.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=id(t),e=e===null?null:e.stateNode,e};ze.flushSync=function(e){return Ln(e)};ze.hydrate=function(e,t,n){if(!Gl(t))throw Error(E(200));return Yl(null,e,t,!0,n)};ze.hydrateRoot=function(e,t,n){if(!Ia(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",i=$f;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=zf(t,null,e,1,n??null,s,!1,l,i),e[Nt]=t.current,ts(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 ql(t)};ze.render=function(e,t,n){if(!Gl(t))throw Error(E(200));return Yl(null,e,t,!1,n)};ze.unmountComponentAtNode=function(e){if(!Gl(e))throw Error(E(40));return e._reactRootContainer?(Ln(function(){Yl(null,null,e,!1,function(){e._reactRootContainer=null,e[Nt]=null})}),!0):!1};ze.unstable_batchedUpdates=ba;ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gl(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return Yl(e,t,n,!1,r)};ze.version="18.3.1-next-f1338f8080-20240426";function Af(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Af)}catch(e){console.error(e)}}Af(),$c.exports=ze;var Bm=$c.exports,rc=Bm;Oi.createRoot=rc.createRoot,Oi.hydrateRoot=rc.hydrateRoot;/**
|
|
41
|
+
* react-router v7.8.2
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var sc="popstate";function Hm(e={}){function t(r,s){let{pathname:l,search:i,hash:a}=r.location;return Po("",{pathname:l,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:cs(s)}return Vm(t,n,null,e)}function X(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Wm(){return Math.random().toString(36).substring(2,10)}function lc(e,t){return{usr:e.state,key:e.key,idx:t}}function Po(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Sr(t):t,state:n,key:t&&t.key||r||Wm()}}function cs({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 Sr(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 Vm(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,i=s.history,a="POP",u=null,c=f();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function f(){return(i.state||{idx:null}).idx}function m(){a="POP";let N=f(),h=N==null?null:N-c;c=N,u&&u({action:a,location:j.location,delta:h})}function g(N,h){a="PUSH";let d=Po(j.location,N,h);c=f()+1;let p=lc(d,c),w=j.createHref(d);try{i.pushState(p,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(w)}l&&u&&u({action:a,location:j.location,delta:1})}function v(N,h){a="REPLACE";let d=Po(j.location,N,h);c=f();let p=lc(d,c),w=j.createHref(d);i.replaceState(p,"",w),l&&u&&u({action:a,location:j.location,delta:0})}function x(N){return Km(N)}let j={get action(){return a},get location(){return e(s,i)},listen(N){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(sc,m),u=N,()=>{s.removeEventListener(sc,m),u=null}},createHref(N){return t(s,N)},createURL:x,encodeLocation(N){let h=x(N);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:g,replace:v,go(N){return i.go(N)}};return j}function Km(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),X(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:cs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Uf(e,t,n="/"){return qm(e,t,n,!1)}function qm(e,t,n,r){let s=typeof t=="string"?Sr(t):t,l=Pt(s.pathname||"/",n);if(l==null)return null;let i=Qf(e);Gm(i);let a=null;for(let u=0;a==null&&u<i.length;++u){let c=ig(l);a=sg(i[u],c,r)}return a}function Qf(e,t=[],n=[],r="",s=!1){let l=(i,a,u=s,c)=>{let f={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&u)return;X(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 m=jt([r,f.relativePath]),g=n.concat(f);i.children&&i.children.length>0&&(X(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Qf(i.children,t,g,m,u)),!(i.path==null&&!i.index)&&t.push({path:m,score:ng(m,i.index),routesMeta:g})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,a);else for(let c of Bf(i.path))l(i,a,!0,c)}),t}function Bf(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 i=Bf(r.join("/")),a=[];return a.push(...i.map(u=>u===""?l:[l,u].join("/"))),s&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Gm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Ym=/^:[\w-]+$/,Jm=3,Xm=2,Zm=1,eg=10,tg=-2,ic=e=>e==="*";function ng(e,t){let n=e.split("/"),r=n.length;return n.some(ic)&&(r+=tg),t&&(r+=Xm),n.filter(s=>!ic(s)).reduce((s,l)=>s+(Ym.test(l)?Jm:l===""?Zm:eg),r)}function rg(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 sg(e,t,n=!1){let{routesMeta:r}=e,s={},l="/",i=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",m=Ol({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},f),g=u.route;if(!m&&c&&n&&!r[r.length-1].route.index&&(m=Ol({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!m)return null;Object.assign(s,m.params),i.push({params:s,pathname:jt([l,m.pathname]),pathnameBase:cg(jt([l,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(l=jt([l,m.pathnameBase]))}return i}function Ol(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=lg(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let l=s[0],i=l.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,{paramName:f,isOptional:m},g)=>{if(f==="*"){let x=a[g]||"";i=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const v=a[g];return m&&!v?c[f]=void 0:c[f]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:i,pattern:e}}function lg(e,t=!1,n=!0){rt(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,(i,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 ig(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rt(!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 Pt(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 og(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Sr(e):e;return{pathname:n?n.startsWith("/")?n:ag(n,t):t,search:dg(r),hash:fg(s)}}function ag(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 bi(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 ug(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hf(e){let t=ug(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Wf(e,t,n,r=!1){let s;typeof e=="string"?s=Sr(e):(s={...e},X(!s.pathname||!s.pathname.includes("?"),bi("?","pathname","search",s)),X(!s.pathname||!s.pathname.includes("#"),bi("#","pathname","hash",s)),X(!s.search||!s.search.includes("#"),bi("#","search","hash",s)));let l=e===""||s.pathname==="",i=l?"/":s.pathname,a;if(i==null)a=n;else{let m=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),m-=1;s.pathname=g.join("/")}a=m>=0?t[m]:"/"}let u=og(s,a),c=i&&i!=="/"&&i.endsWith("/"),f=(l||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}var jt=e=>e.join("/").replace(/\/\/+/g,"/"),cg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function hg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Vf=["POST","PUT","PATCH","DELETE"];new Set(Vf);var pg=["GET",...Vf];new Set(pg);var jr=S.createContext(null);jr.displayName="DataRouter";var Jl=S.createContext(null);Jl.displayName="DataRouterState";S.createContext(!1);var Kf=S.createContext({isTransitioning:!1});Kf.displayName="ViewTransition";var mg=S.createContext(new Map);mg.displayName="Fetchers";var gg=S.createContext(null);gg.displayName="Await";var ft=S.createContext(null);ft.displayName="Navigation";var js=S.createContext(null);js.displayName="Location";var ht=S.createContext({outlet:null,matches:[],isDataRoute:!1});ht.displayName="Route";var za=S.createContext(null);za.displayName="RouteError";function yg(e,{relative:t}={}){X(ks(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(ft),{hash:s,pathname:l,search:i}=Ns(e,{relative:t}),a=l;return n!=="/"&&(a=l==="/"?n:jt([n,l])),r.createHref({pathname:a,search:i,hash:s})}function ks(){return S.useContext(js)!=null}function sn(){return X(ks(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(js).location}var qf="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Gf(e){S.useContext(ft).static||S.useLayoutEffect(e)}function ln(){let{isDataRoute:e}=S.useContext(ht);return e?bg():vg()}function vg(){X(ks(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(jr),{basename:t,navigator:n}=S.useContext(ft),{matches:r}=S.useContext(ht),{pathname:s}=sn(),l=JSON.stringify(Hf(r)),i=S.useRef(!1);return Gf(()=>{i.current=!0}),S.useCallback((u,c={})=>{if(rt(i.current,qf),!i.current)return;if(typeof u=="number"){n.go(u);return}let f=Wf(u,JSON.parse(l),s,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:jt([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,l,s,e])}S.createContext(null);function Xl(){let{matches:e}=S.useContext(ht),t=e[e.length-1];return t?t.params:{}}function Ns(e,{relative:t}={}){let{matches:n}=S.useContext(ht),{pathname:r}=sn(),s=JSON.stringify(Hf(n));return S.useMemo(()=>Wf(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function xg(e,t){return Yf(e,t)}function Yf(e,t,n,r,s){var d;X(ks(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=S.useContext(ft),{matches:i}=S.useContext(ht),a=i[i.length-1],u=a?a.params:{},c=a?a.pathname:"/",f=a?a.pathnameBase:"/",m=a&&a.route;{let p=m&&m.path||"";Jf(c,!m||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=sn(),v;if(t){let p=typeof t=="string"?Sr(t):t;X(f==="/"||((d=p.pathname)==null?void 0:d.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.`),v=p}else v=g;let x=v.pathname||"/",j=x;if(f!=="/"){let p=f.replace(/^\//,"").split("/");j="/"+x.replace(/^\//,"").split("/").slice(p.length).join("/")}let N=Uf(e,{pathname:j});rt(m||N!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),rt(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Ng(N&&N.map(p=>Object.assign({},p,{params:Object.assign({},u,p.params),pathname:jt([f,l.encodeLocation?l.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?f:jt([f,l.encodeLocation?l.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,n,r,s);return t&&h?S.createElement(js.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},h):h}function wg(){let e=Lg(),t=hg(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},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:l},"ErrorBoundary")," or"," ",S.createElement("code",{style:l},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:s},n):null,i)}var Sg=S.createElement(wg,null),jg=class extends S.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?S.createElement(ht.Provider,{value:this.props.routeContext},S.createElement(za.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kg({routeContext:e,match:t,children:n}){let r=S.useContext(jr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ht.Provider,{value:e},n)}function Ng(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,i=n==null?void 0:n.errors;if(i!=null){let c=l.findIndex(f=>f.route.id&&(i==null?void 0:i[f.route.id])!==void 0);X(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).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:m,errors:g}=n,v=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!g||g[f.route.id]===void 0);if(f.route.lazy||v){a=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,f,m)=>{let g,v=!1,x=null,j=null;n&&(g=i&&f.route.id?i[f.route.id]:void 0,x=f.route.errorElement||Sg,a&&(u<0&&m===0?(Jf("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,j=null):u===m&&(v=!0,j=f.route.hydrateFallbackElement||null)));let N=t.concat(l.slice(0,m+1)),h=()=>{let d;return g?d=x:v?d=j:f.route.Component?d=S.createElement(f.route.Component,null):f.route.element?d=f.route.element:d=c,S.createElement(kg,{match:f,routeContext:{outlet:c,matches:N,isDataRoute:n!=null},children:d})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?S.createElement(jg,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:h(),routeContext:{outlet:null,matches:N,isDataRoute:!0},unstable_onError:r}):h()},null)}function $a(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Eg(e){let t=S.useContext(jr);return X(t,$a(e)),t}function Cg(e){let t=S.useContext(Jl);return X(t,$a(e)),t}function Pg(e){let t=S.useContext(ht);return X(t,$a(e)),t}function Aa(e){let t=Pg(e),n=t.matches[t.matches.length-1];return X(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Rg(){return Aa("useRouteId")}function Lg(){var r;let e=S.useContext(za),t=Cg("useRouteError"),n=Aa("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function bg(){let{router:e}=Eg("useNavigate"),t=Aa("useNavigate"),n=S.useRef(!1);return Gf(()=>{n.current=!0}),S.useCallback(async(s,l={})=>{rt(n.current,qf),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var oc={};function Jf(e,t,n){!t&&!oc[e]&&(oc[e]=!0,rt(!1,n))}S.memo(Tg);function Tg({routes:e,future:t,state:n,unstable_onError:r}){return Yf(e,void 0,n,r,t)}function dn(e){X(!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 _g({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:l=!1}){X(!ks(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),a=S.useMemo(()=>({basename:i,navigator:s,static:l,future:{}}),[i,s,l]);typeof n=="string"&&(n=Sr(n));let{pathname:u="/",search:c="",hash:f="",state:m=null,key:g="default"}=n,v=S.useMemo(()=>{let x=Pt(u,i);return x==null?null:{location:{pathname:x,search:c,hash:f,state:m,key:g},navigationType:r}},[i,u,c,f,m,g,r]);return rt(v!=null,`<Router basename="${i}"> 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.`),v==null?null:S.createElement(ft.Provider,{value:a},S.createElement(js.Provider,{children:t,value:v}))}function Og({children:e,location:t}){return xg(Ro(e),t)}function Ro(e,t=[]){let n=[];return S.Children.forEach(e,(r,s)=>{if(!S.isValidElement(r))return;let l=[...t,s];if(r.type===S.Fragment){n.push.apply(n,Ro(r.props.children,l));return}X(r.type===dn,`[${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>`),X(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={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&&(i.children=Ro(r.props.children,l)),n.push(i)}),n}var ol="get",al="application/x-www-form-urlencoded";function Zl(e){return e!=null&&typeof e.tagName=="string"}function Fg(e){return Zl(e)&&e.tagName.toLowerCase()==="button"}function Dg(e){return Zl(e)&&e.tagName.toLowerCase()==="form"}function Mg(e){return Zl(e)&&e.tagName.toLowerCase()==="input"}function Ig(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zg(e,t){return e.button===0&&(!t||t==="_self")&&!Ig(e)}function Lo(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function $g(e,t){let n=Lo(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(l=>{n.append(s,l)})}),n}var Ks=null;function Ag(){if(Ks===null)try{new FormData(document.createElement("form"),0),Ks=!1}catch{Ks=!0}return Ks}var Ug=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ti(e){return e!=null&&!Ug.has(e)?(rt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${al}"`),null):e}function Qg(e,t){let n,r,s,l,i;if(Dg(e)){let a=e.getAttribute("action");r=a?Pt(a,t):null,n=e.getAttribute("method")||ol,s=Ti(e.getAttribute("enctype"))||al,l=new FormData(e)}else if(Fg(e)||Mg(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?Pt(u,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||ol,s=Ti(e.getAttribute("formenctype"))||Ti(a.getAttribute("enctype"))||al,l=new FormData(a,e),!Ag()){let{name:c,type:f,value:m}=e;if(f==="image"){let g=c?`${c}.`:"";l.append(`${g}x`,"0"),l.append(`${g}y`,"0")}else c&&l.append(c,m)}}else{if(Zl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ol,r=null,s=al,i=e}return l&&s==="text/plain"&&(i=l,l=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:l,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ua(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bg(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&&Pt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Hg(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 Wg(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 Vg(e,t,n){let r=await Promise.all(e.map(async s=>{let l=t.routes[s.route.id];if(l){let i=await Hg(l,n);return i.links?i.links():[]}return[]}));return Yg(r.flat(1).filter(Wg).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function ac(e,t,n,r,s,l){let i=(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)=>i(u,c)||a(u,c)):l==="data"?t.filter((u,c)=>{var m;let f=r.routes[u.route.id];if(!f||!f.hasLoader)return!1;if(i(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:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function Kg(e,t,{includeHydrateFallback:n}={}){return qg(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 qg(e){return[...new Set(e)]}function Gg(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Yg(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let l=JSON.stringify(Gg(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function Xf(){let e=S.useContext(jr);return Ua(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Jg(){let e=S.useContext(Jl);return Ua(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Qa=S.createContext(void 0);Qa.displayName="FrameworkContext";function Zf(){let e=S.useContext(Qa);return Ua(e,"You must render this element inside a <HydratedRouter> element"),e}function Xg(e,t){let n=S.useContext(Qa),[r,s]=S.useState(!1),[l,i]=S.useState(!1),{onFocus:a,onBlur:u,onMouseEnter:c,onMouseLeave:f,onTouchStart:m}=t,g=S.useRef(null);S.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let j=h=>{h.forEach(d=>{i(d.isIntersecting)})},N=new IntersectionObserver(j,{threshold:.5});return g.current&&N.observe(g.current),()=>{N.disconnect()}}},[e]),S.useEffect(()=>{if(r){let j=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(j)}}},[r]);let v=()=>{s(!0)},x=()=>{s(!1),i(!1)};return n?e!=="intent"?[l,g,{}]:[l,g,{onFocus:_r(a,v),onBlur:_r(u,x),onMouseEnter:_r(c,v),onMouseLeave:_r(f,x),onTouchStart:_r(m,v)}]:[!1,g,{}]}function _r(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Zg({page:e,...t}){let{router:n}=Xf(),r=S.useMemo(()=>Uf(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(t0,{page:e,matches:r,...t}):null}function e0(e){let{manifest:t,routeModules:n}=Zf(),[r,s]=S.useState([]);return S.useEffect(()=>{let l=!1;return Vg(e,t,n).then(i=>{l||s(i)}),()=>{l=!0}},[e,t,n]),r}function t0({page:e,matches:t,...n}){let r=sn(),{manifest:s,routeModules:l}=Zf(),{basename:i}=Xf(),{loaderData:a,matches:u}=Jg(),c=S.useMemo(()=>ac(e,t,u,s,r,"data"),[e,t,u,s,r]),f=S.useMemo(()=>ac(e,t,u,s,r,"assets"),[e,t,u,s,r]),m=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,j=!1;if(t.forEach(h=>{var p;let d=s.routes[h.route.id];!d||!d.hasLoader||(!c.some(w=>w.route.id===h.route.id)&&h.route.id in a&&((p=l[h.route.id])!=null&&p.shouldRevalidate)||d.hasClientLoader?j=!0:x.add(h.route.id))}),x.size===0)return[];let N=Bg(e,i,"data");return j&&x.size>0&&N.searchParams.set("_routes",t.filter(h=>x.has(h.route.id)).map(h=>h.route.id).join(",")),[N.pathname+N.search]},[i,a,r,s,c,t,e,l]),g=S.useMemo(()=>Kg(f,s),[f,s]),v=e0(f);return S.createElement(S.Fragment,null,m.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),g.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),v.map(({key:x,link:j})=>S.createElement("link",{key:x,nonce:n.nonce,...j})))}function n0(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var eh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eh&&(window.__reactRouterVersion="7.8.2")}catch{}function r0({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=Hm({window:n,v5Compat:!0}));let s=r.current,[l,i]=S.useState({action:s.action,location:s.location}),a=S.useCallback(u=>{S.startTransition(()=>i(u))},[i]);return S.useLayoutEffect(()=>s.listen(a),[s,a]),S.createElement(_g,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s})}var th=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nh=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:i,state:a,target:u,to:c,preventScrollReset:f,viewTransition:m,...g},v){let{basename:x}=S.useContext(ft),j=typeof c=="string"&&th.test(c),N,h=!1;if(typeof c=="string"&&j&&(N=c,eh))try{let O=new URL(window.location.href),T=c.startsWith("//")?new URL(O.protocol+c):new URL(c),V=Pt(T.pathname,x);T.origin===O.origin&&V!=null?c=V+T.search+T.hash:h=!0}catch{rt(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let d=yg(c,{relative:s}),[p,w,k]=Xg(r,g),C=o0(c,{replace:i,state:a,target:u,preventScrollReset:f,relative:s,viewTransition:m});function R(O){t&&t(O),O.defaultPrevented||C(O)}let P=S.createElement("a",{...g,...k,href:N||d,onClick:h||l?t:R,ref:n0(v,w),target:u,"data-discover":!j&&n==="render"?"true":void 0});return p&&!j?S.createElement(S.Fragment,null,P,S.createElement(Zg,{page:d})):P});nh.displayName="Link";var s0=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:i,viewTransition:a,children:u,...c},f){let m=Ns(i,{relative:c.relative}),g=sn(),v=S.useContext(Jl),{navigator:x,basename:j}=S.useContext(ft),N=v!=null&&h0(m)&&a===!0,h=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,d=g.pathname,p=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(d=d.toLowerCase(),p=p?p.toLowerCase():null,h=h.toLowerCase()),p&&j&&(p=Pt(p,j)||p);const w=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let k=d===h||!s&&d.startsWith(h)&&d.charAt(w)==="/",C=p!=null&&(p===h||!s&&p.startsWith(h)&&p.charAt(h.length)==="/"),R={isActive:k,isPending:C,isTransitioning:N},P=k?t:void 0,O;typeof r=="function"?O=r(R):O=[r,k?"active":null,C?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let T=typeof l=="function"?l(R):l;return S.createElement(nh,{...c,"aria-current":P,className:O,ref:f,style:T,to:i,viewTransition:a},typeof u=="function"?u(R):u)});s0.displayName="NavLink";var l0=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:l,method:i=ol,action:a,onSubmit:u,relative:c,preventScrollReset:f,viewTransition:m,...g},v)=>{let x=d0(),j=f0(a,{relative:c}),N=i.toLowerCase()==="get"?"get":"post",h=typeof a=="string"&&th.test(a),d=p=>{if(u&&u(p),p.defaultPrevented)return;p.preventDefault();let w=p.nativeEvent.submitter,k=(w==null?void 0:w.getAttribute("formmethod"))||i;x(w||p.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:s,state:l,relative:c,preventScrollReset:f,viewTransition:m})};return S.createElement("form",{ref:v,method:N,action:j,onSubmit:r?u:d,...g,"data-discover":!h&&e==="render"?"true":void 0})});l0.displayName="Form";function i0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rh(e){let t=S.useContext(jr);return X(t,i0(e)),t}function o0(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:l,viewTransition:i}={}){let a=ln(),u=sn(),c=Ns(e,{relative:l});return S.useCallback(f=>{if(zg(f,t)){f.preventDefault();let m=n!==void 0?n:cs(u)===cs(c);a(e,{replace:m,state:r,preventScrollReset:s,relative:l,viewTransition:i})}},[u,a,c,n,r,t,e,s,l,i])}function a0(e){rt(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=S.useRef(Lo(e)),n=S.useRef(!1),r=sn(),s=S.useMemo(()=>$g(r.search,n.current?null:t.current),[r.search]),l=ln(),i=S.useCallback((a,u)=>{const c=Lo(typeof a=="function"?a(new URLSearchParams(s)):a);n.current=!0,l("?"+c,u)},[l,s]);return[s,i]}var u0=0,c0=()=>`__${String(++u0)}__`;function d0(){let{router:e}=rh("useSubmit"),{basename:t}=S.useContext(ft),n=Rg();return S.useCallback(async(r,s={})=>{let{action:l,method:i,encType:a,formData:u,body:c}=Qg(r,t);if(s.navigate===!1){let f=s.fetcherKey||c0();await e.fetch(f,n,s.action||l,{preventScrollReset:s.preventScrollReset,formData:u,body:c,formMethod:s.method||i,formEncType:s.encType||a,flushSync:s.flushSync})}else await e.navigate(s.action||l,{preventScrollReset:s.preventScrollReset,formData:u,body:c,formMethod:s.method||i,formEncType:s.encType||a,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function f0(e,{relative:t}={}){let{basename:n}=S.useContext(ft),r=S.useContext(ht);X(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...Ns(e||".",{relative:t})},i=sn();if(e==null){l.search=i.search;let a=new URLSearchParams(l.search),u=a.getAll("index");if(u.some(f=>f==="")){a.delete("index"),u.filter(m=>m).forEach(m=>a.append("index",m));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:jt([n,l.pathname])),cs(l)}function h0(e,{relative:t}={}){let n=S.useContext(Kf);X(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rh("useViewTransitionState"),s=Ns(e,{relative:t});if(!n.isTransitioning)return!1;let l=Pt(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Pt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ol(s.pathname,i)!=null||Ol(s.pathname,l)!=null}var Es=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(){}},bn=typeof window>"u"||"Deno"in globalThis;function Pe(){}function p0(e,t){return typeof e=="function"?e(t):e}function bo(e){return typeof e=="number"&&e>=0&&e!==1/0}function sh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xt(e,t){return typeof e=="function"?e(t):e}function Ue(e,t){return typeof e=="function"?e(t):e}function uc(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:l,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Ba(i,t.options))return!1}else if(!fs(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||l&&!l(t))}function cc(e,t){const{exact:n,status:r,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(ds(t.options.mutationKey)!==ds(l))return!1}else if(!fs(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Ba(e,t){return((t==null?void 0:t.queryKeyHashFn)||ds)(e)}function ds(e){return JSON.stringify(e,(t,n)=>_o(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function fs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fs(e[n],t[n])):!1}function lh(e,t){if(e===t)return e;const n=dc(e)&&dc(t);if(n||_o(e)&&_o(t)){const r=n?e:Object.keys(e),s=r.length,l=n?t:Object.keys(t),i=l.length,a=n?[]:{},u=new Set(r);let c=0;for(let f=0;f<i;f++){const m=n?f:l[f];(!n&&u.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(a[m]=void 0,c++):(a[m]=lh(e[m],t[m]),a[m]===e[m]&&e[m]!==void 0&&c++)}return s===i&&c===s?e:a}return t}function To(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function dc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _o(e){if(!fc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!fc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function fc(e){return Object.prototype.toString.call(e)==="[object Object]"}function m0(e){return new Promise(t=>{setTimeout(t,e)})}function Oo(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?lh(e,t):t}function g0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function y0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ha=Symbol();function ih(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ha?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function v0(e,t){return typeof e=="function"?e(...t):!!e}var mn,Dt,Xn,xc,x0=(xc=class extends Es{constructor(){super();M(this,mn);M(this,Dt);M(this,Xn);_(this,Xn,t=>{if(!bn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,Dt)||this.setEventListener(y(this,Xn))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Dt))==null||t.call(this),_(this,Dt,void 0))}setEventListener(t){var n;_(this,Xn,t),(n=y(this,Dt))==null||n.call(this),_(this,Dt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,mn)!==t&&(_(this,mn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,mn)=="boolean"?y(this,mn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},mn=new WeakMap,Dt=new WeakMap,Xn=new WeakMap,xc),Wa=new x0,Zn,Mt,er,wc,w0=(wc=class extends Es{constructor(){super();M(this,Zn,!0);M(this,Mt);M(this,er);_(this,er,t=>{if(!bn&&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,Mt)||this.setEventListener(y(this,er))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Mt))==null||t.call(this),_(this,Mt,void 0))}setEventListener(t){var n;_(this,er,t),(n=y(this,Mt))==null||n.call(this),_(this,Mt,t(this.setOnline.bind(this)))}setOnline(t){y(this,Zn)!==t&&(_(this,Zn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,Zn)}},Zn=new WeakMap,Mt=new WeakMap,er=new WeakMap,wc),Fl=new w0;function Fo(){let e,t;const n=new Promise((s,l)=>{e=s,t=l});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function S0(e){return Math.min(1e3*2**e,3e4)}function oh(e){return(e??"online")==="online"?Fl.isOnline():!0}var ah=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function uh(e){let t=!1,n=0,r;const s=Fo(),l=()=>s.status!=="pending",i=j=>{var N;l()||(g(new ah(j)),(N=e.abort)==null||N.call(e))},a=()=>{t=!0},u=()=>{t=!1},c=()=>Wa.isFocused()&&(e.networkMode==="always"||Fl.isOnline())&&e.canRun(),f=()=>oh(e.networkMode)&&e.canRun(),m=j=>{l()||(r==null||r(),s.resolve(j))},g=j=>{l()||(r==null||r(),s.reject(j))},v=()=>new Promise(j=>{var N;r=h=>{(l()||c())&&j(h)},(N=e.onPause)==null||N.call(e)}).then(()=>{var j;r=void 0,l()||(j=e.onContinue)==null||j.call(e)}),x=()=>{if(l())return;let j;const N=n===0?e.initialPromise:void 0;try{j=N??e.fn()}catch(h){j=Promise.reject(h)}Promise.resolve(j).then(m).catch(h=>{var C;if(l())return;const d=e.retry??(bn?0:3),p=e.retryDelay??S0,w=typeof p=="function"?p(n,h):p,k=d===!0||typeof d=="number"&&n<d||typeof d=="function"&&d(n,h);if(t||!k){g(h);return}n++,(C=e.onFail)==null||C.call(e,n,h),m0(w).then(()=>c()?void 0:v()).then(()=>{t?g(h):x()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:u,canStart:f,start:()=>(f()?x():v().then(x),s)}}var j0=e=>setTimeout(e,0);function k0(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=j0;const l=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{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||i()}return u},batchCalls:a=>(...u)=>{l(()=>{a(...u)})},schedule:l,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var fe=k0(),gn,Sc,ch=(Sc=class{constructor(){M(this,gn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bo(this.gcTime)&&_(this,gn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bn?1/0:5*60*1e3))}clearGcTimeout(){y(this,gn)&&(clearTimeout(y(this,gn)),_(this,gn,void 0))}},gn=new WeakMap,Sc),tr,nr,Ae,yn,ae,hs,vn,Ye,pt,jc,N0=(jc=class extends ch{constructor(t){super();M(this,Ye);M(this,tr);M(this,nr);M(this,Ae);M(this,yn);M(this,ae);M(this,hs);M(this,vn);_(this,vn,!1),_(this,hs,t.defaultOptions),this.setOptions(t.options),this.observers=[],_(this,yn,t.client),_(this,Ae,y(this,yn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_(this,tr,E0(this.options)),this.state=t.state??y(this,tr),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,hs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ae).remove(this)}setData(t,n){const r=Oo(this.state.data,t,this.options);return $(this,Ye,pt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$(this,Ye,pt).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(Pe).catch(Pe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,tr))}isActive(){return this.observers.some(t=>Ue(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ha||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xt(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:!sh(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,Ae).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,vn)?y(this,ae).cancel({revert:!0}):y(this,ae).cancelRetry()),this.scheduleGc()),y(this,Ae).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$(this,Ye,pt).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,f,m,g,v,x,j,N,h,d,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 w=this.observers.find(k=>k.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,s=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(_(this,vn,!0),r.signal)})},l=()=>{const w=ih(this.options,n),C=(()=>{const R={client:y(this,yn),queryKey:this.queryKey,meta:this.meta};return s(R),R})();return _(this,vn,!1),this.options.persister?this.options.persister(w,C,this):w(C)},a=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,yn),state:this.state,fetchFn:l};return s(w),w})();(c=this.options.behavior)==null||c.onFetch(a,this),_(this,nr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&$(this,Ye,pt).call(this,{type:"fetch",meta:(m=a.fetchOptions)==null?void 0:m.meta}),_(this,ae,uh({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onFail:(w,k)=>{$(this,Ye,pt).call(this,{type:"failed",failureCount:w,error:k})},onPause:()=>{$(this,Ye,pt).call(this,{type:"pause"})},onContinue:()=>{$(this,Ye,pt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const w=await y(this,ae).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(v=(g=y(this,Ae).config).onSuccess)==null||v.call(g,w,this),(j=(x=y(this,Ae).config).onSettled)==null||j.call(x,w,this.state.error,this),w}catch(w){if(w instanceof ah){if(w.silent)return y(this,ae).promise;if(w.revert){if(this.setState({...y(this,nr),fetchStatus:"idle"}),this.state.data===void 0)throw w;return this.state.data}}throw $(this,Ye,pt).call(this,{type:"error",error:w}),(h=(N=y(this,Ae).config).onError)==null||h.call(N,w,this),(p=(d=y(this,Ae).config).onSettled)==null||p.call(d,this.state.data,w,this),w}finally{this.scheduleGc()}}},tr=new WeakMap,nr=new WeakMap,Ae=new WeakMap,yn=new WeakMap,ae=new WeakMap,hs=new WeakMap,vn=new WeakMap,Ye=new WeakSet,pt=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,...dh(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 _(this,nr,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,Ae).notify({query:this,type:"updated",action:t})})},jc);function dh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function E0(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 it,kc,C0=(kc=class extends Es{constructor(t={}){super();M(this,it);this.config=t,_(this,it,new Map)}build(t,n,r){const s=n.queryKey,l=n.queryHash??Ba(s,n);let i=this.get(l);return i||(i=new N0({client:t,queryKey:s,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){y(this,it).has(t.queryHash)||(y(this,it).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,it).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,it).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,it).get(t)}getAll(){return[...y(this,it).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>uc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>uc(t,r)):n}notify(t){fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},it=new WeakMap,kc),ot,we,xn,at,bt,Nc,P0=(Nc=class extends ch{constructor(t){super();M(this,at);M(this,ot);M(this,we);M(this,xn);this.mutationId=t.mutationId,_(this,we,t.mutationCache),_(this,ot,[]),this.state=t.state||R0(),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,ot).includes(t)||(y(this,ot).push(t),this.clearGcTimeout(),y(this,we).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_(this,ot,y(this,ot).filter(n=>n!==t)),this.scheduleGc(),y(this,we).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,ot).length||(this.state.status==="pending"?this.scheduleGc():y(this,we).remove(this))}continue(){var t;return((t=y(this,xn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,i,a,u,c,f,m,g,v,x,j,N,h,d,p,w,k,C,R,P;const n=()=>{$(this,at,bt).call(this,{type:"continue"})};_(this,xn,uh({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,T)=>{$(this,at,bt).call(this,{type:"failed",failureCount:O,error:T})},onPause:()=>{$(this,at,bt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,we).canRun(this)}));const r=this.state.status==="pending",s=!y(this,xn).canStart();try{if(r)n();else{$(this,at,bt).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(l=y(this,we).config).onMutate)==null?void 0:i.call(l,t,this));const T=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t));T!==this.state.context&&$(this,at,bt).call(this,{type:"pending",context:T,variables:t,isPaused:s})}const O=await y(this,xn).start();return await((f=(c=y(this,we).config).onSuccess)==null?void 0:f.call(c,O,t,this.state.context,this)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,O,t,this.state.context)),await((x=(v=y(this,we).config).onSettled)==null?void 0:x.call(v,O,null,this.state.variables,this.state.context,this)),await((N=(j=this.options).onSettled)==null?void 0:N.call(j,O,null,t,this.state.context)),$(this,at,bt).call(this,{type:"success",data:O}),O}catch(O){try{throw await((d=(h=y(this,we).config).onError)==null?void 0:d.call(h,O,t,this.state.context,this)),await((w=(p=this.options).onError)==null?void 0:w.call(p,O,t,this.state.context)),await((C=(k=y(this,we).config).onSettled)==null?void 0:C.call(k,void 0,O,this.state.variables,this.state.context,this)),await((P=(R=this.options).onSettled)==null?void 0:P.call(R,void 0,O,t,this.state.context)),O}finally{$(this,at,bt).call(this,{type:"error",error:O})}}finally{y(this,we).runNext(this)}}},ot=new WeakMap,we=new WeakMap,xn=new WeakMap,at=new WeakSet,bt=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,ot).forEach(r=>{r.onMutationUpdate(t)}),y(this,we).notify({mutation:this,type:"updated",action:t})})},Nc);function R0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yt,Je,ps,Ec,L0=(Ec=class extends Es{constructor(t={}){super();M(this,yt);M(this,Je);M(this,ps);this.config=t,_(this,yt,new Set),_(this,Je,new Map),_(this,ps,0)}build(t,n,r){const s=new P0({mutationCache:this,mutationId:++Ls(this,ps)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){y(this,yt).add(t);const n=qs(t);if(typeof n=="string"){const r=y(this,Je).get(n);r?r.push(t):y(this,Je).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,yt).delete(t)){const n=qs(t);if(typeof n=="string"){const r=y(this,Je).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,Je).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=qs(t);if(typeof n=="string"){const r=y(this,Je).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=qs(t);if(typeof n=="string"){const s=(r=y(this,Je).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,yt).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,yt).clear(),y(this,Je).clear()})}getAll(){return Array.from(y(this,yt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cc(n,r))}findAll(t={}){return this.getAll().filter(n=>cc(t,n))}notify(t){fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return fe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pe))))}},yt=new WeakMap,Je=new WeakMap,ps=new WeakMap,Ec);function qs(e){var t;return(t=e.options.scope)==null?void 0:t.id}function hc(e){return{onFetch:(t,n)=>{var f,m,g,v,x;const r=t.options,s=(g=(m=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:m.fetchMore)==null?void 0:g.direction,l=((v=t.state.data)==null?void 0:v.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},u=0;const c=async()=>{let j=!1;const N=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?j=!0:t.signal.addEventListener("abort",()=>{j=!0}),t.signal)})},h=ih(t.options,t.fetchOptions),d=async(p,w,k)=>{if(j)return Promise.reject();if(w==null&&p.pages.length)return Promise.resolve(p);const R=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:w,direction:k?"backward":"forward",meta:t.options.meta};return N(V),V})(),P=await h(R),{maxPages:O}=t.options,T=k?y0:g0;return{pages:T(p.pages,P,O),pageParams:T(p.pageParams,w,O)}};if(s&&l.length){const p=s==="backward",w=p?b0:pc,k={pages:l,pageParams:i},C=w(r,k);a=await d(k,C,p)}else{const p=e??l.length;do{const w=u===0?i[0]??r.initialPageParam:pc(r,a);if(u>0&&w==null)break;a=await d(a,w),u++}while(u<p)}return a};t.options.persister?t.fetchFn=()=>{var j,N;return(N=(j=t.options).persister)==null?void 0:N.call(j,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function pc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function b0(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 ee,It,zt,rr,sr,$t,lr,ir,Cc,T0=(Cc=class{constructor(e={}){M(this,ee);M(this,It);M(this,zt);M(this,rr);M(this,sr);M(this,$t);M(this,lr);M(this,ir);_(this,ee,e.queryCache||new C0),_(this,It,e.mutationCache||new L0),_(this,zt,e.defaultOptions||{}),_(this,rr,new Map),_(this,sr,new Map),_(this,$t,0)}mount(){Ls(this,$t)._++,y(this,$t)===1&&(_(this,lr,Wa.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ee).onFocus())})),_(this,ir,Fl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ee).onOnline())})))}unmount(){var e,t;Ls(this,$t)._--,y(this,$t)===0&&((e=y(this,lr))==null||e.call(this),_(this,lr,void 0),(t=y(this,ir))==null||t.call(this),_(this,ir,void 0))}isFetching(e){return y(this,ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,It).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ee).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,ee).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Xt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,ee).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,ee).get(r.queryHash),l=s==null?void 0:s.state.data,i=p0(t,l);if(i!==void 0)return y(this,ee).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return fe.batch(()=>y(this,ee).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,ee).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ee);fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ee);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,ee).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Pe).catch(Pe)}invalidateQueries(e,t={}){return fe.batch(()=>(y(this,ee).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,ee).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let l=s.fetch(void 0,n);return n.throwOnError||(l=l.catch(Pe)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Pe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ee).build(this,t);return n.isStaleByTime(Xt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pe).catch(Pe)}fetchInfiniteQuery(e){return e.behavior=hc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pe).catch(Pe)}ensureInfiniteQueryData(e){return e.behavior=hc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Fl.isOnline()?y(this,It).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ee)}getMutationCache(){return y(this,It)}getDefaultOptions(){return y(this,zt)}setDefaultOptions(e){_(this,zt,e)}setQueryDefaults(e,t){y(this,rr).set(ds(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,rr).values()],n={};return t.forEach(r=>{fs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,sr).set(ds(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,sr).values()],n={};return t.forEach(r=>{fs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,zt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ba(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===Ha&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,zt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ee).clear(),y(this,It).clear()}},ee=new WeakMap,It=new WeakMap,zt=new WeakMap,rr=new WeakMap,sr=new WeakMap,$t=new WeakMap,lr=new WeakMap,ir=new WeakMap,Cc),Ce,A,ms,Se,wn,or,vt,At,gs,ar,ur,Sn,jn,Ut,cr,Q,Ir,Do,Mo,Io,zo,$o,Ao,Uo,fh,Pc,_0=(Pc=class extends Es{constructor(t,n){super();M(this,Q);M(this,Ce);M(this,A);M(this,ms);M(this,Se);M(this,wn);M(this,or);M(this,vt);M(this,At);M(this,gs);M(this,ar);M(this,ur);M(this,Sn);M(this,jn);M(this,Ut);M(this,cr,new Set);this.options=n,_(this,Ce,t),_(this,At,null),_(this,vt,Fo()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,A).addObserver(this),mc(y(this,A),this.options)?$(this,Q,Ir).call(this):this.updateResult(),$(this,Q,zo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qo(y(this,A),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qo(y(this,A),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$(this,Q,$o).call(this),$(this,Q,Ao).call(this),y(this,A).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,A);if(this.options=y(this,Ce).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ue(this.options.enabled,y(this,A))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$(this,Q,Uo).call(this),y(this,A).setOptions(this.options),n._defaulted&&!To(this.options,n)&&y(this,Ce).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,A),observer:this});const s=this.hasListeners();s&&gc(y(this,A),r,this.options,n)&&$(this,Q,Ir).call(this),this.updateResult(),s&&(y(this,A)!==r||Ue(this.options.enabled,y(this,A))!==Ue(n.enabled,y(this,A))||Xt(this.options.staleTime,y(this,A))!==Xt(n.staleTime,y(this,A)))&&$(this,Q,Do).call(this);const l=$(this,Q,Mo).call(this);s&&(y(this,A)!==r||Ue(this.options.enabled,y(this,A))!==Ue(n.enabled,y(this,A))||l!==y(this,Ut))&&$(this,Q,Io).call(this,l)}getOptimisticResult(t){const n=y(this,Ce).getQueryCache().build(y(this,Ce),t),r=this.createResult(n,t);return F0(this,r)&&(_(this,Se,r),_(this,or,this.options),_(this,wn,y(this,A).state)),r}getCurrentResult(){return y(this,Se)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&!this.options.experimental_prefetchInRender&&y(this,vt).status==="pending"&&y(this,vt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,s))})}trackProp(t){y(this,cr).add(t)}getCurrentQuery(){return y(this,A)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Ce).defaultQueryOptions(t),r=y(this,Ce).getQueryCache().build(y(this,Ce),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $(this,Q,Ir).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Se)))}createResult(t,n){var O;const r=y(this,A),s=this.options,l=y(this,Se),i=y(this,wn),a=y(this,or),c=t!==r?t.state:y(this,ms),{state:f}=t;let m={...f},g=!1,v;if(n._optimisticResults){const T=this.hasListeners(),V=!T&&mc(t,n),xe=T&&gc(t,r,n,s);(V||xe)&&(m={...m,...dh(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:j,status:N}=m;v=m.data;let h=!1;if(n.placeholderData!==void 0&&v===void 0&&N==="pending"){let T;l!=null&&l.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(T=l.data,h=!0):T=typeof n.placeholderData=="function"?n.placeholderData((O=y(this,ur))==null?void 0:O.state.data,y(this,ur)):n.placeholderData,T!==void 0&&(N="success",v=Oo(l==null?void 0:l.data,T,n),g=!0)}if(n.select&&v!==void 0&&!h)if(l&&v===(i==null?void 0:i.data)&&n.select===y(this,gs))v=y(this,ar);else try{_(this,gs,n.select),v=n.select(v),v=Oo(l==null?void 0:l.data,v,n),_(this,ar,v),_(this,At,null)}catch(T){_(this,At,T)}y(this,At)&&(x=y(this,At),v=y(this,ar),j=Date.now(),N="error");const d=m.fetchStatus==="fetching",p=N==="pending",w=N==="error",k=p&&d,C=v!==void 0,P={status:N,fetchStatus:m.fetchStatus,isPending:p,isSuccess:N==="success",isError:w,isInitialLoading:k,isLoading:k,data:v,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:j,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>c.dataUpdateCount||m.errorUpdateCount>c.errorUpdateCount,isFetching:d,isRefetching:d&&!p,isLoadingError:w&&!C,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:w&&C,isStale:Va(t,n),refetch:this.refetch,promise:y(this,vt),isEnabled:Ue(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=Oe=>{P.status==="error"?Oe.reject(P.error):P.data!==void 0&&Oe.resolve(P.data)},V=()=>{const Oe=_(this,vt,P.promise=Fo());T(Oe)},xe=y(this,vt);switch(xe.status){case"pending":t.queryHash===r.queryHash&&T(xe);break;case"fulfilled":(P.status==="error"||P.data!==xe.value)&&V();break;case"rejected":(P.status!=="error"||P.error!==xe.reason)&&V();break}}return P}updateResult(){const t=y(this,Se),n=this.createResult(y(this,A),this.options);if(_(this,wn,y(this,A).state),_(this,or,this.options),y(this,wn).data!==void 0&&_(this,ur,y(this,A)),To(n,t))return;_(this,Se,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!y(this,cr).size)return!0;const i=new Set(l??y(this,cr));return this.options.throwOnError&&i.add("error"),Object.keys(y(this,Se)).some(a=>{const u=a;return y(this,Se)[u]!==t[u]&&i.has(u)})};$(this,Q,fh).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$(this,Q,zo).call(this)}},Ce=new WeakMap,A=new WeakMap,ms=new WeakMap,Se=new WeakMap,wn=new WeakMap,or=new WeakMap,vt=new WeakMap,At=new WeakMap,gs=new WeakMap,ar=new WeakMap,ur=new WeakMap,Sn=new WeakMap,jn=new WeakMap,Ut=new WeakMap,cr=new WeakMap,Q=new WeakSet,Ir=function(t){$(this,Q,Uo).call(this);let n=y(this,A).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pe)),n},Do=function(){$(this,Q,$o).call(this);const t=Xt(this.options.staleTime,y(this,A));if(bn||y(this,Se).isStale||!bo(t))return;const r=sh(y(this,Se).dataUpdatedAt,t)+1;_(this,Sn,setTimeout(()=>{y(this,Se).isStale||this.updateResult()},r))},Mo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,A)):this.options.refetchInterval)??!1},Io=function(t){$(this,Q,Ao).call(this),_(this,Ut,t),!(bn||Ue(this.options.enabled,y(this,A))===!1||!bo(y(this,Ut))||y(this,Ut)===0)&&_(this,jn,setInterval(()=>{(this.options.refetchIntervalInBackground||Wa.isFocused())&&$(this,Q,Ir).call(this)},y(this,Ut)))},zo=function(){$(this,Q,Do).call(this),$(this,Q,Io).call(this,$(this,Q,Mo).call(this))},$o=function(){y(this,Sn)&&(clearTimeout(y(this,Sn)),_(this,Sn,void 0))},Ao=function(){y(this,jn)&&(clearInterval(y(this,jn)),_(this,jn,void 0))},Uo=function(){const t=y(this,Ce).getQueryCache().build(y(this,Ce),this.options);if(t===y(this,A))return;const n=y(this,A);_(this,A,t),_(this,ms,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},fh=function(t){fe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Se))}),y(this,Ce).getQueryCache().notify({query:y(this,A),type:"observerResultsUpdated"})})},Pc);function O0(e,t){return Ue(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mc(e,t){return O0(e,t)||e.state.data!==void 0&&Qo(e,t,t.refetchOnMount)}function Qo(e,t,n){if(Ue(t.enabled,e)!==!1&&Xt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Va(e,t)}return!1}function gc(e,t,n,r){return(e!==t||Ue(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Va(e,n)}function Va(e,t){return Ue(t.enabled,e)!==!1&&e.isStaleByTime(Xt(t.staleTime,e))}function F0(e,t){return!To(e.getCurrentResult(),t)}var hh=S.createContext(void 0),Ka=e=>{const t=S.useContext(hh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},D0=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(hh.Provider,{value:e,children:t})),ph=S.createContext(!1),M0=()=>S.useContext(ph);ph.Provider;function I0(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var z0=S.createContext(I0()),$0=()=>S.useContext(z0),A0=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},U0=e=>{S.useEffect(()=>{e.clearReset()},[e])},Q0=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||v0(n,[e.error,r])),B0=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))}},H0=(e,t)=>e.isLoading&&e.isFetching&&!t,W0=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function V0(e,t,n){var m,g,v,x,j;const r=M0(),s=$0(),l=Ka(),i=l.defaultQueryOptions(e);(g=(m=l.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||g.call(m,i),i._optimisticResults=r?"isRestoring":"optimistic",B0(i),A0(i,s),U0(s);const a=!l.getQueryCache().get(i.queryHash),[u]=S.useState(()=>new t(l,i)),c=u.getOptimisticResult(i),f=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(N=>{const h=f?u.subscribe(fe.batchCalls(N)):Pe;return u.updateResult(),h},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),S.useEffect(()=>{u.setOptions(i)},[i,u]),W0(i,c))throw yc(i,u,s);if(Q0({result:c,errorResetBoundary:s,throwOnError:i.throwOnError,query:l.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw c.error;if((x=(v=l.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||x.call(v,i,c),i.experimental_prefetchInRender&&!bn&&H0(c,r)){const N=a?yc(i,u,s):(j=l.getQueryCache().get(i.queryHash))==null?void 0:j.promise;N==null||N.catch(Pe).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?c:u.trackResult(c)}function ei(e,t){return V0(e,_0)}const K0="",q0=e=>ei({queryKey:["queue",e],queryFn:async()=>{const t=await fetch(`${K0}/console/queues/${e}`);if(!t.ok)throw new Error(`Failed to fetch queue ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),G0="",Y0=e=>ei({queryKey:["schedule",e],queryFn:async()=>{const t=await fetch(`${G0}/console/schedules/${e}`);if(!t.ok)throw new Error(`Failed to fetch schedule ${e}`);return t.json()},enabled:!!e,refetchInterval:3e3}),J0="",mh=()=>ei({queryKey:["modules"],queryFn:async()=>{const e=await fetch(`${J0}/console/modules`);if(!e.ok)throw new Error("Failed to fetch modules");return e.json()},refetchInterval:3e3}),Bo="",X0=(e={})=>{const{limit:t=100,level:n,source:r,module:s,trigger:l,triggerType:i}=e,a=Ka(),u=S.useRef(null),c=ei({queryKey:["logs",t,n,r,s,l,i],queryFn:async()=>{const f=new URLSearchParams;f.append("limit",t.toString()),n&&f.append("level",n),r&&f.append("source",r),s&&f.append("module",s),l&&f.append("trigger",l),i&&f.append("triggerType",i);const m=await fetch(`${Bo}/console/logs?${f}`);if(!m.ok)throw new Error("Failed to fetch logs");return m.json()},refetchInterval:5e3});return S.useEffect(()=>{u.current&&u.current.close();const f=new EventSource(`${Bo}/console/logs/stream`);return u.current=f,f.onmessage=m=>{try{const g=JSON.parse(m.data);g.type==="initial"?a.setQueryData(["logs",t,n,r,s,l,i],{logs:g.logs}):g.type==="log"&&a.setQueryData(["logs",t,n,r,s,l,i],v=>v?{logs:[g.log,...v.logs].slice(0,t)}:{logs:[g.log]})}catch(g){console.error("Failed to parse SSE data:",g)}},f.onerror=m=>{console.error("SSE connection error:",m)},()=>{u.current&&(u.current.close(),u.current=null)}},[a,t,n,r,s,l,i]),c},Z0=()=>{const e=Ka();return{clearLogs:async()=>{const n=await fetch(`${Bo}/console/logs`,{method:"DELETE"});if(n.ok)return e.invalidateQueries({queryKey:["logs"]}),n.json();throw new Error("Failed to clear logs")}}},ey=({module:e,onSelect:t})=>{const n=e.routes.length+e.queues.length+e.schedules.length;return o.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:[o.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-blue-500 to-purple-600"}),o.jsxs("div",{className:"p-6",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.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:o.jsx("span",{className:"text-white font-bold text-lg",children:e.name.charAt(0).toUpperCase()})}),o.jsxs("div",{children:[o.jsx("h3",{className:"text-lg font-semibold text-gray-900 group-hover:text-blue-600 transition-colors",children:e.name}),o.jsxs("p",{className:"text-sm text-gray-500",children:[n," total resources"]})]})]}),o.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:o.jsx("svg",{className:"w-5 h-5 text-blue-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),o.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[o.jsxs("div",{className:"text-center p-3 bg-green-50 rounded-lg border border-green-100",children:[o.jsx("div",{className:"text-2xl font-bold text-green-600 mb-1",children:e.routes.length}),o.jsx("div",{className:"text-xs font-medium text-green-700 uppercase tracking-wide",children:"HTTP Routes"})]}),o.jsxs("div",{className:"text-center p-3 bg-blue-50 rounded-lg border border-blue-100",children:[o.jsx("div",{className:"text-2xl font-bold text-blue-600 mb-1",children:e.queues.length}),o.jsx("div",{className:"text-xs font-medium text-blue-700 uppercase tracking-wide",children:"Event Queues"})]}),o.jsxs("div",{className:"text-center p-3 bg-purple-50 rounded-lg border border-purple-100",children:[o.jsx("div",{className:"text-2xl font-bold text-purple-600 mb-1",children:e.schedules.length}),o.jsx("div",{className:"text-xs font-medium text-purple-700 uppercase tracking-wide",children:"Schedules"})]})]}),o.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100",children:o.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[o.jsx("span",{children:"Click to explore module"}),o.jsxs("div",{className:"flex items-center space-x-1",children:[o.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full"}),o.jsx("span",{children:"Active"})]})]})})]})]})},ty=({onModuleSelect:e})=>{const{data:t,isLoading:n,error:r}=mh();if(n)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading modules..."})});if(r)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"text-red-600",children:["Error loading modules: ",r.message]})});const s=(t==null?void 0:t.modules)||[];return o.jsxs("div",{className:"space-y-8",children:[o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Your Modules"}),o.jsx("p",{className:"text-gray-600",children:"Explore and manage your CloudNux modules"})]}),s.length===0?o.jsxs("div",{className:"text-center py-16",children:[o.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:o.jsx("svg",{className:"w-10 h-10 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.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"})})}),o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No modules found"}),o.jsx("p",{className:"text-gray-500 mb-4",children:"Deploy some modules to see them here"})]}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:s.map(l=>o.jsx(ey,{module:l,onSelect:()=>e(l.name)},l.name))})]})},vc=()=>{const e=ln(),t=n=>{e(`/modules/${n}`)};return o.jsx(ty,{onModuleSelect:t})},_i=({type:e,title:t,count:n,color:r,items:s,moduleName:l})=>{const[i,a]=S.useState(!1),u=ln(),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"}}})(r),m=(g,v)=>{if(e==="http"){const x=g;return o.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(x.url)}&method=${x.method}`),children:o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:`px-1 py-0.5 rounded text-xs font-medium ${x.method==="GET"?"bg-green-100 text-green-700":x.method==="POST"?"bg-blue-100 text-blue-700":x.method==="PUT"?"bg-orange-100 text-orange-700":x.method==="DELETE"?"bg-red-100 text-red-700":"bg-gray-100 text-gray-700"}`,children:Array.isArray(x.method)?x.method.join(","):x.method}),o.jsx("span",{className:"font-mono",children:x.url})]})},v)}if(e==="queue"){const x=g;return o.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/${x.name}`),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-medium",children:x.name}),x.stats&&o.jsxs("div",{className:"flex space-x-1",children:[o.jsxs("span",{className:"text-green-600",children:["I:",x.stats.incoming]}),o.jsxs("span",{className:"text-yellow-600",children:["P:",x.stats.processing]}),o.jsxs("span",{className:"text-red-600",children:["D:",x.stats.dlq]})]})]})},v)}if(e==="schedule"){const x=g;return o.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/${x.name}`),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:`px-1 py-0.5 rounded text-xs ${x.isRunning?"bg-yellow-100 text-yellow-700":x.enabled?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"}`,children:x.isRunning?"RUN":x.enabled?"ON":"OFF"}),o.jsx("span",{className:"font-medium",children:x.name})]}),x.cronExpression&&o.jsx("span",{className:"font-mono text-gray-600",children:x.cronExpression})]})},v)}return null};return o.jsxs("div",{className:`border rounded-lg overflow-hidden ${f.border} ${f.bg}`,children:[o.jsx("div",{className:`p-4 cursor-pointer hover:opacity-80 transition-opacity ${f.header}`,onClick:()=>a(!i),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx("span",{className:`w-3 h-3 rounded-full ${f.badge}`}),o.jsx("span",{className:`font-medium ${f.text}`,children:t})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:`text-2xl font-bold ${f.text}`,children:n}),o.jsx("span",{className:"text-gray-400 text-sm",children:i?"▼":"▶"})]})]})}),i&&n>0&&o.jsx("div",{className:"p-4 space-y-2 max-h-64 overflow-y-auto",children:s.map((g,v)=>m(g,v))})]})},ti=({moduleName:e,triggerName:t,triggerType:n,title:r})=>{const[s,l]=S.useState(!0),[i,a]=S.useState(""),[u,c]=S.useState(""),f=S.useRef(null),m=S.useRef(null),{data:g,isLoading:v}=X0({limit:200,level:u||void 0,module:e,trigger:t,triggerType:n}),{clearLogs:x}=Z0(),j=(g==null?void 0:g.logs)||[];S.useEffect(()=>{s&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[j,s]);const N=()=>{if(m.current){const{scrollTop:k,scrollHeight:C,clientHeight:R}=m.current,P=k+R>=C-10;l(P)}},h=k=>{switch(k){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";default:return"text-gray-300"}},d=k=>{switch(k){case"queue":return"text-blue-300";case"schedule":return"text-purple-300";case"http":return"text-green-300";default:return"text-gray-400"}},p=j.filter(k=>{var C;return k.message.toLowerCase().includes(i.toLowerCase())||k.level.toLowerCase().includes(i.toLowerCase())||((C=k.source)==null?void 0:C.toLowerCase().includes(i.toLowerCase()))}),w=async()=>{try{await x()}catch(k){console.error("Failed to clear logs:",k)}};return o.jsxs("div",{className:"bg-gray-900 rounded-lg border border-gray-700 overflow-hidden",children:[o.jsx("div",{className:"bg-gray-800 px-4 py-3 border-b border-gray-700",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsxs("div",{className:"flex space-x-1",children:[o.jsx("div",{className:"w-3 h-3 bg-red-500 rounded-full"}),o.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full"}),o.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"})]}),o.jsx("span",{className:"text-gray-300 text-sm font-medium",children:r||`${e}${t?` - ${t}`:""} - Logs`})]}),o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx("input",{type:"text",placeholder:"Filter logs...",value:i,onChange:k=>a(k.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"}),o.jsxs("select",{value:u,onChange:k=>c(k.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:[o.jsx("option",{value:"",children:"All Levels"}),o.jsx("option",{value:"fatal",children:"Fatal"}),o.jsx("option",{value:"error",children:"Error"}),o.jsx("option",{value:"warn",children:"Warn"}),o.jsx("option",{value:"info",children:"Info"}),o.jsx("option",{value:"debug",children:"Debug"})]}),o.jsx("button",{onClick:w,className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 rounded hover:bg-gray-600",children:"Clear"}),o.jsxs("div",{className:"flex items-center space-x-1",children:[o.jsx("input",{type:"checkbox",id:"autoscroll",checked:s,onChange:k=>l(k.target.checked),className:"text-blue-500"}),o.jsx("label",{htmlFor:"autoscroll",className:"text-xs text-gray-400",children:"Auto-scroll"})]})]})]})}),o.jsx("div",{ref:m,onScroll:N,className:"bg-gray-900 p-4 h-96 overflow-y-auto font-mono text-sm",children:v?o.jsx("div",{className:"text-gray-500 text-center py-8",children:"Loading logs..."}):p.length===0?o.jsx("div",{className:"text-gray-500 text-center py-8",children:i||u?"No logs match your filters":"No logs available"}):o.jsxs("div",{className:"space-y-1",children:[p.map(k=>o.jsxs("div",{className:"flex items-start space-x-3 hover:bg-gray-800 px-2 py-1 rounded",children:[o.jsx("span",{className:"text-gray-500 text-xs shrink-0",children:new Date(k.timestamp).toLocaleTimeString()}),o.jsx("span",{className:`text-xs font-medium shrink-0 uppercase ${h(k.level)}`,children:k.level}),k.source&&o.jsxs("span",{className:`text-xs shrink-0 uppercase ${d(k.source)}`,children:["[",k.source,"]"]}),o.jsx("span",{className:"text-gray-300 break-all",children:k.message})]},k.id)),o.jsx("div",{ref:f})]})})]})},ny=({moduleName:e,onBack:t})=>{const{data:n,isLoading:r}=mh();if(r)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading module details..."})});const s=n==null?void 0:n.modules.find(l=>l.name===e);return s?o.jsxs("div",{className:"space-y-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx("button",{onClick:t,className:"px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"← Back"}),o.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:s.name}),o.jsx("span",{className:"px-2 py-1 text-xs font-medium rounded bg-indigo-100 text-indigo-800",children:"MODULE"})]}),o.jsxs("div",{className:"flex space-x-4 text-sm text-gray-600",children:[o.jsxs("span",{children:[s.routes.length," routes"]}),o.jsxs("span",{children:[s.queues.length," queues"]}),o.jsxs("span",{children:[s.schedules.length," schedules"]})]})]})}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o.jsx(_i,{type:"http",title:"HTTP Endpoints",count:s.routes.length,color:"green",items:s.routes,moduleName:e}),o.jsx(_i,{type:"queue",title:"Event Queues",count:s.queues.length,color:"blue",items:s.queues,moduleName:e}),o.jsx(_i,{type:"schedule",title:"Scheduled Jobs",count:s.schedules.length,color:"purple",items:s.schedules,moduleName:e})]}),o.jsx(ti,{moduleName:e})]}):o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"text-red-600",children:["Module not found: ",e]}),o.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"})]})},ry=()=>{const{moduleName:e}=Xl(),t=ln(),n=()=>{t("/modules")};return e?o.jsx(ny,{moduleName:e,onBack:n}):o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid module name"}),o.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"})]})},sy=({moduleName:e,queueName:t,onBack:n})=>{var xe,Oe,kr,Cs;const{data:r,isLoading:s,error:l}=q0(t),[i,a]=S.useState("incoming"),[u,c]=S.useState(new Set),[f,m]=S.useState(!1),[g,v]=S.useState(`{
|
|
52
|
+
"message": "",
|
|
53
|
+
"data": {}
|
|
54
|
+
}`),[x,j]=S.useState(`{
|
|
55
|
+
"custom-header": "value"
|
|
56
|
+
}`),[N,h]=S.useState(!1),[d,p]=S.useState(!1),[w,k]=S.useState(!1);if(s)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading queue details..."})});if(l||!r)return o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"text-red-600",children:["Error loading queue: ",l==null?void 0:l.message]}),o.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 C=async()=>{try{const F=await fetch(`/console/queues/${t}/process-dlq`);if(F.ok){const H=await F.json();alert(H.message||"DLQ processing completed")}else{const H=await F.json();alert(`Failed to process DLQ: ${H.error}`)}}catch(F){console.error("Failed to process DLQ:",F),alert("Failed to process DLQ")}},R=async()=>{if(confirm("Are you sure you want to purge all DLQ messages? This cannot be undone."))try{const F=await fetch(`/console/queues/${t}/purge-dlq`);if(F.ok){const H=await F.json();alert(H.message||"DLQ purged successfully")}else{const H=await F.json();alert(`Failed to purge DLQ: ${H.error}`)}}catch(F){console.error("Failed to purge DLQ:",F),alert("Failed to purge DLQ")}},P=async()=>{try{const F=JSON.parse(g),L={"Content-Type":"application/json",...JSON.parse(x)},D=await fetch(`/console/queues/${t}/enqueue`,{method:"POST",headers:L,body:JSON.stringify(F)});if(D.ok){const I=await D.json();alert(`Message enqueued with ID: ${I.id}`),m(!1),v(`{
|
|
57
|
+
"message": "",
|
|
58
|
+
"data": {}
|
|
59
|
+
}`),j(`{
|
|
60
|
+
"custom-header": "value"
|
|
61
|
+
}`)}else{const I=await D.json();alert(`Failed to enqueue: ${I.error}`)}}catch{alert("Invalid JSON format in message or attributes")}},O=F=>{const H=new Set(u);H.has(F)?H.delete(F):H.add(F),c(H)},T=async()=>{try{const F=await fetch(`/console/queues/${t}`,{method:"DELETE"});if(F.ok){const H=await F.json();alert(H.message||"Queue deleted successfully"),n()}else{const H=await F.json();alert(`Failed to delete queue: ${H.error}`)}}catch(F){console.error("Failed to delete queue:",F),alert("Failed to delete queue")}h(!1)},V=()=>{switch(i){case"incoming":return r.messages.incoming;case"processing":return r.messages.processing;case"dlq":return r.messages.dlq;default:return[]}};return o.jsxs("div",{className:"space-y-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{className:"flex items-center space-x-4",children:[o.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]}),o.jsxs("div",{children:[o.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t}),o.jsxs("p",{className:"text-gray-600",children:["Event Queue in ",e," module"]})]})]}),o.jsxs("div",{className:"flex space-x-2",children:[o.jsx("button",{onClick:()=>m(!f),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&&o.jsxs(o.Fragment,{children:[o.jsxs("button",{onClick:C,className:"px-4 py-2 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 text-sm",children:["Process DLQ (",r.stats.dlq,")"]}),o.jsx("button",{onClick:R,className:"px-4 py-2 bg-red-100 text-red-700 rounded hover:bg-red-200 text-sm",children:"Purge DLQ"})]}),o.jsx("button",{onClick:()=>h(!0),className:"px-4 py-2 bg-red-100 text-red-700 rounded hover:bg-red-200 text-sm",children:"🗑️ Delete Queue"})]})]})}),N&&o.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:o.jsxs("div",{className:"bg-white rounded-lg p-6 max-w-md w-full mx-4",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Delete Queue"}),o.jsxs("p",{className:"text-sm text-gray-600 mb-6",children:["Are you sure you want to delete the queue ",o.jsx("strong",{children:t}),"? This will permanently remove the queue and all its messages. This action cannot be undone."]}),o.jsxs("div",{className:"flex space-x-3",children:[o.jsx("button",{onClick:T,className:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700",children:"Delete Queue"}),o.jsx("button",{onClick:()=>h(!1),className:"px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Cancel"})]})]})}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>p(!d),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Queue Endpoints"}),o.jsx("svg",{className:`w-5 h-5 text-gray-400 transition-transform ${d?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),d&&o.jsx("div",{className:"p-6",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/queues/",t]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Enqueue message"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/queues/",t]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Get queue details"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/queues/",t,"/process-dlq"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Process DLQ messages"})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/queues/",t,"/purge-dlq"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Purge DLQ messages"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsx("code",{className:"text-xs font-mono text-gray-700",children:"http://localhost:3000/queues/dashboard"}),o.jsx("span",{className:"text-xs text-gray-500",children:"- All queues overview"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/queues/",t]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Delete queue"})]})]})]})})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>k(!w),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Queue Configuration"}),o.jsx("svg",{className:`w-5 h-5 text-gray-400 transition-transform ${w?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),w&&((xe=r.stats)==null?void 0:xe.configuration)&&o.jsx("div",{className:"p-6",children:o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-semibold text-gray-800 mb-3",children:"Processing Configuration"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Batch Size"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.batchSize," messages"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Batch Window"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.batchWindowMs,"ms"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Max Retries"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.maxRetries," attempts"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Parallel Processing"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.parallel?"Enabled":"Disabled"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Max Concurrent"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.maxConcurrent," workers"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Retry Backoff"}),o.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&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-semibold text-gray-800 mb-3",children:"Persistence Configuration"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Persistence"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.enabled?"Enabled":"Disabled"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Data Directory"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border font-mono",children:r.stats.configuration.persistence.directory})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Save Interval"}),o.jsxs("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:[r.stats.configuration.persistence.saveInterval,"ms"]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Save on Shutdown"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.saveOnShutdown?"Enabled":"Disabled"})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Load on Startup"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:r.stats.configuration.persistence.loadOnStartup?"Enabled":"Disabled"})]})]})]})]})})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Incoming Messages"}),o.jsx("p",{className:"text-3xl font-bold text-green-600",children:(Oe=r==null?void 0:r.stats)==null?void 0:Oe.incoming})]}),o.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16l-4-4m0 0l4-4m-4 4h18"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Processing"}),o.jsx("p",{className:"text-3xl font-bold text-yellow-600",children:(kr=r==null?void 0:r.stats)==null?void 0:kr.processing})]}),o.jsx("div",{className:"w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Dead Letter Queue"}),o.jsx("p",{className:"text-3xl font-bold text-red-600",children:(Cs=r==null?void 0:r.stats)==null?void 0:Cs.dlq})]}),o.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.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"})})})]})})]}),f&&o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Enqueue New Message"}),o.jsx("button",{onClick:()=>m(!1),className:"text-gray-400 hover:text-gray-600",children:o.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Message JSON"}),o.jsx("textarea",{value:g,onChange:F=>v(F.target.value),className:"w-full h-32 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter message JSON..."})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Message Attributes (Headers)"}),o.jsx("textarea",{value:x,onChange:F=>j(F.target.value),className:"w-full h-24 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter attributes JSON..."}),o.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Custom headers/attributes to include with the message"})]}),o.jsxs("div",{className:"flex space-x-3",children:[o.jsx("button",{onClick:P,className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700",children:"Enqueue Message"}),o.jsx("button",{onClick:()=>m(!1),className:"px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200",children:"Cancel"})]})]})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsx("div",{className:"border-b border-gray-200",children:o.jsx("nav",{className:"flex space-x-8 px-6",children:["incoming","processing","dlq"].map(F=>{var H,L,D;return o.jsxs("button",{onClick:()=>a(F),className:`py-4 px-1 border-b-2 font-medium text-sm capitalize ${i===F?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[F," (",F==="incoming"?(H=r==null?void 0:r.stats)==null?void 0:H.incoming:F==="processing"?(L=r==null?void 0:r.stats)==null?void 0:L.processing:(D=r==null?void 0:r.stats)==null?void 0:D.dlq,")"]},F)})})}),o.jsx("div",{className:"p-6",children:o.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:V().length===0?o.jsxs("div",{className:"text-center py-8 text-gray-500",children:["No messages in ",i," queue"]}):V().map((F,H)=>{var D;const L=u.has(F.id);return o.jsxs("div",{className:"border border-gray-200 rounded bg-gray-50",children:[o.jsxs("div",{className:"p-4",children:[o.jsxs("div",{className:"flex items-start justify-between mb-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsxs("button",{onClick:()=>O(F.id),className:"flex items-center space-x-1 text-xs font-mono text-gray-500 hover:text-gray-700",children:[o.jsx("svg",{className:`w-4 h-4 transition-transform ${L?"rotate-90":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),o.jsxs("span",{children:["ID: ",F.id]})]}),F.error&&o.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"}),F.reprocessed&&o.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"})]}),o.jsx("span",{className:"text-xs text-gray-500",children:new Date(F.timestamp||Date.now()).toLocaleString()})]}),!L&&o.jsx("div",{className:"text-sm text-gray-600 truncate",children:((D=F.payload)==null?void 0:D.message)||JSON.stringify(F.payload).substring(0,80)+"..."})]}),L&&o.jsx("div",{className:"border-t border-gray-200 p-4 bg-white",children:o.jsxs("div",{className:"space-y-3",children:[F.payload&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Payload:"}),o.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto",children:JSON.stringify(F.payload,null,2)})]}),F.error&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-red-600 mb-1",children:"Error:"}),o.jsx("div",{className:"text-sm bg-red-50 p-3 rounded border text-red-800",children:F.error})]}),F.attempts&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Attempts:"}),o.jsx("div",{className:"text-sm text-gray-700",children:F.attempts})]}),F.attributes&&Object.keys(F.attributes).length>0&&o.jsxs("div",{children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-1",children:"Headers:"}),o.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto",children:JSON.stringify(F.attributes,null,2)})]})]})})]},H)})})})]}),o.jsx(ti,{moduleName:e,triggerName:t,triggerType:"queue",title:`${t} Queue Logs`})]})},ly=()=>{const{moduleName:e,queueName:t}=Xl(),n=ln(),r=()=>{n(`/modules/${e}`)};return!e||!t?o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid queue parameters"}),o.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"})]}):o.jsx(sy,{moduleName:e,queueName:t,onBack:r})},iy=({moduleName:e,scheduleName:t,onBack:n})=>{const{data:r,isLoading:s,error:l}=Y0(t);if(s)return o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"animate-pulse",children:"Loading schedule details..."})});if(l||!r)return o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"text-red-600",children:["Error loading schedule: ",l==null?void 0:l.message]}),o.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 i=async()=>{try{const c=await fetch(`/console/schedules/${t}/trigger`,{method:"POST"});if(c.ok){const f=await c.json();alert(f.message||"Schedule triggered successfully")}else{const f=await c.json();alert(`Failed to trigger schedule: ${f.error}`)}}catch(c){console.error("Failed to trigger schedule:",c),alert("Failed to trigger schedule")}},a=async()=>{try{const c=r.job.enabled?"disable":"enable",f=await fetch(`/console/schedules/${t}/${c}`,{method:"PUT"});if(f.ok){const m=await f.json();alert(m.message||`Schedule ${c}d successfully`)}else{const m=await f.json();alert(`Failed to ${c} schedule: ${m.error}`)}}catch(c){console.error("Failed to toggle schedule:",c),alert("Failed to toggle schedule")}},u=c=>{const f=new Date(c),m=new Date,g=f.getTime()-m.getTime(),v=Math.floor(g/1e3),x=Math.floor(v/60),j=Math.floor(x/60),N=Math.floor(j/24);return N>0?`in ${N} days`:j>0?`in ${j} hours`:x>0?`in ${x} minutes`:v>0?`in ${v} seconds`:"now"};return o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{className:"flex items-center space-x-4",children:[o.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]}),o.jsxs("div",{children:[o.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t}),o.jsxs("p",{className:"text-gray-600",children:["Scheduled Job in ",e," module"]})]})]}),o.jsxs("div",{className:"flex space-x-2",children:[o.jsx("button",{onClick:i,className:"px-4 py-2 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 text-sm",children:"🚀 Trigger Now"}),o.jsx("button",{onClick:a,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"})]})]}),o.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[o.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Available Endpoints"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/schedules/",t]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Get schedule details"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/schedules/",t,"/trigger"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Trigger job now"})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/schedules/",t,"/enable"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Enable schedule"})]}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.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"}),o.jsxs("code",{className:"text-xs font-mono text-gray-700",children:["http://localhost:3000/schedules/",t,"/disable"]}),o.jsx("span",{className:"text-xs text-gray-500",children:"- Disable schedule"})]})]})]})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Status"}),o.jsx("p",{className:`text-2xl font-bold ${r.job.enabled?"text-green-600":"text-gray-400"}`,children:r.job.enabled?"Enabled":"Disabled"})]}),o.jsx("div",{className:`w-12 h-12 rounded-lg flex items-center justify-center ${r.job.enabled?"bg-green-100":"bg-gray-100"}`,children:o.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:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Running"}),o.jsx("p",{className:`text-2xl font-bold ${r.isRunning?"text-blue-600":"text-gray-400"}`,children:r.isRunning?"Yes":"No"})]}),o.jsx("div",{className:`w-12 h-12 rounded-lg flex items-center justify-center ${r.isRunning?"bg-blue-100":"bg-gray-100"}`,children:o.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:o.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"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Run Count"}),o.jsx("p",{className:"text-2xl font-bold text-purple-600",children:r.job.runCount||0})]}),o.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-purple-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.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"})})})]})}),o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Next Run"}),o.jsx("p",{className:"text-sm font-bold text-orange-600",children:u(r.job.nextRun)}),o.jsx("p",{className:"text-xs text-gray-500",children:new Date(r.job.nextRun).toLocaleString()})]}),o.jsx("div",{className:"w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center",children:o.jsx("svg",{className:"w-6 h-6 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.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"})})})]})})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Schedule Configuration"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Cron Expression"}),o.jsx("code",{className:"block text-sm font-mono bg-gray-50 p-2 rounded border",children:r.job.cronExpression})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Created At"}),o.jsx("div",{className:"text-sm text-gray-700",children:new Date(r.job.createdAt).toLocaleString()})]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Job ID"}),o.jsx("code",{className:"block text-xs font-mono bg-gray-50 p-2 rounded border break-all",children:r.job.id})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Timer Status"}),o.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})]})]})]})]}),o.jsx(ti,{moduleName:e,triggerName:t,triggerType:"schedule",title:`${t} Schedule Logs`})]})},oy=()=>{const{moduleName:e,scheduleName:t}=Xl(),n=ln(),r=()=>{n(`/modules/${e}`)};return!e||!t?o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid schedule parameters"}),o.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"})]}):o.jsx(iy,{moduleName:e,scheduleName:t,onBack:r})},ay=({moduleName:e,routeUrl:t,routeMethod:n,onBack:r})=>{const[s,l]=S.useState(!1),[i,a]=S.useState(n),[u,c]=S.useState("{}"),[f,m]=S.useState(`{
|
|
62
|
+
"Content-Type": "application/json"
|
|
63
|
+
}`),[g,v]=S.useState(null),[x,j]=S.useState(!1),N=async()=>{j(!0),v(null);try{const d=JSON.parse(f),p={method:i,headers:d};i!=="GET"&&i!=="HEAD"&&(p.body=u);const w=Date.now(),k=await fetch(`http://localhost:3000${t}`,p),C=Date.now();let R;const P=k.headers.get("content-type");P!=null&&P.includes("application/json")?R=await k.json():R=await k.text(),v({status:k.status,statusText:k.statusText,headers:Object.fromEntries(k.headers.entries()),data:R,duration:C-w})}catch(d){v({error:d instanceof Error?d.message:"Unknown error occurred",duration:0})}finally{j(!1)}},h=d=>{switch(d.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 o.jsxs("div",{className:"space-y-6",children:[o.jsx("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:o.jsx("div",{className:"flex items-center justify-between mb-6",children:o.jsxs("div",{className:"flex items-center space-x-4",children:[o.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]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[o.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded text-sm font-medium ${h(n)}`,children:n}),o.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:t})]}),o.jsxs("p",{className:"text-gray-600",children:["HTTP Endpoint in ",e," module"]})]})]})})}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border",children:[o.jsx("div",{className:"p-4 cursor-pointer hover:bg-gray-50 transition-colors border-b border-gray-200",onClick:()=>l(!s),children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Route Information"}),o.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:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),s&&o.jsx("div",{className:"p-6",children:o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Full URL"}),o.jsxs("code",{className:"block text-sm font-mono bg-gray-50 p-3 rounded border",children:["http://localhost:3000",t]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Method"}),o.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded text-sm font-medium ${h(n)}`,children:n})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-1",children:"Module"}),o.jsx("div",{className:"text-sm text-gray-900 bg-gray-50 p-2 rounded border",children:e})]})]})})]}),o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Test Route"}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Method"}),o.jsxs("select",{value:i,onChange:d=>a(d.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:[o.jsx("option",{value:"GET",children:"GET"}),o.jsx("option",{value:"POST",children:"POST"}),o.jsx("option",{value:"PUT",children:"PUT"}),o.jsx("option",{value:"DELETE",children:"DELETE"}),o.jsx("option",{value:"PATCH",children:"PATCH"}),o.jsx("option",{value:"HEAD",children:"HEAD"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Headers"}),o.jsx("textarea",{value:f,onChange:d=>m(d.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..."})]}),i!=="GET"&&i!=="HEAD"&&o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Request Body"}),o.jsx("textarea",{value:u,onChange:d=>c(d.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..."})]}),o.jsx("button",{onClick:N,disabled:x,className:"w-full px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 disabled:opacity-50",children:x?"Testing...":"Test Route"})]}),o.jsx("div",{className:"space-y-4",children:o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Response"}),g?o.jsxs("div",{className:"border border-gray-300 rounded-md",children:[o.jsx("div",{className:"p-3 border-b border-gray-200 bg-gray-50",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("span",{className:`inline-flex items-center px-2 py-1 rounded text-sm font-medium ${g.status>=200&&g.status<300?"bg-green-100 text-green-800":g.status>=400?"bg-red-100 text-red-800":"bg-yellow-100 text-yellow-800"}`,children:[g.status," ",g.statusText]}),o.jsxs("span",{className:"text-sm text-gray-600",children:[g.duration,"ms"]})]})}),g.headers&&Object.keys(g.headers).length>0&&o.jsxs("div",{className:"p-3 border-b border-gray-200",children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-2",children:"Response Headers:"}),o.jsx("pre",{className:"text-xs bg-gray-50 p-2 rounded overflow-x-auto",children:JSON.stringify(g.headers,null,2)})]}),o.jsxs("div",{className:"p-3",children:[o.jsx("div",{className:"text-xs font-medium text-gray-600 mb-2",children:"Response Body:"}),o.jsx("pre",{className:"text-sm bg-gray-50 p-3 rounded border overflow-x-auto max-h-64",children:g.error?`Error: ${g.error}`:typeof g.data=="string"?g.data:JSON.stringify(g.data,null,2)})]})]}):o.jsx("div",{className:"border border-gray-300 rounded-md p-8 text-center text-gray-500",children:'Click "Test Route" to see the response'})]})})]})]}),o.jsx(ti,{moduleName:e,triggerName:t,triggerType:"http",title:`${n} ${t} Logs`})]})},uy=()=>{const{moduleName:e}=Xl(),[t]=a0(),n=ln(),r=t.get("url"),s=t.get("method"),l=()=>{n(`/modules/${e}`)};return!e||!r||!s?o.jsxs("div",{className:"bg-white rounded-lg shadow-sm border p-6",children:[o.jsx("div",{className:"text-red-600",children:"Invalid route parameters"}),o.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"})]}):o.jsx(ay,{moduleName:e,routeUrl:decodeURIComponent(r),routeMethod:s,onBack:l})},cy=()=>o.jsx("header",{className:"bg-white shadow-sm border-b",children:o.jsx("div",{className:"container mx-auto px-4",children:o.jsx("div",{className:"flex items-center h-16",children:o.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"CloudNux Dev Console"})})})}),dy=new T0;function fy(){return o.jsx(D0,{client:dy,children:o.jsx(r0,{basename:"/console",children:o.jsxs("div",{className:"min-h-screen bg-gray-50",children:[o.jsx(cy,{}),o.jsx("main",{className:"container mx-auto px-4 py-6",children:o.jsxs(Og,{children:[o.jsx(dn,{path:"/",element:o.jsx(vc,{})}),o.jsx(dn,{path:"/modules",element:o.jsx(vc,{})}),o.jsx(dn,{path:"/modules/:moduleName",element:o.jsx(ry,{})}),o.jsx(dn,{path:"/modules/:moduleName/queues/:queueName",element:o.jsx(ly,{})}),o.jsx(dn,{path:"/modules/:moduleName/schedules/:scheduleName",element:o.jsx(oy,{})}),o.jsx(dn,{path:"/modules/:moduleName/routes",element:o.jsx(uy,{})})]})})]})})})}Oi.createRoot(document.getElementById("root")).render(o.jsx(_h.StrictMode,{children:o.jsx(fy,{})}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-1{height:.25rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-96{height:24rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.max-w-md{max-width:28rem}.shrink-0{flex-shrink:0}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-blue-100{--tw-border-opacity: 1;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-green-100{--tw-border-opacity: 1;border-color:rgb(220 252 231 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-purple-100{--tw-border-opacity: 1;border-color:rgb(243 232 255 / var(--tw-border-opacity, 1))}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-purple-600{--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.tracking-wide{letter-spacing:.025em}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-orange-800{--tw-text-opacity: 1;color:rgb(154 52 18 / var(--tw-text-opacity, 1))}.text-purple-300{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.hover\:bg-green-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:opacity-100{opacity:1}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>CloudNux Dev Console</title>
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BN_SuCnG.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BpV0XcCF.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudnux/dev-console",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Web-based control panel for CloudNux development",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc && vite build",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"typecheck": "tsc --noEmit",
|
|
11
|
+
"lint": "echo 'No linting configured yet'",
|
|
12
|
+
"clean": "rm -rf dist"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@tanstack/react-query": "^5.0.0",
|
|
16
|
+
"react": "^18.2.0",
|
|
17
|
+
"react-dom": "^18.2.0",
|
|
18
|
+
"react-hook-form": "^7.47.0",
|
|
19
|
+
"react-router": "^7.8.2"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/react": "^18.2.0",
|
|
23
|
+
"@types/react-dom": "^18.2.0",
|
|
24
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
25
|
+
"autoprefixer": "^10.4.16",
|
|
26
|
+
"postcss": "^8.4.31",
|
|
27
|
+
"tailwindcss": "^3.3.0",
|
|
28
|
+
"typescript": "^5.0.0",
|
|
29
|
+
"vite": "^5.0.0"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
]
|
|
34
|
+
}
|