badmfck-api-server 5.0.8 → 5.0.10
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/apiServer/APIService.d.ts +4 -0
- package/dist/apiServer/APIService.js +3 -3
- package/dist/apiServer/BaseEndpoint.js +2 -2
- package/dist/apiServer/LogService.d.ts +3 -0
- package/dist/apiServer/LogService.js +15 -4
- package/dist/apiServer/MysqlService.js +19 -19
- package/dist/apiServer/TimeframeService.js +3 -3
- package/dist/apiServer/db/MysqlAdapter.js +1 -1
- package/dist/apiServer/deployment/DeployerService.js +4 -4
- package/dist/apiServer/deployment/Notifier.js +3 -2
- package/dist/apiServer/external/ExternalService.js +3 -2
- package/dist/apiServer/external/MicroserviceClient.js +3 -2
- package/dist/apiServer/monitor/Monitor.d.ts +5 -0
- package/dist/apiServer/monitor/Monitor.js +114 -30
- package/dist/apiServer/monitor/MonitorAuth.d.ts +74 -0
- package/dist/apiServer/monitor/MonitorAuth.js +322 -0
- package/dist/apiServer/monitor/index.html +81 -69
- package/monitoring.help.md +266 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<!-- Build: 2026-
|
|
5
|
-
<script>var __ver = "1.0.
|
|
4
|
+
<!-- Build: 2026-10-14T13:16:34.697Z | Version: 1.0.20 -->
|
|
5
|
+
<script>var __ver = "1.0.20";</script>
|
|
6
6
|
<meta charset="UTF-8" />
|
|
7
7
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
var __host = "{{host}}";
|
|
12
12
|
var __title = "{{title}}";
|
|
13
13
|
</script>
|
|
14
|
-
<script type="module" crossorigin>var
|
|
14
|
+
<script type="module" crossorigin>var hx=Object.defineProperty;var mx=(e,t,n)=>t in e?hx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>mx(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Np={exports:{}},rl={},Mp={exports:{}},ue={};/**
|
|
15
15
|
* @license React
|
|
16
16
|
* react.production.min.js
|
|
17
17
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the MIT license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var
|
|
22
|
+
*/var us=Symbol.for("react.element"),gx=Symbol.for("react.portal"),xx=Symbol.for("react.fragment"),vx=Symbol.for("react.strict_mode"),yx=Symbol.for("react.profiler"),wx=Symbol.for("react.provider"),Sx=Symbol.for("react.context"),jx=Symbol.for("react.forward_ref"),kx=Symbol.for("react.suspense"),bx=Symbol.for("react.memo"),Ex=Symbol.for("react.lazy"),od=Symbol.iterator;function Cx(e){return e===null||typeof e!="object"?null:(e=od&&e[od]||e["@@iterator"],typeof e=="function"?e:null)}var Ap={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fp=Object.assign,Ip={};function Yr(e,t,n){this.props=e,this.context=t,this.refs=Ip,this.updater=n||Ap}Yr.prototype.isReactComponent={};Yr.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")};Yr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dp(){}Dp.prototype=Yr.prototype;function Wu(e,t,n){this.props=e,this.context=t,this.refs=Ip,this.updater=n||Ap}var Hu=Wu.prototype=new Dp;Hu.constructor=Wu;Fp(Hu,Yr.prototype);Hu.isPureReactComponent=!0;var sd=Array.isArray,$p=Object.prototype.hasOwnProperty,Vu={current:null},Bp={key:!0,ref:!0,__self:!0,__source:!0};function zp(e,t,n){var r,o={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)$p.call(t,r)&&!Bp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:us,type:e,key:s,ref:l,props:o,_owner:Vu.current}}function Tx(e,t){return{$$typeof:us,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qu(e){return typeof e=="object"&&e!==null&&e.$$typeof===us}function Rx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var id=/\/+/g;function Il(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Rx(""+e.key):t.toString(36)}function Ys(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case us:case gx:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Il(l,0):r,sd(o)?(n="",e!=null&&(n=e.replace(id,"$&/")+"/"),Ys(o,t,n,"",function(c){return c})):o!=null&&(qu(o)&&(o=Tx(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(id,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",sd(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+Il(s,a);l+=Ys(s,t,n,u,o)}else if(u=Cx(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+Il(s,a++),l+=Ys(s,t,n,u,o);else if(s==="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 l}function xs(e,t,n){if(e==null)return e;var r=[],o=0;return Ys(e,r,"","",function(s){return t.call(n,s,o++)}),r}function _x(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 nt={current:null},Xs={transition:null},Px={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:Xs,ReactCurrentOwner:Vu};function Up(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:xs,forEach:function(e,t,n){xs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xs(e,function(){t++}),t},toArray:function(e){return xs(e,function(t){return t})||[]},only:function(e){if(!qu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=Yr;ue.Fragment=xx;ue.Profiler=yx;ue.PureComponent=Wu;ue.StrictMode=vx;ue.Suspense=kx;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Px;ue.act=Up;ue.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=Fp({},e.props),o=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=Vu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)$p.call(t,u)&&!Bp.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:us,type:e.type,key:o,ref:s,props:r,_owner:l}};ue.createContext=function(e){return e={$$typeof:Sx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wx,_context:e},e.Consumer=e};ue.createElement=zp;ue.createFactory=function(e){var t=zp.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:jx,render:e}};ue.isValidElement=qu;ue.lazy=function(e){return{$$typeof:Ex,_payload:{_status:-1,_result:e},_init:_x}};ue.memo=function(e,t){return{$$typeof:bx,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=Xs.transition;Xs.transition={};try{e()}finally{Xs.transition=t}};ue.unstable_act=Up;ue.useCallback=function(e,t){return nt.current.useCallback(e,t)};ue.useContext=function(e){return nt.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};ue.useEffect=function(e,t){return nt.current.useEffect(e,t)};ue.useId=function(){return nt.current.useId()};ue.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return nt.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)};ue.useRef=function(e){return nt.current.useRef(e)};ue.useState=function(e){return nt.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return nt.current.useTransition()};ue.version="18.3.1";Mp.exports=ue;var A=Mp.exports;const st=nl(A);/**
|
|
23
23
|
* @license React
|
|
24
24
|
* react-jsx-runtime.production.min.js
|
|
25
25
|
*
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the MIT license found in the
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/var
|
|
30
|
+
*/var Lx=A,Ox=Symbol.for("react.element"),Nx=Symbol.for("react.fragment"),Mx=Object.prototype.hasOwnProperty,Ax=Lx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fx={key:!0,ref:!0,__self:!0,__source:!0};function Wp(e,t,n){var r,o={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Mx.call(t,r)&&!Fx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Ox,type:e,key:s,ref:l,props:o,_owner:Ax.current}}rl.Fragment=Nx;rl.jsx=Wp;rl.jsxs=Wp;Np.exports=rl;var i=Np.exports,La={},Hp={exports:{}},xt={},Vp={exports:{}},qp={};/**
|
|
31
31
|
* @license React
|
|
32
32
|
* scheduler.production.min.js
|
|
33
33
|
*
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/(function(e){function t(
|
|
38
|
+
*/(function(e){function t(z,K){var J=z.length;z.push(K);e:for(;0<J;){var re=J-1>>>1,M=z[re];if(0<o(M,K))z[re]=K,z[J]=M,J=re;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var K=z[0],J=z.pop();if(J!==K){z[0]=J;e:for(var re=0,M=z.length,ee=M>>>1;re<ee;){var te=2*(re+1)-1,Ie=z[te],ce=te+1,Ue=z[ce];if(0>o(Ie,J))ce<M&&0>o(Ue,Ie)?(z[re]=Ue,z[ce]=J,re=ce):(z[re]=Ie,z[te]=J,re=te);else if(ce<M&&0>o(Ue,J))z[re]=Ue,z[ce]=J,re=ce;else break e}}return K}function o(z,K){var J=z.sortIndex-K.sortIndex;return J!==0?J:z.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],c=[],p=1,d=null,f=3,b=!1,k=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(z){for(var K=n(c);K!==null;){if(K.callback===null)r(c);else if(K.startTime<=z)r(c),K.sortIndex=K.expirationTime,t(u,K);else break;K=n(c)}}function w(z){if(v=!1,m(z),!k)if(n(u)!==null)k=!0,W(S);else{var K=n(c);K!==null&&Y(w,K.startTime-z)}}function S(z,K){k=!1,v&&(v=!1,g(y),y=-1),b=!0;var J=f;try{for(m(K),d=n(u);d!==null&&(!(d.expirationTime>K)||z&&!j());){var re=d.callback;if(typeof re=="function"){d.callback=null,f=d.priorityLevel;var M=re(d.expirationTime<=K);K=e.unstable_now(),typeof M=="function"?d.callback=M:d===n(u)&&r(u),m(K)}else r(u);d=n(u)}if(d!==null)var ee=!0;else{var te=n(c);te!==null&&Y(w,te.startTime-K),ee=!1}return ee}finally{d=null,f=J,b=!1}}var T=!1,x=null,y=-1,E=5,_=-1;function j(){return!(e.unstable_now()-_<E)}function R(){if(x!==null){var z=e.unstable_now();_=z;var K=!0;try{K=x(!0,z)}finally{K?P():(T=!1,x=null)}}else T=!1}var P;if(typeof h=="function")P=function(){h(R)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,F=N.port2;N.port1.onmessage=R,P=function(){F.postMessage(null)}}else P=function(){C(R,0)};function W(z){x=z,T||(T=!0,P())}function Y(z,K){y=C(function(){z(e.unstable_now())},K)}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(z){z.callback=null},e.unstable_continueExecution=function(){k||b||(k=!0,W(S))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(z){switch(f){case 1:case 2:case 3:var K=3;break;default:K=f}var J=f;f=K;try{return z()}finally{f=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var J=f;f=z;try{return K()}finally{f=J}},e.unstable_scheduleCallback=function(z,K,J){var re=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?re+J:re):J=re,z){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=J+M,z={id:p++,callback:K,priorityLevel:z,startTime:J,expirationTime:M,sortIndex:-1},J>re?(z.sortIndex=J,t(c,z),n(u)===null&&z===n(c)&&(v?(g(y),y=-1):v=!0,Y(w,J-re))):(z.sortIndex=M,t(u,z),k||b||(k=!0,W(S))),z},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(z){var K=f;return function(){var J=f;f=K;try{return z.apply(this,arguments)}finally{f=J}}}})(qp);Vp.exports=qp;var Ix=Vp.exports;/**
|
|
39
39
|
* @license React
|
|
40
40
|
* react-dom.production.min.js
|
|
41
41
|
*
|
|
@@ -43,36 +43,23 @@
|
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var
|
|
47
|
-
`+
|
|
48
|
-
`),s=
|
|
49
|
-
`),
|
|
50
|
-
`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Ua=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Bo(e):""}function _g(e){switch(e.tag){case 5:return Bo(e.type);case 16:return Bo("Lazy");case 13:return Bo("Suspense");case 19:return Bo("SuspenseList");case 0:case 2:case 15:return e=qa(e.type,!1),e;case 11:return e=qa(e.type.render,!1),e;case 1:return e=qa(e.type,!0),e;default:return""}}function w0(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 vn:return"Fragment";case gn:return"Portal";case y0:return"Profiler";case Pu:return"StrictMode";case C0:return"Suspense";case E0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ep:return(e.displayName||"Context")+".Consumer";case Cp:return(e._context.displayName||"Context")+".Provider";case Ou:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lu:return t=e.displayName||null,t!==null?t:w0(e.type)||"Memo";case pr:t=e._payload,e=e._init;try{return w0(e(t))}catch{}}return null}function Rg(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 w0(t);case 8:return t===Pu?"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 Fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tg(e){var t=Sp(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){e._valueTracker||(e._valueTracker=Tg(e))}function bp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Sp(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ai(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 S0(e,t){var r=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function nd(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jp(e,t){t=t.checked,t!=null&&Tu(e,"checked",t,!1)}function b0(e,t){jp(e,t);var r=Fr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?j0(e,t.type,r):t.hasOwnProperty("defaultValue")&&j0(e,t.type,Fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function od(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function j0(e,t,r){(t!=="number"||Ai(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ao=Array.isArray;function Dn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Fr(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function k0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sd(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(W(92));if(Ao(r)){if(1<r.length)throw Error(W(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Fr(r)}}function kp(e,t){var r=Fr(t.value),n=Fr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function id(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Bp(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 B0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Bp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var As,Ap=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(As=As||document.createElement("div"),As.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=As.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ko(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Lo={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},Pg=["Webkit","ms","Moz","O"];Object.keys(Lo).forEach(function(e){Pg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lo[t]=Lo[e]})});function Fp(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Lo.hasOwnProperty(e)&&Lo[e]?(""+t).trim():t+"px"}function Dp(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Fp(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Og=ye({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 A0(e,t){if(t){if(Og[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function F0(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 D0=null;function Nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _0=null,_n=null,Rn=null;function ad(e){if(e=ms(e)){if(typeof _0!="function")throw Error(W(280));var t=e.stateNode;t&&(t=xa(t),_0(e.stateNode,e.type,t))}}function _p(e){_n?Rn?Rn.push(e):Rn=[e]:_n=e}function Rp(){if(_n){var e=_n,t=Rn;if(Rn=_n=null,ad(e),t)for(e=0;e<t.length;e++)ad(t[e])}}function Tp(e,t){return e(t)}function Pp(){}var Va=!1;function Op(e,t,r){if(Va)return e(t,r);Va=!0;try{return Tp(e,t,r)}finally{Va=!1,(_n!==null||Rn!==null)&&(Pp(),Rp())}}function Go(e,t){var r=e.stateNode;if(r===null)return null;var n=xa(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(W(231,t,typeof r));return r}var R0=!1;if(rr)try{var lo={};Object.defineProperty(lo,"passive",{get:function(){R0=!0}}),window.addEventListener("test",lo,lo),window.removeEventListener("test",lo,lo)}catch{R0=!1}function Lg(e,t,r,n,o,s,i,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(f){this.onError(f)}}var No=!1,Fi=null,Di=!1,T0=null,Ng={onError:function(e){No=!0,Fi=e}};function zg(e,t,r,n,o,s,i,l,c){No=!1,Fi=null,Lg.apply(Ng,arguments)}function Ig(e,t,r,n,o,s,i,l,c){if(zg.apply(this,arguments),No){if(No){var u=Fi;No=!1,Fi=null}else throw Error(W(198));Di||(Di=!0,T0=u)}}function sn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Lp(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 ld(e){if(sn(e)!==e)throw Error(W(188))}function Mg(e){var t=e.alternate;if(!t){if(t=sn(e),t===null)throw Error(W(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var s=o.alternate;if(s===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===r)return ld(o),e;if(s===n)return ld(o),t;s=s.sibling}throw Error(W(188))}if(r.return!==n.return)r=o,n=s;else{for(var i=!1,l=o.child;l;){if(l===r){i=!0,r=o,n=s;break}if(l===n){i=!0,n=o,r=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===r){i=!0,r=s,n=o;break}if(l===n){i=!0,n=s,r=o;break}l=l.sibling}if(!i)throw Error(W(189))}}if(r.alternate!==n)throw Error(W(190))}if(r.tag!==3)throw Error(W(188));return r.stateNode.current===r?e:t}function Np(e){return e=Mg(e),e!==null?zp(e):null}function zp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zp(e);if(t!==null)return t;e=e.sibling}return null}var Ip=xt.unstable_scheduleCallback,ud=xt.unstable_cancelCallback,$g=xt.unstable_shouldYield,Hg=xt.unstable_requestPaint,Ee=xt.unstable_now,Wg=xt.unstable_getCurrentPriorityLevel,zu=xt.unstable_ImmediatePriority,Mp=xt.unstable_UserBlockingPriority,_i=xt.unstable_NormalPriority,Ug=xt.unstable_LowPriority,$p=xt.unstable_IdlePriority,ua=null,Vt=null;function qg(e){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(ua,e,void 0,(e.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:Kg,Vg=Math.log,Qg=Math.LN2;function Kg(e){return e>>>=0,e===0?32:31-(Vg(e)/Qg|0)|0}var Fs=64,Ds=4194304;function Fo(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 Ri(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,s=e.pingedLanes,i=r&268435455;if(i!==0){var l=i&~o;l!==0?n=Fo(l):(s&=i,s!==0&&(n=Fo(s)))}else i=r&~o,i!==0?n=Fo(i):s!==0&&(n=Fo(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Tt(t),o=1<<r,n|=e[r],t&=~o;return n}function Gg(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 Xg(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Tt(s),l=1<<i,c=o[i];c===-1?(!(l&r)||l&n)&&(o[i]=Gg(l,t)):c<=t&&(e.expiredLanes|=l),s&=~l}}function P0(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hp(){var e=Fs;return Fs<<=1,!(Fs&4194240)&&(Fs=64),e}function Qa(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ps(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=r}function Yg(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Tt(r),s=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~s}}function Iu(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Tt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var ce=0;function Wp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Up,Mu,qp,Vp,Qp,O0=!1,_s=[],Cr=null,Er=null,wr=null,Xo=new Map,Yo=new Map,mr=[],Jg="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 cd(e,t){switch(e){case"focusin":case"focusout":Cr=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":wr=null;break;case"pointerover":case"pointerout":Xo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yo.delete(t.pointerId)}}function uo(e,t,r,n,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[o]},t!==null&&(t=ms(t),t!==null&&Mu(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Zg(e,t,r,n,o){switch(t){case"focusin":return Cr=uo(Cr,e,t,r,n,o),!0;case"dragenter":return Er=uo(Er,e,t,r,n,o),!0;case"mouseover":return wr=uo(wr,e,t,r,n,o),!0;case"pointerover":var s=o.pointerId;return Xo.set(s,uo(Xo.get(s)||null,e,t,r,n,o)),!0;case"gotpointercapture":return s=o.pointerId,Yo.set(s,uo(Yo.get(s)||null,e,t,r,n,o)),!0}return!1}function Kp(e){var t=Hr(e.target);if(t!==null){var r=sn(t);if(r!==null){if(t=r.tag,t===13){if(t=Lp(r),t!==null){e.blockedOn=t,Qp(e.priority,function(){qp(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=L0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);D0=n,r.target.dispatchEvent(n),D0=null}else return t=ms(r),t!==null&&Mu(t),e.blockedOn=r,!1;t.shift()}return!0}function dd(e,t,r){ai(e)&&r.delete(t)}function ev(){O0=!1,Cr!==null&&ai(Cr)&&(Cr=null),Er!==null&&ai(Er)&&(Er=null),wr!==null&&ai(wr)&&(wr=null),Xo.forEach(dd),Yo.forEach(dd)}function co(e,t){e.blockedOn===t&&(e.blockedOn=null,O0||(O0=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,ev)))}function Jo(e){function t(o){return co(o,e)}if(0<_s.length){co(_s[0],e);for(var r=1;r<_s.length;r++){var n=_s[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Cr!==null&&co(Cr,e),Er!==null&&co(Er,e),wr!==null&&co(wr,e),Xo.forEach(t),Yo.forEach(t),r=0;r<mr.length;r++)n=mr[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<mr.length&&(r=mr[0],r.blockedOn===null);)Kp(r),r.blockedOn===null&&mr.shift()}var Tn=ir.ReactCurrentBatchConfig,Ti=!0;function tv(e,t,r,n){var o=ce,s=Tn.transition;Tn.transition=null;try{ce=1,$u(e,t,r,n)}finally{ce=o,Tn.transition=s}}function rv(e,t,r,n){var o=ce,s=Tn.transition;Tn.transition=null;try{ce=4,$u(e,t,r,n)}finally{ce=o,Tn.transition=s}}function $u(e,t,r,n){if(Ti){var o=L0(e,t,r,n);if(o===null)nl(e,t,n,Pi,r),cd(e,n);else if(Zg(o,e,t,r,n))n.stopPropagation();else if(cd(e,n),t&4&&-1<Jg.indexOf(e)){for(;o!==null;){var s=ms(o);if(s!==null&&Up(s),s=L0(e,t,r,n),s===null&&nl(e,t,n,Pi,r),s===o)break;o=s}o!==null&&n.stopPropagation()}else nl(e,t,n,null,r)}}var Pi=null;function L0(e,t,r,n){if(Pi=null,e=Nu(n),e=Hr(e),e!==null)if(t=sn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Lp(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Pi=e,null}function Gp(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(Wg()){case zu:return 1;case Mp:return 4;case _i:case Ug:return 16;case $p:return 536870912;default:return 16}default:return 16}}var vr=null,Hu=null,li=null;function Xp(){if(li)return li;var e,t=Hu,r=t.length,n,o="value"in vr?vr.value:vr.textContent,s=o.length;for(e=0;e<r&&t[e]===o[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===o[s-n];n++);return li=o.slice(e,1<n?1-n:void 0)}function ui(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 Rs(){return!0}function fd(){return!1}function ht(e){function t(r,n,o,s,i){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Rs:fd,this.isPropagationStopped=fd,this}return ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Rs)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Rs)},persist:function(){},isPersistent:Rs}),t}var Xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=ht(Xn),hs=ye({},Xn,{view:0,detail:0}),nv=ht(hs),Ka,Ga,fo,ca=ye({},hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uu,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!==fo&&(fo&&e.type==="mousemove"?(Ka=e.screenX-fo.screenX,Ga=e.screenY-fo.screenY):Ga=Ka=0,fo=e),Ka)},movementY:function(e){return"movementY"in e?e.movementY:Ga}}),xd=ht(ca),ov=ye({},ca,{dataTransfer:0}),sv=ht(ov),iv=ye({},hs,{relatedTarget:0}),Xa=ht(iv),av=ye({},Xn,{animationName:0,elapsedTime:0,pseudoElement:0}),lv=ht(av),uv=ye({},Xn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cv=ht(uv),dv=ye({},Xn,{data:0}),pd=ht(dv),fv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xv={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"},pv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pv[e])?!!t[e]:!1}function Uu(){return hv}var mv=ye({},hs,{key:function(e){if(e.key){var t=fv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ui(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uu,charCode:function(e){return e.type==="keypress"?ui(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ui(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gv=ht(mv),vv=ye({},ca,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hd=ht(vv),yv=ye({},hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uu}),Cv=ht(yv),Ev=ye({},Xn,{propertyName:0,elapsedTime:0,pseudoElement:0}),wv=ht(Ev),Sv=ye({},ca,{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}),bv=ht(Sv),jv=[9,13,27,32],qu=rr&&"CompositionEvent"in window,zo=null;rr&&"documentMode"in document&&(zo=document.documentMode);var kv=rr&&"TextEvent"in window&&!zo,Yp=rr&&(!qu||zo&&8<zo&&11>=zo),md=" ",gd=!1;function Jp(e,t){switch(e){case"keyup":return jv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yn=!1;function Bv(e,t){switch(e){case"compositionend":return Zp(t);case"keypress":return t.which!==32?null:(gd=!0,md);case"textInput":return e=t.data,e===md&&gd?null:e;default:return null}}function Av(e,t){if(yn)return e==="compositionend"||!qu&&Jp(e,t)?(e=Xp(),li=Hu=vr=null,yn=!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 Yp&&t.locale!=="ko"?null:t.data;default:return null}}var Fv={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 vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fv[e.type]:t==="textarea"}function eh(e,t,r,n){_p(n),t=Oi(t,"onChange"),0<t.length&&(r=new Wu("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Io=null,Zo=null;function Dv(e){dh(e,0)}function da(e){var t=wn(e);if(bp(t))return e}function _v(e,t){if(e==="change")return t}var th=!1;if(rr){var Ya;if(rr){var Ja="oninput"in document;if(!Ja){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),Ja=typeof yd.oninput=="function"}Ya=Ja}else Ya=!1;th=Ya&&(!document.documentMode||9<document.documentMode)}function Cd(){Io&&(Io.detachEvent("onpropertychange",rh),Zo=Io=null)}function rh(e){if(e.propertyName==="value"&&da(Zo)){var t=[];eh(t,Zo,e,Nu(e)),Op(Dv,t)}}function Rv(e,t,r){e==="focusin"?(Cd(),Io=t,Zo=r,Io.attachEvent("onpropertychange",rh)):e==="focusout"&&Cd()}function Tv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return da(Zo)}function Pv(e,t){if(e==="click")return da(t)}function Ov(e,t){if(e==="input"||e==="change")return da(t)}function Lv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:Lv;function es(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!v0.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function Ed(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wd(e,t){var r=Ed(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ed(r)}}function nh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oh(){for(var e=window,t=Ai();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ai(e.document)}return t}function Vu(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 Nv(e){var t=oh(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&nh(r.ownerDocument.documentElement,r)){if(n!==null&&Vu(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,s=Math.min(n.start,o);n=n.end===void 0?s:Math.min(n.end,o),!e.extend&&s>n&&(o=n,n=s,s=o),o=wd(r,s);var i=wd(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zv=rr&&"documentMode"in document&&11>=document.documentMode,Cn=null,N0=null,Mo=null,z0=!1;function Sd(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;z0||Cn==null||Cn!==Ai(n)||(n=Cn,"selectionStart"in n&&Vu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mo&&es(Mo,n)||(Mo=n,n=Oi(N0,"onSelect"),0<n.length&&(t=new Wu("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Cn)))}function Ts(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var En={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},Za={},sh={};rr&&(sh=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);function fa(e){if(Za[e])return Za[e];if(!En[e])return e;var t=En[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in sh)return Za[e]=t[r];return e}var ih=fa("animationend"),ah=fa("animationiteration"),lh=fa("animationstart"),uh=fa("transitionend"),ch=new Map,bd="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 Rr(e,t){ch.set(e,t),on(t,[e])}for(var el=0;el<bd.length;el++){var tl=bd[el],Iv=tl.toLowerCase(),Mv=tl[0].toUpperCase()+tl.slice(1);Rr(Iv,"on"+Mv)}Rr(ih,"onAnimationEnd");Rr(ah,"onAnimationIteration");Rr(lh,"onAnimationStart");Rr("dblclick","onDoubleClick");Rr("focusin","onFocus");Rr("focusout","onBlur");Rr(uh,"onTransitionEnd");Ln("onMouseEnter",["mouseout","mouseover"]);Ln("onMouseLeave",["mouseout","mouseover"]);Ln("onPointerEnter",["pointerout","pointerover"]);Ln("onPointerLeave",["pointerout","pointerover"]);on("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));on("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));on("onBeforeInput",["compositionend","keypress","textInput","paste"]);on("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));on("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));on("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Do="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(" "),$v=new Set("cancel close invalid load scroll toggle".split(" ").concat(Do));function jd(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Ig(n,t,void 0,e),e.currentTarget=null}function dh(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var i=n.length-1;0<=i;i--){var l=n[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&o.isPropagationStopped())break e;jd(o,l,u),s=c}else for(i=0;i<n.length;i++){if(l=n[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&o.isPropagationStopped())break e;jd(o,l,u),s=c}}}if(Di)throw e=T0,Di=!1,T0=null,e}function xe(e,t){var r=t[W0];r===void 0&&(r=t[W0]=new Set);var n=e+"__bubble";r.has(n)||(fh(t,e,2,!1),r.add(n))}function rl(e,t,r){var n=0;t&&(n|=4),fh(r,e,n,t)}var Ps="_reactListening"+Math.random().toString(36).slice(2);function ts(e){if(!e[Ps]){e[Ps]=!0,yp.forEach(function(r){r!=="selectionchange"&&($v.has(r)||rl(r,!1,e),rl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ps]||(t[Ps]=!0,rl("selectionchange",!1,t))}}function fh(e,t,r,n){switch(Gp(t)){case 1:var o=tv;break;case 4:o=rv;break;default:o=$u}r=o.bind(null,t,r,e),o=void 0,!R0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function nl(e,t,r,n,o){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var l=n.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=n.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;l!==null;){if(i=Hr(l),i===null)return;if(c=i.tag,c===5||c===6){n=s=i;continue e}l=l.parentNode}}n=n.return}Op(function(){var u=s,f=Nu(r),h=[];e:{var d=ch.get(e);if(d!==void 0){var C=Wu,y=e;switch(e){case"keypress":if(ui(r)===0)break e;case"keydown":case"keyup":C=gv;break;case"focusin":y="focus",C=Xa;break;case"focusout":y="blur",C=Xa;break;case"beforeblur":case"afterblur":C=Xa;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=sv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=Cv;break;case ih:case ah:case lh:C=lv;break;case uh:C=wv;break;case"scroll":C=nv;break;case"wheel":C=bv;break;case"copy":case"cut":case"paste":C=cv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=hd}var m=(t&4)!==0,E=!m&&e==="scroll",v=m?d!==null?d+"Capture":null:d;m=[];for(var x=u,p;x!==null;){p=x;var g=p.stateNode;if(p.tag===5&&g!==null&&(p=g,v!==null&&(g=Go(x,v),g!=null&&m.push(rs(x,g,p)))),E)break;x=x.return}0<m.length&&(d=new C(d,y,null,r,f),h.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",d&&r!==D0&&(y=r.relatedTarget||r.fromElement)&&(Hr(y)||y[nr]))break e;if((C||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,C?(y=r.relatedTarget||r.toElement,C=u,y=y?Hr(y):null,y!==null&&(E=sn(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(C=null,y=u),C!==y)){if(m=xd,g="onMouseLeave",v="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(m=hd,g="onPointerLeave",v="onPointerEnter",x="pointer"),E=C==null?d:wn(C),p=y==null?d:wn(y),d=new m(g,x+"leave",C,r,f),d.target=E,d.relatedTarget=p,g=null,Hr(f)===u&&(m=new m(v,x+"enter",y,r,f),m.target=p,m.relatedTarget=E,g=m),E=g,C&&y)t:{for(m=C,v=y,x=0,p=m;p;p=dn(p))x++;for(p=0,g=v;g;g=dn(g))p++;for(;0<x-p;)m=dn(m),x--;for(;0<p-x;)v=dn(v),p--;for(;x--;){if(m===v||v!==null&&m===v.alternate)break t;m=dn(m),v=dn(v)}m=null}else m=null;C!==null&&kd(h,d,C,m,!1),y!==null&&E!==null&&kd(h,E,y,m,!0)}}e:{if(d=u?wn(u):window,C=d.nodeName&&d.nodeName.toLowerCase(),C==="select"||C==="input"&&d.type==="file")var S=_v;else if(vd(d))if(th)S=Ov;else{S=Tv;var b=Rv}else(C=d.nodeName)&&C.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=Pv);if(S&&(S=S(e,u))){eh(h,S,r,f);break e}b&&b(e,d,u),e==="focusout"&&(b=d._wrapperState)&&b.controlled&&d.type==="number"&&j0(d,"number",d.value)}switch(b=u?wn(u):window,e){case"focusin":(vd(b)||b.contentEditable==="true")&&(Cn=b,N0=u,Mo=null);break;case"focusout":Mo=N0=Cn=null;break;case"mousedown":z0=!0;break;case"contextmenu":case"mouseup":case"dragend":z0=!1,Sd(h,r,f);break;case"selectionchange":if(zv)break;case"keydown":case"keyup":Sd(h,r,f)}var w;if(qu)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else yn?Jp(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(Yp&&r.locale!=="ko"&&(yn||j!=="onCompositionStart"?j==="onCompositionEnd"&&yn&&(w=Xp()):(vr=f,Hu="value"in vr?vr.value:vr.textContent,yn=!0)),b=Oi(u,j),0<b.length&&(j=new pd(j,e,null,r,f),h.push({event:j,listeners:b}),w?j.data=w:(w=Zp(r),w!==null&&(j.data=w)))),(w=kv?Bv(e,r):Av(e,r))&&(u=Oi(u,"onBeforeInput"),0<u.length&&(f=new pd("onBeforeInput","beforeinput",null,r,f),h.push({event:f,listeners:u}),f.data=w))}dh(h,t)})}function rs(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Oi(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Go(e,r),s!=null&&n.unshift(rs(e,s,o)),s=Go(e,t),s!=null&&n.push(rs(e,s,o))),e=e.return}return n}function dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function kd(e,t,r,n,o){for(var s=t._reactName,i=[];r!==null&&r!==n;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&u!==null&&(l=u,o?(c=Go(r,s),c!=null&&i.unshift(rs(r,c,l))):o||(c=Go(r,s),c!=null&&i.push(rs(r,c,l)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var Hv=/\r\n?/g,Wv=/\u0000|\uFFFD/g;function Bd(e){return(typeof e=="string"?e:""+e).replace(Hv,`
|
|
51
|
-
`).replace(Wv,"")}function Os(e,t,r){if(t=Bd(t),Bd(e)!==t&&r)throw Error(W(425))}function Li(){}var I0=null,M0=null;function $0(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 H0=typeof setTimeout=="function"?setTimeout:void 0,Uv=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(Vv)}:H0;function Vv(e){setTimeout(function(){throw e})}function ol(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),Jo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Jo(t)}function Sr(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 Fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Yn=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Yn,ns="__reactProps$"+Yn,nr="__reactContainer$"+Yn,W0="__reactEvents$"+Yn,Qv="__reactListeners$"+Yn,Kv="__reactHandles$"+Yn;function Hr(e){var t=e[Ut];if(t)return t;for(var r=e.parentNode;r;){if(t=r[nr]||r[Ut]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Fd(e);e!==null;){if(r=e[Ut])return r;e=Fd(e)}return t}e=r,r=e.parentNode}return null}function ms(e){return e=e[Ut]||e[nr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function xa(e){return e[ns]||null}var U0=[],Sn=-1;function Tr(e){return{current:e}}function he(e){0>Sn||(e.current=U0[Sn],U0[Sn]=null,Sn--)}function de(e,t){Sn++,U0[Sn]=e.current,e.current=t}var Dr={},We=Tr(Dr),tt=Tr(!1),Yr=Dr;function Nn(e,t){var r=e.type.contextTypes;if(!r)return Dr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in r)o[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function Ni(){he(tt),he(We)}function Dd(e,t,r){if(We.current!==Dr)throw Error(W(168));de(We,t),de(tt,r)}function xh(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(W(108,Rg(e)||"Unknown",o));return ye({},r,n)}function zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,Yr=We.current,de(We,e),de(tt,tt.current),!0}function _d(e,t,r){var n=e.stateNode;if(!n)throw Error(W(169));r?(e=xh(e,t,Yr),n.__reactInternalMemoizedMergedChildContext=e,he(tt),he(We),de(We,e)):he(tt),de(tt,r)}var Jt=null,pa=!1,sl=!1;function ph(e){Jt===null?Jt=[e]:Jt.push(e)}function Gv(e){pa=!0,ph(e)}function Pr(){if(!sl&&Jt!==null){sl=!0;var e=0,t=ce;try{var r=Jt;for(ce=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Jt=null,pa=!1}catch(o){throw Jt!==null&&(Jt=Jt.slice(e+1)),Ip(zu,Pr),o}finally{ce=t,sl=!1}}return null}var bn=[],jn=0,Ii=null,Mi=0,vt=[],yt=0,Jr=null,Zt=1,er="";function Ir(e,t){bn[jn++]=Mi,bn[jn++]=Ii,Ii=e,Mi=t}function hh(e,t,r){vt[yt++]=Zt,vt[yt++]=er,vt[yt++]=Jr,Jr=e;var n=Zt;e=er;var o=32-Tt(n)-1;n&=~(1<<o),r+=1;var s=32-Tt(t)+o;if(30<s){var i=o-o%5;s=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Zt=1<<32-Tt(t)+o|r<<o|n,er=s+e}else Zt=1<<s|r<<o|n,er=e}function Qu(e){e.return!==null&&(Ir(e,1),hh(e,1,0))}function Ku(e){for(;e===Ii;)Ii=bn[--jn],bn[jn]=null,Mi=bn[--jn],bn[jn]=null;for(;e===Jr;)Jr=vt[--yt],vt[yt]=null,er=vt[--yt],vt[yt]=null,Zt=vt[--yt],vt[yt]=null}var ft=null,ct=null,me=!1,Rt=null;function mh(e,t){var r=Ct(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Rd(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ft=e,ct=Sr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ft=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Jr!==null?{id:Zt,overflow:er}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ct(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ft=e,ct=null,!0):!1;default:return!1}}function q0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function V0(e){if(me){var t=ct;if(t){var r=t;if(!Rd(e,t)){if(q0(e))throw Error(W(418));t=Sr(r.nextSibling);var n=ft;t&&Rd(e,t)?mh(n,r):(e.flags=e.flags&-4097|2,me=!1,ft=e)}}else{if(q0(e))throw Error(W(418));e.flags=e.flags&-4097|2,me=!1,ft=e}}}function Td(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ft=e}function Ls(e){if(e!==ft)return!1;if(!me)return Td(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$0(e.type,e.memoizedProps)),t&&(t=ct)){if(q0(e))throw gh(),Error(W(418));for(;t;)mh(e,t),t=Sr(t.nextSibling)}if(Td(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ct=Sr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=ft?Sr(e.stateNode.nextSibling):null;return!0}function gh(){for(var e=ct;e;)e=Sr(e.nextSibling)}function zn(){ct=ft=null,me=!1}function Gu(e){Rt===null?Rt=[e]:Rt.push(e)}var Xv=ir.ReactCurrentBatchConfig;function xo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(W(309));var n=r.stateNode}if(!n)throw Error(W(147,e));var o=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(W(284));if(!r._owner)throw Error(W(290,e))}return e}function Ns(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Pd(e){var t=e._init;return t(e._payload)}function vh(e){function t(v,x){if(e){var p=v.deletions;p===null?(v.deletions=[x],v.flags|=16):p.push(x)}}function r(v,x){if(!e)return null;for(;x!==null;)t(v,x),x=x.sibling;return null}function n(v,x){for(v=new Map;x!==null;)x.key!==null?v.set(x.key,x):v.set(x.index,x),x=x.sibling;return v}function o(v,x){return v=Br(v,x),v.index=0,v.sibling=null,v}function s(v,x,p){return v.index=p,e?(p=v.alternate,p!==null?(p=p.index,p<x?(v.flags|=2,x):p):(v.flags|=2,x)):(v.flags|=1048576,x)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,x,p,g){return x===null||x.tag!==6?(x=fl(p,v.mode,g),x.return=v,x):(x=o(x,p),x.return=v,x)}function c(v,x,p,g){var S=p.type;return S===vn?f(v,x,p.props.children,g,p.key):x!==null&&(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===pr&&Pd(S)===x.type)?(g=o(x,p.props),g.ref=xo(v,x,p),g.return=v,g):(g=mi(p.type,p.key,p.props,null,v.mode,g),g.ref=xo(v,x,p),g.return=v,g)}function u(v,x,p,g){return x===null||x.tag!==4||x.stateNode.containerInfo!==p.containerInfo||x.stateNode.implementation!==p.implementation?(x=xl(p,v.mode,g),x.return=v,x):(x=o(x,p.children||[]),x.return=v,x)}function f(v,x,p,g,S){return x===null||x.tag!==7?(x=Kr(p,v.mode,g,S),x.return=v,x):(x=o(x,p),x.return=v,x)}function h(v,x,p){if(typeof x=="string"&&x!==""||typeof x=="number")return x=fl(""+x,v.mode,p),x.return=v,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ks:return p=mi(x.type,x.key,x.props,null,v.mode,p),p.ref=xo(v,null,x),p.return=v,p;case gn:return x=xl(x,v.mode,p),x.return=v,x;case pr:var g=x._init;return h(v,g(x._payload),p)}if(Ao(x)||ao(x))return x=Kr(x,v.mode,p,null),x.return=v,x;Ns(v,x)}return null}function d(v,x,p,g){var S=x!==null?x.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return S!==null?null:l(v,x,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ks:return p.key===S?c(v,x,p,g):null;case gn:return p.key===S?u(v,x,p,g):null;case pr:return S=p._init,d(v,x,S(p._payload),g)}if(Ao(p)||ao(p))return S!==null?null:f(v,x,p,g,null);Ns(v,p)}return null}function C(v,x,p,g,S){if(typeof g=="string"&&g!==""||typeof g=="number")return v=v.get(p)||null,l(x,v,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ks:return v=v.get(g.key===null?p:g.key)||null,c(x,v,g,S);case gn:return v=v.get(g.key===null?p:g.key)||null,u(x,v,g,S);case pr:var b=g._init;return C(v,x,p,b(g._payload),S)}if(Ao(g)||ao(g))return v=v.get(p)||null,f(x,v,g,S,null);Ns(x,g)}return null}function y(v,x,p,g){for(var S=null,b=null,w=x,j=x=0,D=null;w!==null&&j<p.length;j++){w.index>j?(D=w,w=null):D=w.sibling;var k=d(v,w,p[j],g);if(k===null){w===null&&(w=D);break}e&&w&&k.alternate===null&&t(v,w),x=s(k,x,j),b===null?S=k:b.sibling=k,b=k,w=D}if(j===p.length)return r(v,w),me&&Ir(v,j),S;if(w===null){for(;j<p.length;j++)w=h(v,p[j],g),w!==null&&(x=s(w,x,j),b===null?S=w:b.sibling=w,b=w);return me&&Ir(v,j),S}for(w=n(v,w);j<p.length;j++)D=C(w,v,j,p[j],g),D!==null&&(e&&D.alternate!==null&&w.delete(D.key===null?j:D.key),x=s(D,x,j),b===null?S=D:b.sibling=D,b=D);return e&&w.forEach(function(A){return t(v,A)}),me&&Ir(v,j),S}function m(v,x,p,g){var S=ao(p);if(typeof S!="function")throw Error(W(150));if(p=S.call(p),p==null)throw Error(W(151));for(var b=S=null,w=x,j=x=0,D=null,k=p.next();w!==null&&!k.done;j++,k=p.next()){w.index>j?(D=w,w=null):D=w.sibling;var A=d(v,w,k.value,g);if(A===null){w===null&&(w=D);break}e&&w&&A.alternate===null&&t(v,w),x=s(A,x,j),b===null?S=A:b.sibling=A,b=A,w=D}if(k.done)return r(v,w),me&&Ir(v,j),S;if(w===null){for(;!k.done;j++,k=p.next())k=h(v,k.value,g),k!==null&&(x=s(k,x,j),b===null?S=k:b.sibling=k,b=k);return me&&Ir(v,j),S}for(w=n(v,w);!k.done;j++,k=p.next())k=C(w,v,j,k.value,g),k!==null&&(e&&k.alternate!==null&&w.delete(k.key===null?j:k.key),x=s(k,x,j),b===null?S=k:b.sibling=k,b=k);return e&&w.forEach(function(N){return t(v,N)}),me&&Ir(v,j),S}function E(v,x,p,g){if(typeof p=="object"&&p!==null&&p.type===vn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ks:e:{for(var S=p.key,b=x;b!==null;){if(b.key===S){if(S=p.type,S===vn){if(b.tag===7){r(v,b.sibling),x=o(b,p.props.children),x.return=v,v=x;break e}}else if(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===pr&&Pd(S)===b.type){r(v,b.sibling),x=o(b,p.props),x.ref=xo(v,b,p),x.return=v,v=x;break e}r(v,b);break}else t(v,b);b=b.sibling}p.type===vn?(x=Kr(p.props.children,v.mode,g,p.key),x.return=v,v=x):(g=mi(p.type,p.key,p.props,null,v.mode,g),g.ref=xo(v,x,p),g.return=v,v=g)}return i(v);case gn:e:{for(b=p.key;x!==null;){if(x.key===b)if(x.tag===4&&x.stateNode.containerInfo===p.containerInfo&&x.stateNode.implementation===p.implementation){r(v,x.sibling),x=o(x,p.children||[]),x.return=v,v=x;break e}else{r(v,x);break}else t(v,x);x=x.sibling}x=xl(p,v.mode,g),x.return=v,v=x}return i(v);case pr:return b=p._init,E(v,x,b(p._payload),g)}if(Ao(p))return y(v,x,p,g);if(ao(p))return m(v,x,p,g);Ns(v,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,x!==null&&x.tag===6?(r(v,x.sibling),x=o(x,p),x.return=v,v=x):(r(v,x),x=fl(p,v.mode,g),x.return=v,v=x),i(v)):r(v,x)}return E}var In=vh(!0),yh=vh(!1),$i=Tr(null),Hi=null,kn=null,Xu=null;function Yu(){Xu=kn=Hi=null}function Ju(e){var t=$i.current;he($i),e._currentValue=t}function Q0(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Pn(e,t){Hi=e,Xu=kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Xu!==e)if(e={context:e,memoizedValue:t,next:null},kn===null){if(Hi===null)throw Error(W(308));kn=e,Hi.dependencies={lanes:0,firstContext:e}}else kn=kn.next=e;return t}var Wr=null;function Zu(e){Wr===null?Wr=[e]:Wr.push(e)}function Ch(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,Zu(t)):(r.next=o.next,o.next=r),t.interleaved=r,or(e,n)}function or(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var hr=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Eh(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 tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function br(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ae&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,or(e,r)}return o=n.interleaved,o===null?(t.next=t,Zu(n)):(t.next=o.next,o.next=t),n.interleaved=t,or(e,r)}function ci(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Iu(e,r)}}function Od(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?o=s=i:s=s.next=i,r=r.next}while(r!==null);s===null?o=s=t:s=s.next=t}else o=s=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Wi(e,t,r,n){var o=e.updateQueue;hr=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?s=u:i.next=u,i=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(s!==null){var h=o.baseState;i=0,f=u=c=null,l=s;do{var d=l.lane,C=l.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:C,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,m=l;switch(d=t,C=r,m.tag){case 1:if(y=m.payload,typeof y=="function"){h=y.call(C,h,d);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,d=typeof y=="function"?y.call(C,h,d):y,d==null)break e;h=ye({},h,d);break e;case 2:hr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else C={eventTime:C,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=C,c=h):f=f.next=C,i|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);en|=i,e.lanes=i,e.memoizedState=h}}function Ld(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(W(191,o));o.call(n)}}}var gs={},Qt=Tr(gs),os=Tr(gs),ss=Tr(gs);function Ur(e){if(e===gs)throw Error(W(174));return e}function tc(e,t){switch(de(ss,t),de(os,e),de(Qt,gs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:B0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=B0(t,e)}he(Qt),de(Qt,t)}function Mn(){he(Qt),he(os),he(ss)}function wh(e){Ur(ss.current);var t=Ur(Qt.current),r=B0(t,e.type);t!==r&&(de(os,e),de(Qt,r))}function rc(e){os.current===e&&(he(Qt),he(os))}var ge=Tr(0);function Ui(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 il=[];function nc(){for(var e=0;e<il.length;e++)il[e]._workInProgressVersionPrimary=null;il.length=0}var di=ir.ReactCurrentDispatcher,al=ir.ReactCurrentBatchConfig,Zr=0,ve=null,je=null,Ae=null,qi=!1,$o=!1,is=0,Yv=0;function Ie(){throw Error(W(321))}function oc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Lt(e[r],t[r]))return!1;return!0}function sc(e,t,r,n,o,s){if(Zr=s,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,di.current=e===null||e.memoizedState===null?t2:r2,e=r(n,o),$o){s=0;do{if($o=!1,is=0,25<=s)throw Error(W(301));s+=1,Ae=je=null,t.updateQueue=null,di.current=n2,e=r(n,o)}while($o)}if(di.current=Vi,t=je!==null&&je.next!==null,Zr=0,Ae=je=ve=null,qi=!1,t)throw Error(W(300));return e}function ic(){var e=is!==0;return is=0,e}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?ve.memoizedState=Ae=e:Ae=Ae.next=e,Ae}function St(){if(je===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Ae===null?ve.memoizedState:Ae.next;if(t!==null)Ae=t,je=e;else{if(e===null)throw Error(W(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ae===null?ve.memoizedState=Ae=e:Ae=Ae.next=e}return Ae}function as(e,t){return typeof t=="function"?t(e):t}function ll(e){var t=St(),r=t.queue;if(r===null)throw Error(W(311));r.lastRenderedReducer=e;var n=je,o=n.baseQueue,s=r.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}n.baseQueue=o=s,r.pending=null}if(o!==null){s=o.next,n=n.baseState;var l=i=null,c=null,u=s;do{var f=u.lane;if((Zr&f)===f)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,i=n):c=c.next=h,ve.lanes|=f,en|=f}u=u.next}while(u!==null&&u!==s);c===null?i=n:c.next=l,Lt(n,t.memoizedState)||(et=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do s=o.lane,ve.lanes|=s,en|=s,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ul(e){var t=St(),r=t.queue;if(r===null)throw Error(W(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,s=t.memoizedState;if(o!==null){r.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Lt(s,t.memoizedState)||(et=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function Sh(){}function bh(e,t){var r=ve,n=St(),o=t(),s=!Lt(n.memoizedState,o);if(s&&(n.memoizedState=o,et=!0),n=n.queue,ac(Bh.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Ae!==null&&Ae.memoizedState.tag&1){if(r.flags|=2048,ls(9,kh.bind(null,r,n,o,t),void 0,null),Re===null)throw Error(W(349));Zr&30||jh(r,t,o)}return o}function jh(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function kh(e,t,r,n){t.value=r,t.getSnapshot=n,Ah(t)&&Fh(e)}function Bh(e,t,r){return r(function(){Ah(t)&&Fh(e)})}function Ah(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Lt(e,r)}catch{return!0}}function Fh(e){var t=or(e,1);t!==null&&Pt(t,e,1,-1)}function Nd(e){var t=Ht();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:e},t.queue=e,e=e.dispatch=e2.bind(null,ve,e),[t.memoizedState,e]}function ls(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function Dh(){return St().memoizedState}function fi(e,t,r,n){var o=Ht();ve.flags|=e,o.memoizedState=ls(1|t,r,void 0,n===void 0?null:n)}function ha(e,t,r,n){var o=St();n=n===void 0?null:n;var s=void 0;if(je!==null){var i=je.memoizedState;if(s=i.destroy,n!==null&&oc(n,i.deps)){o.memoizedState=ls(t,r,s,n);return}}ve.flags|=e,o.memoizedState=ls(1|t,r,s,n)}function zd(e,t){return fi(8390656,8,e,t)}function ac(e,t){return ha(2048,8,e,t)}function _h(e,t){return ha(4,2,e,t)}function Rh(e,t){return ha(4,4,e,t)}function Th(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 Ph(e,t,r){return r=r!=null?r.concat([e]):null,ha(4,4,Th.bind(null,t,e),r)}function lc(){}function Oh(e,t){var r=St();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&oc(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Lh(e,t){var r=St();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&oc(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Nh(e,t,r){return Zr&21?(Lt(r,t)||(r=Hp(),ve.lanes|=r,en|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=r)}function Jv(e,t){var r=ce;ce=r!==0&&4>r?r:4,e(!0);var n=al.transition;al.transition={};try{e(!1),t()}finally{ce=r,al.transition=n}}function zh(){return St().memoizedState}function Zv(e,t,r){var n=kr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ih(e))Mh(t,r);else if(r=Ch(e,t,r,n),r!==null){var o=Qe();Pt(r,e,n,o),$h(r,t,n)}}function e2(e,t,r){var n=kr(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ih(e))Mh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,r);if(o.hasEagerState=!0,o.eagerState=l,Lt(l,i)){var c=t.interleaved;c===null?(o.next=o,Zu(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}r=Ch(e,t,o,n),r!==null&&(o=Qe(),Pt(r,e,n,o),$h(r,t,n))}}function Ih(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Mh(e,t){$o=qi=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $h(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Iu(e,r)}}var Vi={readContext:wt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},t2={readContext:wt,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:zd,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,fi(4194308,4,Th.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return fi(4,2,e,t)},useMemo:function(e,t){var r=Ht();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ht();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Zv.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:Nd,useDebugValue:lc,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=Nd(!1),t=e[0];return e=Jv.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ve,o=Ht();if(me){if(r===void 0)throw Error(W(407));r=r()}else{if(r=t(),Re===null)throw Error(W(349));Zr&30||jh(n,t,r)}o.memoizedState=r;var s={value:r,getSnapshot:t};return o.queue=s,zd(Bh.bind(null,n,s,e),[e]),n.flags|=2048,ls(9,kh.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Ht(),t=Re.identifierPrefix;if(me){var r=er,n=Zt;r=(n&~(1<<32-Tt(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=is++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Yv++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},r2={readContext:wt,useCallback:Oh,useContext:wt,useEffect:ac,useImperativeHandle:Ph,useInsertionEffect:_h,useLayoutEffect:Rh,useMemo:Lh,useReducer:ll,useRef:Dh,useState:function(){return ll(as)},useDebugValue:lc,useDeferredValue:function(e){var t=St();return Nh(t,je.memoizedState,e)},useTransition:function(){var e=ll(as)[0],t=St().memoizedState;return[e,t]},useMutableSource:Sh,useSyncExternalStore:bh,useId:zh,unstable_isNewReconciler:!1},n2={readContext:wt,useCallback:Oh,useContext:wt,useEffect:ac,useImperativeHandle:Ph,useInsertionEffect:_h,useLayoutEffect:Rh,useMemo:Lh,useReducer:ul,useRef:Dh,useState:function(){return ul(as)},useDebugValue:lc,useDeferredValue:function(e){var t=St();return je===null?t.memoizedState=e:Nh(t,je.memoizedState,e)},useTransition:function(){var e=ul(as)[0],t=St().memoizedState;return[e,t]},useMutableSource:Sh,useSyncExternalStore:bh,useId:zh,unstable_isNewReconciler:!1};function Dt(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function K0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ye({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ma={isMounted:function(e){return(e=e._reactInternals)?sn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Qe(),o=kr(e),s=tr(n,o);s.payload=t,r!=null&&(s.callback=r),t=br(e,s,o),t!==null&&(Pt(t,e,o,n),ci(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Qe(),o=kr(e),s=tr(n,o);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=br(e,s,o),t!==null&&(Pt(t,e,o,n),ci(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Qe(),n=kr(e),o=tr(r,n);o.tag=2,t!=null&&(o.callback=t),t=br(e,o,n),t!==null&&(Pt(t,e,n,r),ci(t,e,n))}};function Id(e,t,r,n,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,i):t.prototype&&t.prototype.isPureReactComponent?!es(r,n)||!es(o,s):!0}function Hh(e,t,r){var n=!1,o=Dr,s=t.contextType;return typeof s=="object"&&s!==null?s=wt(s):(o=rt(t)?Yr:We.current,n=t.contextTypes,s=(n=n!=null)?Nn(e,o):Dr),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Md(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ma.enqueueReplaceState(t,t.state,null)}function G0(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},ec(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=wt(s):(s=rt(t)?Yr:We.current,o.context=Nn(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(K0(e,t,s,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ma.enqueueReplaceState(o,o.state,null),Wi(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function $n(e,t){try{var r="",n=t;do r+=_g(n),n=n.return;while(n);var o=r}catch(s){o=`
|
|
46
|
+
*/var Dx=A,gt=Ix;function Q(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 Qp=new Set,Ho={};function ar(e,t){Ir(e,t),Ir(e+"Capture",t)}function Ir(e,t){for(Ho[e]=t,e=0;e<t.length;e++)Qp.add(t[e])}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oa=Object.prototype.hasOwnProperty,$x=/^[: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]*$/,ld={},ad={};function Bx(e){return Oa.call(ad,e)?!0:Oa.call(ld,e)?!1:$x.test(e)?ad[e]=!0:(ld[e]=!0,!1)}function zx(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 Ux(e,t,n,r){if(t===null||typeof t>"u"||zx(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 rt(e,t,n,r,o,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new rt(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){qe[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qu=/[\-:]([a-z])/g;function Ku(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(Qu,Ku);qe[t]=new rt(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(Qu,Ku);qe[t]=new rt(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(Qu,Ku);qe[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gu(e,t,n,r){var o=qe.hasOwnProperty(t)?qe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ux(t,n,o,r)&&(n=null),r||o===null?Bx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ln=Dx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vs=Symbol.for("react.element"),gr=Symbol.for("react.portal"),xr=Symbol.for("react.fragment"),Ju=Symbol.for("react.strict_mode"),Na=Symbol.for("react.profiler"),Kp=Symbol.for("react.provider"),Gp=Symbol.for("react.context"),Yu=Symbol.for("react.forward_ref"),Ma=Symbol.for("react.suspense"),Aa=Symbol.for("react.suspense_list"),Xu=Symbol.for("react.memo"),hn=Symbol.for("react.lazy"),Jp=Symbol.for("react.offscreen"),ud=Symbol.iterator;function oo(e){return e===null||typeof e!="object"?null:(e=ud&&e[ud]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Dl;function bo(e){if(Dl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Dl=t&&t[1]||""}return`
|
|
47
|
+
`+Dl+e}var $l=!1;function Bl(e,t){if(!e||$l)return"";$l=!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 o=c.stack.split(`
|
|
48
|
+
`),s=r.stack.split(`
|
|
49
|
+
`),l=o.length-1,a=s.length-1;1<=l&&0<=a&&o[l]!==s[a];)a--;for(;1<=l&&0<=a;l--,a--)if(o[l]!==s[a]){if(l!==1||a!==1)do if(l--,a--,0>a||o[l]!==s[a]){var u=`
|
|
50
|
+
`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{$l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bo(e):""}function Wx(e){switch(e.tag){case 5:return bo(e.type);case 16:return bo("Lazy");case 13:return bo("Suspense");case 19:return bo("SuspenseList");case 0:case 2:case 15:return e=Bl(e.type,!1),e;case 11:return e=Bl(e.type.render,!1),e;case 1:return e=Bl(e.type,!0),e;default:return""}}function Fa(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 xr:return"Fragment";case gr:return"Portal";case Na:return"Profiler";case Ju:return"StrictMode";case Ma:return"Suspense";case Aa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gp:return(e.displayName||"Context")+".Consumer";case Kp:return(e._context.displayName||"Context")+".Provider";case Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xu:return t=e.displayName||null,t!==null?t:Fa(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return Fa(e(t))}catch{}}return null}function Hx(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 Fa(t);case 8:return t===Ju?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vx(e){var t=Yp(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 o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ys(e){e._valueTracker||(e._valueTracker=Vx(e))}function Xp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ji(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 Ia(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zp(e,t){t=t.checked,t!=null&&Gu(e,"checked",t,!1)}function Da(e,t){Zp(e,t);var n=Ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$a(e,t.type,n):t.hasOwnProperty("defaultValue")&&$a(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dd(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 $a(e,t,n){(t!=="number"||ji(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Eo=Array.isArray;function Pr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ba(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Q(92));if(Eo(n)){if(1<n.length)throw Error(Q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function eh(e,t){var n=Ln(t.value),r=Ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function pd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function th(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 za(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?th(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ws,nh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ws=ws||document.createElement("div"),ws.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var No={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},qx=["Webkit","ms","Moz","O"];Object.keys(No).forEach(function(e){qx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),No[t]=No[e]})});function rh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||No.hasOwnProperty(e)&&No[e]?(""+t).trim():t+"px"}function oh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Qx=be({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 Ua(e,t){if(t){if(Qx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Wa(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 Ha=null;function Zu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Va=null,Lr=null,Or=null;function hd(e){if(e=fs(e)){if(typeof Va!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=al(t),Va(e.stateNode,e.type,t))}}function sh(e){Lr?Or?Or.push(e):Or=[e]:Lr=e}function ih(){if(Lr){var e=Lr,t=Or;if(Or=Lr=null,hd(e),t)for(e=0;e<t.length;e++)hd(t[e])}}function lh(e,t){return e(t)}function ah(){}var zl=!1;function uh(e,t,n){if(zl)return e(t,n);zl=!0;try{return lh(e,t,n)}finally{zl=!1,(Lr!==null||Or!==null)&&(ah(),ih())}}function qo(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(Q(231,t,typeof n));return n}var qa=!1;if(nn)try{var so={};Object.defineProperty(so,"passive",{get:function(){qa=!0}}),window.addEventListener("test",so,so),window.removeEventListener("test",so,so)}catch{qa=!1}function Kx(e,t,n,r,o,s,l,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(p){this.onError(p)}}var Mo=!1,ki=null,bi=!1,Qa=null,Gx={onError:function(e){Mo=!0,ki=e}};function Jx(e,t,n,r,o,s,l,a,u){Mo=!1,ki=null,Kx.apply(Gx,arguments)}function Yx(e,t,n,r,o,s,l,a,u){if(Jx.apply(this,arguments),Mo){if(Mo){var c=ki;Mo=!1,ki=null}else throw Error(Q(198));bi||(bi=!0,Qa=c)}}function ur(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 ch(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 md(e){if(ur(e)!==e)throw Error(Q(188))}function Xx(e){var t=e.alternate;if(!t){if(t=ur(e),t===null)throw Error(Q(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return md(o),e;if(s===r)return md(o),t;s=s.sibling}throw Error(Q(188))}if(n.return!==r.return)n=o,r=s;else{for(var l=!1,a=o.child;a;){if(a===n){l=!0,n=o,r=s;break}if(a===r){l=!0,r=o,n=s;break}a=a.sibling}if(!l){for(a=s.child;a;){if(a===n){l=!0,n=s,r=o;break}if(a===r){l=!0,r=s,n=o;break}a=a.sibling}if(!l)throw Error(Q(189))}}if(n.alternate!==r)throw Error(Q(190))}if(n.tag!==3)throw Error(Q(188));return n.stateNode.current===n?e:t}function dh(e){return e=Xx(e),e!==null?fh(e):null}function fh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fh(e);if(t!==null)return t;e=e.sibling}return null}var ph=gt.unstable_scheduleCallback,gd=gt.unstable_cancelCallback,Zx=gt.unstable_shouldYield,e0=gt.unstable_requestPaint,Ce=gt.unstable_now,t0=gt.unstable_getCurrentPriorityLevel,ec=gt.unstable_ImmediatePriority,hh=gt.unstable_UserBlockingPriority,Ei=gt.unstable_NormalPriority,n0=gt.unstable_LowPriority,mh=gt.unstable_IdlePriority,ol=null,qt=null;function r0(e){if(qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(ol,e,void 0,(e.current.flags&128)===128)}catch{}}var At=Math.clz32?Math.clz32:i0,o0=Math.log,s0=Math.LN2;function i0(e){return e>>>=0,e===0?32:31-(o0(e)/s0|0)|0}var Ss=64,js=4194304;function Co(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 Ci(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Co(a):(s&=l,s!==0&&(r=Co(s)))}else l=n&~o,l!==0?r=Co(l):s!==0&&(r=Co(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&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-At(t),o=1<<n,r|=e[n],t&=~o;return r}function l0(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 a0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-At(s),a=1<<l,u=o[l];u===-1?(!(a&n)||a&r)&&(o[l]=l0(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function Ka(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gh(){var e=Ss;return Ss<<=1,!(Ss&4194240)&&(Ss=64),e}function Ul(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function u0(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 o=31-At(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function tc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-At(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var he=0;function xh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var vh,nc,yh,wh,Sh,Ga=!1,ks=[],Sn=null,jn=null,kn=null,Qo=new Map,Ko=new Map,gn=[],c0="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 xd(e,t){switch(e){case"focusin":case"focusout":Sn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":Qo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ko.delete(t.pointerId)}}function io(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=fs(t),t!==null&&nc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function d0(e,t,n,r,o){switch(t){case"focusin":return Sn=io(Sn,e,t,n,r,o),!0;case"dragenter":return jn=io(jn,e,t,n,r,o),!0;case"mouseover":return kn=io(kn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Qo.set(s,io(Qo.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ko.set(s,io(Ko.get(s)||null,e,t,n,r,o)),!0}return!1}function jh(e){var t=Hn(e.target);if(t!==null){var n=ur(t);if(n!==null){if(t=n.tag,t===13){if(t=ch(n),t!==null){e.blockedOn=t,Sh(e.priority,function(){yh(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 Zs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ja(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ha=r,n.target.dispatchEvent(r),Ha=null}else return t=fs(n),t!==null&&nc(t),e.blockedOn=n,!1;t.shift()}return!0}function vd(e,t,n){Zs(e)&&n.delete(t)}function f0(){Ga=!1,Sn!==null&&Zs(Sn)&&(Sn=null),jn!==null&&Zs(jn)&&(jn=null),kn!==null&&Zs(kn)&&(kn=null),Qo.forEach(vd),Ko.forEach(vd)}function lo(e,t){e.blockedOn===t&&(e.blockedOn=null,Ga||(Ga=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,f0)))}function Go(e){function t(o){return lo(o,e)}if(0<ks.length){lo(ks[0],e);for(var n=1;n<ks.length;n++){var r=ks[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Sn!==null&&lo(Sn,e),jn!==null&&lo(jn,e),kn!==null&&lo(kn,e),Qo.forEach(t),Ko.forEach(t),n=0;n<gn.length;n++)r=gn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gn.length&&(n=gn[0],n.blockedOn===null);)jh(n),n.blockedOn===null&&gn.shift()}var Nr=ln.ReactCurrentBatchConfig,Ti=!0;function p0(e,t,n,r){var o=he,s=Nr.transition;Nr.transition=null;try{he=1,rc(e,t,n,r)}finally{he=o,Nr.transition=s}}function h0(e,t,n,r){var o=he,s=Nr.transition;Nr.transition=null;try{he=4,rc(e,t,n,r)}finally{he=o,Nr.transition=s}}function rc(e,t,n,r){if(Ti){var o=Ja(e,t,n,r);if(o===null)Xl(e,t,r,Ri,n),xd(e,r);else if(d0(o,e,t,n,r))r.stopPropagation();else if(xd(e,r),t&4&&-1<c0.indexOf(e)){for(;o!==null;){var s=fs(o);if(s!==null&&vh(s),s=Ja(e,t,n,r),s===null&&Xl(e,t,r,Ri,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Xl(e,t,r,null,n)}}var Ri=null;function Ja(e,t,n,r){if(Ri=null,e=Zu(r),e=Hn(e),e!==null)if(t=ur(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ch(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 Ri=e,null}function kh(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(t0()){case ec:return 1;case hh:return 4;case Ei:case n0:return 16;case mh:return 536870912;default:return 16}default:return 16}}var yn=null,oc=null,ei=null;function bh(){if(ei)return ei;var e,t=oc,n=t.length,r,o="value"in yn?yn.value:yn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[s-r];r++);return ei=o.slice(e,1<r?1-r:void 0)}function ti(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 bs(){return!0}function yd(){return!1}function vt(e){function t(n,r,o,s,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?bs:yd,this.isPropagationStopped=yd,this}return be(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=bs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bs)},persist:function(){},isPersistent:bs}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sc=vt(Xr),ds=be({},Xr,{view:0,detail:0}),m0=vt(ds),Wl,Hl,ao,sl=be({},ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ic,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ao&&(ao&&e.type==="mousemove"?(Wl=e.screenX-ao.screenX,Hl=e.screenY-ao.screenY):Hl=Wl=0,ao=e),Wl)},movementY:function(e){return"movementY"in e?e.movementY:Hl}}),wd=vt(sl),g0=be({},sl,{dataTransfer:0}),x0=vt(g0),v0=be({},ds,{relatedTarget:0}),Vl=vt(v0),y0=be({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),w0=vt(y0),S0=be({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j0=vt(S0),k0=be({},Xr,{data:0}),Sd=vt(k0),b0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E0={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"},C0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=C0[e])?!!t[e]:!1}function ic(){return T0}var R0=be({},ds,{key:function(e){if(e.key){var t=b0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?E0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ic,charCode:function(e){return e.type==="keypress"?ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_0=vt(R0),P0=be({},sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=vt(P0),L0=be({},ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ic}),O0=vt(L0),N0=be({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),M0=vt(N0),A0=be({},sl,{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}),F0=vt(A0),I0=[9,13,27,32],lc=nn&&"CompositionEvent"in window,Ao=null;nn&&"documentMode"in document&&(Ao=document.documentMode);var D0=nn&&"TextEvent"in window&&!Ao,Eh=nn&&(!lc||Ao&&8<Ao&&11>=Ao),kd=" ",bd=!1;function Ch(e,t){switch(e){case"keyup":return I0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function $0(e,t){switch(e){case"compositionend":return Th(t);case"keypress":return t.which!==32?null:(bd=!0,kd);case"textInput":return e=t.data,e===kd&&bd?null:e;default:return null}}function B0(e,t){if(vr)return e==="compositionend"||!lc&&Ch(e,t)?(e=bh(),ei=oc=yn=null,vr=!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 Eh&&t.locale!=="ko"?null:t.data;default:return null}}var z0={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 Ed(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!z0[e.type]:t==="textarea"}function Rh(e,t,n,r){sh(r),t=_i(t,"onChange"),0<t.length&&(n=new sc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fo=null,Jo=null;function U0(e){$h(e,0)}function il(e){var t=Sr(e);if(Xp(t))return e}function W0(e,t){if(e==="change")return t}var _h=!1;if(nn){var ql;if(nn){var Ql="oninput"in document;if(!Ql){var Cd=document.createElement("div");Cd.setAttribute("oninput","return;"),Ql=typeof Cd.oninput=="function"}ql=Ql}else ql=!1;_h=ql&&(!document.documentMode||9<document.documentMode)}function Td(){Fo&&(Fo.detachEvent("onpropertychange",Ph),Jo=Fo=null)}function Ph(e){if(e.propertyName==="value"&&il(Jo)){var t=[];Rh(t,Jo,e,Zu(e)),uh(U0,t)}}function H0(e,t,n){e==="focusin"?(Td(),Fo=t,Jo=n,Fo.attachEvent("onpropertychange",Ph)):e==="focusout"&&Td()}function V0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return il(Jo)}function q0(e,t){if(e==="click")return il(t)}function Q0(e,t){if(e==="input"||e==="change")return il(t)}function K0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:K0;function Yo(e,t){if(Dt(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 o=n[r];if(!Oa.call(t,o)||!Dt(e[o],t[o]))return!1}return!0}function Rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _d(e,t){var n=Rd(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=Rd(n)}}function Lh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oh(){for(var e=window,t=ji();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ji(e.document)}return t}function ac(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 G0(e){var t=Oh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lh(n.ownerDocument.documentElement,n)){if(r!==null&&ac(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 o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=_d(n,s);var l=_d(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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 J0=nn&&"documentMode"in document&&11>=document.documentMode,yr=null,Ya=null,Io=null,Xa=!1;function Pd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xa||yr==null||yr!==ji(r)||(r=yr,"selectionStart"in r&&ac(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}),Io&&Yo(Io,r)||(Io=r,r=_i(Ya,"onSelect"),0<r.length&&(t=new sc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function Es(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Es("Animation","AnimationEnd"),animationiteration:Es("Animation","AnimationIteration"),animationstart:Es("Animation","AnimationStart"),transitionend:Es("Transition","TransitionEnd")},Kl={},Nh={};nn&&(Nh=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);function ll(e){if(Kl[e])return Kl[e];if(!wr[e])return e;var t=wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Nh)return Kl[e]=t[n];return e}var Mh=ll("animationend"),Ah=ll("animationiteration"),Fh=ll("animationstart"),Ih=ll("transitionend"),Dh=new Map,Ld="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 Mn(e,t){Dh.set(e,t),ar(t,[e])}for(var Gl=0;Gl<Ld.length;Gl++){var Jl=Ld[Gl],Y0=Jl.toLowerCase(),X0=Jl[0].toUpperCase()+Jl.slice(1);Mn(Y0,"on"+X0)}Mn(Mh,"onAnimationEnd");Mn(Ah,"onAnimationIteration");Mn(Fh,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(Ih,"onTransitionEnd");Ir("onMouseEnter",["mouseout","mouseover"]);Ir("onMouseLeave",["mouseout","mouseover"]);Ir("onPointerEnter",["pointerout","pointerover"]);Ir("onPointerLeave",["pointerout","pointerover"]);ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ar("onBeforeInput",["compositionend","keypress","textInput","paste"]);ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="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(" "),Z0=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function Od(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Yx(r,t,void 0,e),e.currentTarget=null}function $h(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==s&&o.isPropagationStopped())break e;Od(o,a,c),s=u}else for(l=0;l<r.length;l++){if(a=r[l],u=a.instance,c=a.currentTarget,a=a.listener,u!==s&&o.isPropagationStopped())break e;Od(o,a,c),s=u}}}if(bi)throw e=Qa,bi=!1,Qa=null,e}function ve(e,t){var n=t[ru];n===void 0&&(n=t[ru]=new Set);var r=e+"__bubble";n.has(r)||(Bh(t,e,2,!1),n.add(r))}function Yl(e,t,n){var r=0;t&&(r|=4),Bh(n,e,r,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function Xo(e){if(!e[Cs]){e[Cs]=!0,Qp.forEach(function(n){n!=="selectionchange"&&(Z0.has(n)||Yl(n,!1,e),Yl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cs]||(t[Cs]=!0,Yl("selectionchange",!1,t))}}function Bh(e,t,n,r){switch(kh(t)){case 1:var o=p0;break;case 4:o=h0;break;default:o=rc}n=o.bind(null,t,n,e),o=void 0,!qa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Xl(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var u=l.tag;if((u===3||u===4)&&(u=l.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;l=l.return}for(;a!==null;){if(l=Hn(a),l===null)return;if(u=l.tag,u===5||u===6){r=s=l;continue e}a=a.parentNode}}r=r.return}uh(function(){var c=s,p=Zu(n),d=[];e:{var f=Dh.get(e);if(f!==void 0){var b=sc,k=e;switch(e){case"keypress":if(ti(n)===0)break e;case"keydown":case"keyup":b=_0;break;case"focusin":k="focus",b=Vl;break;case"focusout":k="blur",b=Vl;break;case"beforeblur":case"afterblur":b=Vl;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":b=wd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=x0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=O0;break;case Mh:case Ah:case Fh:b=w0;break;case Ih:b=M0;break;case"scroll":b=m0;break;case"wheel":b=F0;break;case"copy":case"cut":case"paste":b=j0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=jd}var v=(t&4)!==0,C=!v&&e==="scroll",g=v?f!==null?f+"Capture":null:f;v=[];for(var h=c,m;h!==null;){m=h;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,g!==null&&(w=qo(h,g),w!=null&&v.push(Zo(h,w,m)))),C)break;h=h.return}0<v.length&&(f=new b(f,k,null,n,p),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",f&&n!==Ha&&(k=n.relatedTarget||n.fromElement)&&(Hn(k)||k[rn]))break e;if((b||f)&&(f=p.window===p?p:(f=p.ownerDocument)?f.defaultView||f.parentWindow:window,b?(k=n.relatedTarget||n.toElement,b=c,k=k?Hn(k):null,k!==null&&(C=ur(k),k!==C||k.tag!==5&&k.tag!==6)&&(k=null)):(b=null,k=c),b!==k)){if(v=wd,w="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=jd,w="onPointerLeave",g="onPointerEnter",h="pointer"),C=b==null?f:Sr(b),m=k==null?f:Sr(k),f=new v(w,h+"leave",b,n,p),f.target=C,f.relatedTarget=m,w=null,Hn(p)===c&&(v=new v(g,h+"enter",k,n,p),v.target=m,v.relatedTarget=C,w=v),C=w,b&&k)t:{for(v=b,g=k,h=0,m=v;m;m=cr(m))h++;for(m=0,w=g;w;w=cr(w))m++;for(;0<h-m;)v=cr(v),h--;for(;0<m-h;)g=cr(g),m--;for(;h--;){if(v===g||g!==null&&v===g.alternate)break t;v=cr(v),g=cr(g)}v=null}else v=null;b!==null&&Nd(d,f,b,v,!1),k!==null&&C!==null&&Nd(d,C,k,v,!0)}}e:{if(f=c?Sr(c):window,b=f.nodeName&&f.nodeName.toLowerCase(),b==="select"||b==="input"&&f.type==="file")var S=W0;else if(Ed(f))if(_h)S=Q0;else{S=V0;var T=H0}else(b=f.nodeName)&&b.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=q0);if(S&&(S=S(e,c))){Rh(d,S,n,p);break e}T&&T(e,f,c),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&$a(f,"number",f.value)}switch(T=c?Sr(c):window,e){case"focusin":(Ed(T)||T.contentEditable==="true")&&(yr=T,Ya=c,Io=null);break;case"focusout":Io=Ya=yr=null;break;case"mousedown":Xa=!0;break;case"contextmenu":case"mouseup":case"dragend":Xa=!1,Pd(d,n,p);break;case"selectionchange":if(J0)break;case"keydown":case"keyup":Pd(d,n,p)}var x;if(lc)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else vr?Ch(e,n)&&(y="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(y="onCompositionStart");y&&(Eh&&n.locale!=="ko"&&(vr||y!=="onCompositionStart"?y==="onCompositionEnd"&&vr&&(x=bh()):(yn=p,oc="value"in yn?yn.value:yn.textContent,vr=!0)),T=_i(c,y),0<T.length&&(y=new Sd(y,e,null,n,p),d.push({event:y,listeners:T}),x?y.data=x:(x=Th(n),x!==null&&(y.data=x)))),(x=D0?$0(e,n):B0(e,n))&&(c=_i(c,"onBeforeInput"),0<c.length&&(p=new Sd("onBeforeInput","beforeinput",null,n,p),d.push({event:p,listeners:c}),p.data=x))}$h(d,t)})}function Zo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _i(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=qo(e,n),s!=null&&r.unshift(Zo(e,s,o)),s=qo(e,t),s!=null&&r.push(Zo(e,s,o))),e=e.return}return r}function cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nd(e,t,n,r,o){for(var s=t._reactName,l=[];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,o?(u=qo(n,s),u!=null&&l.unshift(Zo(n,u,a))):o||(u=qo(n,s),u!=null&&l.push(Zo(n,u,a)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var e1=/\r\n?/g,t1=/\u0000|\uFFFD/g;function Md(e){return(typeof e=="string"?e:""+e).replace(e1,`
|
|
51
|
+
`).replace(t1,"")}function Ts(e,t,n){if(t=Md(t),Md(e)!==t&&n)throw Error(Q(425))}function Pi(){}var Za=null,eu=null;function tu(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 nu=typeof setTimeout=="function"?setTimeout:void 0,n1=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,r1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(o1)}:nu;function o1(e){setTimeout(function(){throw e})}function Zl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Go(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Go(t)}function bn(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 Fd(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 Zr=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Zr,es="__reactProps$"+Zr,rn="__reactContainer$"+Zr,ru="__reactEvents$"+Zr,s1="__reactListeners$"+Zr,i1="__reactHandles$"+Zr;function Hn(e){var t=e[Vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rn]||n[Vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fd(e);e!==null;){if(n=e[Vt])return n;e=Fd(e)}return t}e=n,n=e.parentNode}return null}function fs(e){return e=e[Vt]||e[rn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function al(e){return e[es]||null}var ou=[],jr=-1;function An(e){return{current:e}}function we(e){0>jr||(e.current=ou[jr],ou[jr]=null,jr--)}function ge(e,t){jr++,ou[jr]=e.current,e.current=t}var On={},Ye=An(On),lt=An(!1),tr=On;function Dr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function at(e){return e=e.childContextTypes,e!=null}function Li(){we(lt),we(Ye)}function Id(e,t,n){if(Ye.current!==On)throw Error(Q(168));ge(Ye,t),ge(lt,n)}function zh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Q(108,Hx(e)||"Unknown",o));return be({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,tr=Ye.current,ge(Ye,e),ge(lt,lt.current),!0}function Dd(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=zh(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,we(lt),we(Ye),ge(Ye,e)):we(lt),ge(lt,n)}var Xt=null,ul=!1,ea=!1;function Uh(e){Xt===null?Xt=[e]:Xt.push(e)}function l1(e){ul=!0,Uh(e)}function Fn(){if(!ea&&Xt!==null){ea=!0;var e=0,t=he;try{var n=Xt;for(he=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xt=null,ul=!1}catch(o){throw Xt!==null&&(Xt=Xt.slice(e+1)),ph(ec,Fn),o}finally{he=t,ea=!1}}return null}var kr=[],br=0,Ni=null,Mi=0,jt=[],kt=0,nr=null,Zt=1,en="";function zn(e,t){kr[br++]=Mi,kr[br++]=Ni,Ni=e,Mi=t}function Wh(e,t,n){jt[kt++]=Zt,jt[kt++]=en,jt[kt++]=nr,nr=e;var r=Zt;e=en;var o=32-At(r)-1;r&=~(1<<o),n+=1;var s=32-At(t)+o;if(30<s){var l=o-o%5;s=(r&(1<<l)-1).toString(32),r>>=l,o-=l,Zt=1<<32-At(t)+o|n<<o|r,en=s+e}else Zt=1<<s|n<<o|r,en=e}function uc(e){e.return!==null&&(zn(e,1),Wh(e,1,0))}function cc(e){for(;e===Ni;)Ni=kr[--br],kr[br]=null,Mi=kr[--br],kr[br]=null;for(;e===nr;)nr=jt[--kt],jt[kt]=null,en=jt[--kt],jt[kt]=null,Zt=jt[--kt],jt[kt]=null}var mt=null,ht=null,Se=!1,Mt=null;function Hh(e,t){var n=bt(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 $d(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,mt=e,ht=bn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,ht=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=nr!==null?{id:Zt,overflow:en}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mt=e,ht=null,!0):!1;default:return!1}}function su(e){return(e.mode&1)!==0&&(e.flags&128)===0}function iu(e){if(Se){var t=ht;if(t){var n=t;if(!$d(e,t)){if(su(e))throw Error(Q(418));t=bn(n.nextSibling);var r=mt;t&&$d(e,t)?Hh(r,n):(e.flags=e.flags&-4097|2,Se=!1,mt=e)}}else{if(su(e))throw Error(Q(418));e.flags=e.flags&-4097|2,Se=!1,mt=e}}}function Bd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function Rs(e){if(e!==mt)return!1;if(!Se)return Bd(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tu(e.type,e.memoizedProps)),t&&(t=ht)){if(su(e))throw Vh(),Error(Q(418));for(;t;)Hh(e,t),t=bn(t.nextSibling)}if(Bd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ht=bn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ht=null}}else ht=mt?bn(e.stateNode.nextSibling):null;return!0}function Vh(){for(var e=ht;e;)e=bn(e.nextSibling)}function $r(){ht=mt=null,Se=!1}function dc(e){Mt===null?Mt=[e]:Mt.push(e)}var a1=ln.ReactCurrentBatchConfig;function uo(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(Q(309));var r=n.stateNode}if(!r)throw Error(Q(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(l){var a=o.refs;l===null?delete a[s]:a[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(Q(284));if(!n._owner)throw Error(Q(290,e))}return e}function _s(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zd(e){var t=e._init;return t(e._payload)}function qh(e){function t(g,h){if(e){var m=g.deletions;m===null?(g.deletions=[h],g.flags|=16):m.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function o(g,h){return g=Rn(g,h),g.index=0,g.sibling=null,g}function s(g,h,m){return g.index=m,e?(m=g.alternate,m!==null?(m=m.index,m<h?(g.flags|=2,h):m):(g.flags|=2,h)):(g.flags|=1048576,h)}function l(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,h,m,w){return h===null||h.tag!==6?(h=la(m,g.mode,w),h.return=g,h):(h=o(h,m),h.return=g,h)}function u(g,h,m,w){var S=m.type;return S===xr?p(g,h,m.props.children,w,m.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hn&&zd(S)===h.type)?(w=o(h,m.props),w.ref=uo(g,h,m),w.return=g,w):(w=ai(m.type,m.key,m.props,null,g.mode,w),w.ref=uo(g,h,m),w.return=g,w)}function c(g,h,m,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=aa(m,g.mode,w),h.return=g,h):(h=o(h,m.children||[]),h.return=g,h)}function p(g,h,m,w,S){return h===null||h.tag!==7?(h=Yn(m,g.mode,w,S),h.return=g,h):(h=o(h,m),h.return=g,h)}function d(g,h,m){if(typeof h=="string"&&h!==""||typeof h=="number")return h=la(""+h,g.mode,m),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case vs:return m=ai(h.type,h.key,h.props,null,g.mode,m),m.ref=uo(g,null,h),m.return=g,m;case gr:return h=aa(h,g.mode,m),h.return=g,h;case hn:var w=h._init;return d(g,w(h._payload),m)}if(Eo(h)||oo(h))return h=Yn(h,g.mode,m,null),h.return=g,h;_s(g,h)}return null}function f(g,h,m,w){var S=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:a(g,h,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case vs:return m.key===S?u(g,h,m,w):null;case gr:return m.key===S?c(g,h,m,w):null;case hn:return S=m._init,f(g,h,S(m._payload),w)}if(Eo(m)||oo(m))return S!==null?null:p(g,h,m,w,null);_s(g,m)}return null}function b(g,h,m,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(m)||null,a(h,g,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case vs:return g=g.get(w.key===null?m:w.key)||null,u(h,g,w,S);case gr:return g=g.get(w.key===null?m:w.key)||null,c(h,g,w,S);case hn:var T=w._init;return b(g,h,m,T(w._payload),S)}if(Eo(w)||oo(w))return g=g.get(m)||null,p(h,g,w,S,null);_s(h,w)}return null}function k(g,h,m,w){for(var S=null,T=null,x=h,y=h=0,E=null;x!==null&&y<m.length;y++){x.index>y?(E=x,x=null):E=x.sibling;var _=f(g,x,m[y],w);if(_===null){x===null&&(x=E);break}e&&x&&_.alternate===null&&t(g,x),h=s(_,h,y),T===null?S=_:T.sibling=_,T=_,x=E}if(y===m.length)return n(g,x),Se&&zn(g,y),S;if(x===null){for(;y<m.length;y++)x=d(g,m[y],w),x!==null&&(h=s(x,h,y),T===null?S=x:T.sibling=x,T=x);return Se&&zn(g,y),S}for(x=r(g,x);y<m.length;y++)E=b(x,g,y,m[y],w),E!==null&&(e&&E.alternate!==null&&x.delete(E.key===null?y:E.key),h=s(E,h,y),T===null?S=E:T.sibling=E,T=E);return e&&x.forEach(function(j){return t(g,j)}),Se&&zn(g,y),S}function v(g,h,m,w){var S=oo(m);if(typeof S!="function")throw Error(Q(150));if(m=S.call(m),m==null)throw Error(Q(151));for(var T=S=null,x=h,y=h=0,E=null,_=m.next();x!==null&&!_.done;y++,_=m.next()){x.index>y?(E=x,x=null):E=x.sibling;var j=f(g,x,_.value,w);if(j===null){x===null&&(x=E);break}e&&x&&j.alternate===null&&t(g,x),h=s(j,h,y),T===null?S=j:T.sibling=j,T=j,x=E}if(_.done)return n(g,x),Se&&zn(g,y),S;if(x===null){for(;!_.done;y++,_=m.next())_=d(g,_.value,w),_!==null&&(h=s(_,h,y),T===null?S=_:T.sibling=_,T=_);return Se&&zn(g,y),S}for(x=r(g,x);!_.done;y++,_=m.next())_=b(x,g,y,_.value,w),_!==null&&(e&&_.alternate!==null&&x.delete(_.key===null?y:_.key),h=s(_,h,y),T===null?S=_:T.sibling=_,T=_);return e&&x.forEach(function(R){return t(g,R)}),Se&&zn(g,y),S}function C(g,h,m,w){if(typeof m=="object"&&m!==null&&m.type===xr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case vs:e:{for(var S=m.key,T=h;T!==null;){if(T.key===S){if(S=m.type,S===xr){if(T.tag===7){n(g,T.sibling),h=o(T,m.props.children),h.return=g,g=h;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hn&&zd(S)===T.type){n(g,T.sibling),h=o(T,m.props),h.ref=uo(g,T,m),h.return=g,g=h;break e}n(g,T);break}else t(g,T);T=T.sibling}m.type===xr?(h=Yn(m.props.children,g.mode,w,m.key),h.return=g,g=h):(w=ai(m.type,m.key,m.props,null,g.mode,w),w.ref=uo(g,h,m),w.return=g,g=w)}return l(g);case gr:e:{for(T=m.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(g,h.sibling),h=o(h,m.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=aa(m,g.mode,w),h.return=g,g=h}return l(g);case hn:return T=m._init,C(g,h,T(m._payload),w)}if(Eo(m))return k(g,h,m,w);if(oo(m))return v(g,h,m,w);_s(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,m),h.return=g,g=h):(n(g,h),h=la(m,g.mode,w),h.return=g,g=h),l(g)):n(g,h)}return C}var Br=qh(!0),Qh=qh(!1),Ai=An(null),Fi=null,Er=null,fc=null;function pc(){fc=Er=Fi=null}function hc(e){var t=Ai.current;we(Ai),e._currentValue=t}function lu(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 Mr(e,t){Fi=e,fc=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(it=!0),e.firstContext=null)}function Ct(e){var t=e._currentValue;if(fc!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(Fi===null)throw Error(Q(308));Er=e,Fi.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Vn=null;function mc(e){Vn===null?Vn=[e]:Vn.push(e)}function Kh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,mc(t)):(n.next=o.next,o.next=n),t.interleaved=n,on(e,r)}function on(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 mn=!1;function gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gh(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 tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function En(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,on(e,n)}return o=r.interleaved,o===null?(t.next=t,mc(r)):(t.next=o.next,o.next=t),r.interleaved=t,on(e,n)}function ni(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,tc(e,n)}}function Ud(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,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 Ii(e,t,n,r){var o=e.updateQueue;mn=!1;var s=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,c=u.next;u.next=null,l===null?s=c:l.next=c,l=u;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==l&&(a===null?p.firstBaseUpdate=c:a.next=c,p.lastBaseUpdate=u))}if(s!==null){var d=o.baseState;l=0,p=c=u=null,a=s;do{var f=a.lane,b=a.eventTime;if((r&f)===f){p!==null&&(p=p.next={eventTime:b,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var k=e,v=a;switch(f=t,b=n,v.tag){case 1:if(k=v.payload,typeof k=="function"){d=k.call(b,d,f);break e}d=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=v.payload,f=typeof k=="function"?k.call(b,d,f):k,f==null)break e;d=be({},d,f);break e;case 2:mn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else b={eventTime:b,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(c=p=b,u=d):p=p.next=b,l|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(p===null&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);or|=l,e.lanes=l,e.memoizedState=d}}function Wd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Q(191,o));o.call(r)}}}var ps={},Qt=An(ps),ts=An(ps),ns=An(ps);function qn(e){if(e===ps)throw Error(Q(174));return e}function xc(e,t){switch(ge(ns,t),ge(ts,e),ge(Qt,ps),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:za(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=za(t,e)}we(Qt),ge(Qt,t)}function zr(){we(Qt),we(ts),we(ns)}function Jh(e){qn(ns.current);var t=qn(Qt.current),n=za(t,e.type);t!==n&&(ge(ts,e),ge(Qt,n))}function vc(e){ts.current===e&&(we(Qt),we(ts))}var je=An(0);function Di(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 ta=[];function yc(){for(var e=0;e<ta.length;e++)ta[e]._workInProgressVersionPrimary=null;ta.length=0}var ri=ln.ReactCurrentDispatcher,na=ln.ReactCurrentBatchConfig,rr=0,ke=null,Ne=null,De=null,$i=!1,Do=!1,rs=0,u1=0;function Qe(){throw Error(Q(321))}function wc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function Sc(e,t,n,r,o,s){if(rr=s,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ri.current=e===null||e.memoizedState===null?p1:h1,e=n(r,o),Do){s=0;do{if(Do=!1,rs=0,25<=s)throw Error(Q(301));s+=1,De=Ne=null,t.updateQueue=null,ri.current=m1,e=n(r,o)}while(Do)}if(ri.current=Bi,t=Ne!==null&&Ne.next!==null,rr=0,De=Ne=ke=null,$i=!1,t)throw Error(Q(300));return e}function jc(){var e=rs!==0;return rs=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?ke.memoizedState=De=e:De=De.next=e,De}function Tt(){if(Ne===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=De===null?ke.memoizedState:De.next;if(t!==null)De=t,Ne=e;else{if(e===null)throw Error(Q(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},De===null?ke.memoizedState=De=e:De=De.next=e}return De}function os(e,t){return typeof t=="function"?t(e):t}function ra(e){var t=Tt(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var r=Ne,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var l=o.next;o.next=s.next,s.next=l}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=l=null,u=null,c=s;do{var p=c.lane;if((rr&p)===p)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=d,l=r):u=u.next=d,ke.lanes|=p,or|=p}c=c.next}while(c!==null&&c!==s);u===null?l=r:u.next=a,Dt(r,t.memoizedState)||(it=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,ke.lanes|=s,or|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function oa(e){var t=Tt(),n=t.queue;if(n===null)throw Error(Q(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do s=e(s,l.action),l=l.next;while(l!==o);Dt(s,t.memoizedState)||(it=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Yh(){}function Xh(e,t){var n=ke,r=Tt(),o=t(),s=!Dt(r.memoizedState,o);if(s&&(r.memoizedState=o,it=!0),r=r.queue,kc(tm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,ss(9,em.bind(null,n,r,o,t),void 0,null),ze===null)throw Error(Q(349));rr&30||Zh(n,t,o)}return o}function Zh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function em(e,t,n,r){t.value=n,t.getSnapshot=r,nm(t)&&rm(e)}function tm(e,t,n){return n(function(){nm(t)&&rm(e)})}function nm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function rm(e){var t=on(e,1);t!==null&&Ft(t,e,1,-1)}function Hd(e){var t=Wt();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=f1.bind(null,ke,e),[t.memoizedState,e]}function ss(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.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 om(){return Tt().memoizedState}function oi(e,t,n,r){var o=Wt();ke.flags|=e,o.memoizedState=ss(1|t,n,void 0,r===void 0?null:r)}function cl(e,t,n,r){var o=Tt();r=r===void 0?null:r;var s=void 0;if(Ne!==null){var l=Ne.memoizedState;if(s=l.destroy,r!==null&&wc(r,l.deps)){o.memoizedState=ss(t,n,s,r);return}}ke.flags|=e,o.memoizedState=ss(1|t,n,s,r)}function Vd(e,t){return oi(8390656,8,e,t)}function kc(e,t){return cl(2048,8,e,t)}function sm(e,t){return cl(4,2,e,t)}function im(e,t){return cl(4,4,e,t)}function lm(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 am(e,t,n){return n=n!=null?n.concat([e]):null,cl(4,4,lm.bind(null,t,e),n)}function bc(){}function um(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cm(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dm(e,t,n){return rr&21?(Dt(n,t)||(n=gh(),ke.lanes|=n,or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,it=!0),e.memoizedState=n)}function c1(e,t){var n=he;he=n!==0&&4>n?n:4,e(!0);var r=na.transition;na.transition={};try{e(!1),t()}finally{he=n,na.transition=r}}function fm(){return Tt().memoizedState}function d1(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pm(e))hm(t,n);else if(n=Kh(e,t,n,r),n!==null){var o=tt();Ft(n,e,r,o),mm(n,t,r)}}function f1(e,t,n){var r=Tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pm(e))hm(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,a=s(l,n);if(o.hasEagerState=!0,o.eagerState=a,Dt(a,l)){var u=t.interleaved;u===null?(o.next=o,mc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Kh(e,t,o,r),n!==null&&(o=tt(),Ft(n,e,r,o),mm(n,t,r))}}function pm(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function hm(e,t){Do=$i=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tc(e,n)}}var Bi={readContext:Ct,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},p1={readContext:Ct,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Vd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oi(4194308,4,lm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oi(4194308,4,e,t)},useInsertionEffect:function(e,t){return oi(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();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=d1.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:Hd,useDebugValue:bc,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=Hd(!1),t=e[0];return e=c1.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=Wt();if(Se){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),ze===null)throw Error(Q(349));rr&30||Zh(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Vd(tm.bind(null,r,s,e),[e]),r.flags|=2048,ss(9,em.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Wt(),t=ze.identifierPrefix;if(Se){var n=en,r=Zt;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=u1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},h1={readContext:Ct,useCallback:um,useContext:Ct,useEffect:kc,useImperativeHandle:am,useInsertionEffect:sm,useLayoutEffect:im,useMemo:cm,useReducer:ra,useRef:om,useState:function(){return ra(os)},useDebugValue:bc,useDeferredValue:function(e){var t=Tt();return dm(t,Ne.memoizedState,e)},useTransition:function(){var e=ra(os)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:Yh,useSyncExternalStore:Xh,useId:fm,unstable_isNewReconciler:!1},m1={readContext:Ct,useCallback:um,useContext:Ct,useEffect:kc,useImperativeHandle:am,useInsertionEffect:sm,useLayoutEffect:im,useMemo:cm,useReducer:oa,useRef:om,useState:function(){return oa(os)},useDebugValue:bc,useDeferredValue:function(e){var t=Tt();return Ne===null?t.memoizedState=e:dm(t,Ne.memoizedState,e)},useTransition:function(){var e=oa(os)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:Yh,useSyncExternalStore:Xh,useId:fm,unstable_isNewReconciler:!1};function Ot(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function au(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dl={isMounted:function(e){return(e=e._reactInternals)?ur(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),o=Tn(e),s=tn(r,o);s.payload=t,n!=null&&(s.callback=n),t=En(e,s,o),t!==null&&(Ft(t,e,o,r),ni(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),o=Tn(e),s=tn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=En(e,s,o),t!==null&&(Ft(t,e,o,r),ni(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=Tn(e),o=tn(n,r);o.tag=2,t!=null&&(o.callback=t),t=En(e,o,r),t!==null&&(Ft(t,e,r,n),ni(t,e,r))}};function qd(e,t,n,r,o,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,l):t.prototype&&t.prototype.isPureReactComponent?!Yo(n,r)||!Yo(o,s):!0}function gm(e,t,n){var r=!1,o=On,s=t.contextType;return typeof s=="object"&&s!==null?s=Ct(s):(o=at(t)?tr:Ye.current,r=t.contextTypes,s=(r=r!=null)?Dr(e,o):On),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=dl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Qd(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&&dl.enqueueReplaceState(t,t.state,null)}function uu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},gc(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Ct(s):(s=at(t)?tr:Ye.current,o.context=Dr(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(au(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&dl.enqueueReplaceState(o,o.state,null),Ii(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ur(e,t){try{var n="",r=t;do n+=Wx(r),r=r.return;while(r);var o=n}catch(s){o=`
|
|
52
52
|
Error generating stack: `+s.message+`
|
|
53
|
-
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function X0(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var o2=typeof WeakMap=="function"?WeakMap:Map;function Wh(e,t,r){r=tr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ki||(Ki=!0,iu=n),X0(e,t)},r}function Uh(e,t,r){r=tr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){X0(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){X0(e,t),typeof n!="function"&&(jr===null?jr=new Set([this]):jr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function $d(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new o2;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=v2.bind(null,e,t,r),t.then(e,e))}function Hd(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 Wd(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=tr(-1,1),t.tag=2,br(r,t,1))),r.lanes|=1),e)}var s2=ir.ReactCurrentOwner,et=!1;function Ve(e,t,r,n){t.child=e===null?yh(t,null,r,n):In(t,e.child,r,n)}function Ud(e,t,r,n,o){r=r.render;var s=t.ref;return Pn(t,o),n=sc(e,t,r,n,s,o),r=ic(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sr(e,t,o)):(me&&r&&Qu(t),t.flags|=1,Ve(e,t,n,o),t.child)}function qd(e,t,r,n,o){if(e===null){var s=r.type;return typeof s=="function"&&!mc(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,qh(e,t,s,n,o)):(e=mi(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(r=r.compare,r=r!==null?r:es,r(i,n)&&e.ref===t.ref)return sr(e,t,o)}return t.flags|=1,e=Br(s,n),e.ref=t.ref,e.return=t,t.child=e}function qh(e,t,r,n,o){if(e!==null){var s=e.memoizedProps;if(es(s,n)&&e.ref===t.ref)if(et=!1,t.pendingProps=n=s,(e.lanes&o)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,sr(e,t,o)}return Y0(e,t,r,n,o)}function Vh(e,t,r){var n=t.pendingProps,o=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(An,ut),ut|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(An,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,de(An,ut),ut|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,de(An,ut),ut|=n;return Ve(e,t,o,r),t.child}function Qh(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Y0(e,t,r,n,o){var s=rt(r)?Yr:We.current;return s=Nn(t,s),Pn(t,o),r=sc(e,t,r,n,s,o),n=ic(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sr(e,t,o)):(me&&n&&Qu(t),t.flags|=1,Ve(e,t,r,o),t.child)}function Vd(e,t,r,n,o){if(rt(r)){var s=!0;zi(t)}else s=!1;if(Pn(t,o),t.stateNode===null)xi(e,t),Hh(t,r,n),G0(t,r,n,o),n=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,u=r.contextType;typeof u=="object"&&u!==null?u=wt(u):(u=rt(r)?Yr:We.current,u=Nn(t,u));var f=r.getDerivedStateFromProps,h=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==n||c!==u)&&Md(t,i,n,u),hr=!1;var d=t.memoizedState;i.state=d,Wi(t,n,i,o),c=t.memoizedState,l!==n||d!==c||tt.current||hr?(typeof f=="function"&&(K0(t,r,f,n),c=t.memoizedState),(l=hr||Id(t,r,l,n,d,c,u))?(h||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=n,t.memoizedState=c),i.props=n,i.state=c,i.context=u,n=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Eh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Dt(t.type,l),i.props=u,h=t.pendingProps,d=i.context,c=r.contextType,typeof c=="object"&&c!==null?c=wt(c):(c=rt(r)?Yr:We.current,c=Nn(t,c));var C=r.getDerivedStateFromProps;(f=typeof C=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||d!==c)&&Md(t,i,n,c),hr=!1,d=t.memoizedState,i.state=d,Wi(t,n,i,o);var y=t.memoizedState;l!==h||d!==y||tt.current||hr?(typeof C=="function"&&(K0(t,r,C,n),y=t.memoizedState),(u=hr||Id(t,r,u,n,d,y,c)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,y,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,y,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=y),i.props=n,i.state=y,i.context=c,n=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return J0(e,t,r,n,s,o)}function J0(e,t,r,n,o,s){Qh(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return o&&_d(t,r,!1),sr(e,t,s);n=t.stateNode,s2.current=t;var l=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=In(t,e.child,null,s),t.child=In(t,null,l,s)):Ve(e,t,l,s),t.memoizedState=n.state,o&&_d(t,r,!0),t.child}function Kh(e){var t=e.stateNode;t.pendingContext?Dd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Dd(e,t.context,!1),tc(e,t.containerInfo)}function Qd(e,t,r,n,o){return zn(),Gu(o),t.flags|=256,Ve(e,t,r,n),t.child}var Z0={dehydrated:null,treeContext:null,retryLane:0};function eu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Gh(e,t,r){var n=t.pendingProps,o=ge.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(ge,o&1),e===null)return V0(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=n.children,e=n.fallback,s?(n=t.mode,s=t.child,i={mode:"hidden",children:i},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=ya(i,n,0,null),e=Kr(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=eu(r),t.memoizedState=Z0,e):uc(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return i2(e,t,i,n,l,o,r);if(s){s=n.fallback,i=t.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:n.children};return!(i&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=Br(o,c),n.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=Br(l,s):(s=Kr(s,i,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,i=e.child.memoizedState,i=i===null?eu(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~r,t.memoizedState=Z0,n}return s=e.child,e=s.sibling,n=Br(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function uc(e,t){return t=ya({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zs(e,t,r,n){return n!==null&&Gu(n),In(t,e.child,null,r),e=uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function i2(e,t,r,n,o,s,i){if(r)return t.flags&256?(t.flags&=-257,n=cl(Error(W(422))),zs(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,o=t.mode,n=ya({mode:"visible",children:n.children},o,0,null),s=Kr(s,o,i,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&In(t,e.child,null,i),t.child.memoizedState=eu(i),t.memoizedState=Z0,s);if(!(t.mode&1))return zs(e,t,i,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var l=n.dgst;return n=l,s=Error(W(419)),n=cl(s,n,void 0),zs(e,t,i,n)}if(l=(i&e.childLanes)!==0,et||l){if(n=Re,n!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,or(e,o),Pt(n,e,o,-1))}return hc(),n=cl(Error(W(421))),zs(e,t,i,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=y2.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ct=Sr(o.nextSibling),ft=t,me=!0,Rt=null,e!==null&&(vt[yt++]=Zt,vt[yt++]=er,vt[yt++]=Jr,Zt=e.id,er=e.overflow,Jr=t),t=uc(t,n.children),t.flags|=4096,t)}function Kd(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Q0(e.return,t,r)}function dl(e,t,r,n,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=o)}function Xh(e,t,r){var n=t.pendingProps,o=n.revealOrder,s=n.tail;if(Ve(e,t,n.children,r),n=ge.current,n&2)n=n&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&&Kd(e,r,t);else if(e.tag===19)Kd(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(de(ge,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Ui(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),dl(t,!1,o,r,s);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ui(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}dl(t,!0,r,null,s);break;case"together":dl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),en|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,r=Br(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Br(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function a2(e,t,r){switch(t.tag){case 3:Kh(t),zn();break;case 5:wh(t);break;case 1:rt(t.type)&&zi(t);break;case 4:tc(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;de($i,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(de(ge,ge.current&1),t.flags|=128,null):r&t.child.childLanes?Gh(e,t,r):(de(ge,ge.current&1),e=sr(e,t,r),e!==null?e.sibling:null);de(ge,ge.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Xh(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(ge,ge.current),n)break;return null;case 22:case 23:return t.lanes=0,Vh(e,t,r)}return sr(e,t,r)}var Yh,tu,Jh,Zh;Yh=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};tu=function(){};Jh=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Ur(Qt.current);var s=null;switch(r){case"input":o=S0(e,o),n=S0(e,n),s=[];break;case"select":o=ye({},o,{value:void 0}),n=ye({},n,{value:void 0}),s=[];break;case"textarea":o=k0(e,o),n=k0(e,n),s=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Li)}A0(r,n);var i;r=null;for(u in o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qo.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in n){var c=n[u];if(l=o!=null?o[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(r||(r={}),r[i]=c[i])}else r||(s||(s=[]),s.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qo.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&xe("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}r&&(s=s||[]).push("style",r);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Zh=function(e,t,r,n){r!==n&&(t.flags|=4)};function po(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function l2(e,t,r){var n=t.pendingProps;switch(Ku(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return rt(t.type)&&Ni(),Me(t),null;case 3:return n=t.stateNode,Mn(),he(tt),he(We),nc(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ls(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(uu(Rt),Rt=null))),tu(e,t),Me(t),null;case 5:rc(t);var o=Ur(ss.current);if(r=t.type,e!==null&&t.stateNode!=null)Jh(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(W(166));return Me(t),null}if(e=Ur(Qt.current),Ls(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[Ut]=t,n[ns]=s,e=(t.mode&1)!==0,r){case"dialog":xe("cancel",n),xe("close",n);break;case"iframe":case"object":case"embed":xe("load",n);break;case"video":case"audio":for(o=0;o<Do.length;o++)xe(Do[o],n);break;case"source":xe("error",n);break;case"img":case"image":case"link":xe("error",n),xe("load",n);break;case"details":xe("toggle",n);break;case"input":nd(n,s),xe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},xe("invalid",n);break;case"textarea":sd(n,s),xe("invalid",n)}A0(r,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?n.textContent!==l&&(s.suppressHydrationWarning!==!0&&Os(n.textContent,l,e),o=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Os(n.textContent,l,e),o=["children",""+l]):Qo.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&xe("scroll",n)}switch(r){case"input":Bs(n),od(n,s,!0);break;case"textarea":Bs(n),id(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Li)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Bp(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Ut]=t,e[ns]=n,Yh(e,t,!1,!1),t.stateNode=e;e:{switch(i=F0(r,n),r){case"dialog":xe("cancel",e),xe("close",e),o=n;break;case"iframe":case"object":case"embed":xe("load",e),o=n;break;case"video":case"audio":for(o=0;o<Do.length;o++)xe(Do[o],e);o=n;break;case"source":xe("error",e),o=n;break;case"img":case"image":case"link":xe("error",e),xe("load",e),o=n;break;case"details":xe("toggle",e),o=n;break;case"input":nd(e,n),o=S0(e,n),xe("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=ye({},n,{value:void 0}),xe("invalid",e);break;case"textarea":sd(e,n),o=k0(e,n),xe("invalid",e);break;default:o=n}A0(r,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?Dp(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Ap(e,c)):s==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Ko(e,c):typeof c=="number"&&Ko(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Qo.hasOwnProperty(s)?c!=null&&s==="onScroll"&&xe("scroll",e):c!=null&&Tu(e,s,c,i))}switch(r){case"input":Bs(e),od(e,n,!1);break;case"textarea":Bs(e),id(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Fr(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?Dn(e,!!n.multiple,s,!1):n.defaultValue!=null&&Dn(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Li)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Me(t),null;case 6:if(e&&t.stateNode!=null)Zh(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(W(166));if(r=Ur(ss.current),Ur(Qt.current),Ls(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ut]=t,(s=n.nodeValue!==r)&&(e=ft,e!==null))switch(e.tag){case 3:Os(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Os(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ut]=t,t.stateNode=n}return Me(t),null;case 13:if(he(ge),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&ct!==null&&t.mode&1&&!(t.flags&128))gh(),zn(),t.flags|=98560,s=!1;else if(s=Ls(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(W(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(W(317));s[Ut]=t}else zn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),s=!1}else Rt!==null&&(uu(Rt),Rt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?ke===0&&(ke=3):hc())),t.updateQueue!==null&&(t.flags|=4),Me(t),null);case 4:return Mn(),tu(e,t),e===null&&ts(t.stateNode.containerInfo),Me(t),null;case 10:return Ju(t.type._context),Me(t),null;case 17:return rt(t.type)&&Ni(),Me(t),null;case 19:if(he(ge),s=t.memoizedState,s===null)return Me(t),null;if(n=(t.flags&128)!==0,i=s.rendering,i===null)if(n)po(s,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Ui(e),i!==null){for(t.flags|=128,po(s,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return de(ge,ge.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ee()>Hn&&(t.flags|=128,n=!0,po(s,!1),t.lanes=4194304)}else{if(!n)if(e=Ui(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),po(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!me)return Me(t),null}else 2*Ee()-s.renderingStartTime>Hn&&r!==1073741824&&(t.flags|=128,n=!0,po(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(r=s.last,r!==null?r.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ee(),t.sibling=null,r=ge.current,de(ge,n?r&1|2:r&1),t):(Me(t),null);case 22:case 23:return pc(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ut&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function u2(e,t){switch(Ku(t),t.tag){case 1:return rt(t.type)&&Ni(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(),he(tt),he(We),nc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rc(t),null;case 13:if(he(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(ge),null;case 4:return Mn(),null;case 10:return Ju(t.type._context),null;case 22:case 23:return pc(),null;case 24:return null;default:return null}}var Is=!1,$e=!1,c2=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Bn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ce(e,t,n)}else r.current=null}function ru(e,t,r){try{r()}catch(n){Ce(e,t,n)}}var Gd=!1;function d2(e,t){if(I0=Ti,e=oh(),Vu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var i=0,l=-1,c=-1,u=0,f=0,h=e,d=null;t:for(;;){for(var C;h!==r||o!==0&&h.nodeType!==3||(l=i+o),h!==s||n!==0&&h.nodeType!==3||(c=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(C=h.firstChild)!==null;)d=h,h=C;for(;;){if(h===e)break t;if(d===r&&++u===o&&(l=i),d===s&&++f===n&&(c=i),(C=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=C}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(M0={focusedElem:e,selectionRange:r},Ti=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,E=y.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Dt(t.type,m),E);v.__reactInternalSnapshotBeforeUpdate=x}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(W(163))}}catch(g){Ce(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return y=Gd,Gd=!1,y}function Ho(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&ru(t,r,s)}o=o.next}while(o!==n)}}function ga(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function nu(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function e1(e){var t=e.alternate;t!==null&&(e.alternate=null,e1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ut],delete t[ns],delete t[W0],delete t[Qv],delete t[Kv])),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 t1(e){return e.tag===5||e.tag===3||e.tag===4}function Xd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t1(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 ou(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Li));else if(n!==4&&(e=e.child,e!==null))for(ou(e,t,r),e=e.sibling;e!==null;)ou(e,t,r),e=e.sibling}function su(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(su(e,t,r),e=e.sibling;e!==null;)su(e,t,r),e=e.sibling}var Oe=null,_t=!1;function cr(e,t,r){for(r=r.child;r!==null;)r1(e,t,r),r=r.sibling}function r1(e,t,r){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(ua,r)}catch{}switch(r.tag){case 5:$e||Bn(r,t);case 6:var n=Oe,o=_t;Oe=null,cr(e,t,r),Oe=n,_t=o,Oe!==null&&(_t?(e=Oe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Oe.removeChild(r.stateNode));break;case 18:Oe!==null&&(_t?(e=Oe,r=r.stateNode,e.nodeType===8?ol(e.parentNode,r):e.nodeType===1&&ol(e,r),Jo(e)):ol(Oe,r.stateNode));break;case 4:n=Oe,o=_t,Oe=r.stateNode.containerInfo,_t=!0,cr(e,t,r),Oe=n,_t=o;break;case 0:case 11:case 14:case 15:if(!$e&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&ru(r,t,i),o=o.next}while(o!==n)}cr(e,t,r);break;case 1:if(!$e&&(Bn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Ce(r,t,l)}cr(e,t,r);break;case 21:cr(e,t,r);break;case 22:r.mode&1?($e=(n=$e)||r.memoizedState!==null,cr(e,t,r),$e=n):cr(e,t,r);break;default:cr(e,t,r)}}function Yd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new c2),t.forEach(function(n){var o=C2.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Bt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Oe=l.stateNode,_t=!1;break e;case 3:Oe=l.stateNode.containerInfo,_t=!0;break e;case 4:Oe=l.stateNode.containerInfo,_t=!0;break e}l=l.return}if(Oe===null)throw Error(W(160));r1(s,i,o),Oe=null,_t=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){Ce(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)n1(t,e),t=t.sibling}function n1(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Bt(t,e),Mt(e),n&4){try{Ho(3,e,e.return),ga(3,e)}catch(m){Ce(e,e.return,m)}try{Ho(5,e,e.return)}catch(m){Ce(e,e.return,m)}}break;case 1:Bt(t,e),Mt(e),n&512&&r!==null&&Bn(r,r.return);break;case 5:if(Bt(t,e),Mt(e),n&512&&r!==null&&Bn(r,r.return),e.flags&32){var o=e.stateNode;try{Ko(o,"")}catch(m){Ce(e,e.return,m)}}if(n&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=r!==null?r.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&jp(o,s),F0(l,i);var u=F0(l,s);for(i=0;i<c.length;i+=2){var f=c[i],h=c[i+1];f==="style"?Dp(o,h):f==="dangerouslySetInnerHTML"?Ap(o,h):f==="children"?Ko(o,h):Tu(o,f,h,u)}switch(l){case"input":b0(o,s);break;case"textarea":kp(o,s);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var C=s.value;C!=null?Dn(o,!!s.multiple,C,!1):d!==!!s.multiple&&(s.defaultValue!=null?Dn(o,!!s.multiple,s.defaultValue,!0):Dn(o,!!s.multiple,s.multiple?[]:"",!1))}o[ns]=s}catch(m){Ce(e,e.return,m)}}break;case 6:if(Bt(t,e),Mt(e),n&4){if(e.stateNode===null)throw Error(W(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(m){Ce(e,e.return,m)}}break;case 3:if(Bt(t,e),Mt(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Jo(t.containerInfo)}catch(m){Ce(e,e.return,m)}break;case 4:Bt(t,e),Mt(e);break;case 13:Bt(t,e),Mt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(fc=Ee())),n&4&&Yd(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?($e=(u=$e)||f,Bt(t,e),$e=u):Bt(t,e),Mt(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Q=e,f=e.child;f!==null;){for(h=Q=f;Q!==null;){switch(d=Q,C=d.child,d.tag){case 0:case 11:case 14:case 15:Ho(4,d,d.return);break;case 1:Bn(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Ce(n,r,m)}}break;case 5:Bn(d,d.return);break;case 22:if(d.memoizedState!==null){Zd(h);continue}}C!==null?(C.return=d,Q=C):Zd(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{o=h.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=h.stateNode,c=h.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Fp("display",i))}catch(m){Ce(e,e.return,m)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Ce(e,e.return,m)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Bt(t,e),Mt(e),n&4&&Yd(e);break;case 21:break;default:Bt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(t1(r)){var n=r;break e}r=r.return}throw Error(W(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Ko(o,""),n.flags&=-33);var s=Xd(e);su(e,s,o);break;case 3:case 4:var i=n.stateNode.containerInfo,l=Xd(e);ou(e,l,i);break;default:throw Error(W(161))}}catch(c){Ce(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function f2(e,t,r){Q=e,o1(e)}function o1(e,t,r){for(var n=(e.mode&1)!==0;Q!==null;){var o=Q,s=o.child;if(o.tag===22&&n){var i=o.memoizedState!==null||Is;if(!i){var l=o.alternate,c=l!==null&&l.memoizedState!==null||$e;l=Is;var u=$e;if(Is=i,($e=c)&&!u)for(Q=o;Q!==null;)i=Q,c=i.child,i.tag===22&&i.memoizedState!==null?ef(o):c!==null?(c.return=i,Q=c):ef(o);for(;s!==null;)Q=s,o1(s),s=s.sibling;Q=o,Is=l,$e=u}Jd(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,Q=s):Jd(e)}}function Jd(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:$e||ga(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!$e)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Dt(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Ld(t,s,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Ld(t,i,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&Jo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}$e||t.flags&512&&nu(t)}catch(d){Ce(t,t.return,d)}}if(t===e){Q=null;break}if(r=t.sibling,r!==null){r.return=t.return,Q=r;break}Q=t.return}}function Zd(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Q=r;break}Q=t.return}}function ef(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ga(4,t)}catch(c){Ce(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(c){Ce(t,o,c)}}var s=t.return;try{nu(t)}catch(c){Ce(t,s,c)}break;case 5:var i=t.return;try{nu(t)}catch(c){Ce(t,i,c)}}}catch(c){Ce(t,t.return,c)}if(t===e){Q=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Q=l;break}Q=t.return}}var x2=Math.ceil,Qi=ir.ReactCurrentDispatcher,cc=ir.ReactCurrentOwner,Et=ir.ReactCurrentBatchConfig,ae=0,Re=null,be=null,Ne=0,ut=0,An=Tr(0),ke=0,us=null,en=0,va=0,dc=0,Wo=null,Je=null,fc=0,Hn=1/0,Xt=null,Ki=!1,iu=null,jr=null,Ms=!1,yr=null,Gi=0,Uo=0,au=null,pi=-1,hi=0;function Qe(){return ae&6?Ee():pi!==-1?pi:pi=Ee()}function kr(e){return e.mode&1?ae&2&&Ne!==0?Ne&-Ne:Xv.transition!==null?(hi===0&&(hi=Hp()),hi):(e=ce,e!==0||(e=window.event,e=e===void 0?16:Gp(e.type)),e):1}function Pt(e,t,r,n){if(50<Uo)throw Uo=0,au=null,Error(W(185));ps(e,r,n),(!(ae&2)||e!==Re)&&(e===Re&&(!(ae&2)&&(va|=r),ke===4&&gr(e,Ne)),nt(e,n),r===1&&ae===0&&!(t.mode&1)&&(Hn=Ee()+500,pa&&Pr()))}function nt(e,t){var r=e.callbackNode;Xg(e,t);var n=Ri(e,e===Re?Ne:0);if(n===0)r!==null&&ud(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&ud(r),t===1)e.tag===0?Gv(tf.bind(null,e)):ph(tf.bind(null,e)),qv(function(){!(ae&6)&&Pr()}),r=null;else{switch(Wp(n)){case 1:r=zu;break;case 4:r=Mp;break;case 16:r=_i;break;case 536870912:r=$p;break;default:r=_i}r=f1(r,s1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function s1(e,t){if(pi=-1,hi=0,ae&6)throw Error(W(327));var r=e.callbackNode;if(On()&&e.callbackNode!==r)return null;var n=Ri(e,e===Re?Ne:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Xi(e,n);else{t=n;var o=ae;ae|=2;var s=a1();(Re!==e||Ne!==t)&&(Xt=null,Hn=Ee()+500,Qr(e,t));do try{m2();break}catch(l){i1(e,l)}while(!0);Yu(),Qi.current=s,ae=o,be!==null?t=0:(Re=null,Ne=0,t=ke)}if(t!==0){if(t===2&&(o=P0(e),o!==0&&(n=o,t=lu(e,o))),t===1)throw r=us,Qr(e,0),gr(e,n),nt(e,Ee()),r;if(t===6)gr(e,n);else{if(o=e.current.alternate,!(n&30)&&!p2(o)&&(t=Xi(e,n),t===2&&(s=P0(e),s!==0&&(n=s,t=lu(e,s))),t===1))throw r=us,Qr(e,0),gr(e,n),nt(e,Ee()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(W(345));case 2:Mr(e,Je,Xt);break;case 3:if(gr(e,n),(n&130023424)===n&&(t=fc+500-Ee(),10<t)){if(Ri(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){Qe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=H0(Mr.bind(null,e,Je,Xt),t);break}Mr(e,Je,Xt);break;case 4:if(gr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Tt(n);s=1<<i,i=t[i],i>o&&(o=i),n&=~s}if(n=o,n=Ee()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*x2(n/1960))-n,10<n){e.timeoutHandle=H0(Mr.bind(null,e,Je,Xt),n);break}Mr(e,Je,Xt);break;case 5:Mr(e,Je,Xt);break;default:throw Error(W(329))}}}return nt(e,Ee()),e.callbackNode===r?s1.bind(null,e):null}function lu(e,t){var r=Wo;return e.current.memoizedState.isDehydrated&&(Qr(e,t).flags|=256),e=Xi(e,t),e!==2&&(t=Je,Je=r,t!==null&&uu(t)),e}function uu(e){Je===null?Je=e:Je.push.apply(Je,e)}function p2(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],s=o.getSnapshot;o=o.value;try{if(!Lt(s(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function gr(e,t){for(t&=~dc,t&=~va,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Tt(t),n=1<<r;e[r]=-1,t&=~n}}function tf(e){if(ae&6)throw Error(W(327));On();var t=Ri(e,0);if(!(t&1))return nt(e,Ee()),null;var r=Xi(e,t);if(e.tag!==0&&r===2){var n=P0(e);n!==0&&(t=n,r=lu(e,n))}if(r===1)throw r=us,Qr(e,0),gr(e,t),nt(e,Ee()),r;if(r===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mr(e,Je,Xt),nt(e,Ee()),null}function xc(e,t){var r=ae;ae|=1;try{return e(t)}finally{ae=r,ae===0&&(Hn=Ee()+500,pa&&Pr())}}function tn(e){yr!==null&&yr.tag===0&&!(ae&6)&&On();var t=ae;ae|=1;var r=Et.transition,n=ce;try{if(Et.transition=null,ce=1,e)return e()}finally{ce=n,Et.transition=r,ae=t,!(ae&6)&&Pr()}}function pc(){ut=An.current,he(An)}function Qr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Uv(r)),be!==null)for(r=be.return;r!==null;){var n=r;switch(Ku(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ni();break;case 3:Mn(),he(tt),he(We),nc();break;case 5:rc(n);break;case 4:Mn();break;case 13:he(ge);break;case 19:he(ge);break;case 10:Ju(n.type._context);break;case 22:case 23:pc()}r=r.return}if(Re=e,be=e=Br(e.current,null),Ne=ut=t,ke=0,us=null,dc=va=en=0,Je=Wo=null,Wr!==null){for(t=0;t<Wr.length;t++)if(r=Wr[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,s=r.pending;if(s!==null){var i=s.next;s.next=o,n.next=i}r.pending=n}Wr=null}return e}function i1(e,t){do{var r=be;try{if(Yu(),di.current=Vi,qi){for(var n=ve.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}qi=!1}if(Zr=0,Ae=je=ve=null,$o=!1,is=0,cc.current=null,r===null||r.return===null){ke=1,us=t,be=null;break}e:{var s=e,i=r.return,l=r,c=t;if(t=Ne,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=l,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var C=Hd(i);if(C!==null){C.flags&=-257,Wd(C,i,l,s,t),C.mode&1&&$d(s,u,t),t=C,c=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(c),t.updateQueue=m}else y.add(c);break e}else{if(!(t&1)){$d(s,u,t),hc();break e}c=Error(W(426))}}else if(me&&l.mode&1){var E=Hd(i);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Wd(E,i,l,s,t),Gu($n(c,l));break e}}s=c=$n(c,l),ke!==4&&(ke=2),Wo===null?Wo=[s]:Wo.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=Wh(s,c,t);Od(s,v);break e;case 1:l=c;var x=s.type,p=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(jr===null||!jr.has(p)))){s.flags|=65536,t&=-t,s.lanes|=t;var g=Uh(s,l,t);Od(s,g);break e}}s=s.return}while(s!==null)}u1(r)}catch(S){t=S,be===r&&r!==null&&(be=r=r.return);continue}break}while(!0)}function a1(){var e=Qi.current;return Qi.current=Vi,e===null?Vi:e}function hc(){(ke===0||ke===3||ke===2)&&(ke=4),Re===null||!(en&268435455)&&!(va&268435455)||gr(Re,Ne)}function Xi(e,t){var r=ae;ae|=2;var n=a1();(Re!==e||Ne!==t)&&(Xt=null,Qr(e,t));do try{h2();break}catch(o){i1(e,o)}while(!0);if(Yu(),ae=r,Qi.current=n,be!==null)throw Error(W(261));return Re=null,Ne=0,ke}function h2(){for(;be!==null;)l1(be)}function m2(){for(;be!==null&&!$g();)l1(be)}function l1(e){var t=d1(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?u1(e):be=t,cc.current=null}function u1(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=u2(r,t),r!==null){r.flags&=32767,be=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,be=null;return}}else if(r=l2(r,t,ut),r!==null){be=r;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);ke===0&&(ke=5)}function Mr(e,t,r){var n=ce,o=Et.transition;try{Et.transition=null,ce=1,g2(e,t,r,n)}finally{Et.transition=o,ce=n}return null}function g2(e,t,r,n){do On();while(yr!==null);if(ae&6)throw Error(W(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(Yg(e,s),e===Re&&(be=Re=null,Ne=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ms||(Ms=!0,f1(_i,function(){return On(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Et.transition,Et.transition=null;var i=ce;ce=1;var l=ae;ae|=4,cc.current=null,d2(e,r),n1(r,e),Nv(M0),Ti=!!I0,M0=I0=null,e.current=r,f2(r),Hg(),ae=l,ce=i,Et.transition=s}else e.current=r;if(Ms&&(Ms=!1,yr=e,Gi=o),s=e.pendingLanes,s===0&&(jr=null),qg(r.stateNode),nt(e,Ee()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Ki)throw Ki=!1,e=iu,iu=null,e;return Gi&1&&e.tag!==0&&On(),s=e.pendingLanes,s&1?e===au?Uo++:(Uo=0,au=e):Uo=0,Pr(),null}function On(){if(yr!==null){var e=Wp(Gi),t=Et.transition,r=ce;try{if(Et.transition=null,ce=16>e?16:e,yr===null)var n=!1;else{if(e=yr,yr=null,Gi=0,ae&6)throw Error(W(331));var o=ae;for(ae|=4,Q=e.current;Q!==null;){var s=Q,i=s.child;if(Q.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(Q=u;Q!==null;){var f=Q;switch(f.tag){case 0:case 11:case 15:Ho(8,f,s)}var h=f.child;if(h!==null)h.return=f,Q=h;else for(;Q!==null;){f=Q;var d=f.sibling,C=f.return;if(e1(f),f===u){Q=null;break}if(d!==null){d.return=C,Q=d;break}Q=C}}}var y=s.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var E=m.sibling;m.sibling=null,m=E}while(m!==null)}}Q=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,Q=i;else e:for(;Q!==null;){if(s=Q,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ho(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,Q=v;break e}Q=s.return}}var x=e.current;for(Q=x;Q!==null;){i=Q;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,Q=p;else e:for(i=x;Q!==null;){if(l=Q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ga(9,l)}}catch(S){Ce(l,l.return,S)}if(l===i){Q=null;break e}var g=l.sibling;if(g!==null){g.return=l.return,Q=g;break e}Q=l.return}}if(ae=o,Pr(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(ua,e)}catch{}n=!0}return n}finally{ce=r,Et.transition=t}}return!1}function rf(e,t,r){t=$n(r,t),t=Wh(e,t,1),e=br(e,t,1),t=Qe(),e!==null&&(ps(e,1,t),nt(e,t))}function Ce(e,t,r){if(e.tag===3)rf(e,e,r);else for(;t!==null;){if(t.tag===3){rf(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(jr===null||!jr.has(n))){e=$n(r,e),e=Uh(t,e,1),t=br(t,e,1),e=Qe(),t!==null&&(ps(t,1,e),nt(t,e));break}}t=t.return}}function v2(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Qe(),e.pingedLanes|=e.suspendedLanes&r,Re===e&&(Ne&r)===r&&(ke===4||ke===3&&(Ne&130023424)===Ne&&500>Ee()-fc?Qr(e,0):dc|=r),nt(e,t)}function c1(e,t){t===0&&(e.mode&1?(t=Ds,Ds<<=1,!(Ds&130023424)&&(Ds=4194304)):t=1);var r=Qe();e=or(e,t),e!==null&&(ps(e,t,r),nt(e,r))}function y2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),c1(e,r)}function C2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(W(314))}n!==null&&n.delete(t),c1(e,r)}var d1;d1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return et=!1,a2(e,t,r);et=!!(e.flags&131072)}else et=!1,me&&t.flags&1048576&&hh(t,Mi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;xi(e,t),e=t.pendingProps;var o=Nn(t,We.current);Pn(t,r),o=sc(null,t,n,e,o,r);var s=ic();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(n)?(s=!0,zi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ec(t),o.updater=ma,t.stateNode=o,o._reactInternals=t,G0(t,n,e,r),t=J0(null,t,n,!0,s,r)):(t.tag=0,me&&s&&Qu(t),Ve(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(xi(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=w2(n),e=Dt(n,e),o){case 0:t=Y0(null,t,n,e,r);break e;case 1:t=Vd(null,t,n,e,r);break e;case 11:t=Ud(null,t,n,e,r);break e;case 14:t=qd(null,t,n,Dt(n.type,e),r);break e}throw Error(W(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Dt(n,o),Y0(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Dt(n,o),Vd(e,t,n,o,r);case 3:e:{if(Kh(t),e===null)throw Error(W(387));n=t.pendingProps,s=t.memoizedState,o=s.element,Eh(e,t),Wi(t,n,null,r);var i=t.memoizedState;if(n=i.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=$n(Error(W(423)),t),t=Qd(e,t,n,r,o);break e}else if(n!==o){o=$n(Error(W(424)),t),t=Qd(e,t,n,r,o);break e}else for(ct=Sr(t.stateNode.containerInfo.firstChild),ft=t,me=!0,Rt=null,r=yh(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(zn(),n===o){t=sr(e,t,r);break e}Ve(e,t,n,r)}t=t.child}return t;case 5:return wh(t),e===null&&V0(t),n=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,$0(n,o)?i=null:s!==null&&$0(n,s)&&(t.flags|=32),Qh(e,t),Ve(e,t,i,r),t.child;case 6:return e===null&&V0(t),null;case 13:return Gh(e,t,r);case 4:return tc(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=In(t,null,n,r):Ve(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Dt(n,o),Ud(e,t,n,o,r);case 7:return Ve(e,t,t.pendingProps,r),t.child;case 8:return Ve(e,t,t.pendingProps.children,r),t.child;case 12:return Ve(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,de($i,n._currentValue),n._currentValue=i,s!==null)if(Lt(s.value,i)){if(s.children===o.children&&!tt.current){t=sr(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(s.tag===1){c=tr(-1,r&-r),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}s.lanes|=r,c=s.alternate,c!==null&&(c.lanes|=r),Q0(s.return,r,t),l.lanes|=r;break}c=c.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(W(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Q0(i,r,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Ve(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Pn(t,r),o=wt(o),n=n(o),t.flags|=1,Ve(e,t,n,r),t.child;case 14:return n=t.type,o=Dt(n,t.pendingProps),o=Dt(n.type,o),qd(e,t,n,o,r);case 15:return qh(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Dt(n,o),xi(e,t),t.tag=1,rt(n)?(e=!0,zi(t)):e=!1,Pn(t,r),Hh(t,n,o),G0(t,n,o,r),J0(null,t,n,!0,e,r);case 19:return Xh(e,t,r);case 22:return Vh(e,t,r)}throw Error(W(156,t.tag))};function f1(e,t){return Ip(e,t)}function E2(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,r,n){return new E2(e,t,r,n)}function mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function w2(e){if(typeof e=="function")return mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ou)return 11;if(e===Lu)return 14}return 2}function Br(e,t){var r=e.alternate;return r===null?(r=Ct(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function mi(e,t,r,n,o,s){var i=2;if(n=e,typeof e=="function")mc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case vn:return Kr(r.children,o,s,t);case Pu:i=8,o|=8;break;case y0:return e=Ct(12,r,t,o|2),e.elementType=y0,e.lanes=s,e;case C0:return e=Ct(13,r,t,o),e.elementType=C0,e.lanes=s,e;case E0:return e=Ct(19,r,t,o),e.elementType=E0,e.lanes=s,e;case wp:return ya(r,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cp:i=10;break e;case Ep:i=9;break e;case Ou:i=11;break e;case Lu:i=14;break e;case pr:i=16,n=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Ct(i,r,t,o),t.elementType=e,t.type=n,t.lanes=s,t}function Kr(e,t,r,n){return e=Ct(7,e,n,t),e.lanes=r,e}function ya(e,t,r,n){return e=Ct(22,e,n,t),e.elementType=wp,e.lanes=r,e.stateNode={isHidden:!1},e}function fl(e,t,r){return e=Ct(6,e,null,t),e.lanes=r,e}function xl(e,t,r){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function S2(e,t,r,n,o){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=Qa(0),this.expirationTimes=Qa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qa(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gc(e,t,r,n,o,s,i,l,c){return e=new S2(e,t,r,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ct(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ec(s),e}function b2(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gn,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function x1(e){if(!e)return Dr;e=e._reactInternals;e:{if(sn(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var r=e.type;if(rt(r))return xh(e,r,t)}return t}function p1(e,t,r,n,o,s,i,l,c){return e=gc(r,n,!0,e,o,s,i,l,c),e.context=x1(null),r=e.current,n=Qe(),o=kr(r),s=tr(n,o),s.callback=t??null,br(r,s,o),e.current.lanes=o,ps(e,o,n),nt(e,n),e}function Ca(e,t,r,n){var o=t.current,s=Qe(),i=kr(o);return r=x1(r),t.context===null?t.context=r:t.pendingContext=r,t=tr(s,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=br(o,t,i),e!==null&&(Pt(e,o,i,s),ci(e,o,i)),i}function Yi(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 nf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function vc(e,t){nf(e,t),(e=e.alternate)&&nf(e,t)}function j2(){return null}var h1=typeof reportError=="function"?reportError:function(e){console.error(e)};function yc(e){this._internalRoot=e}Ea.prototype.render=yc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));Ca(e,t,null,null)};Ea.prototype.unmount=yc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;tn(function(){Ca(null,e,null,null)}),t[nr]=null}};function Ea(e){this._internalRoot=e}Ea.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vp();e={blockedOn:null,target:e,priority:t};for(var r=0;r<mr.length&&t!==0&&t<mr[r].priority;r++);mr.splice(r,0,e),r===0&&Kp(e)}};function Cc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function of(){}function k2(e,t,r,n,o){if(o){if(typeof n=="function"){var s=n;n=function(){var u=Yi(i);s.call(u)}}var i=p1(t,n,e,0,null,!1,!1,"",of);return e._reactRootContainer=i,e[nr]=i.current,ts(e.nodeType===8?e.parentNode:e),tn(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var l=n;n=function(){var u=Yi(c);l.call(u)}}var c=gc(e,0,!1,null,null,!1,!1,"",of);return e._reactRootContainer=c,e[nr]=c.current,ts(e.nodeType===8?e.parentNode:e),tn(function(){Ca(t,c,r,n)}),c}function Sa(e,t,r,n,o){var s=r._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var c=Yi(i);l.call(c)}}Ca(t,i,e,o)}else i=k2(r,t,e,o,n);return Yi(i)}Up=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Fo(t.pendingLanes);r!==0&&(Iu(t,r|1),nt(t,Ee()),!(ae&6)&&(Hn=Ee()+500,Pr()))}break;case 13:tn(function(){var n=or(e,1);if(n!==null){var o=Qe();Pt(n,e,1,o)}}),vc(e,1)}};Mu=function(e){if(e.tag===13){var t=or(e,134217728);if(t!==null){var r=Qe();Pt(t,e,134217728,r)}vc(e,134217728)}};qp=function(e){if(e.tag===13){var t=kr(e),r=or(e,t);if(r!==null){var n=Qe();Pt(r,e,t,n)}vc(e,t)}};Vp=function(){return ce};Qp=function(e,t){var r=ce;try{return ce=e,t()}finally{ce=r}};_0=function(e,t,r){switch(t){case"input":if(b0(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=xa(n);if(!o)throw Error(W(90));bp(n),b0(n,o)}}}break;case"textarea":kp(e,r);break;case"select":t=r.value,t!=null&&Dn(e,!!r.multiple,t,!1)}};Tp=xc;Pp=tn;var B2={usingClientEntryPoint:!1,Events:[ms,wn,xa,_p,Rp,xc]},ho={findFiberByHostInstance:Hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},A2={bundleType:ho.bundleType,version:ho.version,rendererPackageName:ho.rendererPackageName,rendererConfig:ho.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ir.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Np(e),e===null?null:e.stateNode},findFiberByHostInstance:ho.findFiberByHostInstance||j2,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 $s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$s.isDisabled&&$s.supportsFiber)try{ua=$s.inject(A2),Vt=$s}catch{}}pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B2;pt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cc(t))throw Error(W(200));return b2(e,t,null,r)};pt.createRoot=function(e,t){if(!Cc(e))throw Error(W(299));var r=!1,n="",o=h1;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=gc(e,1,!1,null,null,r,!1,n,o),e[nr]=t.current,ts(e.nodeType===8?e.parentNode:e),new yc(t)};pt.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(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=Np(t),e=e===null?null:e.stateNode,e};pt.flushSync=function(e){return tn(e)};pt.hydrate=function(e,t,r){if(!wa(t))throw Error(W(200));return Sa(null,e,t,!0,r)};pt.hydrateRoot=function(e,t,r){if(!Cc(e))throw Error(W(405));var n=r!=null&&r.hydratedSources||null,o=!1,s="",i=h1;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=p1(t,null,e,1,r??null,o,!1,s,i),e[nr]=t.current,ts(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ea(t)};pt.render=function(e,t,r){if(!wa(t))throw Error(W(200));return Sa(null,e,t,!1,r)};pt.unmountComponentAtNode=function(e){if(!wa(e))throw Error(W(40));return e._reactRootContainer?(tn(function(){Sa(null,null,e,!1,function(){e._reactRootContainer=null,e[nr]=null})}),!0):!1};pt.unstable_batchedUpdates=xc;pt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!wa(r))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return Sa(e,t,r,!1,n)};pt.version="18.3.1-next-f1338f8080-20240426";function m1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(m1)}catch(e){console.error(e)}}m1(),mp.exports=pt;var g1=mp.exports;const F2=aa(g1);var sf=g1;g0.createRoot=sf.createRoot,g0.hydrateRoot=sf.hydrateRoot;var pl={},mo={},af;function D2(){var s;if(af)return mo;af=1;var e=Y&&Y.__createBinding||(Object.create?function(i,l,c,u){u===void 0&&(u=c);var f=Object.getOwnPropertyDescriptor(l,c);(!f||("get"in f?!l.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(i,u,f)}:function(i,l,c,u){u===void 0&&(u=c),i[u]=l[c]}),t=Y&&Y.__setModuleDefault||(Object.create?function(i,l){Object.defineProperty(i,"default",{enumerable:!0,value:l})}:function(i,l){i.default=l}),r=Y&&Y.__importStar||function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var c in i)c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)&&e(l,i,c);return t(l,i),l};Object.defineProperty(mo,"__esModule",{value:!0}),mo.Binder=void 0;const n=r(Ec());let o=(s=class{constructor(l){Z(this,"name");Z(this,"type","binder");Z(this,"readyListener",new n.default);Z(this,"requestListener",new n.default);l||(l="Binder_"+s.nextID++),this.name=l}static setupReact(l,c){s.reactUseEffect&&s.reactUseState||(s.reactUseEffect=c,s.reactUseState=l,n.default.setupReact(l,c))}onRequest(l){this.requestListener.subscribe(l)}subscribe(l){this.readyListener.subscribe(l)}invoke(l){this.readyListener.invoke(l)}request(l){this.requestListener.invoke(l)}async execute(l){const c={resolve:null},u=new Promise((h,d)=>{c.resolve=h}),f=new n.SignalHandler;return f.add(this.readyListener,h=>{c.resolve&&c.resolve(h),f.clear()}),this.requestListener.invoke(l??null),u}use(l,c,u){const[f,h]=s.reactUseState(c??null),[d,C]=s.reactUseState(!1);return s.reactUseEffect(()=>{const y=new n.SignalHandler;return y.add(this.readyListener,m=>{h(m),C(!1)}),y.add(this.requestListener,m=>{C(!0)}),this.requestListener.invoke(l??null),()=>{y.clear()}},u??[]),[f,d]}clear(){this.requestListener.removeAll(),this.readyListener.removeAll()}},Z(s,"reactUseState",null),Z(s,"reactUseEffect",null),Z(s,"nextID",0),s);return mo.Binder=o,mo}var go={},lf;function _2(){var o;if(lf)return go;lf=1;var e=Y&&Y.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(go,"__esModule",{value:!0}),go.DataProvider=void 0;const t=e(Ec());let r=(o=class{constructor(i,l){Z(this,"response",null);Z(this,"busy",!1);Z(this,"options");Z(this,"lastFetchTime",-1);Z(this,"callbacks",new t.default);Z(this,"subscribers",new t.default);Z(this,"name");Z(this,"executor",null);Z(this,"defaultNotificator",null);Z(this,"lastRequestHash",null);i||(i={cacheTime:-1}),this.options=i,this.setOptions(i),l||(l="DataProvider_"+o.nextID++),this.name=l}reset(){this.response=null,this.busy=!1,this.lastFetchTime=-1,this.lastRequestHash=null,this.response=null}isBusy(){return this.busy}isEmpty(){return this.getError()!==null||this.getData()===null}setExecutor(i){return this.executor=i,this}getData(){var i,l,c,u,f;return!this.response||!this.response.data?null:Array.isArray((i=this.response)==null?void 0:i.data)?[...(l=this.response)==null?void 0:l.data]:typeof((c=this.response)==null?void 0:c.data)=="object"?{...(u=this.response)==null?void 0:u.data}:(f=this.response)==null?void 0:f.data}setOptions(i){this.options=i}getError(){return!this.response||!this.response.error?null:{...this.response.error}}setDefaultNotificator(i){return this.defaultNotificator=i,this}subscribe(i){this.subscribers.subscribe(i)}async load(i){var u;if(!this.executor)throw Error("Executor not registered in data provider, "+this.name);const l=new Promise((f,h)=>{this.callbacks.subscribe(d=>{f(d),this.subscribers.invoke(d),this.subscribers.removeAll(),this.defaultNotificator&&(this.isEmpty()?this.defaultNotificator.invoke(this.getError()):this.defaultNotificator.invoke(this.getData()))})}),c=n(JSON.stringify(i??""));if(c!==this.lastRequestHash&&(this.response=null,this.busy=!1),this.lastRequestHash=c,this.defaultNotificator&&(this.isEmpty()?(u=this.defaultNotificator)==null||u.invoke(this.getError()):this.defaultNotificator.invoke(this.getData())),this.busy)return l;if(this.options&&this.options.cacheTime>-1&&this.response&&!this.response.error){if(this.options.cacheTime===0)return this.callbacks.invoke(this.response),this.response;if(+new Date-this.lastFetchTime<this.options.cacheTime)return this.callbacks.invoke(this.response),this.response}return this.busy=!0,this.response=await this.executor(i),this.lastFetchTime=+new Date,this.busy=!1,this.callbacks.invoke(this.response),this.callbacks.removeAll(),l}},Z(o,"nextID",0),o);go.DataProvider=r;const n=s=>{let i=0,l;for(l=0;l<s.length;l++)i=(i<<5)-i+s.charCodeAt(l),i|=0;let c="P";return i<0&&(i=i&2147483647,c="N"),c+i.toString(16).toUpperCase()};return go}var uf;function Ec(){return uf||(uf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.useSignal=e.s_destroy=e.s_removeAll=e.s_invokeOnce=e.s_invoke=e.s_unsubscribe=e.s_subscribeOnce=e.s_subscribe=e.Req=e.SignalHandler=e.Signal=e.DataProvider=e.Binder=void 0;const t=D2();Object.defineProperty(e,"Binder",{enumerable:!0,get:function(){return t.Binder}});const r=_2();Object.defineProperty(e,"DataProvider",{enumerable:!0,get:function(){return r.DataProvider}});const m=class m{constructor(p,g,S){Z(this,"busy",!1);Z(this,"tempAdd",[]);Z(this,"tempRem",[]);Z(this,"tempInvoke",[]);Z(this,"callbacks",[]);Z(this,"tempClear",!1);Z(this,"name","");Z(this,"type","signal");Z(this,"onSubscribe");p||(p="S_"+ +new Date),this.name=p,g&&(this.onSubscribe=g),S&&this.subscribe(S)}static setupReact(p,g){m.reactUseEffect&&m.reactUseState||(m.reactUseEffect=g,m.reactUseState=p,t.Binder.setupReact(p,g),s.setupReact(p,g))}static useSignal(p,g,S){if(!m.reactUseEffect||!m.reactUseState)return null;const[b,w]=m.reactUseState(null);return m.reactUseEffect(()=>{let j="",D=null;return p instanceof m?(D=p,j=D.subscribe(k=>{w(k),S&&S(k)})):j=l(k=>{w(k),S&&S(k)},p),()=>{D?D.unsubscribe(j):u(j)}},g),b}subscribe(p,g){if(g||(g=""+m.nextID++),this.busy){for(let S of this.tempAdd)if(S.cb===p)return S.id;return this.tempAdd.push({cb:p,id:g}),g}for(let S of this.callbacks)if(S.cb===p)return S.id;return this.callbacks.push({cb:p,id:g}),this.onSubscribe&&(this.onSubscribe.length===1?this.onSubscribe(p):this.onSubscribe()),m.onLog&&m.onLog(this,0,`Subscribtion to ${this.name} added with id: `+g),g}use(p,g){return m.useSignal(this,p,g)}getSubscribtions(){const p=[];for(let g of this.callbacks)p.push(g.id);return p}removeAll(){if(this.busy){this.tempClear=!0;return}this.callbacks=[],m.onLog&&m.onLog(this,0,`${this.name} remove all subscribtions`)}unsubscribe(p){let g=!1;for(let b of this.callbacks)if(b.id===p){g=!0;break}if(this.tempAdd=this.tempAdd.filter(b=>b.id!==p),!g)return m.onLog&&m.onLog(this,1,`${this.name} unsubscribe failed, wrong id:${p}`),!1;if(this.busy){for(let b of this.tempRem)if(b.id===p)return!0;return this.tempRem.push({id:p}),!0}let S=this.callbacks.length;return this.callbacks=this.callbacks.filter(b=>b.id!==p),S=S-this.callbacks.length,m.onLog&&m.onLog(this,S>0?0:1,`${this.name} unsubscribe from ${S} callback(s)`),S>0}invoke(p){if(this.busy){this.tempInvoke.push({data:p}),m.onLog&&m.onLog(this,0,`${this.name} delayed invokation added`);return}this.busy=!0;for(let g of this.callbacks)g&&g.cb&&typeof g.cb=="function"&&g.cb(p);if(this.busy=!1,m.onLog&&m.onLog(this,0,`${this.name} invoked`),this.tempAdd&&this.tempAdd.length>0){m.onLog&&m.onLog(this,0,`${this.name} delayed subscribtion started`);for(let g of this.tempAdd)this.subscribe(g.cb,g.id);this.tempAdd=[]}if(this.tempRem&&this.tempRem.length>0){m.onLog&&m.onLog(this,0,`${this.name} delayed unsubscribtion started`);for(let g of this.tempRem)this.unsubscribe(g.id);this.tempRem=[]}if(this.tempInvoke&&this.tempInvoke.length>0){m.onLog&&m.onLog(this,0,`${this.name} delayed invokation started`);for(let g of this.tempInvoke)this.invoke(g.data);this.tempInvoke=[]}this.tempClear&&(this.tempClear=!1,this.removeAll())}};Z(m,"nextID",0),Z(m,"onLog"),Z(m,"reactUseState",null),Z(m,"reactUseEffect",null);let n=m;e.Signal=n;const E=class E{constructor(){Z(this,"id");Z(this,"signals",[]);this.id=E.nextID++}add(p,g){Array.isArray(p)||(p=[p]);for(let S of this.signals)if(p.filter(w=>S===w).length>0)return;p.map(S=>{this.signals.push(S),S.subscribe(g,"signaller_"+this.id)})}clear(){for(let p of this.signals)p.unsubscribe("signaller_"+this.id);this.signals=[]}};Z(E,"nextID",0);let o=E;e.SignalHandler=o;const v=class v{constructor(p,g){Z(this,"worker");Z(this,"name");Z(this,"type","request");g||(g="Req_"+v.nextID++),this.name=g,p&&(this.worker=p)}static setupReact(p,g){v.reactUseEffect&&v.reactUseState||(v.reactUseEffect=g,v.reactUseState=p,n.setupReact(p,g))}request(p){if(!this.worker)throw Error("No worker registere in "+this.name);return this.worker(p)}use(p,g,S){const[b,w]=v.reactUseState(null);return v.reactUseEffect(()=>{this.request(p).then(j=>{w(j),S&&S(j)})},g),b}useValue(p,g,S){const[b,w]=v.reactUseState(p);return S||(S=[p]),v.reactUseEffect(()=>{this.request(p).then(j=>{w(j),g&&g(j)})},S),[b,j=>{w(j)}]}useRequest(p,g){const[S,b]=v.reactUseState(g),[w,j]=v.reactUseState(),[D,k]=v.reactUseState(!0);return v.reactUseEffect(()=>{this.request(S).then(A=>{j(A),k(!1),p&&p(A)})},[S]),[w,A=>{k(!0),b(A)},A=>{j(A),k(!1)},D]}set listener(p){this.worker=p}};Z(v,"reactUseState",null),Z(v,"reactUseEffect",null),Z(v,"nextID",1);let s=v;e.Req=s;let i=new Map;function l(x,p){p||(p="__default");let g=i.get(p);return g||(g=new n,i.set(p,g)),g.subscribe(x)}e.s_subscribe=l;function c(x,p){const g=l(S=>{x(S),u(g)},p??"__default")}e.s_subscribeOnce=c;function u(x){let p=!1;for(let g of i)g[1]&&g[1].unsubscribe(x);return p}e.s_unsubscribe=u;function f(x,p){p||(p="__default");let g=i.get(p);g&&g.invoke(x)}e.s_invoke=f;function h(x,p){f(x,p),d(p)}e.s_invokeOnce=h;function d(x){x||(x="__default");let p=i.get(x);p&&p.removeAll()}e.s_removeAll=d;function C(){for(let x of i)x[1].removeAll();i=new Map}e.s_destroy=C;function y(x){return n.useSignal(x)}e.useSignal=y,e.default=n}(pl)),pl}var Ue=Ec();const vs=aa(Ue);function v1(e,t){return function(){return e.apply(t,arguments)}}const{toString:R2}=Object.prototype,{getPrototypeOf:wc}=Object,{iterator:ba,toStringTag:y1}=Symbol,ja=(e=>t=>{const r=R2.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nt=e=>(e=e.toLowerCase(),t=>ja(t)===e),ka=e=>t=>typeof t===e,{isArray:Jn}=Array,cs=ka("undefined");function T2(e){return e!==null&&!cs(e)&&e.constructor!==null&&!cs(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const C1=Nt("ArrayBuffer");function P2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&C1(e.buffer),t}const O2=ka("string"),ot=ka("function"),E1=ka("number"),Ba=e=>e!==null&&typeof e=="object",L2=e=>e===!0||e===!1,gi=e=>{if(ja(e)!=="object")return!1;const t=wc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(y1 in e)&&!(ba in e)},N2=Nt("Date"),z2=Nt("File"),I2=Nt("Blob"),M2=Nt("FileList"),$2=e=>Ba(e)&&ot(e.pipe),H2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=ja(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},W2=Nt("URLSearchParams"),[U2,q2,V2,Q2]=["ReadableStream","Request","Response","Headers"].map(Nt),K2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ys(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Jn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(n=0;n<i;n++)l=s[n],t.call(null,e[l],l,e)}}function w1(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,S1=e=>!cs(e)&&e!==qr;function cu(){const{caseless:e}=S1(this)&&this||{},t={},r=(n,o)=>{const s=e&&w1(t,o)||o;gi(t[s])&&gi(n)?t[s]=cu(t[s],n):gi(n)?t[s]=cu({},n):Jn(n)?t[s]=n.slice():t[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ys(arguments[n],r);return t}const G2=(e,t,r,{allOwnKeys:n}={})=>(ys(t,(o,s)=>{r&&ot(o)?e[s]=v1(o,r):e[s]=o},{allOwnKeys:n}),e),X2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Y2=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},J2=(e,t,r,n)=>{let o,s,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&wc(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Z2=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ey=e=>{if(!e)return null;if(Jn(e))return e;let t=e.length;if(!E1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ty=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wc(Uint8Array)),ry=(e,t)=>{const n=(e&&e[ba]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},ny=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},oy=Nt("HTMLFormElement"),sy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),cf=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),iy=Nt("RegExp"),b1=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ys(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},ay=e=>{b1(e,(t,r)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ot(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ly=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return Jn(e)?n(e):n(String(e).split(t)),r},uy=()=>{},cy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function dy(e){return!!(e&&ot(e.append)&&e[y1]==="FormData"&&e[ba])}const fy=e=>{const t=new Array(10),r=(n,o)=>{if(Ba(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const s=Jn(n)?[]:{};return ys(n,(i,l)=>{const c=r(i,o+1);!cs(c)&&(s[l]=c)}),t[o]=void 0,s}}return n};return r(e,0)},xy=Nt("AsyncFunction"),py=e=>e&&(Ba(e)||ot(e))&&ot(e.then)&&ot(e.catch),j1=((e,t)=>e?setImmediate:t?((r,n)=>(qr.addEventListener("message",({source:o,data:s})=>{o===qr&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),qr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ot(qr.postMessage)),hy=typeof queueMicrotask<"u"?queueMicrotask.bind(qr):typeof process<"u"&&process.nextTick||j1,my=e=>e!=null&&ot(e[ba]),L={isArray:Jn,isArrayBuffer:C1,isBuffer:T2,isFormData:H2,isArrayBufferView:P2,isString:O2,isNumber:E1,isBoolean:L2,isObject:Ba,isPlainObject:gi,isReadableStream:U2,isRequest:q2,isResponse:V2,isHeaders:Q2,isUndefined:cs,isDate:N2,isFile:z2,isBlob:I2,isRegExp:iy,isFunction:ot,isStream:$2,isURLSearchParams:W2,isTypedArray:ty,isFileList:M2,forEach:ys,merge:cu,extend:G2,trim:K2,stripBOM:X2,inherits:Y2,toFlatObject:J2,kindOf:ja,kindOfTest:Nt,endsWith:Z2,toArray:ey,forEachEntry:ry,matchAll:ny,isHTMLForm:oy,hasOwnProperty:cf,hasOwnProp:cf,reduceDescriptors:b1,freezeMethods:ay,toObjectSet:ly,toCamelCase:sy,noop:uy,toFiniteNumber:cy,findKey:w1,global:qr,isContextDefined:S1,isSpecCompliantForm:dy,toJSONObject:fy,isAsyncFn:xy,isThenable:py,setImmediate:j1,asap:hy,isIterable:my};function ee(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}L.inherits(ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}});const k1=ee.prototype,B1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{B1[e]={value:e}});Object.defineProperties(ee,B1);Object.defineProperty(k1,"isAxiosError",{value:!0});ee.from=(e,t,r,n,o,s)=>{const i=Object.create(k1);return L.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ee.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const gy=null;function du(e){return L.isPlainObject(e)||L.isArray(e)}function A1(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function df(e,t,r){return e?e.concat(t).map(function(o,s){return o=A1(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function vy(e){return L.isArray(e)&&!e.some(du)}const yy=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function Aa(e,t,r){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=L.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,E){return!L.isUndefined(E[m])});const n=r.metaTokens,o=r.visitor||f,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(o))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(L.isDate(y))return y.toISOString();if(!c&&L.isBlob(y))throw new ee("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(y)||L.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,m,E){let v=y;if(y&&!E&&typeof y=="object"){if(L.endsWith(m,"{}"))m=n?m:m.slice(0,-2),y=JSON.stringify(y);else if(L.isArray(y)&&vy(y)||(L.isFileList(y)||L.endsWith(m,"[]"))&&(v=L.toArray(y)))return m=A1(m),v.forEach(function(p,g){!(L.isUndefined(p)||p===null)&&t.append(i===!0?df([m],g,s):i===null?m:m+"[]",u(p))}),!1}return du(y)?!0:(t.append(df(E,m,s),u(y)),!1)}const h=[],d=Object.assign(yy,{defaultVisitor:f,convertValue:u,isVisitable:du});function C(y,m){if(!L.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(y),L.forEach(y,function(v,x){(!(L.isUndefined(v)||v===null)&&o.call(t,v,L.isString(x)?x.trim():x,m,d))===!0&&C(v,m?m.concat(x):[x])}),h.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return C(e),t}function ff(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Sc(e,t){this._pairs=[],e&&Aa(e,this,t)}const F1=Sc.prototype;F1.append=function(t,r){this._pairs.push([t,r])};F1.toString=function(t){const r=t?function(n){return t.call(this,n,ff)}:ff;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Cy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function D1(e,t,r){if(!t)return e;const n=r&&r.encode||Cy;L.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=L.isURLSearchParams(t)?t.toString():new Sc(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class xf{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(n){n!==null&&t(n)})}}const _1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ey=typeof URLSearchParams<"u"?URLSearchParams:Sc,wy=typeof FormData<"u"?FormData:null,Sy=typeof Blob<"u"?Blob:null,by={isBrowser:!0,classes:{URLSearchParams:Ey,FormData:wy,Blob:Sy},protocols:["http","https","file","blob","url","data"]},bc=typeof window<"u"&&typeof document<"u",fu=typeof navigator=="object"&&navigator||void 0,jy=bc&&(!fu||["ReactNative","NativeScript","NS"].indexOf(fu.product)<0),ky=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",By=bc&&window.location.href||"http://localhost",Ay=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bc,hasStandardBrowserEnv:jy,hasStandardBrowserWebWorkerEnv:ky,navigator:fu,origin:By},Symbol.toStringTag,{value:"Module"})),He={...Ay,...by};function Fy(e,t){return Aa(e,new He.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return He.isNode&&L.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Dy(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _y(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function R1(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=s>=r.length;return i=!i&&L.isArray(o)?o.length:i,c?(L.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!L.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&L.isArray(o[i])&&(o[i]=_y(o[i])),!l)}if(L.isFormData(e)&&L.isFunction(e.entries)){const r={};return L.forEachEntry(e,(n,o)=>{t(Dy(n),o,r,0)}),r}return null}function Ry(e,t,r){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Cs={transitional:_1,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=L.isObject(t);if(s&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(R1(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Fy(t,this.formSerializer).toString();if((l=L.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Aa(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Ry(t)):t}],transformResponse:[function(t){const r=this.transitional||Cs.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?ee.from(l,ee.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:He.classes.FormData,Blob:He.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{Cs.headers[e]={}});const Ty=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Py=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
54
|
-
`).forEach(function(
|
|
55
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[pf]=this[pf]={accessors:{}}).accessors,o=this.prototype;function s(i){const l=vo(i);n[l]||(zy(o,i),n[l]=!0)}return L.isArray(t)?t.forEach(s):s(t),this}};st.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(st.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});L.freezeMethods(st);function ml(e,t){const r=this||Cs,n=t||r,o=st.from(n.headers);let s=n.data;return L.forEach(e,function(l){s=l.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function T1(e){return!!(e&&e.__CANCEL__)}function Zn(e,t,r){ee.call(this,e??"canceled",ee.ERR_CANCELED,t,r),this.name="CanceledError"}L.inherits(Zn,ee,{__CANCEL__:!0});function P1(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ee("Request failed with status code "+r.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Iy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function My(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),f=n[s];i||(i=u),r[o]=c,n[o]=u;let h=s,d=0;for(;h!==o;)d+=r[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const C=f&&u-f;return C?Math.round(d*1e3/C):void 0}}function $y(e,t){let r=0,n=1e3/t,o,s;const i=(u,f=Date.now())=>{r=f,o=null,s&&(clearTimeout(s),s=null),e.apply(null,u)};return[(...u)=>{const f=Date.now(),h=f-r;h>=n?i(u,f):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},n-h)))},()=>o&&i(o)]}const Ji=(e,t,r=3)=>{let n=0;const o=My(50,250);return $y(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,c=i-n,u=o(c),f=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&f?(l-i)/u:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},hf=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mf=e=>(...t)=>L.asap(()=>e(...t)),Hy=He.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,He.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(He.origin),He.navigator&&/(msie|trident)/i.test(He.navigator.userAgent)):()=>!0,Wy=He.hasStandardBrowserEnv?{write(e,t,r,n,o,s){const i=[e+"="+encodeURIComponent(t)];L.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),L.isString(n)&&i.push("path="+n),L.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Uy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function O1(e,t,r){let n=!Uy(t);return e&&(n||r==!1)?qy(e,t):t}const gf=e=>e instanceof st?{...e}:e;function rn(e,t){t=t||{};const r={};function n(u,f,h,d){return L.isPlainObject(u)&&L.isPlainObject(f)?L.merge.call({caseless:d},u,f):L.isPlainObject(f)?L.merge({},f):L.isArray(f)?f.slice():f}function o(u,f,h,d){if(L.isUndefined(f)){if(!L.isUndefined(u))return n(void 0,u,h,d)}else return n(u,f,h,d)}function s(u,f){if(!L.isUndefined(f))return n(void 0,f)}function i(u,f){if(L.isUndefined(f)){if(!L.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function l(u,f,h){if(h in t)return n(u,f);if(h in e)return n(void 0,u)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,f,h)=>o(gf(u),gf(f),h,!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=c[f]||o,d=h(e[f],t[f],f);L.isUndefined(d)&&h!==l||(r[f]=d)}),r}const L1=e=>{const t=rn({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=st.from(i),t.url=D1(O1(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(L.isFormData(r)){if(He.hasStandardBrowserEnv||He.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...f]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...f].join("; "))}}if(He.hasStandardBrowserEnv&&(n&&L.isFunction(n)&&(n=n(t)),n||n!==!1&&Hy(t.url))){const u=o&&s&&Wy.read(s);u&&i.set(o,u)}return t},Vy=typeof XMLHttpRequest<"u",Qy=Vy&&function(e){return new Promise(function(r,n){const o=L1(e);let s=o.data;const i=st.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,f,h,d,C,y;function m(){C&&C(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function v(){if(!E)return;const p=st.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:p,config:e,request:E};P1(function(w){r(w),m()},function(w){n(w),m()},S),E=null}"onloadend"in E?E.onloadend=v:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(v)},E.onabort=function(){E&&(n(new ee("Request aborted",ee.ECONNABORTED,e,E)),E=null)},E.onerror=function(){n(new ee("Network Error",ee.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||_1;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new ee(g,S.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,E)),E=null},s===void 0&&i.setContentType(null),"setRequestHeader"in E&&L.forEach(i.toJSON(),function(g,S){E.setRequestHeader(S,g)}),L.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),l&&l!=="json"&&(E.responseType=o.responseType),u&&([d,y]=Ji(u,!0),E.addEventListener("progress",d)),c&&E.upload&&([h,C]=Ji(c),E.upload.addEventListener("progress",h),E.upload.addEventListener("loadend",C)),(o.cancelToken||o.signal)&&(f=p=>{E&&(n(!p||p.type?new Zn(null,e,E):p),E.abort(),E=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const x=Iy(o.url);if(x&&He.protocols.indexOf(x)===-1){n(new ee("Unsupported protocol "+x+":",ee.ERR_BAD_REQUEST,e));return}E.send(s||null)})},Ky=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(u){if(!o){o=!0,l();const f=u instanceof Error?u:this.reason;n.abort(f instanceof ee?f:new Zn(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,s(new ee(`timeout ${t} of ms exceeded`,ee.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:c}=n;return c.unsubscribe=()=>L.asap(l),c}},Gy=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Xy=async function*(e,t){for await(const r of Yy(e))yield*Gy(r,t)},Yy=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},vf=(e,t,r,n)=>{const o=Xy(e,t);let s=0,i,l=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await o.next();if(u){l(),c.close();return}let h=f.byteLength;if(r){let d=s+=h;r(d)}c.enqueue(new Uint8Array(f))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",N1=Fa&&typeof ReadableStream=="function",Jy=Fa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),z1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zy=N1&&z1(()=>{let e=!1;const t=new Request(He.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yf=64*1024,xu=N1&&z1(()=>L.isReadableStream(new Response("").body)),Zi={stream:xu&&(e=>e.body)};Fa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Zi[t]&&(Zi[t]=L.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new ee(`Response type '${t}' is not supported`,ee.ERR_NOT_SUPPORT,n)})})})(new Response);const e5=async e=>{if(e==null)return 0;if(L.isBlob(e))return e.size;if(L.isSpecCompliantForm(e))return(await new Request(He.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(L.isArrayBufferView(e)||L.isArrayBuffer(e))return e.byteLength;if(L.isURLSearchParams(e)&&(e=e+""),L.isString(e))return(await Jy(e)).byteLength},t5=async(e,t)=>{const r=L.toFiniteNumber(e.getContentLength());return r??e5(t)},r5=Fa&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:f,withCredentials:h="same-origin",fetchOptions:d}=L1(e);u=u?(u+"").toLowerCase():"text";let C=Ky([o,s&&s.toAbortSignal()],i),y;const m=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let E;try{if(c&&Zy&&r!=="get"&&r!=="head"&&(E=await t5(f,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),b;if(L.isFormData(n)&&(b=S.headers.get("content-type"))&&f.setContentType(b),S.body){const[w,j]=hf(E,Ji(mf(c)));n=vf(S.body,yf,w,j)}}L.isString(h)||(h=h?"include":"omit");const v="credentials"in Request.prototype;y=new Request(t,{...d,signal:C,method:r.toUpperCase(),headers:f.normalize().toJSON(),body:n,duplex:"half",credentials:v?h:void 0});let x=await fetch(y);const p=xu&&(u==="stream"||u==="response");if(xu&&(l||p&&m)){const S={};["status","statusText","headers"].forEach(D=>{S[D]=x[D]});const b=L.toFiniteNumber(x.headers.get("content-length")),[w,j]=l&&hf(b,Ji(mf(l),!0))||[];x=new Response(vf(x.body,yf,w,()=>{j&&j(),m&&m()}),S)}u=u||"text";let g=await Zi[L.findKey(Zi,u)||"text"](x,e);return!p&&m&&m(),await new Promise((S,b)=>{P1(S,b,{data:g,headers:st.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:y})})}catch(v){throw m&&m(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new ee("Network Error",ee.ERR_NETWORK,e,y),{cause:v.cause||v}):ee.from(v,v&&v.code,e,y)}}),pu={http:gy,xhr:Qy,fetch:r5};L.forEach(pu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cf=e=>`- ${e}`,n5=e=>L.isFunction(e)||e===null||e===!1,I1={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!n5(r)&&(n=pu[(i=String(r)).toLowerCase()],n===void 0))throw new ee(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+s]=n}if(!n){const s=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
|
|
56
|
-
`+s.map(
|
|
57
|
-
`):" "+
|
|
58
|
-
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rn(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&yi.assertOptions(n,{silentJSONParsing:$t.transitional($t.boolean),forcedJSONParsing:$t.transitional($t.boolean),clarifyTimeoutError:$t.transitional($t.boolean)},!1),o!=null&&(L.isFunction(o)?r.paramsSerializer={serialize:o}:yi.assertOptions(o,{encode:$t.function,serialize:$t.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),yi.assertOptions(r,{baseUrl:$t.spelling("baseURL"),withXsrfToken:$t.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&L.merge(s.common,s[r.method]);s&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=st.concat(i,s);const l=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(c=c&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let f,h=0,d;if(!c){const y=[Ef.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),d=y.length,f=Promise.resolve(r);h<d;)f=f.then(y[h++],y[h++]);return f}d=l.length;let C=r;for(h=0;h<d;){const y=l[h++],m=l[h++];try{C=y(C)}catch(E){m.call(this,E);break}}try{f=Ef.call(this,C)}catch(y){return Promise.reject(y)}for(h=0,d=u.length;h<d;)f=f.then(u[h++],u[h++]);return f}getUri(t){t=rn(this.defaults,t);const r=O1(t.baseURL,t.url,t.allowAbsoluteUrls);return D1(r,t.params,t.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(t){Gr.prototype[t]=function(r,n){return this.request(rn(n||{},{method:t,url:r,data:(n||{}).data}))}});L.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,l){return this.request(rn(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Gr.prototype[t]=r(),Gr.prototype[t+"Form"]=r(!0)});let s5=class $1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(l=>{n.subscribe(l),s=l}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,l){n.reason||(n.reason=new Zn(s,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new $1(function(o){t=o}),cancel:t}}};function i5(e){return function(r){return e.apply(null,r)}}function a5(e){return L.isObject(e)&&e.isAxiosError===!0}const hu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hu).forEach(([e,t])=>{hu[t]=e});function H1(e){const t=new Gr(e),r=v1(Gr.prototype.request,t);return L.extend(r,Gr.prototype,t,{allOwnKeys:!0}),L.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return H1(rn(e,o))},r}const we=H1(Cs);we.Axios=Gr;we.CanceledError=Zn;we.CancelToken=s5;we.isCancel=T1;we.VERSION=M1;we.toFormData=Aa;we.AxiosError=ee;we.Cancel=we.CanceledError;we.all=function(t){return Promise.all(t)};we.spread=i5;we.isAxiosError=a5;we.mergeConfig=rn;we.AxiosHeaders=st;we.formToJSON=e=>R1(L.isHTMLForm(e)?new FormData(e):e);we.getAdapter=I1.getAdapter;we.HttpStatusCode=hu;we.default=we;const{Axios:F3,AxiosError:D3,CanceledError:_3,isCancel:R3,CancelToken:T3,VERSION:P3,all:O3,Cancel:L3,isAxiosError:N3,spread:z3,toFormData:I3,AxiosHeaders:M3,HttpStatusCode:$3,formToJSON:H3,getAdapter:W3,mergeConfig:U3}=we;var W1={exports:{}};function l5(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vl={exports:{}};const u5={},c5=Object.freeze(Object.defineProperty({__proto__:null,default:u5},Symbol.toStringTag,{value:"Module"})),d5=ng(c5);var Sf;function se(){return Sf||(Sf=1,function(e,t){(function(r,n){e.exports=n()})(Y,function(){var r=r||function(n,o){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof Y<"u"&&Y.crypto&&(s=Y.crypto),!s&&typeof l5=="function")try{s=d5}catch{}var i=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function x(){}return function(p){var g;return x.prototype=p,g=new x,x.prototype=null,g}}(),c={},u=c.lib={},f=u.Base=function(){return{extend:function(x){var p=l(this);return x&&p.mixIn(x),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var p in x)x.hasOwnProperty(p)&&(this[p]=x[p]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=u.WordArray=f.extend({init:function(x,p){x=this.words=x||[],p!=o?this.sigBytes=p:this.sigBytes=x.length*4},toString:function(x){return(x||C).stringify(this)},concat:function(x){var p=this.words,g=x.words,S=this.sigBytes,b=x.sigBytes;if(this.clamp(),S%4)for(var w=0;w<b;w++){var j=g[w>>>2]>>>24-w%4*8&255;p[S+w>>>2]|=j<<24-(S+w)%4*8}else for(var D=0;D<b;D+=4)p[S+D>>>2]=g[D>>>2];return this.sigBytes+=b,this},clamp:function(){var x=this.words,p=this.sigBytes;x[p>>>2]&=4294967295<<32-p%4*8,x.length=n.ceil(p/4)},clone:function(){var x=f.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var p=[],g=0;g<x;g+=4)p.push(i());return new h.init(p,x)}}),d=c.enc={},C=d.Hex={stringify:function(x){for(var p=x.words,g=x.sigBytes,S=[],b=0;b<g;b++){var w=p[b>>>2]>>>24-b%4*8&255;S.push((w>>>4).toString(16)),S.push((w&15).toString(16))}return S.join("")},parse:function(x){for(var p=x.length,g=[],S=0;S<p;S+=2)g[S>>>3]|=parseInt(x.substr(S,2),16)<<24-S%8*4;return new h.init(g,p/2)}},y=d.Latin1={stringify:function(x){for(var p=x.words,g=x.sigBytes,S=[],b=0;b<g;b++){var w=p[b>>>2]>>>24-b%4*8&255;S.push(String.fromCharCode(w))}return S.join("")},parse:function(x){for(var p=x.length,g=[],S=0;S<p;S++)g[S>>>2]|=(x.charCodeAt(S)&255)<<24-S%4*8;return new h.init(g,p)}},m=d.Utf8={stringify:function(x){try{return decodeURIComponent(escape(y.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return y.parse(unescape(encodeURIComponent(x)))}},E=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=m.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var p,g=this._data,S=g.words,b=g.sigBytes,w=this.blockSize,j=w*4,D=b/j;x?D=n.ceil(D):D=n.max((D|0)-this._minBufferSize,0);var k=D*w,A=n.min(k*4,b);if(k){for(var N=0;N<k;N+=w)this._doProcessBlock(S,N);p=S.splice(0,k),g.sigBytes-=A}return new h.init(p,A)},clone:function(){var x=f.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});u.Hasher=E.extend({cfg:f.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(x){return function(p,g){return new x.init(g).finalize(p)}},_createHmacHelper:function(x){return function(p,g){return new v.HMAC.init(x,g).finalize(p)}}});var v=c.algo={};return c}(Math);return r})}(vl)),vl.exports}var yl={exports:{}},bf;function _a(){return bf||(bf=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){return function(n){var o=r,s=o.lib,i=s.Base,l=s.WordArray,c=o.x64={};c.Word=i.extend({init:function(u,f){this.high=u,this.low=f}}),c.WordArray=i.extend({init:function(u,f){u=this.words=u||[],f!=n?this.sigBytes=f:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,f=u.length,h=[],d=0;d<f;d++){var C=u[d];h.push(C.high),h.push(C.low)}return l.create(h,this.sigBytes)},clone:function(){for(var u=i.clone.call(this),f=u.words=this.words.slice(0),h=f.length,d=0;d<h;d++)f[d]=f[d].clone();return u}})}(),r})}(yl)),yl.exports}var Cl={exports:{}},jf;function f5(){return jf||(jf=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,s=o.WordArray,i=s.init,l=s.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var u=c.byteLength,f=[],h=0;h<u;h++)f[h>>>2]|=c[h]<<24-h%4*8;i.call(this,f,u)}else i.apply(this,arguments)};l.prototype=s}}(),r.lib.WordArray})}(Cl)),Cl.exports}var El={exports:{}},kf;function x5(){return kf||(kf=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.WordArray,i=n.enc;i.Utf16=i.Utf16BE={stringify:function(c){for(var u=c.words,f=c.sigBytes,h=[],d=0;d<f;d+=2){var C=u[d>>>2]>>>16-d%4*8&65535;h.push(String.fromCharCode(C))}return h.join("")},parse:function(c){for(var u=c.length,f=[],h=0;h<u;h++)f[h>>>1]|=c.charCodeAt(h)<<16-h%2*16;return s.create(f,u*2)}},i.Utf16LE={stringify:function(c){for(var u=c.words,f=c.sigBytes,h=[],d=0;d<f;d+=2){var C=l(u[d>>>2]>>>16-d%4*8&65535);h.push(String.fromCharCode(C))}return h.join("")},parse:function(c){for(var u=c.length,f=[],h=0;h<u;h++)f[h>>>1]|=l(c.charCodeAt(h)<<16-h%2*16);return s.create(f,u*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}}(),r.enc.Utf16})}(El)),El.exports}var wl={exports:{}},Bf;function an(){return Bf||(Bf=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.WordArray,i=n.enc;i.Base64={stringify:function(c){var u=c.words,f=c.sigBytes,h=this._map;c.clamp();for(var d=[],C=0;C<f;C+=3)for(var y=u[C>>>2]>>>24-C%4*8&255,m=u[C+1>>>2]>>>24-(C+1)%4*8&255,E=u[C+2>>>2]>>>24-(C+2)%4*8&255,v=y<<16|m<<8|E,x=0;x<4&&C+x*.75<f;x++)d.push(h.charAt(v>>>6*(3-x)&63));var p=h.charAt(64);if(p)for(;d.length%4;)d.push(p);return d.join("")},parse:function(c){var u=c.length,f=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var d=0;d<f.length;d++)h[f.charCodeAt(d)]=d}var C=f.charAt(64);if(C){var y=c.indexOf(C);y!==-1&&(u=y)}return l(c,u,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(c,u,f){for(var h=[],d=0,C=0;C<u;C++)if(C%4){var y=f[c.charCodeAt(C-1)]<<C%4*2,m=f[c.charCodeAt(C)]>>>6-C%4*2,E=y|m;h[d>>>2]|=E<<24-d%4*8,d++}return s.create(h,d)}}(),r.enc.Base64})}(wl)),wl.exports}var Sl={exports:{}},Af;function p5(){return Af||(Af=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.WordArray,i=n.enc;i.Base64url={stringify:function(c,u){u===void 0&&(u=!0);var f=c.words,h=c.sigBytes,d=u?this._safe_map:this._map;c.clamp();for(var C=[],y=0;y<h;y+=3)for(var m=f[y>>>2]>>>24-y%4*8&255,E=f[y+1>>>2]>>>24-(y+1)%4*8&255,v=f[y+2>>>2]>>>24-(y+2)%4*8&255,x=m<<16|E<<8|v,p=0;p<4&&y+p*.75<h;p++)C.push(d.charAt(x>>>6*(3-p)&63));var g=d.charAt(64);if(g)for(;C.length%4;)C.push(g);return C.join("")},parse:function(c,u){u===void 0&&(u=!0);var f=c.length,h=u?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var C=0;C<h.length;C++)d[h.charCodeAt(C)]=C}var y=h.charAt(64);if(y){var m=c.indexOf(y);m!==-1&&(f=m)}return l(c,f,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(c,u,f){for(var h=[],d=0,C=0;C<u;C++)if(C%4){var y=f[c.charCodeAt(C-1)]<<C%4*2,m=f[c.charCodeAt(C)]>>>6-C%4*2,E=y|m;h[d>>>2]|=E<<24-d%4*8,d++}return s.create(h,d)}}(),r.enc.Base64url})}(Sl)),Sl.exports}var bl={exports:{}},Ff;function ln(){return Ff||(Ff=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){return function(n){var o=r,s=o.lib,i=s.WordArray,l=s.Hasher,c=o.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=n.abs(n.sin(m+1))*4294967296|0})();var f=c.MD5=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,E){for(var v=0;v<16;v++){var x=E+v,p=m[x];m[x]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var g=this._hash.words,S=m[E+0],b=m[E+1],w=m[E+2],j=m[E+3],D=m[E+4],k=m[E+5],A=m[E+6],N=m[E+7],F=m[E+8],$=m[E+9],K=m[E+10],X=m[E+11],ne=m[E+12],H=m[E+13],U=m[E+14],V=m[E+15],P=g[0],B=g[1],O=g[2],_=g[3];P=h(P,B,O,_,S,7,u[0]),_=h(_,P,B,O,b,12,u[1]),O=h(O,_,P,B,w,17,u[2]),B=h(B,O,_,P,j,22,u[3]),P=h(P,B,O,_,D,7,u[4]),_=h(_,P,B,O,k,12,u[5]),O=h(O,_,P,B,A,17,u[6]),B=h(B,O,_,P,N,22,u[7]),P=h(P,B,O,_,F,7,u[8]),_=h(_,P,B,O,$,12,u[9]),O=h(O,_,P,B,K,17,u[10]),B=h(B,O,_,P,X,22,u[11]),P=h(P,B,O,_,ne,7,u[12]),_=h(_,P,B,O,H,12,u[13]),O=h(O,_,P,B,U,17,u[14]),B=h(B,O,_,P,V,22,u[15]),P=d(P,B,O,_,b,5,u[16]),_=d(_,P,B,O,A,9,u[17]),O=d(O,_,P,B,X,14,u[18]),B=d(B,O,_,P,S,20,u[19]),P=d(P,B,O,_,k,5,u[20]),_=d(_,P,B,O,K,9,u[21]),O=d(O,_,P,B,V,14,u[22]),B=d(B,O,_,P,D,20,u[23]),P=d(P,B,O,_,$,5,u[24]),_=d(_,P,B,O,U,9,u[25]),O=d(O,_,P,B,j,14,u[26]),B=d(B,O,_,P,F,20,u[27]),P=d(P,B,O,_,H,5,u[28]),_=d(_,P,B,O,w,9,u[29]),O=d(O,_,P,B,N,14,u[30]),B=d(B,O,_,P,ne,20,u[31]),P=C(P,B,O,_,k,4,u[32]),_=C(_,P,B,O,F,11,u[33]),O=C(O,_,P,B,X,16,u[34]),B=C(B,O,_,P,U,23,u[35]),P=C(P,B,O,_,b,4,u[36]),_=C(_,P,B,O,D,11,u[37]),O=C(O,_,P,B,N,16,u[38]),B=C(B,O,_,P,K,23,u[39]),P=C(P,B,O,_,H,4,u[40]),_=C(_,P,B,O,S,11,u[41]),O=C(O,_,P,B,j,16,u[42]),B=C(B,O,_,P,A,23,u[43]),P=C(P,B,O,_,$,4,u[44]),_=C(_,P,B,O,ne,11,u[45]),O=C(O,_,P,B,V,16,u[46]),B=C(B,O,_,P,w,23,u[47]),P=y(P,B,O,_,S,6,u[48]),_=y(_,P,B,O,N,10,u[49]),O=y(O,_,P,B,U,15,u[50]),B=y(B,O,_,P,k,21,u[51]),P=y(P,B,O,_,ne,6,u[52]),_=y(_,P,B,O,j,10,u[53]),O=y(O,_,P,B,K,15,u[54]),B=y(B,O,_,P,b,21,u[55]),P=y(P,B,O,_,F,6,u[56]),_=y(_,P,B,O,V,10,u[57]),O=y(O,_,P,B,A,15,u[58]),B=y(B,O,_,P,H,21,u[59]),P=y(P,B,O,_,D,6,u[60]),_=y(_,P,B,O,X,10,u[61]),O=y(O,_,P,B,w,15,u[62]),B=y(B,O,_,P,$,21,u[63]),g[0]=g[0]+P|0,g[1]=g[1]+B|0,g[2]=g[2]+O|0,g[3]=g[3]+_|0},_doFinalize:function(){var m=this._data,E=m.words,v=this._nDataBytes*8,x=m.sigBytes*8;E[x>>>5]|=128<<24-x%32;var p=n.floor(v/4294967296),g=v;E[(x+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E[(x+64>>>9<<4)+14]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,m.sigBytes=(E.length+1)*4,this._process();for(var S=this._hash,b=S.words,w=0;w<4;w++){var j=b[w];b[w]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return S},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});function h(m,E,v,x,p,g,S){var b=m+(E&v|~E&x)+p+S;return(b<<g|b>>>32-g)+E}function d(m,E,v,x,p,g,S){var b=m+(E&x|v&~x)+p+S;return(b<<g|b>>>32-g)+E}function C(m,E,v,x,p,g,S){var b=m+(E^v^x)+p+S;return(b<<g|b>>>32-g)+E}function y(m,E,v,x,p,g,S){var b=m+(v^(E|~x))+p+S;return(b<<g|b>>>32-g)+E}o.MD5=l._createHelper(f),o.HmacMD5=l._createHmacHelper(f)}(Math),r.MD5})}(bl)),bl.exports}var jl={exports:{}},Df;function U1(){return Df||(Df=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.WordArray,i=o.Hasher,l=n.algo,c=[],u=l.SHA1=i.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,h){for(var d=this._hash.words,C=d[0],y=d[1],m=d[2],E=d[3],v=d[4],x=0;x<80;x++){if(x<16)c[x]=f[h+x]|0;else{var p=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=p<<1|p>>>31}var g=(C<<5|C>>>27)+v+c[x];x<20?g+=(y&m|~y&E)+1518500249:x<40?g+=(y^m^E)+1859775393:x<60?g+=(y&m|y&E|m&E)-1894007588:g+=(y^m^E)-899497514,v=E,E=m,m=y<<30|y>>>2,y=C,C=g}d[0]=d[0]+C|0,d[1]=d[1]+y|0,d[2]=d[2]+m|0,d[3]=d[3]+E|0,d[4]=d[4]+v|0},_doFinalize:function(){var f=this._data,h=f.words,d=this._nDataBytes*8,C=f.sigBytes*8;return h[C>>>5]|=128<<24-C%32,h[(C+64>>>9<<4)+14]=Math.floor(d/4294967296),h[(C+64>>>9<<4)+15]=d,f.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var f=i.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=i._createHelper(u),n.HmacSHA1=i._createHmacHelper(u)}(),r.SHA1})}(jl)),jl.exports}var kl={exports:{}},_f;function jc(){return _f||(_f=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){return function(n){var o=r,s=o.lib,i=s.WordArray,l=s.Hasher,c=o.algo,u=[],f=[];(function(){function C(v){for(var x=n.sqrt(v),p=2;p<=x;p++)if(!(v%p))return!1;return!0}function y(v){return(v-(v|0))*4294967296|0}for(var m=2,E=0;E<64;)C(m)&&(E<8&&(u[E]=y(n.pow(m,1/2))),f[E]=y(n.pow(m,1/3)),E++),m++})();var h=[],d=c.SHA256=l.extend({_doReset:function(){this._hash=new i.init(u.slice(0))},_doProcessBlock:function(C,y){for(var m=this._hash.words,E=m[0],v=m[1],x=m[2],p=m[3],g=m[4],S=m[5],b=m[6],w=m[7],j=0;j<64;j++){if(j<16)h[j]=C[y+j]|0;else{var D=h[j-15],k=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,A=h[j-2],N=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;h[j]=k+h[j-7]+N+h[j-16]}var F=g&S^~g&b,$=E&v^E&x^v&x,K=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),X=(g<<26|g>>>6)^(g<<21|g>>>11)^(g<<7|g>>>25),ne=w+X+F+f[j]+h[j],H=K+$;w=b,b=S,S=g,g=p+ne|0,p=x,x=v,v=E,E=ne+H|0}m[0]=m[0]+E|0,m[1]=m[1]+v|0,m[2]=m[2]+x|0,m[3]=m[3]+p|0,m[4]=m[4]+g|0,m[5]=m[5]+S|0,m[6]=m[6]+b|0,m[7]=m[7]+w|0},_doFinalize:function(){var C=this._data,y=C.words,m=this._nDataBytes*8,E=C.sigBytes*8;return y[E>>>5]|=128<<24-E%32,y[(E+64>>>9<<4)+14]=n.floor(m/4294967296),y[(E+64>>>9<<4)+15]=m,C.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var C=l.clone.call(this);return C._hash=this._hash.clone(),C}});o.SHA256=l._createHelper(d),o.HmacSHA256=l._createHmacHelper(d)}(Math),r.SHA256})}(kl)),kl.exports}var Bl={exports:{}},Rf;function h5(){return Rf||(Rf=1,function(e,t){(function(r,n,o){e.exports=n(se(),jc())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.WordArray,i=n.algo,l=i.SHA256,c=i.SHA224=l.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=4,u}});n.SHA224=l._createHelper(c),n.HmacSHA224=l._createHmacHelper(c)}(),r.SHA224})}(Bl)),Bl.exports}var Al={exports:{}},Tf;function q1(){return Tf||(Tf=1,function(e,t){(function(r,n,o){e.exports=n(se(),_a())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.Hasher,i=n.x64,l=i.Word,c=i.WordArray,u=n.algo;function f(){return l.create.apply(l,arguments)}var h=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],d=[];(function(){for(var y=0;y<80;y++)d[y]=f()})();var C=u.SHA512=s.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,m){for(var E=this._hash.words,v=E[0],x=E[1],p=E[2],g=E[3],S=E[4],b=E[5],w=E[6],j=E[7],D=v.high,k=v.low,A=x.high,N=x.low,F=p.high,$=p.low,K=g.high,X=g.low,ne=S.high,H=S.low,U=b.high,V=b.low,P=w.high,B=w.low,O=j.high,_=j.low,te=D,G=k,le=A,J=N,Pe=F,It=$,ar=K,Ye=X,jt=ne,it=H,ws=U,ro=V,Ss=P,no=B,$a=O,oo=_,kt=0;kt<80;kt++){var mt,lr,bs=d[kt];if(kt<16)lr=bs.high=y[m+kt*2]|0,mt=bs.low=y[m+kt*2+1]|0;else{var Ic=d[kt-15],un=Ic.high,so=Ic.low,Hm=(un>>>1|so<<31)^(un>>>8|so<<24)^un>>>7,Mc=(so>>>1|un<<31)^(so>>>8|un<<24)^(so>>>7|un<<25),$c=d[kt-2],cn=$c.high,io=$c.low,Wm=(cn>>>19|io<<13)^(cn<<3|io>>>29)^cn>>>6,Hc=(io>>>19|cn<<13)^(io<<3|cn>>>29)^(io>>>6|cn<<26),Wc=d[kt-7],Um=Wc.high,qm=Wc.low,Uc=d[kt-16],Vm=Uc.high,qc=Uc.low;mt=Mc+qm,lr=Hm+Um+(mt>>>0<Mc>>>0?1:0),mt=mt+Hc,lr=lr+Wm+(mt>>>0<Hc>>>0?1:0),mt=mt+qc,lr=lr+Vm+(mt>>>0<qc>>>0?1:0),bs.high=lr,bs.low=mt}var Qm=jt&ws^~jt&Ss,Vc=it&ro^~it&no,Km=te&le^te&Pe^le&Pe,Gm=G&J^G&It^J&It,Xm=(te>>>28|G<<4)^(te<<30|G>>>2)^(te<<25|G>>>7),Qc=(G>>>28|te<<4)^(G<<30|te>>>2)^(G<<25|te>>>7),Ym=(jt>>>14|it<<18)^(jt>>>18|it<<14)^(jt<<23|it>>>9),Jm=(it>>>14|jt<<18)^(it>>>18|jt<<14)^(it<<23|jt>>>9),Kc=h[kt],Zm=Kc.high,Gc=Kc.low,at=oo+Jm,ur=$a+Ym+(at>>>0<oo>>>0?1:0),at=at+Vc,ur=ur+Qm+(at>>>0<Vc>>>0?1:0),at=at+Gc,ur=ur+Zm+(at>>>0<Gc>>>0?1:0),at=at+mt,ur=ur+lr+(at>>>0<mt>>>0?1:0),Xc=Qc+Gm,eg=Xm+Km+(Xc>>>0<Qc>>>0?1:0);$a=Ss,oo=no,Ss=ws,no=ro,ws=jt,ro=it,it=Ye+at|0,jt=ar+ur+(it>>>0<Ye>>>0?1:0)|0,ar=Pe,Ye=It,Pe=le,It=J,le=te,J=G,G=at+Xc|0,te=ur+eg+(G>>>0<at>>>0?1:0)|0}k=v.low=k+G,v.high=D+te+(k>>>0<G>>>0?1:0),N=x.low=N+J,x.high=A+le+(N>>>0<J>>>0?1:0),$=p.low=$+It,p.high=F+Pe+($>>>0<It>>>0?1:0),X=g.low=X+Ye,g.high=K+ar+(X>>>0<Ye>>>0?1:0),H=S.low=H+it,S.high=ne+jt+(H>>>0<it>>>0?1:0),V=b.low=V+ro,b.high=U+ws+(V>>>0<ro>>>0?1:0),B=w.low=B+no,w.high=P+Ss+(B>>>0<no>>>0?1:0),_=j.low=_+oo,j.high=O+$a+(_>>>0<oo>>>0?1:0)},_doFinalize:function(){var y=this._data,m=y.words,E=this._nDataBytes*8,v=y.sigBytes*8;m[v>>>5]|=128<<24-v%32,m[(v+128>>>10<<5)+30]=Math.floor(E/4294967296),m[(v+128>>>10<<5)+31]=E,y.sigBytes=m.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var y=s.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});n.SHA512=s._createHelper(C),n.HmacSHA512=s._createHmacHelper(C)}(),r.SHA512})}(Al)),Al.exports}var Fl={exports:{}},Pf;function m5(){return Pf||(Pf=1,function(e,t){(function(r,n,o){e.exports=n(se(),_a(),q1())})(Y,function(r){return function(){var n=r,o=n.x64,s=o.Word,i=o.WordArray,l=n.algo,c=l.SHA512,u=l.SHA384=c.extend({_doReset:function(){this._hash=new i.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var f=c._doFinalize.call(this);return f.sigBytes-=16,f}});n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u)}(),r.SHA384})}(Fl)),Fl.exports}var Dl={exports:{}},Of;function g5(){return Of||(Of=1,function(e,t){(function(r,n,o){e.exports=n(se(),_a())})(Y,function(r){return function(n){var o=r,s=o.lib,i=s.WordArray,l=s.Hasher,c=o.x64,u=c.Word,f=o.algo,h=[],d=[],C=[];(function(){for(var E=1,v=0,x=0;x<24;x++){h[E+5*v]=(x+1)*(x+2)/2%64;var p=v%5,g=(2*E+3*v)%5;E=p,v=g}for(var E=0;E<5;E++)for(var v=0;v<5;v++)d[E+5*v]=v+(2*E+3*v)%5*5;for(var S=1,b=0;b<24;b++){for(var w=0,j=0,D=0;D<7;D++){if(S&1){var k=(1<<D)-1;k<32?j^=1<<k:w^=1<<k-32}S&128?S=S<<1^113:S<<=1}C[b]=u.create(w,j)}})();var y=[];(function(){for(var E=0;E<25;E++)y[E]=u.create()})();var m=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],v=0;v<25;v++)E[v]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,v){for(var x=this._state,p=this.blockSize/2,g=0;g<p;g++){var S=E[v+2*g],b=E[v+2*g+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;var w=x[g];w.high^=b,w.low^=S}for(var j=0;j<24;j++){for(var D=0;D<5;D++){for(var k=0,A=0,N=0;N<5;N++){var w=x[D+5*N];k^=w.high,A^=w.low}var F=y[D];F.high=k,F.low=A}for(var D=0;D<5;D++)for(var $=y[(D+4)%5],K=y[(D+1)%5],X=K.high,ne=K.low,k=$.high^(X<<1|ne>>>31),A=$.low^(ne<<1|X>>>31),N=0;N<5;N++){var w=x[D+5*N];w.high^=k,w.low^=A}for(var H=1;H<25;H++){var k,A,w=x[H],U=w.high,V=w.low,P=h[H];P<32?(k=U<<P|V>>>32-P,A=V<<P|U>>>32-P):(k=V<<P-32|U>>>64-P,A=U<<P-32|V>>>64-P);var B=y[d[H]];B.high=k,B.low=A}var O=y[0],_=x[0];O.high=_.high,O.low=_.low;for(var D=0;D<5;D++)for(var N=0;N<5;N++){var H=D+5*N,w=x[H],te=y[H],G=y[(D+1)%5+5*N],le=y[(D+2)%5+5*N];w.high=te.high^~G.high&le.high,w.low=te.low^~G.low&le.low}var w=x[0],J=C[j];w.high^=J.high,w.low^=J.low}},_doFinalize:function(){var E=this._data,v=E.words;this._nDataBytes*8;var x=E.sigBytes*8,p=this.blockSize*32;v[x>>>5]|=1<<24-x%32,v[(n.ceil((x+1)/p)*p>>>5)-1]|=128,E.sigBytes=v.length*4,this._process();for(var g=this._state,S=this.cfg.outputLength/8,b=S/8,w=[],j=0;j<b;j++){var D=g[j],k=D.high,A=D.low;k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,w.push(A),w.push(k)}return new i.init(w,S)},clone:function(){for(var E=l.clone.call(this),v=E._state=this._state.slice(0),x=0;x<25;x++)v[x]=v[x].clone();return E}});o.SHA3=l._createHelper(m),o.HmacSHA3=l._createHmacHelper(m)}(Math),r.SHA3})}(Dl)),Dl.exports}var _l={exports:{}},Lf;function v5(){return Lf||(Lf=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){/** @preserve
|
|
59
|
-
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
64
|
-
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
|
-
|
|
66
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
67
|
-
*/return function(n){var o=r,s=o.lib,i=s.WordArray,l=s.Hasher,c=o.algo,u=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),C=i.create([0,1518500249,1859775393,2400959708,2840853838]),y=i.create([1352829926,1548603684,1836072691,2053994217,0]),m=c.RIPEMD160=l.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,w){for(var j=0;j<16;j++){var D=w+j,k=b[D];b[D]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var A=this._hash.words,N=C.words,F=y.words,$=u.words,K=f.words,X=h.words,ne=d.words,H,U,V,P,B,O,_,te,G,le;O=H=A[0],_=U=A[1],te=V=A[2],G=P=A[3],le=B=A[4];for(var J,j=0;j<80;j+=1)J=H+b[w+$[j]]|0,j<16?J+=E(U,V,P)+N[0]:j<32?J+=v(U,V,P)+N[1]:j<48?J+=x(U,V,P)+N[2]:j<64?J+=p(U,V,P)+N[3]:J+=g(U,V,P)+N[4],J=J|0,J=S(J,X[j]),J=J+B|0,H=B,B=P,P=S(V,10),V=U,U=J,J=O+b[w+K[j]]|0,j<16?J+=g(_,te,G)+F[0]:j<32?J+=p(_,te,G)+F[1]:j<48?J+=x(_,te,G)+F[2]:j<64?J+=v(_,te,G)+F[3]:J+=E(_,te,G)+F[4],J=J|0,J=S(J,ne[j]),J=J+le|0,O=le,le=G,G=S(te,10),te=_,_=J;J=A[1]+V+G|0,A[1]=A[2]+P+le|0,A[2]=A[3]+B+O|0,A[3]=A[4]+H+_|0,A[4]=A[0]+U+te|0,A[0]=J},_doFinalize:function(){var b=this._data,w=b.words,j=this._nDataBytes*8,D=b.sigBytes*8;w[D>>>5]|=128<<24-D%32,w[(D+64>>>9<<4)+14]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360,b.sigBytes=(w.length+1)*4,this._process();for(var k=this._hash,A=k.words,N=0;N<5;N++){var F=A[N];A[N]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}return k},clone:function(){var b=l.clone.call(this);return b._hash=this._hash.clone(),b}});function E(b,w,j){return b^w^j}function v(b,w,j){return b&w|~b&j}function x(b,w,j){return(b|~w)^j}function p(b,w,j){return b&j|w&~j}function g(b,w,j){return b^(w|~j)}function S(b,w){return b<<w|b>>>32-w}o.RIPEMD160=l._createHelper(m),o.HmacRIPEMD160=l._createHmacHelper(m)}(),r.RIPEMD160})}(_l)),_l.exports}var Rl={exports:{}},Nf;function kc(){return Nf||(Nf=1,function(e,t){(function(r,n){e.exports=n(se())})(Y,function(r){(function(){var n=r,o=n.lib,s=o.Base,i=n.enc,l=i.Utf8,c=n.algo;c.HMAC=s.extend({init:function(u,f){u=this._hasher=new u.init,typeof f=="string"&&(f=l.parse(f));var h=u.blockSize,d=h*4;f.sigBytes>d&&(f=u.finalize(f)),f.clamp();for(var C=this._oKey=f.clone(),y=this._iKey=f.clone(),m=C.words,E=y.words,v=0;v<h;v++)m[v]^=1549556828,E[v]^=909522486;C.sigBytes=y.sigBytes=d,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var f=this._hasher,h=f.finalize(u);f.reset();var d=f.finalize(this._oKey.clone().concat(h));return d}})})()})}(Rl)),Rl.exports}var Tl={exports:{}},zf;function y5(){return zf||(zf=1,function(e,t){(function(r,n,o){e.exports=n(se(),jc(),kc())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.Base,i=o.WordArray,l=n.algo,c=l.SHA256,u=l.HMAC,f=l.PBKDF2=s.extend({cfg:s.extend({keySize:128/32,hasher:c,iterations:25e4}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,d){for(var C=this.cfg,y=u.create(C.hasher,h),m=i.create(),E=i.create([1]),v=m.words,x=E.words,p=C.keySize,g=C.iterations;v.length<p;){var S=y.update(d).finalize(E);y.reset();for(var b=S.words,w=b.length,j=S,D=1;D<g;D++){j=y.finalize(j),y.reset();for(var k=j.words,A=0;A<w;A++)b[A]^=k[A]}m.concat(S),x[0]++}return m.sigBytes=p*4,m}});n.PBKDF2=function(h,d,C){return f.create(C).compute(h,d)}}(),r.PBKDF2})}(Tl)),Tl.exports}var Pl={exports:{}},If;function Or(){return If||(If=1,function(e,t){(function(r,n,o){e.exports=n(se(),U1(),kc())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.Base,i=o.WordArray,l=n.algo,c=l.MD5,u=l.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:c,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,h){for(var d,C=this.cfg,y=C.hasher.create(),m=i.create(),E=m.words,v=C.keySize,x=C.iterations;E.length<v;){d&&y.update(d),d=y.update(f).finalize(h),y.reset();for(var p=1;p<x;p++)d=y.finalize(d),y.reset();m.concat(d)}return m.sigBytes=v*4,m}});n.EvpKDF=function(f,h,d){return u.create(d).compute(f,h)}}(),r.EvpKDF})}(Pl)),Pl.exports}var Ol={exports:{}},Mf;function Te(){return Mf||(Mf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Or())})(Y,function(r){r.lib.Cipher||function(n){var o=r,s=o.lib,i=s.Base,l=s.WordArray,c=s.BufferedBlockAlgorithm,u=o.enc;u.Utf8;var f=u.Base64,h=o.algo,d=h.EvpKDF,C=s.Cipher=c.extend({cfg:i.extend(),createEncryptor:function(k,A){return this.create(this._ENC_XFORM_MODE,k,A)},createDecryptor:function(k,A){return this.create(this._DEC_XFORM_MODE,k,A)},init:function(k,A,N){this.cfg=this.cfg.extend(N),this._xformMode=k,this._key=A,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(k){return this._append(k),this._process()},finalize:function(k){k&&this._append(k);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function k(A){return typeof A=="string"?D:b}return function(A){return{encrypt:function(N,F,$){return k(F).encrypt(A,N,F,$)},decrypt:function(N,F,$){return k(F).decrypt(A,N,F,$)}}}}()});s.StreamCipher=C.extend({_doFinalize:function(){var k=this._process(!0);return k},blockSize:1});var y=o.mode={},m=s.BlockCipherMode=i.extend({createEncryptor:function(k,A){return this.Encryptor.create(k,A)},createDecryptor:function(k,A){return this.Decryptor.create(k,A)},init:function(k,A){this._cipher=k,this._iv=A}}),E=y.CBC=function(){var k=m.extend();k.Encryptor=k.extend({processBlock:function(N,F){var $=this._cipher,K=$.blockSize;A.call(this,N,F,K),$.encryptBlock(N,F),this._prevBlock=N.slice(F,F+K)}}),k.Decryptor=k.extend({processBlock:function(N,F){var $=this._cipher,K=$.blockSize,X=N.slice(F,F+K);$.decryptBlock(N,F),A.call(this,N,F,K),this._prevBlock=X}});function A(N,F,$){var K,X=this._iv;X?(K=X,this._iv=n):K=this._prevBlock;for(var ne=0;ne<$;ne++)N[F+ne]^=K[ne]}return k}(),v=o.pad={},x=v.Pkcs7={pad:function(k,A){for(var N=A*4,F=N-k.sigBytes%N,$=F<<24|F<<16|F<<8|F,K=[],X=0;X<F;X+=4)K.push($);var ne=l.create(K,F);k.concat(ne)},unpad:function(k){var A=k.words[k.sigBytes-1>>>2]&255;k.sigBytes-=A}};s.BlockCipher=C.extend({cfg:C.cfg.extend({mode:E,padding:x}),reset:function(){var k;C.reset.call(this);var A=this.cfg,N=A.iv,F=A.mode;this._xformMode==this._ENC_XFORM_MODE?k=F.createEncryptor:(k=F.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,N&&N.words):(this._mode=k.call(F,this,N&&N.words),this._mode.__creator=k)},_doProcessBlock:function(k,A){this._mode.processBlock(k,A)},_doFinalize:function(){var k,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),A.unpad(k)),k},blockSize:128/32});var p=s.CipherParams=i.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),g=o.format={},S=g.OpenSSL={stringify:function(k){var A,N=k.ciphertext,F=k.salt;return F?A=l.create([1398893684,1701076831]).concat(F).concat(N):A=N,A.toString(f)},parse:function(k){var A,N=f.parse(k),F=N.words;return F[0]==1398893684&&F[1]==1701076831&&(A=l.create(F.slice(2,4)),F.splice(0,4),N.sigBytes-=16),p.create({ciphertext:N,salt:A})}},b=s.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function(k,A,N,F){F=this.cfg.extend(F);var $=k.createEncryptor(N,F),K=$.finalize(A),X=$.cfg;return p.create({ciphertext:K,key:N,iv:X.iv,algorithm:k,mode:X.mode,padding:X.padding,blockSize:k.blockSize,formatter:F.format})},decrypt:function(k,A,N,F){F=this.cfg.extend(F),A=this._parse(A,F.format);var $=k.createDecryptor(N,F).finalize(A.ciphertext);return $},_parse:function(k,A){return typeof k=="string"?A.parse(k,this):k}}),w=o.kdf={},j=w.OpenSSL={execute:function(k,A,N,F,$){if(F||(F=l.random(64/8)),$)var K=d.create({keySize:A+N,hasher:$}).compute(k,F);else var K=d.create({keySize:A+N}).compute(k,F);var X=l.create(K.words.slice(A),N*4);return K.sigBytes=A*4,p.create({key:K,iv:X,salt:F})}},D=s.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:j}),encrypt:function(k,A,N,F){F=this.cfg.extend(F);var $=F.kdf.execute(N,k.keySize,k.ivSize,F.salt,F.hasher);F.iv=$.iv;var K=b.encrypt.call(this,k,A,$.key,F);return K.mixIn($),K},decrypt:function(k,A,N,F){F=this.cfg.extend(F),A=this._parse(A,F.format);var $=F.kdf.execute(N,k.keySize,k.ivSize,A.salt,F.hasher);F.iv=$.iv;var K=b.decrypt.call(this,k,A,$.key,F);return K}})}()})}(Ol)),Ol.exports}var Ll={exports:{}},$f;function C5(){return $f||($f=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(s,i){var l=this._cipher,c=l.blockSize;o.call(this,s,i,c,l),this._prevBlock=s.slice(i,i+c)}}),n.Decryptor=n.extend({processBlock:function(s,i){var l=this._cipher,c=l.blockSize,u=s.slice(i,i+c);o.call(this,s,i,c,l),this._prevBlock=u}});function o(s,i,l,c){var u,f=this._iv;f?(u=f.slice(0),this._iv=void 0):u=this._prevBlock,c.encryptBlock(u,0);for(var h=0;h<l;h++)s[i+h]^=u[h]}return n}(),r.mode.CFB})}(Ll)),Ll.exports}var Nl={exports:{}},Hf;function E5(){return Hf||(Hf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(s,i){var l=this._cipher,c=l.blockSize,u=this._iv,f=this._counter;u&&(f=this._counter=u.slice(0),this._iv=void 0);var h=f.slice(0);l.encryptBlock(h,0),f[c-1]=f[c-1]+1|0;for(var d=0;d<c;d++)s[i+d]^=h[d]}});return n.Decryptor=o,n}(),r.mode.CTR})}(Nl)),Nl.exports}var zl={exports:{}},Wf;function w5(){return Wf||(Wf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){/** @preserve
|
|
68
|
-
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
69
|
-
* derived from CryptoJS.mode.CTR
|
|
70
|
-
* Jan Hruby jhruby.web@gmail.com
|
|
71
|
-
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function o(l){if((l>>24&255)===255){var c=l>>16&255,u=l>>8&255,f=l&255;c===255?(c=0,u===255?(u=0,f===255?f=0:++f):++u):++c,l=0,l+=c<<16,l+=u<<8,l+=f}else l+=1<<24;return l}function s(l){return(l[0]=o(l[0]))===0&&(l[1]=o(l[1])),l}var i=n.Encryptor=n.extend({processBlock:function(l,c){var u=this._cipher,f=u.blockSize,h=this._iv,d=this._counter;h&&(d=this._counter=h.slice(0),this._iv=void 0),s(d);var C=d.slice(0);u.encryptBlock(C,0);for(var y=0;y<f;y++)l[c+y]^=C[y]}});return n.Decryptor=i,n}(),r.mode.CTRGladman})}(zl)),zl.exports}var Il={exports:{}},Uf;function S5(){return Uf||(Uf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(s,i){var l=this._cipher,c=l.blockSize,u=this._iv,f=this._keystream;u&&(f=this._keystream=u.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var h=0;h<c;h++)s[i+h]^=f[h]}});return n.Decryptor=o,n}(),r.mode.OFB})}(Il)),Il.exports}var Ml={exports:{}},qf;function b5(){return qf||(qf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(o,s){this._cipher.encryptBlock(o,s)}}),n.Decryptor=n.extend({processBlock:function(o,s){this._cipher.decryptBlock(o,s)}}),n}(),r.mode.ECB})}(Ml)),Ml.exports}var $l={exports:{}},Vf;function j5(){return Vf||(Vf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.pad.AnsiX923={pad:function(n,o){var s=n.sigBytes,i=o*4,l=i-s%i,c=s+l-1;n.clamp(),n.words[c>>>2]|=l<<24-c%4*8,n.sigBytes+=l},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Ansix923})}($l)),$l.exports}var Hl={exports:{}},Qf;function k5(){return Qf||(Qf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.pad.Iso10126={pad:function(n,o){var s=o*4,i=s-n.sigBytes%s;n.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Iso10126})}(Hl)),Hl.exports}var Wl={exports:{}},Kf;function B5(){return Kf||(Kf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.pad.Iso97971={pad:function(n,o){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,o)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(Wl)),Wl.exports}var Ul={exports:{}},Gf;function A5(){return Gf||(Gf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.pad.ZeroPadding={pad:function(n,o){var s=o*4;n.clamp(),n.sigBytes+=s-(n.sigBytes%s||s)},unpad:function(n){for(var o=n.words,s=n.sigBytes-1,s=n.sigBytes-1;s>=0;s--)if(o[s>>>2]>>>24-s%4*8&255){n.sigBytes=s+1;break}}},r.pad.ZeroPadding})}(Ul)),Ul.exports}var ql={exports:{}},Xf;function F5(){return Xf||(Xf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(ql)),ql.exports}var Vl={exports:{}},Yf;function D5(){return Yf||(Yf=1,function(e,t){(function(r,n,o){e.exports=n(se(),Te())})(Y,function(r){return function(n){var o=r,s=o.lib,i=s.CipherParams,l=o.enc,c=l.Hex,u=o.format;u.Hex={stringify:function(f){return f.ciphertext.toString(c)},parse:function(f){var h=c.parse(f);return i.create({ciphertext:h})}}}(),r.format.Hex})}(Vl)),Vl.exports}var Ql={exports:{}},Jf;function _5(){return Jf||(Jf=1,function(e,t){(function(r,n,o){e.exports=n(se(),an(),ln(),Or(),Te())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.BlockCipher,i=n.algo,l=[],c=[],u=[],f=[],h=[],d=[],C=[],y=[],m=[],E=[];(function(){for(var p=[],g=0;g<256;g++)g<128?p[g]=g<<1:p[g]=g<<1^283;for(var S=0,b=0,g=0;g<256;g++){var w=b^b<<1^b<<2^b<<3^b<<4;w=w>>>8^w&255^99,l[S]=w,c[w]=S;var j=p[S],D=p[j],k=p[D],A=p[w]*257^w*16843008;u[S]=A<<24|A>>>8,f[S]=A<<16|A>>>16,h[S]=A<<8|A>>>24,d[S]=A;var A=k*16843009^D*65537^j*257^S*16843008;C[w]=A<<24|A>>>8,y[w]=A<<16|A>>>16,m[w]=A<<8|A>>>24,E[w]=A,S?(S=j^p[p[p[k^j]]],b^=p[p[b]]):S=b=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],x=i.AES=s.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var g=this._keyPriorReset=this._key,S=g.words,b=g.sigBytes/4,w=this._nRounds=b+6,j=(w+1)*4,D=this._keySchedule=[],k=0;k<j;k++)k<b?D[k]=S[k]:(p=D[k-1],k%b?b>6&&k%b==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=v[k/b|0]<<24),D[k]=D[k-b]^p);for(var A=this._invKeySchedule=[],N=0;N<j;N++){var k=j-N;if(N%4)var p=D[k];else var p=D[k-4];N<4||k<=4?A[N]=p:A[N]=C[l[p>>>24]]^y[l[p>>>16&255]]^m[l[p>>>8&255]]^E[l[p&255]]}}},encryptBlock:function(p,g){this._doCryptBlock(p,g,this._keySchedule,u,f,h,d,l)},decryptBlock:function(p,g){var S=p[g+1];p[g+1]=p[g+3],p[g+3]=S,this._doCryptBlock(p,g,this._invKeySchedule,C,y,m,E,c);var S=p[g+1];p[g+1]=p[g+3],p[g+3]=S},_doCryptBlock:function(p,g,S,b,w,j,D,k){for(var A=this._nRounds,N=p[g]^S[0],F=p[g+1]^S[1],$=p[g+2]^S[2],K=p[g+3]^S[3],X=4,ne=1;ne<A;ne++){var H=b[N>>>24]^w[F>>>16&255]^j[$>>>8&255]^D[K&255]^S[X++],U=b[F>>>24]^w[$>>>16&255]^j[K>>>8&255]^D[N&255]^S[X++],V=b[$>>>24]^w[K>>>16&255]^j[N>>>8&255]^D[F&255]^S[X++],P=b[K>>>24]^w[N>>>16&255]^j[F>>>8&255]^D[$&255]^S[X++];N=H,F=U,$=V,K=P}var H=(k[N>>>24]<<24|k[F>>>16&255]<<16|k[$>>>8&255]<<8|k[K&255])^S[X++],U=(k[F>>>24]<<24|k[$>>>16&255]<<16|k[K>>>8&255]<<8|k[N&255])^S[X++],V=(k[$>>>24]<<24|k[K>>>16&255]<<16|k[N>>>8&255]<<8|k[F&255])^S[X++],P=(k[K>>>24]<<24|k[N>>>16&255]<<16|k[F>>>8&255]<<8|k[$&255])^S[X++];p[g]=H,p[g+1]=U,p[g+2]=V,p[g+3]=P},keySize:256/32});n.AES=s._createHelper(x)}(),r.AES})}(Ql)),Ql.exports}var Kl={exports:{}},Zf;function R5(){return Zf||(Zf=1,function(e,t){(function(r,n,o){e.exports=n(se(),an(),ln(),Or(),Te())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.WordArray,i=o.BlockCipher,l=n.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],C=l.DES=i.extend({_doReset:function(){for(var v=this._key,x=v.words,p=[],g=0;g<56;g++){var S=c[g]-1;p[g]=x[S>>>5]>>>31-S%32&1}for(var b=this._subKeys=[],w=0;w<16;w++){for(var j=b[w]=[],D=f[w],g=0;g<24;g++)j[g/6|0]|=p[(u[g]-1+D)%28]<<31-g%6,j[4+(g/6|0)]|=p[28+(u[g+24]-1+D)%28]<<31-g%6;j[0]=j[0]<<1|j[0]>>>31;for(var g=1;g<7;g++)j[g]=j[g]>>>(g-1)*4+3;j[7]=j[7]<<5|j[7]>>>27}for(var k=this._invSubKeys=[],g=0;g<16;g++)k[g]=b[15-g]},encryptBlock:function(v,x){this._doCryptBlock(v,x,this._subKeys)},decryptBlock:function(v,x){this._doCryptBlock(v,x,this._invSubKeys)},_doCryptBlock:function(v,x,p){this._lBlock=v[x],this._rBlock=v[x+1],y.call(this,4,252645135),y.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),y.call(this,1,1431655765);for(var g=0;g<16;g++){for(var S=p[g],b=this._lBlock,w=this._rBlock,j=0,D=0;D<8;D++)j|=h[D][((w^S[D])&d[D])>>>0];this._lBlock=w,this._rBlock=b^j}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,y.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),v[x]=this._lBlock,v[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(v,x){var p=(this._lBlock>>>v^this._rBlock)&x;this._rBlock^=p,this._lBlock^=p<<v}function m(v,x){var p=(this._rBlock>>>v^this._lBlock)&x;this._lBlock^=p,this._rBlock^=p<<v}n.DES=i._createHelper(C);var E=l.TripleDES=i.extend({_doReset:function(){var v=this._key,x=v.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=x.slice(0,2),g=x.length<4?x.slice(0,2):x.slice(2,4),S=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=C.createEncryptor(s.create(p)),this._des2=C.createEncryptor(s.create(g)),this._des3=C.createEncryptor(s.create(S))},encryptBlock:function(v,x){this._des1.encryptBlock(v,x),this._des2.decryptBlock(v,x),this._des3.encryptBlock(v,x)},decryptBlock:function(v,x){this._des3.decryptBlock(v,x),this._des2.encryptBlock(v,x),this._des1.decryptBlock(v,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=i._createHelper(E)}(),r.TripleDES})}(Kl)),Kl.exports}var Gl={exports:{}},ex;function T5(){return ex||(ex=1,function(e,t){(function(r,n,o){e.exports=n(se(),an(),ln(),Or(),Te())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.StreamCipher,i=n.algo,l=i.RC4=s.extend({_doReset:function(){for(var f=this._key,h=f.words,d=f.sigBytes,C=this._S=[],y=0;y<256;y++)C[y]=y;for(var y=0,m=0;y<256;y++){var E=y%d,v=h[E>>>2]>>>24-E%4*8&255;m=(m+C[y]+v)%256;var x=C[y];C[y]=C[m],C[m]=x}this._i=this._j=0},_doProcessBlock:function(f,h){f[h]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var f=this._S,h=this._i,d=this._j,C=0,y=0;y<4;y++){h=(h+1)%256,d=(d+f[h])%256;var m=f[h];f[h]=f[d],f[d]=m,C|=f[(f[h]+f[d])%256]<<24-y*8}return this._i=h,this._j=d,C}n.RC4=s._createHelper(l);var u=i.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)c.call(this)}});n.RC4Drop=s._createHelper(u)}(),r.RC4})}(Gl)),Gl.exports}var Xl={exports:{}},tx;function P5(){return tx||(tx=1,function(e,t){(function(r,n,o){e.exports=n(se(),an(),ln(),Or(),Te())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.StreamCipher,i=n.algo,l=[],c=[],u=[],f=i.Rabbit=s.extend({_doReset:function(){for(var d=this._key.words,C=this.cfg.iv,y=0;y<4;y++)d[y]=(d[y]<<8|d[y]>>>24)&16711935|(d[y]<<24|d[y]>>>8)&4278255360;var m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],E=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var y=0;y<4;y++)h.call(this);for(var y=0;y<8;y++)E[y]^=m[y+4&7];if(C){var v=C.words,x=v[0],p=v[1],g=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,S=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,b=g>>>16|S&4294901760,w=S<<16|g&65535;E[0]^=g,E[1]^=b,E[2]^=S,E[3]^=w,E[4]^=g,E[5]^=b,E[6]^=S,E[7]^=w;for(var y=0;y<4;y++)h.call(this)}},_doProcessBlock:function(d,C){var y=this._X;h.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,d[C+m]^=l[m]},blockSize:128/32,ivSize:64/32});function h(){for(var d=this._X,C=this._C,y=0;y<8;y++)c[y]=C[y];C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0<c[0]>>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0<c[1]>>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0<c[2]>>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0<c[3]>>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0<c[4]>>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0<c[5]>>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0<c[6]>>>0?1:0)|0,this._b=C[7]>>>0<c[7]>>>0?1:0;for(var y=0;y<8;y++){var m=d[y]+C[y],E=m&65535,v=m>>>16,x=((E*E>>>17)+E*v>>>15)+v*v,p=((m&4294901760)*m|0)+((m&65535)*m|0);u[y]=x^p}d[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,d[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,d[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,d[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,d[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,d[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,d[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,d[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.Rabbit=s._createHelper(f)}(),r.Rabbit})}(Xl)),Xl.exports}var Yl={exports:{}},rx;function O5(){return rx||(rx=1,function(e,t){(function(r,n,o){e.exports=n(se(),an(),ln(),Or(),Te())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.StreamCipher,i=n.algo,l=[],c=[],u=[],f=i.RabbitLegacy=s.extend({_doReset:function(){var d=this._key.words,C=this.cfg.iv,y=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],m=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var E=0;E<4;E++)h.call(this);for(var E=0;E<8;E++)m[E]^=y[E+4&7];if(C){var v=C.words,x=v[0],p=v[1],g=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,S=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,b=g>>>16|S&4294901760,w=S<<16|g&65535;m[0]^=g,m[1]^=b,m[2]^=S,m[3]^=w,m[4]^=g,m[5]^=b,m[6]^=S,m[7]^=w;for(var E=0;E<4;E++)h.call(this)}},_doProcessBlock:function(d,C){var y=this._X;h.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,d[C+m]^=l[m]},blockSize:128/32,ivSize:64/32});function h(){for(var d=this._X,C=this._C,y=0;y<8;y++)c[y]=C[y];C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0<c[0]>>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0<c[1]>>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0<c[2]>>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0<c[3]>>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0<c[4]>>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0<c[5]>>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0<c[6]>>>0?1:0)|0,this._b=C[7]>>>0<c[7]>>>0?1:0;for(var y=0;y<8;y++){var m=d[y]+C[y],E=m&65535,v=m>>>16,x=((E*E>>>17)+E*v>>>15)+v*v,p=((m&4294901760)*m|0)+((m&65535)*m|0);u[y]=x^p}d[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,d[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,d[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,d[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,d[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,d[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,d[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,d[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.RabbitLegacy=s._createHelper(f)}(),r.RabbitLegacy})}(Yl)),Yl.exports}var Jl={exports:{}},nx;function L5(){return nx||(nx=1,function(e,t){(function(r,n,o){e.exports=n(se(),an(),ln(),Or(),Te())})(Y,function(r){return function(){var n=r,o=n.lib,s=o.BlockCipher,i=n.algo;const l=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],u=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var f={pbox:[],sbox:[]};function h(E,v){let x=v>>24&255,p=v>>16&255,g=v>>8&255,S=v&255,b=E.sbox[0][x]+E.sbox[1][p];return b=b^E.sbox[2][g],b=b+E.sbox[3][S],b}function d(E,v,x){let p=v,g=x,S;for(let b=0;b<l;++b)p=p^E.pbox[b],g=h(E,p)^g,S=p,p=g,g=S;return S=p,p=g,g=S,g=g^E.pbox[l],p=p^E.pbox[l+1],{left:p,right:g}}function C(E,v,x){let p=v,g=x,S;for(let b=l+1;b>1;--b)p=p^E.pbox[b],g=h(E,p)^g,S=p,p=g,g=S;return S=p,p=g,g=S,g=g^E.pbox[1],p=p^E.pbox[0],{left:p,right:g}}function y(E,v,x){for(let w=0;w<4;w++){E.sbox[w]=[];for(let j=0;j<256;j++)E.sbox[w][j]=u[w][j]}let p=0;for(let w=0;w<l+2;w++)E.pbox[w]=c[w]^v[p],p++,p>=x&&(p=0);let g=0,S=0,b=0;for(let w=0;w<l+2;w+=2)b=d(E,g,S),g=b.left,S=b.right,E.pbox[w]=g,E.pbox[w+1]=S;for(let w=0;w<4;w++)for(let j=0;j<256;j+=2)b=d(E,g,S),g=b.left,S=b.right,E.sbox[w][j]=g,E.sbox[w][j+1]=S;return!0}var m=i.Blowfish=s.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,v=E.words,x=E.sigBytes/4;y(f,v,x)}},encryptBlock:function(E,v){var x=d(f,E[v],E[v+1]);E[v]=x.left,E[v+1]=x.right},decryptBlock:function(E,v){var x=C(f,E[v],E[v+1]);E[v]=x.left,E[v+1]=x.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=s._createHelper(m)}(),r.Blowfish})}(Jl)),Jl.exports}(function(e,t){(function(r,n,o){e.exports=n(se(),_a(),f5(),x5(),an(),p5(),ln(),U1(),jc(),h5(),q1(),m5(),g5(),v5(),kc(),y5(),Or(),Te(),C5(),E5(),w5(),S5(),b5(),j5(),k5(),B5(),A5(),F5(),D5(),_5(),R5(),T5(),P5(),O5(),L5())})(Y,function(r){return r})})(W1);var N5=W1.exports;const ox=aa(N5),z5=e=>Xe({method:"POST",endpoint:"log",data:e}),V1=e=>Xe({method:"POST",endpoint:"metrics",data:e}),I5=()=>Xe({method:"POST",endpoint:"metricsWeeks"}),M5=e=>Xe({method:"POST",endpoint:"metricsWeek",data:e}),$5=()=>Xe({method:"GET",endpoint:"netlog"}),H5=()=>Xe({method:"POST",endpoint:"connections"}),W5=e=>Xe({method:"POST",endpoint:"db",data:e}),U5=()=>Xe({method:"POST",endpoint:"outgoingnetlog"}),q5=()=>Xe({method:"POST",endpoint:"sysinfo"}),V5=()=>Xe({method:"POST",endpoint:"procinfo"}),Q5=()=>Xe({method:"POST",endpoint:"fdreport"}),K5=e=>Xe({method:"POST",endpoint:"restart",data:{confirm:e}}),G5=()=>Xe({method:"POST",endpoint:"inventory"}),X5=()=>Xe({method:"POST",endpoint:"httpstats"}),Y5=e=>Xe({method:"POST",endpoint:"changeLogLevel",data:{level:e}}),J5=()=>{const e=window.__host;let t="/";return e&&e.trim()&&!e.includes("{{")?t=e.trim():qt.host&&qt.host.trim()&&(t=qt.host.trim()),t.endsWith("/")||(t+="/"),t},Z5=()=>"Bearer "+ox.SHA256(qt.login+":"+qt.password).toString(ox.enc.Hex),Xe=async e=>{var s,i;const r={url:J5()+e.endpoint+(e.params?"?"+e.params:""),method:e.method,responseType:"json",headers:{"Content-Type":"application/json",Authorization:e.ignoreToken?void 0:Z5()},data:e.method!=="GET"?e.data:void 0};let n;try{n=await we(r)}catch(l){const c=l,u=(s=c.response)==null?void 0:s.data;if(u&&typeof u=="object"){if(u.error)return{error:u.error,httpStatus:c.response.status};if(u.message)return{error:{code:999,message:u.message},httpStatus:c.response.status}}return{error:{code:-1,message:"Network error: "+c.message},httpStatus:((i=c.response)==null?void 0:i.status)??0}}const o=n.data??{};return o.httpStatus||(o.httpStatus=n.status),o},qt={login:"",password:"",host:""},Q1=new vs("S_AUTH"),ea=new vs("S_AUTH_STATUS"),mu=new vs("S_AUTH_ERROR");class e4{constructor(){Z(this,"state","unauthorized");ea.onSubscribe=t=>t(this.state),Q1.subscribe(t=>this.signIn(t))}setState(t){this.state=t,ea.invoke(t)}async signIn(t){if(!t)return;qt.login=t.login,qt.password=t.password,qt.host=t.host,mu.invoke(null),this.setState("checking");const r=await V1({range:"hour"});if(r.error){qt.password="",mu.invoke(r.error),this.setState("unauthorized");return}this.setState("authorized")}}var _e=function(){return _e=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},_e.apply(this,arguments)};function Wn(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var pe="-ms-",qo="-moz-",ue="-webkit-",K1="comm",Ra="rule",Bc="decl",t4="@import",G1="@keyframes",r4="@layer",X1=Math.abs,Ac=String.fromCharCode,gu=Object.assign;function n4(e,t){return Fe(e,0)^45?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}function Y1(e){return e.trim()}function Yt(e,t){return(e=t.exec(e))?e[0]:e}function re(e,t,r){return e.replace(t,r)}function Ci(e,t,r){return e.indexOf(t,r)}function Fe(e,t){return e.charCodeAt(t)|0}function Un(e,t,r){return e.slice(t,r)}function Wt(e){return e.length}function J1(e){return e.length}function _o(e,t){return t.push(e),e}function o4(e,t){return e.map(t).join("")}function sx(e,t){return e.filter(function(r){return!Yt(r,t)})}var Ta=1,qn=1,Z1=0,bt=0,Se=0,eo="";function Pa(e,t,r,n,o,s,i,l){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:Ta,column:qn,length:i,return:"",siblings:l}}function xr(e,t){return gu(Pa("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function fn(e){for(;e.root;)e=xr(e.root,{children:[e]});_o(e,e.siblings)}function s4(){return Se}function i4(){return Se=bt>0?Fe(eo,--bt):0,qn--,Se===10&&(qn=1,Ta--),Se}function Ot(){return Se=bt<Z1?Fe(eo,bt++):0,qn++,Se===10&&(qn=1,Ta++),Se}function Xr(){return Fe(eo,bt)}function Ei(){return bt}function Oa(e,t){return Un(eo,e,t)}function vu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function a4(e){return Ta=qn=1,Z1=Wt(eo=e),bt=0,[]}function l4(e){return eo="",e}function Zl(e){return Y1(Oa(bt-1,yu(e===91?e+2:e===40?e+1:e)))}function u4(e){for(;(Se=Xr())&&Se<33;)Ot();return vu(e)>2||vu(Se)>3?"":" "}function c4(e,t){for(;--t&&Ot()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Oa(e,Ei()+(t<6&&Xr()==32&&Ot()==32))}function yu(e){for(;Ot();)switch(Se){case e:return bt;case 34:case 39:e!==34&&e!==39&&yu(Se);break;case 40:e===41&&yu(e);break;case 92:Ot();break}return bt}function d4(e,t){for(;Ot()&&e+Se!==57;)if(e+Se===84&&Xr()===47)break;return"/*"+Oa(t,bt-1)+"*"+Ac(e===47?e:Ot())}function f4(e){for(;!vu(Xr());)Ot();return Oa(e,bt)}function x4(e){return l4(wi("",null,null,null,[""],e=a4(e),0,[0],e))}function wi(e,t,r,n,o,s,i,l,c){for(var u=0,f=0,h=i,d=0,C=0,y=0,m=1,E=1,v=1,x=0,p="",g=o,S=s,b=n,w=p;E;)switch(y=x,x=Ot()){case 40:if(y!=108&&Fe(w,h-1)==58){Ci(w+=re(Zl(x),"&","&\f"),"&\f",X1(u?l[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Zl(x);break;case 9:case 10:case 13:case 32:w+=u4(y);break;case 92:w+=c4(Ei()-1,7);continue;case 47:switch(Xr()){case 42:case 47:_o(p4(d4(Ot(),Ei()),t,r,c),c);break;default:w+="/"}break;case 123*m:l[u++]=Wt(w)*v;case 125*m:case 59:case 0:switch(x){case 0:case 125:E=0;case 59+f:v==-1&&(w=re(w,/\f/g,"")),C>0&&Wt(w)-h&&_o(C>32?ax(w+";",n,r,h-1,c):ax(re(w," ","")+";",n,r,h-2,c),c);break;case 59:w+=";";default:if(_o(b=ix(w,t,r,u,f,o,l,p,g=[],S=[],h,s),s),x===123)if(f===0)wi(w,t,b,b,g,s,h,l,S);else switch(d===99&&Fe(w,3)===110?100:d){case 100:case 108:case 109:case 115:wi(e,b,b,n&&_o(ix(e,b,b,0,0,o,l,p,o,g=[],h,S),S),o,S,h,l,n?g:S);break;default:wi(w,b,b,b,[""],S,0,l,S)}}u=f=C=0,m=v=1,p=w="",h=i;break;case 58:h=1+Wt(w),C=y;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&i4()==125)continue}switch(w+=Ac(x),x*m){case 38:v=f>0?1:(w+="\f",-1);break;case 44:l[u++]=(Wt(w)-1)*v,v=1;break;case 64:Xr()===45&&(w+=Zl(Ot())),d=Xr(),f=h=Wt(p=w+=f4(Ei())),x++;break;case 45:y===45&&Wt(w)==2&&(m=0)}}return s}function ix(e,t,r,n,o,s,i,l,c,u,f,h){for(var d=o-1,C=o===0?s:[""],y=J1(C),m=0,E=0,v=0;m<n;++m)for(var x=0,p=Un(e,d+1,d=X1(E=i[m])),g=e;x<y;++x)(g=Y1(E>0?C[x]+" "+p:re(p,/&\f/g,C[x])))&&(c[v++]=g);return Pa(e,t,r,o===0?Ra:l,c,u,f,h)}function p4(e,t,r,n){return Pa(e,t,r,K1,Ac(s4()),Un(e,2,-2),0,n)}function ax(e,t,r,n,o){return Pa(e,t,r,Bc,Un(e,0,n),Un(e,n+1,-1),n,o)}function em(e,t,r){switch(n4(e,t)){case 5103:return ue+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ue+e+e;case 4789:return qo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ue+e+qo+e+pe+e+e;case 5936:switch(Fe(e,t+11)){case 114:return ue+e+pe+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ue+e+pe+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ue+e+pe+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ue+e+pe+e+e;case 6165:return ue+e+pe+"flex-"+e+e;case 5187:return ue+e+re(e,/(\w+).+(:[^]+)/,ue+"box-$1$2"+pe+"flex-$1$2")+e;case 5443:return ue+e+pe+"flex-item-"+re(e,/flex-|-self/g,"")+(Yt(e,/flex-|baseline/)?"":pe+"grid-row-"+re(e,/flex-|-self/g,""))+e;case 4675:return ue+e+pe+"flex-line-pack"+re(e,/align-content|flex-|-self/g,"")+e;case 5548:return ue+e+pe+re(e,"shrink","negative")+e;case 5292:return ue+e+pe+re(e,"basis","preferred-size")+e;case 6060:return ue+"box-"+re(e,"-grow","")+ue+e+pe+re(e,"grow","positive")+e;case 4554:return ue+re(e,/([^-])(transform)/g,"$1"+ue+"$2")+e;case 6187:return re(re(re(e,/(zoom-|grab)/,ue+"$1"),/(image-set)/,ue+"$1"),e,"")+e;case 5495:case 3959:return re(e,/(image-set\([^]*)/,ue+"$1$`$1");case 4968:return re(re(e,/(.+:)(flex-)?(.*)/,ue+"box-pack:$3"+pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ue+e+e;case 4200:if(!Yt(e,/flex-|baseline/))return pe+"grid-column-align"+Un(e,t)+e;break;case 2592:case 3360:return pe+re(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,Yt(n.props,/grid-\w+-end/)})?~Ci(e+(r=r[t].value),"span",0)?e:pe+re(e,"-start","")+e+pe+"grid-row-span:"+(~Ci(r,"span",0)?Yt(r,/\d+/):+Yt(r,/\d+/)-+Yt(e,/\d+/))+";":pe+re(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Yt(n.props,/grid-\w+-start/)})?e:pe+re(re(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return re(e,/(.+)-inline(.+)/,ue+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wt(e)-1-t>6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+ue+"$2-$3$1"+qo+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ci(e,"stretch",0)?em(re(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return re(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,s,i,l,c,u){return pe+o+":"+s+u+(i?pe+o+"-span:"+(l?c:+c-+s)+u:"")+e});case 4949:if(Fe(e,t+6)===121)return re(e,":",":"+ue)+e;break;case 6444:switch(Fe(e,Fe(e,14)===45?18:11)){case 120:return re(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ue+(Fe(e,14)===45?"inline-":"")+"box$3$1"+ue+"$2$3$1"+pe+"$2box$3")+e;case 100:return re(e,":",":"+pe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return re(e,"scroll-","scroll-snap-")+e}return e}function ta(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function h4(e,t,r,n){switch(e.type){case r4:if(e.children.length)break;case t4:case Bc:return e.return=e.return||e.value;case K1:return"";case G1:return e.return=e.value+"{"+ta(e.children,n)+"}";case Ra:if(!Wt(e.value=e.props.join(",")))return""}return Wt(r=ta(e.children,n))?e.return=e.value+"{"+r+"}":""}function m4(e){var t=J1(e);return function(r,n,o,s){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,s)||"";return i}}function g4(e){return function(t){t.root||(t=t.return)&&e(t)}}function v4(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Bc:e.return=em(e.value,e.length,r);return;case G1:return ta([xr(e,{value:re(e.value,"@","@"+ue)})],n);case Ra:if(e.length)return o4(r=e.props,function(o){switch(Yt(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":fn(xr(e,{props:[re(o,/:(read-\w+)/,":"+qo+"$1")]})),fn(xr(e,{props:[o]})),gu(e,{props:sx(r,n)});break;case"::placeholder":fn(xr(e,{props:[re(o,/:(plac\w+)/,":"+ue+"input-$1")]})),fn(xr(e,{props:[re(o,/:(plac\w+)/,":"+qo+"$1")]})),fn(xr(e,{props:[re(o,/:(plac\w+)/,pe+"input-$1")]})),fn(xr(e,{props:[o]})),gu(e,{props:sx(r,n)});break}return""})}}var y4={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lt={},Vn=typeof process<"u"&<!==void 0&&(lt.REACT_APP_SC_ATTR||lt.SC_ATTR)||"data-styled",tm="active",rm="data-styled-version",La="6.1.18",Fc=`/*!sc*/
|
|
72
|
-
`,ra=typeof window<"u"&&typeof document<"u",C4=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&<!==void 0&<.REACT_APP_SC_DISABLE_SPEEDY!==void 0&<.REACT_APP_SC_DISABLE_SPEEDY!==""?lt.REACT_APP_SC_DISABLE_SPEEDY!=="false"&<.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&<!==void 0&<.SC_DISABLE_SPEEDY!==void 0&<.SC_DISABLE_SPEEDY!==""&<.SC_DISABLE_SPEEDY!=="false"&<.SC_DISABLE_SPEEDY),E4={},Na=Object.freeze([]),Qn=Object.freeze({});function nm(e,t,r){return r===void 0&&(r=Qn),e.theme!==r.theme&&e.theme||t||r.theme}var om=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),w4=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,S4=/(^-|-$)/g;function lx(e){return e.replace(w4,"-").replace(S4,"")}var b4=/(a)(d)/gi,Hs=52,ux=function(e){return String.fromCharCode(e+(e>25?39:97))};function Cu(e){var t,r="";for(t=Math.abs(e);t>Hs;t=t/Hs|0)r=ux(t%Hs)+r;return(ux(t%Hs)+r).replace(b4,"$1-$2")}var e0,sm=5381,Fn=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},im=function(e){return Fn(sm,e)};function Dc(e){return Cu(im(e)>>>0)}function j4(e){return e.displayName||e.name||"Component"}function t0(e){return typeof e=="string"&&!0}var am=typeof Symbol=="function"&&Symbol.for,lm=am?Symbol.for("react.memo"):60115,k4=am?Symbol.for("react.forward_ref"):60112,B4={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A4={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},um={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F4=((e0={})[k4]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e0[lm]=um,e0);function cx(e){return("type"in(t=e)&&t.type.$$typeof)===lm?um:"$$typeof"in e?F4[e.$$typeof]:B4;var t}var D4=Object.defineProperty,_4=Object.getOwnPropertyNames,dx=Object.getOwnPropertySymbols,R4=Object.getOwnPropertyDescriptor,T4=Object.getPrototypeOf,fx=Object.prototype;function cm(e,t,r){if(typeof t!="string"){if(fx){var n=T4(t);n&&n!==fx&&cm(e,n,r)}var o=_4(t);dx&&(o=o.concat(dx(t)));for(var s=cx(e),i=cx(t),l=0;l<o.length;++l){var c=o[l];if(!(c in A4||r&&r[c]||i&&c in i||s&&c in s)){var u=R4(t,c);try{D4(e,c,u)}catch{}}}}return e}function nn(e){return typeof e=="function"}function _c(e){return typeof e=="object"&&"styledComponentId"in e}function Vr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function na(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function ds(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Eu(e,t,r){if(r===void 0&&(r=!1),!r&&!ds(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Eu(e[n],t[n]);else if(ds(t))for(var n in t)e[n]=Eu(e[n],t[n]);return e}function Rc(e,t){Object.defineProperty(e,"toString",{value:t})}function _r(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var P4=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,s=o;t>=s;)if((s<<=1)<0)throw _r(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var l=this.indexOfGroup(t+1),c=(i=0,r.length);i<c;i++)this.tag.insertRule(l,r[i])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var s=n;s<o;s++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),s=o+n,i=o;i<s;i++)r+="".concat(this.tag.getRule(i)).concat(Fc);return r},e}(),Si=new Map,oa=new Map,bi=1,Ws=function(e){if(Si.has(e))return Si.get(e);for(;oa.has(bi);)bi++;var t=bi++;return Si.set(e,t),oa.set(t,e),t},O4=function(e,t){bi=t+1,Si.set(e,t),oa.set(t,e)},L4="style[".concat(Vn,"][").concat(rm,'="').concat(La,'"]'),N4=new RegExp("^".concat(Vn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),z4=function(e,t,r){for(var n,o=r.split(","),s=0,i=o.length;s<i;s++)(n=o[s])&&e.registerName(t,n)},I4=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Fc),o=[],s=0,i=n.length;s<i;s++){var l=n[s].trim();if(l){var c=l.match(N4);if(c){var u=0|parseInt(c[1],10),f=c[2];u!==0&&(O4(f,u),z4(e,f,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},xx=function(e){for(var t=document.querySelectorAll(L4),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Vn)!==tm&&(I4(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function M4(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var dm=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(l){var c=Array.from(l.querySelectorAll("style[".concat(Vn,"]")));return c[c.length-1]}(r),s=o!==void 0?o.nextSibling:null;n.setAttribute(Vn,tm),n.setAttribute(rm,La);var i=M4();return i&&n.setAttribute("nonce",i),r.insertBefore(n,s),n},$4=function(){function e(t){this.element=dm(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,s=n.length;o<s;o++){var i=n[o];if(i.ownerNode===r)return i}throw _r(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),H4=function(){function e(t){this.element=dm(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),W4=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),px=ra,U4={isServer:!ra,useCSSOMInjection:!C4},sa=function(){function e(t,r,n){t===void 0&&(t=Qn),r===void 0&&(r={});var o=this;this.options=_e(_e({},U4),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&ra&&px&&(px=!1,xx(this)),Rc(this,function(){return function(s){for(var i=s.getTag(),l=i.length,c="",u=function(h){var d=function(v){return oa.get(v)}(h);if(d===void 0)return"continue";var C=s.names.get(d),y=i.getGroup(h);if(C===void 0||!C.size||y.length===0)return"continue";var m="".concat(Vn,".g").concat(h,'[id="').concat(d,'"]'),E="";C!==void 0&&C.forEach(function(v){v.length>0&&(E+="".concat(v,","))}),c+="".concat(y).concat(m,'{content:"').concat(E,'"}').concat(Fc)},f=0;f<l;f++)u(f);return c}(o)})}return e.registerId=function(t){return Ws(t)},e.prototype.rehydrate=function(){!this.server&&ra&&xx(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(_e(_e({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new W4(o):n?new $4(o):new H4(o)}(this.options),new P4(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Ws(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Ws(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ws(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),q4=/&/g,V4=/^\s*\/\/.*$/gm;function fm(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=fm(r.children,t)),r})}function Q4(e){var t,r,n,o=Qn,s=o.options,i=s===void 0?Qn:s,l=o.plugins,c=l===void 0?Na:l,u=function(d,C,y){return y.startsWith(r)&&y.endsWith(r)&&y.replaceAll(r,"").length>0?".".concat(t):d},f=c.slice();f.push(function(d){d.type===Ra&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(q4,r).replace(n,u))}),i.prefix&&f.push(v4),f.push(h4);var h=function(d,C,y,m){C===void 0&&(C=""),y===void 0&&(y=""),m===void 0&&(m="&"),t=m,r=C,n=new RegExp("\\".concat(r,"\\b"),"g");var E=d.replace(V4,""),v=x4(y||C?"".concat(y," ").concat(C," { ").concat(E," }"):E);i.namespace&&(v=fm(v,i.namespace));var x=[];return ta(v,m4(f.concat(g4(function(p){return x.push(p)})))),x};return h.hash=c.length?c.reduce(function(d,C){return C.name||_r(15),Fn(d,C.name)},sm).toString():"",h}var K4=new sa,wu=Q4(),xm=Ze.createContext({shouldForwardProp:void 0,styleSheet:K4,stylis:wu});xm.Consumer;Ze.createContext(void 0);function Su(){return z.useContext(xm)}var pm=function(){function e(t,r){var n=this;this.inject=function(o,s){s===void 0&&(s=wu);var i=n.name+s.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,s(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Rc(this,function(){throw _r(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=wu),this.name+t.hash},e}(),G4=function(e){return e>="A"&&e<="Z"};function hx(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;G4(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var hm=function(e){return e==null||e===!1||e===""},mm=function(e){var t,r,n=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!hm(s)&&(Array.isArray(s)&&s.isCss||nn(s)?n.push("".concat(hx(o),":"),s,";"):ds(s)?n.push.apply(n,Wn(Wn(["".concat(o," {")],mm(s),!1),["}"],!1)):n.push("".concat(hx(o),": ").concat((t=o,(r=s)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in y4||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ar(e,t,r,n){if(hm(e))return[];if(_c(e))return[".".concat(e.styledComponentId)];if(nn(e)){if(!nn(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return Ar(o,t,r,n)}var s;return e instanceof pm?r?(e.inject(r,n),[e.getName(n)]):[e]:ds(e)?mm(e):Array.isArray(e)?Array.prototype.concat.apply(Na,e.map(function(i){return Ar(i,t,r,n)})):[e.toString()]}function gm(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(nn(r)&&!_c(r))return!1}return!0}var X4=im(La),Y4=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&gm(t),this.componentId=r,this.baseHash=Fn(X4,r),this.baseStyle=n,sa.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Vr(o,this.staticRulesId);else{var s=na(Ar(this.rules,t,r,n)),i=Cu(Fn(this.baseHash,s)>>>0);if(!r.hasNameForId(this.componentId,i)){var l=n(s,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,l)}o=Vr(o,i),this.staticRulesId=i}else{for(var c=Fn(this.baseHash,n.hash),u="",f=0;f<this.rules.length;f++){var h=this.rules[f];if(typeof h=="string")u+=h;else if(h){var d=na(Ar(h,t,r,n));c=Fn(c,d+f),u+=d}}if(u){var C=Cu(c>>>0);r.hasNameForId(this.componentId,C)||r.insertRules(this.componentId,C,n(u,".".concat(C),void 0,this.componentId)),o=Vr(o,C)}}return o},e}(),Kn=Ze.createContext(void 0);Kn.Consumer;function za(){var e=z.useContext(Kn);if(!e)throw _r(18);return e}function J4(e){var t=Ze.useContext(Kn),r=z.useMemo(function(){return function(n,o){if(!n)throw _r(14);if(nn(n)){var s=n(o);return s}if(Array.isArray(n)||typeof n!="object")throw _r(8);return o?_e(_e({},o),n):n}(e.theme,t)},[e.theme,t]);return e.children?Ze.createElement(Kn.Provider,{value:r},e.children):null}var r0={};function Z4(e,t,r){var n=_c(e),o=e,s=!t0(e),i=t.attrs,l=i===void 0?Na:i,c=t.componentId,u=c===void 0?function(g,S){var b=typeof g!="string"?"sc":lx(g);r0[b]=(r0[b]||0)+1;var w="".concat(b,"-").concat(Dc(La+b+r0[b]));return S?"".concat(S,"-").concat(w):w}(t.displayName,t.parentComponentId):c,f=t.displayName,h=f===void 0?function(g){return t0(g)?"styled.".concat(g):"Styled(".concat(j4(g),")")}(e):f,d=t.displayName&&t.componentId?"".concat(lx(t.displayName),"-").concat(t.componentId):t.componentId||u,C=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,y=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;y=function(g,S){return m(g,S)&&E(g,S)}}else y=m}var v=new Y4(r,d,n?o.componentStyle:void 0);function x(g,S){return function(b,w,j){var D=b.attrs,k=b.componentStyle,A=b.defaultProps,N=b.foldedComponentIds,F=b.styledComponentId,$=b.target,K=Ze.useContext(Kn),X=Su(),ne=b.shouldForwardProp||X.shouldForwardProp,H=nm(w,K,A)||Qn,U=function(te,G,le){for(var J,Pe=_e(_e({},G),{className:void 0,theme:le}),It=0;It<te.length;It+=1){var ar=nn(J=te[It])?J(Pe):J;for(var Ye in ar)Pe[Ye]=Ye==="className"?Vr(Pe[Ye],ar[Ye]):Ye==="style"?_e(_e({},Pe[Ye]),ar[Ye]):ar[Ye]}return G.className&&(Pe.className=Vr(Pe.className,G.className)),Pe}(D,w,H),V=U.as||$,P={};for(var B in U)U[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&U.theme===H||(B==="forwardedAs"?P.as=U.forwardedAs:ne&&!ne(B,V)||(P[B]=U[B]));var O=function(te,G){var le=Su(),J=te.generateAndInjectStyles(G,le.styleSheet,le.stylis);return J}(k,U),_=Vr(N,F);return O&&(_+=" "+O),U.className&&(_+=" "+U.className),P[t0(V)&&!om.has(V)?"class":"className"]=_,j&&(P.ref=j),z.createElement(V,P)}(p,g,S)}x.displayName=h;var p=Ze.forwardRef(x);return p.attrs=C,p.componentStyle=v,p.displayName=h,p.shouldForwardProp=y,p.foldedComponentIds=n?Vr(o.foldedComponentIds,o.styledComponentId):"",p.styledComponentId=d,p.target=n?o.target:e,Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=n?function(S){for(var b=[],w=1;w<arguments.length;w++)b[w-1]=arguments[w];for(var j=0,D=b;j<D.length;j++)Eu(S,D[j],!0);return S}({},o.defaultProps,g):g}}),Rc(p,function(){return".".concat(p.styledComponentId)}),s&&cm(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),p}function mx(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var gx=function(e){return Object.assign(e,{isCss:!0})};function Tc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(nn(e)||ds(e))return gx(Ar(mx(Na,Wn([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Ar(n):gx(Ar(mx(n,t)))}function bu(e,t,r){if(r===void 0&&(r=Qn),!t)throw _r(1,t);var n=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,r,Tc.apply(void 0,Wn([o],s,!1)))};return n.attrs=function(o){return bu(e,t,_e(_e({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return bu(e,t,_e(_e({},r),o))},n}var vm=function(e){return bu(Z4,e)},fe=vm;om.forEach(function(e){fe[e]=vm(e)});var e8=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=gm(t),sa.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var s=o(na(Ar(this.rules,r,n,o)),""),i=this.componentId+t;n.insertRules(i,i,s)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&sa.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e}();function t8(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Tc.apply(void 0,Wn([e],t,!1)),o="sc-global-".concat(Dc(JSON.stringify(n))),s=new e8(n,o),i=function(c){var u=Su(),f=Ze.useContext(Kn),h=Ze.useRef(u.styleSheet.allocateGSInstance(o)).current;return u.styleSheet.server&&l(h,c,u.styleSheet,f,u.stylis),Ze.useLayoutEffect(function(){if(!u.styleSheet.server)return l(h,c,u.styleSheet,f,u.stylis),function(){return s.removeStyles(h,u.styleSheet)}},[h,c,u.styleSheet,f,u.stylis]),null};function l(c,u,f,h,d){if(s.isStatic)s.renderStyles(c,E4,f,d);else{var C=_e(_e({},u),{theme:nm(u,h,i.defaultProps)});s.renderStyles(c,C,f,d)}}return Ze.memo(i)}function ym(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=na(Tc.apply(void 0,Wn([e],t,!1))),o=Dc(n);return new pm(o,n)}function Pc(e){let t="";for(let r in e){if(!e[r])continue;const n=r.replaceAll(/([A-Z])/g,"-$1").toLowerCase(),o=e[r];typeof o=="object"?t+=`${n}{
|
|
73
|
-
`+Pc(o)+`};
|
|
74
|
-
`:t+=`${n}: ${o};
|
|
75
|
-
`}return t}const r8=ym`
|
|
53
|
+
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function sa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var g1=typeof WeakMap=="function"?WeakMap:Map;function xm(e,t,n){n=tn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ui||(Ui=!0,wu=r),cu(e,t)},n}function vm(e,t,n){n=tn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){cu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){cu(e,t),typeof r!="function"&&(Cn===null?Cn=new Set([this]):Cn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Kd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new g1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=P1.bind(null,e,t,n),t.then(e,e))}function Gd(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 Jd(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=tn(-1,1),t.tag=2,En(n,t,1))),n.lanes|=1),e)}var x1=ln.ReactCurrentOwner,it=!1;function et(e,t,n,r){t.child=e===null?Qh(t,null,n,r):Br(t,e.child,n,r)}function Yd(e,t,n,r,o){n=n.render;var s=t.ref;return Mr(t,o),r=Sc(e,t,n,r,s,o),n=jc(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sn(e,t,o)):(Se&&n&&uc(t),t.flags|=1,et(e,t,r,o),t.child)}function Xd(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Oc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,ym(e,t,s,r,o)):(e=ai(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:Yo,n(l,r)&&e.ref===t.ref)return sn(e,t,o)}return t.flags|=1,e=Rn(s,r),e.ref=t.ref,e.return=t,t.child=e}function ym(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Yo(s,r)&&e.ref===t.ref)if(it=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(it=!0);else return t.lanes=e.lanes,sn(e,t,o)}return du(e,t,n,r,o)}function wm(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Tr,pt),pt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Tr,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ge(Tr,pt),pt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ge(Tr,pt),pt|=r;return et(e,t,o,n),t.child}function Sm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function du(e,t,n,r,o){var s=at(n)?tr:Ye.current;return s=Dr(t,s),Mr(t,o),n=Sc(e,t,n,r,s,o),r=jc(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sn(e,t,o)):(Se&&r&&uc(t),t.flags|=1,et(e,t,n,o),t.child)}function Zd(e,t,n,r,o){if(at(n)){var s=!0;Oi(t)}else s=!1;if(Mr(t,o),t.stateNode===null)si(e,t),gm(t,n,r),uu(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ct(c):(c=at(n)?tr:Ye.current,c=Dr(t,c));var p=n.getDerivedStateFromProps,d=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Qd(t,l,r,c),mn=!1;var f=t.memoizedState;l.state=f,Ii(t,r,l,o),u=t.memoizedState,a!==r||f!==u||lt.current||mn?(typeof p=="function"&&(au(t,n,p,r),u=t.memoizedState),(a=mn||qd(t,n,a,r,f,u,c))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=c,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Gh(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Ot(t.type,a),l.props=c,d=t.pendingProps,f=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ct(u):(u=at(n)?tr:Ye.current,u=Dr(t,u));var b=n.getDerivedStateFromProps;(p=typeof b=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==d||f!==u)&&Qd(t,l,r,u),mn=!1,f=t.memoizedState,l.state=f,Ii(t,r,l,o);var k=t.memoizedState;a!==d||f!==k||lt.current||mn?(typeof b=="function"&&(au(t,n,b,r),k=t.memoizedState),(c=mn||qd(t,n,c,r,f,k,u)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,k,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,k,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),l.props=r,l.state=k,l.context=u,r=c):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return fu(e,t,n,r,s,o)}function fu(e,t,n,r,o,s){Sm(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Dd(t,n,!1),sn(e,t,s);r=t.stateNode,x1.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Br(t,e.child,null,s),t.child=Br(t,null,a,s)):et(e,t,a,s),t.memoizedState=r.state,o&&Dd(t,n,!0),t.child}function jm(e){var t=e.stateNode;t.pendingContext?Id(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Id(e,t.context,!1),xc(e,t.containerInfo)}function ef(e,t,n,r,o){return $r(),dc(o),t.flags|=256,et(e,t,n,r),t.child}var pu={dehydrated:null,treeContext:null,retryLane:0};function hu(e){return{baseLanes:e,cachePool:null,transitions:null}}function km(e,t,n){var r=t.pendingProps,o=je.current,s=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(je,o&1),e===null)return iu(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):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=hl(l,r,0,null),e=Yn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=hu(n),t.memoizedState=pu,e):Ec(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return v1(e,t,l,r,a,o,n);if(s){s=r.fallback,l=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Rn(o,u),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Rn(a,s):(s=Yn(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?hu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=pu,r}return s=e.child,e=s.sibling,r=Rn(s,{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 Ec(e,t){return t=hl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ps(e,t,n,r){return r!==null&&dc(r),Br(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function v1(e,t,n,r,o,s,l){if(n)return t.flags&256?(t.flags&=-257,r=sa(Error(Q(422))),Ps(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=hl({mode:"visible",children:r.children},o,0,null),s=Yn(s,o,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Br(t,e.child,null,l),t.child.memoizedState=hu(l),t.memoizedState=pu,s);if(!(t.mode&1))return Ps(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(Q(419)),r=sa(s,r,void 0),Ps(e,t,l,r)}if(a=(l&e.childLanes)!==0,it||a){if(r=ze,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,on(e,o),Ft(r,e,o,-1))}return Lc(),r=sa(Error(Q(421))),Ps(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=L1.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ht=bn(o.nextSibling),mt=t,Se=!0,Mt=null,e!==null&&(jt[kt++]=Zt,jt[kt++]=en,jt[kt++]=nr,Zt=e.id,en=e.overflow,nr=t),t=Ec(t,r.children),t.flags|=4096,t)}function tf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lu(e.return,t,n)}function ia(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function bm(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(et(e,t,r.children,n),r=je.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&&tf(e,n,t);else if(e.tag===19)tf(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(ge(je,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Di(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ia(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Di(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ia(t,!0,n,null,s);break;case"together":ia(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function si(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,n=Rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function y1(e,t,n){switch(t.tag){case 3:jm(t),$r();break;case 5:Jh(t);break;case 1:at(t.type)&&Oi(t);break;case 4:xc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(Ai,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?km(e,t,n):(ge(je,je.current&1),e=sn(e,t,n),e!==null?e.sibling:null);ge(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,wm(e,t,n)}return sn(e,t,n)}var Em,mu,Cm,Tm;Em=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}};mu=function(){};Cm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,qn(Qt.current);var s=null;switch(n){case"input":o=Ia(e,o),r=Ia(e,r),s=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),s=[];break;case"textarea":o=Ba(e,o),r=Ba(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Pi)}Ua(n,r);var l;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ho.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(s||(s=[]),s.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ho.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&ve("scroll",e),s||a===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Tm=function(e,t,n,r){n!==r&&(t.flags|=4)};function co(e,t){if(!Se)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 Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function w1(e,t,n){var r=t.pendingProps;switch(cc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return at(t.type)&&Li(),Ke(t),null;case 3:return r=t.stateNode,zr(),we(lt),we(Ye),yc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Rs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mt!==null&&(ku(Mt),Mt=null))),mu(e,t),Ke(t),null;case 5:vc(t);var o=qn(ns.current);if(n=t.type,e!==null&&t.stateNode!=null)Cm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Q(166));return Ke(t),null}if(e=qn(Qt.current),Rs(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Vt]=t,r[es]=s,e=(t.mode&1)!==0,n){case"dialog":ve("cancel",r),ve("close",r);break;case"iframe":case"object":case"embed":ve("load",r);break;case"video":case"audio":for(o=0;o<To.length;o++)ve(To[o],r);break;case"source":ve("error",r);break;case"img":case"image":case"link":ve("error",r),ve("load",r);break;case"details":ve("toggle",r);break;case"input":cd(r,s),ve("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ve("invalid",r);break;case"textarea":fd(r,s),ve("invalid",r)}Ua(n,s),o=null;for(var l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ts(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ts(r.textContent,a,e),o=["children",""+a]):Ho.hasOwnProperty(l)&&a!=null&&l==="onScroll"&&ve("scroll",r)}switch(n){case"input":ys(r),dd(r,s,!0);break;case"textarea":ys(r),pd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Pi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=th(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Vt]=t,e[es]=r,Em(e,t,!1,!1),t.stateNode=e;e:{switch(l=Wa(n,r),n){case"dialog":ve("cancel",e),ve("close",e),o=r;break;case"iframe":case"object":case"embed":ve("load",e),o=r;break;case"video":case"audio":for(o=0;o<To.length;o++)ve(To[o],e);o=r;break;case"source":ve("error",e),o=r;break;case"img":case"image":case"link":ve("error",e),ve("load",e),o=r;break;case"details":ve("toggle",e),o=r;break;case"input":cd(e,r),o=Ia(e,r),ve("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),ve("invalid",e);break;case"textarea":fd(e,r),o=Ba(e,r),ve("invalid",e);break;default:o=r}Ua(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?oh(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&nh(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Vo(e,u):typeof u=="number"&&Vo(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ho.hasOwnProperty(s)?u!=null&&s==="onScroll"&&ve("scroll",e):u!=null&&Gu(e,s,u,l))}switch(n){case"input":ys(e),dd(e,r,!1);break;case"textarea":ys(e),pd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Pr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Pr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Pi)}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 Ke(t),null;case 6:if(e&&t.stateNode!=null)Tm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Q(166));if(n=qn(ns.current),qn(Qt.current),Rs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vt]=t,(s=r.nodeValue!==n)&&(e=mt,e!==null))switch(e.tag){case 3:Ts(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ts(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vt]=t,t.stateNode=r}return Ke(t),null;case 13:if(we(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&ht!==null&&t.mode&1&&!(t.flags&128))Vh(),$r(),t.flags|=98560,s=!1;else if(s=Rs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(Q(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Q(317));s[Vt]=t}else $r(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),s=!1}else Mt!==null&&(ku(Mt),Mt=null),s=!0;if(!s)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||je.current&1?Fe===0&&(Fe=3):Lc())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return zr(),mu(e,t),e===null&&Xo(t.stateNode.containerInfo),Ke(t),null;case 10:return hc(t.type._context),Ke(t),null;case 17:return at(t.type)&&Li(),Ke(t),null;case 19:if(we(je),s=t.memoizedState,s===null)return Ke(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)co(s,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Di(e),l!==null){for(t.flags|=128,co(s,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(je,je.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ce()>Wr&&(t.flags|=128,r=!0,co(s,!1),t.lanes=4194304)}else{if(!r)if(e=Di(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),co(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!Se)return Ke(t),null}else 2*Ce()-s.renderingStartTime>Wr&&n!==1073741824&&(t.flags|=128,r=!0,co(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ce(),t.sibling=null,n=je.current,ge(je,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return Pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function S1(e,t){switch(cc(t),t.tag){case 1:return at(t.type)&&Li(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zr(),we(lt),we(Ye),yc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vc(t),null;case 13:if(we(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));$r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(je),null;case 4:return zr(),null;case 10:return hc(t.type._context),null;case 22:case 23:return Pc(),null;case 24:return null;default:return null}}var Ls=!1,Ge=!1,j1=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function gu(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var nf=!1;function k1(e,t){if(Za=Ti,e=Oh(),ac(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 o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,c=0,p=0,d=e,f=null;t:for(;;){for(var b;d!==n||o!==0&&d.nodeType!==3||(a=l+o),d!==s||r!==0&&d.nodeType!==3||(u=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(b=d.firstChild)!==null;)f=d,d=b;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=l),f===s&&++p===r&&(u=l),(b=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=b}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(eu={focusedElem:e,selectionRange:n},Ti=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var v=k.memoizedProps,C=k.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ot(t.type,v),C);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(w){Ee(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return k=nf,nf=!1,k}function $o(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&gu(t,n,s)}o=o.next}while(o!==r)}}function fl(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 xu(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 Rm(e){var t=e.alternate;t!==null&&(e.alternate=null,Rm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[es],delete t[ru],delete t[s1],delete t[i1])),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 _m(e){return e.tag===5||e.tag===3||e.tag===4}function rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(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 vu(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=Pi));else if(r!==4&&(e=e.child,e!==null))for(vu(e,t,n),e=e.sibling;e!==null;)vu(e,t,n),e=e.sibling}function yu(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(yu(e,t,n),e=e.sibling;e!==null;)yu(e,t,n),e=e.sibling}var We=null,Nt=!1;function an(e,t,n){for(n=n.child;n!==null;)Pm(e,t,n),n=n.sibling}function Pm(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(ol,n)}catch{}switch(n.tag){case 5:Ge||Cr(n,t);case 6:var r=We,o=Nt;We=null,an(e,t,n),We=r,Nt=o,We!==null&&(Nt?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(Nt?(e=We,n=n.stateNode,e.nodeType===8?Zl(e.parentNode,n):e.nodeType===1&&Zl(e,n),Go(e)):Zl(We,n.stateNode));break;case 4:r=We,o=Nt,We=n.stateNode.containerInfo,Nt=!0,an(e,t,n),We=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&gu(n,t,l),o=o.next}while(o!==r)}an(e,t,n);break;case 1:if(!Ge&&(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ee(n,t,a)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,an(e,t,n),Ge=r):an(e,t,n);break;default:an(e,t,n)}}function of(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new j1),t.forEach(function(r){var o=O1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,l=t,a=l;e:for(;a!==null;){switch(a.tag){case 5:We=a.stateNode,Nt=!1;break e;case 3:We=a.stateNode.containerInfo,Nt=!0;break e;case 4:We=a.stateNode.containerInfo,Nt=!0;break e}a=a.return}if(We===null)throw Error(Q(160));Pm(s,l,o),We=null,Nt=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(c){Ee(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lm(t,e),t=t.sibling}function Lm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),zt(e),r&4){try{$o(3,e,e.return),fl(3,e)}catch(v){Ee(e,e.return,v)}try{$o(5,e,e.return)}catch(v){Ee(e,e.return,v)}}break;case 1:_t(t,e),zt(e),r&512&&n!==null&&Cr(n,n.return);break;case 5:if(_t(t,e),zt(e),r&512&&n!==null&&Cr(n,n.return),e.flags&32){var o=e.stateNode;try{Vo(o,"")}catch(v){Ee(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Zp(o,s),Wa(a,l);var c=Wa(a,s);for(l=0;l<u.length;l+=2){var p=u[l],d=u[l+1];p==="style"?oh(o,d):p==="dangerouslySetInnerHTML"?nh(o,d):p==="children"?Vo(o,d):Gu(o,p,d,c)}switch(a){case"input":Da(o,s);break;case"textarea":eh(o,s);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var b=s.value;b!=null?Pr(o,!!s.multiple,b,!1):f!==!!s.multiple&&(s.defaultValue!=null?Pr(o,!!s.multiple,s.defaultValue,!0):Pr(o,!!s.multiple,s.multiple?[]:"",!1))}o[es]=s}catch(v){Ee(e,e.return,v)}}break;case 6:if(_t(t,e),zt(e),r&4){if(e.stateNode===null)throw Error(Q(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(v){Ee(e,e.return,v)}}break;case 3:if(_t(t,e),zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Go(t.containerInfo)}catch(v){Ee(e,e.return,v)}break;case 4:_t(t,e),zt(e);break;case 13:_t(t,e),zt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Rc=Ce())),r&4&&of(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Ge=(c=Ge)||p,_t(t,e),Ge=c):_t(t,e),zt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!p&&e.mode&1)for(Z=e,p=e.child;p!==null;){for(d=Z=p;Z!==null;){switch(f=Z,b=f.child,f.tag){case 0:case 11:case 14:case 15:$o(4,f,f.return);break;case 1:Cr(f,f.return);var k=f.stateNode;if(typeof k.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(v){Ee(r,n,v)}}break;case 5:Cr(f,f.return);break;case 22:if(f.memoizedState!==null){lf(d);continue}}b!==null?(b.return=f,Z=b):lf(d)}p=p.sibling}e:for(p=null,d=e;;){if(d.tag===5){if(p===null){p=d;try{o=d.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,u=d.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=rh("display",l))}catch(v){Ee(e,e.return,v)}}}else if(d.tag===6){if(p===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){Ee(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:_t(t,e),zt(e),r&4&&of(e);break;case 21:break;default:_t(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_m(n)){var r=n;break e}n=n.return}throw Error(Q(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Vo(o,""),r.flags&=-33);var s=rf(e);yu(e,s,o);break;case 3:case 4:var l=r.stateNode.containerInfo,a=rf(e);vu(e,a,l);break;default:throw Error(Q(161))}}catch(u){Ee(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function b1(e,t,n){Z=e,Om(e)}function Om(e,t,n){for(var r=(e.mode&1)!==0;Z!==null;){var o=Z,s=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Ls;if(!l){var a=o.alternate,u=a!==null&&a.memoizedState!==null||Ge;a=Ls;var c=Ge;if(Ls=l,(Ge=u)&&!c)for(Z=o;Z!==null;)l=Z,u=l.child,l.tag===22&&l.memoizedState!==null?af(o):u!==null?(u.return=l,Z=u):af(o);for(;s!==null;)Z=s,Om(s),s=s.sibling;Z=o,Ls=a,Ge=c}sf(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,Z=s):sf(e)}}function sf(e){for(;Z!==null;){var t=Z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ge||fl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ge)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ot(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Wd(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Wd(t,l,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 p=c.memoizedState;if(p!==null){var d=p.dehydrated;d!==null&&Go(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}Ge||t.flags&512&&xu(t)}catch(f){Ee(t,t.return,f)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function lf(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function af(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{fl(4,t)}catch(u){Ee(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(u){Ee(t,o,u)}}var s=t.return;try{xu(t)}catch(u){Ee(t,s,u)}break;case 5:var l=t.return;try{xu(t)}catch(u){Ee(t,l,u)}}}catch(u){Ee(t,t.return,u)}if(t===e){Z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Z=a;break}Z=t.return}}var E1=Math.ceil,zi=ln.ReactCurrentDispatcher,Cc=ln.ReactCurrentOwner,Et=ln.ReactCurrentBatchConfig,fe=0,ze=null,_e=null,Ve=0,pt=0,Tr=An(0),Fe=0,is=null,or=0,pl=0,Tc=0,Bo=null,ot=null,Rc=0,Wr=1/0,Jt=null,Ui=!1,wu=null,Cn=null,Os=!1,wn=null,Wi=0,zo=0,Su=null,ii=-1,li=0;function tt(){return fe&6?Ce():ii!==-1?ii:ii=Ce()}function Tn(e){return e.mode&1?fe&2&&Ve!==0?Ve&-Ve:a1.transition!==null?(li===0&&(li=gh()),li):(e=he,e!==0||(e=window.event,e=e===void 0?16:kh(e.type)),e):1}function Ft(e,t,n,r){if(50<zo)throw zo=0,Su=null,Error(Q(185));cs(e,n,r),(!(fe&2)||e!==ze)&&(e===ze&&(!(fe&2)&&(pl|=n),Fe===4&&xn(e,Ve)),ut(e,r),n===1&&fe===0&&!(t.mode&1)&&(Wr=Ce()+500,ul&&Fn()))}function ut(e,t){var n=e.callbackNode;a0(e,t);var r=Ci(e,e===ze?Ve:0);if(r===0)n!==null&&gd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gd(n),t===1)e.tag===0?l1(uf.bind(null,e)):Uh(uf.bind(null,e)),r1(function(){!(fe&6)&&Fn()}),n=null;else{switch(xh(r)){case 1:n=ec;break;case 4:n=hh;break;case 16:n=Ei;break;case 536870912:n=mh;break;default:n=Ei}n=Bm(n,Nm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Nm(e,t){if(ii=-1,li=0,fe&6)throw Error(Q(327));var n=e.callbackNode;if(Ar()&&e.callbackNode!==n)return null;var r=Ci(e,e===ze?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Hi(e,r);else{t=r;var o=fe;fe|=2;var s=Am();(ze!==e||Ve!==t)&&(Jt=null,Wr=Ce()+500,Jn(e,t));do try{R1();break}catch(a){Mm(e,a)}while(!0);pc(),zi.current=s,fe=o,_e!==null?t=0:(ze=null,Ve=0,t=Fe)}if(t!==0){if(t===2&&(o=Ka(e),o!==0&&(r=o,t=ju(e,o))),t===1)throw n=is,Jn(e,0),xn(e,r),ut(e,Ce()),n;if(t===6)xn(e,r);else{if(o=e.current.alternate,!(r&30)&&!C1(o)&&(t=Hi(e,r),t===2&&(s=Ka(e),s!==0&&(r=s,t=ju(e,s))),t===1))throw n=is,Jn(e,0),xn(e,r),ut(e,Ce()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Q(345));case 2:Un(e,ot,Jt);break;case 3:if(xn(e,r),(r&130023424)===r&&(t=Rc+500-Ce(),10<t)){if(Ci(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=nu(Un.bind(null,e,ot,Jt),t);break}Un(e,ot,Jt);break;case 4:if(xn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-At(r);s=1<<l,l=t[l],l>o&&(o=l),r&=~s}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*E1(r/1960))-r,10<r){e.timeoutHandle=nu(Un.bind(null,e,ot,Jt),r);break}Un(e,ot,Jt);break;case 5:Un(e,ot,Jt);break;default:throw Error(Q(329))}}}return ut(e,Ce()),e.callbackNode===n?Nm.bind(null,e):null}function ju(e,t){var n=Bo;return e.current.memoizedState.isDehydrated&&(Jn(e,t).flags|=256),e=Hi(e,t),e!==2&&(t=ot,ot=n,t!==null&&ku(t)),e}function ku(e){ot===null?ot=e:ot.push.apply(ot,e)}function C1(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 o=n[r],s=o.getSnapshot;o=o.value;try{if(!Dt(s(),o))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 xn(e,t){for(t&=~Tc,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-At(t),r=1<<n;e[n]=-1,t&=~r}}function uf(e){if(fe&6)throw Error(Q(327));Ar();var t=Ci(e,0);if(!(t&1))return ut(e,Ce()),null;var n=Hi(e,t);if(e.tag!==0&&n===2){var r=Ka(e);r!==0&&(t=r,n=ju(e,r))}if(n===1)throw n=is,Jn(e,0),xn(e,t),ut(e,Ce()),n;if(n===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Un(e,ot,Jt),ut(e,Ce()),null}function _c(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(Wr=Ce()+500,ul&&Fn())}}function sr(e){wn!==null&&wn.tag===0&&!(fe&6)&&Ar();var t=fe;fe|=1;var n=Et.transition,r=he;try{if(Et.transition=null,he=1,e)return e()}finally{he=r,Et.transition=n,fe=t,!(fe&6)&&Fn()}}function Pc(){pt=Tr.current,we(Tr)}function Jn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,n1(n)),_e!==null)for(n=_e.return;n!==null;){var r=n;switch(cc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Li();break;case 3:zr(),we(lt),we(Ye),yc();break;case 5:vc(r);break;case 4:zr();break;case 13:we(je);break;case 19:we(je);break;case 10:hc(r.type._context);break;case 22:case 23:Pc()}n=n.return}if(ze=e,_e=e=Rn(e.current,null),Ve=pt=t,Fe=0,is=null,Tc=pl=or=0,ot=Bo=null,Vn!==null){for(t=0;t<Vn.length;t++)if(n=Vn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=o,r.next=l}n.pending=r}Vn=null}return e}function Mm(e,t){do{var n=_e;try{if(pc(),ri.current=Bi,$i){for(var r=ke.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}$i=!1}if(rr=0,De=Ne=ke=null,Do=!1,rs=0,Cc.current=null,n===null||n.return===null){Fe=1,is=t,_e=null;break}e:{var s=e,l=n.return,a=n,u=t;if(t=Ve,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,p=a,d=p.tag;if(!(p.mode&1)&&(d===0||d===11||d===15)){var f=p.alternate;f?(p.updateQueue=f.updateQueue,p.memoizedState=f.memoizedState,p.lanes=f.lanes):(p.updateQueue=null,p.memoizedState=null)}var b=Gd(l);if(b!==null){b.flags&=-257,Jd(b,l,a,s,t),b.mode&1&&Kd(s,c,t),t=b,u=c;var k=t.updateQueue;if(k===null){var v=new Set;v.add(u),t.updateQueue=v}else k.add(u);break e}else{if(!(t&1)){Kd(s,c,t),Lc();break e}u=Error(Q(426))}}else if(Se&&a.mode&1){var C=Gd(l);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Jd(C,l,a,s,t),dc(Ur(u,a));break e}}s=u=Ur(u,a),Fe!==4&&(Fe=2),Bo===null?Bo=[s]:Bo.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=xm(s,u,t);Ud(s,g);break e;case 1:a=u;var h=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Cn===null||!Cn.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=vm(s,a,t);Ud(s,w);break e}}s=s.return}while(s!==null)}Im(n)}catch(S){t=S,_e===n&&n!==null&&(_e=n=n.return);continue}break}while(!0)}function Am(){var e=zi.current;return zi.current=Bi,e===null?Bi:e}function Lc(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),ze===null||!(or&268435455)&&!(pl&268435455)||xn(ze,Ve)}function Hi(e,t){var n=fe;fe|=2;var r=Am();(ze!==e||Ve!==t)&&(Jt=null,Jn(e,t));do try{T1();break}catch(o){Mm(e,o)}while(!0);if(pc(),fe=n,zi.current=r,_e!==null)throw Error(Q(261));return ze=null,Ve=0,Fe}function T1(){for(;_e!==null;)Fm(_e)}function R1(){for(;_e!==null&&!Zx();)Fm(_e)}function Fm(e){var t=$m(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?Im(e):_e=t,Cc.current=null}function Im(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=S1(n,t),n!==null){n.flags&=32767,_e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,_e=null;return}}else if(n=w1(n,t,pt),n!==null){_e=n;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Fe===0&&(Fe=5)}function Un(e,t,n){var r=he,o=Et.transition;try{Et.transition=null,he=1,_1(e,t,n,r)}finally{Et.transition=o,he=r}return null}function _1(e,t,n,r){do Ar();while(wn!==null);if(fe&6)throw Error(Q(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Q(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(u0(e,s),e===ze&&(_e=ze=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Os||(Os=!0,Bm(Ei,function(){return Ar(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Et.transition,Et.transition=null;var l=he;he=1;var a=fe;fe|=4,Cc.current=null,k1(e,n),Lm(n,e),G0(eu),Ti=!!Za,eu=Za=null,e.current=n,b1(n),e0(),fe=a,he=l,Et.transition=s}else e.current=n;if(Os&&(Os=!1,wn=e,Wi=o),s=e.pendingLanes,s===0&&(Cn=null),r0(n.stateNode),ut(e,Ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ui)throw Ui=!1,e=wu,wu=null,e;return Wi&1&&e.tag!==0&&Ar(),s=e.pendingLanes,s&1?e===Su?zo++:(zo=0,Su=e):zo=0,Fn(),null}function Ar(){if(wn!==null){var e=xh(Wi),t=Et.transition,n=he;try{if(Et.transition=null,he=16>e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Wi=0,fe&6)throw Error(Q(331));var o=fe;for(fe|=4,Z=e.current;Z!==null;){var s=Z,l=s.child;if(Z.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(Z=c;Z!==null;){var p=Z;switch(p.tag){case 0:case 11:case 15:$o(8,p,s)}var d=p.child;if(d!==null)d.return=p,Z=d;else for(;Z!==null;){p=Z;var f=p.sibling,b=p.return;if(Rm(p),p===c){Z=null;break}if(f!==null){f.return=b,Z=f;break}Z=b}}}var k=s.alternate;if(k!==null){var v=k.child;if(v!==null){k.child=null;do{var C=v.sibling;v.sibling=null,v=C}while(v!==null)}}Z=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,Z=l;else e:for(;Z!==null;){if(s=Z,s.flags&2048)switch(s.tag){case 0:case 11:case 15:$o(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,Z=g;break e}Z=s.return}}var h=e.current;for(Z=h;Z!==null;){l=Z;var m=l.child;if(l.subtreeFlags&2064&&m!==null)m.return=l,Z=m;else e:for(l=h;Z!==null;){if(a=Z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:fl(9,a)}}catch(S){Ee(a,a.return,S)}if(a===l){Z=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,Z=w;break e}Z=a.return}}if(fe=o,Fn(),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(ol,e)}catch{}r=!0}return r}finally{he=n,Et.transition=t}}return!1}function cf(e,t,n){t=Ur(n,t),t=xm(e,t,1),e=En(e,t,1),t=tt(),e!==null&&(cs(e,1,t),ut(e,t))}function Ee(e,t,n){if(e.tag===3)cf(e,e,n);else for(;t!==null;){if(t.tag===3){cf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Cn===null||!Cn.has(r))){e=Ur(n,e),e=vm(t,e,1),t=En(t,e,1),e=tt(),t!==null&&(cs(t,1,e),ut(t,e));break}}t=t.return}}function P1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,ze===e&&(Ve&n)===n&&(Fe===4||Fe===3&&(Ve&130023424)===Ve&&500>Ce()-Rc?Jn(e,0):Tc|=n),ut(e,t)}function Dm(e,t){t===0&&(e.mode&1?(t=js,js<<=1,!(js&130023424)&&(js=4194304)):t=1);var n=tt();e=on(e,t),e!==null&&(cs(e,t,n),ut(e,n))}function L1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dm(e,n)}function O1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Q(314))}r!==null&&r.delete(t),Dm(e,n)}var $m;$m=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)it=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return it=!1,y1(e,t,n);it=!!(e.flags&131072)}else it=!1,Se&&t.flags&1048576&&Wh(t,Mi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;si(e,t),e=t.pendingProps;var o=Dr(t,Ye.current);Mr(t,n),o=Sc(null,t,r,e,o,n);var s=jc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(s=!0,Oi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gc(t),o.updater=dl,t.stateNode=o,o._reactInternals=t,uu(t,r,e,n),t=fu(null,t,r,!0,s,n)):(t.tag=0,Se&&s&&uc(t),et(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(si(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=M1(r),e=Ot(r,e),o){case 0:t=du(null,t,r,e,n);break e;case 1:t=Zd(null,t,r,e,n);break e;case 11:t=Yd(null,t,r,e,n);break e;case 14:t=Xd(null,t,r,Ot(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),du(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Zd(e,t,r,o,n);case 3:e:{if(jm(t),e===null)throw Error(Q(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Gh(e,t),Ii(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Ur(Error(Q(423)),t),t=ef(e,t,r,n,o);break e}else if(r!==o){o=Ur(Error(Q(424)),t),t=ef(e,t,r,n,o);break e}else for(ht=bn(t.stateNode.containerInfo.firstChild),mt=t,Se=!0,Mt=null,n=Qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($r(),r===o){t=sn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return Jh(t),e===null&&iu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,l=o.children,tu(r,o)?l=null:s!==null&&tu(r,s)&&(t.flags|=32),Sm(e,t),et(e,t,l,n),t.child;case 6:return e===null&&iu(t),null;case 13:return km(e,t,n);case 4:return xc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Br(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Yd(e,t,r,o,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,l=o.value,ge(Ai,r._currentValue),r._currentValue=l,s!==null)if(Dt(s.value,l)){if(s.children===o.children&&!lt.current){t=sn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){l=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=tn(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),lu(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(Q(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),lu(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}et(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mr(t,n),o=Ct(o),r=r(o),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,o=Ot(r,t.pendingProps),o=Ot(r.type,o),Xd(e,t,r,o,n);case 15:return ym(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),si(e,t),t.tag=1,at(r)?(e=!0,Oi(t)):e=!1,Mr(t,n),gm(t,r,o),uu(t,r,o,n),fu(null,t,r,!0,e,n);case 19:return bm(e,t,n);case 22:return wm(e,t,n)}throw Error(Q(156,t.tag))};function Bm(e,t){return ph(e,t)}function N1(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 bt(e,t,n,r){return new N1(e,t,n,r)}function Oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M1(e){if(typeof e=="function")return Oc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Xu)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=bt(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 ai(e,t,n,r,o,s){var l=2;if(r=e,typeof e=="function")Oc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case xr:return Yn(n.children,o,s,t);case Ju:l=8,o|=8;break;case Na:return e=bt(12,n,t,o|2),e.elementType=Na,e.lanes=s,e;case Ma:return e=bt(13,n,t,o),e.elementType=Ma,e.lanes=s,e;case Aa:return e=bt(19,n,t,o),e.elementType=Aa,e.lanes=s,e;case Jp:return hl(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Kp:l=10;break e;case Gp:l=9;break e;case Yu:l=11;break e;case Xu:l=14;break e;case hn:l=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=bt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Yn(e,t,n,r){return e=bt(7,e,r,t),e.lanes=n,e}function hl(e,t,n,r){return e=bt(22,e,r,t),e.elementType=Jp,e.lanes=n,e.stateNode={isHidden:!1},e}function la(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function aa(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A1(e,t,n,r,o){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=Ul(0),this.expirationTimes=Ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ul(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nc(e,t,n,r,o,s,l,a,u){return e=new A1(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=bt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gc(s),e}function F1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zm(e){if(!e)return On;e=e._reactInternals;e:{if(ur(e)!==e||e.tag!==1)throw Error(Q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Q(171))}if(e.tag===1){var n=e.type;if(at(n))return zh(e,n,t)}return t}function Um(e,t,n,r,o,s,l,a,u){return e=Nc(n,r,!0,e,o,s,l,a,u),e.context=zm(null),n=e.current,r=tt(),o=Tn(n),s=tn(r,o),s.callback=t??null,En(n,s,o),e.current.lanes=o,cs(e,o,r),ut(e,r),e}function ml(e,t,n,r){var o=t.current,s=tt(),l=Tn(o);return n=zm(n),t.context===null?t.context=n:t.pendingContext=n,t=tn(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=En(o,t,l),e!==null&&(Ft(e,o,l,s),ni(e,o,l)),l}function Vi(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 df(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mc(e,t){df(e,t),(e=e.alternate)&&df(e,t)}function I1(){return null}var Wm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ac(e){this._internalRoot=e}gl.prototype.render=Ac.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));ml(e,t,null,null)};gl.prototype.unmount=Ac.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sr(function(){ml(null,e,null,null)}),t[rn]=null}};function gl(e){this._internalRoot=e}gl.prototype.unstable_scheduleHydration=function(e){if(e){var t=wh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gn.length&&t!==0&&t<gn[n].priority;n++);gn.splice(n,0,e),n===0&&jh(e)}};function Fc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ff(){}function D1(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=Vi(l);s.call(c)}}var l=Um(t,r,e,0,null,!1,!1,"",ff);return e._reactRootContainer=l,e[rn]=l.current,Xo(e.nodeType===8?e.parentNode:e),sr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=Vi(u);a.call(c)}}var u=Nc(e,0,!1,null,null,!1,!1,"",ff);return e._reactRootContainer=u,e[rn]=u.current,Xo(e.nodeType===8?e.parentNode:e),sr(function(){ml(t,u,n,r)}),u}function vl(e,t,n,r,o){var s=n._reactRootContainer;if(s){var l=s;if(typeof o=="function"){var a=o;o=function(){var u=Vi(l);a.call(u)}}ml(t,l,e,o)}else l=D1(n,t,e,o,r);return Vi(l)}vh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Co(t.pendingLanes);n!==0&&(tc(t,n|1),ut(t,Ce()),!(fe&6)&&(Wr=Ce()+500,Fn()))}break;case 13:sr(function(){var r=on(e,1);if(r!==null){var o=tt();Ft(r,e,1,o)}}),Mc(e,1)}};nc=function(e){if(e.tag===13){var t=on(e,134217728);if(t!==null){var n=tt();Ft(t,e,134217728,n)}Mc(e,134217728)}};yh=function(e){if(e.tag===13){var t=Tn(e),n=on(e,t);if(n!==null){var r=tt();Ft(n,e,t,r)}Mc(e,t)}};wh=function(){return he};Sh=function(e,t){var n=he;try{return he=e,t()}finally{he=n}};Va=function(e,t,n){switch(t){case"input":if(Da(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 o=al(r);if(!o)throw Error(Q(90));Xp(r),Da(r,o)}}}break;case"textarea":eh(e,n);break;case"select":t=n.value,t!=null&&Pr(e,!!n.multiple,t,!1)}};lh=_c;ah=sr;var $1={usingClientEntryPoint:!1,Events:[fs,Sr,al,sh,ih,_c]},fo={findFiberByHostInstance:Hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},B1={bundleType:fo.bundleType,version:fo.version,rendererPackageName:fo.rendererPackageName,rendererConfig:fo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dh(e),e===null?null:e.stateNode},findFiberByHostInstance:fo.findFiberByHostInstance||I1,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 Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{ol=Ns.inject(B1),qt=Ns}catch{}}xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$1;xt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fc(t))throw Error(Q(200));return F1(e,t,null,n)};xt.createRoot=function(e,t){if(!Fc(e))throw Error(Q(299));var n=!1,r="",o=Wm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Nc(e,1,!1,null,null,n,!1,r,o),e[rn]=t.current,Xo(e.nodeType===8?e.parentNode:e),new Ac(t)};xt.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(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=dh(t),e=e===null?null:e.stateNode,e};xt.flushSync=function(e){return sr(e)};xt.hydrate=function(e,t,n){if(!xl(t))throw Error(Q(200));return vl(null,e,t,!0,n)};xt.hydrateRoot=function(e,t,n){if(!Fc(e))throw Error(Q(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",l=Wm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Um(t,null,e,1,n??null,o,!1,s,l),e[rn]=t.current,Xo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new gl(t)};xt.render=function(e,t,n){if(!xl(t))throw Error(Q(200));return vl(null,e,t,!1,n)};xt.unmountComponentAtNode=function(e){if(!xl(e))throw Error(Q(40));return e._reactRootContainer?(sr(function(){vl(null,null,e,!1,function(){e._reactRootContainer=null,e[rn]=null})}),!0):!1};xt.unstable_batchedUpdates=_c;xt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xl(n))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return vl(e,t,n,!1,r)};xt.version="18.3.1-next-f1338f8080-20240426";function Hm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hm)}catch(e){console.error(e)}}Hm(),Hp.exports=xt;var Vm=Hp.exports;const z1=nl(Vm);var pf=Vm;La.createRoot=pf.createRoot,La.hydrateRoot=pf.hydrateRoot;var ua={},po={},hf;function U1(){var s;if(hf)return po;hf=1;var e=pn&&pn.__createBinding||(Object.create?function(l,a,u,c){c===void 0&&(c=u);var p=Object.getOwnPropertyDescriptor(a,u);(!p||("get"in p?!a.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(l,c,p)}:function(l,a,u,c){c===void 0&&(c=u),l[c]=a[u]}),t=pn&&pn.__setModuleDefault||(Object.create?function(l,a){Object.defineProperty(l,"default",{enumerable:!0,value:a})}:function(l,a){l.default=a}),n=pn&&pn.__importStar||function(l){if(l&&l.__esModule)return l;var a={};if(l!=null)for(var u in l)u!=="default"&&Object.prototype.hasOwnProperty.call(l,u)&&e(a,l,u);return t(a,l),a};Object.defineProperty(po,"__esModule",{value:!0}),po.Binder=void 0;const r=n(Ic());let o=(s=class{constructor(a){ie(this,"name");ie(this,"type","binder");ie(this,"readyListener",new r.default);ie(this,"requestListener",new r.default);a||(a="Binder_"+s.nextID++),this.name=a}static setupReact(a,u){s.reactUseEffect&&s.reactUseState||(s.reactUseEffect=u,s.reactUseState=a,r.default.setupReact(a,u))}onRequest(a){this.requestListener.subscribe(a)}subscribe(a){this.readyListener.subscribe(a)}invoke(a){this.readyListener.invoke(a)}request(a){this.requestListener.invoke(a)}async execute(a){const u={resolve:null},c=new Promise((d,f)=>{u.resolve=d}),p=new r.SignalHandler;return p.add(this.readyListener,d=>{u.resolve&&u.resolve(d),p.clear()}),this.requestListener.invoke(a??null),c}use(a,u,c){const[p,d]=s.reactUseState(u??null),[f,b]=s.reactUseState(!1);return s.reactUseEffect(()=>{const k=new r.SignalHandler;return k.add(this.readyListener,v=>{d(v),b(!1)}),k.add(this.requestListener,v=>{b(!0)}),this.requestListener.invoke(a??null),()=>{k.clear()}},c??[]),[p,f]}clear(){this.requestListener.removeAll(),this.readyListener.removeAll()}},ie(s,"reactUseState",null),ie(s,"reactUseEffect",null),ie(s,"nextID",0),s);return po.Binder=o,po}var ho={},mf;function W1(){var o;if(mf)return ho;mf=1;var e=pn&&pn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ho,"__esModule",{value:!0}),ho.DataProvider=void 0;const t=e(Ic());let n=(o=class{constructor(l,a){ie(this,"response",null);ie(this,"busy",!1);ie(this,"options");ie(this,"lastFetchTime",-1);ie(this,"callbacks",new t.default);ie(this,"subscribers",new t.default);ie(this,"name");ie(this,"executor",null);ie(this,"defaultNotificator",null);ie(this,"lastRequestHash",null);l||(l={cacheTime:-1}),this.options=l,this.setOptions(l),a||(a="DataProvider_"+o.nextID++),this.name=a}reset(){this.response=null,this.busy=!1,this.lastFetchTime=-1,this.lastRequestHash=null,this.response=null}isBusy(){return this.busy}isEmpty(){return this.getError()!==null||this.getData()===null}setExecutor(l){return this.executor=l,this}getData(){var l,a,u,c,p;return!this.response||!this.response.data?null:Array.isArray((l=this.response)==null?void 0:l.data)?[...(a=this.response)==null?void 0:a.data]:typeof((u=this.response)==null?void 0:u.data)=="object"?{...(c=this.response)==null?void 0:c.data}:(p=this.response)==null?void 0:p.data}setOptions(l){this.options=l}getError(){return!this.response||!this.response.error?null:{...this.response.error}}setDefaultNotificator(l){return this.defaultNotificator=l,this}subscribe(l){this.subscribers.subscribe(l)}async load(l){var c;if(!this.executor)throw Error("Executor not registered in data provider, "+this.name);const a=new Promise((p,d)=>{this.callbacks.subscribe(f=>{p(f),this.subscribers.invoke(f),this.subscribers.removeAll(),this.defaultNotificator&&(this.isEmpty()?this.defaultNotificator.invoke(this.getError()):this.defaultNotificator.invoke(this.getData()))})}),u=r(JSON.stringify(l??""));if(u!==this.lastRequestHash&&(this.response=null,this.busy=!1),this.lastRequestHash=u,this.defaultNotificator&&(this.isEmpty()?(c=this.defaultNotificator)==null||c.invoke(this.getError()):this.defaultNotificator.invoke(this.getData())),this.busy)return a;if(this.options&&this.options.cacheTime>-1&&this.response&&!this.response.error){if(this.options.cacheTime===0)return this.callbacks.invoke(this.response),this.response;if(+new Date-this.lastFetchTime<this.options.cacheTime)return this.callbacks.invoke(this.response),this.response}return this.busy=!0,this.response=await this.executor(l),this.lastFetchTime=+new Date,this.busy=!1,this.callbacks.invoke(this.response),this.callbacks.removeAll(),a}},ie(o,"nextID",0),o);ho.DataProvider=n;const r=s=>{let l=0,a;for(a=0;a<s.length;a++)l=(l<<5)-l+s.charCodeAt(a),l|=0;let u="P";return l<0&&(l=l&2147483647,u="N"),u+l.toString(16).toUpperCase()};return ho}var gf;function Ic(){return gf||(gf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.useSignal=e.s_destroy=e.s_removeAll=e.s_invokeOnce=e.s_invoke=e.s_unsubscribe=e.s_subscribeOnce=e.s_subscribe=e.Req=e.SignalHandler=e.Signal=e.DataProvider=e.Binder=void 0;const t=U1();Object.defineProperty(e,"Binder",{enumerable:!0,get:function(){return t.Binder}});const n=W1();Object.defineProperty(e,"DataProvider",{enumerable:!0,get:function(){return n.DataProvider}});const v=class v{constructor(m,w,S){ie(this,"busy",!1);ie(this,"tempAdd",[]);ie(this,"tempRem",[]);ie(this,"tempInvoke",[]);ie(this,"callbacks",[]);ie(this,"tempClear",!1);ie(this,"name","");ie(this,"type","signal");ie(this,"onSubscribe");m||(m="S_"+ +new Date),this.name=m,w&&(this.onSubscribe=w),S&&this.subscribe(S)}static setupReact(m,w){v.reactUseEffect&&v.reactUseState||(v.reactUseEffect=w,v.reactUseState=m,t.Binder.setupReact(m,w),s.setupReact(m,w))}static useSignal(m,w,S){if(!v.reactUseEffect||!v.reactUseState)return null;const[T,x]=v.reactUseState(null);return v.reactUseEffect(()=>{let y="",E=null;return m instanceof v?(E=m,y=E.subscribe(_=>{x(_),S&&S(_)})):y=a(_=>{x(_),S&&S(_)},m),()=>{E?E.unsubscribe(y):c(y)}},w),T}subscribe(m,w){if(w||(w=""+v.nextID++),this.busy){for(let S of this.tempAdd)if(S.cb===m)return S.id;return this.tempAdd.push({cb:m,id:w}),w}for(let S of this.callbacks)if(S.cb===m)return S.id;return this.callbacks.push({cb:m,id:w}),this.onSubscribe&&(this.onSubscribe.length===1?this.onSubscribe(m):this.onSubscribe()),v.onLog&&v.onLog(this,0,`Subscribtion to ${this.name} added with id: `+w),w}use(m,w){return v.useSignal(this,m,w)}getSubscribtions(){const m=[];for(let w of this.callbacks)m.push(w.id);return m}removeAll(){if(this.busy){this.tempClear=!0;return}this.callbacks=[],v.onLog&&v.onLog(this,0,`${this.name} remove all subscribtions`)}unsubscribe(m){let w=!1;for(let T of this.callbacks)if(T.id===m){w=!0;break}if(this.tempAdd=this.tempAdd.filter(T=>T.id!==m),!w)return v.onLog&&v.onLog(this,1,`${this.name} unsubscribe failed, wrong id:${m}`),!1;if(this.busy){for(let T of this.tempRem)if(T.id===m)return!0;return this.tempRem.push({id:m}),!0}let S=this.callbacks.length;return this.callbacks=this.callbacks.filter(T=>T.id!==m),S=S-this.callbacks.length,v.onLog&&v.onLog(this,S>0?0:1,`${this.name} unsubscribe from ${S} callback(s)`),S>0}invoke(m){if(this.busy){this.tempInvoke.push({data:m}),v.onLog&&v.onLog(this,0,`${this.name} delayed invokation added`);return}this.busy=!0;for(let w of this.callbacks)w&&w.cb&&typeof w.cb=="function"&&w.cb(m);if(this.busy=!1,v.onLog&&v.onLog(this,0,`${this.name} invoked`),this.tempAdd&&this.tempAdd.length>0){v.onLog&&v.onLog(this,0,`${this.name} delayed subscribtion started`);for(let w of this.tempAdd)this.subscribe(w.cb,w.id);this.tempAdd=[]}if(this.tempRem&&this.tempRem.length>0){v.onLog&&v.onLog(this,0,`${this.name} delayed unsubscribtion started`);for(let w of this.tempRem)this.unsubscribe(w.id);this.tempRem=[]}if(this.tempInvoke&&this.tempInvoke.length>0){v.onLog&&v.onLog(this,0,`${this.name} delayed invokation started`);for(let w of this.tempInvoke)this.invoke(w.data);this.tempInvoke=[]}this.tempClear&&(this.tempClear=!1,this.removeAll())}};ie(v,"nextID",0),ie(v,"onLog"),ie(v,"reactUseState",null),ie(v,"reactUseEffect",null);let r=v;e.Signal=r;const C=class C{constructor(){ie(this,"id");ie(this,"signals",[]);this.id=C.nextID++}add(m,w){Array.isArray(m)||(m=[m]);for(let S of this.signals)if(m.filter(x=>S===x).length>0)return;m.map(S=>{this.signals.push(S),S.subscribe(w,"signaller_"+this.id)})}clear(){for(let m of this.signals)m.unsubscribe("signaller_"+this.id);this.signals=[]}};ie(C,"nextID",0);let o=C;e.SignalHandler=o;const g=class g{constructor(m,w){ie(this,"worker");ie(this,"name");ie(this,"type","request");w||(w="Req_"+g.nextID++),this.name=w,m&&(this.worker=m)}static setupReact(m,w){g.reactUseEffect&&g.reactUseState||(g.reactUseEffect=w,g.reactUseState=m,r.setupReact(m,w))}request(m){if(!this.worker)throw Error("No worker registere in "+this.name);return this.worker(m)}use(m,w,S){const[T,x]=g.reactUseState(null);return g.reactUseEffect(()=>{this.request(m).then(y=>{x(y),S&&S(y)})},w),T}useValue(m,w,S){const[T,x]=g.reactUseState(m);return S||(S=[m]),g.reactUseEffect(()=>{this.request(m).then(y=>{x(y),w&&w(y)})},S),[T,y=>{x(y)}]}useRequest(m,w){const[S,T]=g.reactUseState(w),[x,y]=g.reactUseState(),[E,_]=g.reactUseState(!0);return g.reactUseEffect(()=>{this.request(S).then(j=>{y(j),_(!1),m&&m(j)})},[S]),[x,j=>{_(!0),T(j)},j=>{y(j),_(!1)},E]}set listener(m){this.worker=m}};ie(g,"reactUseState",null),ie(g,"reactUseEffect",null),ie(g,"nextID",1);let s=g;e.Req=s;let l=new Map;function a(h,m){m||(m="__default");let w=l.get(m);return w||(w=new r,l.set(m,w)),w.subscribe(h)}e.s_subscribe=a;function u(h,m){const w=a(S=>{h(S),c(w)},m??"__default")}e.s_subscribeOnce=u;function c(h){let m=!1;for(let w of l)w[1]&&w[1].unsubscribe(h);return m}e.s_unsubscribe=c;function p(h,m){m||(m="__default");let w=l.get(m);w&&w.invoke(h)}e.s_invoke=p;function d(h,m){p(h,m),f(m)}e.s_invokeOnce=d;function f(h){h||(h="__default");let m=l.get(h);m&&m.removeAll()}e.s_removeAll=f;function b(){for(let h of l)h[1].removeAll();l=new Map}e.s_destroy=b;function k(h){return r.useSignal(h)}e.useSignal=k,e.default=r}(ua)),ua}var Xe=Ic();const In=nl(Xe);function qm(e,t){return function(){return e.apply(t,arguments)}}const{toString:H1}=Object.prototype,{getPrototypeOf:Dc}=Object,{iterator:yl,toStringTag:Qm}=Symbol,wl=(e=>t=>{const n=H1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$t=e=>(e=e.toLowerCase(),t=>wl(t)===e),Sl=e=>t=>typeof t===e,{isArray:eo}=Array,ls=Sl("undefined");function V1(e){return e!==null&&!ls(e)&&e.constructor!==null&&!ls(e.constructor)&&ct(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Km=$t("ArrayBuffer");function q1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Km(e.buffer),t}const Q1=Sl("string"),ct=Sl("function"),Gm=Sl("number"),jl=e=>e!==null&&typeof e=="object",K1=e=>e===!0||e===!1,ui=e=>{if(wl(e)!=="object")return!1;const t=Dc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Qm in e)&&!(yl in e)},G1=$t("Date"),J1=$t("File"),Y1=$t("Blob"),X1=$t("FileList"),Z1=e=>jl(e)&&ct(e.pipe),ev=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ct(e.append)&&((t=wl(e))==="formdata"||t==="object"&&ct(e.toString)&&e.toString()==="[object FormData]"))},tv=$t("URLSearchParams"),[nv,rv,ov,sv]=["ReadableStream","Request","Response","Headers"].map($t),iv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),eo(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let a;for(r=0;r<l;r++)a=s[r],t.call(null,e[a],a,e)}}function Jm(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ym=e=>!ls(e)&&e!==Qn;function bu(){const{caseless:e}=Ym(this)&&this||{},t={},n=(r,o)=>{const s=e&&Jm(t,o)||o;ui(t[s])&&ui(r)?t[s]=bu(t[s],r):ui(r)?t[s]=bu({},r):eo(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&hs(arguments[r],n);return t}const lv=(e,t,n,{allOwnKeys:r}={})=>(hs(t,(o,s)=>{n&&ct(o)?e[s]=qm(o,n):e[s]=o},{allOwnKeys:r}),e),av=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cv=(e,t,n,r)=>{let o,s,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Dc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fv=e=>{if(!e)return null;if(eo(e))return e;let t=e.length;if(!Gm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dc(Uint8Array)),hv=(e,t)=>{const r=(e&&e[yl]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},mv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gv=$t("HTMLFormElement"),xv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),xf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vv=$t("RegExp"),Xm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};hs(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},yv=e=>{Xm(e,(t,n)=>{if(ct(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ct(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wv=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return eo(e)?r(e):r(String(e).split(t)),n},Sv=()=>{},jv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kv(e){return!!(e&&ct(e.append)&&e[Qm]==="FormData"&&e[yl])}const bv=e=>{const t=new Array(10),n=(r,o)=>{if(jl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=eo(r)?[]:{};return hs(r,(l,a)=>{const u=n(l,o+1);!ls(u)&&(s[a]=u)}),t[o]=void 0,s}}return r};return n(e,0)},Ev=$t("AsyncFunction"),Cv=e=>e&&(jl(e)||ct(e))&&ct(e.then)&&ct(e.catch),Zm=((e,t)=>e?setImmediate:t?((n,r)=>(Qn.addEventListener("message",({source:o,data:s})=>{o===Qn&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Qn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ct(Qn.postMessage)),Tv=typeof queueMicrotask<"u"?queueMicrotask.bind(Qn):typeof process<"u"&&process.nextTick||Zm,Rv=e=>e!=null&&ct(e[yl]),I={isArray:eo,isArrayBuffer:Km,isBuffer:V1,isFormData:ev,isArrayBufferView:q1,isString:Q1,isNumber:Gm,isBoolean:K1,isObject:jl,isPlainObject:ui,isReadableStream:nv,isRequest:rv,isResponse:ov,isHeaders:sv,isUndefined:ls,isDate:G1,isFile:J1,isBlob:Y1,isRegExp:vv,isFunction:ct,isStream:Z1,isURLSearchParams:tv,isTypedArray:pv,isFileList:X1,forEach:hs,merge:bu,extend:lv,trim:iv,stripBOM:av,inherits:uv,toFlatObject:cv,kindOf:wl,kindOfTest:$t,endsWith:dv,toArray:fv,forEachEntry:hv,matchAll:mv,isHTMLForm:gv,hasOwnProperty:xf,hasOwnProp:xf,reduceDescriptors:Xm,freezeMethods:yv,toObjectSet:wv,toCamelCase:xv,noop:Sv,toFiniteNumber:jv,findKey:Jm,global:Qn,isContextDefined:Ym,isSpecCompliantForm:kv,toJSONObject:bv,isAsyncFn:Ev,isThenable:Cv,setImmediate:Zm,asap:Tv,isIterable:Rv};function le(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const eg=le.prototype,tg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tg[e]={value:e}});Object.defineProperties(le,tg);Object.defineProperty(eg,"isAxiosError",{value:!0});le.from=(e,t,n,r,o,s)=>{const l=Object.create(eg);return I.toFlatObject(e,l,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),le.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const _v=null;function Eu(e){return I.isPlainObject(e)||I.isArray(e)}function ng(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function vf(e,t,n){return e?e.concat(t).map(function(o,s){return o=ng(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Pv(e){return I.isArray(e)&&!e.some(Eu)}const Lv=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function kl(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,C){return!I.isUndefined(C[v])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function c(k){if(k===null)return"";if(I.isDate(k))return k.toISOString();if(!u&&I.isBlob(k))throw new le("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(k)||I.isTypedArray(k)?u&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function p(k,v,C){let g=k;if(k&&!C&&typeof k=="object"){if(I.endsWith(v,"{}"))v=r?v:v.slice(0,-2),k=JSON.stringify(k);else if(I.isArray(k)&&Pv(k)||(I.isFileList(k)||I.endsWith(v,"[]"))&&(g=I.toArray(k)))return v=ng(v),g.forEach(function(m,w){!(I.isUndefined(m)||m===null)&&t.append(l===!0?vf([v],w,s):l===null?v:v+"[]",c(m))}),!1}return Eu(k)?!0:(t.append(vf(C,v,s),c(k)),!1)}const d=[],f=Object.assign(Lv,{defaultVisitor:p,convertValue:c,isVisitable:Eu});function b(k,v){if(!I.isUndefined(k)){if(d.indexOf(k)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(k),I.forEach(k,function(g,h){(!(I.isUndefined(g)||g===null)&&o.call(t,g,I.isString(h)?h.trim():h,v,f))===!0&&b(g,v?v.concat(h):[h])}),d.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return b(e),t}function yf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $c(e,t){this._pairs=[],e&&kl(e,this,t)}const rg=$c.prototype;rg.append=function(t,n){this._pairs.push([t,n])};rg.toString=function(t){const n=t?function(r){return t.call(this,r,yf)}:yf;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Ov(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function og(e,t,n){if(!t)return e;const r=n&&n.encode||Ov;I.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=I.isURLSearchParams(t)?t.toString():new $c(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class wf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nv=typeof URLSearchParams<"u"?URLSearchParams:$c,Mv=typeof FormData<"u"?FormData:null,Av=typeof Blob<"u"?Blob:null,Fv={isBrowser:!0,classes:{URLSearchParams:Nv,FormData:Mv,Blob:Av},protocols:["http","https","file","blob","url","data"]},Bc=typeof window<"u"&&typeof document<"u",Cu=typeof navigator=="object"&&navigator||void 0,Iv=Bc&&(!Cu||["ReactNative","NativeScript","NS"].indexOf(Cu.product)<0),Dv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$v=Bc&&window.location.href||"http://localhost",Bv=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bc,hasStandardBrowserEnv:Iv,hasStandardBrowserWebWorkerEnv:Dv,navigator:Cu,origin:$v},Symbol.toStringTag,{value:"Module"})),Je={...Bv,...Fv};function zv(e,t){return kl(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Je.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Uv(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wv(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function ig(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),u=s>=n.length;return l=!l&&I.isArray(o)?o.length:l,u?(I.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!I.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&I.isArray(o[l])&&(o[l]=Wv(o[l])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,o)=>{t(Uv(r),o,n,0)}),n}return null}function Hv(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ms={transitional:sg,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=I.isObject(t);if(s&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(ig(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zv(t,this.formSerializer).toString();if((a=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return kl(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Hv(t)):t}],transformResponse:[function(t){const n=this.transitional||ms.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?le.from(a,le.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{ms.headers[e]={}});const Vv=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qv=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
54
|
+
`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Vv[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Sf=Symbol("internals");function mo(e){return e&&String(e).trim().toLowerCase()}function ci(e){return e===!1||e==null?e:I.isArray(e)?e.map(ci):String(e)}function Qv(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Kv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ca(e,t,n,r,o){if(I.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function Gv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jv(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}let dt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,u,c){const p=mo(u);if(!p)throw new Error("header name must be a non-empty string");const d=I.findKey(o,p);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||u]=ci(a))}const l=(a,u)=>I.forEach(a,(c,p)=>s(c,p,u));if(I.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(I.isString(t)&&(t=t.trim())&&!Kv(t))l(qv(t),n);else if(I.isObject(t)&&I.isIterable(t)){let a={},u,c;for(const p of t){if(!I.isArray(p))throw TypeError("Object iterator must return a key-value pair");a[c=p[0]]=(u=a[c])?I.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}l(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=mo(t),t){const r=I.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Qv(o);if(I.isFunction(n))return n.call(this,o,r);if(I.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=mo(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ca(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=mo(l),l){const a=I.findKey(r,l);a&&(!n||ca(r,r[a],a,n))&&(delete r[a],o=!0)}}return I.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||ca(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return I.forEach(this,(o,s)=>{const l=I.findKey(r,s);if(l){n[l]=ci(o),delete n[s];return}const a=t?Gv(s):String(s).trim();a!==s&&delete n[s],n[a]=ci(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&I.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
55
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Sf]=this[Sf]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=mo(l);r[a]||(Jv(o,l),r[a]=!0)}return I.isArray(t)?t.forEach(s):s(t),this}};dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(dt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(dt);function da(e,t){const n=this||ms,r=t||n,o=dt.from(r.headers);let s=r.data;return I.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function lg(e){return!!(e&&e.__CANCEL__)}function to(e,t,n){le.call(this,e??"canceled",le.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(to,le,{__CANCEL__:!0});function ag(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new le("Request failed with status code "+n.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Yv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xv(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),p=r[s];l||(l=c),n[o]=u,r[o]=c;let d=s,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-l<t)return;const b=p&&c-p;return b?Math.round(f*1e3/b):void 0}}function Zv(e,t){let n=0,r=1e3/t,o,s;const l=(c,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const p=Date.now(),d=p-n;d>=r?l(c,p):(o=c,s||(s=setTimeout(()=>{s=null,l(o)},r-d)))},()=>o&&l(o)]}const qi=(e,t,n=3)=>{let r=0;const o=Xv(50,250);return Zv(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,u=l-r,c=o(u),p=l<=a;r=l;const d={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&p?(a-l)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},jf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},kf=e=>(...t)=>I.asap(()=>e(...t)),ey=Je.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Je.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Je.origin),Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent)):()=>!0,ty=Je.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),I.isString(r)&&l.push("path="+r),I.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ny(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ry(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ug(e,t,n){let r=!ny(t);return e&&(r||n==!1)?ry(e,t):t}const bf=e=>e instanceof dt?{...e}:e;function ir(e,t){t=t||{};const n={};function r(c,p,d,f){return I.isPlainObject(c)&&I.isPlainObject(p)?I.merge.call({caseless:f},c,p):I.isPlainObject(p)?I.merge({},p):I.isArray(p)?p.slice():p}function o(c,p,d,f){if(I.isUndefined(p)){if(!I.isUndefined(c))return r(void 0,c,d,f)}else return r(c,p,d,f)}function s(c,p){if(!I.isUndefined(p))return r(void 0,p)}function l(c,p){if(I.isUndefined(p)){if(!I.isUndefined(c))return r(void 0,c)}else return r(void 0,p)}function a(c,p,d){if(d in t)return r(c,p);if(d in e)return r(void 0,c)}const u={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(c,p,d)=>o(bf(c),bf(p),d,!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(p){const d=u[p]||o,f=d(e[p],t[p],p);I.isUndefined(f)&&d!==a||(n[p]=f)}),n}const cg=e=>{const t=ir({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=dt.from(l),t.url=og(ug(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(I.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((u=l.getContentType())!==!1){const[c,...p]=u?u.split(";").map(d=>d.trim()).filter(Boolean):[];l.setContentType([c||"multipart/form-data",...p].join("; "))}}if(Je.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&ey(t.url))){const c=o&&s&&ty.read(s);c&&l.set(o,c)}return t},oy=typeof XMLHttpRequest<"u",sy=oy&&function(e){return new Promise(function(n,r){const o=cg(e);let s=o.data;const l=dt.from(o.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=o,p,d,f,b,k;function v(){b&&b(),k&&k(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function g(){if(!C)return;const m=dt.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:m,config:e,request:C};ag(function(x){n(x),v()},function(x){r(x),v()},S),C=null}"onloadend"in C?C.onloadend=g:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(g)},C.onabort=function(){C&&(r(new le("Request aborted",le.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new le("Network Error",le.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||sg;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new le(w,S.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,e,C)),C=null},s===void 0&&l.setContentType(null),"setRequestHeader"in C&&I.forEach(l.toJSON(),function(w,S){C.setRequestHeader(S,w)}),I.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),a&&a!=="json"&&(C.responseType=o.responseType),c&&([f,k]=qi(c,!0),C.addEventListener("progress",f)),u&&C.upload&&([d,b]=qi(u),C.upload.addEventListener("progress",d),C.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(p=m=>{C&&(r(!m||m.type?new to(null,e,C):m),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const h=Yv(o.url);if(h&&Je.protocols.indexOf(h)===-1){r(new le("Unsupported protocol "+h+":",le.ERR_BAD_REQUEST,e));return}C.send(s||null)})},iy=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(c){if(!o){o=!0,a();const p=c instanceof Error?c:this.reason;r.abort(p instanceof le?p:new to(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new le(`timeout ${t} of ms exceeded`,le.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=r;return u.unsubscribe=()=>I.asap(a),u}},ly=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},ay=async function*(e,t){for await(const n of uy(e))yield*ly(n,t)},uy=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ef=(e,t,n,r)=>{const o=ay(e,t);let s=0,l,a=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:p}=await o.next();if(c){a(),u.close();return}let d=p.byteLength;if(n){let f=s+=d;n(f)}u.enqueue(new Uint8Array(p))}catch(c){throw a(c),c}},cancel(u){return a(u),o.return()}},{highWaterMark:2})},bl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",dg=bl&&typeof ReadableStream=="function",cy=bl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),fg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},dy=dg&&fg(()=>{let e=!1;const t=new Request(Je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Cf=64*1024,Tu=dg&&fg(()=>I.isReadableStream(new Response("").body)),Qi={stream:Tu&&(e=>e.body)};bl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qi[t]&&(Qi[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new le(`Response type '${t}' is not supported`,le.ERR_NOT_SUPPORT,r)})})})(new Response);const fy=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await cy(e)).byteLength},py=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??fy(t)},hy=bl&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:p,withCredentials:d="same-origin",fetchOptions:f}=cg(e);c=c?(c+"").toLowerCase():"text";let b=iy([o,s&&s.toAbortSignal()],l),k;const v=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(u&&dy&&n!=="get"&&n!=="head"&&(C=await py(p,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(I.isFormData(r)&&(T=S.headers.get("content-type"))&&p.setContentType(T),S.body){const[x,y]=jf(C,qi(kf(u)));r=Ef(S.body,Cf,x,y)}}I.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;k=new Request(t,{...f,signal:b,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:g?d:void 0});let h=await fetch(k);const m=Tu&&(c==="stream"||c==="response");if(Tu&&(a||m&&v)){const S={};["status","statusText","headers"].forEach(E=>{S[E]=h[E]});const T=I.toFiniteNumber(h.headers.get("content-length")),[x,y]=a&&jf(T,qi(kf(a),!0))||[];h=new Response(Ef(h.body,Cf,x,()=>{y&&y(),v&&v()}),S)}c=c||"text";let w=await Qi[I.findKey(Qi,c)||"text"](h,e);return!m&&v&&v(),await new Promise((S,T)=>{ag(S,T,{data:w,headers:dt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:k})})}catch(g){throw v&&v(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new le("Network Error",le.ERR_NETWORK,e,k),{cause:g.cause||g}):le.from(g,g&&g.code,e,k)}}),Ru={http:_v,xhr:sy,fetch:hy};I.forEach(Ru,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Tf=e=>`- ${e}`,my=e=>I.isFunction(e)||e===null||e===!1,pg={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!my(n)&&(r=Ru[(l=String(n)).toLowerCase()],r===void 0))throw new le(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
|
|
56
|
+
`+s.map(Tf).join(`
|
|
57
|
+
`):" "+Tf(s[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Ru};function fa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new to(null,e)}function Rf(e){return fa(e),e.headers=dt.from(e.headers),e.data=da.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pg.getAdapter(e.adapter||ms.adapter)(e).then(function(r){return fa(e),r.data=da.call(e,e.transformResponse,r),r.headers=dt.from(r.headers),r},function(r){return lg(r)||(fa(e),r&&r.response&&(r.response.data=da.call(e,e.transformResponse,r.response),r.response.headers=dt.from(r.response.headers))),Promise.reject(r)})}const hg="1.9.0",El={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{El[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _f={};El.transitional=function(t,n,r){function o(s,l){return"[Axios v"+hg+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,a)=>{if(t===!1)throw new le(o(l," has been removed"+(n?" in "+n:"")),le.ERR_DEPRECATED);return n&&!_f[l]&&(_f[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,a):!0}};El.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function gy(e,t,n){if(typeof e!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const a=e[s],u=a===void 0||l(a,s,e);if(u!==!0)throw new le("option "+s+" must be "+u,le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new le("Unknown option "+s,le.ERR_BAD_OPTION)}}const di={assertOptions:gy,validators:El},Ut=di.validators;let Xn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new wf,response:new wf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
58
|
+
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ir(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&di.assertOptions(r,{silentJSONParsing:Ut.transitional(Ut.boolean),forcedJSONParsing:Ut.transitional(Ut.boolean),clarifyTimeoutError:Ut.transitional(Ut.boolean)},!1),o!=null&&(I.isFunction(o)?n.paramsSerializer={serialize:o}:di.assertOptions(o,{encode:Ut.function,serialize:Ut.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),di.assertOptions(n,{baseUrl:Ut.spelling("baseURL"),withXsrfToken:Ut.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&I.merge(s.common,s[n.method]);s&&I.forEach(["delete","get","head","post","put","patch","common"],k=>{delete s[k]}),n.headers=dt.concat(l,s);const a=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let p,d=0,f;if(!u){const k=[Rf.bind(this),void 0];for(k.unshift.apply(k,a),k.push.apply(k,c),f=k.length,p=Promise.resolve(n);d<f;)p=p.then(k[d++],k[d++]);return p}f=a.length;let b=n;for(d=0;d<f;){const k=a[d++],v=a[d++];try{b=k(b)}catch(C){v.call(this,C);break}}try{p=Rf.call(this,b)}catch(k){return Promise.reject(k)}for(d=0,f=c.length;d<f;)p=p.then(c[d++],c[d++]);return p}getUri(t){t=ir(this.defaults,t);const n=ug(t.baseURL,t.url,t.allowAbsoluteUrls);return og(n,t.params,t.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(t){Xn.prototype[t]=function(n,r){return this.request(ir(r||{},{method:t,url:n,data:(r||{}).data}))}});I.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,a){return this.request(ir(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Xn.prototype[t]=n(),Xn.prototype[t+"Form"]=n(!0)});let xy=class mg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(a=>{r.subscribe(a),s=a}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,a){r.reason||(r.reason=new to(s,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new mg(function(o){t=o}),cancel:t}}};function vy(e){return function(n){return e.apply(null,n)}}function yy(e){return I.isObject(e)&&e.isAxiosError===!0}const _u={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_u).forEach(([e,t])=>{_u[t]=e});function gg(e){const t=new Xn(e),n=qm(Xn.prototype.request,t);return I.extend(n,Xn.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return gg(ir(e,o))},n}const Te=gg(ms);Te.Axios=Xn;Te.CanceledError=to;Te.CancelToken=xy;Te.isCancel=lg;Te.VERSION=hg;Te.toFormData=kl;Te.AxiosError=le;Te.Cancel=Te.CanceledError;Te.all=function(t){return Promise.all(t)};Te.spread=vy;Te.isAxiosError=yy;Te.mergeConfig=ir;Te.AxiosHeaders=dt;Te.formToJSON=e=>ig(I.isHTMLForm(e)?new FormData(e):e);Te.getAdapter=pg.getAdapter;Te.HttpStatusCode=_u;Te.default=Te;const{Axios:T2,AxiosError:R2,CanceledError:_2,isCancel:P2,CancelToken:L2,VERSION:O2,all:N2,Cancel:M2,isAxiosError:A2,spread:F2,toFormData:I2,AxiosHeaders:D2,HttpStatusCode:$2,formToJSON:B2,getAdapter:z2,mergeConfig:U2}=Te,wy=e=>Pe({method:"POST",endpoint:"login",data:e,ignoreToken:!0}),Sy=e=>Pe({method:"POST",endpoint:"enroll2fa",data:e,ignoreToken:!0}),jy=()=>Pe({method:"POST",endpoint:"logout"});let fi=null;const ky=e=>{fi=e},by=e=>Pe({method:"POST",endpoint:"log",data:e}),Ey=e=>Pe({method:"POST",endpoint:"metrics",data:e}),Cy=()=>Pe({method:"POST",endpoint:"metricsWeeks"}),Ty=e=>Pe({method:"POST",endpoint:"metricsWeek",data:e}),Ry=()=>Pe({method:"GET",endpoint:"netlog"}),_y=()=>Pe({method:"POST",endpoint:"connections"}),Py=e=>Pe({method:"POST",endpoint:"db",data:e}),Ly=()=>Pe({method:"POST",endpoint:"outgoingnetlog"}),Oy=()=>Pe({method:"POST",endpoint:"sysinfo"}),Ny=()=>Pe({method:"POST",endpoint:"procinfo"}),My=()=>Pe({method:"POST",endpoint:"fdreport"}),Ay=e=>Pe({method:"POST",endpoint:"restart",data:e}),Fy=()=>Pe({method:"POST",endpoint:"inventory"}),Iy=()=>Pe({method:"POST",endpoint:"httpstats"}),Dy=()=>Pe({method:"POST",endpoint:"logfiles"}),Pf=e=>Pe({method:"POST",endpoint:"logtail",data:e}),$y=e=>Pe({method:"POST",endpoint:"changeLogLevel",data:{level:e}}),By=()=>{const e=window.__host;let t="/";return e&&e.trim()&&!e.includes("{{")?t=e.trim():Fr.host&&Fr.host.trim()&&(t=Fr.host.trim()),t.endsWith("/")||(t+="/"),t};let xg=!1;const pi=e=>{xg=e},zy="You don't have permission for this action.",Pe=async e=>{var l,a,u;const t=By()+e.endpoint+(e.params?"?"+e.params:""),n=(l=Kn.current)==null?void 0:l.token,r={url:t,method:e.method,responseType:"json",headers:{"Content-Type":"application/json",Authorization:!e.ignoreToken&&n?"Bearer "+n:void 0},data:e.method!=="GET"?e.data:void 0};let o;try{const c=await Te(r);o=c.data??{},o.httpStatus||(o.httpStatus=c.status)}catch(c){const p=c,d=(a=p.response)==null?void 0:a.data,f=((u=p.response)==null?void 0:u.status)??0;d&&typeof d=="object"&&d.error?o={error:d.error,httpStatus:f}:d&&typeof d=="object"&&d.message?o={error:{code:999,message:d.message},httpStatus:f}:o={error:{code:-1,message:"Network error: "+p.message},httpStatus:f}}const s=o.error;if(s){const c=o.httpStatus||s.code;(c===401||c===403)&&(s.code=c),c===403&&!s.details&&(s.details=zy),c===401&&!e.ignoreToken&&!xg&&(fi==null||fi(s))}return o},Fr={login:"",password:"",totp:"",host:""},Kn={current:null},vg=new In("S_AUTH"),yg=new In("S_ENROLL"),Cl=new In("S_LOGOUT"),Ki=new In("S_AUTH_STATUS"),vn=new In("S_AUTH_ERROR"),Pu=new In("S_ENROLLMENT"),zc=e=>{var t,n;return((n=(t=Kn.current)==null?void 0:t.capabilities)==null?void 0:n.includes(e))??!1};class Uy{constructor(){ie(this,"state","unauthorized");ie(this,"enrollment",null);Ki.onSubscribe=t=>t(this.state),Pu.onSubscribe=t=>t(this.enrollment),vg.subscribe(t=>this.signIn(t)),yg.subscribe(t=>this.enroll(t)),Cl.subscribe(()=>this.logout()),ky(t=>this.expire(t))}setState(t){this.state=t,Ki.invoke(t)}setEnrollment(t){this.enrollment=t,Pu.invoke(t)}startSession(t){Kn.current=t,this.setEnrollment(null),this.setState("authorized")}async signIn(t){if(!t)return;Fr.login=t.login,Fr.host=t.host,vn.invoke(null),this.setState("checking");const n=await wy({login:t.login,password:t.password,totp:t.totp.trim()||void 0});if(n.error||!n.data){vn.invoke(n.error??{code:-1,message:"Empty login response"}),this.setState("unauthorized");return}const r=n.data;if("enrollmentRequired"in r){this.setEnrollment({enrollmentToken:r.enrollmentToken,secret:r.secret,otpauthUri:r.otpauthUri,expiresAt:Date.now()+r.expiresInMs}),this.setState("enroll");return}this.startSession(r)}async enroll(t){if(!this.enrollment)return;vn.invoke(null);const n=await Sy({enrollmentToken:this.enrollment.enrollmentToken,totp:t.trim()});if(n.error||!n.data){vn.invoke(n.error??{code:-1,message:"Empty enrollment response"});return}this.startSession(n.data)}async logout(){Kn.current&&await jy(),Kn.current=null,pi(!1),this.setEnrollment(null),this.setState("unauthorized")}expire(t){this.state==="authorized"&&(Kn.current=null,vn.invoke({...t,message:"Session expired — please sign in again."}),this.setState("unauthorized"))}}var Be=function(){return Be=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Be.apply(this,arguments)};function Hr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ye="-ms-",Uo="-moz-",pe="-webkit-",wg="comm",Tl="rule",Uc="decl",Wy="@import",Sg="@keyframes",Hy="@layer",jg=Math.abs,Wc=String.fromCharCode,Lu=Object.assign;function Vy(e,t){return $e(e,0)^45?(((t<<2^$e(e,0))<<2^$e(e,1))<<2^$e(e,2))<<2^$e(e,3):0}function kg(e){return e.trim()}function Yt(e,t){return(e=t.exec(e))?e[0]:e}function ae(e,t,n){return e.replace(t,n)}function hi(e,t,n){return e.indexOf(t,n)}function $e(e,t){return e.charCodeAt(t)|0}function Vr(e,t,n){return e.slice(t,n)}function Ht(e){return e.length}function bg(e){return e.length}function Ro(e,t){return t.push(e),e}function qy(e,t){return e.map(t).join("")}function Lf(e,t){return e.filter(function(n){return!Yt(n,t)})}var Rl=1,qr=1,Eg=0,Rt=0,Re=0,no="";function _l(e,t,n,r,o,s,l,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Rl,column:qr,length:l,return:"",siblings:a}}function fn(e,t){return Lu(_l("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function dr(e){for(;e.root;)e=fn(e.root,{children:[e]});Ro(e,e.siblings)}function Qy(){return Re}function Ky(){return Re=Rt>0?$e(no,--Rt):0,qr--,Re===10&&(qr=1,Rl--),Re}function It(){return Re=Rt<Eg?$e(no,Rt++):0,qr++,Re===10&&(qr=1,Rl++),Re}function Zn(){return $e(no,Rt)}function mi(){return Rt}function Pl(e,t){return Vr(no,e,t)}function Ou(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gy(e){return Rl=qr=1,Eg=Ht(no=e),Rt=0,[]}function Jy(e){return no="",e}function pa(e){return kg(Pl(Rt-1,Nu(e===91?e+2:e===40?e+1:e)))}function Yy(e){for(;(Re=Zn())&&Re<33;)It();return Ou(e)>2||Ou(Re)>3?"":" "}function Xy(e,t){for(;--t&&It()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Pl(e,mi()+(t<6&&Zn()==32&&It()==32))}function Nu(e){for(;It();)switch(Re){case e:return Rt;case 34:case 39:e!==34&&e!==39&&Nu(Re);break;case 40:e===41&&Nu(e);break;case 92:It();break}return Rt}function Zy(e,t){for(;It()&&e+Re!==57;)if(e+Re===84&&Zn()===47)break;return"/*"+Pl(t,Rt-1)+"*"+Wc(e===47?e:It())}function ew(e){for(;!Ou(Zn());)It();return Pl(e,Rt)}function tw(e){return Jy(gi("",null,null,null,[""],e=Gy(e),0,[0],e))}function gi(e,t,n,r,o,s,l,a,u){for(var c=0,p=0,d=l,f=0,b=0,k=0,v=1,C=1,g=1,h=0,m="",w=o,S=s,T=r,x=m;C;)switch(k=h,h=It()){case 40:if(k!=108&&$e(x,d-1)==58){hi(x+=ae(pa(h),"&","&\f"),"&\f",jg(c?a[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:x+=pa(h);break;case 9:case 10:case 13:case 32:x+=Yy(k);break;case 92:x+=Xy(mi()-1,7);continue;case 47:switch(Zn()){case 42:case 47:Ro(nw(Zy(It(),mi()),t,n,u),u);break;default:x+="/"}break;case 123*v:a[c++]=Ht(x)*g;case 125*v:case 59:case 0:switch(h){case 0:case 125:C=0;case 59+p:g==-1&&(x=ae(x,/\f/g,"")),b>0&&Ht(x)-d&&Ro(b>32?Nf(x+";",r,n,d-1,u):Nf(ae(x," ","")+";",r,n,d-2,u),u);break;case 59:x+=";";default:if(Ro(T=Of(x,t,n,c,p,o,a,m,w=[],S=[],d,s),s),h===123)if(p===0)gi(x,t,T,T,w,s,d,a,S);else switch(f===99&&$e(x,3)===110?100:f){case 100:case 108:case 109:case 115:gi(e,T,T,r&&Ro(Of(e,T,T,0,0,o,a,m,o,w=[],d,S),S),o,S,d,a,r?w:S);break;default:gi(x,T,T,T,[""],S,0,a,S)}}c=p=b=0,v=g=1,m=x="",d=l;break;case 58:d=1+Ht(x),b=k;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&Ky()==125)continue}switch(x+=Wc(h),h*v){case 38:g=p>0?1:(x+="\f",-1);break;case 44:a[c++]=(Ht(x)-1)*g,g=1;break;case 64:Zn()===45&&(x+=pa(It())),f=Zn(),p=d=Ht(m=x+=ew(mi())),h++;break;case 45:k===45&&Ht(x)==2&&(v=0)}}return s}function Of(e,t,n,r,o,s,l,a,u,c,p,d){for(var f=o-1,b=o===0?s:[""],k=bg(b),v=0,C=0,g=0;v<r;++v)for(var h=0,m=Vr(e,f+1,f=jg(C=l[v])),w=e;h<k;++h)(w=kg(C>0?b[h]+" "+m:ae(m,/&\f/g,b[h])))&&(u[g++]=w);return _l(e,t,n,o===0?Tl:a,u,c,p,d)}function nw(e,t,n,r){return _l(e,t,n,wg,Wc(Qy()),Vr(e,2,-2),0,r)}function Nf(e,t,n,r,o){return _l(e,t,n,Uc,Vr(e,0,r),Vr(e,r+1,-1),r,o)}function Cg(e,t,n){switch(Vy(e,t)){case 5103:return pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pe+e+e;case 4789:return Uo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Uo+e+ye+e+e;case 5936:switch($e(e,t+11)){case 114:return pe+e+ye+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+ye+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+ye+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return pe+e+ye+e+e;case 6165:return pe+e+ye+"flex-"+e+e;case 5187:return pe+e+ae(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+ye+"flex-$1$2")+e;case 5443:return pe+e+ye+"flex-item-"+ae(e,/flex-|-self/g,"")+(Yt(e,/flex-|baseline/)?"":ye+"grid-row-"+ae(e,/flex-|-self/g,""))+e;case 4675:return pe+e+ye+"flex-line-pack"+ae(e,/align-content|flex-|-self/g,"")+e;case 5548:return pe+e+ye+ae(e,"shrink","negative")+e;case 5292:return pe+e+ye+ae(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+ae(e,"-grow","")+pe+e+ye+ae(e,"grow","positive")+e;case 4554:return pe+ae(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return ae(ae(ae(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return ae(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return ae(ae(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4200:if(!Yt(e,/flex-|baseline/))return ye+"grid-column-align"+Vr(e,t)+e;break;case 2592:case 3360:return ye+ae(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Yt(r.props,/grid-\w+-end/)})?~hi(e+(n=n[t].value),"span",0)?e:ye+ae(e,"-start","")+e+ye+"grid-row-span:"+(~hi(n,"span",0)?Yt(n,/\d+/):+Yt(n,/\d+/)-+Yt(e,/\d+/))+";":ye+ae(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Yt(r.props,/grid-\w+-start/)})?e:ye+ae(ae(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ae(e,/(.+)-inline(.+)/,pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ht(e)-1-t>6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Uo+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hi(e,"stretch",0)?Cg(ae(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ae(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,l,a,u,c){return ye+o+":"+s+c+(l?ye+o+"-span:"+(a?u:+u-+s)+c:"")+e});case 4949:if($e(e,t+6)===121)return ae(e,":",":"+pe)+e;break;case 6444:switch($e(e,$e(e,14)===45?18:11)){case 120:return ae(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+pe+($e(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+ye+"$2box$3")+e;case 100:return ae(e,":",":"+ye)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ae(e,"scroll-","scroll-snap-")+e}return e}function Gi(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function rw(e,t,n,r){switch(e.type){case Hy:if(e.children.length)break;case Wy:case Uc:return e.return=e.return||e.value;case wg:return"";case Sg:return e.return=e.value+"{"+Gi(e.children,r)+"}";case Tl:if(!Ht(e.value=e.props.join(",")))return""}return Ht(n=Gi(e.children,r))?e.return=e.value+"{"+n+"}":""}function ow(e){var t=bg(e);return function(n,r,o,s){for(var l="",a=0;a<t;a++)l+=e[a](n,r,o,s)||"";return l}}function sw(e){return function(t){t.root||(t=t.return)&&e(t)}}function iw(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Uc:e.return=Cg(e.value,e.length,n);return;case Sg:return Gi([fn(e,{value:ae(e.value,"@","@"+pe)})],r);case Tl:if(e.length)return qy(n=e.props,function(o){switch(Yt(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":dr(fn(e,{props:[ae(o,/:(read-\w+)/,":"+Uo+"$1")]})),dr(fn(e,{props:[o]})),Lu(e,{props:Lf(n,r)});break;case"::placeholder":dr(fn(e,{props:[ae(o,/:(plac\w+)/,":"+pe+"input-$1")]})),dr(fn(e,{props:[ae(o,/:(plac\w+)/,":"+Uo+"$1")]})),dr(fn(e,{props:[ae(o,/:(plac\w+)/,ye+"input-$1")]})),dr(fn(e,{props:[o]})),Lu(e,{props:Lf(n,r)});break}return""})}}var lw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ft={},Qr=typeof process<"u"&&ft!==void 0&&(ft.REACT_APP_SC_ATTR||ft.SC_ATTR)||"data-styled",Tg="active",Rg="data-styled-version",Ll="6.1.18",Hc=`/*!sc*/
|
|
59
|
+
`,Ji=typeof window<"u"&&typeof document<"u",aw=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ft!==void 0&&ft.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ft.REACT_APP_SC_DISABLE_SPEEDY!==""?ft.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ft.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ft!==void 0&&ft.SC_DISABLE_SPEEDY!==void 0&&ft.SC_DISABLE_SPEEDY!==""&&ft.SC_DISABLE_SPEEDY!=="false"&&ft.SC_DISABLE_SPEEDY),uw={},Ol=Object.freeze([]),Kr=Object.freeze({});function _g(e,t,n){return n===void 0&&(n=Kr),e.theme!==n.theme&&e.theme||t||n.theme}var Pg=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),cw=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,dw=/(^-|-$)/g;function Mf(e){return e.replace(cw,"-").replace(dw,"")}var fw=/(a)(d)/gi,Ms=52,Af=function(e){return String.fromCharCode(e+(e>25?39:97))};function Mu(e){var t,n="";for(t=Math.abs(e);t>Ms;t=t/Ms|0)n=Af(t%Ms)+n;return(Af(t%Ms)+n).replace(fw,"$1-$2")}var ha,Lg=5381,Rr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Og=function(e){return Rr(Lg,e)};function Vc(e){return Mu(Og(e)>>>0)}function pw(e){return e.displayName||e.name||"Component"}function ma(e){return typeof e=="string"&&!0}var Ng=typeof Symbol=="function"&&Symbol.for,Mg=Ng?Symbol.for("react.memo"):60115,hw=Ng?Symbol.for("react.forward_ref"):60112,mw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},gw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ag={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xw=((ha={})[hw]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ha[Mg]=Ag,ha);function Ff(e){return("type"in(t=e)&&t.type.$$typeof)===Mg?Ag:"$$typeof"in e?xw[e.$$typeof]:mw;var t}var vw=Object.defineProperty,yw=Object.getOwnPropertyNames,If=Object.getOwnPropertySymbols,ww=Object.getOwnPropertyDescriptor,Sw=Object.getPrototypeOf,Df=Object.prototype;function Fg(e,t,n){if(typeof t!="string"){if(Df){var r=Sw(t);r&&r!==Df&&Fg(e,r,n)}var o=yw(t);If&&(o=o.concat(If(t)));for(var s=Ff(e),l=Ff(t),a=0;a<o.length;++a){var u=o[a];if(!(u in gw||n&&n[u]||l&&u in l||s&&u in s)){var c=ww(t,u);try{vw(e,u,c)}catch{}}}}return e}function lr(e){return typeof e=="function"}function qc(e){return typeof e=="object"&&"styledComponentId"in e}function Gn(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Yi(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function as(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Au(e,t,n){if(n===void 0&&(n=!1),!n&&!as(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Au(e[r],t[r]);else if(as(t))for(var r in t)e[r]=Au(e[r],t[r]);return e}function Qc(e,t){Object.defineProperty(e,"toString",{value:t})}function Nn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var jw=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw Nn(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var l=o;l<s;l++)this.groupSizes[l]=0}for(var a=this.indexOfGroup(t+1),u=(l=0,n.length);l<u;l++)this.tag.insertRule(a,n[l])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,l=o;l<s;l++)n+="".concat(this.tag.getRule(l)).concat(Hc);return n},e}(),xi=new Map,Xi=new Map,vi=1,As=function(e){if(xi.has(e))return xi.get(e);for(;Xi.has(vi);)vi++;var t=vi++;return xi.set(e,t),Xi.set(t,e),t},kw=function(e,t){vi=t+1,xi.set(e,t),Xi.set(t,e)},bw="style[".concat(Qr,"][").concat(Rg,'="').concat(Ll,'"]'),Ew=new RegExp("^".concat(Qr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Cw=function(e,t,n){for(var r,o=n.split(","),s=0,l=o.length;s<l;s++)(r=o[s])&&e.registerName(t,r)},Tw=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Hc),o=[],s=0,l=r.length;s<l;s++){var a=r[s].trim();if(a){var u=a.match(Ew);if(u){var c=0|parseInt(u[1],10),p=u[2];c!==0&&(kw(p,c),Cw(e,p,u[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}},$f=function(e){for(var t=document.querySelectorAll(bw),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Qr)!==Tg&&(Tw(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Rw(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ig=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(a){var u=Array.from(a.querySelectorAll("style[".concat(Qr,"]")));return u[u.length-1]}(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(Qr,Tg),r.setAttribute(Rg,Ll);var l=Rw();return l&&r.setAttribute("nonce",l),n.insertBefore(r,s),r},_w=function(){function e(t){this.element=Ig(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var l=r[o];if(l.ownerNode===n)return l}throw Nn(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Pw=function(){function e(t){this.element=Ig(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Lw=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Bf=Ji,Ow={isServer:!Ji,useCSSOMInjection:!aw},Zi=function(){function e(t,n,r){t===void 0&&(t=Kr),n===void 0&&(n={});var o=this;this.options=Be(Be({},Ow),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Ji&&Bf&&(Bf=!1,$f(this)),Qc(this,function(){return function(s){for(var l=s.getTag(),a=l.length,u="",c=function(d){var f=function(g){return Xi.get(g)}(d);if(f===void 0)return"continue";var b=s.names.get(f),k=l.getGroup(d);if(b===void 0||!b.size||k.length===0)return"continue";var v="".concat(Qr,".g").concat(d,'[id="').concat(f,'"]'),C="";b!==void 0&&b.forEach(function(g){g.length>0&&(C+="".concat(g,","))}),u+="".concat(k).concat(v,'{content:"').concat(C,'"}').concat(Hc)},p=0;p<a;p++)c(p);return u}(o)})}return e.registerId=function(t){return As(t)},e.prototype.rehydrate=function(){!this.server&&Ji&&$f(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Be(Be({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Lw(o):r?new _w(o):new Pw(o)}(this.options),new jw(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(As(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(As(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(As(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Nw=/&/g,Mw=/^\s*\/\/.*$/gm;function Dg(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Dg(n.children,t)),n})}function Aw(e){var t,n,r,o=Kr,s=o.options,l=s===void 0?Kr:s,a=o.plugins,u=a===void 0?Ol:a,c=function(f,b,k){return k.startsWith(n)&&k.endsWith(n)&&k.replaceAll(n,"").length>0?".".concat(t):f},p=u.slice();p.push(function(f){f.type===Tl&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(Nw,n).replace(r,c))}),l.prefix&&p.push(iw),p.push(rw);var d=function(f,b,k,v){b===void 0&&(b=""),k===void 0&&(k=""),v===void 0&&(v="&"),t=v,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var C=f.replace(Mw,""),g=tw(k||b?"".concat(k," ").concat(b," { ").concat(C," }"):C);l.namespace&&(g=Dg(g,l.namespace));var h=[];return Gi(g,ow(p.concat(sw(function(m){return h.push(m)})))),h};return d.hash=u.length?u.reduce(function(f,b){return b.name||Nn(15),Rr(f,b.name)},Lg).toString():"",d}var Fw=new Zi,Fu=Aw(),$g=st.createContext({shouldForwardProp:void 0,styleSheet:Fw,stylis:Fu});$g.Consumer;st.createContext(void 0);function Iu(){return A.useContext($g)}var Bg=function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=Fu);var l=r.name+s.hash;o.hasNameForId(r.id,l)||o.insertRules(r.id,l,s(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Qc(this,function(){throw Nn(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Fu),this.name+t.hash},e}(),Iw=function(e){return e>="A"&&e<="Z"};function zf(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Iw(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var zg=function(e){return e==null||e===!1||e===""},Ug=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!zg(s)&&(Array.isArray(s)&&s.isCss||lr(s)?r.push("".concat(zf(o),":"),s,";"):as(s)?r.push.apply(r,Hr(Hr(["".concat(o," {")],Ug(s),!1),["}"],!1)):r.push("".concat(zf(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in lw||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function _n(e,t,n,r){if(zg(e))return[];if(qc(e))return[".".concat(e.styledComponentId)];if(lr(e)){if(!lr(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return _n(o,t,n,r)}var s;return e instanceof Bg?n?(e.inject(n,r),[e.getName(r)]):[e]:as(e)?Ug(e):Array.isArray(e)?Array.prototype.concat.apply(Ol,e.map(function(l){return _n(l,t,n,r)})):[e.toString()]}function Wg(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(lr(n)&&!qc(n))return!1}return!0}var Dw=Og(Ll),$w=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&Wg(t),this.componentId=n,this.baseHash=Rr(Dw,n),this.baseStyle=r,Zi.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=Gn(o,this.staticRulesId);else{var s=Yi(_n(this.rules,t,n,r)),l=Mu(Rr(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,l)){var a=r(s,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,a)}o=Gn(o,l),this.staticRulesId=l}else{for(var u=Rr(this.baseHash,r.hash),c="",p=0;p<this.rules.length;p++){var d=this.rules[p];if(typeof d=="string")c+=d;else if(d){var f=Yi(_n(d,t,n,r));u=Rr(u,f+p),c+=f}}if(c){var b=Mu(u>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(c,".".concat(b),void 0,this.componentId)),o=Gn(o,b)}}return o},e}(),Gr=st.createContext(void 0);Gr.Consumer;function Nl(){var e=A.useContext(Gr);if(!e)throw Nn(18);return e}function Bw(e){var t=st.useContext(Gr),n=A.useMemo(function(){return function(r,o){if(!r)throw Nn(14);if(lr(r)){var s=r(o);return s}if(Array.isArray(r)||typeof r!="object")throw Nn(8);return o?Be(Be({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?st.createElement(Gr.Provider,{value:n},e.children):null}var ga={};function zw(e,t,n){var r=qc(e),o=e,s=!ma(e),l=t.attrs,a=l===void 0?Ol:l,u=t.componentId,c=u===void 0?function(w,S){var T=typeof w!="string"?"sc":Mf(w);ga[T]=(ga[T]||0)+1;var x="".concat(T,"-").concat(Vc(Ll+T+ga[T]));return S?"".concat(S,"-").concat(x):x}(t.displayName,t.parentComponentId):u,p=t.displayName,d=p===void 0?function(w){return ma(w)?"styled.".concat(w):"Styled(".concat(pw(w),")")}(e):p,f=t.displayName&&t.componentId?"".concat(Mf(t.displayName),"-").concat(t.componentId):t.componentId||c,b=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,k=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;k=function(w,S){return v(w,S)&&C(w,S)}}else k=v}var g=new $w(n,f,r?o.componentStyle:void 0);function h(w,S){return function(T,x,y){var E=T.attrs,_=T.componentStyle,j=T.defaultProps,R=T.foldedComponentIds,P=T.styledComponentId,N=T.target,F=st.useContext(Gr),W=Iu(),Y=T.shouldForwardProp||W.shouldForwardProp,z=_g(x,F,j)||Kr,K=function(Ie,ce,Ue){for(var $,B=Be(Be({},ce),{className:void 0,theme:Ue}),D=0;D<Ie.length;D+=1){var U=lr($=Ie[D])?$(B):$;for(var H in U)B[H]=H==="className"?Gn(B[H],U[H]):H==="style"?Be(Be({},B[H]),U[H]):U[H]}return ce.className&&(B.className=Gn(B.className,ce.className)),B}(E,x,z),J=K.as||N,re={};for(var M in K)K[M]===void 0||M[0]==="$"||M==="as"||M==="theme"&&K.theme===z||(M==="forwardedAs"?re.as=K.forwardedAs:Y&&!Y(M,J)||(re[M]=K[M]));var ee=function(Ie,ce){var Ue=Iu(),$=Ie.generateAndInjectStyles(ce,Ue.styleSheet,Ue.stylis);return $}(_,K),te=Gn(R,P);return ee&&(te+=" "+ee),K.className&&(te+=" "+K.className),re[ma(J)&&!Pg.has(J)?"class":"className"]=te,y&&(re.ref=y),A.createElement(J,re)}(m,w,S)}h.displayName=d;var m=st.forwardRef(h);return m.attrs=b,m.componentStyle=g,m.displayName=d,m.shouldForwardProp=k,m.foldedComponentIds=r?Gn(o.foldedComponentIds,o.styledComponentId):"",m.styledComponentId=f,m.target=r?o.target:e,Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(w){this._foldedDefaultProps=r?function(S){for(var T=[],x=1;x<arguments.length;x++)T[x-1]=arguments[x];for(var y=0,E=T;y<E.length;y++)Au(S,E[y],!0);return S}({},o.defaultProps,w):w}}),Qc(m,function(){return".".concat(m.styledComponentId)}),s&&Fg(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),m}function Uf(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Wf=function(e){return Object.assign(e,{isCss:!0})};function Kc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(lr(e)||as(e))return Wf(_n(Uf(Ol,Hr([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?_n(r):Wf(_n(Uf(r,t)))}function Du(e,t,n){if(n===void 0&&(n=Kr),!t)throw Nn(1,t);var r=function(o){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];return e(t,n,Kc.apply(void 0,Hr([o],s,!1)))};return r.attrs=function(o){return Du(e,t,Be(Be({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return Du(e,t,Be(Be({},n),o))},r}var Hg=function(e){return Du(zw,e)},me=Hg;Pg.forEach(function(e){me[e]=Hg(e)});var Uw=function(){function e(t,n){this.rules=t,this.componentId=n,this.isStatic=Wg(t),Zi.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,n,r,o){var s=o(Yi(_n(this.rules,n,r,o)),""),l=this.componentId+t;r.insertRules(l,l,s)},e.prototype.removeStyles=function(t,n){n.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,n,r,o){t>2&&Zi.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,o)},e}();function Ww(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Kc.apply(void 0,Hr([e],t,!1)),o="sc-global-".concat(Vc(JSON.stringify(r))),s=new Uw(r,o),l=function(u){var c=Iu(),p=st.useContext(Gr),d=st.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&a(d,u,c.styleSheet,p,c.stylis),st.useLayoutEffect(function(){if(!c.styleSheet.server)return a(d,u,c.styleSheet,p,c.stylis),function(){return s.removeStyles(d,c.styleSheet)}},[d,u,c.styleSheet,p,c.stylis]),null};function a(u,c,p,d,f){if(s.isStatic)s.renderStyles(u,uw,p,f);else{var b=Be(Be({},c),{theme:_g(c,d,l.defaultProps)});s.renderStyles(u,b,p,f)}}return st.memo(l)}function Vg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Yi(Kc.apply(void 0,Hr([e],t,!1))),o=Vc(r);return new Bg(o,r)}function Gc(e){let t="";for(let n in e){if(!e[n])continue;const r=n.replaceAll(/([A-Z])/g,"-$1").toLowerCase(),o=e[n];typeof o=="object"?t+=`${r}{
|
|
60
|
+
`+Gc(o)+`};
|
|
61
|
+
`:t+=`${r}: ${o};
|
|
62
|
+
`}return t}const Hw=Vg`
|
|
76
63
|
0% {
|
|
77
64
|
opacity: .0;
|
|
78
65
|
transform: translate(0,50vh);
|
|
@@ -81,23 +68,23 @@ Error generating stack: `+s.message+`
|
|
|
81
68
|
opacity: 1;
|
|
82
69
|
transform: translate(0,0);
|
|
83
70
|
}
|
|
84
|
-
`,
|
|
71
|
+
`,Vw=me.div`
|
|
85
72
|
box-sizing: border-box;
|
|
86
|
-
${({$sx:e})=>e?
|
|
73
|
+
${({$sx:e})=>e?Gc(e):""}
|
|
87
74
|
&[data-animate="true"] {
|
|
88
|
-
animation: ${
|
|
75
|
+
animation: ${Hw} 0.3s cubic-bezier(0.5, 0, 0.5, 1);
|
|
89
76
|
}
|
|
90
|
-
`,
|
|
77
|
+
`,qw=me.input`
|
|
91
78
|
box-sizing: border-box;
|
|
92
|
-
${({$sx:e})=>e?
|
|
93
|
-
`,
|
|
79
|
+
${({$sx:e})=>e?Gc(e):""}
|
|
80
|
+
`,qg=(e,t)=>{if(!(!t||!t.colors||!e))for(let n in e){const r=e[n];if(typeof r=="object"){qg(r,t);continue}if(!(!r||typeof r!="string"))if(t.colors[r])e[n]=t.colors[r];else for(let o in t.colors)r.indexOf(o)>-1&&(e[n]=r.replace(o,t.colors[o]))}},G=A.forwardRef((e,t)=>{const n=Nl(),{children:r,sx:o,title:s,style:l}=e,a={};for(let p in e)p.indexOf("data-")===0&&(a[p]=e[p]);let u=o;if(e.vflex&&(u||(u={}),u.display="flex",u.flexDirection="column"),e.cflex&&(u||(u={}),u.display="flex",u.flexDirection="column",u.alignItems="center",u.justifyContent="center"),qg(u,n),e.element&&e.element==="input")return i.jsx(qw,{ref:t??null,id:e.id,...a,style:l,onClick:e.onClick,$sx:u,type:e.type,onChange:()=>{},value:e.value});let c=r;return e.scrollable&&(u||(u={}),u.position="relative",u.overflow="auto",c=i.jsx(G,{sx:{},children:r})),i.jsx(Vw,{"data-animate":e.animate,ref:t??null,id:e.id,title:s,style:l,...a,onClick:e.onClick,onMouseOver:p=>{e.onMouseOver&&e.index!==void 0&&e.onMouseOver(e.index)},$sx:u,children:c})}),V=e=>{const t={...e};return t.sx={...t.sx,display:"flex"},t.gap&&(t.sx={...t.sx,gap:t.gap}),t.center&&(t.sx={...t.sx,justifyContent:"center",alignItems:"center"}),i.jsx(G,{...t})},O=A.forwardRef((e,t)=>{const n={...e};return n.sx={...n.sx,display:"flex",flexDirection:"column"},n.gap&&(n.sx={...n.sx,gap:n.gap}),n.center&&(n.sx={...n.sx,justifyContent:"center",alignItems:"center"}),i.jsx(G,{ref:t,...n})}),q=A.forwardRef(({onClick:e,bold:t,italic:n,children:r,variant:o,sx:s,block:l,capitalize:a,uppercase:u,align:c,weight:p,color:d,inline:f},b)=>{const k=Nl();if(o&&k&&k.typo){const C=k.typo[o];if(C){for(let g in C){const h=C[g];if((h+"").startsWith("--")){const m=(h+"").substring(2);m in k.colors&&(C[g]=k.colors[m])}}s={...C,...s}}}const v={...s};return l&&(v.display="block",v.textOverflow="ellipsis",v.overflow="hidden"),c&&(v.textAlign=c),p&&(v.fontWeight=p),d&&(v.color=d),a&&(v.textTransform="capitalize"),u&&(v.textTransform="uppercase"),n&&(v.fontStyle="italic"),t&&(v.fontWeight="700"),f&&(v.display="inline-block"),i.jsx(G,{onClick:e,sx:v,ref:b,children:r})}),Qw=e=>{let t=e.sx;return t||(t={}),t.fontSize="11px",t={...e.sx,...t},i.jsx(q,{...e,sx:t})},Me=e=>{let t=e.sx;return t||(t={}),t.fontSize="12px",t.color="#465264",e.color&&(t.color=e.color),t={...t,"@media (prefers-color-scheme: dark)":{}},t={...t,...e.sx},i.jsx(q,{...e,sx:t})},Kw=e=>{let t=e.sx;return t||(t={}),t.fontSize="14px",t={...e.sx,...t},i.jsx(q,{...e,sx:t})},Gw=e=>i.jsx(q,{...e,sx:{fontSize:"13px",color:"#8a0037",...e.sx}}),Jc=({error:e,sx:t})=>{let n=null;if(e)if(typeof e=="object"&&"code"in e&&"message"in e)n=e;else if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")n={code:0,message:e};else if(typeof e=="object"&&("code"in e||"message"in e))n=e.error;else try{n={code:1,message:JSON.stringify(e)}}catch{n={code:2,message:"unknown error"}}return!n||n.code<=-100?null:i.jsxs(G,{sx:{border:"1px dashed red",padding:"10px",borderRadius:"6px",backgroundColor:"rgba(255,0,0,0.1)",...t},children:[i.jsx(Gw,{children:n.message}),n.details&&i.jsx(Kw,{block:!0,children:n.details})]})},Jw=A.forwardRef(({size:e,grow:t,minHeight:n},r)=>i.jsx(G,{ref:r,sx:{minWidth:e,minHeight:n||e,flexShrink:n?"0":"unset",maxWidth:e,maxHeight:e,width:e,height:n&&e,flexGrow:t?"1":void 0}})),mr={padding:"16px 20px",borderRadius:"6px",cursor:"pointer",boxShadow:"0px 0px 10px rgba(0,0,0,.1)",transition:"background-color .2s, border .2s",display:"flex",alignItems:"center",position:"relative",gap:"10px",fontWeight:"400",userSelect:"none",fontSize:".95rem",justifyContent:"center",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",backgroundColor:"buttonBackgroundPrimary",color:"buttonTextPrimary","&:hover":{transition:"background-color .2s, border .2s",backgroundColor:"buttonBackgroundPrimaryHover"}},Hf={...mr,backgroundColor:"transparent",border:"1px solid rgba(127,116,116,.1)",boxShadow:"none",fontWeight:"400",color:"buttonTextSecondary","&:hover":{backgroundColor:"rgba(0,0,0,.02)"}},Vf={fontSize:".8rem",padding:"10px 16px"},Qg={primary:{...mr},secondary:{...Hf},empty:{...mr,boxShadow:"none",backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"}},icon:{...mr,border:"0px solid buttonBackgroundSecondary",boxShadow:"none",backgroundColor:"transparent",padding:"10px","&:hover":{backgroundColor:"transparent",border:"0px solid buttonBackgroundPrimary"}},primarySmall:{...mr,...Vf},secondarySmall:{...Hf,...Vf},emptySmall:{...mr}},el=({onClick:e,icon:t,children:n,variant:r,sx:o,iconRight:s,disabled:l,title:a,center:u})=>{!r&&t&&!a&&!n&&(r="icon"),r||(r="primary");let c={};!n&&a&&(n=a);let p=n;const d=Nl();return d&&d.buttons&&d.buttons[r]&&(c=d.buttons[r]),i.jsxs(G,{sx:{...c,...o,pointerEvents:l?"none":"auto"},onClick:e,children:[l&&i.jsx(G,{sx:{top:"0px",left:"0px",position:"absolute",backgroundColor:"rgba(0,0,0,.04)",backdropFilter:"saturate(0.1)",width:"100%",height:"100%",borderRadius:"6px",zIndex:1}}),t&&i.jsx(G,{sx:{alignItems:"center",lineHeight:"0px"},children:t}),p,s&&i.jsxs(i.Fragment,{children:[!u&&i.jsx(Jw,{grow:!0}),i.jsx(G,{sx:{lineHeight:"0px"},children:s})]})]})},Yw=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M8.00052 8.93385L4.73385 12.2005C4.61163 12.3227 4.45608 12.3839 4.26719 12.3839C4.0783 12.3839 3.92274 12.3227 3.80052 12.2005C3.6783 12.0783 3.61719 11.9227 3.61719 11.7339C3.61719 11.545 3.6783 11.3894 3.80052 11.2672L7.06719 8.00052L3.80052 4.73385C3.6783 4.61163 3.61719 4.45608 3.61719 4.26719C3.61719 4.0783 3.6783 3.92274 3.80052 3.80052C3.92274 3.6783 4.0783 3.61719 4.26719 3.61719C4.45608 3.61719 4.61163 3.6783 4.73385 3.80052L8.00052 7.06719L11.2672 3.80052C11.3894 3.6783 11.545 3.61719 11.7339 3.61719C11.9227 3.61719 12.0783 3.6783 12.2005 3.80052C12.3227 3.92274 12.3839 4.0783 12.3839 4.26719C12.3839 4.45608 12.3227 4.61163 12.2005 4.73385L8.93385 8.00052L12.2005 11.2672C12.3227 11.3894 12.3839 11.545 12.3839 11.7339C12.3839 11.9227 12.3227 12.0783 12.2005 12.2005C12.0783 12.3227 11.9227 12.3839 11.7339 12.3839C11.545 12.3839 11.3894 12.3227 11.2672 12.2005L8.00052 8.93385Z",fill:"#14171F",fillOpacity:"0.6"})}),Xw=Vg`
|
|
94
81
|
0% {
|
|
95
82
|
transform: rotate(0deg);
|
|
96
83
|
}
|
|
97
84
|
100% {
|
|
98
85
|
transform: rotate(360deg);
|
|
99
86
|
}
|
|
100
|
-
`,
|
|
87
|
+
`,Zw=me.div`
|
|
101
88
|
display: inline-block;
|
|
102
89
|
position: relative;
|
|
103
90
|
width: ${e=>e.$size}px;
|
|
@@ -114,7 +101,7 @@ Error generating stack: `+s.message+`
|
|
|
114
101
|
height: 90%;
|
|
115
102
|
border: ${e=>Math.round(e.$size*.1)}px solid ${e=>e.$color} ;
|
|
116
103
|
border-radius: 50%;
|
|
117
|
-
animation: ${
|
|
104
|
+
animation: ${Xw} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
118
105
|
border-color: ${e=>e.$color} transparent transparent transparent;
|
|
119
106
|
}
|
|
120
107
|
|
|
@@ -127,7 +114,7 @@ Error generating stack: `+s.message+`
|
|
|
127
114
|
&div:nth-child(3) {
|
|
128
115
|
animation-delay: -0.15s;
|
|
129
116
|
}
|
|
130
|
-
`,fs=({color:e,size:t=40})=>a.jsxs(d8,{$size:t,$color:e||"#665374",children:[a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]}),De=({children:e,onClose:t,label:r,scrollable:n,decorator:o,busy:s,sx:i,contentPadding:l})=>{o==="absolute"&&n&&(e=a.jsx(q,{sx:{display:o==="absolute"?"flex":void 0,flexDirection:o==="absolute"?"column":void 0,maxHeight:o==="absolute"?"80vh":void 0,zIndex:o==="absolute"?100:void 0,overflow:"auto"},children:e}));const c=r?a.jsx(q,{sx:{padding:l??"30px",boxSizing:"border-box",overflowX:"hidden",overflowY:"auto",flexGrow:1},children:e}):e,u=a.jsxs(q,{sx:{border:"1px solid rgba(255, 255, 255, 0.05)",padding:r?void 0:"30px",borderRadius:"6px",boxShadow:"0px 0px 100px rgba(0,0,0,.1)",pointerEvents:s?"none":"auto",userSelect:s?"none":"auto",display:"flex",position:"relative",flexDirection:"column",backgroundColor:"panelBackgroundPrimary",...i},children:[s&&a.jsxs(q,{sx:{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,.5)",zIndex:1e5,display:"flex",flexDirection:"column",gap:"10px",justifyContent:"center",alignItems:"center"},children:[a.jsx(fs,{color:"#ad1bf1"}),a.jsx(s8,{children:"Please wait..."})]}),r&&a.jsxs(a.Fragment,{children:[a.jsx(q,{sx:{backgroundColor:o==="absolute"?"panelHeadBackgroundColor":void 0,padding:"20px",boxSizing:"border-box",width:"100%"},children:a.jsx(M,{variant:"head",sx:{display:"flex",paddingRight:"30px",overflowWrap:"break-word",wordBreak:"break-all",width:"100%",fontWeight:o==="absolute"?"200":"500",fontSize:o==="absolute"?"1.4rem":"1.2rem"},children:r})}),a.jsx(q,{sx:{boxSizing:"border-box",background:"panelDividerBackgroundColor",height:"2px",maxHeight:"2px"}})]}),t&&a.jsx(Sm,{icon:a.jsx(u8,{}),sx:{position:"absolute",top:"20px",right:"20px"},onClick:t}),c,s&&a.jsx(q,{sx:{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",backdropFilter:"saturate(0.2)",zIndex:100001}})]});let f=a.jsx(a.Fragment,{children:u});return o==="absolute"&&(f=a.jsx(q,{sx:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:10,backgroundColor:"rgba(0,0,0,.6)"},children:u})),f},f8="#9a96ad",R=({children:e,sx:t})=>a.jsx(M,{variant:"caption",sx:{opacity:1,color:f8,letterSpacing:".02em",...t},children:e}),x8=new Ue.Req(e=>z5(e)),bm=new Ue.Req(e=>V1(e)),jm=new Ue.Req(()=>I5()),km=new Ue.Req(e=>e!=null&&e.weekKey?M5({weekKey:e.weekKey}):Promise.resolve({httpStatus:0})),p8=new Ue.Req(()=>$5()),h8=new Ue.Req(e=>Y5(e)),m8=new Ue.Req(()=>H5()),g8=new Ue.Req(e=>W5(e)),v8=new Ue.Req(()=>U5()),y8=new Ue.Req(()=>q5()),Bm=new Ue.Req(()=>V5()),C8=new Ue.Req(()=>G5()),E8=new Ue.Req(()=>X5()),w8=new Ue.Req(()=>Q5()),S8=new Ue.Req(e=>e!=null&&e.confirm?K5(e.confirm):Promise.resolve({httpStatus:0})),zt=(e,t,r=!0)=>{const n=z.useRef(e);n.current=e,z.useEffect(()=>{if(!r)return;n.current();const o=setInterval(()=>n.current(),t);return()=>clearInterval(o)},[t,r])},b8={top:16,right:16,bottom:26,left:48},Cx=4,j8=e=>{if(e<=0)return 1;const t=Math.pow(10,Math.floor(Math.log10(e))),r=e/t;return(r<=1?1:r<=2?2:r<=5?5:10)*t},Ex=(e,t,r,n)=>{if(t.length===0)return;const o=s=>Math.max(r,Math.min(n,s));if(e.moveTo(t[0].x,t[0].y),t.length<3){for(let s=1;s<t.length;s++)e.lineTo(t[s].x,t[s].y);return}for(let s=0;s<t.length-1;s++){const i=t[s-1]??t[s],l=t[s],c=t[s+1],u=t[s+2]??c,f=l.x+(c.x-i.x)/6,h=o(l.y+(c.y-i.y)/6),d=c.x-(u.x-l.x)/6,C=o(c.y-(u.y-l.y)/6);e.bezierCurveTo(f,h,d,C,c.x,c.y)}},wx=(e,t)=>{const r=Math.max(0,Math.min(1,t));if(e.startsWith("#")){let n=e.slice(1);n.length===3&&(n=n.split("").map(l=>l+l).join(""));const o=parseInt(n.slice(0,2),16),s=parseInt(n.slice(2,4),16),i=parseInt(n.slice(4,6),16);return`rgba(${o},${s},${i},${r})`}if(e.startsWith("rgb")){const[n,o,s]=e.replace(/rgba?\(/,"").replace(/\)/,"").split(",");return`rgba(${n.trim()},${o.trim()},${s.trim()},${r})`}return e},Le=({series:e,labels:t,height:r=200,unit:n="",yMax:o,formatValue:s,hover:i,onHoverChange:l,padding:c})=>{const u=za(),f=z.useRef(null),h=z.useRef(null),[d,C]=z.useState(600),[y,m]=z.useState(null),E=i!==void 0,v=E?i??null:y,x={...b8,...c??{}},p=z.useCallback(k=>s?s(k):`${Math.round(k*100)/100}${n}`,[s,n]),g=t.length;z.useLayoutEffect(()=>{const k=f.current;if(!k)return;const A=new ResizeObserver(N=>{var $;const F=($=N[0])==null?void 0:$.contentRect.width;F&&C(Math.max(160,Math.floor(F)))});return A.observe(k),()=>A.disconnect()},[]),z.useEffect(()=>{const k=h.current,A=k==null?void 0:k.getContext("2d");if(!k||!A)return;const N=window.devicePixelRatio||1;k.width=d*N,k.height=r*N,k.style.width=d+"px",k.style.height=r+"px",A.setTransform(N,0,0,N,0,0),A.clearRect(0,0,d,r);const F=d-x.left-x.right,$=r-x.top-x.bottom,K="rgba(255,255,255,.07)",X="rgba(255,255,255,.35)",ne=e.flatMap(B=>B.values.filter(O=>Number.isFinite(O))),H=ne.length?Math.max(...ne):0,U=o??j8(H||1),V=B=>x.left+(g<=1?F/2:F*B/(g-1)),P=B=>x.top+$-$*Math.min(B,U)/U;A.font="11px -apple-system, sans-serif",A.textBaseline="middle",A.textAlign="right";for(let B=0;B<=Cx;B++){const O=U/Cx*B,_=P(O);A.strokeStyle=K,A.lineWidth=1,A.beginPath(),A.moveTo(x.left,_),A.lineTo(d-x.right,_),A.stroke(),A.fillStyle=X,A.fillText(p(O),x.left-8,_)}if(A.textAlign="center",A.textBaseline="top",g>0){const B=Math.max(2,Math.floor(F/90)),O=Math.max(1,Math.ceil(g/B));for(let _=0;_<g;_+=O)A.fillStyle=X,A.fillText(t[_],V(_),r-x.bottom+8)}for(const B of e){if(B.values.length===0)continue;const O=[];let _=[];for(let G=0;G<B.values.length;G++){const le=B.values[G];Number.isFinite(le)?_.push({x:V(G),y:P(le)}):_.length>0&&(O.push(_),_=[])}if(_.length>0&&O.push(_),O.length===0)continue;const te=A.createLinearGradient(0,x.top,0,x.top+$);te.addColorStop(0,wx(B.color,.33)),te.addColorStop(1,wx(B.color,0));for(const G of O)A.save(),A.beginPath(),Ex(A,G,x.top,x.top+$),A.lineTo(G[G.length-1].x,x.top+$),A.lineTo(G[0].x,x.top+$),A.closePath(),A.fillStyle=te,A.fill(),A.restore(),A.beginPath(),Ex(A,G,x.top,x.top+$),A.strokeStyle=B.color,A.lineWidth=2,A.lineJoin="round",A.stroke()}if(v!==null&&v>=0&&v<g){const B=V(v);A.strokeStyle="rgba(255,255,255,.25)",A.lineWidth=1,A.beginPath(),A.moveTo(B,x.top),A.lineTo(B,x.top+$),A.stroke();for(const O of e){const _=O.values[v];Number.isFinite(_)&&(A.beginPath(),A.arc(B,P(_),3.5,0,Math.PI*2),A.fillStyle=O.color,A.fill(),A.strokeStyle=u.colors.panelBackgroundPrimary,A.lineWidth=2,A.stroke())}}},[e,t,d,r,o,v,u,p,g,x.top,x.right,x.bottom,x.left]);const S=k=>{E?l==null||l(k):m(k)},b=k=>{if(g===0)return;const A=k.currentTarget.getBoundingClientRect(),N=d-x.left-x.right,F=(k.clientX-A.left-x.left)/N,$=Math.round(F*(g-1));S(Math.max(0,Math.min(g-1,$)))},w=()=>{E||m(null)},j=v!==null?x.left+(d-x.left-x.right)*v/Math.max(1,g-1):0,D=j>d/2;return a.jsxs(T,{sx:{gap:"10px",width:"100%"},children:[a.jsx(I,{sx:{gap:"16px",flexWrap:"wrap"},children:e.map(k=>a.jsxs(I,{sx:{gap:"6px",alignItems:"center"},children:[a.jsx(q,{sx:{width:"10px",height:"10px",borderRadius:"2px",backgroundColor:k.color}}),a.jsx(dt,{children:k.name})]},k.name))}),a.jsxs(q,{ref:f,sx:{position:"relative",width:"100%"},children:[g===0?a.jsx(q,{sx:{height:r+"px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px dashed rgba(255,255,255,.1)",borderRadius:"6px"},children:a.jsx(dt,{children:"No data for the selected range"})}):a.jsx("canvas",{ref:h,onMouseMove:b,onMouseLeave:w}),v!==null&&g>0&&a.jsxs(q,{sx:{position:"absolute",top:"0px",[D?"right":"left"]:(D?d-j+8:j+8)+"px",backgroundColor:"rgba(0,0,0,.85)",border:"1px solid rgba(255,255,255,.12)",borderRadius:"6px",padding:"8px 10px",pointerEvents:"none",minWidth:"120px",zIndex:5},children:[a.jsx(dt,{children:t[v]}),e.map(k=>a.jsxs(I,{sx:{gap:"8px",justifyContent:"space-between",marginTop:"2px"},children:[a.jsxs(I,{sx:{gap:"6px",alignItems:"center"},children:[a.jsx(q,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:k.color}}),a.jsx(dt,{children:k.name})]}),a.jsx(M,{variant:"medium",children:Number.isFinite(k.values[v])?p(k.values[v]):"—"})]},k.name))]})]})]})},Ia=(e,t)=>{const r=new Date(e),n=String(r.getHours()).padStart(2,"0"),o=String(r.getMinutes()).padStart(2,"0");if(t==="hour")return`${n}:${o}`;const s=String(r.getDate()).padStart(2,"0"),i=String(r.getMonth()+1).padStart(2,"0");return`${s}.${i} ${n}:${o}`},k8=e=>{const t=String(e);return new Date(+t.slice(0,4),+t.slice(4,6)-1,+t.slice(6,8),+t.slice(8,10),+t.slice(10,12)).getTime()},Be=e=>{if(!Number.isFinite(e))return"—";const t=Math.abs(e);return t<1024?`${e} B`:t<1024**2?`${(e/1024).toFixed(1)} KB`:t<1024**3?`${(e/1024/1024).toFixed(1)} MB`:`${(e/1024/1024/1024).toFixed(2)} GB`},Oc=e=>{if(!Number.isFinite(e)||e<0)return"—";const t=Math.floor(e),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),o=Math.floor(t%3600/60),s=t%60;return r?`${r}d ${n}h`:n?`${n}h ${o}m`:o?`${o}m ${s}s`:`${s}s`},Us=e=>e>=1024?`${(e/1024).toFixed(1)} GB`:`${Math.round(e)} MB`,Am=e=>{const t=new Map,r=o=>{let s=t.get(o);return s||(s={endpoint:o,success:0,fail:0,total:0},t.set(o,s)),s};for(const{slot:o}of e){for(const[s,i]of Object.entries(o.successEp))r(s).success+=i;for(const[s,i]of Object.entries(o.failEp))r(s).fail+=i}const n=[...t.values()];return n.forEach(o=>o.total=o.success+o.fail),n.sort((o,s)=>s.total-o.total),n},B8=e=>{const t=new Map;for(const{slot:r}of e)for(const[n,o]of Object.entries(r.http??{}))t.set(n,(t.get(n)??0)+o);return[...t.entries()].map(([r,n])=>({url:r,count:n})).sort((r,n)=>n.count-r.count)},Fm=e=>{const t=new Map,r=o=>{let s=t.get(o);return s||(s={query:o,success:0,fail:0,total:0},t.set(o,s)),s};for(const{slot:o}of e){for(const[s,i]of Object.entries(o.success_sql??{}))r(s).success+=i;for(const[s,i]of Object.entries(o.fail_sql??{}))r(s).fail+=i}const n=[...t.values()];return n.forEach(o=>o.total=o.success+o.fail),n.sort((o,s)=>s.total-o.total),n},yo="#bb5656",Sx="#48BFE3",A8="#5390d9",F8="#c48af0",bx=e=>{const t=/^(\d{4})-W(\d{1,2})$/.exec(e);if(!t)return e;const r=+t[1],n=+t[2],s=new Date(r,0,4).getDay()||7,i=new Date(r,0,4-s+1+(n-1)*7);if(Number.isNaN(i.getTime()))return e;const l=String(i.getDate()).padStart(2,"0"),c=String(i.getMonth()+1).padStart(2,"0");return`${e} · ${l}.${c}`},D8=e=>e.length>96?e.slice(0,96)+"…":e,_8=()=>{const[e,t]=z.useState([]),[r,n]=z.useState(null),[o,s]=z.useState(null),[i,l]=z.useState([]),[c,u]=z.useState(null),[,f,,h]=jm.useRequest(w=>{if(w!=null&&w.error){n(w.error.details??w.error.message);return}n(null);const j=[...(w==null?void 0:w.data)??[]].sort().reverse();t(j),j.length>0&&!o&&s(j[0])}),[,d,,C]=km.useRequest(w=>{if(w!=null&&w.error){u(w.error.details??w.error.message),l([]);return}!w||!w.data&&w.httpStatus===0||(u(null),l(w.data??[]))});z.useEffect(()=>{f()},[]),z.useEffect(()=>{if(!o){l([]);return}d({weekKey:o})},[o]);const y=z.useMemo(()=>[{name:"CPU %",color:F8,values:i.map(w=>w.slot.cpu)}],[i]),m=z.useMemo(()=>[{name:"RSS",color:A8,values:i.map(w=>w.slot.memory.rss*1024*1024)},{name:"Heap used",color:Sx,values:i.map(w=>w.slot.memory.heapUsed*1024*1024)}],[i]),E=z.useMemo(()=>i.map(w=>Ia(w.timestamp,"day")),[i]),v=z.useMemo(()=>Am(i),[i]),x=z.useMemo(()=>Fm(i),[i]),p=v.slice(0,10),g=x.slice(0,10),S=v.reduce((w,j)=>w+j.total,0),b=v.reduce((w,j)=>w+j.fail,0);return a.jsxs(T,{sx:{gap:"20px"},children:[a.jsx(De,{label:"Metrics archive",children:a.jsxs(T,{sx:{gap:"16px"},children:[a.jsxs(I,{sx:{gap:"12px",alignItems:"center",flexWrap:"wrap"},children:[a.jsx(R,{children:"Persisted weeks"}),h&&a.jsx(fs,{size:14}),r&&a.jsx(M,{variant:"medium",sx:{color:yo,fontSize:".8rem"},children:r})]}),!h&&e.length===0&&!r&&a.jsxs(R,{children:["No archived weeks yet — the backend either has no ",a.jsx("code",{children:"metricsDir"})," configured, or the current week hasn't been persisted to disk yet."]}),e.length>0&&a.jsx(I,{sx:{gap:"8px",flexWrap:"wrap"},children:e.map(w=>{const j=w===o;return a.jsx(q,{onClick:()=>s(w),sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".76rem",fontFamily:"monospace",color:j?"#fff":"rgba(255,255,255,.75)",backgroundColor:j?"#5390d9":"rgba(255,255,255,.05)",border:"1px solid "+(j?"#5390d9":"rgba(255,255,255,.08)"),"&:hover":j?void 0:{backgroundColor:"rgba(255,255,255,.09)"}},children:bx(w)},w)})})]})}),o&&a.jsx(De,{label:`Week ${bx(o)}`,children:a.jsxs(T,{sx:{gap:"20px"},children:[a.jsxs(I,{sx:{gap:"20px",alignItems:"baseline",flexWrap:"wrap"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Samples"}),a.jsx(M,{variant:"headMedium",children:i.length})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Requests"}),a.jsx(M,{variant:"headMedium",sx:{color:Sx},children:S})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Failed"}),a.jsx(M,{variant:"headMedium",sx:{color:b>0?yo:void 0},children:b})]}),C&&a.jsx(fs,{size:16})]}),c&&a.jsx(M,{variant:"medium",sx:{color:yo,fontSize:".85rem"},children:c}),!C&&!c&&i.length===0&&a.jsx(R,{children:"No samples in this week."}),i.length>0&&a.jsxs(a.Fragment,{children:[a.jsxs(T,{sx:{gap:"10px"},children:[a.jsx(R,{children:"CPU %"}),a.jsx(Le,{series:y,labels:E,height:180,yMax:100,formatValue:w=>`${Math.round(w*100)/100}%`})]}),a.jsxs(T,{sx:{gap:"10px"},children:[a.jsx(R,{children:"Memory"}),a.jsx(Le,{series:m,labels:E,height:180,formatValue:Be})]}),p.length>0&&a.jsxs(T,{sx:{gap:"8px"},children:[a.jsx(R,{children:"Top endpoints"}),p.map(w=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"16px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w.endpoint}),a.jsxs(I,{sx:{gap:"12px",flexShrink:0},children:[a.jsx(dt,{children:w.total}),w.fail>0&&a.jsxs(M,{variant:"caption",sx:{color:yo,opacity:1},children:[w.fail," fail"]})]})]},w.endpoint))]}),g.length>0&&a.jsxs(T,{sx:{gap:"8px"},children:[a.jsx(R,{children:"Top SQL"}),g.map(w=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"16px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".76rem",opacity:.9,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:D8(w.query)}),a.jsxs(I,{sx:{gap:"12px",flexShrink:0},children:[a.jsxs(dt,{children:[w.success," ok"]}),w.fail>0&&a.jsxs(M,{variant:"caption",sx:{color:yo,opacity:1},children:[w.fail," fail"]})]})]},w.query))]})]})]})})]})},R8=45e3,jx="#56bb56",n0="#bb5656",T8="#e9b61e",P8="#5390d9",O8="#c48af0",qs={left:56,right:16,top:12,bottom:26},Vs=170,qe="__all__",L8=e=>{const t=new Date(e);return`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}`},N8=e=>{const t=/^(\d{4})-W(\d{1,2})$/.exec(e);if(!t)return e;const r=+t[1],n=+t[2],s=new Date(r,0,4).getDay()||7,i=new Date(r,0,4-s+1+(n-1)*7);if(Number.isNaN(i.getTime()))return e;const l=String(i.getDate()).padStart(2,"0"),c=String(i.getMonth()+1).padStart(2,"0");return`${e} · ${l}.${c}`},Qs=(e,t)=>{if(!e)return 0;if(t!==void 0)return e[t]??0;let r=0;for(const n in e)r+=e[n];return r},z8=fe.select`
|
|
117
|
+
`,Jr=({color:e,size:t=40})=>i.jsxs(Zw,{$size:t,$color:e||"#665374",children:[i.jsx("div",{}),i.jsx("div",{}),i.jsx("div",{}),i.jsx("div",{})]}),Ae=({children:e,onClose:t,label:n,scrollable:r,decorator:o,busy:s,sx:l,contentPadding:a})=>{o==="absolute"&&r&&(e=i.jsx(G,{sx:{display:o==="absolute"?"flex":void 0,flexDirection:o==="absolute"?"column":void 0,maxHeight:o==="absolute"?"80vh":void 0,zIndex:o==="absolute"?100:void 0,overflow:"auto"},children:e}));const u=n?i.jsx(G,{sx:{padding:a??"30px",boxSizing:"border-box",overflowX:"hidden",overflowY:"auto",flexGrow:1},children:e}):e,c=i.jsxs(G,{sx:{border:"1px solid rgba(255, 255, 255, 0.05)",padding:n?void 0:"30px",borderRadius:"6px",boxShadow:"0px 0px 100px rgba(0,0,0,.1)",pointerEvents:s?"none":"auto",userSelect:s?"none":"auto",display:"flex",position:"relative",flexDirection:"column",backgroundColor:"panelBackgroundPrimary",...l},children:[s&&i.jsxs(G,{sx:{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,.5)",zIndex:1e5,display:"flex",flexDirection:"column",gap:"10px",justifyContent:"center",alignItems:"center"},children:[i.jsx(Jr,{color:"#ad1bf1"}),i.jsx(Qw,{children:"Please wait..."})]}),n&&i.jsxs(i.Fragment,{children:[i.jsx(G,{sx:{backgroundColor:o==="absolute"?"panelHeadBackgroundColor":void 0,padding:"20px",boxSizing:"border-box",width:"100%"},children:i.jsx(q,{variant:"head",sx:{display:"flex",paddingRight:"30px",overflowWrap:"break-word",wordBreak:"break-all",width:"100%",fontWeight:o==="absolute"?"200":"500",fontSize:o==="absolute"?"1.4rem":"1.2rem"},children:n})}),i.jsx(G,{sx:{boxSizing:"border-box",background:"panelDividerBackgroundColor",height:"2px",maxHeight:"2px"}})]}),t&&i.jsx(el,{icon:i.jsx(Yw,{}),sx:{position:"absolute",top:"20px",right:"20px"},onClick:t}),u,s&&i.jsx(G,{sx:{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",backdropFilter:"saturate(0.2)",zIndex:100001}})]});let p=i.jsx(i.Fragment,{children:c});return o==="absolute"&&(p=i.jsx(G,{sx:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:10,backgroundColor:"rgba(0,0,0,.6)"},children:c})),p},e5="#9a96ad",L=({children:e,sx:t})=>i.jsx(q,{variant:"caption",sx:{opacity:1,color:e5,letterSpacing:".02em",...t},children:e}),t5=new Xe.Req(e=>by(e)),Kg=new Xe.Req(e=>Ey(e)),Gg=new Xe.Req(()=>Cy()),Jg=new Xe.Req(e=>e!=null&&e.weekKey?Ty({weekKey:e.weekKey}):Promise.resolve({httpStatus:0})),n5=new Xe.Req(()=>Ry()),r5=new Xe.Req(e=>$y(e)),o5=new Xe.Req(()=>_y()),s5=new Xe.Req(e=>Py(e)),i5=new Xe.Req(()=>Ly()),l5=new Xe.Req(()=>Oy()),Yg=new Xe.Req(()=>Ny()),a5=new Xe.Req(()=>Fy()),u5=new Xe.Req(()=>Iy()),c5=new Xe.Req(()=>My()),d5=new Xe.Req(e=>e!=null&&e.confirm?Ay(e):Promise.resolve({httpStatus:0})),Bt=(e,t,n=!0)=>{const r=A.useRef(e);r.current=e,A.useEffect(()=>{if(!n)return;r.current();const o=setInterval(()=>r.current(),t);return()=>clearInterval(o)},[t,n])},f5={top:16,right:16,bottom:26,left:48},qf=4,p5=e=>{if(e<=0)return 1;const t=Math.pow(10,Math.floor(Math.log10(e))),n=e/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t},Qf=(e,t,n,r)=>{if(t.length===0)return;const o=s=>Math.max(n,Math.min(r,s));if(e.moveTo(t[0].x,t[0].y),t.length<3){for(let s=1;s<t.length;s++)e.lineTo(t[s].x,t[s].y);return}for(let s=0;s<t.length-1;s++){const l=t[s-1]??t[s],a=t[s],u=t[s+1],c=t[s+2]??u,p=a.x+(u.x-l.x)/6,d=o(a.y+(u.y-l.y)/6),f=u.x-(c.x-a.x)/6,b=o(u.y-(c.y-a.y)/6);e.bezierCurveTo(p,d,f,b,u.x,u.y)}},Kf=(e,t)=>{const n=Math.max(0,Math.min(1,t));if(e.startsWith("#")){let r=e.slice(1);r.length===3&&(r=r.split("").map(a=>a+a).join(""));const o=parseInt(r.slice(0,2),16),s=parseInt(r.slice(2,4),16),l=parseInt(r.slice(4,6),16);return`rgba(${o},${s},${l},${n})`}if(e.startsWith("rgb")){const[r,o,s]=e.replace(/rgba?\(/,"").replace(/\)/,"").split(",");return`rgba(${r.trim()},${o.trim()},${s.trim()},${n})`}return e},He=({series:e,labels:t,height:n=200,unit:r="",yMax:o,formatValue:s,hover:l,onHoverChange:a,padding:u})=>{const c=Nl(),p=A.useRef(null),d=A.useRef(null),[f,b]=A.useState(600),[k,v]=A.useState(null),C=l!==void 0,g=C?l??null:k,h={...f5,...u??{}},m=A.useCallback(_=>s?s(_):`${Math.round(_*100)/100}${r}`,[s,r]),w=t.length;A.useLayoutEffect(()=>{const _=p.current;if(!_)return;const j=new ResizeObserver(R=>{var N;const P=(N=R[0])==null?void 0:N.contentRect.width;P&&b(Math.max(160,Math.floor(P)))});return j.observe(_),()=>j.disconnect()},[]),A.useEffect(()=>{const _=d.current,j=_==null?void 0:_.getContext("2d");if(!_||!j)return;const R=window.devicePixelRatio||1;_.width=f*R,_.height=n*R,_.style.width=f+"px",_.style.height=n+"px",j.setTransform(R,0,0,R,0,0),j.clearRect(0,0,f,n);const P=f-h.left-h.right,N=n-h.top-h.bottom,F="rgba(255,255,255,.07)",W="rgba(255,255,255,.35)",Y=e.flatMap(M=>M.values.filter(ee=>Number.isFinite(ee))),z=Y.length?Math.max(...Y):0,K=o??p5(z||1),J=M=>h.left+(w<=1?P/2:P*M/(w-1)),re=M=>h.top+N-N*Math.min(M,K)/K;j.font="11px -apple-system, sans-serif",j.textBaseline="middle",j.textAlign="right";for(let M=0;M<=qf;M++){const ee=K/qf*M,te=re(ee);j.strokeStyle=F,j.lineWidth=1,j.beginPath(),j.moveTo(h.left,te),j.lineTo(f-h.right,te),j.stroke(),j.fillStyle=W,j.fillText(m(ee),h.left-8,te)}if(j.textAlign="center",j.textBaseline="top",w>0){const M=Math.max(2,Math.floor(P/90)),ee=Math.max(1,Math.ceil(w/M));for(let te=0;te<w;te+=ee)j.fillStyle=W,j.fillText(t[te],J(te),n-h.bottom+8)}for(const M of e){if(M.values.length===0)continue;const ee=[];let te=[];for(let ce=0;ce<M.values.length;ce++){const Ue=M.values[ce];Number.isFinite(Ue)?te.push({x:J(ce),y:re(Ue)}):te.length>0&&(ee.push(te),te=[])}if(te.length>0&&ee.push(te),ee.length===0)continue;const Ie=j.createLinearGradient(0,h.top,0,h.top+N);Ie.addColorStop(0,Kf(M.color,.33)),Ie.addColorStop(1,Kf(M.color,0));for(const ce of ee)j.save(),j.beginPath(),Qf(j,ce,h.top,h.top+N),j.lineTo(ce[ce.length-1].x,h.top+N),j.lineTo(ce[0].x,h.top+N),j.closePath(),j.fillStyle=Ie,j.fill(),j.restore(),j.beginPath(),Qf(j,ce,h.top,h.top+N),j.strokeStyle=M.color,j.lineWidth=2,j.lineJoin="round",j.stroke()}if(g!==null&&g>=0&&g<w){const M=J(g);j.strokeStyle="rgba(255,255,255,.25)",j.lineWidth=1,j.beginPath(),j.moveTo(M,h.top),j.lineTo(M,h.top+N),j.stroke();for(const ee of e){const te=ee.values[g];Number.isFinite(te)&&(j.beginPath(),j.arc(M,re(te),3.5,0,Math.PI*2),j.fillStyle=ee.color,j.fill(),j.strokeStyle=c.colors.panelBackgroundPrimary,j.lineWidth=2,j.stroke())}}},[e,t,f,n,o,g,c,m,w,h.top,h.right,h.bottom,h.left]);const S=_=>{C?a==null||a(_):v(_)},T=_=>{if(w===0)return;const j=_.currentTarget.getBoundingClientRect(),R=f-h.left-h.right,P=(_.clientX-j.left-h.left)/R,N=Math.round(P*(w-1));S(Math.max(0,Math.min(w-1,N)))},x=()=>{C||v(null)},y=g!==null?h.left+(f-h.left-h.right)*g/Math.max(1,w-1):0,E=y>f/2;return i.jsxs(O,{sx:{gap:"10px",width:"100%"},children:[i.jsx(V,{sx:{gap:"16px",flexWrap:"wrap"},children:e.map(_=>i.jsxs(V,{sx:{gap:"6px",alignItems:"center"},children:[i.jsx(G,{sx:{width:"10px",height:"10px",borderRadius:"2px",backgroundColor:_.color}}),i.jsx(Me,{children:_.name})]},_.name))}),i.jsxs(G,{ref:p,sx:{position:"relative",width:"100%"},children:[w===0?i.jsx(G,{sx:{height:n+"px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px dashed rgba(255,255,255,.1)",borderRadius:"6px"},children:i.jsx(Me,{children:"No data for the selected range"})}):i.jsx("canvas",{ref:d,onMouseMove:T,onMouseLeave:x}),g!==null&&w>0&&i.jsxs(G,{sx:{position:"absolute",top:"0px",[E?"right":"left"]:(E?f-y+8:y+8)+"px",backgroundColor:"rgba(0,0,0,.85)",border:"1px solid rgba(255,255,255,.12)",borderRadius:"6px",padding:"8px 10px",pointerEvents:"none",minWidth:"120px",zIndex:5},children:[i.jsx(Me,{children:t[g]}),e.map(_=>i.jsxs(V,{sx:{gap:"8px",justifyContent:"space-between",marginTop:"2px"},children:[i.jsxs(V,{sx:{gap:"6px",alignItems:"center"},children:[i.jsx(G,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:_.color}}),i.jsx(Me,{children:_.name})]}),i.jsx(q,{variant:"medium",children:Number.isFinite(_.values[g])?m(_.values[g]):"—"})]},_.name))]})]})]})},Ml=(e,t)=>{const n=new Date(e),r=String(n.getHours()).padStart(2,"0"),o=String(n.getMinutes()).padStart(2,"0");if(t==="hour")return`${r}:${o}`;const s=String(n.getDate()).padStart(2,"0"),l=String(n.getMonth()+1).padStart(2,"0");return`${s}.${l} ${r}:${o}`},h5=e=>{const t=String(e);return new Date(+t.slice(0,4),+t.slice(4,6)-1,+t.slice(6,8),+t.slice(8,10),+t.slice(10,12)).getTime()},Oe=e=>{if(!Number.isFinite(e))return"—";const t=Math.abs(e);return t<1024?`${e} B`:t<1024**2?`${(e/1024).toFixed(1)} KB`:t<1024**3?`${(e/1024/1024).toFixed(1)} MB`:`${(e/1024/1024/1024).toFixed(2)} GB`},Yc=e=>{if(!Number.isFinite(e)||e<0)return"—";const t=Math.floor(e),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),o=Math.floor(t%3600/60),s=t%60;return n?`${n}d ${r}h`:r?`${r}h ${o}m`:o?`${o}m ${s}s`:`${s}s`},Fs=e=>e>=1024?`${(e/1024).toFixed(1)} GB`:`${Math.round(e)} MB`,Xg=e=>{const t=new Map,n=o=>{let s=t.get(o);return s||(s={endpoint:o,success:0,fail:0,total:0},t.set(o,s)),s};for(const{slot:o}of e){for(const[s,l]of Object.entries(o.successEp))n(s).success+=l;for(const[s,l]of Object.entries(o.failEp))n(s).fail+=l}const r=[...t.values()];return r.forEach(o=>o.total=o.success+o.fail),r.sort((o,s)=>s.total-o.total),r},m5=e=>{const t=new Map;for(const{slot:n}of e)for(const[r,o]of Object.entries(n.http??{}))t.set(r,(t.get(r)??0)+o);return[...t.entries()].map(([n,r])=>({url:n,count:r})).sort((n,r)=>r.count-n.count)},Zg=e=>{const t=new Map,n=o=>{let s=t.get(o);return s||(s={query:o,success:0,fail:0,total:0},t.set(o,s)),s};for(const{slot:o}of e){for(const[s,l]of Object.entries(o.success_sql??{}))n(s).success+=l;for(const[s,l]of Object.entries(o.fail_sql??{}))n(s).fail+=l}const r=[...t.values()];return r.forEach(o=>o.total=o.success+o.fail),r.sort((o,s)=>s.total-o.total),r},go="#bb5656",Gf="#48BFE3",g5="#5390d9",x5="#c48af0",Jf=e=>{const t=/^(\d{4})-W(\d{1,2})$/.exec(e);if(!t)return e;const n=+t[1],r=+t[2],s=new Date(n,0,4).getDay()||7,l=new Date(n,0,4-s+1+(r-1)*7);if(Number.isNaN(l.getTime()))return e;const a=String(l.getDate()).padStart(2,"0"),u=String(l.getMonth()+1).padStart(2,"0");return`${e} · ${a}.${u}`},v5=e=>e.length>96?e.slice(0,96)+"…":e,y5=()=>{const[e,t]=A.useState([]),[n,r]=A.useState(null),[o,s]=A.useState(null),[l,a]=A.useState([]),[u,c]=A.useState(null),[,p,,d]=Gg.useRequest(x=>{if(x!=null&&x.error){r(x.error.details??x.error.message);return}r(null);const y=[...(x==null?void 0:x.data)??[]].sort().reverse();t(y),y.length>0&&!o&&s(y[0])}),[,f,,b]=Jg.useRequest(x=>{if(x!=null&&x.error){c(x.error.details??x.error.message),a([]);return}!x||!x.data&&x.httpStatus===0||(c(null),a(x.data??[]))});A.useEffect(()=>{p()},[]),A.useEffect(()=>{if(!o){a([]);return}f({weekKey:o})},[o]);const k=A.useMemo(()=>[{name:"CPU %",color:x5,values:l.map(x=>x.slot.cpu)}],[l]),v=A.useMemo(()=>[{name:"RSS",color:g5,values:l.map(x=>x.slot.memory.rss*1024*1024)},{name:"Heap used",color:Gf,values:l.map(x=>x.slot.memory.heapUsed*1024*1024)}],[l]),C=A.useMemo(()=>l.map(x=>Ml(x.timestamp,"day")),[l]),g=A.useMemo(()=>Xg(l),[l]),h=A.useMemo(()=>Zg(l),[l]),m=g.slice(0,10),w=h.slice(0,10),S=g.reduce((x,y)=>x+y.total,0),T=g.reduce((x,y)=>x+y.fail,0);return i.jsxs(O,{sx:{gap:"20px"},children:[i.jsx(Ae,{label:"Metrics archive",children:i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(V,{sx:{gap:"12px",alignItems:"center",flexWrap:"wrap"},children:[i.jsx(L,{children:"Persisted weeks"}),d&&i.jsx(Jr,{size:14}),n&&i.jsx(q,{variant:"medium",sx:{color:go,fontSize:".8rem"},children:n})]}),!d&&e.length===0&&!n&&i.jsxs(L,{children:["No archived weeks yet — the backend either has no ",i.jsx("code",{children:"metricsDir"})," configured, or the current week hasn't been persisted to disk yet."]}),e.length>0&&i.jsx(V,{sx:{gap:"8px",flexWrap:"wrap"},children:e.map(x=>{const y=x===o;return i.jsx(G,{onClick:()=>s(x),sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".76rem",fontFamily:"monospace",color:y?"#fff":"rgba(255,255,255,.75)",backgroundColor:y?"#5390d9":"rgba(255,255,255,.05)",border:"1px solid "+(y?"#5390d9":"rgba(255,255,255,.08)"),"&:hover":y?void 0:{backgroundColor:"rgba(255,255,255,.09)"}},children:Jf(x)},x)})})]})}),o&&i.jsx(Ae,{label:`Week ${Jf(o)}`,children:i.jsxs(O,{sx:{gap:"20px"},children:[i.jsxs(V,{sx:{gap:"20px",alignItems:"baseline",flexWrap:"wrap"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Samples"}),i.jsx(q,{variant:"headMedium",children:l.length})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Requests"}),i.jsx(q,{variant:"headMedium",sx:{color:Gf},children:S})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Failed"}),i.jsx(q,{variant:"headMedium",sx:{color:T>0?go:void 0},children:T})]}),b&&i.jsx(Jr,{size:16})]}),u&&i.jsx(q,{variant:"medium",sx:{color:go,fontSize:".85rem"},children:u}),!b&&!u&&l.length===0&&i.jsx(L,{children:"No samples in this week."}),l.length>0&&i.jsxs(i.Fragment,{children:[i.jsxs(O,{sx:{gap:"10px"},children:[i.jsx(L,{children:"CPU %"}),i.jsx(He,{series:k,labels:C,height:180,yMax:100,formatValue:x=>`${Math.round(x*100)/100}%`})]}),i.jsxs(O,{sx:{gap:"10px"},children:[i.jsx(L,{children:"Memory"}),i.jsx(He,{series:v,labels:C,height:180,formatValue:Oe})]}),m.length>0&&i.jsxs(O,{sx:{gap:"8px"},children:[i.jsx(L,{children:"Top endpoints"}),m.map(x=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"16px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x.endpoint}),i.jsxs(V,{sx:{gap:"12px",flexShrink:0},children:[i.jsx(Me,{children:x.total}),x.fail>0&&i.jsxs(q,{variant:"caption",sx:{color:go,opacity:1},children:[x.fail," fail"]})]})]},x.endpoint))]}),w.length>0&&i.jsxs(O,{sx:{gap:"8px"},children:[i.jsx(L,{children:"Top SQL"}),w.map(x=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"16px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".76rem",opacity:.9,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v5(x.query)}),i.jsxs(V,{sx:{gap:"12px",flexShrink:0},children:[i.jsxs(Me,{children:[x.success," ok"]}),x.fail>0&&i.jsxs(q,{variant:"caption",sx:{color:go,opacity:1},children:[x.fail," fail"]})]})]},x.query))]})]})]})})]})},w5=45e3,Yf="#56bb56",xa="#bb5656",S5="#e9b61e",j5="#5390d9",k5="#c48af0",Is={left:56,right:16,top:12,bottom:26},Ds=170,Ze="__all__",b5=e=>{const t=new Date(e);return`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}`},E5=e=>{const t=/^(\d{4})-W(\d{1,2})$/.exec(e);if(!t)return e;const n=+t[1],r=+t[2],s=new Date(n,0,4).getDay()||7,l=new Date(n,0,4-s+1+(r-1)*7);if(Number.isNaN(l.getTime()))return e;const a=String(l.getDate()).padStart(2,"0"),u=String(l.getMonth()+1).padStart(2,"0");return`${e} · ${a}.${u}`},un=e=>!e||Object.keys(e).length===0,$s=(e,t)=>{if(!e)return 0;if(t!==void 0)return e[t]??0;let n=0;for(const r in e)n+=e[r];return n},C5=me.select`
|
|
131
118
|
padding: 6px 10px;
|
|
132
119
|
border-radius: 6px;
|
|
133
120
|
font-size: 0.78rem;
|
|
@@ -139,11 +126,11 @@ Error generating stack: `+s.message+`
|
|
|
139
126
|
&:focus {
|
|
140
127
|
border-color: #5390d9;
|
|
141
128
|
}
|
|
142
|
-
`,
|
|
129
|
+
`,xo=({value:e,onChange:t,options:n,width:r})=>i.jsx(C5,{value:e,onChange:o=>t(o.target.value),style:{minWidth:r??"160px"},children:n.map(o=>i.jsx("option",{value:o.value,children:o.label},o.value))}),T5=me.div`
|
|
143
130
|
display: flex;
|
|
144
131
|
flex-direction: column;
|
|
145
132
|
gap: 20px;
|
|
146
|
-
`,
|
|
133
|
+
`,R5=[{value:"hour",label:"Hour"},{value:"day",label:"Day"},{value:"week",label:"Week"}],Bs=({title:e,subtitle:t,children:n})=>i.jsxs(O,{sx:{gap:"8px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",alignItems:"baseline",gap:"12px",flexWrap:"wrap"},children:[i.jsx(q,{variant:"headMedium",children:e}),t&&i.jsx(Me,{children:t})]}),n]}),_5=()=>{const[e,t]=A.useState("live"),[n,r]=A.useState("day"),[o,s]=A.useState(""),[l,a]=A.useState([]),[u,c]=A.useState([]),[p,d]=A.useState(!1),[f,b]=A.useState(null),[k,v]=A.useState(null),[C,g]=A.useState(Ze),[h,m]=A.useState(Ze),[w,S]=A.useState(null),[,T]=Kg.useRequest(M=>{if(d(!1),M!=null&&M.error){b(M.error);return}b(null),c((M==null?void 0:M.data)??[]),v(Date.now())}),[,x]=Gg.useRequest(M=>{if(M!=null&&M.error)return;const ee=[...(M==null?void 0:M.data)??[]].sort().reverse();a(ee)}),[,y]=Jg.useRequest(M=>{if(d(!1),!(!M||M.httpStatus===0&&!M.data&&!M.error)){if(M.error){b(M.error);return}b(null),c(M.data??[]),v(Date.now())}});A.useEffect(()=>{x()},[]),A.useEffect(()=>{d(!0),e==="live"?T({range:n}):o?y({weekKey:o}):(d(!1),c([]))},[e,n,o]),A.useEffect(()=>{if(e!=="live")return;const M=window.setInterval(()=>T({range:n}),w5);return()=>window.clearInterval(M)},[e,n]);const E=A.useMemo(()=>{const M=new Set;for(const ee of u){for(const te in ee.slot.successEp)M.add(te);for(const te in ee.slot.failEp)M.add(te)}return[...M].sort()},[u]),_=A.useMemo(()=>{const M=new Set;for(const ee of u){for(const te in ee.slot.http_ok??{})M.add(te);for(const te in ee.slot.http_fail??{})M.add(te);for(const te in ee.slot.httpP95??{})M.add(te)}return[...M].sort()},[u]);A.useEffect(()=>{C!==Ze&&!E.includes(C)&&g(Ze)},[E,C]),A.useEffect(()=>{h!==Ze&&!_.includes(h)&&m(Ze)},[_,h]);const j=A.useMemo(()=>u.map(M=>Ml(M.timestamp,e==="live"?n:"day")),[u,e,n]),R=A.useMemo(()=>{const M=C===Ze?void 0:C;return[{name:"OK",color:Yf,values:u.map(ee=>$s(ee.slot.successEp,M))},{name:"FAIL",color:xa,values:u.map(ee=>$s(ee.slot.failEp,M))}]},[u,C]),P=A.useMemo(()=>{const M=h===Ze?void 0:h;return[{name:"OK",color:Yf,values:u.map(ee=>un(ee.slot.http_ok)&&un(ee.slot.http_fail)?NaN:$s(ee.slot.http_ok,M))},{name:"FAIL",color:xa,values:u.map(ee=>un(ee.slot.http_ok)&&un(ee.slot.http_fail)?NaN:$s(ee.slot.http_fail,M))}]},[u,h]),N=A.useMemo(()=>[{name:"rss",color:j5,values:u.map(M=>M.slot.memory.rss*1024*1024)},{name:"external",color:k5,values:u.map(M=>{const ee=M.slot.memory.external;return typeof ee!="number"||ee<=0?NaN:ee*1024*1024})}],[u]),F=A.useMemo(()=>{const M=u.map(ee=>{const te=ee.slot.httpP95;if(un(te))return NaN;if(h===Ze){let ce=0;for(const Ue in te)te[Ue]>ce&&(ce=te[Ue]);return ce>0?ce:NaN}const Ie=te[h];return typeof Ie=="number"&&Ie>0?Ie:NaN});return[{name:h===Ze?"max p95 (all hosts)":"p95",color:S5,values:M}]},[u,h]),W=u.length===0,Y=u.some(M=>!un(M.slot.http_ok)||!un(M.slot.http_fail)),z=u.some(M=>!un(M.slot.httpP95)),K=[{value:Ze,label:"All endpoints"},...E.map(M=>({value:M,label:M}))],J=[{value:Ze,label:"All hosts"},..._.map(M=>({value:M,label:M}))],re=[{value:"",label:l.length?"Pick a week…":"No archived weeks"},...l.map(M=>({value:M,label:E5(M)}))];return i.jsxs(O,{sx:{gap:"20px"},children:[i.jsx(Ae,{label:"Correlations",children:i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(V,{sx:{gap:"16px",flexWrap:"wrap",alignItems:"center"},children:[i.jsxs(V,{sx:{gap:"6px",alignItems:"center"},children:[i.jsx(L,{children:"Source"}),i.jsx(xo,{value:e,onChange:M=>t(M),width:"120px",options:[{value:"live",label:"Live"},{value:"week",label:"Archive"}]})]}),e==="live"?i.jsxs(V,{sx:{gap:"6px",alignItems:"center"},children:[i.jsx(L,{children:"Range"}),i.jsx(xo,{value:n,onChange:M=>r(M),width:"120px",options:R5})]}):i.jsxs(V,{sx:{gap:"6px",alignItems:"center"},children:[i.jsx(L,{children:"Week"}),i.jsx(xo,{value:o,onChange:M=>s(M),width:"200px",options:re})]}),i.jsxs(V,{sx:{gap:"6px",alignItems:"center"},children:[i.jsx(L,{children:"Endpoint"}),i.jsx(xo,{value:C,onChange:M=>g(M),options:K})]}),i.jsxs(V,{sx:{gap:"6px",alignItems:"center"},children:[i.jsx(L,{children:"Host"}),i.jsx(xo,{value:h,onChange:M=>m(M),options:J})]}),i.jsxs(V,{sx:{gap:"10px",alignItems:"center",marginLeft:"auto"},children:[p&&i.jsx(Jr,{size:14}),k&&i.jsxs(Me,{children:["Updated ",new Date(k).toLocaleTimeString()]}),i.jsx(G,{onClick:()=>{d(!0),e==="live"?T({range:n}):o&&y({weekKey:o})},sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".72rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"#fff",backgroundColor:"#5390d9","&:hover":{backgroundColor:"#4b83c7"}},children:"Refresh"})]})]}),f&&i.jsx(G,{sx:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"rgba(187,86,86,.12)",border:"1px solid rgba(187,86,86,.35)"},children:i.jsx(q,{variant:"medium",sx:{color:xa,fontSize:".85rem"},children:f.code===401?"No access — check monitor credentials.":f.details||f.message})}),!f&&W&&!p&&i.jsx(L,{children:"No metrics data for the current selection."})]})}),!W&&!f&&i.jsxs(T5,{onMouseLeave:()=>S(null),children:[i.jsx(Ae,{children:i.jsx(Bs,{title:"Incoming requests",subtitle:C===Ze?"all endpoints, per slot":C,children:i.jsx(He,{series:R,labels:j,height:Ds,padding:Is,hover:w,onHoverChange:S,formatValue:M=>Math.round(M).toString()})})}),i.jsx(Ae,{children:i.jsx(Bs,{title:"Outgoing requests",subtitle:Y?h===Ze?"all hosts, per slot":h:"Slots don't carry outgoing counters yet (backend older than the http_ok/http_fail upgrade).",children:i.jsx(He,{series:P,labels:j,height:Ds,padding:Is,hover:w,onHoverChange:S,formatValue:M=>Math.round(M).toString()})})}),i.jsx(Ae,{children:i.jsx(Bs,{title:"Memory",subtitle:"rss and external, MB",children:i.jsx(He,{series:N,labels:j,height:Ds,padding:Is,hover:w,onHoverChange:S,formatValue:Oe})})}),i.jsx(Ae,{children:i.jsx(Bs,{title:"Outgoing p95 (ms)",subtitle:z?h===Ze?"worst host per slot":h:"Slots don't carry per-slot p95 yet (backend older than the httpP95 upgrade).",children:i.jsx(He,{series:F,labels:j,height:Ds,padding:Is,hover:w,onHoverChange:S,formatValue:M=>`${Math.round(M)} ms`})})}),w!==null&&u[w]&&i.jsxs(L,{sx:{fontSize:".72rem"},children:["Focused slot: ",i.jsx("b",{children:new Date(u[w].timestamp).toLocaleString()})," ·"," ",b5(u[w].timestamp)]})]})]})},Pn=me.input`
|
|
147
134
|
width: 100%;
|
|
148
135
|
box-sizing: border-box;
|
|
149
136
|
padding: 13px 14px;
|
|
@@ -160,7 +147,30 @@ Error generating stack: `+s.message+`
|
|
|
160
147
|
&::placeholder {
|
|
161
148
|
color: rgba(255, 255, 255, 0.35);
|
|
162
149
|
}
|
|
163
|
-
`,
|
|
150
|
+
`,P5=3e3,Xf=5e3,L5=400,O5=[100,200,500,1e3,2e3],$u="#bb5656",Bu="#e9b61e",er="#5390d9",N5="\0skip",M5=me.div`
|
|
151
|
+
font-family: monospace;
|
|
152
|
+
font-size: 0.74rem;
|
|
153
|
+
line-height: 1.5;
|
|
154
|
+
background-color: rgba(0, 0, 0, 0.35);
|
|
155
|
+
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
156
|
+
border-radius: 6px;
|
|
157
|
+
padding: 10px 12px;
|
|
158
|
+
height: 65vh;
|
|
159
|
+
overflow: auto;
|
|
160
|
+
white-space: pre-wrap;
|
|
161
|
+
word-break: break-all;
|
|
162
|
+
`,A5=me.select`
|
|
163
|
+
padding: 6px 8px;
|
|
164
|
+
border-radius: 6px;
|
|
165
|
+
font-size: 0.76rem;
|
|
166
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
167
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
168
|
+
color: inherit;
|
|
169
|
+
outline: none;
|
|
170
|
+
&:focus {
|
|
171
|
+
border-color: ${er};
|
|
172
|
+
}
|
|
173
|
+
`,F5=e=>{if(/\b(error|crit|fatal|emerg|alert)\b/i.test(e)||/"\s5\d\d\s/.test(e))return $u;if(/\bwarn(ing)?\b/i.test(e)||/"\s4\d\d\s/.test(e))return Bu},va=({active:e,onClick:t,children:n})=>i.jsx(G,{onClick:t,sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".7rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:e?"#fff":"rgba(255,255,255,.7)",backgroundColor:e?er:"rgba(255,255,255,.05)",border:"1px solid "+(e?er:"rgba(255,255,255,.1)"),"&:hover":{backgroundColor:e?er:"rgba(255,255,255,.09)"}},children:n}),I5=()=>{const[e,t]=A.useState(null),[n,r]=A.useState(null),[o,s]=A.useState(null),[l,a]=A.useState([]),[u,c]=A.useState(200),[p,d]=A.useState(""),[f,b]=A.useState(""),[k,v]=A.useState(!0),[C,g]=A.useState(!1),[h,m]=A.useState(null),[w,S]=A.useState(null),T=A.useRef(null),x=A.useRef(!1),y=A.useRef(0),E=A.useRef(null),_=A.useRef(!0),j=A.useCallback(async()=>{const W=await Dy();if(W.error){r(W.error.details||W.error.message);return}const Y=W.data??[];r(null),t(Y),s(z=>{var K,J;return z??((K=Y.find(re=>re.readable))==null?void 0:K.id)??((J=Y[0])==null?void 0:J.id)??null})},[]);A.useEffect(()=>{j()},[j]),A.useEffect(()=>{const W=window.setTimeout(()=>b(p.trim()),L5);return()=>window.clearTimeout(W)},[p]);const R=(e==null?void 0:e.find(W=>W.id===o))??null,P=(R==null?void 0:R.readable)===!0,N=A.useCallback(async()=>{if(!o||!P)return;const W=++y.current;x.current=!0,g(!0);const Y=await Pf({source:o,lines:u,filter:f||void 0});if(W!==y.current)return;if(x.current=!1,g(!1),Y.error){m(Y.error.details||Y.error.message);return}const z=Y.data;m(null),T.current=z.cursor,S({path:z.path,size:z.size}),_.current=!0,a(z.lines.map(K=>({text:K})))},[o,P,u,f]);A.useEffect(()=>{T.current=null,a([]),S(null),m(null),N()},[N]),A.useEffect(()=>{if(!k||!o||!P)return;const W=async()=>{if(x.current||T.current===null||document.hidden)return;const z=y.current;x.current=!0;const K=await Pf({source:o,since:T.current,filter:f||void 0});if(z!==y.current)return;if(x.current=!1,K.error){m(K.error.details||K.error.message);return}const J=K.data;if(m(null),T.current=J.cursor,S({path:J.path,size:J.size}),J.rotated){a([{text:"— file rotated, showing fresh tail —",kind:"note"},...J.lines.map(re=>({text:re}))]);return}J.lines.length===0&&!J.truncated||a(re=>{const M=re.slice();J.truncated&&M.push({text:N5,kind:"sep"});for(const ee of J.lines)M.push({text:ee});return M.length>Xf?M.slice(M.length-Xf):M})},Y=window.setInterval(W,P5);return()=>window.clearInterval(Y)},[k,o,P,f]),A.useLayoutEffect(()=>{const W=E.current;W&&_.current&&(W.scrollTop=W.scrollHeight)},[l]);const F=()=>{const W=E.current;W&&(_.current=W.scrollTop+W.clientHeight>=W.scrollHeight-24)};return n?i.jsx(q,{variant:"medium",sx:{color:$u},children:n}):e?e.length===0?i.jsx(L,{children:"No file log sources reported by the backend."}):i.jsxs(O,{sx:{gap:"14px"},children:[i.jsx(V,{sx:{gap:"8px",flexWrap:"wrap"},children:e.map(W=>{const Y=W.id===o;return i.jsx(G,{onClick:()=>s(W.id),title:W.readable?W.path??"":W.reason??"unavailable",sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".72rem",fontFamily:"monospace",opacity:W.readable?1:.45,color:Y?"#fff":"rgba(255,255,255,.75)",backgroundColor:Y?W.readable?er:"rgba(255,255,255,.12)":"rgba(255,255,255,.05)",border:"1px solid "+(Y?W.readable?er:"rgba(255,255,255,.2)":"rgba(255,255,255,.08)")},children:W.id},W.id)})}),R&&!P&&i.jsxs(O,{sx:{gap:"6px",padding:"14px",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.2)"},children:[i.jsx(q,{variant:"medium",children:R.label}),R.path&&i.jsx(L,{sx:{fontFamily:"monospace"},children:R.path}),i.jsx(q,{variant:"medium",sx:{color:Bu,fontSize:".82rem"},children:R.reason??(R.configured?"Not readable":"Not configured on the backend")})]}),R&&P&&i.jsxs(i.Fragment,{children:[i.jsxs(V,{sx:{gap:"10px",alignItems:"center",flexWrap:"wrap"},children:[i.jsx(G,{sx:{flex:"1 1 220px",minWidth:"180px",maxWidth:"360px"},children:i.jsx(Pn,{value:p,placeholder:"Filter (substring, case-insensitive)",onChange:W=>d(W.target.value),style:{padding:"7px 10px",fontSize:".78rem"}})}),i.jsx(L,{children:"Lines"}),i.jsx(A5,{value:u,onChange:W=>c(+W.target.value),children:O5.map(W=>i.jsx("option",{value:W,children:W},W))}),i.jsx(va,{active:k,onClick:()=>v(W=>!W),children:k?"● Live":"Paused"}),i.jsx(va,{onClick:()=>N(),children:"Reload"}),i.jsx(va,{onClick:()=>a([]),children:"Clear"}),C&&i.jsx(Jr,{size:14}),i.jsx(G,{sx:{marginLeft:"auto"},children:w&&i.jsxs(L,{sx:{fontFamily:"monospace",fontSize:".68rem"},children:[w.path," · ",Oe(w.size)," · ",l.length," lines"]})})]}),h&&i.jsx(q,{variant:"medium",sx:{color:$u,fontSize:".82rem"},children:h}),i.jsxs(M5,{ref:E,onScroll:F,children:[l.length===0&&!C&&i.jsx("span",{style:{opacity:.5},children:f?"No lines match the filter.":"Log is empty."}),l.map((W,Y)=>W.kind==="sep"?i.jsx("div",{style:{color:Bu,opacity:.8,textAlign:"center"},children:"… more than 512 KB appended — lines skipped …"},Y):W.kind==="note"?i.jsx("div",{style:{color:er,opacity:.8},children:W.text},Y):i.jsx("div",{style:{color:F5(W.text)},children:W.text},Y))]}),i.jsx(L,{sx:{fontSize:".68rem"},children:"Sensitive values (cards, CVV, passwords, tokens) are masked on the server, so filtering by them is not possible."})]})]}):i.jsx(L,{children:"Loading…"})},D5=["ALL","API","INFO","DB","WARN","ERROR","CRIT"],ro=({title:e,onClose:t,children:n,width:r="720px"})=>{A.useEffect(()=>{const s=l=>l.key==="Escape"&&t();return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[t]);const o=i.jsx(G,{onClick:t,sx:{position:"fixed",inset:"0",backgroundColor:"rgba(0,0,0,.6)",backdropFilter:"blur(2px)",zIndex:1e4,display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"60px 20px",overflowY:"auto"},children:i.jsxs(O,{onClick:s=>s==null?void 0:s.stopPropagation(),sx:{width:r,maxWidth:"100%",backgroundColor:"panelBackgroundPrimary",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",boxShadow:"0 20px 60px rgba(0,0,0,.5)",maxHeight:"calc(100vh - 120px)"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",alignItems:"center",padding:"16px 20px",borderBottom:"1px solid rgba(255,255,255,.08)"},children:[i.jsx(q,{variant:"headMedium",children:e??"Details"}),i.jsx(G,{onClick:t,sx:{cursor:"pointer",padding:"4px 10px",borderRadius:"4px",opacity:.6,"&:hover":{opacity:1,backgroundColor:"rgba(255,255,255,.08)"}},children:"✕"})]}),i.jsx(G,{sx:{padding:"20px",overflowY:"auto"},children:n})]})});return z1.createPortal(o,document.body)},zs=32,$5=15e3,B5=1e3,ya=200,Al={ALL:10,API:19,INFO:20,DB:25,WARN:30,ERROR:40,CRIT:50},zu=e=>{const t=parseInt(e,10);return Number.isNaN(t)?Al[e==null?void 0:e.toUpperCase()]??20:t},ex=e=>{var l,a;const t=parseInt(e,10),n=zu(e),r=(l=Object.entries(Al).find(([,u])=>u===n))==null?void 0:l[0],o=((a=Number.isNaN(t)?e:r??e)==null?void 0:a.toUpperCase())??"LOG";let s="#8a8699";return n>=50?s="#e0457b":n>=40?s="#bb5656":n>=30?s="#e9b61e":n>=25?s="#56cfe1":n>=20&&(s="#5390d9"),{label:o,color:s}},z5=Al.ERROR,Zf=e=>{let t=(e??"").trim();if(t.startsWith(",")&&(t=t.substring(1).trim()),!t.startsWith("{")&&!t.startsWith("["))return!1;try{const n=JSON.parse(t);return!!n&&typeof n=="object"&&n.error!=null&&n.data==null}catch{return!1}},U5=e=>{let t=(e??"").trim();if(t.startsWith(",")&&(t=t.substring(1).trim()),t.startsWith("{")||t.startsWith("["))try{return{pretty:JSON.stringify(JSON.parse(t),null,2),isJson:!0}}catch{}return{pretty:t,isJson:!1}},ep=me.div`
|
|
164
174
|
display: grid;
|
|
165
175
|
grid-template-columns: 64px 56px 150px 1fr;
|
|
166
176
|
align-items: center;
|
|
@@ -175,11 +185,11 @@ Error generating stack: `+s.message+`
|
|
|
175
185
|
&:hover {
|
|
176
186
|
background-color: ${({$error:e})=>e?"rgba(187,86,86,.2)":"rgba(255,255,255,.05)"};
|
|
177
187
|
}
|
|
178
|
-
`,
|
|
188
|
+
`,Dn=me.div`
|
|
179
189
|
overflow: hidden;
|
|
180
190
|
text-overflow: ellipsis;
|
|
181
191
|
white-space: nowrap;
|
|
182
|
-
`,
|
|
192
|
+
`,W5=me.select`
|
|
183
193
|
padding: 8px 10px;
|
|
184
194
|
border-radius: 6px;
|
|
185
195
|
font-size: 0.8rem;
|
|
@@ -188,7 +198,7 @@ Error generating stack: `+s.message+`
|
|
|
188
198
|
border: 1px solid ${({theme:e})=>e.colors.inputBorderPrimary};
|
|
189
199
|
outline: none;
|
|
190
200
|
cursor: pointer;
|
|
191
|
-
`,
|
|
201
|
+
`,H5=me.pre`
|
|
192
202
|
margin: 0;
|
|
193
203
|
white-space: pre-wrap;
|
|
194
204
|
word-break: break-word;
|
|
@@ -201,7 +211,7 @@ Error generating stack: `+s.message+`
|
|
|
201
211
|
padding: 14px;
|
|
202
212
|
max-height: 55vh;
|
|
203
213
|
overflow: auto;
|
|
204
|
-
`,
|
|
214
|
+
`,tp=({level:e})=>{const{label:t,color:n}=ex(e);return i.jsx(G,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,letterSpacing:".03em",textAlign:"center",color:n,border:"1px solid "+n+"55",backgroundColor:n+"1a"},children:t})},V5=()=>{const[e,t]=A.useState([]),[n,r]=A.useState(""),[o,s]=A.useState(null),[l,a]=A.useState(""),[u,c]=A.useState(!1),[,p]=t5.useRequest(C=>{var h;const g=(h=C==null?void 0:C.data)==null?void 0:h.log;!Array.isArray(g)||g.length===0||t(m=>{const w=new Map(m.map(S=>[S.id,S]));for(const S of g)S&&typeof S.id=="number"&&w.set(S.id,S);return[...w.values()].sort((S,T)=>T.id-S.id).slice(0,B5)})});Bt(()=>{const C=e.reduce((g,h)=>Math.max(g,h.id),0);p({lastID:C})},$5);const d=A.useMemo(()=>{const C=n.trim().toLowerCase(),g=l?Al[l]:null;return e.filter(h=>{var m,w;return!(g!==null&&zu(String(h.level))<g||C&&!((m=h.text)!=null&&m.toLowerCase().includes(C)||(w=h.source)!=null&&w.toLowerCase().includes(C)))})},[e,n,l]),f=A.useMemo(()=>{const C={labels:[],series:[]},g=e.map(E=>({t:E.time||new Date(E.date).getTime(),v:Zf(E.text)?z5:zu(String(E.level))})).filter(E=>!Number.isNaN(E.t));if(g.length===0)return C;const h=Math.min(...g.map(E=>E.t)),m=Math.max(...g.map(E=>E.t)),w=Math.max(1,(m-h)/zs),S=[...new Set(g.map(E=>E.v))].sort((E,_)=>E-_),T=new Map(S.map(E=>[E,new Array(zs).fill(0)]));for(const{t:E,v:_}of g){const j=Math.min(zs-1,Math.floor((E-h)/w));T.get(_)[j]++}const x=Array.from({length:zs},(E,_)=>new Date(h+(_+.5)*w).toLocaleTimeString()),y=S.map(E=>{const _=ex(String(E));return{name:_.label,color:_.color,values:T.get(E)}});return{labels:x,series:y}},[e]),b=zc("admin"),k=C=>{a(C),b&&r5.request(C)},v=o?U5(o.text):null;return i.jsxs(i.Fragment,{children:[i.jsxs(O,{sx:{gap:"16px"},children:[f.series.length>0&&i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Activity by level"}),i.jsx(He,{height:140,labels:f.labels,series:f.series})]}),i.jsxs(V,{sx:{gap:"16px",alignItems:"center",flexWrap:"wrap"},children:[i.jsx(G,{sx:{flexGrow:1,minWidth:"200px"},children:i.jsx(Pn,{type:"search",value:n,placeholder:"Search by message or source…",onChange:C=>r(C.target.value)})}),i.jsxs(V,{sx:{gap:"8px",alignItems:"center"},children:[i.jsx(L,{children:b?"Level":"Show from"}),i.jsxs(W5,{value:l,onChange:C=>k(C.target.value),children:[i.jsx("option",{value:"",disabled:!0,children:"set…"}),D5.map(C=>i.jsx("option",{value:C,children:C},C))]})]}),i.jsxs(L,{children:[d.length," / ",e.length]})]}),i.jsxs(O,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[i.jsxs(ep,{as:"div",style:{cursor:"default",opacity:.55,fontWeight:600},children:[i.jsx(Dn,{children:"LEVEL"}),i.jsx(Dn,{children:"ID"}),i.jsx(Dn,{children:"TIME"}),i.jsx(Dn,{children:"MESSAGE"})]}),(u?d:d.slice(0,ya)).map(C=>i.jsxs(ep,{$error:Zf(C.text),onClick:()=>s(C),children:[i.jsx(tp,{level:String(C.level)}),i.jsx(Dn,{style:{opacity:.6},children:C.id}),i.jsx(Dn,{style:{opacity:.8},children:new Date(C.time||C.date).toLocaleTimeString()}),i.jsx(Dn,{style:{fontFamily:"monospace",opacity:.92},children:(C.text??"").trim()})]},C.id)),d.length===0&&i.jsx(G,{sx:{padding:"16px"},children:i.jsx(L,{children:"No log entries"})}),d.length>ya&&i.jsx(G,{onClick:()=>c(C=>!C),sx:{padding:"12px",textAlign:"center",cursor:"pointer",fontSize:".76rem",fontWeight:600,letterSpacing:".04em",textTransform:"uppercase",color:"#5390d9",borderTop:"1px solid rgba(255,255,255,.06)","&:hover":{backgroundColor:"rgba(255,255,255,.04)"}},children:u?"Свернуть":`Развернуть (ещё ${d.length-ya})`})]})]}),o&&i.jsx(ro,{title:`Log #${o.id}`,onClose:()=>s(null),children:i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(V,{sx:{gap:"24px",flexWrap:"wrap",alignItems:"center"},children:[i.jsx(tp,{level:String(o.level)}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Time"}),i.jsx(q,{variant:"medium",children:new Date(o.time||o.date).toLocaleString()})]}),o.source&&i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Source"}),i.jsx(q,{variant:"medium",children:o.source})]}),o.repeat?i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Repeat"}),i.jsxs(q,{variant:"medium",children:["×",o.repeat]})]}):null]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:v!=null&&v.isJson?"Payload (JSON)":"Message"}),i.jsx(H5,{children:v==null?void 0:v.pretty})]})]})})]})},q5=15e3,Us=32,Q5=8,np=["#5390D9","#48BFE3","#56CFE1","#64DFDF","#72EFDD","#80FFDB","#5E60CE","#7400B8"],K5="#8a8699",G5={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656"},J5=e=>G5[(e??"").toUpperCase()]??"#8a8699",Y5=1e3,X5="#bb5656",Z5=e=>{let t=e;if(typeof t=="string")try{t=JSON.parse(t)}catch{return null}return t&&typeof t=="object"?t:null},eS=e=>{if(e.error)return!0;const t=Z5(e.response);return!!t&&t.error!=null&&t.data==null},fr=e=>{if(e==null)return"—";if(typeof e=="string"){const t=e.trim();if(t.startsWith("{")||t.startsWith("["))try{return JSON.stringify(JSON.parse(t),null,2)}catch{}return e}try{return JSON.stringify(e,null,2)}catch{return String(e)}},rp=me.div`
|
|
205
215
|
display: grid;
|
|
206
216
|
grid-template-columns: 56px 1fr 76px 68px 48px;
|
|
207
217
|
gap: 12px;
|
|
@@ -216,11 +226,11 @@ Error generating stack: `+s.message+`
|
|
|
216
226
|
&:hover {
|
|
217
227
|
background-color: ${({$error:e})=>e?"rgba(187,86,86,.2)":"rgba(255,255,255,.05)"};
|
|
218
228
|
}
|
|
219
|
-
`,Kt=
|
|
229
|
+
`,Kt=me.div`
|
|
220
230
|
overflow: hidden;
|
|
221
231
|
text-overflow: ellipsis;
|
|
222
232
|
white-space: nowrap;
|
|
223
|
-
`,
|
|
233
|
+
`,Ws=me.pre`
|
|
224
234
|
margin: 0;
|
|
225
235
|
white-space: pre-wrap;
|
|
226
236
|
word-break: break-word;
|
|
@@ -233,7 +243,7 @@ Error generating stack: `+s.message+`
|
|
|
233
243
|
padding: 12px;
|
|
234
244
|
max-height: 40vh;
|
|
235
245
|
overflow: auto;
|
|
236
|
-
`,
|
|
246
|
+
`,op=({method:e})=>{const t=J5(e);return i.jsx(G,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:t,border:"1px solid "+t+"55",backgroundColor:t+"1a"},children:(e??"—").toUpperCase()})},wa=({label:e,children:t})=>i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:e}),t]}),tS=()=>{const[e,t]=A.useState([]),[n,r]=A.useState(""),[o,s]=A.useState(null),[,l]=n5.useRequest(d=>{if(d!=null&&d.error)return;const f=d==null?void 0:d.data;t(Array.isArray(f)?[...f].reverse():[])});Bt(()=>l(),q5);const a=A.useMemo(()=>{const d=n.trim().toLowerCase();return d?e.filter(f=>{var b,k,v;return(((b=f.request)==null?void 0:b.endpoint)??"").toLowerCase().includes(d)||(((k=f.request)==null?void 0:k.method)??"").toLowerCase().includes(d)||fr((v=f.request)==null?void 0:v.data).toLowerCase().includes(d)||fr(f.response).toLowerCase().includes(d)}):e},[e,n]),u=A.useMemo(()=>{const d={labels:[],series:[]},f=e.map(y=>{var E;return{t:y.created,ep:((E=y.request)==null?void 0:E.endpoint)??"unknown"}}).filter(y=>typeof y.t=="number"&&!Number.isNaN(y.t));if(f.length===0)return d;const b=new Map;for(const{ep:y}of f)b.set(y,(b.get(y)??0)+1);const k=[...b.entries()].sort((y,E)=>E[1]-y[1]).slice(0,Q5).map(([y])=>y),v=new Set(k),g=b.size>k.length?[...k,"other"]:k,h=Math.min(...f.map(y=>y.t)),m=Math.max(...f.map(y=>y.t)),w=Math.max(1,(m-h)/Us),S=new Map(g.map(y=>[y,new Array(Us).fill(0)]));for(const{t:y,ep:E}of f){const _=v.has(E)?E:"other",j=Math.min(Us-1,Math.floor((y-h)/w));S.get(_)[j]++}const T=Array.from({length:Us},(y,E)=>new Date(h+(E+.5)*w).toLocaleTimeString()),x=g.map((y,E)=>({name:y,color:y==="other"?K5:np[E%np.length],values:S.get(y)}));return{labels:T,series:x}},[e]),c=o==null?void 0:o.request,p=(c==null?void 0:c.params)&&Object.keys(c.params).length>0;return i.jsxs(i.Fragment,{children:[i.jsxs(O,{sx:{gap:"16px"},children:[u.series.length>0&&i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Calls by endpoint"}),i.jsx(He,{height:140,labels:u.labels,series:u.series})]}),i.jsxs(V,{sx:{gap:"16px",alignItems:"center",flexWrap:"wrap"},children:[i.jsx(G,{sx:{flexGrow:1,minWidth:"200px"},children:i.jsx(Pn,{type:"search",value:n,placeholder:"Search by endpoint, method or payload…",onChange:d=>r(d.target.value)})}),i.jsxs(L,{children:[a.length," / ",e.length]})]}),i.jsxs(O,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[i.jsxs(rp,{as:"div",style:{cursor:"default",opacity:.55,fontWeight:600},children:[i.jsx(Kt,{children:"METHOD"}),i.jsx(Kt,{children:"ENDPOINT"}),i.jsx(Kt,{children:"TIME"}),i.jsx(Kt,{children:"RESP"}),i.jsx(Kt,{style:{textAlign:"right"},children:"ID"})]}),a.map(d=>{var b,k;const f=d.time>Y5;return i.jsxs(rp,{$error:eS(d),onClick:()=>s(d),children:[i.jsx(op,{method:(b=d.request)==null?void 0:b.method}),i.jsx(Kt,{style:{fontFamily:"monospace",opacity:.92},children:((k=d.request)==null?void 0:k.endpoint)??"—"}),i.jsx(Kt,{style:{opacity:.7},children:new Date(d.created).toLocaleTimeString()}),i.jsxs(Kt,{style:{color:f?X5:void 0,opacity:f?1:.7},children:[d.time," ms"]}),i.jsx(Kt,{style:{opacity:.5,textAlign:"right"},children:d.id})]},d.id)}),a.length===0&&i.jsx(G,{sx:{padding:"16px"},children:i.jsx(L,{children:"No HTTP requests recorded"})})]})]}),o&&i.jsx(ro,{title:`Request #${o.id}`,onClose:()=>s(null),children:i.jsxs(O,{sx:{gap:"20px"},children:[i.jsxs(V,{sx:{gap:"24px",flexWrap:"wrap",alignItems:"center"},children:[i.jsx(op,{method:c==null?void 0:c.method}),i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace"},children:(c==null?void 0:c.endpoint)??"—"}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Created"}),i.jsx(q,{variant:"medium",children:new Date(o.created).toLocaleString()})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Response time"}),i.jsxs(q,{variant:"medium",children:[o.time," ms"]})]})]}),o.error&&i.jsx(q,{variant:"medium",sx:{color:"#bb5656"},children:o.error}),i.jsxs(O,{sx:{gap:"12px",paddingTop:"4px",borderTop:"1px solid rgba(255,255,255,.08)"},children:[i.jsx(q,{variant:"headMedium",children:"Request"}),p&&i.jsx(wa,{label:"Params",children:i.jsx(Ws,{children:fr(c==null?void 0:c.params)})}),i.jsx(wa,{label:"Headers",children:i.jsx(Ws,{children:fr(c==null?void 0:c.headers)})}),i.jsx(wa,{label:"Body",children:i.jsx(Ws,{children:fr(c==null?void 0:c.data)})})]}),i.jsxs(O,{sx:{gap:"12px",paddingTop:"4px",borderTop:"1px solid rgba(255,255,255,.08)"},children:[i.jsx(q,{variant:"headMedium",children:"Response"}),i.jsx(Ws,{children:fr(o.response)})]})]})})]})},nS=15e3,Hs=32,rS=8,sp=1e3,yi="#bb5656",ip=["#5390D9","#48BFE3","#56CFE1","#64DFDF","#72EFDD","#80FFDB","#5E60CE","#7400B8"],oS="#8a8699",sS={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656"},lp=e=>sS[(e??"").toUpperCase()]??"#8a8699",ap=e=>{if(e!==void 0){if(e>=500)return"#e0457b";if(e>=400)return yi;if(e>=300)return"#e9b61e";if(e>=200)return"#56bb56"}},iS=e=>{try{return new URL(e).host||e}catch{return e.split("/").slice(0,3).join("/")||e}},Vs=e=>{if(e==null)return"—";if(typeof e=="string"){const t=e.trim();if(t.startsWith("{")||t.startsWith("["))try{return JSON.stringify(JSON.parse(t),null,2)}catch{}return e}try{return JSON.stringify(e,null,2)}catch{return String(e)}},lS=e=>!!e.error||e.ok===!1||typeof e.status=="number"&&e.status>=400,up=me.div`
|
|
237
247
|
display: grid;
|
|
238
248
|
grid-template-columns: 56px 1fr 52px 76px 68px 48px;
|
|
239
249
|
gap: 12px;
|
|
@@ -248,11 +258,11 @@ Error generating stack: `+s.message+`
|
|
|
248
258
|
&:hover {
|
|
249
259
|
background-color: ${({$error:e})=>e?"rgba(187,86,86,.2)":"rgba(255,255,255,.05)"};
|
|
250
260
|
}
|
|
251
|
-
`,
|
|
261
|
+
`,Pt=me.div`
|
|
252
262
|
overflow: hidden;
|
|
253
263
|
text-overflow: ellipsis;
|
|
254
264
|
white-space: nowrap;
|
|
255
|
-
`,
|
|
265
|
+
`,cp=me.pre`
|
|
256
266
|
margin: 0;
|
|
257
267
|
white-space: pre-wrap;
|
|
258
268
|
word-break: break-word;
|
|
@@ -265,7 +275,7 @@ Error generating stack: `+s.message+`
|
|
|
265
275
|
padding: 12px;
|
|
266
276
|
max-height: 40vh;
|
|
267
277
|
overflow: auto;
|
|
268
|
-
`,
|
|
278
|
+
`,dp=({color:e,children:t})=>i.jsx(G,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:e,border:"1px solid "+e+"55",backgroundColor:e+"1a"},children:t}),aS=({label:e,children:t})=>i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:e}),t]}),uS=()=>{const[e,t]=A.useState([]),[n,r]=A.useState(""),[o,s]=A.useState(null),[,l]=i5.useRequest(p=>{if(p!=null&&p.error)return;const d=p==null?void 0:p.data;t(Array.isArray(d)?[...d].reverse():[])});Bt(()=>l(),nS);const a=A.useMemo(()=>{const p=n.trim().toLowerCase();return p?e.filter(d=>d.url.toLowerCase().includes(p)||(d.method??"").toLowerCase().includes(p)||String(d.status??"").includes(p)||Vs(d.request).toLowerCase().includes(p)||Vs(d.response).toLowerCase().includes(p)):e},[e,n]),u=A.useMemo(()=>{const p={labels:[],series:[]},d=e.map(x=>({t:x.created,host:iS(x.url)})).filter(x=>typeof x.t=="number"&&!Number.isNaN(x.t));if(d.length===0)return p;const f=new Map;for(const{host:x}of d)f.set(x,(f.get(x)??0)+1);const b=[...f.entries()].sort((x,y)=>y[1]-x[1]).slice(0,rS).map(([x])=>x),k=new Set(b),C=f.size>b.length?[...b,"other"]:b,g=Math.min(...d.map(x=>x.t)),h=Math.max(...d.map(x=>x.t)),m=Math.max(1,(h-g)/Hs),w=new Map(C.map(x=>[x,new Array(Hs).fill(0)]));for(const{t:x,host:y}of d){const E=k.has(y)?y:"other",_=Math.min(Hs-1,Math.floor((x-g)/m));w.get(E)[_]++}const S=Array.from({length:Hs},(x,y)=>new Date(g+(y+.5)*m).toLocaleTimeString()),T=C.map((x,y)=>({name:x,color:x==="other"?oS:ip[y%ip.length],values:w.get(x)}));return{labels:S,series:T}},[e]),c=o;return i.jsxs(i.Fragment,{children:[i.jsxs(O,{sx:{gap:"16px"},children:[u.series.length>0&&i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Calls by host"}),i.jsx(He,{height:140,labels:u.labels,series:u.series})]}),i.jsxs(V,{sx:{gap:"16px",alignItems:"center",flexWrap:"wrap"},children:[i.jsx(G,{sx:{flexGrow:1,minWidth:"200px"},children:i.jsx(Pn,{type:"search",value:n,placeholder:"Search by URL, method, status or payload…",onChange:p=>r(p.target.value)})}),i.jsxs(L,{children:[a.length," / ",e.length]})]}),i.jsxs(O,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[i.jsxs(up,{as:"div",style:{cursor:"default",opacity:.55,fontWeight:600},children:[i.jsx(Pt,{children:"METHOD"}),i.jsx(Pt,{children:"URL"}),i.jsx(Pt,{children:"STAT"}),i.jsx(Pt,{children:"TIME"}),i.jsx(Pt,{children:"RESP"}),i.jsx(Pt,{style:{textAlign:"right"},children:"ID"})]}),a.map(p=>{const d=p.time>sp,f=ap(p.status);return i.jsxs(up,{$error:lS(p),onClick:()=>s(p),children:[i.jsx(dp,{color:lp(p.method),children:(p.method??"—").toUpperCase()}),i.jsx(Pt,{style:{fontFamily:"monospace",opacity:.92},children:p.url}),i.jsx(Pt,{style:{color:f,fontWeight:f?600:void 0},children:p.status??"—"}),i.jsx(Pt,{style:{opacity:.7},children:new Date(p.created).toLocaleTimeString()}),i.jsxs(Pt,{style:{color:d?yi:void 0,opacity:d?1:.7},children:[p.time," ms"]}),i.jsx(Pt,{style:{opacity:.5,textAlign:"right"},children:p.id})]},p.id)}),a.length===0&&i.jsx(G,{sx:{padding:"16px"},children:i.jsx(L,{children:"No outgoing requests recorded"})})]})]}),c&&i.jsx(ro,{title:`Outgoing #${c.id}`,onClose:()=>s(null),children:i.jsxs(O,{sx:{gap:"20px"},children:[i.jsxs(V,{sx:{gap:"24px",flexWrap:"wrap",alignItems:"center"},children:[i.jsx(dp,{color:lp(c.method),children:(c.method??"—").toUpperCase()}),i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",wordBreak:"break-all"},children:c.url})]}),i.jsxs(V,{sx:{gap:"24px",flexWrap:"wrap"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Status"}),i.jsx(q,{variant:"medium",sx:{color:ap(c.status)},children:c.status??"—"})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Created"}),i.jsx(q,{variant:"medium",children:new Date(c.created).toLocaleString()})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Response time"}),i.jsxs(q,{variant:"medium",sx:{color:c.time>sp?yi:void 0},children:[c.time," ms"]})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Attempts"}),i.jsx(q,{variant:"medium",children:c.attempts})]})]}),c.error&&i.jsx(q,{variant:"medium",sx:{color:yi},children:c.error}),i.jsxs(O,{sx:{gap:"12px",paddingTop:"4px",borderTop:"1px solid rgba(255,255,255,.08)"},children:[i.jsx(q,{variant:"headMedium",children:"Request"}),i.jsx(aS,{label:"Body",children:i.jsx(cp,{children:Vs(c.request)})})]}),i.jsxs(O,{sx:{gap:"12px",paddingTop:"4px",borderTop:"1px solid rgba(255,255,255,.08)"},children:[i.jsx(q,{variant:"headMedium",children:"Response"}),i.jsx(cp,{children:Vs(c.response)})]})]})})]})},qs=({label:e,value:t,color:n})=>i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:e}),i.jsx(q,{variant:"headMedium",sx:n?{color:n}:void 0,children:t})]}),cS=({stats:e,range:t})=>{const n=e.map(l=>Ml(l.timestamp,t)),r=e.length?e[e.length-1].slot:null,o=[{name:"CPU",color:"#48BFE3",values:e.map(l=>l.slot.cpu)}],s=[{name:"RSS",color:"#7400B8",values:e.map(l=>l.slot.memory.rss)},{name:"Heap used",color:"#56CFE1",values:e.map(l=>l.slot.memory.heapUsed)},{name:"Heap total",color:"#80FFDB",values:e.map(l=>l.slot.memory.heapTotal)}];return i.jsxs(V,{sx:{gap:"30px",flexWrap:"wrap",alignItems:"stretch"},children:[i.jsx(Ae,{label:"CPU",sx:{flex:"1 1 420px",minWidth:"320px"},children:i.jsxs(O,{sx:{gap:"18px"},children:[i.jsx(qs,{label:"Current load (per core)",value:`${r?r.cpu:0}%`,color:"#48BFE3"}),i.jsx(He,{series:o,labels:n,unit:"%",yMax:100})]})}),i.jsx(Ae,{label:"Memory",sx:{flex:"1 1 420px",minWidth:"320px"},children:i.jsxs(O,{sx:{gap:"18px"},children:[i.jsxs(V,{sx:{gap:"40px",flexWrap:"wrap"},children:[i.jsx(qs,{label:"RSS",value:Fs((r==null?void 0:r.memory.rss)??0),color:"#7400B8"}),i.jsx(qs,{label:"Heap used",value:Fs((r==null?void 0:r.memory.heapUsed)??0),color:"#56CFE1"}),i.jsx(qs,{label:"External",value:Fs((r==null?void 0:r.memory.external)??0)})]}),i.jsx(He,{series:s,labels:n,formatValue:Fs})]})})]})},Sa=3e4,ja="#48BFE3",Xc="#56bb56",Wo="#e9b61e",Lt="#bb5656",Zc="#e0457b",ka=240,dS=5,fp=["#48BFE3","#80FFDB","#e9b61e","#c48af0","#e0457b","#5390d9","#80cbc4"],fS=e=>{const t=new Date(e);return String(t.getHours()).padStart(2,"0")+":"+String(t.getMinutes()).padStart(2,"0")},tx=[{key:"s2xx",label:"2xx",color:Xc},{key:"s3xx",label:"3xx",color:"#5390d9"},{key:"s4xx",label:"4xx",color:Wo},{key:"s5xx",label:"5xx",color:Lt},{key:"networkErrors",label:"net err",color:Zc},{key:"timeouts",label:"timeout",color:"#7400B8"},{key:"other",label:"other",color:"#8a8699"}],pS={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656"},pp=e=>pS[(e??"").toUpperCase()]??"#8a8699",hp=e=>{if(e==null)return"—";if(typeof e=="string"){const t=e.trim();if(t.startsWith("{")||t.startsWith("["))try{return JSON.stringify(JSON.parse(t),null,2)}catch{}return e}try{return JSON.stringify(e,null,2)}catch{return String(e)}},mp=e=>{if(e!==void 0){if(e>=500)return Zc;if(e>=400)return Lt;if(e>=300)return Wo;if(e>=200)return Xc}},gp=me.pre`
|
|
269
279
|
margin: 0;
|
|
270
280
|
white-space: pre-wrap;
|
|
271
281
|
word-break: break-word;
|
|
@@ -278,7 +288,7 @@ Error generating stack: `+s.message+`
|
|
|
278
288
|
padding: 12px;
|
|
279
289
|
max-height: 40vh;
|
|
280
290
|
overflow: auto;
|
|
281
|
-
`,
|
|
291
|
+
`,vo=({label:e,value:t,color:n})=>i.jsxs(O,{sx:{gap:"2px",minWidth:"90px"},children:[i.jsx(L,{children:e}),i.jsx(q,{variant:"headMedium",sx:n?{color:n}:void 0,children:t})]}),Qs=({title:e,children:t})=>i.jsxs(O,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[i.jsx(q,{variant:"headMedium",children:e}),t]}),xp=({dist:e,compact:t})=>{const n=tx.filter(o=>o.key!=="timeouts").map(o=>({...o,value:e[o.key]??0})),r=n.reduce((o,s)=>o+s.value,0);return r===0?i.jsx(L,{sx:{fontSize:".68rem"},children:"—"}):i.jsx(V,{sx:{height:t?"6px":"8px",width:"100%",borderRadius:"3px",overflow:"hidden",backgroundColor:"rgba(255,255,255,.05)"},children:n.map(o=>o.value>0?i.jsx(G,{title:`${o.label}: ${o.value}`,sx:{width:o.value/r*100+"%",backgroundColor:o.color}},o.key):null)})},hS=me.div`
|
|
282
292
|
display: flex;
|
|
283
293
|
flex-direction: column;
|
|
284
294
|
gap: 8px;
|
|
@@ -289,11 +299,11 @@ Error generating stack: `+s.message+`
|
|
|
289
299
|
&:last-child {
|
|
290
300
|
border-bottom: none;
|
|
291
301
|
}
|
|
292
|
-
`,
|
|
302
|
+
`,cn=({label:e,value:t,sub:n,color:r})=>i.jsxs(O,{sx:{gap:"1px",minWidth:"auto"},children:[i.jsx(L,{sx:{fontSize:".6rem",letterSpacing:".04em",textTransform:"uppercase"},children:e}),i.jsxs(V,{sx:{gap:"4px",alignItems:"baseline"},children:[i.jsx(q,{variant:"medium",sx:r?{color:r,fontVariantNumeric:"tabular-nums"}:{fontVariantNumeric:"tabular-nums"},children:t}),n&&i.jsx(L,{sx:{fontSize:".62rem"},children:n})]})]}),dn=me.div`
|
|
293
303
|
overflow: hidden;
|
|
294
304
|
text-overflow: ellipsis;
|
|
295
305
|
white-space: nowrap;
|
|
296
|
-
`,
|
|
306
|
+
`,vp=me.div`
|
|
297
307
|
display: grid;
|
|
298
308
|
grid-template-columns: 56px 1fr 52px 76px;
|
|
299
309
|
gap: 10px;
|
|
@@ -306,7 +316,7 @@ Error generating stack: `+s.message+`
|
|
|
306
316
|
&:hover {
|
|
307
317
|
background-color: rgba(255, 255, 255, 0.05);
|
|
308
318
|
}
|
|
309
|
-
`,Vx=({color:e,children:t})=>a.jsx(q,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:e,border:"1px solid "+e+"55",backgroundColor:e+"1a"},children:t}),y6=()=>{const[e,t]=z.useState(null),[r,n]=z.useState(null),o=z.useRef(new Map),[,s]=E8.useRequest(d=>{if(!(d!=null&&d.error)&&d!=null&&d.data){const C=Date.now(),y=o.current;for(const E of d.data.perHost){if(E.count===0)continue;let v=y.get(E.host);v||(v=[],y.set(E.host,v)),v.push({ts:C,p50:E.p50Ms??0,p95:E.p95Ms??0,p99:E.p99Ms??0}),v.length>l0&&v.splice(0,v.length-l0)}const m=new Set(d.data.perHost.map(E=>E.host));for(const E of[...y.keys()])m.has(E)||y.delete(E);t(d.data)}});if(zt(()=>s(),i0),!e)return a.jsx(R,{children:"Loading…"});const i=e.statusDistribution,l=i.s4xx+i.s5xx+i.networkErrors+i.other,c=e.totalRequests>0?l/e.totalRequests*100:0,u=[...e.perHost].filter(d=>{var C;return(((C=o.current.get(d.host))==null?void 0:C.length)??0)>=2}).sort((d,C)=>C.count-d.count).slice(0,h6);let f=[];const h=[];if(u.length>0){let d=[];for(const C of u){const y=o.current.get(C.host)??[];y.length>d.length&&(d=y)}f=d.map(C=>m6(C.ts)),u.forEach((C,y)=>{var p;const m=o.current.get(C.host)??[],E=Math.max(0,d.length-m.length),v=((p=m[0])==null?void 0:p.p95)??0,x=[...Array.from({length:E},()=>v),...m.map(g=>g.p95)];h.push({name:C.host.replace(/^https?:\/\//,"").slice(0,32),color:Ix[y%Ix.length],values:x})})}return a.jsxs(T,{sx:{gap:"16px"},children:[a.jsxs(ti,{title:"HTTP outgoing overview",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(Eo,{label:"Total requests",value:e.totalRequests,color:a0}),a.jsx(Eo,{label:"In-flight",value:e.inFlight.current,color:e.inFlight.current>0?a0:void 0}),a.jsx(Eo,{label:"Peak in-flight",value:e.inFlight.peak}),a.jsx(Eo,{label:"Error rate",value:`${c.toFixed(1)}%`,color:c>=5?Ft:c>=1?Vo:Lc}),a.jsx(Eo,{label:"Timeouts",value:i.timeouts,color:i.timeouts?Ft:void 0})]}),a.jsxs(T,{sx:{gap:"8px"},children:[a.jsx(R,{children:"Status distribution"}),a.jsx(Ux,{dist:i}),a.jsx(I,{sx:{gap:"12px",flexWrap:"wrap"},children:_m.map(d=>{const C=i[d.key]??0;return a.jsxs(I,{sx:{gap:"6px",alignItems:"center"},children:[a.jsx(q,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:d.color}}),a.jsxs(R,{sx:{fontSize:".68rem"},children:[d.label," · ",C]})]},d.key)})})]})]}),a.jsxs(ti,{title:`Per-host (${e.perHost.length})`,children:[e.perHost.length===0&&a.jsx(R,{children:"No requests recorded yet"}),e.perHost.length>0&&a.jsx(T,{sx:{gap:"0px"},children:e.perHost.map(d=>a.jsxs(v6,{children:[a.jsxs(I,{sx:{justifyContent:"space-between",alignItems:"baseline",gap:"10px",minWidth:0},children:[a.jsx(fr,{style:{fontFamily:"monospace",opacity:.92,minWidth:0,flex:1},children:d.host}),a.jsxs(R,{sx:{fontSize:".62rem",whiteSpace:"nowrap"},children:["last ",new Date(d.lastRequestAt).toLocaleTimeString()]})]}),a.jsxs(I,{sx:{gap:"16px",rowGap:"6px",flexWrap:"wrap",alignItems:"baseline"},children:[a.jsx(dr,{label:"Req",value:d.count}),a.jsx(dr,{label:"Err",value:d.errors,color:d.errors>0?Ft:void 0,sub:d.timeouts>0?a.jsxs("span",{style:{color:Nc},children:["·",d.timeouts,"to"]}):null}),a.jsx(dr,{label:"Retry",value:d.retries,color:d.retries>0?Vo:void 0}),a.jsx(dr,{label:"In-flight",value:d.inFlight,color:d.inFlight>0?a0:void 0}),a.jsx(dr,{label:"Avg",value:a.jsxs("span",{style:{color:d.avgMs>1e3?Ft:void 0},children:[Math.round(d.avgMs)," ms"]}),sub:`${Math.round(d.minMs)}-${Math.round(d.maxMs)}`}),a.jsx(dr,{label:"p50",value:`${Math.round(d.p50Ms??0)} ms`}),a.jsx(dr,{label:"p95",value:a.jsxs("span",{style:{color:(d.p95Ms??0)>1500?Ft:(d.p95Ms??0)>800?Vo:void 0},children:[Math.round(d.p95Ms??0)," ms"]})}),a.jsx(dr,{label:"p99",value:a.jsxs("span",{style:{color:(d.p99Ms??0)>2e3?Ft:void 0},children:[Math.round(d.p99Ms??0)," ms"]})})]}),a.jsx(Ux,{dist:d.byStatus,compact:!0})]},d.host))})]}),h.length>0&&a.jsx(ti,{title:`p95 trend (top ${u.length} by volume)`,children:a.jsxs(T,{sx:{gap:"6px"},children:[a.jsxs(R,{sx:{fontSize:".7rem"},children:["Client-side history — one sample per poll (",Math.round(i0/1e3)," s), up to"," ",Math.round(l0*i0/6e4)," min. Resets on reload."]}),a.jsx(Le,{series:h,labels:f,height:180,formatValue:d=>`${Math.round(d)} ms`})]})}),e.topSlow.length>0&&a.jsx(ti,{title:`Slowest requests (${e.topSlow.length})`,children:a.jsxs(T,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[a.jsxs(qx,{style:{cursor:"default",opacity:.55,fontWeight:600},children:[a.jsx(fr,{children:"METHOD"}),a.jsx(fr,{children:"URL"}),a.jsx(fr,{children:"STAT"}),a.jsx(fr,{style:{textAlign:"right"},children:"TIME"})]}),e.topSlow.map(d=>{const C=Hx(d.status);return a.jsxs(qx,{onClick:()=>n(d),children:[a.jsx(Vx,{color:Mx(d.method),children:(d.method??"—").toUpperCase()}),a.jsx(fr,{style:{fontFamily:"monospace",opacity:.92},children:d.url}),a.jsx(fr,{style:{color:C,fontWeight:C?600:void 0},children:d.status??"—"}),a.jsxs(fr,{style:{textAlign:"right",color:d.time>1e3?Ft:void 0,opacity:d.time>1e3?1:.8},children:[d.time," ms"]})]},d.id)})]})}),r&&a.jsx(to,{title:`Slow #${r.id}`,onClose:()=>n(null),children:a.jsxs(T,{sx:{gap:"16px"},children:[a.jsxs(I,{sx:{gap:"16px",flexWrap:"wrap",alignItems:"center"},children:[a.jsx(Vx,{color:Mx(r.method),children:(r.method??"—").toUpperCase()}),a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",wordBreak:"break-all"},children:r.url})]}),a.jsxs(I,{sx:{gap:"24px",flexWrap:"wrap"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Status"}),a.jsx(M,{variant:"medium",sx:{color:Hx(r.status)},children:r.status??"—"})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Duration"}),a.jsxs(M,{variant:"medium",sx:{color:r.time>1e3?Ft:void 0},children:[r.time," ms"]})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Attempts"}),a.jsx(M,{variant:"medium",children:r.attempts})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Created"}),a.jsx(M,{variant:"medium",children:new Date(r.created).toLocaleString()})]})]}),r.error&&a.jsx(M,{variant:"medium",sx:{color:Ft},children:r.error}),a.jsxs(T,{sx:{gap:"6px"},children:[a.jsx(R,{children:"Request"}),a.jsx(Wx,{children:$x(r.request)})]}),a.jsxs(T,{sx:{gap:"6px"},children:[a.jsx(R,{children:"Response"}),a.jsx(Wx,{children:$x(r.response)})]})]})})]})},C6=3e4,E6=()=>{const[e,t]=z.useState(null),[,r]=m8.useRequest(s=>{s!=null&&s.error||s!=null&&s.data&&t(s.data)});zt(()=>r(),C6);const n=e?Object.entries(e.byHost).sort((s,i)=>i[1]-s[1]):[],o=n.reduce((s,[,i])=>Math.max(s,i),0)||1;return a.jsx(De,{label:"Active outgoing connections",children:a.jsxs(T,{sx:{gap:"18px"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Total active"}),a.jsx(M,{variant:"head",sx:{color:"#48BFE3"},children:(e==null?void 0:e.total)??0})]}),n.length===0&&a.jsx(R,{children:"No active connections"}),a.jsx(T,{sx:{gap:"12px"},children:n.map(([s,i])=>a.jsxs(T,{sx:{gap:"5px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",gap:"16px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:s}),a.jsx(R,{children:i})]}),a.jsx(q,{sx:{height:"6px",width:i/o*100+"%",minWidth:"4px",borderRadius:"3px",backgroundColor:"#48BFE3"}})]},s))})]})})},Qx="#56bb56",u0="#bb5656",w6=({stats:e})=>{const t=Am(e),r=t.reduce((s,i)=>Math.max(s,i.total),0)||1,n=t.reduce((s,i)=>s+i.success,0),o=t.reduce((s,i)=>s+i.fail,0);return a.jsx(De,{label:"Endpoint statistics",children:a.jsxs(T,{sx:{gap:"20px"},children:[a.jsxs(I,{sx:{gap:"40px",flexWrap:"wrap"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Endpoints"}),a.jsx(M,{variant:"headMedium",children:t.length})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Success"}),a.jsx(M,{variant:"headMedium",sx:{color:Qx},children:n})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Failed"}),a.jsx(M,{variant:"headMedium",sx:{color:u0},children:o})]})]}),t.length===0&&a.jsx(R,{children:"No endpoint activity for the selected range"}),a.jsx(T,{sx:{gap:"14px"},children:t.map(s=>{const i=s.success/r*100,l=s.fail/r*100;return a.jsxs(T,{sx:{gap:"6px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",gap:"16px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace"},children:s.endpoint}),a.jsxs(I,{sx:{gap:"12px"},children:[a.jsxs(R,{children:[s.total," req"]}),s.fail>0&&a.jsxs(M,{variant:"caption",sx:{color:u0,opacity:1},children:[s.fail," failed"]})]})]}),a.jsxs(I,{sx:{height:"8px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"4px",overflow:"hidden"},children:[a.jsx(q,{sx:{width:i+"%",backgroundColor:Qx}}),a.jsx(q,{sx:{width:l+"%",backgroundColor:u0}})]})]},s.endpoint)})})]})})},Kx=10,S6=({stats:e})=>{const t=B8(e),[r,n]=z.useState(!1),o=r?t:t.slice(0,Kx),s=Math.max(0,t.length-Kx);return a.jsx(De,{label:"Outgoing HTTP calls",children:a.jsxs(T,{sx:{gap:"12px"},children:[t.length===0&&a.jsx(R,{children:"No outgoing calls for the selected range"}),o.map(i=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"16px",alignItems:"baseline"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",opacity:.92,wordBreak:"break-all"},children:i.url}),a.jsx(R,{sx:{whiteSpace:"nowrap"},children:i.count})]},i.url)),s>0&&a.jsx(q,{onClick:()=>n(i=>!i),sx:{marginTop:"4px",padding:"8px",textAlign:"center",cursor:"pointer",fontSize:".72rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"#5390d9",borderTop:"1px solid rgba(255,255,255,.06)","&:hover":{backgroundColor:"rgba(255,255,255,.04)"}},children:r?"Less":`More (${s})`})]})})},Gx="#56bb56",c0="#bb5656",Xx=10,b6=e=>e.length>96?e.slice(0,96)+"…":e,j6=({stats:e})=>{const[t,r]=z.useState(!1),[n,o]=z.useState(null),s=Fm(e),i=s.reduce((h,d)=>Math.max(h,d.total),0)||1,l=s.reduce((h,d)=>h+d.success,0),c=s.reduce((h,d)=>h+d.fail,0),u=t?s:s.slice(0,Xx),f=Math.max(0,s.length-Xx);return a.jsx(De,{label:"SQL queries",children:a.jsxs(T,{sx:{gap:"16px"},children:[a.jsxs(I,{sx:{gap:"40px",flexWrap:"wrap"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Distinct queries"}),a.jsx(M,{variant:"headMedium",children:s.length})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Success"}),a.jsx(M,{variant:"headMedium",sx:{color:Gx},children:l})]}),a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Failed"}),a.jsx(M,{variant:"headMedium",sx:{color:c0},children:c})]})]}),s.length===0&&a.jsx(R,{children:"No SQL activity for the selected range (backend may not surface SQL counters)."}),a.jsx(T,{sx:{gap:"12px"},children:u.map(h=>{const d=h.success/i*100,C=h.fail/i*100,y=n===h.query;return a.jsxs(T,{sx:{gap:"6px"},children:[a.jsxs(I,{onClick:()=>o(y?null:h.query),sx:{justifyContent:"space-between",gap:"16px",cursor:"pointer",alignItems:"baseline"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,wordBreak:"break-all",whiteSpace:y?"pre-wrap":"nowrap",overflow:y?void 0:"hidden",textOverflow:y?void 0:"ellipsis",maxWidth:y?"100%":"70%"},children:y?h.query:b6(h.query)}),a.jsxs(I,{sx:{gap:"12px",flexShrink:0},children:[a.jsxs(R,{children:[h.total," q"]}),h.fail>0&&a.jsxs(M,{variant:"caption",sx:{color:c0,opacity:1},children:[h.fail," failed"]})]})]}),a.jsxs(I,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"3px",overflow:"hidden"},children:[a.jsx(q,{sx:{width:d+"%",backgroundColor:Gx}}),a.jsx(q,{sx:{width:C+"%",backgroundColor:c0}})]})]},h.query)})}),f>0&&a.jsx(q,{onClick:()=>r(h=>!h),sx:{padding:"8px",textAlign:"center",cursor:"pointer",fontSize:".72rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"#5390d9",borderTop:"1px solid rgba(255,255,255,.06)","&:hover":{backgroundColor:"rgba(255,255,255,.04)"}},children:t?"Less":`More (${f})`})]})})},k6=3e4,wo="#56bb56",Gt="#bb5656",ri="#48BFE3",So=e=>e>=1e3?(e/1e3).toFixed(2)+" s":Math.round(e)+" ms",B6=fe.pre`
|
|
319
|
+
`,yp=({color:e,children:t})=>i.jsx(G,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:e,border:"1px solid "+e+"55",backgroundColor:e+"1a"},children:t}),mS=()=>{const[e,t]=A.useState(null),[n,r]=A.useState(null),o=A.useRef(new Map),[,s]=u5.useRequest(f=>{if(!(f!=null&&f.error)&&f!=null&&f.data){const b=Date.now(),k=o.current;for(const C of f.data.perHost){if(C.count===0)continue;let g=k.get(C.host);g||(g=[],k.set(C.host,g)),g.push({ts:b,p50:C.p50Ms??0,p95:C.p95Ms??0,p99:C.p99Ms??0}),g.length>ka&&g.splice(0,g.length-ka)}const v=new Set(f.data.perHost.map(C=>C.host));for(const C of[...k.keys()])v.has(C)||k.delete(C);t(f.data)}});if(Bt(()=>s(),Sa),!e)return i.jsx(L,{children:"Loading…"});const l=e.statusDistribution,a=l.s4xx+l.s5xx+l.networkErrors+l.other,u=e.totalRequests>0?a/e.totalRequests*100:0,c=[...e.perHost].filter(f=>{var b;return(((b=o.current.get(f.host))==null?void 0:b.length)??0)>=2}).sort((f,b)=>b.count-f.count).slice(0,dS);let p=[];const d=[];if(c.length>0){let f=[];for(const b of c){const k=o.current.get(b.host)??[];k.length>f.length&&(f=k)}p=f.map(b=>fS(b.ts)),c.forEach((b,k)=>{var m;const v=o.current.get(b.host)??[],C=Math.max(0,f.length-v.length),g=((m=v[0])==null?void 0:m.p95)??0,h=[...Array.from({length:C},()=>g),...v.map(w=>w.p95)];d.push({name:b.host.replace(/^https?:\/\//,"").slice(0,32),color:fp[k%fp.length],values:h})})}return i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(Qs,{title:"HTTP outgoing overview",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(vo,{label:"Total requests",value:e.totalRequests,color:ja}),i.jsx(vo,{label:"In-flight",value:e.inFlight.current,color:e.inFlight.current>0?ja:void 0}),i.jsx(vo,{label:"Peak in-flight",value:e.inFlight.peak}),i.jsx(vo,{label:"Error rate",value:`${u.toFixed(1)}%`,color:u>=5?Lt:u>=1?Wo:Xc}),i.jsx(vo,{label:"Timeouts",value:l.timeouts,color:l.timeouts?Lt:void 0})]}),i.jsxs(O,{sx:{gap:"8px"},children:[i.jsx(L,{children:"Status distribution"}),i.jsx(xp,{dist:l}),i.jsx(V,{sx:{gap:"12px",flexWrap:"wrap"},children:tx.map(f=>{const b=l[f.key]??0;return i.jsxs(V,{sx:{gap:"6px",alignItems:"center"},children:[i.jsx(G,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:f.color}}),i.jsxs(L,{sx:{fontSize:".68rem"},children:[f.label," · ",b]})]},f.key)})})]})]}),i.jsxs(Qs,{title:`Per-host (${e.perHost.length})`,children:[e.perHost.length===0&&i.jsx(L,{children:"No requests recorded yet"}),e.perHost.length>0&&i.jsx(O,{sx:{gap:"0px"},children:e.perHost.map(f=>i.jsxs(hS,{children:[i.jsxs(V,{sx:{justifyContent:"space-between",alignItems:"baseline",gap:"10px",minWidth:0},children:[i.jsx(dn,{style:{fontFamily:"monospace",opacity:.92,minWidth:0,flex:1},children:f.host}),i.jsxs(L,{sx:{fontSize:".62rem",whiteSpace:"nowrap"},children:["last ",new Date(f.lastRequestAt).toLocaleTimeString()]})]}),i.jsxs(V,{sx:{gap:"16px",rowGap:"6px",flexWrap:"wrap",alignItems:"baseline"},children:[i.jsx(cn,{label:"Req",value:f.count}),i.jsx(cn,{label:"Err",value:f.errors,color:f.errors>0?Lt:void 0,sub:f.timeouts>0?i.jsxs("span",{style:{color:Zc},children:["·",f.timeouts,"to"]}):null}),i.jsx(cn,{label:"Retry",value:f.retries,color:f.retries>0?Wo:void 0}),i.jsx(cn,{label:"In-flight",value:f.inFlight,color:f.inFlight>0?ja:void 0}),i.jsx(cn,{label:"Avg",value:i.jsxs("span",{style:{color:f.avgMs>1e3?Lt:void 0},children:[Math.round(f.avgMs)," ms"]}),sub:`${Math.round(f.minMs)}-${Math.round(f.maxMs)}`}),i.jsx(cn,{label:"p50",value:`${Math.round(f.p50Ms??0)} ms`}),i.jsx(cn,{label:"p95",value:i.jsxs("span",{style:{color:(f.p95Ms??0)>1500?Lt:(f.p95Ms??0)>800?Wo:void 0},children:[Math.round(f.p95Ms??0)," ms"]})}),i.jsx(cn,{label:"p99",value:i.jsxs("span",{style:{color:(f.p99Ms??0)>2e3?Lt:void 0},children:[Math.round(f.p99Ms??0)," ms"]})})]}),i.jsx(xp,{dist:f.byStatus,compact:!0})]},f.host))})]}),d.length>0&&i.jsx(Qs,{title:`p95 trend (top ${c.length} by volume)`,children:i.jsxs(O,{sx:{gap:"6px"},children:[i.jsxs(L,{sx:{fontSize:".7rem"},children:["Client-side history — one sample per poll (",Math.round(Sa/1e3)," s), up to"," ",Math.round(ka*Sa/6e4)," min. Resets on reload."]}),i.jsx(He,{series:d,labels:p,height:180,formatValue:f=>`${Math.round(f)} ms`})]})}),e.topSlow.length>0&&i.jsx(Qs,{title:`Slowest requests (${e.topSlow.length})`,children:i.jsxs(O,{sx:{border:"1px solid rgba(255,255,255,.06)",borderRadius:"8px",overflow:"hidden"},children:[i.jsxs(vp,{style:{cursor:"default",opacity:.55,fontWeight:600},children:[i.jsx(dn,{children:"METHOD"}),i.jsx(dn,{children:"URL"}),i.jsx(dn,{children:"STAT"}),i.jsx(dn,{style:{textAlign:"right"},children:"TIME"})]}),e.topSlow.map(f=>{const b=mp(f.status);return i.jsxs(vp,{onClick:()=>r(f),children:[i.jsx(yp,{color:pp(f.method),children:(f.method??"—").toUpperCase()}),i.jsx(dn,{style:{fontFamily:"monospace",opacity:.92},children:f.url}),i.jsx(dn,{style:{color:b,fontWeight:b?600:void 0},children:f.status??"—"}),i.jsxs(dn,{style:{textAlign:"right",color:f.time>1e3?Lt:void 0,opacity:f.time>1e3?1:.8},children:[f.time," ms"]})]},f.id)})]})}),n&&i.jsx(ro,{title:`Slow #${n.id}`,onClose:()=>r(null),children:i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(V,{sx:{gap:"16px",flexWrap:"wrap",alignItems:"center"},children:[i.jsx(yp,{color:pp(n.method),children:(n.method??"—").toUpperCase()}),i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",wordBreak:"break-all"},children:n.url})]}),i.jsxs(V,{sx:{gap:"24px",flexWrap:"wrap"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Status"}),i.jsx(q,{variant:"medium",sx:{color:mp(n.status)},children:n.status??"—"})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Duration"}),i.jsxs(q,{variant:"medium",sx:{color:n.time>1e3?Lt:void 0},children:[n.time," ms"]})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Attempts"}),i.jsx(q,{variant:"medium",children:n.attempts})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Created"}),i.jsx(q,{variant:"medium",children:new Date(n.created).toLocaleString()})]})]}),n.error&&i.jsx(q,{variant:"medium",sx:{color:Lt},children:n.error}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Request"}),i.jsx(gp,{children:hp(n.request)})]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Response"}),i.jsx(gp,{children:hp(n.response)})]})]})})]})},gS=3e4,xS=()=>{const[e,t]=A.useState(null),[,n]=o5.useRequest(s=>{s!=null&&s.error||s!=null&&s.data&&t(s.data)});Bt(()=>n(),gS);const r=e?Object.entries(e.byHost).sort((s,l)=>l[1]-s[1]):[],o=r.reduce((s,[,l])=>Math.max(s,l),0)||1;return i.jsx(Ae,{label:"Active outgoing connections",children:i.jsxs(O,{sx:{gap:"18px"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Total active"}),i.jsx(q,{variant:"head",sx:{color:"#48BFE3"},children:(e==null?void 0:e.total)??0})]}),r.length===0&&i.jsx(L,{children:"No active connections"}),i.jsx(O,{sx:{gap:"12px"},children:r.map(([s,l])=>i.jsxs(O,{sx:{gap:"5px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",gap:"16px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:s}),i.jsx(L,{children:l})]}),i.jsx(G,{sx:{height:"6px",width:l/o*100+"%",minWidth:"4px",borderRadius:"3px",backgroundColor:"#48BFE3"}})]},s))})]})})},wp="#56bb56",ba="#bb5656",vS=({stats:e})=>{const t=Xg(e),n=t.reduce((s,l)=>Math.max(s,l.total),0)||1,r=t.reduce((s,l)=>s+l.success,0),o=t.reduce((s,l)=>s+l.fail,0);return i.jsx(Ae,{label:"Endpoint statistics",children:i.jsxs(O,{sx:{gap:"20px"},children:[i.jsxs(V,{sx:{gap:"40px",flexWrap:"wrap"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Endpoints"}),i.jsx(q,{variant:"headMedium",children:t.length})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Success"}),i.jsx(q,{variant:"headMedium",sx:{color:wp},children:r})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Failed"}),i.jsx(q,{variant:"headMedium",sx:{color:ba},children:o})]})]}),t.length===0&&i.jsx(L,{children:"No endpoint activity for the selected range"}),i.jsx(O,{sx:{gap:"14px"},children:t.map(s=>{const l=s.success/n*100,a=s.fail/n*100;return i.jsxs(O,{sx:{gap:"6px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",gap:"16px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace"},children:s.endpoint}),i.jsxs(V,{sx:{gap:"12px"},children:[i.jsxs(L,{children:[s.total," req"]}),s.fail>0&&i.jsxs(q,{variant:"caption",sx:{color:ba,opacity:1},children:[s.fail," failed"]})]})]}),i.jsxs(V,{sx:{height:"8px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"4px",overflow:"hidden"},children:[i.jsx(G,{sx:{width:l+"%",backgroundColor:wp}}),i.jsx(G,{sx:{width:a+"%",backgroundColor:ba}})]})]},s.endpoint)})})]})})},Sp=10,yS=({stats:e})=>{const t=m5(e),[n,r]=A.useState(!1),o=n?t:t.slice(0,Sp),s=Math.max(0,t.length-Sp);return i.jsx(Ae,{label:"Outgoing HTTP calls",children:i.jsxs(O,{sx:{gap:"12px"},children:[t.length===0&&i.jsx(L,{children:"No outgoing calls for the selected range"}),o.map(l=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"16px",alignItems:"baseline"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",opacity:.92,wordBreak:"break-all"},children:l.url}),i.jsx(L,{sx:{whiteSpace:"nowrap"},children:l.count})]},l.url)),s>0&&i.jsx(G,{onClick:()=>r(l=>!l),sx:{marginTop:"4px",padding:"8px",textAlign:"center",cursor:"pointer",fontSize:".72rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"#5390d9",borderTop:"1px solid rgba(255,255,255,.06)","&:hover":{backgroundColor:"rgba(255,255,255,.04)"}},children:n?"Less":`More (${s})`})]})})},jp="#56bb56",Ea="#bb5656",kp=10,wS=e=>e.length>96?e.slice(0,96)+"…":e,SS=({stats:e})=>{const[t,n]=A.useState(!1),[r,o]=A.useState(null),s=Zg(e),l=s.reduce((d,f)=>Math.max(d,f.total),0)||1,a=s.reduce((d,f)=>d+f.success,0),u=s.reduce((d,f)=>d+f.fail,0),c=t?s:s.slice(0,kp),p=Math.max(0,s.length-kp);return i.jsx(Ae,{label:"SQL queries",children:i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(V,{sx:{gap:"40px",flexWrap:"wrap"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Distinct queries"}),i.jsx(q,{variant:"headMedium",children:s.length})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Success"}),i.jsx(q,{variant:"headMedium",sx:{color:jp},children:a})]}),i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Failed"}),i.jsx(q,{variant:"headMedium",sx:{color:Ea},children:u})]})]}),s.length===0&&i.jsx(L,{children:"No SQL activity for the selected range (backend may not surface SQL counters)."}),i.jsx(O,{sx:{gap:"12px"},children:c.map(d=>{const f=d.success/l*100,b=d.fail/l*100,k=r===d.query;return i.jsxs(O,{sx:{gap:"6px"},children:[i.jsxs(V,{onClick:()=>o(k?null:d.query),sx:{justifyContent:"space-between",gap:"16px",cursor:"pointer",alignItems:"baseline"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,wordBreak:"break-all",whiteSpace:k?"pre-wrap":"nowrap",overflow:k?void 0:"hidden",textOverflow:k?void 0:"ellipsis",maxWidth:k?"100%":"70%"},children:k?d.query:wS(d.query)}),i.jsxs(V,{sx:{gap:"12px",flexShrink:0},children:[i.jsxs(L,{children:[d.total," q"]}),d.fail>0&&i.jsxs(q,{variant:"caption",sx:{color:Ea,opacity:1},children:[d.fail," failed"]})]})]}),i.jsxs(V,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"3px",overflow:"hidden"},children:[i.jsx(G,{sx:{width:f+"%",backgroundColor:jp}}),i.jsx(G,{sx:{width:b+"%",backgroundColor:Ea}})]})]},d.query)})}),p>0&&i.jsx(G,{onClick:()=>n(d=>!d),sx:{padding:"8px",textAlign:"center",cursor:"pointer",fontSize:".72rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"#5390d9",borderTop:"1px solid rgba(255,255,255,.06)","&:hover":{backgroundColor:"rgba(255,255,255,.04)"}},children:t?"Less":`More (${p})`})]})})},jS=3e4,yo="#56bb56",Gt="#bb5656",Ks="#48BFE3",wo=e=>e>=1e3?(e/1e3).toFixed(2)+" s":Math.round(e)+" ms",kS=me.pre`
|
|
310
320
|
margin: 0;
|
|
311
321
|
white-space: pre-wrap;
|
|
312
322
|
word-break: break-word;
|
|
@@ -319,7 +329,7 @@ Error generating stack: `+s.message+`
|
|
|
319
329
|
padding: 14px;
|
|
320
330
|
max-height: 60vh;
|
|
321
331
|
overflow: auto;
|
|
322
|
-
`,
|
|
332
|
+
`,bS=me.div`
|
|
323
333
|
display: grid;
|
|
324
334
|
grid-template-columns: 1fr auto;
|
|
325
335
|
gap: 12px;
|
|
@@ -331,11 +341,13 @@ Error generating stack: `+s.message+`
|
|
|
331
341
|
&:hover {
|
|
332
342
|
background-color: rgba(255, 255, 255, 0.04);
|
|
333
343
|
}
|
|
334
|
-
`,bo=({label:e,value:t,color:r})=>a.jsxs(T,{sx:{gap:"2px",minWidth:"70px"},children:[a.jsx(R,{children:e}),a.jsx(M,{variant:"headMedium",sx:r?{color:r}:void 0,children:t})]}),F6=({db:e,range:t})=>{const[r,n]=z.useState(null),o=e.stat??[],s=e.poolStatus!==null,i=o.map(m=>Ia(k8(m.slot),t)),l=o.reduce((m,E)=>m+E.totalQueries,0),c=o.reduce((m,E)=>m+E.failedQueries,0),u=o.reduce((m,E)=>m+E.transactionsCount,0),f=l?o.reduce((m,E)=>m+E.averageQueryTime*E.totalQueries,0)/l:0,h=o.reduce((m,E)=>Math.max(m,E.maxQueryTime),0),d=o.flatMap(m=>m.longestQueries??[]).sort((m,E)=>E.execution-m.execution).slice(0,10),C=e.poolStatus,y=C&&C.poolConnections?C.acquiredPoolConnections/C.poolConnections*100:0;return a.jsxs(T,{sx:{gap:"18px",padding:"18px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",alignItems:"center",gap:"12px",flexWrap:"wrap"},children:[a.jsxs(I,{sx:{gap:"10px",alignItems:"center"},children:[a.jsx(q,{sx:{width:"9px",height:"9px",borderRadius:"50%",backgroundColor:s?wo:Gt,boxShadow:`0 0 8px ${s?wo:Gt}`}}),a.jsxs(T,{sx:{gap:"1px"},children:[a.jsxs(M,{variant:"medium",sx:{fontFamily:"monospace"},children:[e.host,":",e.port]}),a.jsx(R,{sx:{fontSize:".66rem"},children:e.id})]})]}),a.jsx(q,{sx:{padding:"3px 9px",borderRadius:"4px",fontSize:".68rem",fontWeight:600,letterSpacing:".04em",color:s?wo:Gt,border:`1px solid ${(s?wo:Gt)+"55"}`,backgroundColor:(s?wo:Gt)+"1a"},children:s?"ONLINE":"UNAVAILABLE"})]}),C&&a.jsxs(T,{sx:{gap:"6px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",alignItems:"baseline",gap:"12px"},children:[a.jsx(R,{children:"Pool (acquired / total)"}),a.jsxs(M,{variant:"medium",children:[C.acquiredPoolConnections," / ",C.poolConnections]})]}),a.jsx(q,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:a.jsx(q,{sx:{height:"100%",width:Math.min(100,y)+"%",backgroundColor:y>85?Gt:ri}})}),a.jsxs(R,{sx:{fontSize:".68rem"},children:["Last success: ",C.lastSuccessQueryTime||"—"]})]}),a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(bo,{label:"Queries",value:String(l)}),a.jsx(bo,{label:"Failed",value:String(c),color:c?Gt:void 0}),a.jsx(bo,{label:"Transactions",value:String(u)}),a.jsx(bo,{label:"Avg time",value:So(f),color:ri}),a.jsx(bo,{label:"Max time",value:So(h)})]}),o.length>0&&a.jsxs(a.Fragment,{children:[a.jsxs(T,{sx:{gap:"6px"},children:[a.jsx(R,{children:"Queries / failed"}),a.jsx(Le,{height:150,labels:i,series:[{name:"Queries",color:ri,values:o.map(m=>m.totalQueries)},{name:"Failed",color:Gt,values:o.map(m=>m.failedQueries)}]})]}),a.jsxs(T,{sx:{gap:"6px"},children:[a.jsx(R,{children:"Avg query time"}),a.jsx(Le,{height:150,labels:i,formatValue:So,series:[{name:"Avg",color:"#80FFDB",values:o.map(m=>m.averageQueryTime)}]})]})]}),a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"Longest queries"}),d.length===0&&a.jsx(R,{sx:{fontSize:".7rem"},children:"No slow queries recorded"}),d.map((m,E)=>a.jsxs(A6,{onClick:()=>n(m),children:[a.jsx(q,{sx:{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",opacity:.9},children:m.query}),a.jsx(q,{sx:{color:m.execution>=1e3?Gt:ri,whiteSpace:"nowrap"},children:So(m.execution)})]},E))]}),r&&a.jsx(to,{title:`Query · ${So(r.execution)}`,onClose:()=>n(null),children:a.jsx(B6,{children:r.query})})]})},D6=({range:e})=>{const[t,r]=z.useState([]),[,n]=g8.useRequest(o=>{o!=null&&o.error||r((o==null?void 0:o.data)??[])});return z.useEffect(()=>{n({range:e})},[e]),zt(()=>n({range:e}),k6),a.jsx(De,{label:"Database",children:a.jsxs(T,{sx:{gap:"20px"},children:[t.length===0&&a.jsx(R,{children:"No database instances"}),t.map(o=>a.jsx(F6,{db:o,range:e},o.id))]})})},_6=3e4,Rm="#48BFE3",Yx="#56bb56",Ro="#bb5656",ki=e=>e>=90?Ro:e>=75?"#e9b61e":Rm,d0=({pct:e,color:t})=>a.jsx(q,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:a.jsx(q,{sx:{height:"100%",width:Math.min(100,Math.max(0,e))+"%",backgroundColor:t??ki(e),transition:"width .25s"}})}),gt=({label:e,value:t,color:r})=>a.jsxs(T,{sx:{gap:"2px",minWidth:"90px"},children:[a.jsx(R,{children:e}),a.jsx(M,{variant:"headMedium",sx:r?{color:r}:void 0,children:t})]}),pn=({title:e,children:t})=>a.jsxs(T,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[a.jsx(M,{variant:"headMedium",children:e}),t]}),R6=()=>{const[e,t]=z.useState(null),[,r]=y8.useRequest(u=>{u!=null&&u.error||u!=null&&u.data&&t(u.data)});if(zt(()=>r(),_6),!e)return a.jsx(R,{children:"Loading…"});const n=e.cpu,o=e.memory,s=e.disk??[],i=e.connections,l=e.nginx,c=e.pm2;return a.jsxs(T,{sx:{gap:"16px"},children:[a.jsxs(pn,{title:"CPU",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(gt,{label:"Cores",value:n.count}),a.jsx(gt,{label:"Platform",value:`${n.platform} / ${n.arch}`}),a.jsx(gt,{label:"Uptime",value:Oc(n.uptimeSec)}),a.jsx(gt,{label:"Load avg",value:n.loadAvg.map(u=>u.toFixed(2)).join(" ")})]}),n.usage&&a.jsx(T,{sx:{gap:"10px"},children:[{label:"User",pct:n.usage.userPct},{label:"System",pct:n.usage.systemPct},{label:"I/O wait",pct:n.usage.iowaitPct},{label:"Idle",pct:n.usage.idlePct}].map(u=>a.jsxs(T,{sx:{gap:"4px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px"},children:[a.jsx(R,{children:u.label}),a.jsxs(M,{variant:"medium",children:[u.pct,"%"]})]}),a.jsx(d0,{pct:u.pct,color:u.label==="Idle"?"#80FFDB":void 0})]},u.label))}),Object.keys(n.models).length>0&&a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"Models"}),Object.entries(n.models).map(([u,f])=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"16px"},children:[a.jsx(M,{variant:"medium",sx:{opacity:.9},children:u}),a.jsxs(R,{children:["×",f]})]},u))]})]}),a.jsxs(pn,{title:"Memory",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(gt,{label:"Total",value:Be(o.total)}),a.jsx(gt,{label:"Used",value:Be(o.used),color:ki(o.usedPct)}),a.jsx(gt,{label:"Free",value:Be(o.free)}),a.jsx(gt,{label:"Used %",value:`${o.usedPct}%`,color:ki(o.usedPct)})]}),a.jsx(d0,{pct:o.usedPct})]}),s.length>0&&a.jsx(pn,{title:"Disk",children:s.map(u=>{const f=parseInt(u.usePct,10)||(u.size?u.used/u.size*100:0);return a.jsxs(T,{sx:{gap:"6px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace"},children:u.mount}),a.jsx(R,{sx:{fontSize:".66rem"},children:u.filesystem})]}),a.jsxs(M,{variant:"medium",children:[Be(u.used)," / ",Be(u.size),a.jsx("span",{style:{marginLeft:8,color:ki(f)},children:u.usePct})]})]}),a.jsx(d0,{pct:f})]},u.mount+u.filesystem)})}),i&&a.jsxs(pn,{title:`HTTP connections (${i.ports.join(", ")})`,children:[a.jsx(I,{sx:{gap:"20px",flexWrap:"wrap"},children:a.jsx(gt,{label:"Total established",value:i.total,color:Rm})}),i.topRemote.length>0&&a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"Top remote IPs"}),i.topRemote.map(u=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace"},children:u.ip}),a.jsx(R,{children:u.count})]},u.ip))]})]}),a.jsxs(pn,{title:"Nginx",children:[!l.installed&&a.jsx(R,{children:"Not installed"}),l.installed&&a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(gt,{label:"Status",value:l.status??"—",color:l.status==="active"?Yx:Ro}),a.jsx(gt,{label:"Workers",value:l.workerCount??0}),a.jsx(gt,{label:"Version",value:l.version??"—"})]}),l.installed&&l.listening&&l.listening.length>0&&a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"Listening"}),l.listening.map(u=>a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:u},u))]}),l.error&&a.jsx(R,{sx:{color:Ro},children:l.error})]}),a.jsxs(pn,{title:"PM2",children:[!c.installed&&a.jsx(R,{children:"Not installed"}),c.installed&&c.processes&&c.processes.length>0&&a.jsx(T,{sx:{gap:"10px"},children:c.processes.map(u=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace"},children:u.name}),a.jsxs(R,{sx:{fontSize:".66rem"},children:["pid ",u.pid," · ",u.exec_mode??"—"," · ",u.instances??1," inst"]})]}),a.jsxs(I,{sx:{gap:"16px",alignItems:"baseline"},children:[a.jsx(R,{sx:{color:u.status==="online"?Yx:Ro},children:u.status??"—"}),a.jsxs(R,{children:[u.cpu??0,"%"]}),a.jsx(R,{children:Be(u.memory??0)}),a.jsxs(R,{children:["↻ ",u.restarts??0]})]})]},u.pm_id))}),c.error&&a.jsx(R,{sx:{color:Ro},children:c.error})]})]})},f0="#48BFE3",T6="#e9b61e",$r="#bb5656",Tm="#80FFDB",P6="#9a96ad",O6=2500,L6=2e3,Jx=45e3,N6=6e3,hn=({tone:e,children:t})=>{const r=e==="ok"?Tm:e==="warn"?T6:e==="fail"?$r:P6;return a.jsxs(I,{sx:{alignItems:"center",gap:"6px",padding:"3px 10px",borderRadius:"999px",border:`1px solid ${r}55`,backgroundColor:`${r}18`},children:[a.jsx(q,{sx:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:r}}),a.jsx(M,{variant:"medium",sx:{fontSize:".72rem",color:r,letterSpacing:".04em",textTransform:"uppercase"},children:t})]})},ni=({label:e,value:t,color:r})=>a.jsxs(T,{sx:{gap:"2px",minWidth:"90px"},children:[a.jsx(R,{children:e}),a.jsx(M,{variant:"headMedium",sx:r?{color:r}:void 0,children:t})]}),z6=({data:e})=>{const t=e.identity.pm2,r=(t==null?void 0:t.managed)===!0,n=(t==null?void 0:t.name)??"",o=e.identity.pid,s=e.identity.uptimeSec,[i,l]=z.useState("idle"),[c,u]=z.useState(""),[f,h]=z.useState(null),[d,C]=z.useState(null),y=z.useRef(null),[,m,,E]=S8.useRequest(b=>{var w;if(b!=null&&b.error){h(b.error),l("confirming");return}(w=b==null?void 0:b.data)!=null&&w.restarting&&(C(b.data.by),y.current={pid:o,uptimeSec:s},h(null),l("waiting"),u(""))}),[,v]=Bm.useRequest(b=>{var D;if(i!=="waiting"||b!=null&&b.error)return;const w=(D=b==null?void 0:b.data)==null?void 0:D.identity;if(!w||!y.current)return;(w.pid!==y.current.pid||w.uptimeSec<y.current.uptimeSec)&&l("done")});z.useEffect(()=>{if(i!=="waiting")return;let b=!1;const w=window.setTimeout(()=>{b||v()},O6),j=window.setInterval(()=>{b||v()},L6),D=window.setTimeout(()=>{b||l("timeout")},Jx);return()=>{b=!0,window.clearTimeout(w),window.clearInterval(j),window.clearTimeout(D)}},[i,v]),z.useEffect(()=>{if(i!=="done")return;const b=window.setTimeout(()=>l("idle"),N6);return()=>window.clearTimeout(b)},[i]);const x=()=>{r&&(h(null),u(""),l("confirming"))},p=()=>{E||(l("idle"),u(""),h(null))},g=()=>{!r||!n||c===n&&(h(null),l("restarting"),m({confirm:c}))},S=r&&c===n&&n.length>0;return a.jsxs(T,{sx:{gap:"14px"},children:[a.jsxs(I,{sx:{gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[a.jsx(M,{variant:"headMedium",children:"Process management"}),r?a.jsx(hn,{tone:"ok",children:"pm2 managed"}):a.jsx(hn,{tone:"warn",children:"not under pm2"}),i==="waiting"&&a.jsx(hn,{tone:"muted",children:"restarting…"}),i==="restarting"&&a.jsx(hn,{tone:"muted",children:"sending…"}),i==="done"&&a.jsx(hn,{tone:"ok",children:"restarted ✓"}),i==="timeout"&&a.jsx(hn,{tone:"fail",children:"timed out"})]}),r?a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ni,{label:"pm2 name",value:(t==null?void 0:t.name)??"—",color:f0}),a.jsx(ni,{label:"pm2 id",value:(t==null?void 0:t.pmId)??"—"}),a.jsx(ni,{label:"instance",value:(t==null?void 0:t.instanceId)??"—"}),a.jsx(ni,{label:"pid",value:o})]}):a.jsx(R,{sx:{fontSize:".78rem"},children:"This process has no pm2 pm_id in its environment — restarting from the UI is disabled because nothing would bring it back up."}),a.jsxs(I,{sx:{gap:"10px",alignItems:"center",flexWrap:"wrap"},children:[a.jsx(q,{onClick:r&&i==="idle"?x:void 0,sx:{padding:"9px 18px",borderRadius:"6px",cursor:r&&i==="idle"?"pointer":"not-allowed",fontSize:".78rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",color:r&&i==="idle"?"#fff":"rgba(255,255,255,.35)",backgroundColor:r&&i==="idle"?$r:"rgba(255,255,255,.05)",border:`1px solid ${r&&i==="idle"?$r:"rgba(255,255,255,.08)"}`,transition:"background-color .2s, border-color .2s","&:hover":r&&i==="idle"?{backgroundColor:"#9c4a4a"}:void 0},children:"Restart process"}),i==="waiting"&&a.jsx(R,{sx:{fontSize:".76rem"},children:"Waiting for process to come back up… (pm2 autorestart)"}),i==="done"&&d&&a.jsxs(R,{sx:{fontSize:".76rem",color:Tm},children:["Restart requested by ",a.jsx("b",{children:d})]}),i==="timeout"&&a.jsxs(R,{sx:{fontSize:".76rem",color:$r},children:["Process didn't come back within ",Math.round(Jx/1e3)," s — check pm2 autorestart."]})]}),a.jsx(R,{sx:{fontSize:".7rem",opacity:.8},children:"Relies on pm2 autorestart. Restart briefly interrupts traffic — for blue-green setups, prefer restarting the inactive slot."}),(i==="confirming"||i==="restarting")&&a.jsx(to,{title:"Restart process",onClose:p,width:"520px",children:a.jsxs(T,{sx:{gap:"16px"},children:[a.jsxs(T,{sx:{gap:"6px"},children:[a.jsxs(M,{variant:"medium",children:["You are about to restart the pm2 process"," ",a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",color:f0,display:"inline"},children:n}),(t==null?void 0:t.pmId)!=null&&a.jsxs(M,{variant:"medium",sx:{opacity:.8,display:"inline"},children:[" ","(id ",t.pmId,")"]}),"."]}),a.jsx(R,{sx:{fontSize:".76rem"},children:"This will briefly interrupt in-flight requests. pm2 autorestart will bring the process back within a few seconds."})]}),a.jsxs(T,{sx:{gap:"6px"},children:[a.jsxs(R,{children:["To confirm, type the pm2 process name:"," ",a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",color:f0,display:"inline"},children:n})]}),a.jsx(Es,{autoFocus:!0,value:c,disabled:E,placeholder:n,onChange:b=>u(b.target.value),onKeyDown:b=>{b.key==="Enter"&&S&&!E&&g()}})]}),f&&a.jsx(q,{sx:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"rgba(187,86,86,.14)",border:"1px solid rgba(187,86,86,.4)"},children:a.jsx(M,{variant:"medium",sx:{fontSize:".82rem",color:$r},children:f.details||f.message||"Restart failed."})}),a.jsxs(I,{sx:{gap:"10px",justifyContent:"flex-end",marginTop:"4px"},children:[a.jsx(q,{onClick:E?void 0:p,sx:{padding:"9px 16px",borderRadius:"6px",cursor:E?"not-allowed":"pointer",fontSize:".78rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:E?"rgba(255,255,255,.35)":"rgba(255,255,255,.85)",border:"1px solid rgba(255,255,255,.12)","&:hover":E?void 0:{backgroundColor:"rgba(255,255,255,.06)"}},children:"Cancel"}),a.jsx(q,{onClick:S&&!E?g:void 0,sx:{padding:"9px 18px",borderRadius:"6px",cursor:S&&!E?"pointer":"not-allowed",fontSize:".78rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",color:S&&!E?"#fff":"rgba(255,255,255,.35)",backgroundColor:S&&!E?$r:"rgba(255,255,255,.05)",border:`1px solid ${S&&!E?$r:"rgba(255,255,255,.08)"}`,"&:hover":S&&!E?{backgroundColor:"#9c4a4a"}:void 0},children:E?"Sending…":"Restart"})]})]})})]})},I6=3e4,Pm="#48BFE3",To="#bb5656",Po="#e9b61e",Bi=e=>e>=90?To:e>=75?Po:Pm,x0=({pct:e,color:t})=>a.jsx(q,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:a.jsx(q,{sx:{height:"100%",width:Math.min(100,Math.max(0,e))+"%",backgroundColor:t??Bi(e),transition:"width .25s"}})}),ie=({label:e,value:t,color:r})=>a.jsxs(T,{sx:{gap:"2px",minWidth:"90px"},children:[a.jsx(R,{children:e}),a.jsx(M,{variant:"headMedium",sx:r?{color:r}:void 0,children:t})]}),Nr=({title:e,children:t})=>a.jsxs(T,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[a.jsx(M,{variant:"headMedium",children:e}),t]}),M6=()=>{const[e,t]=z.useState(null),[,r]=Bm.useRequest(h=>{h!=null&&h.error||h!=null&&h.data&&t(h.data)});if(zt(()=>r(),I6),!e)return a.jsx(R,{children:"Loading…"});const n=e.identity,o=e.memory,s=e.cpu,i=e.eventLoop,l=e.gc,c=e.fileDescriptors,u=o.heap.sizeLimit?o.heapUsed/o.heap.sizeLimit*100:0,f=c.open!=null&&c.limitSoft?c.open/c.limitSoft*100:0;return a.jsxs(T,{sx:{gap:"16px"},children:[a.jsx(Nr,{title:"pm2",children:a.jsx(z6,{data:e})}),a.jsxs(Nr,{title:"Identity",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ie,{label:"PID",value:n.pid}),a.jsx(ie,{label:"Host",value:n.hostname}),a.jsx(ie,{label:"Node",value:n.nodeVersion}),a.jsx(ie,{label:"V8",value:n.v8Version}),a.jsx(ie,{label:"Platform",value:`${n.platform} / ${n.arch}`}),a.jsx(ie,{label:"Cores",value:n.availableParallelism}),a.jsx(ie,{label:"Uptime",value:Oc(n.uptimeSec)})]}),n.execPath&&a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"Exec path"}),a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all"},children:n.execPath})]}),n.cwd&&a.jsxs(T,{sx:{gap:"2px"},children:[a.jsx(R,{children:"CWD"}),a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all"},children:n.cwd})]})]}),a.jsxs(Nr,{title:"Memory",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ie,{label:"RSS",value:Be(o.rss)}),a.jsx(ie,{label:"Heap used",value:Be(o.heapUsed),color:Bi(u)}),a.jsx(ie,{label:"Heap total",value:Be(o.heapTotal)}),a.jsx(ie,{label:"Heap limit",value:Be(o.heap.sizeLimit)}),a.jsx(ie,{label:"External",value:Be(o.external)}),a.jsx(ie,{label:"ArrayBuffers",value:Be(o.arrayBuffers)})]}),a.jsxs(T,{sx:{gap:"4px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between"},children:[a.jsx(R,{children:"Heap used / limit"}),a.jsxs(M,{variant:"medium",children:[u.toFixed(1),"%"]})]}),a.jsx(x0,{pct:u})]}),o.heap.numberOfDetachedContexts>0&&a.jsxs(R,{sx:{color:To},children:["Detached contexts: ",o.heap.numberOfDetachedContexts," (possible leak)"]}),o.heapSpaces.length>0&&a.jsxs(T,{sx:{gap:"6px"},children:[a.jsx(R,{children:"Heap spaces"}),o.heapSpaces.map(h=>{const d=h.size?h.used/h.size*100:0;return a.jsxs(T,{sx:{gap:"4px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:h.name}),a.jsxs(R,{children:[Be(h.used)," / ",Be(h.size)]})]}),a.jsx(x0,{pct:d})]},h.name)})]})]}),a.jsx(Nr,{title:"CPU",children:a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ie,{label:"User",value:`${s.userPct}%`,color:Pm}),a.jsx(ie,{label:"System",value:`${s.systemPct}%`,color:"#80FFDB"}),s.resource&&a.jsxs(a.Fragment,{children:[a.jsx(ie,{label:"Max RSS",value:Be(s.resource.maxRSS*1024)}),a.jsx(ie,{label:"Ctx (vol)",value:s.resource.voluntaryContextSwitches}),a.jsx(ie,{label:"Ctx (invol)",value:s.resource.involuntaryContextSwitches}),a.jsx(ie,{label:"FS read/write",value:`${s.resource.fsRead} / ${s.resource.fsWrite}`})]})]})}),i&&a.jsxs(Nr,{title:"Event loop",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ie,{label:"Utilization",value:`${i.utilizationPct}%`,color:Bi(i.utilizationPct)}),a.jsx(ie,{label:"Spot lag",value:`${i.spotLagMs} ms`}),a.jsx(ie,{label:"Active handles",value:i.activeHandles}),a.jsx(ie,{label:"Active requests",value:i.activeRequests})]}),a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ie,{label:"Mean lag",value:`${i.meanMs.toFixed(2)} ms`}),a.jsx(ie,{label:"p50",value:`${i.p50Ms.toFixed(2)} ms`}),a.jsx(ie,{label:"p90",value:`${i.p90Ms.toFixed(2)} ms`,color:i.p90Ms>50?Po:void 0}),a.jsx(ie,{label:"p99",value:`${i.p99Ms.toFixed(2)} ms`,color:i.p99Ms>100?To:i.p99Ms>50?Po:void 0}),a.jsx(ie,{label:"Max lag",value:`${i.maxMs.toFixed(2)} ms`})]})]}),a.jsxs(Nr,{title:"Garbage collection",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ie,{label:"Total collections",value:l.totalCount}),a.jsx(ie,{label:"Total time",value:`${l.totalTimeMs.toFixed(1)} ms`}),a.jsx(ie,{label:"Max pause",value:`${l.maxPauseMs.toFixed(1)} ms`,color:l.maxPauseMs>100?To:l.maxPauseMs>30?Po:void 0})]}),Object.keys(l.byKind).length>0&&a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"By kind"}),Object.entries(l.byKind).map(([h,d])=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace"},children:h}),a.jsxs(R,{children:[d.count," · ",d.timeMs.toFixed(1)," ms"]})]},h))]}),l.lastPauses.length>0&&a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"Recent pauses"}),l.lastPauses.slice().reverse().slice(0,10).map((h,d)=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px"},children:[a.jsxs(M,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:[new Date(h.timestamp).toLocaleTimeString()," · ",h.kind]}),a.jsxs(R,{sx:{color:h.ms>100?To:h.ms>30?Po:void 0},children:[h.ms.toFixed(1)," ms"]})]},d))]})]}),a.jsxs(Nr,{title:"File descriptors",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ie,{label:"Open",value:c.open??"—",color:c.open!=null?Bi(f):void 0}),a.jsx(ie,{label:"Soft limit",value:c.limitSoft??"—"}),a.jsx(ie,{label:"Hard limit",value:c.limitHard??"—"})]}),c.open!=null&&c.limitSoft&&a.jsxs(T,{sx:{gap:"4px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between"},children:[a.jsx(R,{children:"Open / soft limit"}),a.jsxs(M,{variant:"medium",children:[f.toFixed(1),"%"]})]}),a.jsx(x0,{pct:f})]})]})]})},$6=3e4,ia="#48BFE3",Om="#e9b61e",zc="#bb5656",Lm="#9a96ad",Oo={fdOpen:"#48BFE3",softLimit:"#bb5656",ESTABLISHED:"#80FFDB",CLOSE_WAIT:"#bb5656",TIME_WAIT:"#e9b61e",FIN_WAIT1:"#c48af0",FIN_WAIT2:"#c48af0",LISTEN:"#5390d9",total:"#c9c4dc",rss:"#9a96ad"},Zx=e=>{const t=new Date(e);return`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}`},H6=e=>e>=.9?zc:e>=.7?Om:ia,W6=({pct:e,color:t})=>a.jsx(q,{sx:{height:"8px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"4px",overflow:"hidden"},children:a.jsx(q,{sx:{height:"100%",width:Math.min(100,Math.max(0,e))+"%",backgroundColor:t,transition:"width .25s, background-color .25s"}})}),jo=({title:e,children:t})=>a.jsxs(T,{sx:{gap:"12px",padding:"14px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[a.jsx(M,{variant:"headMedium",children:e}),t]}),ko=({label:e,value:t,color:r})=>a.jsxs(T,{sx:{gap:"2px",minWidth:"90px"},children:[a.jsx(R,{children:e}),a.jsx(M,{variant:"headMedium",sx:r?{color:r,fontVariantNumeric:"tabular-nums"}:{fontVariantNumeric:"tabular-nums"},children:t})]}),U6=({tone:e,text:t})=>a.jsxs(I,{sx:{gap:"8px",alignItems:"flex-start",padding:"8px 10px",borderRadius:"6px",backgroundColor:e==="fail"?"rgba(187,86,86,.12)":e==="warn"?"rgba(233,182,30,.10)":"rgba(72,191,227,.10)",border:"1px solid "+(e==="fail"?"rgba(187,86,86,.35)":e==="warn"?"rgba(233,182,30,.35)":"rgba(72,191,227,.35)")},children:[a.jsx(q,{sx:{width:"6px",height:"6px",borderRadius:"50%",marginTop:"6px",backgroundColor:e==="fail"?zc:e==="warn"?Om:ia,flexShrink:0}}),a.jsx(M,{variant:"medium",sx:{opacity:.92,fontSize:".8rem"},children:t})]}),q6=({state:e,count:t,total:r,highlight:n})=>{const o=r>0?t/r*100:0,s=Oo[e]??Lm;return a.jsxs(T,{sx:{gap:"4px",minWidth:"0"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",gap:"8px",alignItems:"baseline"},children:[a.jsxs(I,{sx:{gap:"6px",alignItems:"center",minWidth:0},children:[a.jsx(q,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:s,flexShrink:0}}),a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:n?1:.92,color:n?zc:void 0,fontWeight:n?600:void 0},children:e})]}),a.jsxs(I,{sx:{gap:"6px",alignItems:"baseline"},children:[a.jsx(M,{variant:"medium",sx:{fontVariantNumeric:"tabular-nums"},children:t}),a.jsxs(R,{sx:{fontSize:".65rem"},children:[o.toFixed(0),"%"]})]})]}),a.jsx(q,{sx:{height:"4px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"2px",overflow:"hidden"},children:a.jsx(q,{sx:{height:"100%",width:o+"%",backgroundColor:s}})})]})},V6=(e,t=4)=>{if(e.length<t)return{grew:!1,delta:0};const r=e.slice(-Math.max(t,Math.min(e.length,12))),n=r[0],o=r[r.length-1];if(o<=n)return{grew:!1,delta:0};const s=o-n;return{grew:s>=5&&o>=n*1.2,delta:s}},Q6=({limit:e})=>{const[t,r]=z.useState(null),[,n]=w8.useRequest(F=>{F!=null&&F.error||F!=null&&F.data&&r(F.data)});zt(()=>n(),$6);const o=z.useMemo(()=>{var $;if(!(($=t==null?void 0:t.history)!=null&&$.length))return[];const F=t.history;return typeof e=="number"&&e>0&&F.length>e?F.slice(-e):F},[t,e]);if(!t)return a.jsx(De,{label:"File descriptors & sockets",children:a.jsx(R,{children:"Loading…"})});const s=t.now,i=s.sockets,l=s.limitSoft,c=l===-1,u=!c&&l!=null&&l>0,f=u?s.fdOpen/l:0,h=f*100,d=u?H6(f):ia,C=(i==null?void 0:i.byState)??{},y=Object.entries(C).filter(([,F])=>typeof F=="number"&&F>0).sort((F,$)=>$[1]-F[1]),m=o.map(F=>Zx(F.ts)),E=[];if(o.length){E.push({name:"fdOpen",color:Oo.fdOpen,values:o.map($=>$.fdOpen)});let F=0;for(const $ of o)typeof $.fdSoftLimit=="number"&&$.fdSoftLimit>0&&(F=$.fdSoftLimit);F>0&&E.push({name:"soft limit",color:Oo.softLimit,values:o.map(()=>F)})}const v=new Set;for(const F of o)for(const $ of Object.keys(F.byState??{}))(F.byState[$]??0)>0&&v.add($);const x=["ESTABLISHED","CLOSE_WAIT","TIME_WAIT","FIN_WAIT1","FIN_WAIT2","LISTEN"],g=x.filter(F=>v.has(F)).concat([...v].filter(F=>!x.includes(F)).sort()).map(F=>({name:F,color:Oo[F]??Lm,values:o.map($=>{var K;return((K=$.byState)==null?void 0:K[F])??0})})),S=[];u&&f>.9?S.push({tone:"fail",text:`fdOpen has reached ${h.toFixed(0)}% of the soft limit — descriptor exhaustion is imminent.`}):u&&f>.7&&S.push({tone:"warn",text:`fdOpen is at ${h.toFixed(0)}% of the soft limit — investigate what is holding open descriptors.`});const b=o.map(F=>{var $;return(($=F.byState)==null?void 0:$.CLOSE_WAIT)??0}),w=V6(b);w.grew&&S.push({tone:"warn",text:`CLOSE_WAIT sockets keep piling up (+${w.delta} over the recent window) — the peer (e.g. nginx) closed the connections but the app never released them.`});const j=(i==null?void 0:i.topRemotes)??[],D=C.ESTABLISHED??0;if(j.length>0&&D>0){const F=j[0];F.established>=10&&F.established/D>=.6&&S.push({tone:"info",text:`Host ${F.host} holds ${F.established} of ${D} ESTABLISHED sockets — check for stuck outgoing keep-alives.`})}const k=Math.round(t.sampleEveryMs/6e4),A=o.length===0,N=i===null;return a.jsx(De,{label:"File descriptors & sockets",children:a.jsxs(T,{sx:{gap:"16px"},children:[a.jsxs(jo,{title:"Current",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(ko,{label:"fd open",value:s.fdOpen,color:d}),a.jsx(ko,{label:"Soft limit",value:c?"∞":l??"—"}),a.jsx(ko,{label:"Hard limit",value:s.limitHard===-1?"∞":s.limitHard??"—"}),i&&a.jsx(ko,{label:"Sockets",value:i.total}),a.jsx(ko,{label:"Sampled",value:Zx(s.ts)})]}),u&&a.jsxs(T,{sx:{gap:"4px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between"},children:[a.jsx(R,{children:"fd open / soft limit"}),a.jsxs(M,{variant:"medium",sx:{color:d,fontVariantNumeric:"tabular-nums"},children:[h.toFixed(1),"%"]})]}),a.jsx(W6,{pct:h,color:d})]}),c&&a.jsx(R,{sx:{fontSize:".72rem"},children:"Soft limit is unlimited — only the absolute fd count is shown."})]}),S.length>0&&a.jsx(T,{sx:{gap:"8px"},children:S.map((F,$)=>a.jsx(U6,{tone:F.tone,text:F.text},$))}),N&&a.jsx(jo,{title:"Sockets",children:a.jsx(R,{children:"Socket state breakdown is only available on Linux (collected from /proc)."})}),i&&y.length>0&&a.jsx(jo,{title:"Sockets by state",children:a.jsx(T,{sx:{gap:"10px"},children:y.map(([F,$])=>a.jsx(q6,{state:F,count:$,total:i.total,highlight:F==="CLOSE_WAIT"},F))})}),i&&j.length>0&&a.jsx(jo,{title:"Top remote hosts (ESTABLISHED)",children:a.jsx(T,{sx:{gap:"6px"},children:j.map(F=>{const $=D>0?F.established/D*100:0;return a.jsxs(T,{sx:{gap:"4px"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all",fontSize:".78rem"},children:F.host}),a.jsx(M,{variant:"medium",sx:{fontVariantNumeric:"tabular-nums"},children:F.established})]}),a.jsx(q,{sx:{height:"4px",width:$+"%",minWidth:"4px",borderRadius:"2px",backgroundColor:ia}})]},F.host)})})}),a.jsx(jo,{title:`History (every ${k} min, up to ${t.historyMax} samples)`,children:A?a.jsxs(R,{children:["No history yet — the first sample is taken at startup, then every ",k," minutes."]}):a.jsxs(T,{sx:{gap:"18px"},children:[a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"Open file descriptors"}),a.jsx(Le,{series:E,labels:m,height:180,formatValue:F=>Math.round(F).toString()})]}),g.length>0&&a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"Sockets by state"}),a.jsx(Le,{series:g,labels:m,height:180,formatValue:F=>Math.round(F).toString()})]}),a.jsxs(T,{sx:{gap:"4px"},children:[a.jsx(R,{children:"Resident memory (RSS)"}),a.jsx(Le,{series:[{name:"RSS",color:Oo.rss,values:o.map(F=>F.rss)}],labels:m,height:140,formatValue:Be})]})]})})]})})},K6=3e4,p0="#48BFE3",Nm="#56bb56",zm="#bb5656",G6={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656",ANY:"#8a8699"},X6=e=>G6[e.toUpperCase()]??"#8a8699",oi=({label:e,value:t,color:r})=>a.jsxs(T,{sx:{gap:"2px",minWidth:"80px"},children:[a.jsx(R,{children:e}),a.jsx(M,{variant:"headMedium",sx:r?{color:r}:void 0,children:t})]}),h0=({title:e,children:t})=>a.jsxs(T,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[a.jsx(M,{variant:"headMedium",children:e}),t]}),Y6=({method:e})=>{const t=X6(e);return a.jsx(q,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:t,border:"1px solid "+t+"55",backgroundColor:t+"1a"},children:e.toUpperCase()})},zr=({label:e,active:t,color:r})=>{if(!t)return null;const n=r??"#9a96ad";return a.jsx(q,{sx:{padding:"1px 6px",borderRadius:"3px",fontSize:".62rem",fontWeight:500,letterSpacing:".04em",textTransform:"uppercase",color:n,border:`1px solid ${n}44`,backgroundColor:`${n}12`},children:e})},J6=({svc:e})=>a.jsxs(I,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline",flexWrap:"wrap"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsxs(I,{sx:{gap:"10px",alignItems:"baseline"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace"},children:e.name}),a.jsx(R,{sx:{fontSize:".66rem"},children:e.className})]}),a.jsxs(R,{sx:{fontSize:".66rem"},children:["created ",new Date(e.createdAt).toLocaleTimeString(),e.initializedAt?` · init ${new Date(e.initializedAt).toLocaleTimeString()}`:"",e.applicationReadyAt?` · ready ${new Date(e.applicationReadyAt).toLocaleTimeString()}`:""]})]}),a.jsxs(I,{sx:{gap:"12px",alignItems:"baseline"},children:[e.uptimeSec!==null&&a.jsx(R,{children:Oc(e.uptimeSec)}),a.jsx(R,{sx:{color:e.initialized?Nm:zm},children:e.initialized?"READY":"NOT INIT"})]})]}),Z6=({h:e})=>a.jsxs(I,{sx:{gap:"10px",alignItems:"baseline",padding:"6px 0",borderBottom:"1px solid rgba(255,255,255,.05)",flexWrap:"wrap"},children:[a.jsx(I,{sx:{gap:"4px"},children:e.methods.map(t=>a.jsx(Y6,{method:t},t))}),a.jsx(q,{sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,flexGrow:1,minWidth:"160px"},children:e.path}),a.jsxs(I,{sx:{gap:"4px",flexWrap:"wrap"},children:[a.jsx(zr,{label:"validation",active:e.hasValidationModel,color:"#5390d9"}),a.jsx(zr,{label:"result",active:e.hasResultModel,color:"#48BFE3"}),a.jsx(zr,{label:"stream",active:e.asStream,color:"#80FFDB"}),a.jsx(zr,{label:"no-doc",active:e.ignoreInDocumentation}),a.jsx(zr,{label:"no-log",active:e.ignoreHttpLogging}),a.jsx(zr,{label:"no-intercept",active:e.ignoreInterceptor}),a.jsx(zr,{label:"independent",active:e.independed})]})]}),e3=({ep:e,defaultOpen:t})=>{const[r,n]=z.useState(!!t);return a.jsxs(T,{sx:{gap:r?"12px":"0px",padding:"12px 14px",border:"1px solid rgba(255,255,255,.06)",borderRadius:"6px",backgroundColor:"rgba(0,0,0,.15)"},children:[a.jsxs(I,{onClick:()=>n(o=>!o),sx:{cursor:"pointer",justifyContent:"space-between",gap:"12px",alignItems:"baseline",flexWrap:"wrap"},children:[a.jsxs(T,{sx:{gap:"2px"},children:[a.jsxs(I,{sx:{gap:"10px",alignItems:"baseline"},children:[a.jsx(M,{variant:"medium",sx:{fontFamily:"monospace"},children:e.basePath||"/"}),a.jsx(R,{sx:{fontSize:".66rem"},children:e.className})]}),e.description&&a.jsx(R,{sx:{fontSize:".68rem",opacity:.85},children:e.description})]}),a.jsxs(I,{sx:{gap:"12px",alignItems:"baseline"},children:[a.jsxs(R,{children:[e.handlerCount," handler",e.handlerCount===1?"":"s"]}),a.jsx(R,{sx:{color:e.initializedAt?Nm:zm},children:e.initializedAt?"READY":"NOT INIT"}),a.jsx(q,{sx:{opacity:.5,fontSize:".8rem"},children:r?"▾":"▸"})]})]}),r&&a.jsxs(T,{sx:{gap:"2px"},children:[e.handlers.length===0&&a.jsx(R,{children:"No handlers"}),e.handlers.map(o=>a.jsx(Z6,{h:o},o.path+o.methods.join(",")))]})]})},t3=()=>{const[e,t]=z.useState(null),[r,n]=z.useState(""),[,o]=C8.useRequest(l=>{l!=null&&l.error||l!=null&&l.data&&t(l.data)});zt(()=>o(),K6);const s=z.useMemo(()=>{if(!e)return[];const l=r.trim().toLowerCase();return l?e.endpoints.map(c=>{const u=c.basePath.toLowerCase().includes(l)||c.className.toLowerCase().includes(l)||(c.description??"").toLowerCase().includes(l),f=c.handlers.filter(h=>h.path.toLowerCase().includes(l)||(h.description??"").toLowerCase().includes(l)||(h.title??"").toLowerCase().includes(l)||h.methods.some(d=>d.toLowerCase().includes(l)));return u?c:f.length?{...c,handlers:f,handlerCount:f.length}:null}).filter(c=>c!==null):e.endpoints},[e,r]),i=z.useMemo(()=>{if(!e)return[];const l=r.trim().toLowerCase();return l?e.services.filter(c=>c.name.toLowerCase().includes(l)||c.className.toLowerCase().includes(l)):e.services},[e,r]);return e?a.jsxs(T,{sx:{gap:"16px"},children:[a.jsxs(h0,{title:"Overview",children:[a.jsxs(I,{sx:{gap:"20px",flexWrap:"wrap"},children:[a.jsx(oi,{label:"Services",value:e.counts.services,color:p0}),a.jsx(oi,{label:"Endpoints",value:e.counts.endpoints,color:p0}),a.jsx(oi,{label:"Handlers",value:e.counts.totalHandlers,color:p0}),a.jsx(oi,{label:"Entrypoint",value:a.jsx("span",{style:{fontFamily:"monospace"},children:e.entrypoint||"/"})})]}),a.jsx(Es,{type:"search",value:r,placeholder:"Filter by path, class, description or method…",onChange:l=>n(l.target.value)})]}),a.jsxs(h0,{title:`Services (${i.length})`,children:[i.length===0&&a.jsx(R,{children:"No matches"}),a.jsx(T,{sx:{gap:"10px"},children:i.map(l=>a.jsx(J6,{svc:l},l.className+l.name))})]}),a.jsxs(h0,{title:`Endpoints (${s.length})`,children:[s.length===0&&a.jsx(R,{children:"No matches"}),a.jsx(T,{sx:{gap:"10px"},children:s.map(l=>a.jsx(e3,{ep:l,defaultOpen:!!r.trim()},l.className+l.basePath))})]})]}):a.jsx(R,{children:"Loading…"})},Im=["CPU","NET","DB","MEM","PM2","APP","SYS"],r3=({active:e,onChange:t,counts:r})=>{const n=e.size===0,o=i=>{const l=new Set(e);l.has(i)?l.delete(i):l.add(i),t(l)},s=(i,l,c,u)=>a.jsxs(q,{onClick:c,sx:{padding:"0 2px 12px",marginBottom:"-1px",cursor:"pointer",fontSize:".74rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",transition:"color .2s, border-color .2s",borderBottom:"2px solid "+(l?"#5390d9":"transparent"),color:l?"textPrimary":"rgba(255,255,255,.4)",display:"flex",alignItems:"center",gap:"6px","&:hover":{color:l?"textPrimary":"rgba(255,255,255,.7)"}},children:[a.jsx("span",{children:i}),u!==void 0&&u>0&&a.jsx(M,{variant:"caption",sx:{fontSize:".62rem",opacity:l?.9:.5,fontVariantNumeric:"tabular-nums"},children:u})]},i);return a.jsxs(I,{sx:{gap:"26px",borderBottom:"1px solid rgba(255,255,255,.08)",marginBottom:"20px",flexWrap:"wrap"},children:[s("ALL",n,()=>t(new Set)),Im.map(i=>s(i,e.has(i),()=>o(i),r[i]))]})},n3=({stats:e,range:t})=>{const[r,n]=z.useState(new Set),o=[{node:a.jsx(p6,{stats:e,range:t}),tags:["CPU","MEM","APP"]},{node:a.jsx(y6,{}),tags:["NET"]},{node:a.jsx(w6,{stats:e}),tags:["APP"]},{node:a.jsx(j6,{stats:e}),tags:["DB"]},{node:a.jsx(E6,{}),tags:["NET"]},{node:a.jsx(S6,{stats:e}),tags:["NET","APP"]},{node:a.jsx(D6,{range:t}),tags:["DB"]},{node:a.jsx(Q6,{}),tags:["NET","SYS"]},{node:a.jsx(R6,{}),tags:["SYS","CPU","MEM"]},{node:a.jsx(M6,{}),tags:["PM2","MEM","APP"]},{node:a.jsx(t3,{}),tags:["APP"]}],s=Im.reduce((l,c)=>({...l,[c]:o.filter(u=>u.tags.includes(c)).length}),{}),i=r.size===0?o:o.filter(l=>l.tags.some(c=>r.has(c)));return a.jsxs(T,{sx:{gap:"0"},children:[a.jsx(r3,{active:r,onChange:n,counts:s}),i.length===0?a.jsx(q,{sx:{padding:"40px",textAlign:"center",opacity:.6},children:"No panels match the selected filters."}):a.jsx(q,{sx:{columnWidth:"440px",columnGap:"20px"},children:i.map((l,c)=>a.jsx(q,{sx:{breakInside:"avoid",marginBottom:"20px",display:"block"},children:l.node},c))})]})},ep=window.__ver,o3=3e4,s3=[{value:"hour",label:"Hour"},{value:"day",label:"Day"},{value:"week",label:"Week"}],i3=[{value:"overview",label:"Overview"},{value:"logs",label:"Logs"},{value:"correlations",label:"Correlations"},{value:"archive",label:"Archive"}],tp=({items:e,value:t,onChange:r})=>a.jsx(I,{sx:{gap:"4px",padding:"4px",backgroundColor:"rgba(0,0,0,.2)",borderRadius:"8px"},children:e.map(n=>{const o=n.value===t;return a.jsx(q,{onClick:()=>r(n.value),sx:{padding:"8px 18px",borderRadius:"6px",cursor:"pointer",fontSize:".85rem",transition:"background-color .2s",backgroundColor:o?"buttonBackgroundPrimary":"transparent",color:o?"buttonTextPrimary":"textPrimary","&:hover":{backgroundColor:o?"buttonBackgroundPrimary":"rgba(255,255,255,.06)"}},children:n.label},n.value)})}),a3=({tabs:e,value:t,onChange:r})=>a.jsx(I,{sx:{gap:"26px",borderBottom:"1px solid rgba(255,255,255,.08)",marginBottom:"20px"},children:e.map((n,o)=>{const s=o===t;return a.jsx(q,{onClick:()=>r(o),sx:{padding:"0 2px 12px",marginBottom:"-1px",cursor:"pointer",fontSize:".74rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",transition:"color .2s, border-color .2s",borderBottom:"2px solid "+(s?"#5390d9":"transparent"),color:s?"textPrimary":"rgba(255,255,255,.4)","&:hover":{color:s?"textPrimary":"rgba(255,255,255,.7)"}},children:n},n)})}),l3=()=>{const[e,t]=z.useState("overview"),[r,n]=z.useState("hour"),[o,s]=z.useState(0),[i,l]=z.useState([]),[c,u]=z.useState(null),[f,h]=z.useState(null),[,d,,C]=bm.useRequest(y=>{if(y!=null&&y.error){u(y.error);return}u(null),l((y==null?void 0:y.data)??[]),h(Date.now())});return z.useEffect(()=>{d({range:r})},[r]),zt(()=>d({range:r}),o3),a.jsxs(T,{sx:{padding:"30px",gap:"24px",maxWidth:"1800px",margin:"0 auto",width:"100%"},children:[a.jsxs(I,{sx:{justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"16px"},children:[a.jsxs(I,{sx:{alignItems:"baseline",gap:"12px",flexWrap:"wrap"},children:[a.jsx(M,{variant:"head",children:"Server Monitor"}),ep&&a.jsxs(R,{sx:{fontSize:".72rem"},children:["v.",ep]}),C&&a.jsx(fs,{size:18})]}),a.jsx(tp,{items:i3,value:e,onChange:t}),a.jsxs(I,{sx:{alignItems:"center",gap:"16px"},children:[f&&a.jsxs(dt,{children:["Updated ",new Date(f).toLocaleTimeString()]}),e==="overview"&&a.jsx(tp,{items:s3,value:r,onChange:n})]})]}),c&&a.jsx(Em,{error:c}),e==="overview"&&a.jsx(n3,{stats:i,range:r}),e==="logs"&&a.jsxs(De,{children:[a.jsx(a3,{tabs:["Log","Net log","Outgoing"],value:o,onChange:s}),o===0&&a.jsx(G8,{}),o===1&&a.jsx(s6,{}),o===2&&a.jsx(x6,{})]}),e==="correlations"&&a.jsx($8,{}),e==="archive"&&a.jsx(_8,{})]})},rp=window.__host,np=!!rp&&!rp.includes("{{"),ku="monitor.auth",u3=()=>{try{const e=localStorage.getItem(ku);if(!e)return null;const t=JSON.parse(e);return{host:t.host??"",login:t.login??"",password:""}}catch{return null}},c3=fe.form`
|
|
344
|
+
`,So=({label:e,value:t,color:n})=>i.jsxs(O,{sx:{gap:"2px",minWidth:"70px"},children:[i.jsx(L,{children:e}),i.jsx(q,{variant:"headMedium",sx:n?{color:n}:void 0,children:t})]}),ES=({db:e,range:t})=>{const[n,r]=A.useState(null),o=e.stat??[],s=e.poolStatus!==null,l=o.map(v=>Ml(h5(v.slot),t)),a=o.reduce((v,C)=>v+C.totalQueries,0),u=o.reduce((v,C)=>v+C.failedQueries,0),c=o.reduce((v,C)=>v+C.transactionsCount,0),p=a?o.reduce((v,C)=>v+C.averageQueryTime*C.totalQueries,0)/a:0,d=o.reduce((v,C)=>Math.max(v,C.maxQueryTime),0),f=o.flatMap(v=>v.longestQueries??[]).sort((v,C)=>C.execution-v.execution).slice(0,10),b=e.poolStatus,k=b&&b.poolConnections?b.acquiredPoolConnections/b.poolConnections*100:0;return i.jsxs(O,{sx:{gap:"18px",padding:"18px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",alignItems:"center",gap:"12px",flexWrap:"wrap"},children:[i.jsxs(V,{sx:{gap:"10px",alignItems:"center"},children:[i.jsx(G,{sx:{width:"9px",height:"9px",borderRadius:"50%",backgroundColor:s?yo:Gt,boxShadow:`0 0 8px ${s?yo:Gt}`}}),i.jsxs(O,{sx:{gap:"1px"},children:[i.jsxs(q,{variant:"medium",sx:{fontFamily:"monospace"},children:[e.host,":",e.port]}),i.jsx(L,{sx:{fontSize:".66rem"},children:e.id})]})]}),i.jsx(G,{sx:{padding:"3px 9px",borderRadius:"4px",fontSize:".68rem",fontWeight:600,letterSpacing:".04em",color:s?yo:Gt,border:`1px solid ${(s?yo:Gt)+"55"}`,backgroundColor:(s?yo:Gt)+"1a"},children:s?"ONLINE":"UNAVAILABLE"})]}),b&&i.jsxs(O,{sx:{gap:"6px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",alignItems:"baseline",gap:"12px"},children:[i.jsx(L,{children:"Pool (acquired / total)"}),i.jsxs(q,{variant:"medium",children:[b.acquiredPoolConnections," / ",b.poolConnections]})]}),i.jsx(G,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:i.jsx(G,{sx:{height:"100%",width:Math.min(100,k)+"%",backgroundColor:k>85?Gt:Ks}})}),i.jsxs(L,{sx:{fontSize:".68rem"},children:["Last success: ",b.lastSuccessQueryTime||"—"]})]}),i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(So,{label:"Queries",value:String(a)}),i.jsx(So,{label:"Failed",value:String(u),color:u?Gt:void 0}),i.jsx(So,{label:"Transactions",value:String(c)}),i.jsx(So,{label:"Avg time",value:wo(p),color:Ks}),i.jsx(So,{label:"Max time",value:wo(d)})]}),o.length>0&&i.jsxs(i.Fragment,{children:[i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Queries / failed"}),i.jsx(He,{height:150,labels:l,series:[{name:"Queries",color:Ks,values:o.map(v=>v.totalQueries)},{name:"Failed",color:Gt,values:o.map(v=>v.failedQueries)}]})]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Avg query time"}),i.jsx(He,{height:150,labels:l,formatValue:wo,series:[{name:"Avg",color:"#80FFDB",values:o.map(v=>v.averageQueryTime)}]})]})]}),i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"Longest queries"}),f.length===0&&i.jsx(L,{sx:{fontSize:".7rem"},children:"No slow queries recorded"}),f.map((v,C)=>i.jsxs(bS,{onClick:()=>r(v),children:[i.jsx(G,{sx:{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",opacity:.9},children:v.query}),i.jsx(G,{sx:{color:v.execution>=1e3?Gt:Ks,whiteSpace:"nowrap"},children:wo(v.execution)})]},C))]}),n&&i.jsx(ro,{title:`Query · ${wo(n.execution)}`,onClose:()=>r(null),children:i.jsx(kS,{children:n.query})})]})},CS=({range:e})=>{const[t,n]=A.useState([]),[,r]=s5.useRequest(o=>{o!=null&&o.error||n((o==null?void 0:o.data)??[])});return A.useEffect(()=>{r({range:e})},[e]),Bt(()=>r({range:e}),jS),i.jsx(Ae,{label:"Database",children:i.jsxs(O,{sx:{gap:"20px"},children:[t.length===0&&i.jsx(L,{children:"No database instances"}),t.map(o=>i.jsx(ES,{db:o,range:e},o.id))]})})},TS=3e4,nx="#48BFE3",bp="#56bb56",_o="#bb5656",wi=e=>e>=90?_o:e>=75?"#e9b61e":nx,Ca=({pct:e,color:t})=>i.jsx(G,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:i.jsx(G,{sx:{height:"100%",width:Math.min(100,Math.max(0,e))+"%",backgroundColor:t??wi(e),transition:"width .25s"}})}),St=({label:e,value:t,color:n})=>i.jsxs(O,{sx:{gap:"2px",minWidth:"90px"},children:[i.jsx(L,{children:e}),i.jsx(q,{variant:"headMedium",sx:n?{color:n}:void 0,children:t})]}),pr=({title:e,children:t})=>i.jsxs(O,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[i.jsx(q,{variant:"headMedium",children:e}),t]}),RS=()=>{const[e,t]=A.useState(null),[,n]=l5.useRequest(c=>{c!=null&&c.error||c!=null&&c.data&&t(c.data)});if(Bt(()=>n(),TS),!e)return i.jsx(L,{children:"Loading…"});const r=e.cpu,o=e.memory,s=e.disk??[],l=e.connections,a=e.nginx,u=e.pm2;return i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(pr,{title:"CPU",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(St,{label:"Cores",value:r.count}),i.jsx(St,{label:"Platform",value:`${r.platform} / ${r.arch}`}),i.jsx(St,{label:"Uptime",value:Yc(r.uptimeSec)}),i.jsx(St,{label:"Load avg",value:r.loadAvg.map(c=>c.toFixed(2)).join(" ")})]}),r.usage&&i.jsx(O,{sx:{gap:"10px"},children:[{label:"User",pct:r.usage.userPct},{label:"System",pct:r.usage.systemPct},{label:"I/O wait",pct:r.usage.iowaitPct},{label:"Idle",pct:r.usage.idlePct}].map(c=>i.jsxs(O,{sx:{gap:"4px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px"},children:[i.jsx(L,{children:c.label}),i.jsxs(q,{variant:"medium",children:[c.pct,"%"]})]}),i.jsx(Ca,{pct:c.pct,color:c.label==="Idle"?"#80FFDB":void 0})]},c.label))}),Object.keys(r.models).length>0&&i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"Models"}),Object.entries(r.models).map(([c,p])=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"16px"},children:[i.jsx(q,{variant:"medium",sx:{opacity:.9},children:c}),i.jsxs(L,{children:["×",p]})]},c))]})]}),i.jsxs(pr,{title:"Memory",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(St,{label:"Total",value:Oe(o.total)}),i.jsx(St,{label:"Used",value:Oe(o.used),color:wi(o.usedPct)}),i.jsx(St,{label:"Free",value:Oe(o.free)}),i.jsx(St,{label:"Used %",value:`${o.usedPct}%`,color:wi(o.usedPct)})]}),i.jsx(Ca,{pct:o.usedPct})]}),s.length>0&&i.jsx(pr,{title:"Disk",children:s.map(c=>{const p=parseInt(c.usePct,10)||(c.size?c.used/c.size*100:0);return i.jsxs(O,{sx:{gap:"6px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace"},children:c.mount}),i.jsx(L,{sx:{fontSize:".66rem"},children:c.filesystem})]}),i.jsxs(q,{variant:"medium",children:[Oe(c.used)," / ",Oe(c.size),i.jsx("span",{style:{marginLeft:8,color:wi(p)},children:c.usePct})]})]}),i.jsx(Ca,{pct:p})]},c.mount+c.filesystem)})}),l&&i.jsxs(pr,{title:`HTTP connections (${l.ports.join(", ")})`,children:[i.jsx(V,{sx:{gap:"20px",flexWrap:"wrap"},children:i.jsx(St,{label:"Total established",value:l.total,color:nx})}),l.topRemote.length>0&&i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"Top remote IPs"}),l.topRemote.map(c=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace"},children:c.ip}),i.jsx(L,{children:c.count})]},c.ip))]})]}),i.jsxs(pr,{title:"Nginx",children:[!a.installed&&i.jsx(L,{children:"Not installed"}),a.installed&&i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(St,{label:"Status",value:a.status??"—",color:a.status==="active"?bp:_o}),i.jsx(St,{label:"Workers",value:a.workerCount??0}),i.jsx(St,{label:"Version",value:a.version??"—"})]}),a.installed&&a.listening&&a.listening.length>0&&i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"Listening"}),a.listening.map(c=>i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:c},c))]}),a.error&&i.jsx(L,{sx:{color:_o},children:a.error})]}),i.jsxs(pr,{title:"PM2",children:[!u.installed&&i.jsx(L,{children:"Not installed"}),u.installed&&u.processes&&u.processes.length>0&&i.jsx(O,{sx:{gap:"10px"},children:u.processes.map(c=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace"},children:c.name}),i.jsxs(L,{sx:{fontSize:".66rem"},children:["pid ",c.pid," · ",c.exec_mode??"—"," · ",c.instances??1," inst"]})]}),i.jsxs(V,{sx:{gap:"16px",alignItems:"baseline"},children:[i.jsx(L,{sx:{color:c.status==="online"?bp:_o},children:c.status??"—"}),i.jsxs(L,{children:[c.cpu??0,"%"]}),i.jsx(L,{children:Oe(c.memory??0)}),i.jsxs(L,{children:["↻ ",c.restarts??0]})]})]},c.pm_id))}),u.error&&i.jsx(L,{sx:{color:_o},children:u.error})]})]})},Ta="#48BFE3",_S="#e9b61e",Wn="#bb5656",rx="#80FFDB",PS="#9a96ad",LS=2500,OS=2e3,Ep=45e3,NS=6e3,hr=({tone:e,children:t})=>{const n=e==="ok"?rx:e==="warn"?_S:e==="fail"?Wn:PS;return i.jsxs(V,{sx:{alignItems:"center",gap:"6px",padding:"3px 10px",borderRadius:"999px",border:`1px solid ${n}55`,backgroundColor:`${n}18`},children:[i.jsx(G,{sx:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:n}}),i.jsx(q,{variant:"medium",sx:{fontSize:".72rem",color:n,letterSpacing:".04em",textTransform:"uppercase"},children:t})]})},Gs=({label:e,value:t,color:n})=>i.jsxs(O,{sx:{gap:"2px",minWidth:"90px"},children:[i.jsx(L,{children:e}),i.jsx(q,{variant:"headMedium",sx:n?{color:n}:void 0,children:t})]}),MS=({data:e})=>{const t=e.identity.pm2,n=(t==null?void 0:t.managed)===!0,r=(t==null?void 0:t.name)??"",o=e.identity.pid,s=e.identity.uptimeSec,l=zc("admin"),[a,u]=A.useState("idle"),[c,p]=A.useState(""),[d,f]=A.useState(""),[b,k]=A.useState(""),[v,C]=A.useState(null),[g,h]=A.useState(null),[m,w]=A.useState(!1),S=A.useRef(null),T=()=>{f(""),k("")},[,x,,y]=d5.useRequest(F=>{var W;if(F!=null&&F.error){C(F.error),k(""),u("confirming");return}(W=F==null?void 0:F.data)!=null&&W.restarting&&(h(F.data.by),S.current={pid:o,uptimeSec:s},C(null),pi(!0),u("waiting"),p(""),T())}),[,E]=Yg.useRequest(F=>{var z,K;if(a!=="waiting")return;if(((z=F==null?void 0:F.error)==null?void 0:z.code)===401){w(!0),u("done");return}if(F!=null&&F.error)return;const W=(K=F==null?void 0:F.data)==null?void 0:K.identity;if(!W||!S.current)return;(W.pid!==S.current.pid||W.uptimeSec<S.current.uptimeSec)&&u("done")});A.useEffect(()=>{(a==="timeout"||a==="idle")&&pi(!1)},[a]),A.useEffect(()=>()=>pi(!1),[]),A.useEffect(()=>{if(a!=="waiting")return;let F=!1;const W=window.setTimeout(()=>{F||E()},LS),Y=window.setInterval(()=>{F||E()},OS),z=window.setTimeout(()=>{F||u("timeout")},Ep);return()=>{F=!0,window.clearTimeout(W),window.clearInterval(Y),window.clearTimeout(z)}},[a,E]),A.useEffect(()=>{if(a!=="done")return;const F=window.setTimeout(()=>{if(m){vn.invoke({code:401,message:"Process restarted — please sign in again."}),Cl.invoke();return}u("idle")},NS);return()=>window.clearTimeout(F)},[a,m]);const _=()=>{n&&(C(null),p(""),T(),u("confirming"))},j=()=>{y||(u("idle"),p(""),T(),C(null))},P=n&&c===r&&r.length>0&&d.length>0&&/^\d{6}$/.test(b.trim()),N=()=>{!P||y||(C(null),u("restarting"),x({confirm:c,password:d,totp:b.trim()}))};return i.jsxs(O,{sx:{gap:"14px"},children:[i.jsxs(V,{sx:{gap:"12px",flexWrap:"wrap",alignItems:"center"},children:[i.jsx(q,{variant:"headMedium",children:"Process management"}),n?i.jsx(hr,{tone:"ok",children:"pm2 managed"}):i.jsx(hr,{tone:"warn",children:"not under pm2"}),a==="waiting"&&i.jsx(hr,{tone:"muted",children:"restarting…"}),a==="restarting"&&i.jsx(hr,{tone:"muted",children:"sending…"}),a==="done"&&i.jsx(hr,{tone:"ok",children:"restarted ✓"}),a==="timeout"&&i.jsx(hr,{tone:"fail",children:"timed out"})]}),n?i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(Gs,{label:"pm2 name",value:(t==null?void 0:t.name)??"—",color:Ta}),i.jsx(Gs,{label:"pm2 id",value:(t==null?void 0:t.pmId)??"—"}),i.jsx(Gs,{label:"instance",value:(t==null?void 0:t.instanceId)??"—"}),i.jsx(Gs,{label:"pid",value:o})]}):i.jsx(L,{sx:{fontSize:".78rem"},children:"This process has no pm2 pm_id in its environment — restarting from the UI is disabled because nothing would bring it back up."}),!l&&i.jsx(L,{sx:{fontSize:".74rem"},children:"Restart is available to the admin role only."}),l&&i.jsxs(V,{sx:{gap:"10px",alignItems:"center",flexWrap:"wrap"},children:[i.jsx(G,{onClick:n&&a==="idle"?_:void 0,sx:{padding:"9px 18px",borderRadius:"6px",cursor:n&&a==="idle"?"pointer":"not-allowed",fontSize:".78rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",color:n&&a==="idle"?"#fff":"rgba(255,255,255,.35)",backgroundColor:n&&a==="idle"?Wn:"rgba(255,255,255,.05)",border:`1px solid ${n&&a==="idle"?Wn:"rgba(255,255,255,.08)"}`,transition:"background-color .2s, border-color .2s","&:hover":n&&a==="idle"?{backgroundColor:"#9c4a4a"}:void 0},children:"Restart process"}),a==="waiting"&&i.jsx(L,{sx:{fontSize:".76rem"},children:"Waiting for process to come back up… (pm2 autorestart)"}),a==="done"&&g&&i.jsxs(L,{sx:{fontSize:".76rem",color:rx},children:["Restart requested by ",i.jsx("b",{children:g}),m&&" — session ended with the old process, signing out…"]}),a==="timeout"&&i.jsxs(L,{sx:{fontSize:".76rem",color:Wn},children:["Process didn't come back within ",Math.round(Ep/1e3)," s — check pm2 autorestart."]})]}),l&&i.jsx(L,{sx:{fontSize:".7rem",opacity:.8},children:"Relies on pm2 autorestart. Restart briefly interrupts traffic — for blue-green setups, prefer restarting the inactive slot."}),(a==="confirming"||a==="restarting")&&i.jsx(ro,{title:"Restart process",onClose:j,width:"520px",children:i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(O,{sx:{gap:"6px"},children:[i.jsxs(q,{variant:"medium",children:["You are about to restart the pm2 process"," ",i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",color:Ta,display:"inline"},children:r}),(t==null?void 0:t.pmId)!=null&&i.jsxs(q,{variant:"medium",sx:{opacity:.8,display:"inline"},children:[" ","(id ",t.pmId,")"]}),"."]}),i.jsx(L,{sx:{fontSize:".76rem"},children:"This will briefly interrupt in-flight requests. pm2 autorestart will bring the process back within a few seconds."})]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsxs(L,{children:["To confirm, type the pm2 process name:"," ",i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",color:Ta,display:"inline"},children:r})]}),i.jsx(Pn,{autoFocus:!0,value:c,disabled:y,placeholder:r,onChange:F=>p(F.target.value),onKeyDown:F=>{F.key==="Enter"&&N()}})]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Re-enter your password and a fresh 2FA code"}),i.jsxs(V,{sx:{gap:"10px",flexWrap:"wrap"},children:[i.jsx(G,{sx:{flex:"1 1 200px"},children:i.jsx(Pn,{type:"password",autoComplete:"current-password",value:d,disabled:y,placeholder:"Password",onChange:F=>f(F.target.value),onKeyDown:F=>{F.key==="Enter"&&N()}})}),i.jsx(G,{sx:{flex:"0 0 140px"},children:i.jsx(Pn,{inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:b,disabled:y,placeholder:"2FA code",onChange:F=>k(F.target.value.replace(/\D/g,"")),onKeyDown:F=>{F.key==="Enter"&&N()}})})]})]}),v&&i.jsx(G,{sx:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"rgba(187,86,86,.14)",border:"1px solid rgba(187,86,86,.4)"},children:i.jsx(q,{variant:"medium",sx:{fontSize:".82rem",color:Wn},children:v.details||v.message||"Restart failed."})}),i.jsxs(V,{sx:{gap:"10px",justifyContent:"flex-end",marginTop:"4px"},children:[i.jsx(G,{onClick:y?void 0:j,sx:{padding:"9px 16px",borderRadius:"6px",cursor:y?"not-allowed":"pointer",fontSize:".78rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:y?"rgba(255,255,255,.35)":"rgba(255,255,255,.85)",border:"1px solid rgba(255,255,255,.12)","&:hover":y?void 0:{backgroundColor:"rgba(255,255,255,.06)"}},children:"Cancel"}),i.jsx(G,{onClick:P&&!y?N:void 0,sx:{padding:"9px 18px",borderRadius:"6px",cursor:P&&!y?"pointer":"not-allowed",fontSize:".78rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",color:P&&!y?"#fff":"rgba(255,255,255,.35)",backgroundColor:P&&!y?Wn:"rgba(255,255,255,.05)",border:`1px solid ${P&&!y?Wn:"rgba(255,255,255,.08)"}`,"&:hover":P&&!y?{backgroundColor:"#9c4a4a"}:void 0},children:y?"Sending…":"Restart"})]})]})})]})},AS=3e4,ox="#48BFE3",Po="#bb5656",Lo="#e9b61e",Si=e=>e>=90?Po:e>=75?Lo:ox,Ra=({pct:e,color:t})=>i.jsx(G,{sx:{height:"6px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"3px",overflow:"hidden"},children:i.jsx(G,{sx:{height:"100%",width:Math.min(100,Math.max(0,e))+"%",backgroundColor:t??Si(e),transition:"width .25s"}})}),de=({label:e,value:t,color:n})=>i.jsxs(O,{sx:{gap:"2px",minWidth:"90px"},children:[i.jsx(L,{children:e}),i.jsx(q,{variant:"headMedium",sx:n?{color:n}:void 0,children:t})]}),$n=({title:e,children:t})=>i.jsxs(O,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[i.jsx(q,{variant:"headMedium",children:e}),t]}),FS=()=>{const[e,t]=A.useState(null),[,n]=Yg.useRequest(d=>{d!=null&&d.error||d!=null&&d.data&&t(d.data)});if(Bt(()=>n(),AS),!e)return i.jsx(L,{children:"Loading…"});const r=e.identity,o=e.memory,s=e.cpu,l=e.eventLoop,a=e.gc,u=e.fileDescriptors,c=o.heap.sizeLimit?o.heapUsed/o.heap.sizeLimit*100:0,p=u.open!=null&&u.limitSoft?u.open/u.limitSoft*100:0;return i.jsxs(O,{sx:{gap:"16px"},children:[i.jsx($n,{title:"pm2",children:i.jsx(MS,{data:e})}),i.jsxs($n,{title:"Identity",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(de,{label:"PID",value:r.pid}),i.jsx(de,{label:"Host",value:r.hostname}),i.jsx(de,{label:"Node",value:r.nodeVersion}),i.jsx(de,{label:"V8",value:r.v8Version}),i.jsx(de,{label:"Platform",value:`${r.platform} / ${r.arch}`}),i.jsx(de,{label:"Cores",value:r.availableParallelism}),i.jsx(de,{label:"Uptime",value:Yc(r.uptimeSec)})]}),r.execPath&&i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"Exec path"}),i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all"},children:r.execPath})]}),r.cwd&&i.jsxs(O,{sx:{gap:"2px"},children:[i.jsx(L,{children:"CWD"}),i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all"},children:r.cwd})]})]}),i.jsxs($n,{title:"Memory",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(de,{label:"RSS",value:Oe(o.rss)}),i.jsx(de,{label:"Heap used",value:Oe(o.heapUsed),color:Si(c)}),i.jsx(de,{label:"Heap total",value:Oe(o.heapTotal)}),i.jsx(de,{label:"Heap limit",value:Oe(o.heap.sizeLimit)}),i.jsx(de,{label:"External",value:Oe(o.external)}),i.jsx(de,{label:"ArrayBuffers",value:Oe(o.arrayBuffers)})]}),i.jsxs(O,{sx:{gap:"4px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between"},children:[i.jsx(L,{children:"Heap used / limit"}),i.jsxs(q,{variant:"medium",children:[c.toFixed(1),"%"]})]}),i.jsx(Ra,{pct:c})]}),o.heap.numberOfDetachedContexts>0&&i.jsxs(L,{sx:{color:Po},children:["Detached contexts: ",o.heap.numberOfDetachedContexts," (possible leak)"]}),o.heapSpaces.length>0&&i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(L,{children:"Heap spaces"}),o.heapSpaces.map(d=>{const f=d.size?d.used/d.size*100:0;return i.jsxs(O,{sx:{gap:"4px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:d.name}),i.jsxs(L,{children:[Oe(d.used)," / ",Oe(d.size)]})]}),i.jsx(Ra,{pct:f})]},d.name)})]})]}),i.jsx($n,{title:"CPU",children:i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(de,{label:"User",value:`${s.userPct}%`,color:ox}),i.jsx(de,{label:"System",value:`${s.systemPct}%`,color:"#80FFDB"}),s.resource&&i.jsxs(i.Fragment,{children:[i.jsx(de,{label:"Max RSS",value:Oe(s.resource.maxRSS*1024)}),i.jsx(de,{label:"Ctx (vol)",value:s.resource.voluntaryContextSwitches}),i.jsx(de,{label:"Ctx (invol)",value:s.resource.involuntaryContextSwitches}),i.jsx(de,{label:"FS read/write",value:`${s.resource.fsRead} / ${s.resource.fsWrite}`})]})]})}),l&&i.jsxs($n,{title:"Event loop",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(de,{label:"Utilization",value:`${l.utilizationPct}%`,color:Si(l.utilizationPct)}),i.jsx(de,{label:"Spot lag",value:`${l.spotLagMs} ms`}),i.jsx(de,{label:"Active handles",value:l.activeHandles}),i.jsx(de,{label:"Active requests",value:l.activeRequests})]}),i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(de,{label:"Mean lag",value:`${l.meanMs.toFixed(2)} ms`}),i.jsx(de,{label:"p50",value:`${l.p50Ms.toFixed(2)} ms`}),i.jsx(de,{label:"p90",value:`${l.p90Ms.toFixed(2)} ms`,color:l.p90Ms>50?Lo:void 0}),i.jsx(de,{label:"p99",value:`${l.p99Ms.toFixed(2)} ms`,color:l.p99Ms>100?Po:l.p99Ms>50?Lo:void 0}),i.jsx(de,{label:"Max lag",value:`${l.maxMs.toFixed(2)} ms`})]})]}),i.jsxs($n,{title:"Garbage collection",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(de,{label:"Total collections",value:a.totalCount}),i.jsx(de,{label:"Total time",value:`${a.totalTimeMs.toFixed(1)} ms`}),i.jsx(de,{label:"Max pause",value:`${a.maxPauseMs.toFixed(1)} ms`,color:a.maxPauseMs>100?Po:a.maxPauseMs>30?Lo:void 0})]}),Object.keys(a.byKind).length>0&&i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"By kind"}),Object.entries(a.byKind).map(([d,f])=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace"},children:d}),i.jsxs(L,{children:[f.count," · ",f.timeMs.toFixed(1)," ms"]})]},d))]}),a.lastPauses.length>0&&i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"Recent pauses"}),a.lastPauses.slice().reverse().slice(0,10).map((d,f)=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px"},children:[i.jsxs(q,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9},children:[new Date(d.timestamp).toLocaleTimeString()," · ",d.kind]}),i.jsxs(L,{sx:{color:d.ms>100?Po:d.ms>30?Lo:void 0},children:[d.ms.toFixed(1)," ms"]})]},f))]})]}),i.jsxs($n,{title:"File descriptors",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(de,{label:"Open",value:u.open??"—",color:u.open!=null?Si(p):void 0}),i.jsx(de,{label:"Soft limit",value:u.limitSoft??"—"}),i.jsx(de,{label:"Hard limit",value:u.limitHard??"—"})]}),u.open!=null&&u.limitSoft&&i.jsxs(O,{sx:{gap:"4px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between"},children:[i.jsx(L,{children:"Open / soft limit"}),i.jsxs(q,{variant:"medium",children:[p.toFixed(1),"%"]})]}),i.jsx(Ra,{pct:p})]})]})]})},IS=3e4,tl="#48BFE3",sx="#e9b61e",ed="#bb5656",ix="#9a96ad",Oo={fdOpen:"#48BFE3",softLimit:"#bb5656",ESTABLISHED:"#80FFDB",CLOSE_WAIT:"#bb5656",TIME_WAIT:"#e9b61e",FIN_WAIT1:"#c48af0",FIN_WAIT2:"#c48af0",LISTEN:"#5390d9",total:"#c9c4dc",rss:"#9a96ad"},Cp=e=>{const t=new Date(e);return`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}`},DS=e=>e>=.9?ed:e>=.7?sx:tl,$S=({pct:e,color:t})=>i.jsx(G,{sx:{height:"8px",width:"100%",backgroundColor:"rgba(255,255,255,.06)",borderRadius:"4px",overflow:"hidden"},children:i.jsx(G,{sx:{height:"100%",width:Math.min(100,Math.max(0,e))+"%",backgroundColor:t,transition:"width .25s, background-color .25s"}})}),jo=({title:e,children:t})=>i.jsxs(O,{sx:{gap:"12px",padding:"14px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[i.jsx(q,{variant:"headMedium",children:e}),t]}),ko=({label:e,value:t,color:n})=>i.jsxs(O,{sx:{gap:"2px",minWidth:"90px"},children:[i.jsx(L,{children:e}),i.jsx(q,{variant:"headMedium",sx:n?{color:n,fontVariantNumeric:"tabular-nums"}:{fontVariantNumeric:"tabular-nums"},children:t})]}),BS=({tone:e,text:t})=>i.jsxs(V,{sx:{gap:"8px",alignItems:"flex-start",padding:"8px 10px",borderRadius:"6px",backgroundColor:e==="fail"?"rgba(187,86,86,.12)":e==="warn"?"rgba(233,182,30,.10)":"rgba(72,191,227,.10)",border:"1px solid "+(e==="fail"?"rgba(187,86,86,.35)":e==="warn"?"rgba(233,182,30,.35)":"rgba(72,191,227,.35)")},children:[i.jsx(G,{sx:{width:"6px",height:"6px",borderRadius:"50%",marginTop:"6px",backgroundColor:e==="fail"?ed:e==="warn"?sx:tl,flexShrink:0}}),i.jsx(q,{variant:"medium",sx:{opacity:.92,fontSize:".8rem"},children:t})]}),zS=({state:e,count:t,total:n,highlight:r})=>{const o=n>0?t/n*100:0,s=Oo[e]??ix;return i.jsxs(O,{sx:{gap:"4px",minWidth:"0"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",gap:"8px",alignItems:"baseline"},children:[i.jsxs(V,{sx:{gap:"6px",alignItems:"center",minWidth:0},children:[i.jsx(G,{sx:{width:"8px",height:"8px",borderRadius:"2px",backgroundColor:s,flexShrink:0}}),i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",fontSize:".78rem",opacity:r?1:.92,color:r?ed:void 0,fontWeight:r?600:void 0},children:e})]}),i.jsxs(V,{sx:{gap:"6px",alignItems:"baseline"},children:[i.jsx(q,{variant:"medium",sx:{fontVariantNumeric:"tabular-nums"},children:t}),i.jsxs(L,{sx:{fontSize:".65rem"},children:[o.toFixed(0),"%"]})]})]}),i.jsx(G,{sx:{height:"4px",width:"100%",backgroundColor:"rgba(255,255,255,.05)",borderRadius:"2px",overflow:"hidden"},children:i.jsx(G,{sx:{height:"100%",width:o+"%",backgroundColor:s}})})]})},US=(e,t=4)=>{if(e.length<t)return{grew:!1,delta:0};const n=e.slice(-Math.max(t,Math.min(e.length,12))),r=n[0],o=n[n.length-1];if(o<=r)return{grew:!1,delta:0};const s=o-r;return{grew:s>=5&&o>=r*1.2,delta:s}},WS=({limit:e})=>{const[t,n]=A.useState(null),[,r]=c5.useRequest(P=>{P!=null&&P.error||P!=null&&P.data&&n(P.data)});Bt(()=>r(),IS);const o=A.useMemo(()=>{var N;if(!((N=t==null?void 0:t.history)!=null&&N.length))return[];const P=t.history;return typeof e=="number"&&e>0&&P.length>e?P.slice(-e):P},[t,e]);if(!t)return i.jsx(Ae,{label:"File descriptors & sockets",children:i.jsx(L,{children:"Loading…"})});const s=t.now,l=s.sockets,a=s.limitSoft,u=a===-1,c=!u&&a!=null&&a>0,p=c?s.fdOpen/a:0,d=p*100,f=c?DS(p):tl,b=(l==null?void 0:l.byState)??{},k=Object.entries(b).filter(([,P])=>typeof P=="number"&&P>0).sort((P,N)=>N[1]-P[1]),v=o.map(P=>Cp(P.ts)),C=[];if(o.length){C.push({name:"fdOpen",color:Oo.fdOpen,values:o.map(N=>N.fdOpen)});let P=0;for(const N of o)typeof N.fdSoftLimit=="number"&&N.fdSoftLimit>0&&(P=N.fdSoftLimit);P>0&&C.push({name:"soft limit",color:Oo.softLimit,values:o.map(()=>P)})}const g=new Set;for(const P of o)for(const N of Object.keys(P.byState??{}))(P.byState[N]??0)>0&&g.add(N);const h=["ESTABLISHED","CLOSE_WAIT","TIME_WAIT","FIN_WAIT1","FIN_WAIT2","LISTEN"],w=h.filter(P=>g.has(P)).concat([...g].filter(P=>!h.includes(P)).sort()).map(P=>({name:P,color:Oo[P]??ix,values:o.map(N=>{var F;return((F=N.byState)==null?void 0:F[P])??0})})),S=[];c&&p>.9?S.push({tone:"fail",text:`fdOpen has reached ${d.toFixed(0)}% of the soft limit — descriptor exhaustion is imminent.`}):c&&p>.7&&S.push({tone:"warn",text:`fdOpen is at ${d.toFixed(0)}% of the soft limit — investigate what is holding open descriptors.`});const T=o.map(P=>{var N;return((N=P.byState)==null?void 0:N.CLOSE_WAIT)??0}),x=US(T);x.grew&&S.push({tone:"warn",text:`CLOSE_WAIT sockets keep piling up (+${x.delta} over the recent window) — the peer (e.g. nginx) closed the connections but the app never released them.`});const y=(l==null?void 0:l.topRemotes)??[],E=b.ESTABLISHED??0;if(y.length>0&&E>0){const P=y[0];P.established>=10&&P.established/E>=.6&&S.push({tone:"info",text:`Host ${P.host} holds ${P.established} of ${E} ESTABLISHED sockets — check for stuck outgoing keep-alives.`})}const _=Math.round(t.sampleEveryMs/6e4),j=o.length===0,R=l===null;return i.jsx(Ae,{label:"File descriptors & sockets",children:i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(jo,{title:"Current",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(ko,{label:"fd open",value:s.fdOpen,color:f}),i.jsx(ko,{label:"Soft limit",value:u?"∞":a??"—"}),i.jsx(ko,{label:"Hard limit",value:s.limitHard===-1?"∞":s.limitHard??"—"}),l&&i.jsx(ko,{label:"Sockets",value:l.total}),i.jsx(ko,{label:"Sampled",value:Cp(s.ts)})]}),c&&i.jsxs(O,{sx:{gap:"4px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between"},children:[i.jsx(L,{children:"fd open / soft limit"}),i.jsxs(q,{variant:"medium",sx:{color:f,fontVariantNumeric:"tabular-nums"},children:[d.toFixed(1),"%"]})]}),i.jsx($S,{pct:d,color:f})]}),u&&i.jsx(L,{sx:{fontSize:".72rem"},children:"Soft limit is unlimited — only the absolute fd count is shown."})]}),S.length>0&&i.jsx(O,{sx:{gap:"8px"},children:S.map((P,N)=>i.jsx(BS,{tone:P.tone,text:P.text},N))}),R&&i.jsx(jo,{title:"Sockets",children:i.jsx(L,{children:"Socket state breakdown is only available on Linux (collected from /proc)."})}),l&&k.length>0&&i.jsx(jo,{title:"Sockets by state",children:i.jsx(O,{sx:{gap:"10px"},children:k.map(([P,N])=>i.jsx(zS,{state:P,count:N,total:l.total,highlight:P==="CLOSE_WAIT"},P))})}),l&&y.length>0&&i.jsx(jo,{title:"Top remote hosts (ESTABLISHED)",children:i.jsx(O,{sx:{gap:"6px"},children:y.map(P=>{const N=E>0?P.established/E*100:0;return i.jsxs(O,{sx:{gap:"4px"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace",opacity:.9,wordBreak:"break-all",fontSize:".78rem"},children:P.host}),i.jsx(q,{variant:"medium",sx:{fontVariantNumeric:"tabular-nums"},children:P.established})]}),i.jsx(G,{sx:{height:"4px",width:N+"%",minWidth:"4px",borderRadius:"2px",backgroundColor:tl}})]},P.host)})})}),i.jsx(jo,{title:`History (every ${_} min, up to ${t.historyMax} samples)`,children:j?i.jsxs(L,{children:["No history yet — the first sample is taken at startup, then every ",_," minutes."]}):i.jsxs(O,{sx:{gap:"18px"},children:[i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"Open file descriptors"}),i.jsx(He,{series:C,labels:v,height:180,formatValue:P=>Math.round(P).toString()})]}),w.length>0&&i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"Sockets by state"}),i.jsx(He,{series:w,labels:v,height:180,formatValue:P=>Math.round(P).toString()})]}),i.jsxs(O,{sx:{gap:"4px"},children:[i.jsx(L,{children:"Resident memory (RSS)"}),i.jsx(He,{series:[{name:"RSS",color:Oo.rss,values:o.map(P=>P.rss)}],labels:v,height:140,formatValue:Oe})]})]})})]})})},HS=3e4,_a="#48BFE3",lx="#56bb56",ax="#bb5656",VS={GET:"#56cfe1",POST:"#5390d9",PUT:"#e9b61e",PATCH:"#e9b61e",DELETE:"#bb5656",ANY:"#8a8699"},qS=e=>VS[e.toUpperCase()]??"#8a8699",Js=({label:e,value:t,color:n})=>i.jsxs(O,{sx:{gap:"2px",minWidth:"80px"},children:[i.jsx(L,{children:e}),i.jsx(q,{variant:"headMedium",sx:n?{color:n}:void 0,children:t})]}),Pa=({title:e,children:t})=>i.jsxs(O,{sx:{gap:"14px",padding:"16px",border:"1px solid rgba(255,255,255,.08)",borderRadius:"8px",backgroundColor:"rgba(0,0,0,.12)"},children:[i.jsx(q,{variant:"headMedium",children:e}),t]}),QS=({method:e})=>{const t=qS(e);return i.jsx(G,{sx:{padding:"2px 6px",borderRadius:"4px",fontSize:".66rem",fontWeight:600,textAlign:"center",color:t,border:"1px solid "+t+"55",backgroundColor:t+"1a"},children:e.toUpperCase()})},Bn=({label:e,active:t,color:n})=>{if(!t)return null;const r=n??"#9a96ad";return i.jsx(G,{sx:{padding:"1px 6px",borderRadius:"3px",fontSize:".62rem",fontWeight:500,letterSpacing:".04em",textTransform:"uppercase",color:r,border:`1px solid ${r}44`,backgroundColor:`${r}12`},children:e})},KS=({svc:e})=>i.jsxs(V,{sx:{justifyContent:"space-between",gap:"12px",alignItems:"baseline",flexWrap:"wrap"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsxs(V,{sx:{gap:"10px",alignItems:"baseline"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace"},children:e.name}),i.jsx(L,{sx:{fontSize:".66rem"},children:e.className})]}),i.jsxs(L,{sx:{fontSize:".66rem"},children:["created ",new Date(e.createdAt).toLocaleTimeString(),e.initializedAt?` · init ${new Date(e.initializedAt).toLocaleTimeString()}`:"",e.applicationReadyAt?` · ready ${new Date(e.applicationReadyAt).toLocaleTimeString()}`:""]})]}),i.jsxs(V,{sx:{gap:"12px",alignItems:"baseline"},children:[e.uptimeSec!==null&&i.jsx(L,{children:Yc(e.uptimeSec)}),i.jsx(L,{sx:{color:e.initialized?lx:ax},children:e.initialized?"READY":"NOT INIT"})]})]}),GS=({h:e})=>i.jsxs(V,{sx:{gap:"10px",alignItems:"baseline",padding:"6px 0",borderBottom:"1px solid rgba(255,255,255,.05)",flexWrap:"wrap"},children:[i.jsx(V,{sx:{gap:"4px"},children:e.methods.map(t=>i.jsx(QS,{method:t},t))}),i.jsx(G,{sx:{fontFamily:"monospace",fontSize:".78rem",opacity:.92,flexGrow:1,minWidth:"160px"},children:e.path}),i.jsxs(V,{sx:{gap:"4px",flexWrap:"wrap"},children:[i.jsx(Bn,{label:"validation",active:e.hasValidationModel,color:"#5390d9"}),i.jsx(Bn,{label:"result",active:e.hasResultModel,color:"#48BFE3"}),i.jsx(Bn,{label:"stream",active:e.asStream,color:"#80FFDB"}),i.jsx(Bn,{label:"no-doc",active:e.ignoreInDocumentation}),i.jsx(Bn,{label:"no-log",active:e.ignoreHttpLogging}),i.jsx(Bn,{label:"no-intercept",active:e.ignoreInterceptor}),i.jsx(Bn,{label:"independent",active:e.independed})]})]}),JS=({ep:e,defaultOpen:t})=>{const[n,r]=A.useState(!!t);return i.jsxs(O,{sx:{gap:n?"12px":"0px",padding:"12px 14px",border:"1px solid rgba(255,255,255,.06)",borderRadius:"6px",backgroundColor:"rgba(0,0,0,.15)"},children:[i.jsxs(V,{onClick:()=>r(o=>!o),sx:{cursor:"pointer",justifyContent:"space-between",gap:"12px",alignItems:"baseline",flexWrap:"wrap"},children:[i.jsxs(O,{sx:{gap:"2px"},children:[i.jsxs(V,{sx:{gap:"10px",alignItems:"baseline"},children:[i.jsx(q,{variant:"medium",sx:{fontFamily:"monospace"},children:e.basePath||"/"}),i.jsx(L,{sx:{fontSize:".66rem"},children:e.className})]}),e.description&&i.jsx(L,{sx:{fontSize:".68rem",opacity:.85},children:e.description})]}),i.jsxs(V,{sx:{gap:"12px",alignItems:"baseline"},children:[i.jsxs(L,{children:[e.handlerCount," handler",e.handlerCount===1?"":"s"]}),i.jsx(L,{sx:{color:e.initializedAt?lx:ax},children:e.initializedAt?"READY":"NOT INIT"}),i.jsx(G,{sx:{opacity:.5,fontSize:".8rem"},children:n?"▾":"▸"})]})]}),n&&i.jsxs(O,{sx:{gap:"2px"},children:[e.handlers.length===0&&i.jsx(L,{children:"No handlers"}),e.handlers.map(o=>i.jsx(GS,{h:o},o.path+o.methods.join(",")))]})]})},YS=()=>{const[e,t]=A.useState(null),[n,r]=A.useState(""),[,o]=a5.useRequest(a=>{a!=null&&a.error||a!=null&&a.data&&t(a.data)});Bt(()=>o(),HS);const s=A.useMemo(()=>{if(!e)return[];const a=n.trim().toLowerCase();return a?e.endpoints.map(u=>{const c=u.basePath.toLowerCase().includes(a)||u.className.toLowerCase().includes(a)||(u.description??"").toLowerCase().includes(a),p=u.handlers.filter(d=>d.path.toLowerCase().includes(a)||(d.description??"").toLowerCase().includes(a)||(d.title??"").toLowerCase().includes(a)||d.methods.some(f=>f.toLowerCase().includes(a)));return c?u:p.length?{...u,handlers:p,handlerCount:p.length}:null}).filter(u=>u!==null):e.endpoints},[e,n]),l=A.useMemo(()=>{if(!e)return[];const a=n.trim().toLowerCase();return a?e.services.filter(u=>u.name.toLowerCase().includes(a)||u.className.toLowerCase().includes(a)):e.services},[e,n]);return e?i.jsxs(O,{sx:{gap:"16px"},children:[i.jsxs(Pa,{title:"Overview",children:[i.jsxs(V,{sx:{gap:"20px",flexWrap:"wrap"},children:[i.jsx(Js,{label:"Services",value:e.counts.services,color:_a}),i.jsx(Js,{label:"Endpoints",value:e.counts.endpoints,color:_a}),i.jsx(Js,{label:"Handlers",value:e.counts.totalHandlers,color:_a}),i.jsx(Js,{label:"Entrypoint",value:i.jsx("span",{style:{fontFamily:"monospace"},children:e.entrypoint||"/"})})]}),i.jsx(Pn,{type:"search",value:n,placeholder:"Filter by path, class, description or method…",onChange:a=>r(a.target.value)})]}),i.jsxs(Pa,{title:`Services (${l.length})`,children:[l.length===0&&i.jsx(L,{children:"No matches"}),i.jsx(O,{sx:{gap:"10px"},children:l.map(a=>i.jsx(KS,{svc:a},a.className+a.name))})]}),i.jsxs(Pa,{title:`Endpoints (${s.length})`,children:[s.length===0&&i.jsx(L,{children:"No matches"}),i.jsx(O,{sx:{gap:"10px"},children:s.map(a=>i.jsx(JS,{ep:a,defaultOpen:!!n.trim()},a.className+a.basePath))})]})]}):i.jsx(L,{children:"Loading…"})},ux=["CPU","NET","DB","MEM","PM2","APP","SYS"],XS=({active:e,onChange:t,counts:n})=>{const r=e.size===0,o=l=>{const a=new Set(e);a.has(l)?a.delete(l):a.add(l),t(a)},s=(l,a,u,c)=>i.jsxs(G,{onClick:u,sx:{padding:"0 2px 12px",marginBottom:"-1px",cursor:"pointer",fontSize:".74rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",transition:"color .2s, border-color .2s",borderBottom:"2px solid "+(a?"#5390d9":"transparent"),color:a?"textPrimary":"rgba(255,255,255,.4)",display:"flex",alignItems:"center",gap:"6px","&:hover":{color:a?"textPrimary":"rgba(255,255,255,.7)"}},children:[i.jsx("span",{children:l}),c!==void 0&&c>0&&i.jsx(q,{variant:"caption",sx:{fontSize:".62rem",opacity:a?.9:.5,fontVariantNumeric:"tabular-nums"},children:c})]},l);return i.jsxs(V,{sx:{gap:"26px",borderBottom:"1px solid rgba(255,255,255,.08)",marginBottom:"20px",flexWrap:"wrap"},children:[s("ALL",r,()=>t(new Set)),ux.map(l=>s(l,e.has(l),()=>o(l),n[l]))]})},ZS=({stats:e,range:t})=>{const[n,r]=A.useState(new Set),o=[{node:i.jsx(cS,{stats:e,range:t}),tags:["CPU","MEM","APP"]},{node:i.jsx(mS,{}),tags:["NET"]},{node:i.jsx(vS,{stats:e}),tags:["APP"]},{node:i.jsx(SS,{stats:e}),tags:["DB"]},{node:i.jsx(xS,{}),tags:["NET"]},{node:i.jsx(yS,{stats:e}),tags:["NET","APP"]},{node:i.jsx(CS,{range:t}),tags:["DB"]},{node:i.jsx(WS,{}),tags:["NET","SYS"]},{node:i.jsx(RS,{}),tags:["SYS","CPU","MEM"]},{node:i.jsx(FS,{}),tags:["PM2","MEM","APP"]},{node:i.jsx(YS,{}),tags:["APP"]}],s=ux.reduce((a,u)=>({...a,[u]:o.filter(c=>c.tags.includes(u)).length}),{}),l=n.size===0?o:o.filter(a=>a.tags.some(u=>n.has(u)));return i.jsxs(O,{sx:{gap:"0"},children:[i.jsx(XS,{active:n,onChange:r,counts:s}),l.length===0?i.jsx(G,{sx:{padding:"40px",textAlign:"center",opacity:.6},children:"No panels match the selected filters."}):i.jsx(G,{sx:{columnWidth:"440px",columnGap:"20px"},children:l.map((a,u)=>i.jsx(G,{sx:{breakInside:"avoid",marginBottom:"20px",display:"block"},children:a.node},u))})]})},Tp=window.__ver,e2=3e4,t2=[{value:"hour",label:"Hour"},{value:"day",label:"Day"},{value:"week",label:"Week"}],Rp=[{value:"overview",label:"Overview"},{value:"logs",label:"Logs"},{value:"correlations",label:"Correlations"},{value:"archive",label:"Archive"}],_p=({items:e,value:t,onChange:n})=>i.jsx(V,{sx:{gap:"4px",padding:"4px",backgroundColor:"rgba(0,0,0,.2)",borderRadius:"8px"},children:e.map(r=>{const o=r.value===t;return i.jsx(G,{onClick:()=>n(r.value),sx:{padding:"8px 18px",borderRadius:"6px",cursor:"pointer",fontSize:".85rem",transition:"background-color .2s",backgroundColor:o?"buttonBackgroundPrimary":"transparent",color:o?"buttonTextPrimary":"textPrimary","&:hover":{backgroundColor:o?"buttonBackgroundPrimary":"rgba(255,255,255,.06)"}},children:r.label},r.value)})}),n2=({tabs:e,value:t,onChange:n})=>i.jsx(V,{sx:{gap:"26px",borderBottom:"1px solid rgba(255,255,255,.08)",marginBottom:"20px"},children:e.map((r,o)=>{const s=o===t;return i.jsx(G,{onClick:()=>n(o),sx:{padding:"0 2px 12px",marginBottom:"-1px",cursor:"pointer",fontSize:".74rem",fontWeight:600,letterSpacing:".08em",textTransform:"uppercase",transition:"color .2s, border-color .2s",borderBottom:"2px solid "+(s?"#5390d9":"transparent"),color:s?"textPrimary":"rgba(255,255,255,.4)","&:hover":{color:s?"textPrimary":"rgba(255,255,255,.7)"}},children:r},r)})}),r2=()=>{const[e,t]=A.useState("overview"),n=zc("logs"),r=n?Rp:Rp.filter(g=>g.value!=="logs"),o=Kn.current,[s,l]=A.useState("hour"),[a,u]=A.useState(0),[c,p]=A.useState([]),[d,f]=A.useState(null),[b,k]=A.useState(null),[,v,,C]=Kg.useRequest(g=>{if(g!=null&&g.error){f(g.error);return}f(null),p((g==null?void 0:g.data)??[]),k(Date.now())});return A.useEffect(()=>{v({range:s})},[s]),Bt(()=>v({range:s}),e2),i.jsxs(O,{sx:{padding:"30px",gap:"24px",maxWidth:"1800px",margin:"0 auto",width:"100%"},children:[i.jsxs(V,{sx:{justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"16px"},children:[i.jsxs(V,{sx:{alignItems:"baseline",gap:"12px",flexWrap:"wrap"},children:[i.jsx(q,{variant:"head",children:"Server Monitor"}),Tp&&i.jsxs(L,{sx:{fontSize:".72rem"},children:["v.",Tp]}),C&&i.jsx(Jr,{size:18})]}),i.jsx(_p,{items:r,value:e,onChange:t}),i.jsxs(V,{sx:{alignItems:"center",gap:"16px"},children:[b&&i.jsxs(Me,{children:["Updated ",new Date(b).toLocaleTimeString()]}),e==="overview"&&i.jsx(_p,{items:t2,value:s,onChange:l}),o&&i.jsxs(L,{sx:{fontSize:".72rem"},children:[o.login,o.role?` · ${o.role}`:""]}),i.jsx(G,{onClick:()=>Cl.invoke(),sx:{padding:"6px 12px",borderRadius:"6px",cursor:"pointer",fontSize:".7rem",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase",color:"rgba(255,255,255,.75)",border:"1px solid rgba(255,255,255,.12)","&:hover":{backgroundColor:"rgba(255,255,255,.06)"}},children:"Sign out"})]})]}),d&&i.jsx(Jc,{error:d}),e==="overview"&&i.jsx(ZS,{stats:c,range:s}),e==="logs"&&n&&i.jsxs(Ae,{children:[i.jsx(n2,{tabs:["Log","Net log","Outgoing","Files"],value:a,onChange:u}),a===0&&i.jsx(V5,{}),a===1&&i.jsx(tS,{}),a===2&&i.jsx(uS,{}),a===3&&i.jsx(I5,{})]}),e==="correlations"&&i.jsx(_5,{}),e==="archive"&&i.jsx(y5,{})]})};var cx={exports:{}};(function(e,t){var n=function(){var r=function(S,T){var x=236,y=17,E=S,_=s[T],j=null,R=0,P=null,N=[],F={},W=function($,B){R=E*4+17,j=function(D){for(var U=new Array(D),H=0;H<D;H+=1){U[H]=new Array(D);for(var X=0;X<D;X+=1)U[H][X]=null}return U}(R),Y(0,0),Y(R-7,0),Y(0,R-7),J(),K(),M($,B),E>=7&&re($),P==null&&(P=Ie(E,_,N)),ee(P,B)},Y=function($,B){for(var D=-1;D<=7;D+=1)if(!($+D<=-1||R<=$+D))for(var U=-1;U<=7;U+=1)B+U<=-1||R<=B+U||(0<=D&&D<=6&&(U==0||U==6)||0<=U&&U<=6&&(D==0||D==6)||2<=D&&D<=4&&2<=U&&U<=4?j[$+D][B+U]=!0:j[$+D][B+U]=!1)},z=function(){for(var $=0,B=0,D=0;D<8;D+=1){W(!0,D);var U=a.getLostPoint(F);(D==0||$>U)&&($=U,B=D)}return B},K=function(){for(var $=8;$<R-8;$+=1)j[$][6]==null&&(j[$][6]=$%2==0);for(var B=8;B<R-8;B+=1)j[6][B]==null&&(j[6][B]=B%2==0)},J=function(){for(var $=a.getPatternPosition(E),B=0;B<$.length;B+=1)for(var D=0;D<$.length;D+=1){var U=$[B],H=$[D];if(j[U][H]==null)for(var X=-2;X<=2;X+=1)for(var oe=-2;oe<=2;oe+=1)X==-2||X==2||oe==-2||oe==2||X==0&&oe==0?j[U+X][H+oe]=!0:j[U+X][H+oe]=!1}},re=function($){for(var B=a.getBCHTypeNumber(E),D=0;D<18;D+=1){var U=!$&&(B>>D&1)==1;j[Math.floor(D/3)][D%3+R-8-3]=U}for(var D=0;D<18;D+=1){var U=!$&&(B>>D&1)==1;j[D%3+R-8-3][Math.floor(D/3)]=U}},M=function($,B){for(var D=_<<3|B,U=a.getBCHTypeInfo(D),H=0;H<15;H+=1){var X=!$&&(U>>H&1)==1;H<6?j[H][8]=X:H<8?j[H+1][8]=X:j[R-15+H][8]=X}for(var H=0;H<15;H+=1){var X=!$&&(U>>H&1)==1;H<8?j[8][R-H-1]=X:H<9?j[8][15-H-1+1]=X:j[8][15-H-1]=X}j[R-8][8]=!$},ee=function($,B){for(var D=-1,U=R-1,H=7,X=0,oe=a.getMaskFunction(B),ne=R-1;ne>0;ne-=2)for(ne==6&&(ne-=1);;){for(var xe=0;xe<2;xe+=1)if(j[U][ne-xe]==null){var Le=!1;X<$.length&&(Le=($[X]>>>H&1)==1);var se=oe(U,ne-xe);se&&(Le=!Le),j[U][ne-xe]=Le,H-=1,H==-1&&(X+=1,H=7)}if(U+=D,U<0||R<=U){U-=D,D=-D;break}}},te=function($,B){for(var D=0,U=0,H=0,X=new Array(B.length),oe=new Array(B.length),ne=0;ne<B.length;ne+=1){var xe=B[ne].dataCount,Le=B[ne].totalCount-xe;U=Math.max(U,xe),H=Math.max(H,Le),X[ne]=new Array(xe);for(var se=0;se<X[ne].length;se+=1)X[ne][se]=255&$.getBuffer()[se+D];D+=xe;var yt=a.getErrorCorrectPolynomial(Le),wt=c(X[ne],yt.getLength()-1),td=wt.mod(yt);oe[ne]=new Array(yt.getLength()-1);for(var se=0;se<oe[ne].length;se+=1){var nd=se+td.getLength()-oe[ne].length;oe[ne][se]=nd>=0?td.getAt(nd):0}}for(var rd=0,se=0;se<B.length;se+=1)rd+=B[se].totalCount;for(var Fl=new Array(rd),gs=0,se=0;se<U;se+=1)for(var ne=0;ne<B.length;ne+=1)se<X[ne].length&&(Fl[gs]=X[ne][se],gs+=1);for(var se=0;se<H;se+=1)for(var ne=0;ne<B.length;ne+=1)se<oe[ne].length&&(Fl[gs]=oe[ne][se],gs+=1);return Fl},Ie=function($,B,D){for(var U=p.getRSBlocks($,B),H=d(),X=0;X<D.length;X+=1){var oe=D[X];H.put(oe.getMode(),4),H.put(oe.getLength(),a.getLengthInBits(oe.getMode(),$)),oe.write(H)}for(var ne=0,X=0;X<U.length;X+=1)ne+=U[X].dataCount;if(H.getLengthInBits()>ne*8)throw"code length overflow. ("+H.getLengthInBits()+">"+ne*8+")";for(H.getLengthInBits()+4<=ne*8&&H.put(0,4);H.getLengthInBits()%8!=0;)H.putBit(!1);for(;!(H.getLengthInBits()>=ne*8||(H.put(x,8),H.getLengthInBits()>=ne*8));)H.put(y,8);return te(H,U)};F.addData=function($,B){B=B||"Byte";var D=null;switch(B){case"Numeric":D=f($);break;case"Alphanumeric":D=b($);break;case"Byte":D=k($);break;case"Kanji":D=v($);break;default:throw"mode:"+B}N.push(D),P=null},F.isDark=function($,B){if($<0||R<=$||B<0||R<=B)throw $+","+B;return j[$][B]},F.getModuleCount=function(){return R},F.make=function(){if(E<1){for(var $=1;$<40;$++){for(var B=p.getRSBlocks($,_),D=d(),U=0;U<N.length;U++){var H=N[U];D.put(H.getMode(),4),D.put(H.getLength(),a.getLengthInBits(H.getMode(),$)),H.write(D)}for(var X=0,U=0;U<B.length;U++)X+=B[U].dataCount;if(D.getLengthInBits()<=X*8)break}E=$}W(!1,z())},F.createTableTag=function($,B){$=$||2,B=typeof B>"u"?$*4:B;var D="";D+='<table style="',D+=" border-width: 0px; border-style: none;",D+=" border-collapse: collapse;",D+=" padding: 0px; margin: "+B+"px;",D+='">',D+="<tbody>";for(var U=0;U<F.getModuleCount();U+=1){D+="<tr>";for(var H=0;H<F.getModuleCount();H+=1)D+='<td style="',D+=" border-width: 0px; border-style: none;",D+=" border-collapse: collapse;",D+=" padding: 0px; margin: 0px;",D+=" width: "+$+"px;",D+=" height: "+$+"px;",D+=" background-color: ",D+=F.isDark(U,H)?"#000000":"#ffffff",D+=";",D+='"/>';D+="</tr>"}return D+="</tbody>",D+="</table>",D},F.createSvgTag=function($,B,D,U){var H={};typeof arguments[0]=="object"&&(H=arguments[0],$=H.cellSize,B=H.margin,D=H.alt,U=H.title),$=$||2,B=typeof B>"u"?$*4:B,D=typeof D=="string"?{text:D}:D||{},D.text=D.text||null,D.id=D.text?D.id||"qrcode-description":null,U=typeof U=="string"?{text:U}:U||{},U.text=U.text||null,U.id=U.text?U.id||"qrcode-title":null;var X=F.getModuleCount()*$+B*2,oe,ne,xe,Le,se="",yt;for(yt="l"+$+",0 0,"+$+" -"+$+",0 0,-"+$+"z ",se+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',se+=H.scalable?"":' width="'+X+'px" height="'+X+'px"',se+=' viewBox="0 0 '+X+" "+X+'" ',se+=' preserveAspectRatio="xMinYMin meet"',se+=U.text||D.text?' role="img" aria-labelledby="'+ce([U.id,D.id].join(" ").trim())+'"':"",se+=">",se+=U.text?'<title id="'+ce(U.id)+'">'+ce(U.text)+"</title>":"",se+=D.text?'<description id="'+ce(D.id)+'">'+ce(D.text)+"</description>":"",se+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',se+='<path d="',xe=0;xe<F.getModuleCount();xe+=1)for(Le=xe*$+B,oe=0;oe<F.getModuleCount();oe+=1)F.isDark(xe,oe)&&(ne=oe*$+B,se+="M"+ne+","+Le+yt);return se+='" stroke="transparent" fill="black"/>',se+="</svg>",se},F.createDataURL=function($,B){$=$||2,B=typeof B>"u"?$*4:B;var D=F.getModuleCount()*$+B*2,U=B,H=D-B;return w(D,D,function(X,oe){if(U<=X&&X<H&&U<=oe&&oe<H){var ne=Math.floor((X-U)/$),xe=Math.floor((oe-U)/$);return F.isDark(xe,ne)?0:1}else return 1})},F.createImgTag=function($,B,D){$=$||2,B=typeof B>"u"?$*4:B;var U=F.getModuleCount()*$+B*2,H="";return H+="<img",H+=' src="',H+=F.createDataURL($,B),H+='"',H+=' width="',H+=U,H+='"',H+=' height="',H+=U,H+='"',D&&(H+=' alt="',H+=ce(D),H+='"'),H+="/>",H};var ce=function($){for(var B="",D=0;D<$.length;D+=1){var U=$.charAt(D);switch(U){case"<":B+="<";break;case">":B+=">";break;case"&":B+="&";break;case'"':B+=""";break;default:B+=U;break}}return B},Ue=function($){var B=1;$=typeof $>"u"?B*2:$;var D=F.getModuleCount()*B+$*2,U=$,H=D-$,X,oe,ne,xe,Le,se={"██":"█","█ ":"▀"," █":"▄"," ":" "},yt={"██":"▀","█ ":"▀"," █":" "," ":" "},wt="";for(X=0;X<D;X+=2){for(ne=Math.floor((X-U)/B),xe=Math.floor((X+1-U)/B),oe=0;oe<D;oe+=1)Le="█",U<=oe&&oe<H&&U<=X&&X<H&&F.isDark(ne,Math.floor((oe-U)/B))&&(Le=" "),U<=oe&&oe<H&&U<=X+1&&X+1<H&&F.isDark(xe,Math.floor((oe-U)/B))?Le+=" ":Le+="█",wt+=$<1&&X+1>=H?yt[Le]:se[Le];wt+=`
|
|
345
|
+
`}return D%2&&$>0?wt.substring(0,wt.length-D-1)+Array(D+1).join("▀"):wt.substring(0,wt.length-1)};return F.createASCII=function($,B){if($=$||1,$<2)return Ue(B);$-=1,B=typeof B>"u"?$*2:B;var D=F.getModuleCount()*$+B*2,U=B,H=D-B,X,oe,ne,xe,Le=Array($+1).join("██"),se=Array($+1).join(" "),yt="",wt="";for(X=0;X<D;X+=1){for(ne=Math.floor((X-U)/$),wt="",oe=0;oe<D;oe+=1)xe=1,U<=oe&&oe<H&&U<=X&&X<H&&F.isDark(ne,Math.floor((oe-U)/$))&&(xe=0),wt+=xe?Le:se;for(ne=0;ne<$;ne+=1)yt+=wt+`
|
|
346
|
+
`}return yt.substring(0,yt.length-1)},F.renderTo2dContext=function($,B){B=B||2;for(var D=F.getModuleCount(),U=0;U<D;U++)for(var H=0;H<D;H++)$.fillStyle=F.isDark(U,H)?"black":"white",$.fillRect(U*B,H*B,B,B)},F};r.stringToBytesFuncs={default:function(S){for(var T=[],x=0;x<S.length;x+=1){var y=S.charCodeAt(x);T.push(y&255)}return T}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(S,T){var x=function(){for(var E=h(S),_=function(){var K=E.read();if(K==-1)throw"eof";return K},j=0,R={};;){var P=E.read();if(P==-1)break;var N=_(),F=_(),W=_(),Y=String.fromCharCode(P<<8|N),z=F<<8|W;R[Y]=z,j+=1}if(j!=T)throw j+" != "+T;return R}(),y=63;return function(E){for(var _=[],j=0;j<E.length;j+=1){var R=E.charCodeAt(j);if(R<128)_.push(R);else{var P=x[E.charAt(j)];typeof P=="number"?(P&255)==P?_.push(P):(_.push(P>>>8),_.push(P&255)):_.push(y)}}return _}};var o={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},s={L:1,M:0,Q:3,H:2},l={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a=function(){var S=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],T=1335,x=7973,y=21522,E={},_=function(j){for(var R=0;j!=0;)R+=1,j>>>=1;return R};return E.getBCHTypeInfo=function(j){for(var R=j<<10;_(R)-_(T)>=0;)R^=T<<_(R)-_(T);return(j<<10|R)^y},E.getBCHTypeNumber=function(j){for(var R=j<<12;_(R)-_(x)>=0;)R^=x<<_(R)-_(x);return j<<12|R},E.getPatternPosition=function(j){return S[j-1]},E.getMaskFunction=function(j){switch(j){case l.PATTERN000:return function(R,P){return(R+P)%2==0};case l.PATTERN001:return function(R,P){return R%2==0};case l.PATTERN010:return function(R,P){return P%3==0};case l.PATTERN011:return function(R,P){return(R+P)%3==0};case l.PATTERN100:return function(R,P){return(Math.floor(R/2)+Math.floor(P/3))%2==0};case l.PATTERN101:return function(R,P){return R*P%2+R*P%3==0};case l.PATTERN110:return function(R,P){return(R*P%2+R*P%3)%2==0};case l.PATTERN111:return function(R,P){return(R*P%3+(R+P)%2)%2==0};default:throw"bad maskPattern:"+j}},E.getErrorCorrectPolynomial=function(j){for(var R=c([1],0),P=0;P<j;P+=1)R=R.multiply(c([1,u.gexp(P)],0));return R},E.getLengthInBits=function(j,R){if(1<=R&&R<10)switch(j){case o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:return 8;case o.MODE_KANJI:return 8;default:throw"mode:"+j}else if(R<27)switch(j){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:throw"mode:"+j}else if(R<41)switch(j){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 12;default:throw"mode:"+j}else throw"type:"+R},E.getLostPoint=function(j){for(var R=j.getModuleCount(),P=0,N=0;N<R;N+=1)for(var F=0;F<R;F+=1){for(var W=0,Y=j.isDark(N,F),z=-1;z<=1;z+=1)if(!(N+z<0||R<=N+z))for(var K=-1;K<=1;K+=1)F+K<0||R<=F+K||z==0&&K==0||Y==j.isDark(N+z,F+K)&&(W+=1);W>5&&(P+=3+W-5)}for(var N=0;N<R-1;N+=1)for(var F=0;F<R-1;F+=1){var J=0;j.isDark(N,F)&&(J+=1),j.isDark(N+1,F)&&(J+=1),j.isDark(N,F+1)&&(J+=1),j.isDark(N+1,F+1)&&(J+=1),(J==0||J==4)&&(P+=3)}for(var N=0;N<R;N+=1)for(var F=0;F<R-6;F+=1)j.isDark(N,F)&&!j.isDark(N,F+1)&&j.isDark(N,F+2)&&j.isDark(N,F+3)&&j.isDark(N,F+4)&&!j.isDark(N,F+5)&&j.isDark(N,F+6)&&(P+=40);for(var F=0;F<R;F+=1)for(var N=0;N<R-6;N+=1)j.isDark(N,F)&&!j.isDark(N+1,F)&&j.isDark(N+2,F)&&j.isDark(N+3,F)&&j.isDark(N+4,F)&&!j.isDark(N+5,F)&&j.isDark(N+6,F)&&(P+=40);for(var re=0,F=0;F<R;F+=1)for(var N=0;N<R;N+=1)j.isDark(N,F)&&(re+=1);var M=Math.abs(100*re/R/R-50)/5;return P+=M*10,P},E}(),u=function(){for(var S=new Array(256),T=new Array(256),x=0;x<8;x+=1)S[x]=1<<x;for(var x=8;x<256;x+=1)S[x]=S[x-4]^S[x-5]^S[x-6]^S[x-8];for(var x=0;x<255;x+=1)T[S[x]]=x;var y={};return y.glog=function(E){if(E<1)throw"glog("+E+")";return T[E]},y.gexp=function(E){for(;E<0;)E+=255;for(;E>=256;)E-=255;return S[E]},y}();function c(S,T){if(typeof S.length>"u")throw S.length+"/"+T;var x=function(){for(var E=0;E<S.length&&S[E]==0;)E+=1;for(var _=new Array(S.length-E+T),j=0;j<S.length-E;j+=1)_[j]=S[j+E];return _}(),y={};return y.getAt=function(E){return x[E]},y.getLength=function(){return x.length},y.multiply=function(E){for(var _=new Array(y.getLength()+E.getLength()-1),j=0;j<y.getLength();j+=1)for(var R=0;R<E.getLength();R+=1)_[j+R]^=u.gexp(u.glog(y.getAt(j))+u.glog(E.getAt(R)));return c(_,0)},y.mod=function(E){if(y.getLength()-E.getLength()<0)return y;for(var _=u.glog(y.getAt(0))-u.glog(E.getAt(0)),j=new Array(y.getLength()),R=0;R<y.getLength();R+=1)j[R]=y.getAt(R);for(var R=0;R<E.getLength();R+=1)j[R]^=u.gexp(u.glog(E.getAt(R))+_);return c(j,0).mod(E)},y}var p=function(){var S=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],T=function(E,_){var j={};return j.totalCount=E,j.dataCount=_,j},x={},y=function(E,_){switch(_){case s.L:return S[(E-1)*4+0];case s.M:return S[(E-1)*4+1];case s.Q:return S[(E-1)*4+2];case s.H:return S[(E-1)*4+3];default:return}};return x.getRSBlocks=function(E,_){var j=y(E,_);if(typeof j>"u")throw"bad rs block @ typeNumber:"+E+"/errorCorrectionLevel:"+_;for(var R=j.length/3,P=[],N=0;N<R;N+=1)for(var F=j[N*3+0],W=j[N*3+1],Y=j[N*3+2],z=0;z<F;z+=1)P.push(T(W,Y));return P},x}(),d=function(){var S=[],T=0,x={};return x.getBuffer=function(){return S},x.getAt=function(y){var E=Math.floor(y/8);return(S[E]>>>7-y%8&1)==1},x.put=function(y,E){for(var _=0;_<E;_+=1)x.putBit((y>>>E-_-1&1)==1)},x.getLengthInBits=function(){return T},x.putBit=function(y){var E=Math.floor(T/8);S.length<=E&&S.push(0),y&&(S[E]|=128>>>T%8),T+=1},x},f=function(S){var T=o.MODE_NUMBER,x=S,y={};y.getMode=function(){return T},y.getLength=function(j){return x.length},y.write=function(j){for(var R=x,P=0;P+2<R.length;)j.put(E(R.substring(P,P+3)),10),P+=3;P<R.length&&(R.length-P==1?j.put(E(R.substring(P,P+1)),4):R.length-P==2&&j.put(E(R.substring(P,P+2)),7))};var E=function(j){for(var R=0,P=0;P<j.length;P+=1)R=R*10+_(j.charAt(P));return R},_=function(j){if("0"<=j&&j<="9")return j.charCodeAt(0)-48;throw"illegal char :"+j};return y},b=function(S){var T=o.MODE_ALPHA_NUM,x=S,y={};y.getMode=function(){return T},y.getLength=function(_){return x.length},y.write=function(_){for(var j=x,R=0;R+1<j.length;)_.put(E(j.charAt(R))*45+E(j.charAt(R+1)),11),R+=2;R<j.length&&_.put(E(j.charAt(R)),6)};var E=function(_){if("0"<=_&&_<="9")return _.charCodeAt(0)-48;if("A"<=_&&_<="Z")return _.charCodeAt(0)-65+10;switch(_){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+_}};return y},k=function(S){var T=o.MODE_8BIT_BYTE,x=r.stringToBytes(S),y={};return y.getMode=function(){return T},y.getLength=function(E){return x.length},y.write=function(E){for(var _=0;_<x.length;_+=1)E.put(x[_],8)},y},v=function(S){var T=o.MODE_KANJI,x=r.stringToBytesFuncs.SJIS;if(!x)throw"sjis not supported.";(function(_,j){var R=x(_);if(R.length!=2||(R[0]<<8|R[1])!=j)throw"sjis not supported."})("友",38726);var y=x(S),E={};return E.getMode=function(){return T},E.getLength=function(_){return~~(y.length/2)},E.write=function(_){for(var j=y,R=0;R+1<j.length;){var P=(255&j[R])<<8|255&j[R+1];if(33088<=P&&P<=40956)P-=33088;else if(57408<=P&&P<=60351)P-=49472;else throw"illegal char at "+(R+1)+"/"+P;P=(P>>>8&255)*192+(P&255),_.put(P,13),R+=2}if(R<j.length)throw"illegal char at "+(R+1)},E},C=function(){var S=[],T={};return T.writeByte=function(x){S.push(x&255)},T.writeShort=function(x){T.writeByte(x),T.writeByte(x>>>8)},T.writeBytes=function(x,y,E){y=y||0,E=E||x.length;for(var _=0;_<E;_+=1)T.writeByte(x[_+y])},T.writeString=function(x){for(var y=0;y<x.length;y+=1)T.writeByte(x.charCodeAt(y))},T.toByteArray=function(){return S},T.toString=function(){var x="";x+="[";for(var y=0;y<S.length;y+=1)y>0&&(x+=","),x+=S[y];return x+="]",x},T},g=function(){var S=0,T=0,x=0,y="",E={},_=function(R){y+=String.fromCharCode(j(R&63))},j=function(R){if(!(R<0)){if(R<26)return 65+R;if(R<52)return 97+(R-26);if(R<62)return 48+(R-52);if(R==62)return 43;if(R==63)return 47}throw"n:"+R};return E.writeByte=function(R){for(S=S<<8|R&255,T+=8,x+=1;T>=6;)_(S>>>T-6),T-=6},E.flush=function(){if(T>0&&(_(S<<6-T),S=0,T=0),x%3!=0)for(var R=3-x%3,P=0;P<R;P+=1)y+="="},E.toString=function(){return y},E},h=function(S){var T=S,x=0,y=0,E=0,_={};_.read=function(){for(;E<8;){if(x>=T.length){if(E==0)return-1;throw"unexpected end of file./"+E}var R=T.charAt(x);if(x+=1,R=="=")return E=0,-1;if(R.match(/^\s$/))continue;y=y<<6|j(R.charCodeAt(0)),E+=6}var P=y>>>E-8&255;return E-=8,P};var j=function(R){if(65<=R&&R<=90)return R-65;if(97<=R&&R<=122)return R-97+26;if(48<=R&&R<=57)return R-48+52;if(R==43)return 62;if(R==47)return 63;throw"c:"+R};return _},m=function(S,T){var x=S,y=T,E=new Array(S*T),_={};_.setPixel=function(N,F,W){E[F*x+N]=W},_.write=function(N){N.writeString("GIF87a"),N.writeShort(x),N.writeShort(y),N.writeByte(128),N.writeByte(0),N.writeByte(0),N.writeByte(0),N.writeByte(0),N.writeByte(0),N.writeByte(255),N.writeByte(255),N.writeByte(255),N.writeString(","),N.writeShort(0),N.writeShort(0),N.writeShort(x),N.writeShort(y),N.writeByte(0);var F=2,W=R(F);N.writeByte(F);for(var Y=0;W.length-Y>255;)N.writeByte(255),N.writeBytes(W,Y,255),Y+=255;N.writeByte(W.length-Y),N.writeBytes(W,Y,W.length-Y),N.writeByte(0),N.writeString(";")};var j=function(N){var F=N,W=0,Y=0,z={};return z.write=function(K,J){if(K>>>J)throw"length over";for(;W+J>=8;)F.writeByte(255&(K<<W|Y)),J-=8-W,K>>>=8-W,Y=0,W=0;Y=K<<W|Y,W=W+J},z.flush=function(){W>0&&F.writeByte(Y)},z},R=function(N){for(var F=1<<N,W=(1<<N)+1,Y=N+1,z=P(),K=0;K<F;K+=1)z.add(String.fromCharCode(K));z.add(String.fromCharCode(F)),z.add(String.fromCharCode(W));var J=C(),re=j(J);re.write(F,Y);var M=0,ee=String.fromCharCode(E[M]);for(M+=1;M<E.length;){var te=String.fromCharCode(E[M]);M+=1,z.contains(ee+te)?ee=ee+te:(re.write(z.indexOf(ee),Y),z.size()<4095&&(z.size()==1<<Y&&(Y+=1),z.add(ee+te)),ee=te)}return re.write(z.indexOf(ee),Y),re.write(W,Y),re.flush(),J.toByteArray()},P=function(){var N={},F=0,W={};return W.add=function(Y){if(W.contains(Y))throw"dup key:"+Y;N[Y]=F,F+=1},W.size=function(){return F},W.indexOf=function(Y){return N[Y]},W.contains=function(Y){return typeof N[Y]<"u"},W};return _},w=function(S,T,x){for(var y=m(S,T),E=0;E<T;E+=1)for(var _=0;_<S;_+=1)y.setPixel(_,E,x(_,E));var j=C();y.write(j);for(var R=g(),P=j.toByteArray(),N=0;N<P.length;N+=1)R.writeByte(P[N]);return R.flush(),"data:image/gif;base64,"+R};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function o(s){for(var l=[],a=0;a<s.length;a++){var u=s.charCodeAt(a);u<128?l.push(u):u<2048?l.push(192|u>>6,128|u&63):u<55296||u>=57344?l.push(224|u>>12,128|u>>6&63,128|u&63):(a++,u=65536+((u&1023)<<10|s.charCodeAt(a)&1023),l.push(240|u>>18,128|u>>12&63,128|u>>6&63,128|u&63))}return l}return o(r)}})(),function(r){e.exports=r()}(function(){return n})})(cx);var o2=cx.exports;const s2=nl(o2),i2=({value:e,size:t=200})=>{const n=A.useMemo(()=>{const r=s2(0,"M");r.addData(e),r.make();const o=r.getModuleCount(),s=4,l=o+s*2;let a="";for(let u=0;u<o;u++)for(let c=0;c<o;c++)r.isDark(u,c)&&(a+=`M${c+s} ${u+s}h1v1h-1z`);return{total:l,path:a}},[e]);return i.jsx("svg",{width:t,height:t,viewBox:`0 0 ${n.total} ${n.total}`,shapeRendering:"crispEdges",role:"img","aria-label":"2FA enrollment QR code",style:{background:"#fff",borderRadius:"6px",display:"block"},children:i.jsx("path",{d:n.path,fill:"#000"})})},Pp=window.__host,Lp=!!Pp&&!Pp.includes("{{"),Uu="monitor.auth",l2=()=>{try{const e=localStorage.getItem(Uu);if(!e)return null;const t=JSON.parse(e);return{host:t.host??"",login:t.login??"",password:"",totp:""}}catch{return null}},dx=me.form`
|
|
335
347
|
display: flex;
|
|
336
348
|
flex-direction: column;
|
|
337
349
|
gap: 16px;
|
|
338
|
-
`,
|
|
350
|
+
`,a2=me.button`
|
|
339
351
|
flex: 0 0 auto;
|
|
340
352
|
position: relative;
|
|
341
353
|
width: 34px;
|
|
@@ -358,7 +370,7 @@ Error generating stack: `+s.message+`
|
|
|
358
370
|
transition: transform 0.2s;
|
|
359
371
|
transform: translateX(${({$on:e})=>e?"15px":"0"});
|
|
360
372
|
}
|
|
361
|
-
`,
|
|
373
|
+
`,_r=me.input`
|
|
362
374
|
width: 100%;
|
|
363
375
|
box-sizing: border-box;
|
|
364
376
|
padding: 13px 14px;
|
|
@@ -372,8 +384,8 @@ Error generating stack: `+s.message+`
|
|
|
372
384
|
&:focus {
|
|
373
385
|
border-color: #5390d9;
|
|
374
386
|
}
|
|
375
|
-
`,
|
|
376
|
-
const
|
|
387
|
+
`,u2=()=>{const e=Ki.use([]),t=vn.use([]),n=e==="checking",r=A.useState(l2)[0],[o,s]=A.useState(r??{...Fr}),[l,a]=A.useState(!!r),u=d=>f=>s(b=>({...b,[d]:f.target.value})),c=o.login.trim().length>0&&o.password.length>0&&(Lp||o.host.trim().length>0)&&(o.totp===""||/^\d{6}$/.test(o.totp)),p=()=>{if(!(!c||n)){try{l?localStorage.setItem(Uu,JSON.stringify({host:o.host,login:o.login})):localStorage.removeItem(Uu)}catch{}vg.invoke(o),s(d=>({...d,password:"",totp:""}))}};return e==="enroll"?i.jsx(c2,{}):i.jsx(O,{sx:{minHeight:"100vh",alignItems:"center",justifyContent:"center",padding:"20px"},children:i.jsx(Ae,{label:"Server Monitor",busy:n,sx:{minWidth:"340px",maxWidth:"380px"},children:i.jsxs(dx,{onSubmit:d=>{d.preventDefault(),p()},children:[!Lp&&i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(Me,{children:"API host"}),i.jsx(_r,{value:o.host,onChange:u("host"),placeholder:"https://example.com/api/v1"})]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(Me,{children:"Login"}),i.jsx(_r,{value:o.login,onChange:u("login"),autoComplete:"username"})]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(Me,{children:"Password"}),i.jsx(_r,{type:"password",value:o.password,onChange:u("password"),autoComplete:"current-password"})]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(Me,{children:"2FA code"}),i.jsx(_r,{value:o.totp,onChange:d=>s(f=>({...f,totp:d.target.value.replace(/\D/g,"").slice(0,6)})),inputMode:"numeric",autoComplete:"one-time-code",placeholder:"6 digits from your authenticator"}),i.jsx(Me,{sx:{fontSize:".7rem"},children:"Leave empty only on your very first sign-in, before 2FA is set up."})]}),i.jsxs(V,{sx:{gap:"10px",alignItems:"center"},children:[i.jsx(a2,{type:"button",$on:l,onClick:()=>a(d=>!d)}),i.jsx(Me,{children:"Remember me"})]}),t&&i.jsx(Jc,{error:t}),i.jsx(el,{onClick:p,disabled:!c||n,children:n?"Signing in…":"Sign in"})]})})})},c2=()=>{const e=Pu.use([]),t=vn.use([]),[n,r]=A.useState(""),[o,s]=A.useState(!1),[l,a]=A.useState(Date.now());if(A.useEffect(()=>{const f=window.setInterval(()=>a(Date.now()),1e3);return()=>window.clearInterval(f)},[]),A.useEffect(()=>{t&&s(!1)},[t]),!e)return null;const u=Math.max(0,Math.round((e.expiresAt-l)/1e3)),c=u===0,p=/^\d{6}$/.test(n),d=()=>{!p||o||c||(s(!0),yg.invoke(n),r(""))};return i.jsx(O,{sx:{minHeight:"100vh",alignItems:"center",justifyContent:"center",padding:"20px"},children:i.jsx(Ae,{label:"Set up two-factor authentication",busy:o,sx:{minWidth:"340px",maxWidth:"420px"},children:i.jsxs(dx,{onSubmit:f=>{f.preventDefault(),d()},children:[i.jsx(Me,{children:"Scan the code with Google Authenticator (or any TOTP app), then enter the 6-digit code it shows."}),i.jsx(O,{sx:{alignItems:"center",gap:"10px"},children:i.jsx(i2,{value:e.otpauthUri,size:208})}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(Me,{children:"No camera? Enter this key manually"}),i.jsx(_r,{readOnly:!0,value:e.secret,onFocus:f=>f.currentTarget.select(),style:{fontFamily:"monospace",letterSpacing:".08em"}})]}),i.jsxs(O,{sx:{gap:"6px"},children:[i.jsx(Me,{children:"Code from the app"}),i.jsx(_r,{autoFocus:!0,value:n,onChange:f=>r(f.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",placeholder:"123456"})]}),i.jsxs(Me,{sx:{fontSize:".7rem"},children:[c?"Enrollment expired — go back and sign in again.":`Expires in ${Math.floor(u/60)}:${String(u%60).padStart(2,"0")}`," · ","2FA can't be re-enrolled from the UI; if the phone is lost, an administrator has to reset it on the server."]}),t&&i.jsx(Jc,{error:t}),i.jsxs(V,{sx:{gap:"10px"},children:[i.jsx(el,{onClick:()=>Cl.invoke(),children:"Back"}),i.jsx(el,{onClick:d,disabled:!p||o||c,children:o?"Verifying…":"Enable 2FA"})]})]})})})},d2={cellBackground:"#FFFFFF",cellBackgroundHover:"rgb(249, 251, 255)",cellBackgroundExpanded:"#373948",cellColorExpanded:"#FFFFFF",headerBackground:"#f5f5f5",cellBorderBottom:"1px solid rgba(0,0,0,.1)",cellBorderTop:"1px solid transparent"},f2={cellBackground:"rgba(0,0,0,0)",cellBackgroundHover:"rgba(0,0,0,.1)",cellBackgroundExpanded:"#373948",cellColorExpanded:"#FFFFFF",headerBackground:"rgba(0,0,0,.4)",cellBorderBottom:"1px solid rgba(0,0,0,.6)",cellBorderTop:"1px solid rgba(255,255,255,.06)"};new In;const p2={background:"#a7a7a7",backgroundSelected:"#66bb6a",toggle:"#FFFFFF"};//!TODO: colors;
|
|
388
|
+
const h2={background:"#a7a7a7",backgroundSelected:"#66bb6a",toggle:"#FFFFFF"},m2={backgroundPrimary:"#EEF0F2",panelBackgroundPrimary:"#FFFFFF",panelDividerBackgroundColor:"linear-gradient(0deg, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.1) 50%)",panelHeadBackgroundColor:"rgba(0, 0, 0, 0.05)",inputBackgroundPrimary:"#FFFFFF",inputBorderPrimary:"rgba(43, 33, 79, 0.3)",inputBorderSecondary:"#101A24",textPrimary:"#14171F",textSecondary:"#848799",textWarning:"#e91e63",buttonBackgroundPrimary:"#101A24",buttonBackgroundSecondary:"#848799",buttonTextPrimary:"#FFFFFF",buttonBackgroundPrimaryHover:"#1d2228",buttonTextSecondary:"#14171F",tabsHoverColor:"rgb(249, 251, 255)",chartPallete:["#7400B8","#6930C3","#5E60CE","#5390D9","#4EA8DE","#48BFE3","#56CFE1","#64DFDF","#72EFDD","#80FFDB"],chartForeground:"rgba(103, 123, 148, 1)",chartForegroundHover:"#88a4c5",chartLightForeground:"rgba(31, 194, 194, 1)",chartBackground:"rgba(242, 242, 242, 1)",success:"#56bb56",fail:"#bb5656",successText:"#48742f",failText:"#742f2f",divider:"#e2e2e2"},g2={backgroundPrimary:"#19141f",inputBackgroundPrimary:"rgba(0,0,0,.1)",inputBorderPrimary:"rgba(255, 255, 255, 0.1)",inputBorderSecondary:"#0b6df5",panelBackgroundPrimary:"#231d2b",panelHeadBackgroundColor:"rgba(0, 0, 0, 0.1)",panelDividerBackgroundColor:"linear-gradient(0deg, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.8) 50%)",textPrimary:"#FFFFFF",textSecondary:"blue",textWarning:"#e91e63",buttonBackgroundPrimary:"#0b6df5",buttonBackgroundSecondary:"orange",buttonTextPrimary:"yellow",buttonBackgroundPrimaryHover:"purple",buttonTextSecondary:"pink",chartPallete:["#7400B8","#6930C3","#5E60CE","#5390D9","#4EA8DE","#48BFE3","#56CFE1","#64DFDF","#72EFDD","#80FFDB"],tabsHoverColor:"rgba(0,0,0,.1)",chartForeground:"rgba(103, 123, 148, 1)",chartForegroundHover:"#88a4c5",chartLightForeground:"rgba(31, 194, 194, 1)",chartBackground:"rgba(242, 242, 242, 1)",success:"#56bb56",fail:"#bb5656",successText:"#48742f",failText:"#742f2f",divider:"#e2e2e2"},fx={head:{fontSize:"1.7rem",fontWeight:600,color:"textPrimary",display:"inline"},headMedium:{fontSize:"1.15rem",fontWeight:500,color:"textPrimary",display:"inline"},text:{fontSize:"1rem",fontWeight:400,color:"textPrimary",display:"inline"},medium:{fontSize:".88rem",fontWeight:400,color:"textPrimary",display:"inline"},caption:{fontSize:".75rem",fontWeight:400,color:"textPrimary",display:"inline",opacity:.6},small:{fontSize:".6rem",fontWeight:400,color:"textPrimary",display:"inline"}},Op=()=>({name:"light",colors:JSON.parse(JSON.stringify(m2)),typo:JSON.parse(JSON.stringify(fx)),buttons:JSON.parse(JSON.stringify(Qg)),table:JSON.parse(JSON.stringify(d2)),toggle:JSON.parse(JSON.stringify(p2))}),x2=()=>({name:"dark",colors:JSON.parse(JSON.stringify(g2)),typo:JSON.parse(JSON.stringify(fx)),buttons:JSON.parse(JSON.stringify(Qg)),table:JSON.parse(JSON.stringify(f2)),toggle:JSON.parse(JSON.stringify(h2))}),v2=Ww`
|
|
377
389
|
@font-face {
|
|
378
390
|
font-family: 'Euclid';
|
|
379
391
|
src:
|
|
@@ -457,10 +469,10 @@ const m3={background:"#a7a7a7",backgroundSelected:"#66bb6a",toggle:"#FFFFFF"},g3
|
|
|
457
469
|
::-webkit-scrollbar-thumb:hover {
|
|
458
470
|
background-color:rgba(0,0,0,1);
|
|
459
471
|
}
|
|
460
|
-
`,
|
|
472
|
+
`,y2=e=>{for(let t in e){const n=e[t];e[n]&&(e[t]=e[n])}},px=(e,t)=>{for(let n in e)if(n!=="colors"){if(typeof e[n]=="object"){e[n]=px(e[n],t);continue}if(typeof e[n]=="string"){const r=e[n];if(t[r])e[n]=t[r];else for(let o in t)r.indexOf(o)>-1&&(e[n]=r.replace(o,t[o]))}}return e},w2=e=>(y2(e.colors),px(e,e.colors),e),S2=({theme:e,children:t})=>i.jsxs(Bw,{theme:w2(e??Op()),children:[i.jsx(v2,{theme:e??Op()}),t]}),j2=x2();function k2(){const e=Ki.use([]);let t;switch(e){case"authorized":t=i.jsx(r2,{});break;case"unauthorized":case"checking":case"enroll":t=i.jsx(u2,{});break;default:t=i.jsxs(O,{sx:{padding:"20px"},children:["Unknown state: ",e]})}return i.jsx(S2,{theme:j2,children:t})}In.setupReact(st.useState,st.useEffect);new Uy;La.createRoot(document.getElementById("root")).render(i.jsx(st.StrictMode,{children:i.jsx(k2,{})}));</script>
|
|
461
473
|
</head>
|
|
462
474
|
|
|
463
475
|
<body>
|
|
464
476
|
<div id="root"></div>
|
|
465
477
|
</body>
|
|
466
|
-
</html>
|
|
478
|
+
</html>
|