@nxuss/lemma 0.4.10 โ 0.4.11
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/README.md +2 -2
- package/dashboard/dist/assets/index-B4TA31pA.js +490 -0
- package/dashboard/dist/assets/index-B4TA31pA.js.map +1 -0
- package/dashboard/dist/assets/index-DNqq3gA9.css +1 -0
- package/dashboard/dist/index.html +2 -2
- package/dist/cjs/cli/lemma-proxy.d.ts.map +1 -1
- package/dist/cjs/cli/lemma-proxy.js +51 -7
- package/dist/cjs/cli/lemma-proxy.js.map +1 -1
- package/dist/esm/cli/lemma-proxy.d.ts.map +1 -1
- package/dist/esm/cli/lemma-proxy.js +51 -7
- package/dist/esm/cli/lemma-proxy.js.map +1 -1
- package/package.json +2 -2
- package/dashboard/dist/assets/index-CIx8ECj8.css +0 -1
- package/dashboard/dist/assets/index-zTlIPJOp.js +0 -478
- package/dashboard/dist/assets/index-zTlIPJOp.js.map +0 -1
|
@@ -1,478 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xw={exports:{}},Qc={},Yw={exports:{}},ne={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var tl=Symbol.for("react.element"),k2=Symbol.for("react.portal"),j2=Symbol.for("react.fragment"),$2=Symbol.for("react.strict_mode"),T2=Symbol.for("react.profiler"),C2=Symbol.for("react.provider"),N2=Symbol.for("react.context"),M2=Symbol.for("react.forward_ref"),I2=Symbol.for("react.suspense"),D2=Symbol.for("react.memo"),R2=Symbol.for("react.lazy"),gg=Symbol.iterator;function L2(e){return e===null||typeof e!="object"?null:(e=gg&&e[gg]||e["@@iterator"],typeof e=="function"?e:null)}var Qw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zw=Object.assign,Jw={};function Go(e,t,r){this.props=e,this.context=t,this.refs=Jw,this.updater=r||Qw}Go.prototype.isReactComponent={};Go.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")};Go.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eS(){}eS.prototype=Go.prototype;function av(e,t,r){this.props=e,this.context=t,this.refs=Jw,this.updater=r||Qw}var sv=av.prototype=new eS;sv.constructor=av;Zw(sv,Go.prototype);sv.isPureReactComponent=!0;var bg=Array.isArray,tS=Object.prototype.hasOwnProperty,lv={current:null},rS={key:!0,ref:!0,__self:!0,__source:!0};function nS(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)tS.call(t,n)&&!rS.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:tl,type:e,key:o,ref:a,props:i,_owner:lv.current}}function B2(e,t){return{$$typeof:tl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function uv(e){return typeof e=="object"&&e!==null&&e.$$typeof===tl}function z2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var xg=/\/+/g;function md(e,t){return typeof e=="object"&&e!==null&&e.key!=null?z2(""+e.key):t.toString(36)}function ru(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case tl:case k2:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+md(a,0):n,bg(i)?(r="",e!=null&&(r=e.replace(xg,"$&/")+"/"),ru(i,t,r,"",function(u){return u})):i!=null&&(uv(i)&&(i=B2(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(xg,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",bg(e))for(var s=0;s<e.length;s++){o=e[s];var l=n+md(o,s);a+=ru(o,t,r,l,i)}else if(l=L2(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=n+md(o,s++),a+=ru(o,t,r,l,i);else if(o==="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 a}function wl(e,t,r){if(e==null)return e;var n=[],i=0;return ru(e,n,"","",function(o){return t.call(r,o,i++)}),n}function F2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gt={current:null},nu={transition:null},U2={ReactCurrentDispatcher:gt,ReactCurrentBatchConfig:nu,ReactCurrentOwner:lv};function iS(){throw Error("act(...) is not supported in production builds of React.")}ne.Children={map:wl,forEach:function(e,t,r){wl(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return wl(e,function(){t++}),t},toArray:function(e){return wl(e,function(t){return t})||[]},only:function(e){if(!uv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=Go;ne.Fragment=j2;ne.Profiler=T2;ne.PureComponent=av;ne.StrictMode=$2;ne.Suspense=I2;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U2;ne.act=iS;ne.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Zw({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=lv.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)tS.call(t,l)&&!rS.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:tl,type:e.type,key:i,ref:o,props:n,_owner:a}};ne.createContext=function(e){return e={$$typeof:N2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:C2,_context:e},e.Consumer=e};ne.createElement=nS;ne.createFactory=function(e){var t=nS.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:M2,render:e}};ne.isValidElement=uv;ne.lazy=function(e){return{$$typeof:R2,_payload:{_status:-1,_result:e},_init:F2}};ne.memo=function(e,t){return{$$typeof:D2,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=nu.transition;nu.transition={};try{e()}finally{nu.transition=t}};ne.unstable_act=iS;ne.useCallback=function(e,t){return gt.current.useCallback(e,t)};ne.useContext=function(e){return gt.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return gt.current.useDeferredValue(e)};ne.useEffect=function(e,t){return gt.current.useEffect(e,t)};ne.useId=function(){return gt.current.useId()};ne.useImperativeHandle=function(e,t,r){return gt.current.useImperativeHandle(e,t,r)};ne.useInsertionEffect=function(e,t){return gt.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return gt.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return gt.current.useMemo(e,t)};ne.useReducer=function(e,t,r){return gt.current.useReducer(e,t,r)};ne.useRef=function(e){return gt.current.useRef(e)};ne.useState=function(e){return gt.current.useState(e)};ne.useSyncExternalStore=function(e,t,r){return gt.current.useSyncExternalStore(e,t,r)};ne.useTransition=function(){return gt.current.useTransition()};ne.version="18.3.1";Yw.exports=ne;var $=Yw.exports;const P=de($);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var W2=$,H2=Symbol.for("react.element"),V2=Symbol.for("react.fragment"),K2=Object.prototype.hasOwnProperty,q2=W2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,G2={key:!0,ref:!0,__self:!0,__source:!0};function oS(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)K2.call(t,n)&&!G2.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:H2,type:e,key:o,ref:a,props:i,_owner:q2.current}}Qc.Fragment=V2;Qc.jsx=oS;Qc.jsxs=oS;Xw.exports=Qc;var S=Xw.exports,Op={},aS={exports:{}},Ft={},sS={exports:{}},lS={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(C,R){var B=C.length;C.push(R);e:for(;0<B;){var V=B-1>>>1,W=C[V];if(0<i(W,R))C[V]=R,C[B]=W,B=V;else break e}}function r(C){return C.length===0?null:C[0]}function n(C){if(C.length===0)return null;var R=C[0],B=C.pop();if(B!==R){C[0]=B;e:for(var V=0,W=C.length,X=W>>>1;V<X;){var oe=2*(V+1)-1,Ae=C[oe],De=oe+1,Wt=C[De];if(0>i(Ae,B))De<W&&0>i(Wt,Ae)?(C[V]=Wt,C[De]=B,V=De):(C[V]=Ae,C[oe]=B,V=oe);else if(De<W&&0>i(Wt,B))C[V]=Wt,C[De]=B,V=De;else break e}}return R}function i(C,R){var B=C.sortIndex-R.sortIndex;return B!==0?B:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,c=null,d=3,p=!1,m=!1,h=!1,g=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(C){for(var R=r(u);R!==null;){if(R.callback===null)n(u);else if(R.startTime<=C)n(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=r(u)}}function _(C){if(h=!1,b(C),!m)if(r(l)!==null)m=!0,L(x);else{var R=r(u);R!==null&&z(_,R.startTime-C)}}function x(C,R){m=!1,h&&(h=!1,v(A),A=-1),p=!0;var B=d;try{for(b(R),c=r(l);c!==null&&(!(c.expirationTime>R)||C&&!T());){var V=c.callback;if(typeof V=="function"){c.callback=null,d=c.priorityLevel;var W=V(c.expirationTime<=R);R=e.unstable_now(),typeof W=="function"?c.callback=W:c===r(l)&&n(l),b(R)}else n(l);c=r(l)}if(c!==null)var X=!0;else{var oe=r(u);oe!==null&&z(_,oe.startTime-R),X=!1}return X}finally{c=null,d=B,p=!1}}var w=!1,O=null,A=-1,E=5,j=-1;function T(){return!(e.unstable_now()-j<E)}function k(){if(O!==null){var C=e.unstable_now();j=C;var R=!0;try{R=O(!0,C)}finally{R?D():(w=!1,O=null)}}else w=!1}var D;if(typeof y=="function")D=function(){y(k)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,N=I.port2;I.port1.onmessage=k,D=function(){N.postMessage(null)}}else D=function(){g(k,0)};function L(C){O=C,w||(w=!0,D())}function z(C,R){A=g(function(){C(e.unstable_now())},R)}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(C){C.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,L(x))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(C){switch(d){case 1:case 2:case 3:var R=3;break;default:R=d}var B=d;d=R;try{return C()}finally{d=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,R){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var B=d;d=C;try{return R()}finally{d=B}},e.unstable_scheduleCallback=function(C,R,B){var V=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?V+B:V):B=V,C){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=B+W,C={id:f++,callback:R,priorityLevel:C,startTime:B,expirationTime:W,sortIndex:-1},B>V?(C.sortIndex=B,t(u,C),r(l)===null&&C===r(u)&&(h?(v(A),A=-1):h=!0,z(_,B-V))):(C.sortIndex=W,t(l,C),m||p||(m=!0,L(x))),C},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(C){var R=d;return function(){var B=d;d=R;try{return C.apply(this,arguments)}finally{d=B}}}})(lS);sS.exports=lS;var X2=sS.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Y2=$,Bt=X2;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 uS=new Set,Ja={};function Ai(e,t){ho(e,t),ho(e+"Capture",t)}function ho(e,t){for(Ja[e]=t,e=0;e<t.length;e++)uS.add(t[e])}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ap=Object.prototype.hasOwnProperty,Q2=/^[: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]*$/,wg={},Sg={};function Z2(e){return Ap.call(Sg,e)?!0:Ap.call(wg,e)?!1:Q2.test(e)?Sg[e]=!0:(wg[e]=!0,!1)}function J2(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ek(e,t,r,n){if(t===null||typeof t>"u"||J2(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 bt(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){at[e]=new bt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];at[t]=new bt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){at[e]=new bt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){at[e]=new bt(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){at[e]=new bt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){at[e]=new bt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){at[e]=new bt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){at[e]=new bt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){at[e]=new bt(e,5,!1,e.toLowerCase(),null,!1,!1)});var cv=/[\-:]([a-z])/g;function fv(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(cv,fv);at[t]=new bt(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(cv,fv);at[t]=new bt(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(cv,fv);at[t]=new bt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){at[e]=new bt(e,1,!1,e.toLowerCase(),null,!1,!1)});at.xlinkHref=new bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){at[e]=new bt(e,1,!1,e.toLowerCase(),null,!0,!0)});function dv(e,t,r,n){var i=at.hasOwnProperty(t)?at[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ek(t,r,i,n)&&(r=null),n||i===null?Z2(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var on=Y2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sl=Symbol.for("react.element"),zi=Symbol.for("react.portal"),Fi=Symbol.for("react.fragment"),pv=Symbol.for("react.strict_mode"),Pp=Symbol.for("react.profiler"),cS=Symbol.for("react.provider"),fS=Symbol.for("react.context"),hv=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),kp=Symbol.for("react.suspense_list"),yv=Symbol.for("react.memo"),pn=Symbol.for("react.lazy"),dS=Symbol.for("react.offscreen"),_g=Symbol.iterator;function fa(e){return e===null||typeof e!="object"?null:(e=_g&&e[_g]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Object.assign,gd;function Ta(e){if(gd===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);gd=t&&t[1]||""}return`
|
|
34
|
-
`+gd+e}var bd=!1;function xd(e,t){if(!e||bd)return"";bd=!0;var r=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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
-
`),o=n.stack.split(`
|
|
36
|
-
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
|
37
|
-
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{bd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ta(e):""}function tk(e){switch(e.tag){case 5:return Ta(e.type);case 16:return Ta("Lazy");case 13:return Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 2:case 15:return e=xd(e.type,!1),e;case 11:return e=xd(e.type.render,!1),e;case 1:return e=xd(e.type,!0),e;default:return""}}function jp(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 Fi:return"Fragment";case zi:return"Portal";case Pp:return"Profiler";case pv:return"StrictMode";case Ep:return"Suspense";case kp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fS:return(e.displayName||"Context")+".Consumer";case cS:return(e._context.displayName||"Context")+".Provider";case hv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yv:return t=e.displayName||null,t!==null?t:jp(e.type)||"Memo";case pn:t=e._payload,e=e._init;try{return jp(e(t))}catch{}}return null}function rk(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 jp(t);case 8:return t===pv?"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 Nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nk(e){var t=pS(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 i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _l(e){e._valueTracker||(e._valueTracker=nk(e))}function hS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=pS(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function xu(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 $p(e,t){var r=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Og(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Nn(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 yS(e,t){t=t.checked,t!=null&&dv(e,"checked",t,!1)}function Tp(e,t){yS(e,t);var r=Nn(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")?Cp(e,t.type,r):t.hasOwnProperty("defaultValue")&&Cp(e,t.type,Nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ag(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 Cp(e,t,r){(t!=="number"||xu(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ca=Array.isArray;function no(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Nn(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Np(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pg(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(U(92));if(Ca(r)){if(1<r.length)throw Error(U(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Nn(r)}}function vS(e,t){var r=Nn(t.value),n=Nn(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 Eg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mS(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 Mp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ol,gS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ol=Ol||document.createElement("div"),Ol.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ol.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function es(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ra={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},ik=["Webkit","ms","Moz","O"];Object.keys(Ra).forEach(function(e){ik.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ra[t]=Ra[e]})});function bS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ra.hasOwnProperty(e)&&Ra[e]?(""+t).trim():t+"px"}function xS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=bS(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var ok=Te({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 Ip(e,t){if(t){if(ok[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Dp(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 Rp=null;function vv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lp=null,io=null,oo=null;function kg(e){if(e=il(e)){if(typeof Lp!="function")throw Error(U(280));var t=e.stateNode;t&&(t=rf(t),Lp(e.stateNode,e.type,t))}}function wS(e){io?oo?oo.push(e):oo=[e]:io=e}function SS(){if(io){var e=io,t=oo;if(oo=io=null,kg(e),t)for(e=0;e<t.length;e++)kg(t[e])}}function _S(e,t){return e(t)}function OS(){}var wd=!1;function AS(e,t,r){if(wd)return e(t,r);wd=!0;try{return _S(e,t,r)}finally{wd=!1,(io!==null||oo!==null)&&(OS(),SS())}}function ts(e,t){var r=e.stateNode;if(r===null)return null;var n=rf(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(U(231,t,typeof r));return r}var Bp=!1;if(Yr)try{var da={};Object.defineProperty(da,"passive",{get:function(){Bp=!0}}),window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{Bp=!1}function ak(e,t,r,n,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(f){this.onError(f)}}var La=!1,wu=null,Su=!1,zp=null,sk={onError:function(e){La=!0,wu=e}};function lk(e,t,r,n,i,o,a,s,l){La=!1,wu=null,ak.apply(sk,arguments)}function uk(e,t,r,n,i,o,a,s,l){if(lk.apply(this,arguments),La){if(La){var u=wu;La=!1,wu=null}else throw Error(U(198));Su||(Su=!0,zp=u)}}function Pi(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 PS(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 jg(e){if(Pi(e)!==e)throw Error(U(188))}function ck(e){var t=e.alternate;if(!t){if(t=Pi(e),t===null)throw Error(U(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return jg(i),e;if(o===n)return jg(i),t;o=o.sibling}throw Error(U(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error(U(189))}}if(r.alternate!==n)throw Error(U(190))}if(r.tag!==3)throw Error(U(188));return r.stateNode.current===r?e:t}function ES(e){return e=ck(e),e!==null?kS(e):null}function kS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kS(e);if(t!==null)return t;e=e.sibling}return null}var jS=Bt.unstable_scheduleCallback,$g=Bt.unstable_cancelCallback,fk=Bt.unstable_shouldYield,dk=Bt.unstable_requestPaint,Re=Bt.unstable_now,pk=Bt.unstable_getCurrentPriorityLevel,mv=Bt.unstable_ImmediatePriority,$S=Bt.unstable_UserBlockingPriority,_u=Bt.unstable_NormalPriority,hk=Bt.unstable_LowPriority,TS=Bt.unstable_IdlePriority,Zc=null,Pr=null;function yk(e){if(Pr&&typeof Pr.onCommitFiberRoot=="function")try{Pr.onCommitFiberRoot(Zc,e,void 0,(e.current.flags&128)===128)}catch{}}var vr=Math.clz32?Math.clz32:gk,vk=Math.log,mk=Math.LN2;function gk(e){return e>>>=0,e===0?32:31-(vk(e)/mk|0)|0}var Al=64,Pl=4194304;function Na(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 Ou(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=Na(s):(o&=a,o!==0&&(n=Na(o)))}else a=r&~i,a!==0?n=Na(a):o!==0&&(n=Na(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&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-vr(t),i=1<<r,n|=e[r],t&=~i;return n}function bk(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 xk(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-vr(o),s=1<<a,l=i[a];l===-1?(!(s&r)||s&n)&&(i[a]=bk(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Fp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function CS(){var e=Al;return Al<<=1,!(Al&4194240)&&(Al=64),e}function Sd(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function rl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vr(t),e[t]=r}function wk(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 i=31-vr(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function gv(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-vr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var pe=0;function NS(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var MS,bv,IS,DS,RS,Up=!1,El=[],_n=null,On=null,An=null,rs=new Map,ns=new Map,vn=[],Sk="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 Tg(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":On=null;break;case"mouseover":case"mouseout":An=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function pa(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=il(t),t!==null&&bv(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _k(e,t,r,n,i){switch(t){case"focusin":return _n=pa(_n,e,t,r,n,i),!0;case"dragenter":return On=pa(On,e,t,r,n,i),!0;case"mouseover":return An=pa(An,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return rs.set(o,pa(rs.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,ns.set(o,pa(ns.get(o)||null,e,t,r,n,i)),!0}return!1}function LS(e){var t=ti(e.target);if(t!==null){var r=Pi(t);if(r!==null){if(t=r.tag,t===13){if(t=PS(r),t!==null){e.blockedOn=t,RS(e.priority,function(){IS(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 iu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Wp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Rp=n,r.target.dispatchEvent(n),Rp=null}else return t=il(r),t!==null&&bv(t),e.blockedOn=r,!1;t.shift()}return!0}function Cg(e,t,r){iu(e)&&r.delete(t)}function Ok(){Up=!1,_n!==null&&iu(_n)&&(_n=null),On!==null&&iu(On)&&(On=null),An!==null&&iu(An)&&(An=null),rs.forEach(Cg),ns.forEach(Cg)}function ha(e,t){e.blockedOn===t&&(e.blockedOn=null,Up||(Up=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,Ok)))}function is(e){function t(i){return ha(i,e)}if(0<El.length){ha(El[0],e);for(var r=1;r<El.length;r++){var n=El[r];n.blockedOn===e&&(n.blockedOn=null)}}for(_n!==null&&ha(_n,e),On!==null&&ha(On,e),An!==null&&ha(An,e),rs.forEach(t),ns.forEach(t),r=0;r<vn.length;r++)n=vn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<vn.length&&(r=vn[0],r.blockedOn===null);)LS(r),r.blockedOn===null&&vn.shift()}var ao=on.ReactCurrentBatchConfig,Au=!0;function Ak(e,t,r,n){var i=pe,o=ao.transition;ao.transition=null;try{pe=1,xv(e,t,r,n)}finally{pe=i,ao.transition=o}}function Pk(e,t,r,n){var i=pe,o=ao.transition;ao.transition=null;try{pe=4,xv(e,t,r,n)}finally{pe=i,ao.transition=o}}function xv(e,t,r,n){if(Au){var i=Wp(e,t,r,n);if(i===null)Cd(e,t,n,Pu,r),Tg(e,n);else if(_k(i,e,t,r,n))n.stopPropagation();else if(Tg(e,n),t&4&&-1<Sk.indexOf(e)){for(;i!==null;){var o=il(i);if(o!==null&&MS(o),o=Wp(e,t,r,n),o===null&&Cd(e,t,n,Pu,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Cd(e,t,n,null,r)}}var Pu=null;function Wp(e,t,r,n){if(Pu=null,e=vv(n),e=ti(e),e!==null)if(t=Pi(e),t===null)e=null;else if(r=t.tag,r===13){if(e=PS(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 Pu=e,null}function BS(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(pk()){case mv:return 1;case $S:return 4;case _u:case hk:return 16;case TS:return 536870912;default:return 16}default:return 16}}var xn=null,wv=null,ou=null;function zS(){if(ou)return ou;var e,t=wv,r=t.length,n,i="value"in xn?xn.value:xn.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return ou=i.slice(e,1<n?1-n:void 0)}function au(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 kl(){return!0}function Ng(){return!1}function Ut(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?kl:Ng,this.isPropagationStopped=Ng,this}return Te(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=kl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=kl)},persist:function(){},isPersistent:kl}),t}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sv=Ut(Xo),nl=Te({},Xo,{view:0,detail:0}),Ek=Ut(nl),_d,Od,ya,Jc=Te({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_v,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!==ya&&(ya&&e.type==="mousemove"?(_d=e.screenX-ya.screenX,Od=e.screenY-ya.screenY):Od=_d=0,ya=e),_d)},movementY:function(e){return"movementY"in e?e.movementY:Od}}),Mg=Ut(Jc),kk=Te({},Jc,{dataTransfer:0}),jk=Ut(kk),$k=Te({},nl,{relatedTarget:0}),Ad=Ut($k),Tk=Te({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),Ck=Ut(Tk),Nk=Te({},Xo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mk=Ut(Nk),Ik=Te({},Xo,{data:0}),Ig=Ut(Ik),Dk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rk={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"},Lk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Lk[e])?!!t[e]:!1}function _v(){return Bk}var zk=Te({},nl,{key:function(e){if(e.key){var t=Dk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=au(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_v,charCode:function(e){return e.type==="keypress"?au(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?au(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fk=Ut(zk),Uk=Te({},Jc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dg=Ut(Uk),Wk=Te({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_v}),Hk=Ut(Wk),Vk=Te({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kk=Ut(Vk),qk=Te({},Jc,{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}),Gk=Ut(qk),Xk=[9,13,27,32],Ov=Yr&&"CompositionEvent"in window,Ba=null;Yr&&"documentMode"in document&&(Ba=document.documentMode);var Yk=Yr&&"TextEvent"in window&&!Ba,FS=Yr&&(!Ov||Ba&&8<Ba&&11>=Ba),Rg=" ",Lg=!1;function US(e,t){switch(e){case"keyup":return Xk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ui=!1;function Qk(e,t){switch(e){case"compositionend":return WS(t);case"keypress":return t.which!==32?null:(Lg=!0,Rg);case"textInput":return e=t.data,e===Rg&&Lg?null:e;default:return null}}function Zk(e,t){if(Ui)return e==="compositionend"||!Ov&&US(e,t)?(e=zS(),ou=wv=xn=null,Ui=!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 FS&&t.locale!=="ko"?null:t.data;default:return null}}var Jk={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 Bg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jk[e.type]:t==="textarea"}function HS(e,t,r,n){wS(n),t=Eu(t,"onChange"),0<t.length&&(r=new Sv("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var za=null,os=null;function ej(e){t_(e,0)}function ef(e){var t=Vi(e);if(hS(t))return e}function tj(e,t){if(e==="change")return t}var VS=!1;if(Yr){var Pd;if(Yr){var Ed="oninput"in document;if(!Ed){var zg=document.createElement("div");zg.setAttribute("oninput","return;"),Ed=typeof zg.oninput=="function"}Pd=Ed}else Pd=!1;VS=Pd&&(!document.documentMode||9<document.documentMode)}function Fg(){za&&(za.detachEvent("onpropertychange",KS),os=za=null)}function KS(e){if(e.propertyName==="value"&&ef(os)){var t=[];HS(t,os,e,vv(e)),AS(ej,t)}}function rj(e,t,r){e==="focusin"?(Fg(),za=t,os=r,za.attachEvent("onpropertychange",KS)):e==="focusout"&&Fg()}function nj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ef(os)}function ij(e,t){if(e==="click")return ef(t)}function oj(e,t){if(e==="input"||e==="change")return ef(t)}function aj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var br=typeof Object.is=="function"?Object.is:aj;function as(e,t){if(br(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 i=r[n];if(!Ap.call(t,i)||!br(e[i],t[i]))return!1}return!0}function Ug(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wg(e,t){var r=Ug(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=Ug(r)}}function qS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function GS(){for(var e=window,t=xu();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=xu(e.document)}return t}function Av(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 sj(e){var t=GS(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&qS(r.ownerDocument.documentElement,r)){if(n!==null&&Av(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 i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=Wg(r,o);var a=Wg(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 lj=Yr&&"documentMode"in document&&11>=document.documentMode,Wi=null,Hp=null,Fa=null,Vp=!1;function Hg(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Vp||Wi==null||Wi!==xu(n)||(n=Wi,"selectionStart"in n&&Av(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}),Fa&&as(Fa,n)||(Fa=n,n=Eu(Hp,"onSelect"),0<n.length&&(t=new Sv("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Wi)))}function jl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Hi={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionend:jl("Transition","TransitionEnd")},kd={},XS={};Yr&&(XS=document.createElement("div").style,"AnimationEvent"in window||(delete Hi.animationend.animation,delete Hi.animationiteration.animation,delete Hi.animationstart.animation),"TransitionEvent"in window||delete Hi.transitionend.transition);function tf(e){if(kd[e])return kd[e];if(!Hi[e])return e;var t=Hi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in XS)return kd[e]=t[r];return e}var YS=tf("animationend"),QS=tf("animationiteration"),ZS=tf("animationstart"),JS=tf("transitionend"),e_=new Map,Vg="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 In(e,t){e_.set(e,t),Ai(t,[e])}for(var jd=0;jd<Vg.length;jd++){var $d=Vg[jd],uj=$d.toLowerCase(),cj=$d[0].toUpperCase()+$d.slice(1);In(uj,"on"+cj)}In(YS,"onAnimationEnd");In(QS,"onAnimationIteration");In(ZS,"onAnimationStart");In("dblclick","onDoubleClick");In("focusin","onFocus");In("focusout","onBlur");In(JS,"onTransitionEnd");ho("onMouseEnter",["mouseout","mouseover"]);ho("onMouseLeave",["mouseout","mouseover"]);ho("onPointerEnter",["pointerout","pointerover"]);ho("onPointerLeave",["pointerout","pointerover"]);Ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ai("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ma="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(" "),fj=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ma));function Kg(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,uk(n,t,void 0,e),e.currentTarget=null}function t_(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Kg(i,s,u),o=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Kg(i,s,u),o=l}}}if(Su)throw e=zp,Su=!1,zp=null,e}function we(e,t){var r=t[Yp];r===void 0&&(r=t[Yp]=new Set);var n=e+"__bubble";r.has(n)||(r_(t,e,2,!1),r.add(n))}function Td(e,t,r){var n=0;t&&(n|=4),r_(r,e,n,t)}var $l="_reactListening"+Math.random().toString(36).slice(2);function ss(e){if(!e[$l]){e[$l]=!0,uS.forEach(function(r){r!=="selectionchange"&&(fj.has(r)||Td(r,!1,e),Td(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$l]||(t[$l]=!0,Td("selectionchange",!1,t))}}function r_(e,t,r,n){switch(BS(t)){case 1:var i=Ak;break;case 4:i=Pk;break;default:i=xv}r=i.bind(null,t,r,e),i=void 0,!Bp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Cd(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=ti(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}AS(function(){var u=o,f=vv(r),c=[];e:{var d=e_.get(e);if(d!==void 0){var p=Sv,m=e;switch(e){case"keypress":if(au(r)===0)break e;case"keydown":case"keyup":p=Fk;break;case"focusin":m="focus",p=Ad;break;case"focusout":m="blur",p=Ad;break;case"beforeblur":case"afterblur":p=Ad;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":p=Mg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=jk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Hk;break;case YS:case QS:case ZS:p=Ck;break;case JS:p=Kk;break;case"scroll":p=Ek;break;case"wheel":p=Gk;break;case"copy":case"cut":case"paste":p=Mk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Dg}var h=(t&4)!==0,g=!h&&e==="scroll",v=h?d!==null?d+"Capture":null:d;h=[];for(var y=u,b;y!==null;){b=y;var _=b.stateNode;if(b.tag===5&&_!==null&&(b=_,v!==null&&(_=ts(y,v),_!=null&&h.push(ls(y,_,b)))),g)break;y=y.return}0<h.length&&(d=new p(d,m,null,r,f),c.push({event:d,listeners:h}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&r!==Rp&&(m=r.relatedTarget||r.fromElement)&&(ti(m)||m[Qr]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=r.relatedTarget||r.toElement,p=u,m=m?ti(m):null,m!==null&&(g=Pi(m),m!==g||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(h=Mg,_="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(h=Dg,_="onPointerLeave",v="onPointerEnter",y="pointer"),g=p==null?d:Vi(p),b=m==null?d:Vi(m),d=new h(_,y+"leave",p,r,f),d.target=g,d.relatedTarget=b,_=null,ti(f)===u&&(h=new h(v,y+"enter",m,r,f),h.target=b,h.relatedTarget=g,_=h),g=_,p&&m)t:{for(h=p,v=m,y=0,b=h;b;b=Ni(b))y++;for(b=0,_=v;_;_=Ni(_))b++;for(;0<y-b;)h=Ni(h),y--;for(;0<b-y;)v=Ni(v),b--;for(;y--;){if(h===v||v!==null&&h===v.alternate)break t;h=Ni(h),v=Ni(v)}h=null}else h=null;p!==null&&qg(c,d,p,h,!1),m!==null&&g!==null&&qg(c,g,m,h,!0)}}e:{if(d=u?Vi(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var x=tj;else if(Bg(d))if(VS)x=oj;else{x=nj;var w=rj}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=ij);if(x&&(x=x(e,u))){HS(c,x,r,f);break e}w&&w(e,d,u),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&Cp(d,"number",d.value)}switch(w=u?Vi(u):window,e){case"focusin":(Bg(w)||w.contentEditable==="true")&&(Wi=w,Hp=u,Fa=null);break;case"focusout":Fa=Hp=Wi=null;break;case"mousedown":Vp=!0;break;case"contextmenu":case"mouseup":case"dragend":Vp=!1,Hg(c,r,f);break;case"selectionchange":if(lj)break;case"keydown":case"keyup":Hg(c,r,f)}var O;if(Ov)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Ui?US(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(FS&&r.locale!=="ko"&&(Ui||A!=="onCompositionStart"?A==="onCompositionEnd"&&Ui&&(O=zS()):(xn=f,wv="value"in xn?xn.value:xn.textContent,Ui=!0)),w=Eu(u,A),0<w.length&&(A=new Ig(A,e,null,r,f),c.push({event:A,listeners:w}),O?A.data=O:(O=WS(r),O!==null&&(A.data=O)))),(O=Yk?Qk(e,r):Zk(e,r))&&(u=Eu(u,"onBeforeInput"),0<u.length&&(f=new Ig("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:u}),f.data=O))}t_(c,t)})}function ls(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Eu(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ts(e,r),o!=null&&n.unshift(ls(e,o,i)),o=ts(e,t),o!=null&&n.push(ls(e,o,i))),e=e.return}return n}function Ni(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function qg(e,t,r,n,i){for(var o=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=ts(r,o),l!=null&&a.unshift(ls(r,l,s))):i||(l=ts(r,o),l!=null&&a.push(ls(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var dj=/\r\n?/g,pj=/\u0000|\uFFFD/g;function Gg(e){return(typeof e=="string"?e:""+e).replace(dj,`
|
|
38
|
-
`).replace(pj,"")}function Tl(e,t,r){if(t=Gg(t),Gg(e)!==t&&r)throw Error(U(425))}function ku(){}var Kp=null,qp=null;function Gp(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 Xp=typeof setTimeout=="function"?setTimeout:void 0,hj=typeof clearTimeout=="function"?clearTimeout:void 0,Xg=typeof Promise=="function"?Promise:void 0,yj=typeof queueMicrotask=="function"?queueMicrotask:typeof Xg<"u"?function(e){return Xg.resolve(null).then(e).catch(vj)}:Xp;function vj(e){setTimeout(function(){throw e})}function Nd(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),is(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);is(t)}function Pn(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 Yg(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 Yo=Math.random().toString(36).slice(2),_r="__reactFiber$"+Yo,us="__reactProps$"+Yo,Qr="__reactContainer$"+Yo,Yp="__reactEvents$"+Yo,mj="__reactListeners$"+Yo,gj="__reactHandles$"+Yo;function ti(e){var t=e[_r];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Qr]||r[_r]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Yg(e);e!==null;){if(r=e[_r])return r;e=Yg(e)}return t}e=r,r=e.parentNode}return null}function il(e){return e=e[_r]||e[Qr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function rf(e){return e[us]||null}var Qp=[],Ki=-1;function Dn(e){return{current:e}}function Oe(e){0>Ki||(e.current=Qp[Ki],Qp[Ki]=null,Ki--)}function be(e,t){Ki++,Qp[Ki]=e.current,e.current=t}var Mn={},dt=Dn(Mn),At=Dn(!1),di=Mn;function yo(e,t){var r=e.type.contextTypes;if(!r)return Mn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pt(e){return e=e.childContextTypes,e!=null}function ju(){Oe(At),Oe(dt)}function Qg(e,t,r){if(dt.current!==Mn)throw Error(U(168));be(dt,t),be(At,r)}function n_(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(U(108,rk(e)||"Unknown",i));return Te({},r,n)}function $u(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,di=dt.current,be(dt,e),be(At,At.current),!0}function Zg(e,t,r){var n=e.stateNode;if(!n)throw Error(U(169));r?(e=n_(e,t,di),n.__reactInternalMemoizedMergedChildContext=e,Oe(At),Oe(dt),be(dt,e)):Oe(At),be(At,r)}var zr=null,nf=!1,Md=!1;function i_(e){zr===null?zr=[e]:zr.push(e)}function bj(e){nf=!0,i_(e)}function Rn(){if(!Md&&zr!==null){Md=!0;var e=0,t=pe;try{var r=zr;for(pe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}zr=null,nf=!1}catch(i){throw zr!==null&&(zr=zr.slice(e+1)),jS(mv,Rn),i}finally{pe=t,Md=!1}}return null}var qi=[],Gi=0,Tu=null,Cu=0,qt=[],Gt=0,pi=null,Fr=1,Ur="";function Gn(e,t){qi[Gi++]=Cu,qi[Gi++]=Tu,Tu=e,Cu=t}function o_(e,t,r){qt[Gt++]=Fr,qt[Gt++]=Ur,qt[Gt++]=pi,pi=e;var n=Fr;e=Ur;var i=32-vr(n)-1;n&=~(1<<i),r+=1;var o=32-vr(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Fr=1<<32-vr(t)+i|r<<i|n,Ur=o+e}else Fr=1<<o|r<<i|n,Ur=e}function Pv(e){e.return!==null&&(Gn(e,1),o_(e,1,0))}function Ev(e){for(;e===Tu;)Tu=qi[--Gi],qi[Gi]=null,Cu=qi[--Gi],qi[Gi]=null;for(;e===pi;)pi=qt[--Gt],qt[Gt]=null,Ur=qt[--Gt],qt[Gt]=null,Fr=qt[--Gt],qt[Gt]=null}var Dt=null,It=null,Ee=!1,pr=null;function a_(e,t){var r=Qt(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 Jg(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,Dt=e,It=Pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,It=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=pi!==null?{id:Fr,overflow:Ur}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Qt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Dt=e,It=null,!0):!1;default:return!1}}function Zp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Jp(e){if(Ee){var t=It;if(t){var r=t;if(!Jg(e,t)){if(Zp(e))throw Error(U(418));t=Pn(r.nextSibling);var n=Dt;t&&Jg(e,t)?a_(n,r):(e.flags=e.flags&-4097|2,Ee=!1,Dt=e)}}else{if(Zp(e))throw Error(U(418));e.flags=e.flags&-4097|2,Ee=!1,Dt=e}}}function e0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function Cl(e){if(e!==Dt)return!1;if(!Ee)return e0(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gp(e.type,e.memoizedProps)),t&&(t=It)){if(Zp(e))throw s_(),Error(U(418));for(;t;)a_(e,t),t=Pn(t.nextSibling)}if(e0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){It=Pn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}It=null}}else It=Dt?Pn(e.stateNode.nextSibling):null;return!0}function s_(){for(var e=It;e;)e=Pn(e.nextSibling)}function vo(){It=Dt=null,Ee=!1}function kv(e){pr===null?pr=[e]:pr.push(e)}var xj=on.ReactCurrentBatchConfig;function va(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(U(309));var n=r.stateNode}if(!n)throw Error(U(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(U(284));if(!r._owner)throw Error(U(290,e))}return e}function Nl(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function t0(e){var t=e._init;return t(e._payload)}function l_(e){function t(v,y){if(e){var b=v.deletions;b===null?(v.deletions=[y],v.flags|=16):b.push(y)}}function r(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function n(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function i(v,y){return v=$n(v,y),v.index=0,v.sibling=null,v}function o(v,y,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<y?(v.flags|=2,y):b):(v.flags|=2,y)):(v.flags|=1048576,y)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,y,b,_){return y===null||y.tag!==6?(y=Fd(b,v.mode,_),y.return=v,y):(y=i(y,b),y.return=v,y)}function l(v,y,b,_){var x=b.type;return x===Fi?f(v,y,b.props.children,_,b.key):y!==null&&(y.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===pn&&t0(x)===y.type)?(_=i(y,b.props),_.ref=va(v,y,b),_.return=v,_):(_=pu(b.type,b.key,b.props,null,v.mode,_),_.ref=va(v,y,b),_.return=v,_)}function u(v,y,b,_){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Ud(b,v.mode,_),y.return=v,y):(y=i(y,b.children||[]),y.return=v,y)}function f(v,y,b,_,x){return y===null||y.tag!==7?(y=ui(b,v.mode,_,x),y.return=v,y):(y=i(y,b),y.return=v,y)}function c(v,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Fd(""+y,v.mode,b),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Sl:return b=pu(y.type,y.key,y.props,null,v.mode,b),b.ref=va(v,null,y),b.return=v,b;case zi:return y=Ud(y,v.mode,b),y.return=v,y;case pn:var _=y._init;return c(v,_(y._payload),b)}if(Ca(y)||fa(y))return y=ui(y,v.mode,b,null),y.return=v,y;Nl(v,y)}return null}function d(v,y,b,_){var x=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return x!==null?null:s(v,y,""+b,_);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Sl:return b.key===x?l(v,y,b,_):null;case zi:return b.key===x?u(v,y,b,_):null;case pn:return x=b._init,d(v,y,x(b._payload),_)}if(Ca(b)||fa(b))return x!==null?null:f(v,y,b,_,null);Nl(v,b)}return null}function p(v,y,b,_,x){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(b)||null,s(y,v,""+_,x);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Sl:return v=v.get(_.key===null?b:_.key)||null,l(y,v,_,x);case zi:return v=v.get(_.key===null?b:_.key)||null,u(y,v,_,x);case pn:var w=_._init;return p(v,y,b,w(_._payload),x)}if(Ca(_)||fa(_))return v=v.get(b)||null,f(y,v,_,x,null);Nl(y,_)}return null}function m(v,y,b,_){for(var x=null,w=null,O=y,A=y=0,E=null;O!==null&&A<b.length;A++){O.index>A?(E=O,O=null):E=O.sibling;var j=d(v,O,b[A],_);if(j===null){O===null&&(O=E);break}e&&O&&j.alternate===null&&t(v,O),y=o(j,y,A),w===null?x=j:w.sibling=j,w=j,O=E}if(A===b.length)return r(v,O),Ee&&Gn(v,A),x;if(O===null){for(;A<b.length;A++)O=c(v,b[A],_),O!==null&&(y=o(O,y,A),w===null?x=O:w.sibling=O,w=O);return Ee&&Gn(v,A),x}for(O=n(v,O);A<b.length;A++)E=p(O,v,A,b[A],_),E!==null&&(e&&E.alternate!==null&&O.delete(E.key===null?A:E.key),y=o(E,y,A),w===null?x=E:w.sibling=E,w=E);return e&&O.forEach(function(T){return t(v,T)}),Ee&&Gn(v,A),x}function h(v,y,b,_){var x=fa(b);if(typeof x!="function")throw Error(U(150));if(b=x.call(b),b==null)throw Error(U(151));for(var w=x=null,O=y,A=y=0,E=null,j=b.next();O!==null&&!j.done;A++,j=b.next()){O.index>A?(E=O,O=null):E=O.sibling;var T=d(v,O,j.value,_);if(T===null){O===null&&(O=E);break}e&&O&&T.alternate===null&&t(v,O),y=o(T,y,A),w===null?x=T:w.sibling=T,w=T,O=E}if(j.done)return r(v,O),Ee&&Gn(v,A),x;if(O===null){for(;!j.done;A++,j=b.next())j=c(v,j.value,_),j!==null&&(y=o(j,y,A),w===null?x=j:w.sibling=j,w=j);return Ee&&Gn(v,A),x}for(O=n(v,O);!j.done;A++,j=b.next())j=p(O,v,A,j.value,_),j!==null&&(e&&j.alternate!==null&&O.delete(j.key===null?A:j.key),y=o(j,y,A),w===null?x=j:w.sibling=j,w=j);return e&&O.forEach(function(k){return t(v,k)}),Ee&&Gn(v,A),x}function g(v,y,b,_){if(typeof b=="object"&&b!==null&&b.type===Fi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Sl:e:{for(var x=b.key,w=y;w!==null;){if(w.key===x){if(x=b.type,x===Fi){if(w.tag===7){r(v,w.sibling),y=i(w,b.props.children),y.return=v,v=y;break e}}else if(w.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===pn&&t0(x)===w.type){r(v,w.sibling),y=i(w,b.props),y.ref=va(v,w,b),y.return=v,v=y;break e}r(v,w);break}else t(v,w);w=w.sibling}b.type===Fi?(y=ui(b.props.children,v.mode,_,b.key),y.return=v,v=y):(_=pu(b.type,b.key,b.props,null,v.mode,_),_.ref=va(v,y,b),_.return=v,v=_)}return a(v);case zi:e:{for(w=b.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){r(v,y.sibling),y=i(y,b.children||[]),y.return=v,v=y;break e}else{r(v,y);break}else t(v,y);y=y.sibling}y=Ud(b,v.mode,_),y.return=v,v=y}return a(v);case pn:return w=b._init,g(v,y,w(b._payload),_)}if(Ca(b))return m(v,y,b,_);if(fa(b))return h(v,y,b,_);Nl(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(r(v,y.sibling),y=i(y,b),y.return=v,v=y):(r(v,y),y=Fd(b,v.mode,_),y.return=v,v=y),a(v)):r(v,y)}return g}var mo=l_(!0),u_=l_(!1),Nu=Dn(null),Mu=null,Xi=null,jv=null;function $v(){jv=Xi=Mu=null}function Tv(e){var t=Nu.current;Oe(Nu),e._currentValue=t}function eh(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 so(e,t){Mu=e,jv=Xi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_t=!0),e.firstContext=null)}function er(e){var t=e._currentValue;if(jv!==e)if(e={context:e,memoizedValue:t,next:null},Xi===null){if(Mu===null)throw Error(U(308));Xi=e,Mu.dependencies={lanes:0,firstContext:e}}else Xi=Xi.next=e;return t}var ri=null;function Cv(e){ri===null?ri=[e]:ri.push(e)}function c_(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Cv(t)):(r.next=i.next,i.next=r),t.interleaved=r,Zr(e,n)}function Zr(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 hn=!1;function Nv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f_(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 Kr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function En(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,se&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Zr(e,r)}return i=n.interleaved,i===null?(t.next=t,Cv(n)):(t.next=i.next,i.next=t),n.interleaved=t,Zr(e,r)}function su(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,gv(e,r)}}function r0(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 Iu(e,t,r,n){var i=e.updateQueue;hn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var c=i.baseState;a=0,f=u=l=null,s=o;do{var d=s.lane,p=s.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(d=t,p=r,h.tag){case 1:if(m=h.payload,typeof m=="function"){c=m.call(p,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,d=typeof m=="function"?m.call(p,c,d):m,d==null)break e;c=Te({},c,d);break e;case 2:hn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);yi|=a,e.lanes=a,e.memoizedState=c}}function n0(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(U(191,i));i.call(n)}}}var ol={},Er=Dn(ol),cs=Dn(ol),fs=Dn(ol);function ni(e){if(e===ol)throw Error(U(174));return e}function Mv(e,t){switch(be(fs,t),be(cs,e),be(Er,ol),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mp(t,e)}Oe(Er),be(Er,t)}function go(){Oe(Er),Oe(cs),Oe(fs)}function d_(e){ni(fs.current);var t=ni(Er.current),r=Mp(t,e.type);t!==r&&(be(cs,e),be(Er,r))}function Iv(e){cs.current===e&&(Oe(Er),Oe(cs))}var je=Dn(0);function Du(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 Id=[];function Dv(){for(var e=0;e<Id.length;e++)Id[e]._workInProgressVersionPrimary=null;Id.length=0}var lu=on.ReactCurrentDispatcher,Dd=on.ReactCurrentBatchConfig,hi=0,$e=null,Ke=null,Je=null,Ru=!1,Ua=!1,ds=0,wj=0;function st(){throw Error(U(321))}function Rv(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!br(e[r],t[r]))return!1;return!0}function Lv(e,t,r,n,i,o){if(hi=o,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lu.current=e===null||e.memoizedState===null?Aj:Pj,e=r(n,i),Ua){o=0;do{if(Ua=!1,ds=0,25<=o)throw Error(U(301));o+=1,Je=Ke=null,t.updateQueue=null,lu.current=Ej,e=r(n,i)}while(Ua)}if(lu.current=Lu,t=Ke!==null&&Ke.next!==null,hi=0,Je=Ke=$e=null,Ru=!1,t)throw Error(U(300));return e}function Bv(){var e=ds!==0;return ds=0,e}function Sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?$e.memoizedState=Je=e:Je=Je.next=e,Je}function tr(){if(Ke===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=Je===null?$e.memoizedState:Je.next;if(t!==null)Je=t,Ke=e;else{if(e===null)throw Error(U(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Je===null?$e.memoizedState=Je=e:Je=Je.next=e}return Je}function ps(e,t){return typeof t=="function"?t(e):t}function Rd(e){var t=tr(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var n=Ke,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var s=a=null,l=null,u=o;do{var f=u.lane;if((hi&f)===f)l!==null&&(l=l.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 c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=c,a=n):l=l.next=c,$e.lanes|=f,yi|=f}u=u.next}while(u!==null&&u!==o);l===null?a=n:l.next=s,br(n,t.memoizedState)||(_t=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,$e.lanes|=o,yi|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ld(e){var t=tr(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);br(o,t.memoizedState)||(_t=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function p_(){}function h_(e,t){var r=$e,n=tr(),i=t(),o=!br(n.memoizedState,i);if(o&&(n.memoizedState=i,_t=!0),n=n.queue,zv(m_.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Je!==null&&Je.memoizedState.tag&1){if(r.flags|=2048,hs(9,v_.bind(null,r,n,i,t),void 0,null),tt===null)throw Error(U(349));hi&30||y_(r,t,i)}return i}function y_(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function v_(e,t,r,n){t.value=r,t.getSnapshot=n,g_(t)&&b_(e)}function m_(e,t,r){return r(function(){g_(t)&&b_(e)})}function g_(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!br(e,r)}catch{return!0}}function b_(e){var t=Zr(e,1);t!==null&&mr(t,e,1,-1)}function i0(e){var t=Sr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:e},t.queue=e,e=e.dispatch=Oj.bind(null,$e,e),[t.memoizedState,e]}function hs(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.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 x_(){return tr().memoizedState}function uu(e,t,r,n){var i=Sr();$e.flags|=e,i.memoizedState=hs(1|t,r,void 0,n===void 0?null:n)}function of(e,t,r,n){var i=tr();n=n===void 0?null:n;var o=void 0;if(Ke!==null){var a=Ke.memoizedState;if(o=a.destroy,n!==null&&Rv(n,a.deps)){i.memoizedState=hs(t,r,o,n);return}}$e.flags|=e,i.memoizedState=hs(1|t,r,o,n)}function o0(e,t){return uu(8390656,8,e,t)}function zv(e,t){return of(2048,8,e,t)}function w_(e,t){return of(4,2,e,t)}function S_(e,t){return of(4,4,e,t)}function __(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 O_(e,t,r){return r=r!=null?r.concat([e]):null,of(4,4,__.bind(null,t,e),r)}function Fv(){}function A_(e,t){var r=tr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Rv(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function P_(e,t){var r=tr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Rv(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function E_(e,t,r){return hi&21?(br(r,t)||(r=CS(),$e.lanes|=r,yi|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_t=!0),e.memoizedState=r)}function Sj(e,t){var r=pe;pe=r!==0&&4>r?r:4,e(!0);var n=Dd.transition;Dd.transition={};try{e(!1),t()}finally{pe=r,Dd.transition=n}}function k_(){return tr().memoizedState}function _j(e,t,r){var n=jn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},j_(e))$_(t,r);else if(r=c_(e,t,r,n),r!==null){var i=mt();mr(r,e,n,i),T_(r,t,n)}}function Oj(e,t,r){var n=jn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(j_(e))$_(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,br(s,a)){var l=t.interleaved;l===null?(i.next=i,Cv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=c_(e,t,i,n),r!==null&&(i=mt(),mr(r,e,n,i),T_(r,t,n))}}function j_(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function $_(e,t){Ua=Ru=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function T_(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,gv(e,r)}}var Lu={readContext:er,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},Aj={readContext:er,useCallback:function(e,t){return Sr().memoizedState=[e,t===void 0?null:t],e},useContext:er,useEffect:o0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,uu(4194308,4,__.bind(null,t,e),r)},useLayoutEffect:function(e,t){return uu(4194308,4,e,t)},useInsertionEffect:function(e,t){return uu(4,2,e,t)},useMemo:function(e,t){var r=Sr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Sr();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=_j.bind(null,$e,e),[n.memoizedState,e]},useRef:function(e){var t=Sr();return e={current:e},t.memoizedState=e},useState:i0,useDebugValue:Fv,useDeferredValue:function(e){return Sr().memoizedState=e},useTransition:function(){var e=i0(!1),t=e[0];return e=Sj.bind(null,e[1]),Sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=$e,i=Sr();if(Ee){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),tt===null)throw Error(U(349));hi&30||y_(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,o0(m_.bind(null,n,o,e),[e]),n.flags|=2048,hs(9,v_.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Sr(),t=tt.identifierPrefix;if(Ee){var r=Ur,n=Fr;r=(n&~(1<<32-vr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ds++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=wj++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Pj={readContext:er,useCallback:A_,useContext:er,useEffect:zv,useImperativeHandle:O_,useInsertionEffect:w_,useLayoutEffect:S_,useMemo:P_,useReducer:Rd,useRef:x_,useState:function(){return Rd(ps)},useDebugValue:Fv,useDeferredValue:function(e){var t=tr();return E_(t,Ke.memoizedState,e)},useTransition:function(){var e=Rd(ps)[0],t=tr().memoizedState;return[e,t]},useMutableSource:p_,useSyncExternalStore:h_,useId:k_,unstable_isNewReconciler:!1},Ej={readContext:er,useCallback:A_,useContext:er,useEffect:zv,useImperativeHandle:O_,useInsertionEffect:w_,useLayoutEffect:S_,useMemo:P_,useReducer:Ld,useRef:x_,useState:function(){return Ld(ps)},useDebugValue:Fv,useDeferredValue:function(e){var t=tr();return Ke===null?t.memoizedState=e:E_(t,Ke.memoizedState,e)},useTransition:function(){var e=Ld(ps)[0],t=tr().memoizedState;return[e,t]},useMutableSource:p_,useSyncExternalStore:h_,useId:k_,unstable_isNewReconciler:!1};function sr(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function th(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Te({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var af={isMounted:function(e){return(e=e._reactInternals)?Pi(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=mt(),i=jn(e),o=Kr(n,i);o.payload=t,r!=null&&(o.callback=r),t=En(e,o,i),t!==null&&(mr(t,e,i,n),su(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=mt(),i=jn(e),o=Kr(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=En(e,o,i),t!==null&&(mr(t,e,i,n),su(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=mt(),n=jn(e),i=Kr(r,n);i.tag=2,t!=null&&(i.callback=t),t=En(e,i,n),t!==null&&(mr(t,e,n,r),su(t,e,n))}};function a0(e,t,r,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):t.prototype&&t.prototype.isPureReactComponent?!as(r,n)||!as(i,o):!0}function C_(e,t,r){var n=!1,i=Mn,o=t.contextType;return typeof o=="object"&&o!==null?o=er(o):(i=Pt(t)?di:dt.current,n=t.contextTypes,o=(n=n!=null)?yo(e,i):Mn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=af,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function s0(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&&af.enqueueReplaceState(t,t.state,null)}function rh(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Nv(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=er(o):(o=Pt(t)?di:dt.current,i.context=yo(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(th(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&af.enqueueReplaceState(i,i.state,null),Iu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bo(e,t){try{var r="",n=t;do r+=tk(n),n=n.return;while(n);var i=r}catch(o){i=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Bd(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function nh(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var kj=typeof WeakMap=="function"?WeakMap:Map;function N_(e,t,r){r=Kr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){zu||(zu=!0,ph=n),nh(e,t)},r}function M_(e,t,r){r=Kr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){nh(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){nh(e,t),typeof n!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function l0(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new kj;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Uj.bind(null,e,t,r),t.then(e,e))}function u0(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 c0(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=Kr(-1,1),t.tag=2,En(r,t,1))),r.lanes|=1),e)}var jj=on.ReactCurrentOwner,_t=!1;function pt(e,t,r,n){t.child=e===null?u_(t,null,r,n):mo(t,e.child,r,n)}function f0(e,t,r,n,i){r=r.render;var o=t.ref;return so(t,i),n=Lv(e,t,r,n,o,i),r=Bv(),e!==null&&!_t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Jr(e,t,i)):(Ee&&r&&Pv(t),t.flags|=1,pt(e,t,n,i),t.child)}function d0(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!Xv(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,I_(e,t,o,n,i)):(e=pu(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:as,r(a,n)&&e.ref===t.ref)return Jr(e,t,i)}return t.flags|=1,e=$n(o,n),e.ref=t.ref,e.return=t,t.child=e}function I_(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(as(o,n)&&e.ref===t.ref)if(_t=!1,t.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(_t=!0);else return t.lanes=e.lanes,Jr(e,t,i)}return ih(e,t,r,n,i)}function D_(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(Qi,Tt),Tt|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,be(Qi,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,be(Qi,Tt),Tt|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,be(Qi,Tt),Tt|=n;return pt(e,t,i,r),t.child}function R_(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ih(e,t,r,n,i){var o=Pt(r)?di:dt.current;return o=yo(t,o),so(t,i),r=Lv(e,t,r,n,o,i),n=Bv(),e!==null&&!_t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Jr(e,t,i)):(Ee&&n&&Pv(t),t.flags|=1,pt(e,t,r,i),t.child)}function p0(e,t,r,n,i){if(Pt(r)){var o=!0;$u(t)}else o=!1;if(so(t,i),t.stateNode===null)cu(e,t),C_(t,r,n),rh(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=er(u):(u=Pt(r)?di:dt.current,u=yo(t,u));var f=r.getDerivedStateFromProps,c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==u)&&s0(t,a,n,u),hn=!1;var d=t.memoizedState;a.state=d,Iu(t,n,a,i),l=t.memoizedState,s!==n||d!==l||At.current||hn?(typeof f=="function"&&(th(t,r,f,n),l=t.memoizedState),(s=hn||a0(t,r,s,n,d,l,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,f_(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:sr(t.type,s),a.props=u,c=t.pendingProps,d=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=er(l):(l=Pt(r)?di:dt.current,l=yo(t,l));var p=r.getDerivedStateFromProps;(f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==c||d!==l)&&s0(t,a,n,l),hn=!1,d=t.memoizedState,a.state=d,Iu(t,n,a,i);var m=t.memoizedState;s!==c||d!==m||At.current||hn?(typeof p=="function"&&(th(t,r,p,n),m=t.memoizedState),(u=hn||a0(t,r,u,n,d,m,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),a.props=n,a.state=m,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return oh(e,t,r,n,o,i)}function oh(e,t,r,n,i,o){R_(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&Zg(t,r,!1),Jr(e,t,o);n=t.stateNode,jj.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=mo(t,e.child,null,o),t.child=mo(t,null,s,o)):pt(e,t,s,o),t.memoizedState=n.state,i&&Zg(t,r,!0),t.child}function L_(e){var t=e.stateNode;t.pendingContext?Qg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qg(e,t.context,!1),Mv(e,t.containerInfo)}function h0(e,t,r,n,i){return vo(),kv(i),t.flags|=256,pt(e,t,r,n),t.child}var ah={dehydrated:null,treeContext:null,retryLane:0};function sh(e){return{baseLanes:e,cachePool:null,transitions:null}}function B_(e,t,r){var n=t.pendingProps,i=je.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),be(je,i&1),e===null)return Jp(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):(a=n.children,e=n.fallback,o?(n=t.mode,o=t.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=uf(a,n,0,null),e=ui(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=sh(r),t.memoizedState=ah,e):Uv(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return $j(e,t,a,n,s,i,r);if(o){o=n.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=$n(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=$n(s,o):(o=ui(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,a=e.child.memoizedState,a=a===null?sh(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~r,t.memoizedState=ah,n}return o=e.child,e=o.sibling,n=$n(o,{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 Uv(e,t){return t=uf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ml(e,t,r,n){return n!==null&&kv(n),mo(t,e.child,null,r),e=Uv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $j(e,t,r,n,i,o,a){if(r)return t.flags&256?(t.flags&=-257,n=Bd(Error(U(422))),Ml(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=uf({mode:"visible",children:n.children},i,0,null),o=ui(o,i,a,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&mo(t,e.child,null,a),t.child.memoizedState=sh(a),t.memoizedState=ah,o);if(!(t.mode&1))return Ml(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(U(419)),n=Bd(o,n,void 0),Ml(e,t,a,n)}if(s=(a&e.childLanes)!==0,_t||s){if(n=tt,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Zr(e,i),mr(n,e,i,-1))}return Gv(),n=Bd(Error(U(421))),Ml(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Wj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,It=Pn(i.nextSibling),Dt=t,Ee=!0,pr=null,e!==null&&(qt[Gt++]=Fr,qt[Gt++]=Ur,qt[Gt++]=pi,Fr=e.id,Ur=e.overflow,pi=t),t=Uv(t,n.children),t.flags|=4096,t)}function y0(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),eh(e.return,t,r)}function zd(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function z_(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(pt(e,t,n.children,r),n=je.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&&y0(e,r,t);else if(e.tag===19)y0(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(be(je,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Du(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),zd(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Du(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}zd(t,!0,r,null,o);break;case"together":zd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),yi|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,r=$n(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=$n(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Tj(e,t,r){switch(t.tag){case 3:L_(t),vo();break;case 5:d_(t);break;case 1:Pt(t.type)&&$u(t);break;case 4:Mv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;be(Nu,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(be(je,je.current&1),t.flags|=128,null):r&t.child.childLanes?B_(e,t,r):(be(je,je.current&1),e=Jr(e,t,r),e!==null?e.sibling:null);be(je,je.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return z_(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),be(je,je.current),n)break;return null;case 22:case 23:return t.lanes=0,D_(e,t,r)}return Jr(e,t,r)}var F_,lh,U_,W_;F_=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}};lh=function(){};U_=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ni(Er.current);var o=null;switch(r){case"input":i=$p(e,i),n=$p(e,n),o=[];break;case"select":i=Te({},i,{value:void 0}),n=Te({},n,{value:void 0}),o=[];break;case"textarea":i=Np(e,i),n=Np(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ku)}Ip(r,n);var a;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ja.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ja.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&we("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};W_=function(e,t,r,n){r!==n&&(t.flags|=4)};function ma(e,t){if(!Ee)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 lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Cj(e,t,r){var n=t.pendingProps;switch(Ev(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return Pt(t.type)&&ju(),lt(t),null;case 3:return n=t.stateNode,go(),Oe(At),Oe(dt),Dv(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Cl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pr!==null&&(vh(pr),pr=null))),lh(e,t),lt(t),null;case 5:Iv(t);var i=ni(fs.current);if(r=t.type,e!==null&&t.stateNode!=null)U_(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(U(166));return lt(t),null}if(e=ni(Er.current),Cl(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[_r]=t,n[us]=o,e=(t.mode&1)!==0,r){case"dialog":we("cancel",n),we("close",n);break;case"iframe":case"object":case"embed":we("load",n);break;case"video":case"audio":for(i=0;i<Ma.length;i++)we(Ma[i],n);break;case"source":we("error",n);break;case"img":case"image":case"link":we("error",n),we("load",n);break;case"details":we("toggle",n);break;case"input":Og(n,o),we("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},we("invalid",n);break;case"textarea":Pg(n,o),we("invalid",n)}Ip(r,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?n.textContent!==s&&(o.suppressHydrationWarning!==!0&&Tl(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Tl(n.textContent,s,e),i=["children",""+s]):Ja.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&we("scroll",n)}switch(r){case"input":_l(n),Ag(n,o,!0);break;case"textarea":_l(n),Eg(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=ku)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[_r]=t,e[us]=n,F_(e,t,!1,!1),t.stateNode=e;e:{switch(a=Dp(r,n),r){case"dialog":we("cancel",e),we("close",e),i=n;break;case"iframe":case"object":case"embed":we("load",e),i=n;break;case"video":case"audio":for(i=0;i<Ma.length;i++)we(Ma[i],e);i=n;break;case"source":we("error",e),i=n;break;case"img":case"image":case"link":we("error",e),we("load",e),i=n;break;case"details":we("toggle",e),i=n;break;case"input":Og(e,n),i=$p(e,n),we("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Te({},n,{value:void 0}),we("invalid",e);break;case"textarea":Pg(e,n),i=Np(e,n),we("invalid",e);break;default:i=n}Ip(r,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?xS(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&gS(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&es(e,l):typeof l=="number"&&es(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ja.hasOwnProperty(o)?l!=null&&o==="onScroll"&&we("scroll",e):l!=null&&dv(e,o,l,a))}switch(r){case"input":_l(e),Ag(e,n,!1);break;case"textarea":_l(e),Eg(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Nn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?no(e,!!n.multiple,o,!1):n.defaultValue!=null&&no(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ku)}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 lt(t),null;case 6:if(e&&t.stateNode!=null)W_(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(U(166));if(r=ni(fs.current),ni(Er.current),Cl(t)){if(n=t.stateNode,r=t.memoizedProps,n[_r]=t,(o=n.nodeValue!==r)&&(e=Dt,e!==null))switch(e.tag){case 3:Tl(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Tl(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[_r]=t,t.stateNode=n}return lt(t),null;case 13:if(Oe(je),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&It!==null&&t.mode&1&&!(t.flags&128))s_(),vo(),t.flags|=98560,o=!1;else if(o=Cl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(U(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(U(317));o[_r]=t}else vo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;lt(t),o=!1}else pr!==null&&(vh(pr),pr=null),o=!0;if(!o)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||je.current&1?Xe===0&&(Xe=3):Gv())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return go(),lh(e,t),e===null&&ss(t.stateNode.containerInfo),lt(t),null;case 10:return Tv(t.type._context),lt(t),null;case 17:return Pt(t.type)&&ju(),lt(t),null;case 19:if(Oe(je),o=t.memoizedState,o===null)return lt(t),null;if(n=(t.flags&128)!==0,a=o.rendering,a===null)if(n)ma(o,!1);else{if(Xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Du(e),a!==null){for(t.flags|=128,ma(o,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return be(je,je.current&1|2),t.child}e=e.sibling}o.tail!==null&&Re()>xo&&(t.flags|=128,n=!0,ma(o,!1),t.lanes=4194304)}else{if(!n)if(e=Du(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ma(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ee)return lt(t),null}else 2*Re()-o.renderingStartTime>xo&&r!==1073741824&&(t.flags|=128,n=!0,ma(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Re(),t.sibling=null,r=je.current,be(je,n?r&1|2:r&1),t):(lt(t),null);case 22:case 23:return qv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Tt&1073741824&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function Nj(e,t){switch(Ev(t),t.tag){case 1:return Pt(t.type)&&ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return go(),Oe(At),Oe(dt),Dv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Iv(t),null;case 13:if(Oe(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(je),null;case 4:return go(),null;case 10:return Tv(t.type._context),null;case 22:case 23:return qv(),null;case 24:return null;default:return null}}var Il=!1,ct=!1,Mj=typeof WeakSet=="function"?WeakSet:Set,q=null;function Yi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ne(e,t,n)}else r.current=null}function uh(e,t,r){try{r()}catch(n){Ne(e,t,n)}}var v0=!1;function Ij(e,t){if(Kp=Au,e=GS(),Av(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 i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(s=a+i),c!==o||n!==0&&c.nodeType!==3||(l=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===r&&++u===i&&(s=a),d===o&&++f===n&&(l=a),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(qp={focusedElem:e,selectionRange:r},Au=!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 m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:sr(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(_){Ne(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return m=v0,v0=!1,m}function Wa(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&uh(t,r,o)}i=i.next}while(i!==n)}}function sf(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 ch(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 H_(e){var t=e.alternate;t!==null&&(e.alternate=null,H_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_r],delete t[us],delete t[Yp],delete t[mj],delete t[gj])),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 V_(e){return e.tag===5||e.tag===3||e.tag===4}function m0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V_(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 fh(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=ku));else if(n!==4&&(e=e.child,e!==null))for(fh(e,t,r),e=e.sibling;e!==null;)fh(e,t,r),e=e.sibling}function dh(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(dh(e,t,r),e=e.sibling;e!==null;)dh(e,t,r),e=e.sibling}var it=null,lr=!1;function fn(e,t,r){for(r=r.child;r!==null;)K_(e,t,r),r=r.sibling}function K_(e,t,r){if(Pr&&typeof Pr.onCommitFiberUnmount=="function")try{Pr.onCommitFiberUnmount(Zc,r)}catch{}switch(r.tag){case 5:ct||Yi(r,t);case 6:var n=it,i=lr;it=null,fn(e,t,r),it=n,lr=i,it!==null&&(lr?(e=it,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):it.removeChild(r.stateNode));break;case 18:it!==null&&(lr?(e=it,r=r.stateNode,e.nodeType===8?Nd(e.parentNode,r):e.nodeType===1&&Nd(e,r),is(e)):Nd(it,r.stateNode));break;case 4:n=it,i=lr,it=r.stateNode.containerInfo,lr=!0,fn(e,t,r),it=n,lr=i;break;case 0:case 11:case 14:case 15:if(!ct&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&uh(r,t,a),i=i.next}while(i!==n)}fn(e,t,r);break;case 1:if(!ct&&(Yi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ne(r,t,s)}fn(e,t,r);break;case 21:fn(e,t,r);break;case 22:r.mode&1?(ct=(n=ct)||r.memoizedState!==null,fn(e,t,r),ct=n):fn(e,t,r);break;default:fn(e,t,r)}}function g0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Mj),t.forEach(function(n){var i=Hj.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function or(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:it=s.stateNode,lr=!1;break e;case 3:it=s.stateNode.containerInfo,lr=!0;break e;case 4:it=s.stateNode.containerInfo,lr=!0;break e}s=s.return}if(it===null)throw Error(U(160));K_(o,a,i),it=null,lr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ne(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)q_(t,e),t=t.sibling}function q_(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(or(t,e),wr(e),n&4){try{Wa(3,e,e.return),sf(3,e)}catch(h){Ne(e,e.return,h)}try{Wa(5,e,e.return)}catch(h){Ne(e,e.return,h)}}break;case 1:or(t,e),wr(e),n&512&&r!==null&&Yi(r,r.return);break;case 5:if(or(t,e),wr(e),n&512&&r!==null&&Yi(r,r.return),e.flags&32){var i=e.stateNode;try{es(i,"")}catch(h){Ne(e,e.return,h)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=r!==null?r.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&yS(i,o),Dp(s,a);var u=Dp(s,o);for(a=0;a<l.length;a+=2){var f=l[a],c=l[a+1];f==="style"?xS(i,c):f==="dangerouslySetInnerHTML"?gS(i,c):f==="children"?es(i,c):dv(i,f,c,u)}switch(s){case"input":Tp(i,o);break;case"textarea":vS(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?no(i,!!o.multiple,p,!1):d!==!!o.multiple&&(o.defaultValue!=null?no(i,!!o.multiple,o.defaultValue,!0):no(i,!!o.multiple,o.multiple?[]:"",!1))}i[us]=o}catch(h){Ne(e,e.return,h)}}break;case 6:if(or(t,e),wr(e),n&4){if(e.stateNode===null)throw Error(U(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(h){Ne(e,e.return,h)}}break;case 3:if(or(t,e),wr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{is(t.containerInfo)}catch(h){Ne(e,e.return,h)}break;case 4:or(t,e),wr(e);break;case 13:or(t,e),wr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Vv=Re())),n&4&&g0(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(ct=(u=ct)||f,or(t,e),ct=u):or(t,e),wr(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(c=q=f;q!==null;){switch(d=q,p=d.child,d.tag){case 0:case 11:case 14:case 15:Wa(4,d,d.return);break;case 1:Yi(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(h){Ne(n,r,h)}}break;case 5:Yi(d,d.return);break;case 22:if(d.memoizedState!==null){x0(c);continue}}p!==null?(p.return=d,q=p):x0(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=c.stateNode,l=c.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=bS("display",a))}catch(h){Ne(e,e.return,h)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(h){Ne(e,e.return,h)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:or(t,e),wr(e),n&4&&g0(e);break;case 21:break;default:or(t,e),wr(e)}}function wr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(V_(r)){var n=r;break e}r=r.return}throw Error(U(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(es(i,""),n.flags&=-33);var o=m0(e);dh(e,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=m0(e);fh(e,s,a);break;default:throw Error(U(161))}}catch(l){Ne(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dj(e,t,r){q=e,G_(e)}function G_(e,t,r){for(var n=(e.mode&1)!==0;q!==null;){var i=q,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||Il;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||ct;s=Il;var u=ct;if(Il=a,(ct=l)&&!u)for(q=i;q!==null;)a=q,l=a.child,a.tag===22&&a.memoizedState!==null?w0(i):l!==null?(l.return=a,q=l):w0(i);for(;o!==null;)q=o,G_(o),o=o.sibling;q=i,Il=s,ct=u}b0(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,q=o):b0(e)}}function b0(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:ct||sf(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!ct)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:sr(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&n0(t,o,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}n0(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.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 c=f.dehydrated;c!==null&&is(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}ct||t.flags&512&&ch(t)}catch(d){Ne(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 x0(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 w0(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{sf(4,t)}catch(l){Ne(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Ne(t,i,l)}}var o=t.return;try{ch(t)}catch(l){Ne(t,o,l)}break;case 5:var a=t.return;try{ch(t)}catch(l){Ne(t,a,l)}}}catch(l){Ne(t,t.return,l)}if(t===e){q=null;break}var s=t.sibling;if(s!==null){s.return=t.return,q=s;break}q=t.return}}var Rj=Math.ceil,Bu=on.ReactCurrentDispatcher,Wv=on.ReactCurrentOwner,Jt=on.ReactCurrentBatchConfig,se=0,tt=null,Be=null,ot=0,Tt=0,Qi=Dn(0),Xe=0,ys=null,yi=0,lf=0,Hv=0,Ha=null,St=null,Vv=0,xo=1/0,Lr=null,zu=!1,ph=null,kn=null,Dl=!1,wn=null,Fu=0,Va=0,hh=null,fu=-1,du=0;function mt(){return se&6?Re():fu!==-1?fu:fu=Re()}function jn(e){return e.mode&1?se&2&&ot!==0?ot&-ot:xj.transition!==null?(du===0&&(du=CS()),du):(e=pe,e!==0||(e=window.event,e=e===void 0?16:BS(e.type)),e):1}function mr(e,t,r,n){if(50<Va)throw Va=0,hh=null,Error(U(185));rl(e,r,n),(!(se&2)||e!==tt)&&(e===tt&&(!(se&2)&&(lf|=r),Xe===4&&mn(e,ot)),Et(e,n),r===1&&se===0&&!(t.mode&1)&&(xo=Re()+500,nf&&Rn()))}function Et(e,t){var r=e.callbackNode;xk(e,t);var n=Ou(e,e===tt?ot:0);if(n===0)r!==null&&$g(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&$g(r),t===1)e.tag===0?bj(S0.bind(null,e)):i_(S0.bind(null,e)),yj(function(){!(se&6)&&Rn()}),r=null;else{switch(NS(n)){case 1:r=mv;break;case 4:r=$S;break;case 16:r=_u;break;case 536870912:r=TS;break;default:r=_u}r=rO(r,X_.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function X_(e,t){if(fu=-1,du=0,se&6)throw Error(U(327));var r=e.callbackNode;if(lo()&&e.callbackNode!==r)return null;var n=Ou(e,e===tt?ot:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Uu(e,n);else{t=n;var i=se;se|=2;var o=Q_();(tt!==e||ot!==t)&&(Lr=null,xo=Re()+500,li(e,t));do try{zj();break}catch(s){Y_(e,s)}while(!0);$v(),Bu.current=o,se=i,Be!==null?t=0:(tt=null,ot=0,t=Xe)}if(t!==0){if(t===2&&(i=Fp(e),i!==0&&(n=i,t=yh(e,i))),t===1)throw r=ys,li(e,0),mn(e,n),Et(e,Re()),r;if(t===6)mn(e,n);else{if(i=e.current.alternate,!(n&30)&&!Lj(i)&&(t=Uu(e,n),t===2&&(o=Fp(e),o!==0&&(n=o,t=yh(e,o))),t===1))throw r=ys,li(e,0),mn(e,n),Et(e,Re()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(U(345));case 2:Xn(e,St,Lr);break;case 3:if(mn(e,n),(n&130023424)===n&&(t=Vv+500-Re(),10<t)){if(Ou(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){mt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Xp(Xn.bind(null,e,St,Lr),t);break}Xn(e,St,Lr);break;case 4:if(mn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var a=31-vr(n);o=1<<a,a=t[a],a>i&&(i=a),n&=~o}if(n=i,n=Re()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Rj(n/1960))-n,10<n){e.timeoutHandle=Xp(Xn.bind(null,e,St,Lr),n);break}Xn(e,St,Lr);break;case 5:Xn(e,St,Lr);break;default:throw Error(U(329))}}}return Et(e,Re()),e.callbackNode===r?X_.bind(null,e):null}function yh(e,t){var r=Ha;return e.current.memoizedState.isDehydrated&&(li(e,t).flags|=256),e=Uu(e,t),e!==2&&(t=St,St=r,t!==null&&vh(t)),e}function vh(e){St===null?St=e:St.push.apply(St,e)}function Lj(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 i=r[n],o=i.getSnapshot;i=i.value;try{if(!br(o(),i))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 mn(e,t){for(t&=~Hv,t&=~lf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-vr(t),n=1<<r;e[r]=-1,t&=~n}}function S0(e){if(se&6)throw Error(U(327));lo();var t=Ou(e,0);if(!(t&1))return Et(e,Re()),null;var r=Uu(e,t);if(e.tag!==0&&r===2){var n=Fp(e);n!==0&&(t=n,r=yh(e,n))}if(r===1)throw r=ys,li(e,0),mn(e,t),Et(e,Re()),r;if(r===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xn(e,St,Lr),Et(e,Re()),null}function Kv(e,t){var r=se;se|=1;try{return e(t)}finally{se=r,se===0&&(xo=Re()+500,nf&&Rn())}}function vi(e){wn!==null&&wn.tag===0&&!(se&6)&&lo();var t=se;se|=1;var r=Jt.transition,n=pe;try{if(Jt.transition=null,pe=1,e)return e()}finally{pe=n,Jt.transition=r,se=t,!(se&6)&&Rn()}}function qv(){Tt=Qi.current,Oe(Qi)}function li(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,hj(r)),Be!==null)for(r=Be.return;r!==null;){var n=r;switch(Ev(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ju();break;case 3:go(),Oe(At),Oe(dt),Dv();break;case 5:Iv(n);break;case 4:go();break;case 13:Oe(je);break;case 19:Oe(je);break;case 10:Tv(n.type._context);break;case 22:case 23:qv()}r=r.return}if(tt=e,Be=e=$n(e.current,null),ot=Tt=t,Xe=0,ys=null,Hv=lf=yi=0,St=Ha=null,ri!==null){for(t=0;t<ri.length;t++)if(r=ri[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var a=o.next;o.next=i,n.next=a}r.pending=n}ri=null}return e}function Y_(e,t){do{var r=Be;try{if($v(),lu.current=Lu,Ru){for(var n=$e.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ru=!1}if(hi=0,Je=Ke=$e=null,Ua=!1,ds=0,Wv.current=null,r===null||r.return===null){Xe=1,ys=t,Be=null;break}e:{var o=e,a=r.return,s=r,l=t;if(t=ot,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===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 p=u0(a);if(p!==null){p.flags&=-257,c0(p,a,s,o,t),p.mode&1&&l0(o,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var h=new Set;h.add(l),t.updateQueue=h}else m.add(l);break e}else{if(!(t&1)){l0(o,u,t),Gv();break e}l=Error(U(426))}}else if(Ee&&s.mode&1){var g=u0(a);if(g!==null){!(g.flags&65536)&&(g.flags|=256),c0(g,a,s,o,t),kv(bo(l,s));break e}}o=l=bo(l,s),Xe!==4&&(Xe=2),Ha===null?Ha=[o]:Ha.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=N_(o,l,t);r0(o,v);break e;case 1:s=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(kn===null||!kn.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=M_(o,s,t);r0(o,_);break e}}o=o.return}while(o!==null)}J_(r)}catch(x){t=x,Be===r&&r!==null&&(Be=r=r.return);continue}break}while(!0)}function Q_(){var e=Bu.current;return Bu.current=Lu,e===null?Lu:e}function Gv(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),tt===null||!(yi&268435455)&&!(lf&268435455)||mn(tt,ot)}function Uu(e,t){var r=se;se|=2;var n=Q_();(tt!==e||ot!==t)&&(Lr=null,li(e,t));do try{Bj();break}catch(i){Y_(e,i)}while(!0);if($v(),se=r,Bu.current=n,Be!==null)throw Error(U(261));return tt=null,ot=0,Xe}function Bj(){for(;Be!==null;)Z_(Be)}function zj(){for(;Be!==null&&!fk();)Z_(Be)}function Z_(e){var t=tO(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?J_(e):Be=t,Wv.current=null}function J_(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Nj(r,t),r!==null){r.flags&=32767,Be=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,Be=null;return}}else if(r=Cj(r,t,Tt),r!==null){Be=r;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);Xe===0&&(Xe=5)}function Xn(e,t,r){var n=pe,i=Jt.transition;try{Jt.transition=null,pe=1,Fj(e,t,r,n)}finally{Jt.transition=i,pe=n}return null}function Fj(e,t,r,n){do lo();while(wn!==null);if(se&6)throw Error(U(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(wk(e,o),e===tt&&(Be=tt=null,ot=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Dl||(Dl=!0,rO(_u,function(){return lo(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Jt.transition,Jt.transition=null;var a=pe;pe=1;var s=se;se|=4,Wv.current=null,Ij(e,r),q_(r,e),sj(qp),Au=!!Kp,qp=Kp=null,e.current=r,Dj(r),dk(),se=s,pe=a,Jt.transition=o}else e.current=r;if(Dl&&(Dl=!1,wn=e,Fu=i),o=e.pendingLanes,o===0&&(kn=null),yk(r.stateNode),Et(e,Re()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(zu)throw zu=!1,e=ph,ph=null,e;return Fu&1&&e.tag!==0&&lo(),o=e.pendingLanes,o&1?e===hh?Va++:(Va=0,hh=e):Va=0,Rn(),null}function lo(){if(wn!==null){var e=NS(Fu),t=Jt.transition,r=pe;try{if(Jt.transition=null,pe=16>e?16:e,wn===null)var n=!1;else{if(e=wn,wn=null,Fu=0,se&6)throw Error(U(331));var i=se;for(se|=4,q=e.current;q!==null;){var o=q,a=o.child;if(q.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(q=u;q!==null;){var f=q;switch(f.tag){case 0:case 11:case 15:Wa(8,f,o)}var c=f.child;if(c!==null)c.return=f,q=c;else for(;q!==null;){f=q;var d=f.sibling,p=f.return;if(H_(f),f===u){q=null;break}if(d!==null){d.return=p,q=d;break}q=p}}}var m=o.alternate;if(m!==null){var h=m.child;if(h!==null){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(h!==null)}}q=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,q=a;else e:for(;q!==null;){if(o=q,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Wa(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,q=v;break e}q=o.return}}var y=e.current;for(q=y;q!==null;){a=q;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,q=b;else e:for(a=y;q!==null;){if(s=q,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:sf(9,s)}}catch(x){Ne(s,s.return,x)}if(s===a){q=null;break e}var _=s.sibling;if(_!==null){_.return=s.return,q=_;break e}q=s.return}}if(se=i,Rn(),Pr&&typeof Pr.onPostCommitFiberRoot=="function")try{Pr.onPostCommitFiberRoot(Zc,e)}catch{}n=!0}return n}finally{pe=r,Jt.transition=t}}return!1}function _0(e,t,r){t=bo(r,t),t=N_(e,t,1),e=En(e,t,1),t=mt(),e!==null&&(rl(e,1,t),Et(e,t))}function Ne(e,t,r){if(e.tag===3)_0(e,e,r);else for(;t!==null;){if(t.tag===3){_0(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(kn===null||!kn.has(n))){e=bo(r,e),e=M_(t,e,1),t=En(t,e,1),e=mt(),t!==null&&(rl(t,1,e),Et(t,e));break}}t=t.return}}function Uj(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&r,tt===e&&(ot&r)===r&&(Xe===4||Xe===3&&(ot&130023424)===ot&&500>Re()-Vv?li(e,0):Hv|=r),Et(e,t)}function eO(e,t){t===0&&(e.mode&1?(t=Pl,Pl<<=1,!(Pl&130023424)&&(Pl=4194304)):t=1);var r=mt();e=Zr(e,t),e!==null&&(rl(e,t,r),Et(e,r))}function Wj(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),eO(e,r)}function Hj(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(U(314))}n!==null&&n.delete(t),eO(e,r)}var tO;tO=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||At.current)_t=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return _t=!1,Tj(e,t,r);_t=!!(e.flags&131072)}else _t=!1,Ee&&t.flags&1048576&&o_(t,Cu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;cu(e,t),e=t.pendingProps;var i=yo(t,dt.current);so(t,r),i=Lv(null,t,n,e,i,r);var o=Bv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pt(n)?(o=!0,$u(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nv(t),i.updater=af,t.stateNode=i,i._reactInternals=t,rh(t,n,e,r),t=oh(null,t,n,!0,o,r)):(t.tag=0,Ee&&o&&Pv(t),pt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(cu(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Kj(n),e=sr(n,e),i){case 0:t=ih(null,t,n,e,r);break e;case 1:t=p0(null,t,n,e,r);break e;case 11:t=f0(null,t,n,e,r);break e;case 14:t=d0(null,t,n,sr(n.type,e),r);break e}throw Error(U(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sr(n,i),ih(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sr(n,i),p0(e,t,n,i,r);case 3:e:{if(L_(t),e===null)throw Error(U(387));n=t.pendingProps,o=t.memoizedState,i=o.element,f_(e,t),Iu(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bo(Error(U(423)),t),t=h0(e,t,n,r,i);break e}else if(n!==i){i=bo(Error(U(424)),t),t=h0(e,t,n,r,i);break e}else for(It=Pn(t.stateNode.containerInfo.firstChild),Dt=t,Ee=!0,pr=null,r=u_(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(vo(),n===i){t=Jr(e,t,r);break e}pt(e,t,n,r)}t=t.child}return t;case 5:return d_(t),e===null&&Jp(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Gp(n,i)?a=null:o!==null&&Gp(n,o)&&(t.flags|=32),R_(e,t),pt(e,t,a,r),t.child;case 6:return e===null&&Jp(t),null;case 13:return B_(e,t,r);case 4:return Mv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=mo(t,null,n,r):pt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sr(n,i),f0(e,t,n,i,r);case 7:return pt(e,t,t.pendingProps,r),t.child;case 8:return pt(e,t,t.pendingProps.children,r),t.child;case 12:return pt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,be(Nu,n._currentValue),n._currentValue=a,o!==null)if(br(o.value,a)){if(o.children===i.children&&!At.current){t=Jr(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Kr(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),eh(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(U(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),eh(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}pt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,so(t,r),i=er(i),n=n(i),t.flags|=1,pt(e,t,n,r),t.child;case 14:return n=t.type,i=sr(n,t.pendingProps),i=sr(n.type,i),d0(e,t,n,i,r);case 15:return I_(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:sr(n,i),cu(e,t),t.tag=1,Pt(n)?(e=!0,$u(t)):e=!1,so(t,r),C_(t,n,i),rh(t,n,i,r),oh(null,t,n,!0,e,r);case 19:return z_(e,t,r);case 22:return D_(e,t,r)}throw Error(U(156,t.tag))};function rO(e,t){return jS(e,t)}function Vj(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 Qt(e,t,r,n){return new Vj(e,t,r,n)}function Xv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kj(e){if(typeof e=="function")return Xv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hv)return 11;if(e===yv)return 14}return 2}function $n(e,t){var r=e.alternate;return r===null?(r=Qt(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 pu(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")Xv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Fi:return ui(r.children,i,o,t);case pv:a=8,i|=8;break;case Pp:return e=Qt(12,r,t,i|2),e.elementType=Pp,e.lanes=o,e;case Ep:return e=Qt(13,r,t,i),e.elementType=Ep,e.lanes=o,e;case kp:return e=Qt(19,r,t,i),e.elementType=kp,e.lanes=o,e;case dS:return uf(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cS:a=10;break e;case fS:a=9;break e;case hv:a=11;break e;case yv:a=14;break e;case pn:a=16,n=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Qt(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function ui(e,t,r,n){return e=Qt(7,e,n,t),e.lanes=r,e}function uf(e,t,r,n){return e=Qt(22,e,n,t),e.elementType=dS,e.lanes=r,e.stateNode={isHidden:!1},e}function Fd(e,t,r){return e=Qt(6,e,null,t),e.lanes=r,e}function Ud(e,t,r){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qj(e,t,r,n,i){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=Sd(0),this.expirationTimes=Sd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sd(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Yv(e,t,r,n,i,o,a,s,l){return e=new qj(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Qt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nv(o),e}function Gj(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zi,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function nO(e){if(!e)return Mn;e=e._reactInternals;e:{if(Pi(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var r=e.type;if(Pt(r))return n_(e,r,t)}return t}function iO(e,t,r,n,i,o,a,s,l){return e=Yv(r,n,!0,e,i,o,a,s,l),e.context=nO(null),r=e.current,n=mt(),i=jn(r),o=Kr(n,i),o.callback=t??null,En(r,o,i),e.current.lanes=i,rl(e,i,n),Et(e,n),e}function cf(e,t,r,n){var i=t.current,o=mt(),a=jn(i);return r=nO(r),t.context===null?t.context=r:t.pendingContext=r,t=Kr(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=En(i,t,a),e!==null&&(mr(e,i,a,o),su(e,i,a)),a}function Wu(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 O0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Qv(e,t){O0(e,t),(e=e.alternate)&&O0(e,t)}function Xj(){return null}var oO=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zv(e){this._internalRoot=e}ff.prototype.render=Zv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));cf(e,t,null,null)};ff.prototype.unmount=Zv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vi(function(){cf(null,e,null,null)}),t[Qr]=null}};function ff(e){this._internalRoot=e}ff.prototype.unstable_scheduleHydration=function(e){if(e){var t=DS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<vn.length&&t!==0&&t<vn[r].priority;r++);vn.splice(r,0,e),r===0&&LS(e)}};function Jv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function df(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function A0(){}function Yj(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var u=Wu(a);o.call(u)}}var a=iO(t,n,e,0,null,!1,!1,"",A0);return e._reactRootContainer=a,e[Qr]=a.current,ss(e.nodeType===8?e.parentNode:e),vi(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=Wu(l);s.call(u)}}var l=Yv(e,0,!1,null,null,!1,!1,"",A0);return e._reactRootContainer=l,e[Qr]=l.current,ss(e.nodeType===8?e.parentNode:e),vi(function(){cf(t,l,r,n)}),l}function pf(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=Wu(a);s.call(l)}}cf(t,a,e,i)}else a=Yj(r,t,e,i,n);return Wu(a)}MS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Na(t.pendingLanes);r!==0&&(gv(t,r|1),Et(t,Re()),!(se&6)&&(xo=Re()+500,Rn()))}break;case 13:vi(function(){var n=Zr(e,1);if(n!==null){var i=mt();mr(n,e,1,i)}}),Qv(e,1)}};bv=function(e){if(e.tag===13){var t=Zr(e,134217728);if(t!==null){var r=mt();mr(t,e,134217728,r)}Qv(e,134217728)}};IS=function(e){if(e.tag===13){var t=jn(e),r=Zr(e,t);if(r!==null){var n=mt();mr(r,e,t,n)}Qv(e,t)}};DS=function(){return pe};RS=function(e,t){var r=pe;try{return pe=e,t()}finally{pe=r}};Lp=function(e,t,r){switch(t){case"input":if(Tp(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 i=rf(n);if(!i)throw Error(U(90));hS(n),Tp(n,i)}}}break;case"textarea":vS(e,r);break;case"select":t=r.value,t!=null&&no(e,!!r.multiple,t,!1)}};_S=Kv;OS=vi;var Qj={usingClientEntryPoint:!1,Events:[il,Vi,rf,wS,SS,Kv]},ga={findFiberByHostInstance:ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zj={bundleType:ga.bundleType,version:ga.version,rendererPackageName:ga.rendererPackageName,rendererConfig:ga.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ES(e),e===null?null:e.stateNode},findFiberByHostInstance:ga.findFiberByHostInstance||Xj,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 Rl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rl.isDisabled&&Rl.supportsFiber)try{Zc=Rl.inject(Zj),Pr=Rl}catch{}}Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qj;Ft.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jv(t))throw Error(U(200));return Gj(e,t,null,r)};Ft.createRoot=function(e,t){if(!Jv(e))throw Error(U(299));var r=!1,n="",i=oO;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Yv(e,1,!1,null,null,r,!1,n,i),e[Qr]=t.current,ss(e.nodeType===8?e.parentNode:e),new Zv(t)};Ft.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=ES(t),e=e===null?null:e.stateNode,e};Ft.flushSync=function(e){return vi(e)};Ft.hydrate=function(e,t,r){if(!df(t))throw Error(U(200));return pf(null,e,t,!0,r)};Ft.hydrateRoot=function(e,t,r){if(!Jv(e))throw Error(U(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",a=oO;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=iO(t,null,e,1,r??null,i,!1,o,a),e[Qr]=t.current,ss(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new ff(t)};Ft.render=function(e,t,r){if(!df(t))throw Error(U(200));return pf(null,e,t,!1,r)};Ft.unmountComponentAtNode=function(e){if(!df(e))throw Error(U(40));return e._reactRootContainer?(vi(function(){pf(null,null,e,!1,function(){e._reactRootContainer=null,e[Qr]=null})}),!0):!1};Ft.unstable_batchedUpdates=Kv;Ft.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!df(r))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return pf(e,t,r,!1,n)};Ft.version="18.3.1-next-f1338f8080-20240426";function aO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aO)}catch(e){console.error(e)}}aO(),aS.exports=Ft;var Jj=aS.exports,P0=Jj;Op.createRoot=P0.createRoot,Op.hydrateRoot=P0.hydrateRoot;let e$={data:""},t$=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||e$},r$=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,n$=/\/\*[^]*?\*\/| +/g,E0=/\n+/g,gn=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?r=o+" "+a+";":n+=o[1]=="f"?gn(a,o):o+"{"+gn(a,o[1]=="k"?"":t)+"}":typeof a=="object"?n+=gn(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=gn.p?gn.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},Dr={},sO=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+sO(e[r]);return t}return e},i$=(e,t,r,n,i)=>{let o=sO(e),a=Dr[o]||(Dr[o]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(o));if(!Dr[a]){let l=o!==e?e:(u=>{let f,c,d=[{}];for(;f=r$.exec(u.replace(n$,""));)f[4]?d.shift():f[3]?(c=f[3].replace(E0," ").trim(),d.unshift(d[0][c]=d[0][c]||{})):d[0][f[1]]=f[2].replace(E0," ").trim();return d[0]})(e);Dr[a]=gn(i?{["@keyframes "+a]:l}:l,r?"":"."+a)}let s=r&&Dr.g?Dr.g:null;return r&&(Dr.g=Dr[a]),((l,u,f,c)=>{c?u.data=u.data.replace(c,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(Dr[a],t,n,s),a},o$=(e,t,r)=>e.reduce((n,i,o)=>{let a=t[o];if(a&&a.call){let s=a(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":gn(s,""):s===!1?"":s}return n+i+(a??"")},"");function hf(e){let t=this||{},r=e.call?e(t.p):e;return i$(r.unshift?r.raw?o$(r,[].slice.call(arguments,1),t.p):r.reduce((n,i)=>Object.assign(n,i&&i.call?i(t.p):i),{}):r,t$(t.target),t.g,t.o,t.k)}let lO,mh,gh;hf.bind({g:1});let en=hf.bind({k:1});function a$(e,t,r,n){gn.p=t,lO=e,mh=r,gh=n}function Ln(e,t){let r=this||{};return function(){let n=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;r.p=Object.assign({theme:mh&&mh()},s),r.o=/ *go\d+/.test(l),s.className=hf.apply(r,n)+(l?" "+l:"");let u=e;return e[0]&&(u=s.as||e,delete s.as),gh&&u[0]&&gh(s),lO(u,s)}return i}}var s$=e=>typeof e=="function",Hu=(e,t)=>s$(e)?e(t):e,l$=(()=>{let e=0;return()=>(++e).toString()})(),uO=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),u$=20,em="default",cO=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return cO(e,{type:e.toasts.find(a=>a.id===n.id)?1:0,toast:n});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(a=>a.id===i||i===void 0?{...a,dismissed:!0,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+o}))}}},hu=[],fO={toasts:[],pausedAt:void 0,settings:{toastLimit:u$}},Or={},dO=(e,t=em)=>{Or[t]=cO(Or[t]||fO,e),hu.forEach(([r,n])=>{r===t&&n(Or[t])})},pO=e=>Object.keys(Or).forEach(t=>dO(e,t)),c$=e=>Object.keys(Or).find(t=>Or[t].toasts.some(r=>r.id===e)),yf=(e=em)=>t=>{dO(t,e)},f$={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},d$=(e={},t=em)=>{let[r,n]=$.useState(Or[t]||fO),i=$.useRef(Or[t]);$.useEffect(()=>(i.current!==Or[t]&&n(Or[t]),hu.push([t,n]),()=>{let a=hu.findIndex(([s])=>s===t);a>-1&&hu.splice(a,1)}),[t]);let o=r.toasts.map(a=>{var s,l,u;return{...e,...e[a.type],...a,removeDelay:a.removeDelay||((s=e[a.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:a.duration||((l=e[a.type])==null?void 0:l.duration)||(e==null?void 0:e.duration)||f$[a.type],style:{...e.style,...(u=e[a.type])==null?void 0:u.style,...a.style}}});return{...r,toasts:o}},p$=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||l$()}),al=e=>(t,r)=>{let n=p$(t,e,r);return yf(n.toasterId||c$(n.id))({type:2,toast:n}),n.id},qe=(e,t)=>al("blank")(e,t);qe.error=al("error");qe.success=al("success");qe.loading=al("loading");qe.custom=al("custom");qe.dismiss=(e,t)=>{let r={type:3,toastId:e};t?yf(t)(r):pO(r)};qe.dismissAll=e=>qe.dismiss(void 0,e);qe.remove=(e,t)=>{let r={type:4,toastId:e};t?yf(t)(r):pO(r)};qe.removeAll=e=>qe.remove(void 0,e);qe.promise=(e,t,r)=>{let n=qe.loading(t.loading,{...r,...r==null?void 0:r.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let o=t.success?Hu(t.success,i):void 0;return o?qe.success(o,{id:n,...r,...r==null?void 0:r.success}):qe.dismiss(n),i}).catch(i=>{let o=t.error?Hu(t.error,i):void 0;o?qe.error(o,{id:n,...r,...r==null?void 0:r.error}):qe.dismiss(n)}),e};var h$=1e3,y$=(e,t="default")=>{let{toasts:r,pausedAt:n}=d$(e,t),i=$.useRef(new Map).current,o=$.useCallback((c,d=h$)=>{if(i.has(c))return;let p=setTimeout(()=>{i.delete(c),a({type:4,toastId:c})},d);i.set(c,p)},[]);$.useEffect(()=>{if(n)return;let c=Date.now(),d=r.map(p=>{if(p.duration===1/0)return;let m=(p.duration||0)+p.pauseDuration-(c-p.createdAt);if(m<0){p.visible&&qe.dismiss(p.id);return}return setTimeout(()=>qe.dismiss(p.id,t),m)});return()=>{d.forEach(p=>p&&clearTimeout(p))}},[r,n,t]);let a=$.useCallback(yf(t),[t]),s=$.useCallback(()=>{a({type:5,time:Date.now()})},[a]),l=$.useCallback((c,d)=>{a({type:1,toast:{id:c,height:d}})},[a]),u=$.useCallback(()=>{n&&a({type:6,time:Date.now()})},[n,a]),f=$.useCallback((c,d)=>{let{reverseOrder:p=!1,gutter:m=8,defaultPosition:h}=d||{},g=r.filter(b=>(b.position||h)===(c.position||h)&&b.height),v=g.findIndex(b=>b.id===c.id),y=g.filter((b,_)=>_<v&&b.visible).length;return g.filter(b=>b.visible).slice(...p?[y+1]:[0,y]).reduce((b,_)=>b+(_.height||0)+m,0)},[r]);return $.useEffect(()=>{r.forEach(c=>{if(c.dismissed)o(c.id,c.removeDelay);else{let d=i.get(c.id);d&&(clearTimeout(d),i.delete(c.id))}})},[r,o]),{toasts:r,handlers:{updateHeight:l,startPause:s,endPause:u,calculateOffset:f}}},v$=en`
|
|
41
|
-
from {
|
|
42
|
-
transform: scale(0) rotate(45deg);
|
|
43
|
-
opacity: 0;
|
|
44
|
-
}
|
|
45
|
-
to {
|
|
46
|
-
transform: scale(1) rotate(45deg);
|
|
47
|
-
opacity: 1;
|
|
48
|
-
}`,m$=en`
|
|
49
|
-
from {
|
|
50
|
-
transform: scale(0);
|
|
51
|
-
opacity: 0;
|
|
52
|
-
}
|
|
53
|
-
to {
|
|
54
|
-
transform: scale(1);
|
|
55
|
-
opacity: 1;
|
|
56
|
-
}`,g$=en`
|
|
57
|
-
from {
|
|
58
|
-
transform: scale(0) rotate(90deg);
|
|
59
|
-
opacity: 0;
|
|
60
|
-
}
|
|
61
|
-
to {
|
|
62
|
-
transform: scale(1) rotate(90deg);
|
|
63
|
-
opacity: 1;
|
|
64
|
-
}`,b$=Ln("div")`
|
|
65
|
-
width: 20px;
|
|
66
|
-
opacity: 0;
|
|
67
|
-
height: 20px;
|
|
68
|
-
border-radius: 10px;
|
|
69
|
-
background: ${e=>e.primary||"#ff4b4b"};
|
|
70
|
-
position: relative;
|
|
71
|
-
transform: rotate(45deg);
|
|
72
|
-
|
|
73
|
-
animation: ${v$} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
74
|
-
forwards;
|
|
75
|
-
animation-delay: 100ms;
|
|
76
|
-
|
|
77
|
-
&:after,
|
|
78
|
-
&:before {
|
|
79
|
-
content: '';
|
|
80
|
-
animation: ${m$} 0.15s ease-out forwards;
|
|
81
|
-
animation-delay: 150ms;
|
|
82
|
-
position: absolute;
|
|
83
|
-
border-radius: 3px;
|
|
84
|
-
opacity: 0;
|
|
85
|
-
background: ${e=>e.secondary||"#fff"};
|
|
86
|
-
bottom: 9px;
|
|
87
|
-
left: 4px;
|
|
88
|
-
height: 2px;
|
|
89
|
-
width: 12px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&:before {
|
|
93
|
-
animation: ${g$} 0.15s ease-out forwards;
|
|
94
|
-
animation-delay: 180ms;
|
|
95
|
-
transform: rotate(90deg);
|
|
96
|
-
}
|
|
97
|
-
`,x$=en`
|
|
98
|
-
from {
|
|
99
|
-
transform: rotate(0deg);
|
|
100
|
-
}
|
|
101
|
-
to {
|
|
102
|
-
transform: rotate(360deg);
|
|
103
|
-
}
|
|
104
|
-
`,w$=Ln("div")`
|
|
105
|
-
width: 12px;
|
|
106
|
-
height: 12px;
|
|
107
|
-
box-sizing: border-box;
|
|
108
|
-
border: 2px solid;
|
|
109
|
-
border-radius: 100%;
|
|
110
|
-
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
111
|
-
border-right-color: ${e=>e.primary||"#616161"};
|
|
112
|
-
animation: ${x$} 1s linear infinite;
|
|
113
|
-
`,S$=en`
|
|
114
|
-
from {
|
|
115
|
-
transform: scale(0) rotate(45deg);
|
|
116
|
-
opacity: 0;
|
|
117
|
-
}
|
|
118
|
-
to {
|
|
119
|
-
transform: scale(1) rotate(45deg);
|
|
120
|
-
opacity: 1;
|
|
121
|
-
}`,_$=en`
|
|
122
|
-
0% {
|
|
123
|
-
height: 0;
|
|
124
|
-
width: 0;
|
|
125
|
-
opacity: 0;
|
|
126
|
-
}
|
|
127
|
-
40% {
|
|
128
|
-
height: 0;
|
|
129
|
-
width: 6px;
|
|
130
|
-
opacity: 1;
|
|
131
|
-
}
|
|
132
|
-
100% {
|
|
133
|
-
opacity: 1;
|
|
134
|
-
height: 10px;
|
|
135
|
-
}`,O$=Ln("div")`
|
|
136
|
-
width: 20px;
|
|
137
|
-
opacity: 0;
|
|
138
|
-
height: 20px;
|
|
139
|
-
border-radius: 10px;
|
|
140
|
-
background: ${e=>e.primary||"#61d345"};
|
|
141
|
-
position: relative;
|
|
142
|
-
transform: rotate(45deg);
|
|
143
|
-
|
|
144
|
-
animation: ${S$} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
145
|
-
forwards;
|
|
146
|
-
animation-delay: 100ms;
|
|
147
|
-
&:after {
|
|
148
|
-
content: '';
|
|
149
|
-
box-sizing: border-box;
|
|
150
|
-
animation: ${_$} 0.2s ease-out forwards;
|
|
151
|
-
opacity: 0;
|
|
152
|
-
animation-delay: 200ms;
|
|
153
|
-
position: absolute;
|
|
154
|
-
border-right: 2px solid;
|
|
155
|
-
border-bottom: 2px solid;
|
|
156
|
-
border-color: ${e=>e.secondary||"#fff"};
|
|
157
|
-
bottom: 6px;
|
|
158
|
-
left: 6px;
|
|
159
|
-
height: 10px;
|
|
160
|
-
width: 6px;
|
|
161
|
-
}
|
|
162
|
-
`,A$=Ln("div")`
|
|
163
|
-
position: absolute;
|
|
164
|
-
`,P$=Ln("div")`
|
|
165
|
-
position: relative;
|
|
166
|
-
display: flex;
|
|
167
|
-
justify-content: center;
|
|
168
|
-
align-items: center;
|
|
169
|
-
min-width: 20px;
|
|
170
|
-
min-height: 20px;
|
|
171
|
-
`,E$=en`
|
|
172
|
-
from {
|
|
173
|
-
transform: scale(0.6);
|
|
174
|
-
opacity: 0.4;
|
|
175
|
-
}
|
|
176
|
-
to {
|
|
177
|
-
transform: scale(1);
|
|
178
|
-
opacity: 1;
|
|
179
|
-
}`,k$=Ln("div")`
|
|
180
|
-
position: relative;
|
|
181
|
-
transform: scale(0.6);
|
|
182
|
-
opacity: 0.4;
|
|
183
|
-
min-width: 20px;
|
|
184
|
-
animation: ${E$} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
185
|
-
forwards;
|
|
186
|
-
`,j$=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?$.createElement(k$,null,t):t:r==="blank"?null:$.createElement(P$,null,$.createElement(w$,{...n}),r!=="loading"&&$.createElement(A$,null,r==="error"?$.createElement(b$,{...n}):$.createElement(O$,{...n})))},$$=e=>`
|
|
187
|
-
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
188
|
-
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
189
|
-
`,T$=e=>`
|
|
190
|
-
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
191
|
-
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
192
|
-
`,C$="0%{opacity:0;} 100%{opacity:1;}",N$="0%{opacity:1;} 100%{opacity:0;}",M$=Ln("div")`
|
|
193
|
-
display: flex;
|
|
194
|
-
align-items: center;
|
|
195
|
-
background: #fff;
|
|
196
|
-
color: #363636;
|
|
197
|
-
line-height: 1.3;
|
|
198
|
-
will-change: transform;
|
|
199
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
200
|
-
max-width: 350px;
|
|
201
|
-
pointer-events: auto;
|
|
202
|
-
padding: 8px 10px;
|
|
203
|
-
border-radius: 8px;
|
|
204
|
-
`,I$=Ln("div")`
|
|
205
|
-
display: flex;
|
|
206
|
-
justify-content: center;
|
|
207
|
-
margin: 4px 10px;
|
|
208
|
-
color: inherit;
|
|
209
|
-
flex: 1 1 auto;
|
|
210
|
-
white-space: pre-line;
|
|
211
|
-
`,D$=(e,t)=>{let r=e.includes("top")?1:-1,[n,i]=uO()?[C$,N$]:[$$(r),T$(r)];return{animation:t?`${en(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${en(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},R$=$.memo(({toast:e,position:t,style:r,children:n})=>{let i=e.height?D$(e.position||t||"top-center",e.visible):{opacity:0},o=$.createElement(j$,{toast:e}),a=$.createElement(I$,{...e.ariaProps},Hu(e.message,e));return $.createElement(M$,{className:e.className,style:{...i,...r,...e.style}},typeof n=="function"?n({icon:o,message:a}):$.createElement($.Fragment,null,o,a))});a$($.createElement);var L$=({id:e,className:t,style:r,onHeightUpdate:n,children:i})=>{let o=$.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;n(e,l)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return $.createElement("div",{ref:o,className:t,style:r},i)},B$=(e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:uO()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...i}},z$=hf`
|
|
212
|
-
z-index: 9999;
|
|
213
|
-
> * {
|
|
214
|
-
pointer-events: auto;
|
|
215
|
-
}
|
|
216
|
-
`,Ll=16,F$=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:i,toasterId:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:u}=y$(r,o);return $.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:Ll,left:Ll,right:Ll,bottom:Ll,pointerEvents:"none",...a},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(f=>{let c=f.position||t,d=u.calculateOffset(f,{reverseOrder:e,gutter:n,defaultPosition:t}),p=B$(c,d);return $.createElement(L$,{id:f.id,key:f.id,onHeightUpdate:u.updateHeight,className:f.visible?z$:"",style:p},f.type==="custom"?Hu(f.message,f):i?i(f):$.createElement(R$,{toast:f,position:c}))}))},Pe=qe;/**
|
|
217
|
-
* @license lucide-react v0.303.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/var U$={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
222
|
-
* @license lucide-react v0.303.0 - ISC
|
|
223
|
-
*
|
|
224
|
-
* This source code is licensed under the ISC license.
|
|
225
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const W$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ce=(e,t)=>{const r=$.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:s="",children:l,...u},f)=>$.createElement("svg",{ref:f,...U$,width:i,height:i,stroke:n,strokeWidth:a?Number(o)*24/Number(i):o,className:["lucide",`lucide-${W$(e)}`,s].join(" "),...u},[...t.map(([c,d])=>$.createElement(c,d)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/**
|
|
227
|
-
* @license lucide-react v0.303.0 - ISC
|
|
228
|
-
*
|
|
229
|
-
* This source code is licensed under the ISC license.
|
|
230
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const bh=ce("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
|
232
|
-
* @license lucide-react v0.303.0 - ISC
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the ISC license.
|
|
235
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const H$=ce("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
237
|
-
* @license lucide-react v0.303.0 - ISC
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the ISC license.
|
|
240
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const k0=ce("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
242
|
-
* @license lucide-react v0.303.0 - ISC
|
|
243
|
-
*
|
|
244
|
-
* This source code is licensed under the ISC license.
|
|
245
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const V$=ce("Brain",[["path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z",key:"1mhkh5"}],["path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z",key:"1d6s00"}]]);/**
|
|
247
|
-
* @license lucide-react v0.303.0 - ISC
|
|
248
|
-
*
|
|
249
|
-
* This source code is licensed under the ISC license.
|
|
250
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const j0=ce("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
252
|
-
* @license lucide-react v0.303.0 - ISC
|
|
253
|
-
*
|
|
254
|
-
* This source code is licensed under the ISC license.
|
|
255
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const K$=ce("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
257
|
-
* @license lucide-react v0.303.0 - ISC
|
|
258
|
-
*
|
|
259
|
-
* This source code is licensed under the ISC license.
|
|
260
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const q$=ce("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
262
|
-
* @license lucide-react v0.303.0 - ISC
|
|
263
|
-
*
|
|
264
|
-
* This source code is licensed under the ISC license.
|
|
265
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const hO=ce("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
267
|
-
* @license lucide-react v0.303.0 - ISC
|
|
268
|
-
*
|
|
269
|
-
* This source code is licensed under the ISC license.
|
|
270
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const G$=ce("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
272
|
-
* @license lucide-react v0.303.0 - ISC
|
|
273
|
-
*
|
|
274
|
-
* This source code is licensed under the ISC license.
|
|
275
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const X$=ce("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
277
|
-
* @license lucide-react v0.303.0 - ISC
|
|
278
|
-
*
|
|
279
|
-
* This source code is licensed under the ISC license.
|
|
280
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const yO=ce("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
282
|
-
* @license lucide-react v0.303.0 - ISC
|
|
283
|
-
*
|
|
284
|
-
* This source code is licensed under the ISC license.
|
|
285
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const $0=ce("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
287
|
-
* @license lucide-react v0.303.0 - ISC
|
|
288
|
-
*
|
|
289
|
-
* This source code is licensed under the ISC license.
|
|
290
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const Y$=ce("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
|
|
292
|
-
* @license lucide-react v0.303.0 - ISC
|
|
293
|
-
*
|
|
294
|
-
* This source code is licensed under the ISC license.
|
|
295
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const Q$=ce("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
297
|
-
* @license lucide-react v0.303.0 - ISC
|
|
298
|
-
*
|
|
299
|
-
* This source code is licensed under the ISC license.
|
|
300
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/const Z$=ce("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
302
|
-
* @license lucide-react v0.303.0 - ISC
|
|
303
|
-
*
|
|
304
|
-
* This source code is licensed under the ISC license.
|
|
305
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
-
*/const J$=ce("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
307
|
-
* @license lucide-react v0.303.0 - ISC
|
|
308
|
-
*
|
|
309
|
-
* This source code is licensed under the ISC license.
|
|
310
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/const eT=ce("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
312
|
-
* @license lucide-react v0.303.0 - ISC
|
|
313
|
-
*
|
|
314
|
-
* This source code is licensed under the ISC license.
|
|
315
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
-
*/const tT=ce("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
317
|
-
* @license lucide-react v0.303.0 - ISC
|
|
318
|
-
*
|
|
319
|
-
* This source code is licensed under the ISC license.
|
|
320
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
-
*/const rT=ce("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/**
|
|
322
|
-
* @license lucide-react v0.303.0 - ISC
|
|
323
|
-
*
|
|
324
|
-
* This source code is licensed under the ISC license.
|
|
325
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
-
*/const nT=ce("PieChart",[["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}],["path",{d:"M22 12A10 10 0 0 0 12 2v10z",key:"1rfc4y"}]]);/**
|
|
327
|
-
* @license lucide-react v0.303.0 - ISC
|
|
328
|
-
*
|
|
329
|
-
* This source code is licensed under the ISC license.
|
|
330
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/const iT=ce("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
|
|
332
|
-
* @license lucide-react v0.303.0 - ISC
|
|
333
|
-
*
|
|
334
|
-
* This source code is licensed under the ISC license.
|
|
335
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
-
*/const oT=ce("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
337
|
-
* @license lucide-react v0.303.0 - ISC
|
|
338
|
-
*
|
|
339
|
-
* This source code is licensed under the ISC license.
|
|
340
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
-
*/const aT=ce("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
342
|
-
* @license lucide-react v0.303.0 - ISC
|
|
343
|
-
*
|
|
344
|
-
* This source code is licensed under the ISC license.
|
|
345
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
-
*/const sT=ce("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
347
|
-
* @license lucide-react v0.303.0 - ISC
|
|
348
|
-
*
|
|
349
|
-
* This source code is licensed under the ISC license.
|
|
350
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
-
*/const lT=ce("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
|
|
352
|
-
* @license lucide-react v0.303.0 - ISC
|
|
353
|
-
*
|
|
354
|
-
* This source code is licensed under the ISC license.
|
|
355
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
-
*/const uT=ce("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
|
|
357
|
-
* @license lucide-react v0.303.0 - ISC
|
|
358
|
-
*
|
|
359
|
-
* This source code is licensed under the ISC license.
|
|
360
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
-
*/const cT=ce("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
362
|
-
* @license lucide-react v0.303.0 - ISC
|
|
363
|
-
*
|
|
364
|
-
* This source code is licensed under the ISC license.
|
|
365
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
-
*/const fT=ce("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
367
|
-
* @license lucide-react v0.303.0 - ISC
|
|
368
|
-
*
|
|
369
|
-
* This source code is licensed under the ISC license.
|
|
370
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
-
*/const tm=ce("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
372
|
-
* @license lucide-react v0.303.0 - ISC
|
|
373
|
-
*
|
|
374
|
-
* This source code is licensed under the ISC license.
|
|
375
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
-
*/const dT=ce("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
377
|
-
* @license lucide-react v0.303.0 - ISC
|
|
378
|
-
*
|
|
379
|
-
* This source code is licensed under the ISC license.
|
|
380
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
-
*/const vO=ce("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
382
|
-
* @license lucide-react v0.303.0 - ISC
|
|
383
|
-
*
|
|
384
|
-
* This source code is licensed under the ISC license.
|
|
385
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
386
|
-
*/const pT=ce("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),hT={},T0=e=>{let t;const r=new Set,n=(f,c)=>{const d=typeof f=="function"?f(t):f;if(!Object.is(d,t)){const p=t;t=c??(typeof d!="object"||d===null)?d:Object.assign({},t,d),r.forEach(m=>m(t,p))}},i=()=>t,l={setState:n,getState:i,getInitialState:()=>u,subscribe:f=>(r.add(f),()=>r.delete(f)),destroy:()=>{(hT?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},u=t=e(n,i,l);return l},yT=e=>e?T0(e):T0;var mO={exports:{}},gO={},bO={exports:{}},xO={};/**
|
|
387
|
-
* @license React
|
|
388
|
-
* use-sync-external-store-shim.production.js
|
|
389
|
-
*
|
|
390
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
391
|
-
*
|
|
392
|
-
* This source code is licensed under the MIT license found in the
|
|
393
|
-
* LICENSE file in the root directory of this source tree.
|
|
394
|
-
*/var wo=$;function vT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mT=typeof Object.is=="function"?Object.is:vT,gT=wo.useState,bT=wo.useEffect,xT=wo.useLayoutEffect,wT=wo.useDebugValue;function ST(e,t){var r=t(),n=gT({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return xT(function(){i.value=r,i.getSnapshot=t,Wd(i)&&o({inst:i})},[e,r,t]),bT(function(){return Wd(i)&&o({inst:i}),e(function(){Wd(i)&&o({inst:i})})},[e]),wT(r),r}function Wd(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mT(e,r)}catch{return!0}}function _T(e,t){return t()}var OT=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_T:ST;xO.useSyncExternalStore=wo.useSyncExternalStore!==void 0?wo.useSyncExternalStore:OT;bO.exports=xO;var AT=bO.exports;/**
|
|
395
|
-
* @license React
|
|
396
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
397
|
-
*
|
|
398
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
399
|
-
*
|
|
400
|
-
* This source code is licensed under the MIT license found in the
|
|
401
|
-
* LICENSE file in the root directory of this source tree.
|
|
402
|
-
*/var vf=$,PT=AT;function ET(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kT=typeof Object.is=="function"?Object.is:ET,jT=PT.useSyncExternalStore,$T=vf.useRef,TT=vf.useEffect,CT=vf.useMemo,NT=vf.useDebugValue;gO.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=$T(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=CT(function(){function l(p){if(!u){if(u=!0,f=p,p=n(p),i!==void 0&&a.hasValue){var m=a.value;if(i(m,p))return c=m}return c=p}if(m=c,kT(f,p))return m;var h=n(p);return i!==void 0&&i(m,h)?(f=p,m):(f=p,c=h)}var u=!1,f,c,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=jT(e,o[0],o[1]);return TT(function(){a.hasValue=!0,a.value=s},[s]),NT(s),s};mO.exports=gO;var MT=mO.exports;const IT=de(MT),wO={},{useDebugValue:DT}=P,{useSyncExternalStoreWithSelector:RT}=IT;let C0=!1;const LT=e=>e;function BT(e,t=LT,r){(wO?"production":void 0)!=="production"&&r&&!C0&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),C0=!0);const n=RT(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return DT(n),n}const zT=e=>{(wO?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?yT(e):e,r=(n,i)=>BT(t,n,i);return Object.assign(r,t),r},FT=e=>zT;var SO=Symbol.for("immer-nothing"),N0=Symbol.for("immer-draftable"),zt=Symbol.for("immer-state");function hr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vs=Object.getPrototypeOf;function So(e){return!!e&&!!e[zt]}function mi(e){var t;return e?_O(e)||Array.isArray(e)||!!e[N0]||!!((t=e.constructor)!=null&&t[N0])||sl(e)||gf(e):!1}var UT=Object.prototype.constructor.toString(),M0=new WeakMap;function _O(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=M0.get(r);return n===void 0&&(n=Function.toString.call(r),M0.set(r,n)),n===UT}function Vu(e,t,r=!0){mf(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function mf(e){const t=e[zt];return t?t.type_:Array.isArray(e)?1:sl(e)?2:gf(e)?3:0}function xh(e,t){return mf(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function OO(e,t,r){const n=mf(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function WT(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function sl(e){return e instanceof Map}function gf(e){return e instanceof Set}function Yn(e){return e.copy_||e.base_}function wh(e,t){if(sl(e))return new Map(e);if(gf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=_O(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[zt];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const a=i[o],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(vs(e),n)}else{const n=vs(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function rm(e,t=!1){return bf(e)||So(e)||!mi(e)||(mf(e)>1&&Object.defineProperties(e,{set:Bl,add:Bl,clear:Bl,delete:Bl}),Object.freeze(e),t&&Object.values(e).forEach(r=>rm(r,!0))),e}function HT(){hr(2)}var Bl={value:HT};function bf(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var VT={};function gi(e){const t=VT[e];return t||hr(0,e),t}var ms;function AO(){return ms}function KT(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function I0(e,t){t&&(gi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Sh(e){_h(e),e.drafts_.forEach(qT),e.drafts_=null}function _h(e){e===ms&&(ms=e.parent_)}function D0(e){return ms=KT(ms,e)}function qT(e){const t=e[zt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function R0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[zt].modified_&&(Sh(t),hr(4)),mi(e)&&(e=Ku(t,e),t.parent_||qu(t,e)),t.patches_&&gi("Patches").generateReplacementPatches_(r[zt].base_,e,t.patches_,t.inversePatches_)):e=Ku(t,r,[]),Sh(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==SO?e:void 0}function Ku(e,t,r){if(bf(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[zt];if(!i)return Vu(t,(o,a)=>L0(e,i,t,o,a,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return qu(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let a=o,s=!1;i.type_===3&&(a=new Set(o),o.clear(),s=!0),Vu(a,(l,u)=>L0(e,i,o,l,u,r,s),n),qu(e,o,!1),r&&e.patches_&&gi("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function L0(e,t,r,n,i,o,a){if(i==null||typeof i!="object"&&!a)return;const s=bf(i);if(!(s&&!a)){if(So(i)){const l=o&&t&&t.type_!==3&&!xh(t.assigned_,n)?o.concat(n):void 0,u=Ku(e,i,l);if(OO(r,n,u),So(u))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(mi(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&s)return;Ku(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(sl(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&qu(e,i)}}}function qu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&rm(t,r)}function GT(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:AO(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=nm;r&&(i=[n],o=gs);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var nm={get(e,t){if(t===zt)return e;const r=Yn(e);if(!xh(r,t))return XT(e,r,t);const n=r[t];return e.finalized_||!mi(n)?n:n===Hd(e.base_,t)?(Vd(e),e.copy_[t]=Ah(n,e)):n},has(e,t){return t in Yn(e)},ownKeys(e){return Reflect.ownKeys(Yn(e))},set(e,t,r){const n=PO(Yn(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Hd(Yn(e),t),o=i==null?void 0:i[zt];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(WT(r,i)&&(r!==void 0||xh(e.base_,t)))return!0;Vd(e),Oh(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Hd(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Vd(e),Oh(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Yn(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){hr(11)},getPrototypeOf(e){return vs(e.base_)},setPrototypeOf(){hr(12)}},gs={};Vu(nm,(e,t)=>{gs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});gs.deleteProperty=function(e,t){return gs.set.call(this,e,t,void 0)};gs.set=function(e,t,r){return nm.set.call(this,e[0],t,r,e[0])};function Hd(e,t){const r=e[zt];return(r?Yn(r):e)[t]}function XT(e,t,r){var i;const n=PO(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function PO(e,t){if(!(t in e))return;let r=vs(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=vs(r)}}function Oh(e){e.modified_||(e.modified_=!0,e.parent_&&Oh(e.parent_))}function Vd(e){e.copy_||(e.copy_=wh(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var YT=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const a=this;return function(l=o,...u){return a.produce(l,f=>r.call(this,f,...u))}}typeof r!="function"&&hr(6),n!==void 0&&typeof n!="function"&&hr(7);let i;if(mi(t)){const o=D0(this),a=Ah(t,void 0);let s=!0;try{i=r(a),s=!1}finally{s?Sh(o):_h(o)}return I0(o,n),R0(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===SO&&(i=void 0),this.autoFreeze_&&rm(i,!0),n){const o=[],a=[];gi("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else hr(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,i;return[this.produce(t,r,(a,s)=>{n=a,i=s}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){mi(e)||hr(8),So(e)&&(e=QT(e));const t=D0(this),r=Ah(e,void 0);return r[zt].isManual_=!0,_h(t),r}finishDraft(e,t){const r=e&&e[zt];(!r||!r.isManual_)&&hr(9);const{scope_:n}=r;return I0(n,t),R0(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=gi("Patches").applyPatches_;return So(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Ah(e,t){const r=sl(e)?gi("MapSet").proxyMap_(e,t):gf(e)?gi("MapSet").proxySet_(e,t):GT(e,t);return(t?t.scope_:AO()).drafts_.push(r),r}function QT(e){return So(e)||hr(10,e),EO(e)}function EO(e){if(!mi(e)||bf(e))return e;const t=e[zt];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=wh(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=wh(e,!0);return Vu(r,(i,o)=>{OO(r,i,EO(o))},n),t&&(t.finalized_=!1),r}var ZT=new YT,JT=ZT.produce;const eC=e=>(t,r,n)=>(n.setState=(i,o,...a)=>{const s=typeof i=="function"?JT(i):i;return t(s,o,...a)},e(n.setState,r,n)),tC=eC,rC=()=>{if(typeof window>"u")return 5;try{const e=window.localStorage.getItem("dashboardSettings");if(!e)return 5;const t=JSON.parse(e),r=Number(t.refreshIntervalSeconds??t.refreshInterval??5);return Number.isFinite(r)?Math.min(30,Math.max(2,r)):5}catch{return 5}},B0={metrics:null,isLoadingMetrics:!1,metricsError:null,agents:[],selectedAgentId:null,isLoadingAgents:!1,events:[],eventFilter:"all",eventPage:1,eventPageSize:50,totalEvents:0,topQueries:[],isLoadingCacheStats:!1,isConnected:!1,connectionStatus:"idle",isPaused:!1,selectedEventId:null,debuggerState:null,showDebugger:!1,activeSidePanel:"agents",refreshIntervalSeconds:rC()},Ie=FT()(tC(e=>({...B0,setMetrics:t=>{e(r=>{r.metrics=t,r.isLoadingMetrics=!1,r.metricsError=null})},setMetricsLoading:t=>{e(r=>{r.isLoadingMetrics=t})},setMetricsError:t=>{e(r=>{r.metricsError=t})},setAgents:t=>{e(r=>{r.agents=t,r.isLoadingAgents=!1})},setSelectedAgent:t=>{e(r=>{r.selectedAgentId=t})},addAgent:t=>{e(r=>{r.agents.find(i=>i.id===t.id)||r.agents.push(t)})},removeAgent:t=>{e(r=>{r.agents=r.agents.filter(n=>n.id!==t),r.selectedAgentId===t&&(r.selectedAgentId=null)})},setEvents:t=>{e(r=>{r.events=t})},addEvent:t=>{e(r=>{r.events.unshift(t),r.events.length>1e3&&r.events.pop()})},setEventFilter:t=>{e(r=>{r.eventFilter=t==="all"?"all":t,r.eventPage=1})},setEventPage:t=>{e(r=>{r.eventPage=t})},setTotalEvents:t=>{e(r=>{r.totalEvents=t})},setTopQueries:t=>{e(r=>{r.topQueries=t,r.isLoadingCacheStats=!1})},setConnected:t=>{e(r=>{r.isConnected=t})},setConnectionStatus:t=>{e(r=>{r.connectionStatus=t})},setPaused:t=>{e(r=>{r.isPaused=t})},setSelectedEvent:t=>{e(r=>{r.selectedEventId=t})},setDebuggerState:t=>{e(r=>{r.debuggerState=t})},setShowDebugger:t=>{e(r=>{r.showDebugger=t})},setActiveSidePanel:t=>{e(r=>{r.activeSidePanel=t})},setRefreshIntervalSeconds:t=>{e(r=>{r.refreshIntervalSeconds=Math.min(30,Math.max(2,t))})},reset:()=>{e(()=>B0)}}))),Tr=Object.create(null);Tr.open="0";Tr.close="1";Tr.ping="2";Tr.pong="3";Tr.message="4";Tr.upgrade="5";Tr.noop="6";const yu=Object.create(null);Object.keys(Tr).forEach(e=>{yu[Tr[e]]=e});const Ph={type:"error",data:"parser error"},kO=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",jO=typeof ArrayBuffer=="function",$O=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,im=({type:e,data:t},r,n)=>kO&&t instanceof Blob?r?n(t):z0(t,n):jO&&(t instanceof ArrayBuffer||$O(t))?r?n(t):z0(new Blob([t]),n):n(Tr[e]+(t||"")),z0=(e,t)=>{const r=new FileReader;return r.onload=function(){const n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function F0(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Kd;function nC(e,t){if(kO&&e.data instanceof Blob)return e.data.arrayBuffer().then(F0).then(t);if(jO&&(e.data instanceof ArrayBuffer||$O(e.data)))return t(F0(e.data));im(e,!1,r=>{Kd||(Kd=new TextEncoder),t(Kd.encode(r))})}const U0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ia=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<U0.length;e++)Ia[U0.charCodeAt(e)]=e;const iC=e=>{let t=e.length*.75,r=e.length,n,i=0,o,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(n=0;n<r;n+=4)o=Ia[e.charCodeAt(n)],a=Ia[e.charCodeAt(n+1)],s=Ia[e.charCodeAt(n+2)],l=Ia[e.charCodeAt(n+3)],f[i++]=o<<2|a>>4,f[i++]=(a&15)<<4|s>>2,f[i++]=(s&3)<<6|l&63;return u},oC=typeof ArrayBuffer=="function",om=(e,t)=>{if(typeof e!="string")return{type:"message",data:TO(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:aC(e.substring(1),t)}:yu[r]?e.length>1?{type:yu[r],data:e.substring(1)}:{type:yu[r]}:Ph},aC=(e,t)=>{if(oC){const r=iC(e);return TO(r,t)}else return{base64:!0,data:e}},TO=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},CO="",sC=(e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach((o,a)=>{im(o,!1,s=>{n[a]=s,++i===r&&t(n.join(CO))})})},lC=(e,t)=>{const r=e.split(CO),n=[];for(let i=0;i<r.length;i++){const o=om(r[i],t);if(n.push(o),o.type==="error")break}return n};function uC(){return new TransformStream({transform(e,t){nC(e,r=>{const n=r.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,n)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(r)})}})}let qd;function zl(e){return e.reduce((t,r)=>t+r.length,0)}function Fl(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function cC(e,t){qd||(qd=new TextDecoder);const r=[];let n=0,i=-1,o=!1;return new TransformStream({transform(a,s){for(r.push(a);;){if(n===0){if(zl(r)<1)break;const l=Fl(r,1);o=(l[0]&128)===128,i=l[0]&127,i<126?n=3:i===126?n=1:n=2}else if(n===1){if(zl(r)<2)break;const l=Fl(r,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(zl(r)<8)break;const l=Fl(r,8),u=new DataView(l.buffer,l.byteOffset,l.length),f=u.getUint32(0);if(f>Math.pow(2,21)-1){s.enqueue(Ph);break}i=f*Math.pow(2,32)+u.getUint32(4),n=3}else{if(zl(r)<i)break;const l=Fl(r,i);s.enqueue(om(o?l:qd.decode(l),t)),n=0}if(i===0||i>e){s.enqueue(Ph);break}}}})}const NO=4;function ze(e){if(e)return fC(e)}function fC(e){for(var t in ze.prototype)e[t]=ze.prototype[t];return e}ze.prototype.on=ze.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ze.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ze.prototype.off=ze.prototype.removeListener=ze.prototype.removeAllListeners=ze.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,i=0;i<r.length;i++)if(n=r[i],n===t||n.fn===t){r.splice(i,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ze.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this};ze.prototype.emitReserved=ze.prototype.emit;ze.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ze.prototype.hasListeners=function(e){return!!this.listeners(e).length};const xf=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Xt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),dC="arraybuffer";function MO(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}const pC=Xt.setTimeout,hC=Xt.clearTimeout;function wf(e,t){t.useNativeTimers?(e.setTimeoutFn=pC.bind(Xt),e.clearTimeoutFn=hC.bind(Xt)):(e.setTimeoutFn=Xt.setTimeout.bind(Xt),e.clearTimeoutFn=Xt.clearTimeout.bind(Xt))}const yC=1.33;function vC(e){return typeof e=="string"?mC(e):Math.ceil((e.byteLength||e.size)*yC)}function mC(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function IO(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gC(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function bC(e){let t={},r=e.split("&");for(let n=0,i=r.length;n<i;n++){let o=r[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class xC extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}}class am extends ze{constructor(t){super(),this.writable=!1,wf(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new xC(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=om(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const r=gC(t);return r.length?"?"+r:""}}class wC extends am{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};lC(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,sC(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=IO()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}}let DO=!1;try{DO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const SC=DO;function _C(){}class OC extends wC{constructor(t){if(super(t),typeof location<"u"){const r=location.protocol==="https:";let n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){const n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}}class kr extends ze{constructor(t,r,n){super(),this.createRequest=t,wf(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;const r=MO(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var i;n.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=kr.requestsCount++,kr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=_C,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete kr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}kr.requestsCount=0;kr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",W0);else if(typeof addEventListener=="function"){const e="onpagehide"in Xt?"pagehide":"unload";addEventListener(e,W0,!1)}}function W0(){for(let e in kr.requests)kr.requests.hasOwnProperty(e)&&kr.requests[e].abort()}const AC=function(){const e=RO({xdomain:!1});return e&&e.responseType!==null}();class PC extends OC{constructor(t){super(t);const r=t&&t.forceBase64;this.supportsBinary=AC&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new kr(RO,this.uri(),t)}}function RO(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||SC))return new XMLHttpRequest}catch{}if(!t)try{return new Xt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const LO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class EC extends am{get name(){return"websocket"}doOpen(){const t=this.uri(),r=this.opts.protocols,n=LO?{}:MO(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],i=r===t.length-1;im(n,this.supportsBinary,o=>{try{this.doWrite(n,o)}catch{}i&&xf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=IO()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}}const Gd=Xt.WebSocket||Xt.MozWebSocket;class kC extends EC{createSocket(t,r,n){return LO?new Gd(t,r,n):r?new Gd(t,r):new Gd(t)}doWrite(t,r){this.ws.send(r)}}class jC extends am{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const r=cC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),i=uC();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{n.read().then(({done:s,value:l})=>{s||(this.onPacket(l),o())}).catch(s=>{})};o();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],i=r===t.length-1;this._writer.write(n).then(()=>{i&&xf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const $C={websocket:kC,webtransport:jC,polling:PC},TC=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,CC=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Eh(e){if(e.length>8e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=TC.exec(e||""),o={},a=14;for(;a--;)o[CC[a]]=i[a]||"";return r!=-1&&n!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=NC(o,o.path),o.queryKey=MC(o,o.query),o}function NC(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function MC(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,i,o){i&&(r[i]=o)}),r}const kh=typeof addEventListener=="function"&&typeof removeEventListener=="function",vu=[];kh&&addEventListener("offline",()=>{vu.forEach(e=>e())},!1);class Tn extends ze{constructor(t,r){if(super(),this.binaryType=dC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){const n=Eh(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Eh(r.host).host);wf(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{const i=n.prototype.name;this.transports.push(i),this._transportsByName[i]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=bC(this.opts.query)),kh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},vu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=NO,r.transport=t,this.id&&(r.sid=this.id);const n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Tn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Tn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){const i=this.writeBuffer[n].data;if(i&&(r+=vC(i)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,xf(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,i){if(typeof r=="function"&&(i=r,r=void 0),typeof n=="function"&&(i=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const o={type:t,data:r,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Tn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),kh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=vu.indexOf(this._offlineEventListener);n!==-1&&vu.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}}Tn.protocol=NO;class IC extends Tn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;Tn.priorWebsocketSuccess=!1;const i=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",c=>{if(!n)if(c.type==="pong"&&c.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Tn.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function o(){n||(n=!0,f(),r.close(),r=null)}const a=c=>{const d=new Error("probe error: "+c);d.transport=r.name,o(),this.emitReserved("upgradeError",d)};function s(){a("transport closed")}function l(){a("socket closed")}function u(c){r&&c.name!==r.name&&o()}const f=()=>{r.removeListener("open",i),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",u)};r.once("open",i),r.once("error",a),r.once("close",s),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}}let DC=class extends IC{constructor(t,r={}){const n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(i=>$C[i]).filter(i=>!!i)),super(t,n)}};function RC(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Eh(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}const LC=typeof ArrayBuffer=="function",BC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,BO=Object.prototype.toString,zC=typeof Blob=="function"||typeof Blob<"u"&&BO.call(Blob)==="[object BlobConstructor]",FC=typeof File=="function"||typeof File<"u"&&BO.call(File)==="[object FileConstructor]";function sm(e){return LC&&(e instanceof ArrayBuffer||BC(e))||zC&&e instanceof Blob||FC&&e instanceof File}function mu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(mu(e[r]))return!0;return!1}if(sm(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return mu(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&mu(e[r]))return!0;return!1}function UC(e){const t=[],r=e.data,n=e;return n.data=jh(r,t),n.attachments=t.length,{packet:n,buffers:t}}function jh(e,t){if(!e)return e;if(sm(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=jh(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=jh(e[n],t));return r}return e}function WC(e,t){return e.data=$h(e.data,t),delete e.attachments,e}function $h(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=$h(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=$h(e[r],t));return e}const HC=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var ie;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ie||(ie={}));class VC{constructor(t){this.replacer=t}encode(t){return(t.type===ie.EVENT||t.type===ie.ACK)&&mu(t)?this.encodeAsBinary({type:t.type===ie.EVENT?ie.BINARY_EVENT:ie.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===ie.BINARY_EVENT||t.type===ie.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=UC(t),n=this.encodeAsString(r.packet),i=r.buffers;return i.unshift(n),i}}class lm extends ze{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);const n=r.type===ie.BINARY_EVENT;n||r.type===ie.BINARY_ACK?(r.type=n?ie.EVENT:ie.ACK,this.reconstructor=new KC(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(sm(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const n={type:Number(t.charAt(0))};if(ie[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ie.BINARY_EVENT||n.type===ie.BINARY_ACK){const o=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const a=t.substring(o,r);if(a!=Number(a)||t.charAt(r)!=="-")throw new Error("Illegal attachments");const s=Number(a);if(!qC(s)||s<0)throw new Error("Illegal attachments");if(s>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=s}if(t.charAt(r+1)==="/"){const o=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(o,r)}else n.nsp="/";const i=t.charAt(r+1);if(i!==""&&Number(i)==i){const o=r+1;for(;++r;){const a=t.charAt(r);if(a==null||Number(a)!=a){--r;break}if(r===t.length)break}n.id=Number(t.substring(o,r+1))}if(t.charAt(++r)){const o=this.tryParse(t.substr(r));if(lm.isPayloadValid(n.type,o))n.data=o;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case ie.CONNECT:return H0(r);case ie.DISCONNECT:return r===void 0;case ie.CONNECT_ERROR:return typeof r=="string"||H0(r);case ie.EVENT:case ie.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&HC.indexOf(r[0])===-1);case ie.ACK:case ie.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class KC{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=WC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const qC=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function H0(e){return Object.prototype.toString.call(e)==="[object Object]"}const GC=Object.freeze(Object.defineProperty({__proto__:null,Decoder:lm,Encoder:VC,get PacketType(){return ie}},Symbol.toStringTag,{value:"Module"}));function ur(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const XC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class zO extends ze{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[ur(t,"open",this.onopen.bind(this)),ur(t,"packet",this.onpacket.bind(this)),ur(t,"error",this.onerror.bind(this)),ur(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,i,o;if(XC.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const a={type:ie.EVENT,data:r};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const f=this.ids++,c=r.pop();this._registerAckCallback(f,c),a.id=f}const s=(i=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,r){var n;const i=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(i===void 0){this.acks[t]=r;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);r.call(this,new Error("operation has timed out"))},i),a=(...s)=>{this.io.clearTimeoutFn(o),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((n,i)=>{const o=(a,s)=>a?i(a):n(s);o.withError=!0,r.push(o),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>(this._queue[0],i!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(i)):(this._queue.shift(),r&&r(null,...o)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:ie.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){const n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case ie.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ie.EVENT:case ie.BINARY_EVENT:this.onevent(t);break;case ie.ACK:case ie.BINARY_ACK:this.onack(t);break;case ie.DISCONNECT:this.ondisconnect();break;case ie.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let n=!1;return function(...i){n||(n=!0,r.packet({type:ie.ACK,id:t,data:i}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ie.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const n of r)n.apply(this,t.data)}}}function Qo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Qo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+r:e-r}return Math.min(e,this.max)|0};Qo.prototype.reset=function(){this.attempts=0};Qo.prototype.setMin=function(e){this.ms=e};Qo.prototype.setMax=function(e){this.max=e};Qo.prototype.setJitter=function(e){this.jitter=e};class Th extends ze{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,wf(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Qo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const i=r.parser||GC;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new DC(this.uri,this.opts);const r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const i=ur(r,"open",function(){n.onopen(),t&&t()}),o=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=ur(r,"error",o);if(this._timeout!==!1){const s=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(ur(t,"ping",this.onping.bind(this)),ur(t,"data",this.ondata.bind(this)),ur(t,"error",this.onerror.bind(this)),ur(t,"close",this.onclose.bind(this)),ur(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){xf(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new zO(this,t,r),this.nsps[t]=n),n}_destroy(t){const r=Object.keys(this.nsps);for(const n of r)if(this.nsps[n].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ba={};function gu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=RC(e,t.path||"/socket.io"),n=r.source,i=r.id,o=r.path,a=ba[i]&&o in ba[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return s?l=new Th(n,t):(ba[i]||(ba[i]=new Th(n,t)),l=ba[i]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(gu,{Manager:Th,Socket:zO,io:gu,connect:gu});const dn="http://localhost:3001",YC="http://localhost:8080",QC=e=>({"agent:joined":"agent_join","agent:left":"agent_leave","agent:error":"error","cache:hit":"cache_hit","cache:miss":"cache_miss","debugger:paused":"debugger_paused","debugger:resumed":"debugger_resumed"})[e]||e.replace(/:/g,"_"),Mi=e=>({...e,type:QC(e.type)});function um(e={}){const t=Ie(),r=e.enableSocket??!1,n={current:null};$.useEffect(()=>{if(r){t.setConnectionStatus("connecting");try{n.current=gu(YC,{reconnection:!0,reconnectionDelay:1e3,reconnectionDelayMax:5e3,reconnectionAttempts:5}),t.setConnected(!0),t.setConnectionStatus("connected"),n.current.on("connect",()=>{var d;console.log("โ Connected to Dashboard API via WebSocket"),t.setConnected(!0),t.setConnectionStatus("connected"),(d=n.current)==null||d.emit("subscribe:metrics")}),n.current.on("connect_error",()=>{t.setConnected(!0),t.setConnectionStatus("connected")}),n.current.on("metrics:update",d=>{t.setMetrics({totalRequests:d.totalRequests,cacheHits:d.cacheHits,cacheMisses:d.cacheMisses,hitRate:parseFloat(d.hitRate),averageLatency:d.averageLatency,tokensSaved:d.tokensSaved,costSaved:d.costSaved,activeAgents:d.activeAgents||0,totalAgents:d.totalAgents||0,uptime:d.uptime||0,timestamp:d.timestamp})}),n.current.on("agent:joined",d=>{console.log("Agent joined:",d),d.capabilities&&t.addAgent({id:d.agentId,name:d.agentName,status:"active",capabilities:d.capabilities,tasksCompleted:0,lastSeen:new Date().toISOString(),errorCount:0,cacheHitRate:0}),t.addEvent(Mi(d))}),n.current.on("agent:left",d=>{console.log("Agent left:",d),t.removeAgent(d.agentId),t.addEvent(Mi(d))}),n.current.on("agent:error",d=>{console.log("Agent error:",d),t.addEvent(Mi(d)),Pe.error(`Agent ${d.agentId} error: ${d.errorMessage}`)}),n.current.on("cache:hit",d=>{t.addEvent(Mi(d))}),n.current.on("cache:miss",d=>{t.addEvent(Mi(d))}),n.current.on("debugger:paused",()=>{t.setPaused(!0)}),n.current.on("debugger:resumed",()=>{t.setPaused(!1)}),n.current.on("disconnect",()=>{console.log("โ Disconnected from Dashboard API"),t.setConnected(!1),t.setConnectionStatus("disconnected")}),n.current.on("error",d=>{console.error("WebSocket error:",d),Pe.error("WebSocket connection error")})}catch(d){console.error("Failed to initialize WebSocket:",d),t.setConnectionStatus("disconnected")}return()=>{n.current&&n.current.disconnect()}}},[r]);const i=$.useCallback(async()=>{try{t.setMetricsLoading(!0);const d=await fetch(`${dn}/api/metrics`);if(!d.ok)throw new Error("Failed to fetch metrics");const p=await d.json();t.setConnectionStatus("connected"),t.setConnected(!0),t.setMetrics({totalRequests:p.totalRequests,cacheHits:p.cacheHits,cacheMisses:p.cacheMisses,hitRate:parseFloat(p.hitRate),averageLatency:p.averageLatency,tokensSaved:p.tokensSaved,costSaved:p.costSaved,activeAgents:p.activeAgents,totalAgents:p.totalAgents,uptime:p.uptime||0,timestamp:p.timestamp})}catch(d){console.error("Error fetching metrics:",d),t.setMetricsError(d.message)}},[]),o=$.useCallback(async()=>{try{const d=await fetch(`${dn}/api/agents`);if(!d.ok)throw new Error("Failed to fetch agents");const p=await d.json();t.setAgents(p.agents)}catch(d){console.error("Error fetching agents:",d),Pe.error("Failed to fetch agents")}},[]),a=$.useCallback(async(d=1,p=50)=>{try{const m=await fetch(`${dn}/api/events?page=${d}&limit=${p}`);if(!m.ok)throw new Error("Failed to fetch events");const h=await m.json();t.setEvents((h.events||[]).map(Mi)),t.setTotalEvents(h.pagination.total)}catch(m){console.error("Error fetching events:",m),Pe.error("Failed to fetch events")}},[]),s=$.useCallback(async()=>{try{const d=await fetch(`${dn}/api/cache-stats`);if(!d.ok)throw new Error("Failed to fetch cache stats");const p=await d.json();t.setTopQueries(p.topQueries)}catch(d){console.error("Error fetching cache stats:",d),Pe.error("Failed to fetch cache stats")}},[]),l=$.useCallback(async()=>{try{const d=await fetch(`${dn}/api/cache/clear`,{method:"POST"});if(!d.ok)throw new Error("Failed to clear cache");const p=await d.json();Pe.success(`Cleared ${p.clearedEntries} cache entries`),i()}catch(d){console.error("Error clearing cache:",d),Pe.error("Failed to clear cache")}},[]),u=$.useCallback(async()=>{try{if(!(await fetch(`${dn}/api/debugger/pause`,{method:"POST"})).ok)throw new Error("Failed to pause");t.setPaused(!0),Pe.success("Paused agent processing")}catch(d){console.error("Error pausing:",d),Pe.error("Failed to pause")}},[]),f=$.useCallback(async()=>{try{if(!(await fetch(`${dn}/api/debugger/resume`,{method:"POST"})).ok)throw new Error("Failed to resume");t.setPaused(!1),Pe.success("Resumed agent processing")}catch(d){console.error("Error resuming:",d),Pe.error("Failed to resume")}},[]),c=$.useCallback(async d=>{try{const p=await fetch(`${dn}/api/debugger/rewind`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventId:d})});if(!p.ok)throw new Error("Failed to rewind");const m=await p.json();t.setDebuggerState(m.state),Pe.success("Rewound to selected event")}catch(p){console.error("Error rewinding:",p),Pe.error("Failed to rewind")}},[]);return{fetchMetrics:i,fetchAgents:o,fetchEvents:a,fetchCacheStats:s,clearCache:l,pauseDebugger:u,resumeDebugger:f,rewindToEvent:c}}const ZC=({isOpen:e,onClose:t})=>{const r=Ie(d=>d.metrics),n=Ie(d=>d.refreshIntervalSeconds),i=Ie(d=>d.setRefreshIntervalSeconds),[o,a]=$.useState(n),s=Ie(d=>d.events),l=Ie(d=>d.setEvents);$.useEffect(()=>{e&&a(n)},[e,n]);const u=()=>{i(o),localStorage.setItem("dashboardSettings",JSON.stringify({refreshIntervalSeconds:o})),Pe.success("Settings saved!"),t()},f=()=>{if(!r){Pe.error("No metrics to export");return}const d=[["Metric","Value"],["Total Requests",r.totalRequests||0],["Cache Hits",r.cacheHits||0],["Cache Misses",r.cacheMisses||0],["Hit Rate (%)",((r.hitRate||0)*100).toFixed(2)],["Avg Latency (ms)",r.averageLatency||0],["Tokens Saved",r.tokensSaved||0],["Cost Saved ($)",(r.costSaved||0).toFixed(2)],["Active Agents",r.activeAgents||0],["Total Agents",r.totalAgents||0],["Uptime (ms)",r.uptime||0]].map(g=>g.join(",")).join(`
|
|
403
|
-
`),p=new Blob([d],{type:"text/csv"}),m=window.URL.createObjectURL(p),h=document.createElement("a");h.href=m,h.download=`lemma-metrics-${new Date().toISOString().split("T")[0]}.csv`,document.body.appendChild(h),h.click(),window.URL.revokeObjectURL(m),document.body.removeChild(h),Pe.success("Metrics exported!")},c=()=>{l([]),Pe.success("Event log cleared")};return e?S.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:S.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-md w-full mx-4",children:[S.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 flex items-center justify-between",children:[S.jsx("h2",{className:"text-lg font-bold text-gray-900",children:"โ๏ธ Settings"}),S.jsx("button",{onClick:t,className:"p-1 hover:bg-gray-100 rounded transition",children:S.jsx(vO,{size:20,className:"text-gray-600"})})]}),S.jsxs("div",{className:"p-6 space-y-6",children:[S.jsxs("div",{children:[S.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-3",children:"๐ Dashboard Refresh Interval"}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("input",{type:"range",min:"2",max:"30",value:o,onChange:d=>a(Number(d.target.value)),className:"flex-1"}),S.jsxs("span",{className:"text-sm font-semibold text-gray-600 w-16 text-right",children:[o,"s"]})]}),S.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"How often to fetch updated metrics from the server"})]}),S.jsx("hr",{className:"border-gray-200"}),S.jsxs("button",{onClick:f,className:"w-full flex items-center justify-center gap-2 px-4 py-3 bg-blue-50 hover:bg-blue-100 text-blue-600 rounded-lg font-medium transition",children:[S.jsx(Q$,{size:16}),"๐ฅ Export Metrics as CSV"]}),S.jsxs("button",{onClick:c,className:"w-full flex items-center justify-center gap-2 px-4 py-3 bg-red-50 hover:bg-red-100 text-red-600 rounded-lg font-medium transition",children:[S.jsx(fT,{size:16}),"๐๏ธ Clear Event Log (",s.length," events)"]}),S.jsx("hr",{className:"border-gray-200"}),S.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[S.jsx("h3",{className:"text-xs font-semibold text-gray-600 uppercase mb-2",children:"API Status"}),S.jsxs("div",{className:"space-y-1 text-xs text-gray-600",children:[S.jsxs("div",{children:["API: ",S.jsx("span",{className:"text-green-600 font-semibold",children:"http://localhost:3001"})]}),S.jsxs("div",{children:["WS: ",S.jsx("span",{className:"text-green-600 font-semibold",children:"ws://localhost:3001"})]}),S.jsxs("div",{children:["Dashboard: ",S.jsx("span",{className:"text-green-600 font-semibold",children:"localhost:5173"})]})]})]})]}),S.jsxs("div",{className:"px-6 py-4 border-t border-gray-200 flex gap-3",children:[S.jsx("button",{onClick:t,className:"flex-1 px-4 py-2 bg-gray-100 hover:bg-gray-200 text-gray-900 rounded font-medium transition",children:"Cancel"}),S.jsx("button",{onClick:u,className:"flex-1 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded font-medium transition",children:"Save Settings"})]})]})}):null},JC={idle:{label:"Standby",description:"Waiting to connect",dot:"bg-gray-400",badge:"bg-gray-100/20 border-gray-400/30 text-gray-200",pulse:!1},connecting:{label:"Connecting",description:"Establishing connectionโฆ",dot:"bg-amber-400",badge:"bg-amber-400/20 border-amber-300/40 text-amber-200",pulse:!0},connected:{label:"Live",description:"System is running",dot:"bg-emerald-400",badge:"bg-emerald-400/20 border-emerald-300/40 text-emerald-200",pulse:!0},disconnected:{label:"Offline",description:"Connection lost",dot:"bg-red-400",badge:"bg-red-400/20 border-red-400/40 text-red-200",pulse:!1}},eN=()=>{const[e,t]=$.useState(!1),r=Ie(o=>o.connectionStatus),{clearCache:n}=um({enableSocket:!1}),i=JC[r];return S.jsxs(S.Fragment,{children:[S.jsxs("header",{className:"bg-gradient-to-r from-indigo-700 via-indigo-600 to-violet-600 px-6 py-4 shadow-lg border-b border-indigo-800/30 relative overflow-hidden",children:[S.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[S.jsx("div",{className:"absolute -top-8 -right-8 w-40 h-40 bg-white/5 rounded-full"}),S.jsx("div",{className:"absolute top-2 right-32 w-16 h-16 bg-white/5 rounded-full"})]}),S.jsxs("div",{className:"flex items-center justify-between relative",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx("div",{className:"w-10 h-10 bg-white/15 backdrop-blur rounded-xl flex items-center justify-center shadow-inner border border-white/20",children:S.jsx(V$,{className:"w-5 h-5 text-white"})}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-xl font-black text-white tracking-tight leading-none",children:"Lemma"}),S.jsx("p",{className:"text-xs text-indigo-200 mt-0.5 font-medium",children:"AI Agent Orchestration Dashboard"})]}),S.jsx("div",{className:"hidden sm:block h-8 w-px bg-white/20 mx-1"}),S.jsxs("div",{className:`hidden sm:flex items-center gap-2 px-3.5 py-1.5 rounded-full border ${i.badge} backdrop-blur-sm`,children:[S.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${i.dot} ${i.pulse?"animate-pulse":""}`}),S.jsx("span",{className:"text-xs font-bold tracking-wide",children:i.label})]})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("button",{onClick:()=>n(),className:"hidden sm:inline-flex items-center gap-1.5 px-3 py-2 text-xs font-semibold text-indigo-100 bg-white/10 hover:bg-white/20 border border-white/20 hover:border-white/30 rounded-lg transition-all duration-200 backdrop-blur-sm",title:"Clear all cached answers and reset performance metrics",children:[S.jsx(oT,{className:"w-3.5 h-3.5"}),"Reset Cache"]}),S.jsx("button",{onClick:()=>t(!0),className:"p-2 text-indigo-100 bg-white/10 hover:bg-white/20 border border-white/20 hover:border-white/30 rounded-lg transition-all duration-200 backdrop-blur-sm",title:"Dashboard settings",children:S.jsx(sT,{className:"w-4 h-4"})})]})]})]}),S.jsx(ZC,{isOpen:e,onClose:()=>t(!1)})]})},xa=({title:e,subtitle:t,value:r,icon:n,unit:i,color:o,loading:a,tooltip:s})=>{const l={blue:"from-blue-500/10 to-blue-600/5 border-blue-200/60 hover:border-blue-300 hover:shadow-blue-100",green:"from-emerald-500/10 to-emerald-600/5 border-emerald-200/60 hover:border-emerald-300 hover:shadow-emerald-100",purple:"from-violet-500/10 to-violet-600/5 border-violet-200/60 hover:border-violet-300 hover:shadow-violet-100",orange:"from-amber-500/10 to-amber-600/5 border-amber-200/60 hover:border-amber-300 hover:shadow-amber-100"},u={blue:"from-blue-500 to-blue-600 shadow-blue-200",green:"from-emerald-500 to-emerald-600 shadow-emerald-200",purple:"from-violet-500 to-violet-600 shadow-violet-200",orange:"from-amber-500 to-amber-600 shadow-amber-200"},f={blue:"text-blue-700",green:"text-emerald-700",purple:"text-violet-700",orange:"text-amber-700"};return S.jsxs("div",{className:`bg-gradient-to-br ${l[o]} border rounded-2xl p-4 backdrop-blur-sm transition-all duration-200 hover:shadow-md group relative overflow-hidden`,title:s,children:[S.jsx("div",{className:`absolute -top-4 -right-4 w-20 h-20 rounded-full opacity-10 bg-gradient-to-br ${u[o]}`}),S.jsxs("div",{className:"flex items-center justify-between relative gap-3",children:[S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("p",{className:"text-xs font-bold text-gray-400 uppercase tracking-wider truncate",children:e}),a?S.jsxs("div",{className:"mt-1.5 space-y-1.5",children:[S.jsx("div",{className:"h-6 w-16 bg-gray-200 rounded animate-pulse"}),S.jsx("div",{className:"h-3 w-24 bg-gray-100 rounded animate-pulse"})]}):S.jsxs(S.Fragment,{children:[S.jsxs("p",{className:`text-2xl font-black ${f[o]} mt-1 leading-none`,children:[r,i&&S.jsx("span",{className:"text-sm font-semibold text-gray-400 ml-1",children:i})]}),S.jsx("p",{className:"text-xs text-gray-400 mt-1 leading-tight truncate",children:t})]})]}),S.jsx("div",{className:`bg-gradient-to-br ${u[o]} p-2.5 rounded-xl shadow-sm flex-shrink-0`,children:S.jsx("div",{className:"text-white",children:n})})]})]})},tN=()=>{const e=Ie(a=>a.metrics),t=Ie(a=>a.isLoadingMetrics),[r,n]=$.useState(0);if($.useEffect(()=>{n(0);const a=setInterval(()=>n(s=>s+1),1e3);return()=>clearInterval(a)},[e]),!e)return S.jsx("div",{className:"grid grid-cols-4 gap-4",children:[1,2,3,4].map(a=>S.jsx(xa,{title:"Loading...",subtitle:"Fetching data from server...",value:"-",icon:S.jsx("div",{className:"w-6 h-6"}),color:"blue",loading:!0},a))});const i=e.hitRate*100,o=e.averageLatency<100;return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[S.jsx(xa,{title:"Money Saved",subtitle:"Total API cost avoided thanks to caching",value:`$${e.costSaved.toFixed(2)}`,icon:S.jsx(Y$,{className:"w-5 h-5"}),color:"green",loading:t,tooltip:"Every time a cached response is reused, the system avoids paying the AI provider."}),S.jsx(xa,{title:"Tokens Saved",subtitle:"AI processing units not consumed",value:e.tokensSaved>=1e3?`${(e.tokensSaved/1e3).toFixed(1)}k`:e.tokensSaved.toLocaleString(),icon:S.jsx(pT,{className:"w-5 h-5"}),color:"purple",loading:t,tooltip:"AI models process text in tokens. More tokens saved = less processing cost."}),S.jsx(xa,{title:"Cache Hit Rate",subtitle:`${i.toFixed(1)}% of requests reused cached answers`,value:`${i.toFixed(1)}`,unit:"%",icon:S.jsx(uT,{className:"w-5 h-5"}),color:"orange",loading:t,tooltip:"When an AI agent asks the same question again, the system returns the cached answer instantly."}),S.jsx(xa,{title:"Response Speed",subtitle:`Avg ${e.averageLatency.toFixed(0)}ms โ ${o?"fast":"acceptable"}`,value:e.averageLatency.toFixed(0),unit:"ms",icon:S.jsx(Z$,{className:"w-5 h-5"}),color:"blue",loading:t,tooltip:"How quickly the system responds. Lower is faster. 100ms feels instant."})]}),S.jsx("p",{className:"text-right text-xs text-gray-400 mt-1 pr-0.5",children:t?"Updatingโฆ":`Updated ${r===0?"just now":`${r}s ago`}`})]})},V0={active:{label:"Active",description:"Currently working",dot:"bg-emerald-500",badge:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:S.jsx(j0,{className:"w-3.5 h-3.5"}),ring:"ring-emerald-200"},online:{label:"Active",description:"Currently working",dot:"bg-emerald-500",badge:"bg-emerald-50 text-emerald-700 border-emerald-200",icon:S.jsx(j0,{className:"w-3.5 h-3.5"}),ring:"ring-emerald-200"},idle:{label:"Idle",description:"Waiting for tasks",dot:"bg-amber-400",badge:"bg-amber-50 text-amber-700 border-amber-200",icon:S.jsx(X$,{className:"w-3.5 h-3.5"}),ring:"ring-amber-200"},error:{label:"Error",description:"Needs attention",dot:"bg-red-500",badge:"bg-red-50 text-red-700 border-red-200",icon:S.jsx(dT,{className:"w-3.5 h-3.5"}),ring:"ring-red-200"}},rN={llm:"Language AI",cache:"Caching",search:"Search",embedding:"Embeddings",tools:"Tools",memory:"Memory",vision:"Vision",audio:"Audio"},nN=e=>rN[e.toLowerCase()]||e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),iN=e=>e.substring(0,8).toUpperCase(),oN=()=>{const e=Ie(a=>a.agents),t=Ie(a=>a.selectedAgentId),r=Ie(a=>a.setSelectedAgent),n=e.filter(a=>a.status==="active").length,i=e.filter(a=>a.status==="idle").length,o=e.filter(a=>a.status==="error").length;return e.length===0?S.jsxs("div",{className:"flex flex-col items-center justify-center h-full bg-gradient-to-b from-gray-50 to-white px-6 text-center",children:[S.jsx("div",{className:"w-16 h-16 bg-gray-100 rounded-2xl flex items-center justify-center mb-4",children:S.jsx(k0,{className:"w-8 h-8 text-gray-400"})}),S.jsx("p",{className:"text-gray-800 font-bold text-base",children:"No agents connected"}),S.jsx("p",{className:"text-gray-500 text-sm mt-2 leading-relaxed max-w-[180px]",children:"Start an AI agent to see it appear here and begin processing requests."})]}):S.jsxs("div",{className:"h-full flex flex-col bg-white",children:[S.jsxs("div",{className:"px-5 py-4 border-b border-gray-100 bg-gradient-to-b from-gray-50 to-white sticky top-0 z-10",children:[S.jsx("div",{className:"flex items-center justify-between mb-3",children:S.jsxs("div",{children:[S.jsxs("h2",{className:"text-sm font-bold text-gray-900 flex items-center gap-2",children:[S.jsx(k0,{className:"w-4 h-4 text-indigo-500"}),"AI Agents"]}),S.jsxs("p",{className:"text-xs text-gray-400 mt-0.5",children:[e.length," connected right now"]})]})}),S.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[n>0&&S.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-semibold px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-700 border border-emerald-200",children:[S.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),n," Working"]}),i>0&&S.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-semibold px-2.5 py-1 rounded-full bg-amber-50 text-amber-700 border border-amber-200",children:[S.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400"}),i," Idle"]}),o>0&&S.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-semibold px-2.5 py-1 rounded-full bg-red-50 text-red-700 border border-red-200",children:[S.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500"}),o," Error"]})]})]}),S.jsx("div",{className:"flex-1 overflow-y-auto px-3 py-3 space-y-2",children:e.map(a=>{const s=V0[a.status]||V0.idle,l=t===a.id,u=a.cacheHitRate,c=typeof u=="number"&&!isNaN(u)&&a.tasksCompleted>0?(u*100).toFixed(0):null;return S.jsxs("div",{onClick:()=>r(a.id),className:`p-4 rounded-xl border transition-all duration-200 cursor-pointer select-none ${l?"bg-gradient-to-br from-indigo-50 to-purple-50 border-indigo-300 shadow-md ring-2 ring-indigo-100":"bg-white border-gray-100 hover:border-indigo-200 hover:shadow-md hover:-translate-y-0.5"}`,children:[S.jsxs("div",{className:"flex items-start justify-between gap-2",children:[S.jsxs("div",{className:"flex items-start gap-2.5 min-w-0",children:[S.jsx("div",{className:`w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-400 to-purple-500 flex items-center justify-center flex-shrink-0 text-white text-xs font-black ring-2 ${l?"ring-indigo-300":s.ring}`,children:a.name.charAt(0).toUpperCase()}),S.jsxs("div",{className:"min-w-0",children:[S.jsx("p",{className:"text-sm font-bold text-gray-900 truncate leading-tight",children:a.name}),S.jsxs("p",{className:"text-xs text-gray-400 font-mono truncate mt-0.5",children:["#",iN(a.id)]})]})]}),S.jsxs("span",{className:`inline-flex items-center gap-1 text-xs font-semibold px-2 py-0.5 rounded-full border flex-shrink-0 ${s.badge}`,children:[s.icon,s.label]})]}),S.jsxs("div",{className:"flex items-center gap-2 mt-3",children:[S.jsxs("div",{className:"flex-1 bg-gray-50 rounded-lg px-3 py-1.5 text-center",children:[S.jsx("p",{className:"text-sm font-black text-gray-800",children:a.tasksCompleted}),S.jsx("p",{className:"text-xs text-gray-400",children:"Tasks done"})]}),S.jsxs("div",{className:"flex-1 bg-gray-50 rounded-lg px-3 py-1.5 text-center",children:[S.jsx("p",{className:`text-sm font-black ${c===null?"text-gray-400":parseInt(c)>=50?"text-emerald-600":"text-amber-500"}`,children:c===null?"โ":`${c}%`}),S.jsx("p",{className:"text-xs text-gray-400",children:"Cache rate"})]})]}),a.errorCount>0&&S.jsxs("div",{className:"mt-2.5 flex items-center gap-1.5 text-red-600 bg-red-50 px-3 py-1.5 rounded-lg border border-red-100",children:[S.jsx(H$,{className:"w-3.5 h-3.5 flex-shrink-0"}),S.jsxs("span",{className:"text-xs font-semibold",children:[a.errorCount," error",a.errorCount!==1?"s":""," โ needs review"]})]}),a.capabilities.length>0&&S.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-2.5",children:[a.capabilities.slice(0,3).map(d=>S.jsx("span",{className:"text-xs bg-indigo-50 text-indigo-600 border border-indigo-100 font-medium px-2 py-0.5 rounded-full",children:nN(d)},d)),a.capabilities.length>3&&S.jsxs("span",{className:"text-xs text-gray-400 font-medium self-center",children:["+",a.capabilities.length-3," more"]})]})]},a.id)})}),S.jsx("div",{className:"px-4 py-3 border-t border-gray-100 bg-gray-50",children:S.jsx("p",{className:"text-xs text-gray-400 text-center",children:"Tap an agent to focus its activity"})})]})};function FO(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=FO(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=FO(e))&&(n&&(n+=" "),n+=t);return n}var aN=Array.isArray,kt=aN,sN=typeof xl=="object"&&xl&&xl.Object===Object&&xl,UO=sN,lN=UO,uN=typeof self=="object"&&self&&self.Object===Object&&self,cN=lN||uN||Function("return this")(),Mr=cN,fN=Mr,dN=fN.Symbol,ll=dN,K0=ll,WO=Object.prototype,pN=WO.hasOwnProperty,hN=WO.toString,wa=K0?K0.toStringTag:void 0;function yN(e){var t=pN.call(e,wa),r=e[wa];try{e[wa]=void 0;var n=!0}catch{}var i=hN.call(e);return n&&(t?e[wa]=r:delete e[wa]),i}var vN=yN,mN=Object.prototype,gN=mN.toString;function bN(e){return gN.call(e)}var xN=bN,q0=ll,wN=vN,SN=xN,_N="[object Null]",ON="[object Undefined]",G0=q0?q0.toStringTag:void 0;function AN(e){return e==null?e===void 0?ON:_N:G0&&G0 in Object(e)?wN(e):SN(e)}var an=AN;function PN(e){return e!=null&&typeof e=="object"}var sn=PN,EN=an,kN=sn,jN="[object Symbol]";function $N(e){return typeof e=="symbol"||kN(e)&&EN(e)==jN}var Zo=$N,TN=kt,CN=Zo,NN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,MN=/^\w*$/;function IN(e,t){if(TN(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||CN(e)?!0:MN.test(e)||!NN.test(e)||t!=null&&e in Object(t)}var cm=IN;function DN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bn=DN;const Jo=de(Bn);var RN=an,LN=Bn,BN="[object AsyncFunction]",zN="[object Function]",FN="[object GeneratorFunction]",UN="[object Proxy]";function WN(e){if(!LN(e))return!1;var t=RN(e);return t==zN||t==FN||t==BN||t==UN}var fm=WN;const Z=de(fm);var HN=Mr,VN=HN["__core-js_shared__"],KN=VN,Xd=KN,X0=function(){var e=/[^.]+$/.exec(Xd&&Xd.keys&&Xd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qN(e){return!!X0&&X0 in e}var GN=qN,XN=Function.prototype,YN=XN.toString;function QN(e){if(e!=null){try{return YN.call(e)}catch{}try{return e+""}catch{}}return""}var HO=QN,ZN=fm,JN=GN,eM=Bn,tM=HO,rM=/[\\^$.*+?()[\]{}|]/g,nM=/^\[object .+?Constructor\]$/,iM=Function.prototype,oM=Object.prototype,aM=iM.toString,sM=oM.hasOwnProperty,lM=RegExp("^"+aM.call(sM).replace(rM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uM(e){if(!eM(e)||JN(e))return!1;var t=ZN(e)?lM:nM;return t.test(tM(e))}var cM=uM;function fM(e,t){return e==null?void 0:e[t]}var dM=fM,pM=cM,hM=dM;function yM(e,t){var r=hM(e,t);return pM(r)?r:void 0}var Ei=yM,vM=Ei,mM=vM(Object,"create"),Sf=mM,Y0=Sf;function gM(){this.__data__=Y0?Y0(null):{},this.size=0}var bM=gM;function xM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wM=xM,SM=Sf,_M="__lodash_hash_undefined__",OM=Object.prototype,AM=OM.hasOwnProperty;function PM(e){var t=this.__data__;if(SM){var r=t[e];return r===_M?void 0:r}return AM.call(t,e)?t[e]:void 0}var EM=PM,kM=Sf,jM=Object.prototype,$M=jM.hasOwnProperty;function TM(e){var t=this.__data__;return kM?t[e]!==void 0:$M.call(t,e)}var CM=TM,NM=Sf,MM="__lodash_hash_undefined__";function IM(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=NM&&t===void 0?MM:t,this}var DM=IM,RM=bM,LM=wM,BM=EM,zM=CM,FM=DM;function ea(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ea.prototype.clear=RM;ea.prototype.delete=LM;ea.prototype.get=BM;ea.prototype.has=zM;ea.prototype.set=FM;var UM=ea;function WM(){this.__data__=[],this.size=0}var HM=WM;function VM(e,t){return e===t||e!==e&&t!==t}var dm=VM,KM=dm;function qM(e,t){for(var r=e.length;r--;)if(KM(e[r][0],t))return r;return-1}var _f=qM,GM=_f,XM=Array.prototype,YM=XM.splice;function QM(e){var t=this.__data__,r=GM(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():YM.call(t,r,1),--this.size,!0}var ZM=QM,JM=_f;function eI(e){var t=this.__data__,r=JM(t,e);return r<0?void 0:t[r][1]}var tI=eI,rI=_f;function nI(e){return rI(this.__data__,e)>-1}var iI=nI,oI=_f;function aI(e,t){var r=this.__data__,n=oI(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var sI=aI,lI=HM,uI=ZM,cI=tI,fI=iI,dI=sI;function ta(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ta.prototype.clear=lI;ta.prototype.delete=uI;ta.prototype.get=cI;ta.prototype.has=fI;ta.prototype.set=dI;var Of=ta,pI=Ei,hI=Mr,yI=pI(hI,"Map"),pm=yI,Q0=UM,vI=Of,mI=pm;function gI(){this.size=0,this.__data__={hash:new Q0,map:new(mI||vI),string:new Q0}}var bI=gI;function xI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var wI=xI,SI=wI;function _I(e,t){var r=e.__data__;return SI(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Af=_I,OI=Af;function AI(e){var t=OI(this,e).delete(e);return this.size-=t?1:0,t}var PI=AI,EI=Af;function kI(e){return EI(this,e).get(e)}var jI=kI,$I=Af;function TI(e){return $I(this,e).has(e)}var CI=TI,NI=Af;function MI(e,t){var r=NI(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var II=MI,DI=bI,RI=PI,LI=jI,BI=CI,zI=II;function ra(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ra.prototype.clear=DI;ra.prototype.delete=RI;ra.prototype.get=LI;ra.prototype.has=BI;ra.prototype.set=zI;var hm=ra,VO=hm,FI="Expected a function";function ym(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FI);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ym.Cache||VO),r}ym.Cache=VO;var KO=ym;const UI=de(KO);var WI=KO,HI=500;function VI(e){var t=WI(e,function(n){return r.size===HI&&r.clear(),n}),r=t.cache;return t}var KI=VI,qI=KI,GI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XI=/\\(\\)?/g,YI=qI(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(GI,function(r,n,i,o){t.push(i?o.replace(XI,"$1"):n||r)}),t}),QI=YI;function ZI(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var vm=ZI,Z0=ll,JI=vm,eD=kt,tD=Zo,J0=Z0?Z0.prototype:void 0,eb=J0?J0.toString:void 0;function qO(e){if(typeof e=="string")return e;if(eD(e))return JI(e,qO)+"";if(tD(e))return eb?eb.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var rD=qO,nD=rD;function iD(e){return e==null?"":nD(e)}var GO=iD,oD=kt,aD=cm,sD=QI,lD=GO;function uD(e,t){return oD(e)?e:aD(e,t)?[e]:sD(lD(e))}var XO=uD,cD=Zo;function fD(e){if(typeof e=="string"||cD(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Pf=fD,dD=XO,pD=Pf;function hD(e,t){t=dD(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[pD(t[r++])];return r&&r==n?e:void 0}var mm=hD,yD=mm;function vD(e,t,r){var n=e==null?void 0:yD(e,t);return n===void 0?r:n}var YO=vD;const Rt=de(YO);function mD(e){return e==null}var gD=mD;const J=de(gD);var bD=an,xD=kt,wD=sn,SD="[object String]";function _D(e){return typeof e=="string"||!xD(e)&&wD(e)&&bD(e)==SD}var OD=_D;const bi=de(OD);var QO={exports:{}},he={};/**
|
|
404
|
-
* @license React
|
|
405
|
-
* react-is.production.min.js
|
|
406
|
-
*
|
|
407
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
408
|
-
*
|
|
409
|
-
* This source code is licensed under the MIT license found in the
|
|
410
|
-
* LICENSE file in the root directory of this source tree.
|
|
411
|
-
*/var gm=Symbol.for("react.element"),bm=Symbol.for("react.portal"),Ef=Symbol.for("react.fragment"),kf=Symbol.for("react.strict_mode"),jf=Symbol.for("react.profiler"),$f=Symbol.for("react.provider"),Tf=Symbol.for("react.context"),AD=Symbol.for("react.server_context"),Cf=Symbol.for("react.forward_ref"),Nf=Symbol.for("react.suspense"),Mf=Symbol.for("react.suspense_list"),If=Symbol.for("react.memo"),Df=Symbol.for("react.lazy"),PD=Symbol.for("react.offscreen"),ZO;ZO=Symbol.for("react.module.reference");function nr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gm:switch(e=e.type,e){case Ef:case jf:case kf:case Nf:case Mf:return e;default:switch(e=e&&e.$$typeof,e){case AD:case Tf:case Cf:case Df:case If:case $f:return e;default:return t}}case bm:return t}}}he.ContextConsumer=Tf;he.ContextProvider=$f;he.Element=gm;he.ForwardRef=Cf;he.Fragment=Ef;he.Lazy=Df;he.Memo=If;he.Portal=bm;he.Profiler=jf;he.StrictMode=kf;he.Suspense=Nf;he.SuspenseList=Mf;he.isAsyncMode=function(){return!1};he.isConcurrentMode=function(){return!1};he.isContextConsumer=function(e){return nr(e)===Tf};he.isContextProvider=function(e){return nr(e)===$f};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gm};he.isForwardRef=function(e){return nr(e)===Cf};he.isFragment=function(e){return nr(e)===Ef};he.isLazy=function(e){return nr(e)===Df};he.isMemo=function(e){return nr(e)===If};he.isPortal=function(e){return nr(e)===bm};he.isProfiler=function(e){return nr(e)===jf};he.isStrictMode=function(e){return nr(e)===kf};he.isSuspense=function(e){return nr(e)===Nf};he.isSuspenseList=function(e){return nr(e)===Mf};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ef||e===jf||e===kf||e===Nf||e===Mf||e===PD||typeof e=="object"&&e!==null&&(e.$$typeof===Df||e.$$typeof===If||e.$$typeof===$f||e.$$typeof===Tf||e.$$typeof===Cf||e.$$typeof===ZO||e.getModuleId!==void 0)};he.typeOf=nr;QO.exports=he;var ED=QO.exports,kD=an,jD=sn,$D="[object Number]";function TD(e){return typeof e=="number"||jD(e)&&kD(e)==$D}var JO=TD;const CD=de(JO);var ND=JO;function MD(e){return ND(e)&&e!=+e}var ID=MD;const ul=de(ID);var ht=function(t){return t===0?0:t>0?1:-1},ii=function(t){return bi(t)&&t.indexOf("%")===t.length-1},H=function(t){return CD(t)&&!ul(t)},DD=function(t){return J(t)},Ye=function(t){return H(t)||bi(t)},RD=0,na=function(t){var r=++RD;return"".concat(t||"").concat(r)},yt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&!bi(t))return n;var o;if(ii(t)){var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return ul(o)&&(o=n),i&&o>r&&(o=r),o},bn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},LD=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Nt=function(t,r){return H(t)&&H(r)?function(n){return t+n*(r-t)}:function(){return r}};function Gu(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Rt(n,t))===r})}var BD=function(t,r){return H(t)&&H(r)?t-r:bi(t)&&bi(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function uo(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Ch(e){"@babel/helpers - typeof";return Ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ch(e)}var zD=["viewBox","children"],FD=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],tb=["points","pathLength"],Yd={svg:zD,polygon:tb,polyline:tb},xm=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Xu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if($.isValidElement(t)&&(n=t.props),!Jo(n))return null;var i={};return Object.keys(n).forEach(function(o){xm.includes(o)&&(i[o]=r||function(a){return n[o](n,a)})}),i},UD=function(t,r,n){return function(i){return t(r,n,i),null}},xi=function(t,r,n){if(!Jo(t)||Ch(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];xm.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=UD(a,r,n))}),i},WD=["children"],HD=["children"];function rb(e,t){if(e==null)return{};var r=VD(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Nh(e){"@babel/helpers - typeof";return Nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nh(e)}var nb={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},qr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},ib=null,Qd=null,wm=function e(t){if(t===ib&&Array.isArray(Qd))return Qd;var r=[];return $.Children.forEach(t,function(n){J(n)||(ED.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Qd=r,ib=t,r};function Lt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return qr(i)}):n=[qr(t)],wm(e).forEach(function(i){var o=Rt(i,"type.displayName")||Rt(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function Ct(e,t){var r=Lt(e,t);return r&&r[0]}var ob=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!H(n)||n<=0||!H(i)||i<=0)},KD=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],qD=function(t){return t&&t.type&&bi(t.type)&&KD.indexOf(t.type)>=0},GD=function(t){return t&&Nh(t)==="object"&&"clipDot"in t},XD=function(t,r,n,i){var o,a=(o=Yd==null?void 0:Yd[i])!==null&&o!==void 0?o:[];return r.startsWith("data-")||!Z(t)&&(i&&a.includes(r)||FD.includes(r))||n&&xm.includes(r)},Y=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if($.isValidElement(t)&&(i=t.props),!Jo(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;XD((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},Mh=function e(t,r){if(t===r)return!0;var n=$.Children.count(t);if(n!==$.Children.count(r))return!1;if(n===0)return!0;if(n===1)return ab(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=t[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!ab(o,a))return!1}return!0},ab=function(t,r){if(J(t)&&J(r))return!0;if(!J(t)&&!J(r)){var n=t.props||{},i=n.children,o=rb(n,WD),a=r.props||{},s=a.children,l=rb(a,HD);return i&&s?uo(o,l)&&Mh(i,s):!i&&!s?uo(o,l):!1}return!1},sb=function(t,r){var n=[],i={};return wm(t).forEach(function(o,a){if(qD(o))n.push(o);else if(o){var s=qr(o.type),l=r[s]||{},u=l.handler,f=l.once;if(u&&(!f||!i[s])){var c=u(o,s,a);n.push(c),i[s]=!0}}}),n},YD=function(t){var r=t&&t.type;return r&&nb[r]?nb[r]:null},QD=function(t,r){return wm(r).indexOf(t)},ZD=["children","width","height","viewBox","className","style","title","desc"];function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ih.apply(this,arguments)}function JD(e,t){if(e==null)return{};var r=e3(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Dh(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=JD(e,ZD),f=i||{width:r,height:n,x:0,y:0},c=te("recharts-surface",o);return P.createElement("svg",Ih({},Y(u,!0,"svg"),{className:c,width:r,height:n,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,s),P.createElement("desc",null,l),t)}var t3=["children","className"];function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rh.apply(this,arguments)}function r3(e,t){if(e==null)return{};var r=n3(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function n3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var le=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=r3(e,t3),o=te("recharts-layer",n);return P.createElement("g",Rh({className:o},Y(i,!0),{ref:t}),r)}),gr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o]};function i3(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}var o3=i3,a3=o3;function s3(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:a3(e,t,r)}var l3=s3,u3="\\ud800-\\udfff",c3="\\u0300-\\u036f",f3="\\ufe20-\\ufe2f",d3="\\u20d0-\\u20ff",p3=c3+f3+d3,h3="\\ufe0e\\ufe0f",y3="\\u200d",v3=RegExp("["+y3+u3+p3+h3+"]");function m3(e){return v3.test(e)}var eA=m3;function g3(e){return e.split("")}var b3=g3,tA="\\ud800-\\udfff",x3="\\u0300-\\u036f",w3="\\ufe20-\\ufe2f",S3="\\u20d0-\\u20ff",_3=x3+w3+S3,O3="\\ufe0e\\ufe0f",A3="["+tA+"]",Lh="["+_3+"]",Bh="\\ud83c[\\udffb-\\udfff]",P3="(?:"+Lh+"|"+Bh+")",rA="[^"+tA+"]",nA="(?:\\ud83c[\\udde6-\\uddff]){2}",iA="[\\ud800-\\udbff][\\udc00-\\udfff]",E3="\\u200d",oA=P3+"?",aA="["+O3+"]?",k3="(?:"+E3+"(?:"+[rA,nA,iA].join("|")+")"+aA+oA+")*",j3=aA+oA+k3,$3="(?:"+[rA+Lh+"?",Lh,nA,iA,A3].join("|")+")",T3=RegExp(Bh+"(?="+Bh+")|"+$3+j3,"g");function C3(e){return e.match(T3)||[]}var N3=C3,M3=b3,I3=eA,D3=N3;function R3(e){return I3(e)?D3(e):M3(e)}var L3=R3,B3=l3,z3=eA,F3=L3,U3=GO;function W3(e){return function(t){t=U3(t);var r=z3(t)?F3(t):void 0,n=r?r[0]:t.charAt(0),i=r?B3(r,1).join(""):t.slice(1);return n[e]()+i}}var H3=W3,V3=H3,K3=V3("toUpperCase"),q3=K3;const Rf=de(q3);function ge(e){return function(){return e}}const sA=Math.cos,Yu=Math.sin,xr=Math.sqrt,Qu=Math.PI,Lf=2*Qu,zh=Math.PI,Fh=2*zh,Qn=1e-6,G3=Fh-Qn;function lA(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function X3(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lA;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Y3{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?lA:X3(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,o,a){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=n-t,u=i-r,f=a-t,c=s-r,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Qn)if(!(Math.abs(c*l-u*f)>Qn)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-a,m=i-s,h=l*l+u*u,g=p*p+m*m,v=Math.sqrt(h),y=Math.sqrt(d),b=o*Math.tan((zh-Math.acos((h+d-g)/(2*v*y)))/2),_=b/y,x=b/v;Math.abs(_-1)>Qn&&this._append`L${t+_*f},${r+_*c}`,this._append`A${o},${o},0,0,${+(c*p>f*m)},${this._x1=t+x*l},${this._y1=r+x*u}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,f=r+l,c=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Qn||Math.abs(this._y1-f)>Qn)&&this._append`L${u},${f}`,n&&(d<0&&(d=d%Fh+Fh),d>G3?this._append`A${n},${n},0,1,${c},${t-s},${r-l}A${n},${n},0,1,${c},${this._x1=u},${this._y1=f}`:d>Qn&&this._append`A${n},${n},0,${+(d>=zh)},${c},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Sm(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Y3(t)}function _m(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function uA(e){this._context=e}uA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Bf(e){return new uA(e)}function cA(e){return e[0]}function fA(e){return e[1]}function dA(e,t){var r=ge(!0),n=null,i=Bf,o=null,a=Sm(s);e=typeof e=="function"?e:e===void 0?cA:ge(e),t=typeof t=="function"?t:t===void 0?fA:ge(t);function s(l){var u,f=(l=_m(l)).length,c,d=!1,p;for(n==null&&(o=i(p=a())),u=0;u<=f;++u)!(u<f&&r(c=l[u],u,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,u,l),+t(c,u,l));if(p)return o=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ge(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ge(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:ge(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(o=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=o=null:o=i(n=l),s):n},s}function Ul(e,t,r){var n=null,i=ge(!0),o=null,a=Bf,s=null,l=Sm(u);e=typeof e=="function"?e:e===void 0?cA:ge(+e),t=typeof t=="function"?t:ge(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?fA:ge(+r);function u(c){var d,p,m,h=(c=_m(c)).length,g,v=!1,y,b=new Array(h),_=new Array(h);for(o==null&&(s=a(y=l())),d=0;d<=h;++d){if(!(d<h&&i(g=c[d],d,c))===v)if(v=!v)p=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=p;--m)s.point(b[m],_[m]);s.lineEnd(),s.areaEnd()}v&&(b[d]=+e(g,d,c),_[d]=+t(g,d,c),s.point(n?+n(g,d,c):b[d],r?+r(g,d,c):_[d]))}if(y)return s=null,y+""||null}function f(){return dA().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ge(+c),n=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ge(+c),u):e},u.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:ge(+c),u):n},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:ge(+c),r=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:ge(+c),u):t},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ge(+c),u):r},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(r)},u.lineX1=function(){return f().x(n).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ge(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}class pA{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Q3(e){return new pA(e,!0)}function Z3(e){return new pA(e,!1)}const Om={draw(e,t){const r=xr(t/Qu);e.moveTo(r,0),e.arc(0,0,r,0,Lf)}},J3={draw(e,t){const r=xr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},hA=xr(1/3),eR=hA*2,tR={draw(e,t){const r=xr(t/eR),n=r*hA;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},rR={draw(e,t){const r=xr(t),n=-r/2;e.rect(n,n,r,r)}},nR=.8908130915292852,yA=Yu(Qu/10)/Yu(7*Qu/10),iR=Yu(Lf/10)*yA,oR=-sA(Lf/10)*yA,aR={draw(e,t){const r=xr(t*nR),n=iR*r,i=oR*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=Lf*o/5,s=sA(a),l=Yu(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Zd=xr(3),sR={draw(e,t){const r=-xr(t/(Zd*3));e.moveTo(0,r*2),e.lineTo(-Zd*r,-r),e.lineTo(Zd*r,-r),e.closePath()}},Ht=-.5,Vt=xr(3)/2,Uh=1/xr(12),lR=(Uh/2+1)*3,uR={draw(e,t){const r=xr(t/lR),n=r/2,i=r*Uh,o=n,a=r*Uh+r,s=-o,l=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Ht*n-Vt*i,Vt*n+Ht*i),e.lineTo(Ht*o-Vt*a,Vt*o+Ht*a),e.lineTo(Ht*s-Vt*l,Vt*s+Ht*l),e.lineTo(Ht*n+Vt*i,Ht*i-Vt*n),e.lineTo(Ht*o+Vt*a,Ht*a-Vt*o),e.lineTo(Ht*s+Vt*l,Ht*l-Vt*s),e.closePath()}};function cR(e,t){let r=null,n=Sm(i);e=typeof e=="function"?e:ge(e||Om),t=typeof t=="function"?t:ge(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:ge(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:ge(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function Zu(){}function Ju(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function vA(e){this._context=e}vA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ju(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ju(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fR(e){return new vA(e)}function mA(e){this._context=e}mA.prototype={areaStart:Zu,areaEnd:Zu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ju(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dR(e){return new mA(e)}function gA(e){this._context=e}gA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ju(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pR(e){return new gA(e)}function bA(e){this._context=e}bA.prototype={areaStart:Zu,areaEnd:Zu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hR(e){return new bA(e)}function lb(e){return e<0?-1:1}function ub(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(lb(o)+lb(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function cb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Jd(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function ec(e){this._context=e}ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Jd(this,this._t0,cb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Jd(this,cb(this,r=ub(this,e,t)),r);break;default:Jd(this,this._t0,r=ub(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function xA(e){this._context=new wA(e)}(xA.prototype=Object.create(ec.prototype)).point=function(e,t){ec.prototype.point.call(this,t,e)};function wA(e){this._context=e}wA.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function yR(e){return new ec(e)}function vR(e){return new xA(e)}function SA(e){this._context=e}SA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=fb(e),i=fb(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function fb(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function mR(e){return new SA(e)}function zf(e,t){this._context=e,this._t=t}zf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function gR(e){return new zf(e,.5)}function bR(e){return new zf(e,0)}function xR(e){return new zf(e,1)}function _o(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,s=o.length;r<a;++r)for(i=o,o=e[t[r]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Wh(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function wR(e,t){return e[t]}function SR(e){const t=[];return t.key=e,t}function _R(){var e=ge([]),t=Wh,r=_o,n=wR;function i(o){var a=Array.from(e.apply(this,arguments),SR),s,l=a.length,u=-1,f;for(const c of o)for(s=0,++u;s<l;++s)(a[s][u]=[0,+n(c,a[s].key,u,o)]).data=c;for(s=0,f=_m(t(a));s<l;++s)a[f[s]].index=s;return r(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ge(Array.from(o)),i):e},i.value=function(o){return arguments.length?(n=typeof o=="function"?o:ge(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?Wh:typeof o=="function"?o:ge(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??_o,i):r},i}function OR(e,t){if((n=e.length)>0){for(var r,n,i=0,o=e[0].length,a;i<o;++i){for(a=r=0;r<n;++r)a+=e[r][i][1]||0;if(a)for(r=0;r<n;++r)e[r][i][1]/=a}_o(e,t)}}function AR(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,o=n.length;r<o;++r){for(var a=0,s=0;a<i;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}_o(e,t)}}function PR(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n<o;++n){for(var s=0,l=0,u=0;s<a;++s){for(var f=e[t[s]],c=f[n][1]||0,d=f[n-1][1]||0,p=(c-d)/2,m=0;m<s;++m){var h=e[t[m]],g=h[n][1]||0,v=h[n-1][1]||0;p+=g-v}l+=c,u+=p*c}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,_o(e,t)}}function bs(e){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(e)}var ER=["type","size","sizeType"];function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hh.apply(this,arguments)}function db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?db(Object(r),!0).forEach(function(n){kR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kR(e,t,r){return t=jR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jR(e){var t=$R(e,"string");return bs(t)=="symbol"?t:t+""}function $R(e,t){if(bs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TR(e,t){if(e==null)return{};var r=CR(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _A={symbolCircle:Om,symbolCross:J3,symbolDiamond:tR,symbolSquare:rR,symbolStar:aR,symbolTriangle:sR,symbolWye:uR},NR=Math.PI/180,MR=function(t){var r="symbol".concat(Rf(t));return _A[r]||Om},IR=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*NR;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},DR=function(t,r){_A["symbol".concat(Rf(t))]=r},Am=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,l=TR(t,ER),u=pb(pb({},l),{},{type:n,size:o,sizeType:s}),f=function(){var g=MR(n),v=cR().type(g).size(IR(o,s,n));return v()},c=u.className,d=u.cx,p=u.cy,m=Y(u,!0);return d===+d&&p===+p&&o===+o?P.createElement("path",Hh({},m,{className:te("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};Am.registerSymbol=DR;function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vh.apply(this,arguments)}function hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hb(Object(r),!0).forEach(function(n){xs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AA(n.key),n)}}function zR(e,t,r){return t&&BR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FR(e,t,r){return t=tc(t),UR(e,OA()?Reflect.construct(t,r||[],tc(e).constructor):t.apply(e,r))}function UR(e,t){if(t&&(Oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WR(e)}function WR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OA=function(){return!!e})()}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tc(e)}function HR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kh(e,t)}function Kh(e,t){return Kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kh(e,t)}function xs(e,t,r){return t=AA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AA(e){var t=VR(e,"string");return Oo(t)=="symbol"?t:t+""}function VR(e,t){if(Oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kt=32,Pm=function(e){function t(){return LR(this,t),FR(this,t,arguments)}return HR(t,e),zR(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,o=Kt/2,a=Kt/6,s=Kt/3,l=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:Kt,y2:o,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,`
|
|
412
|
-
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
|
|
413
|
-
H`).concat(Kt,"M").concat(2*s,",").concat(o,`
|
|
414
|
-
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Kt/8,"h").concat(Kt,"v").concat(Kt*3/4,"h").concat(-Kt,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var u=RR({},n);return delete u.legendIcon,P.cloneElement(n.legendIcon,u)}return P.createElement(Am,{fill:l,cx:o,cy:o,size:Kt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:Kt,height:Kt},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(p,m){var h=p.formatter||l,g=te(xs(xs({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=Z(p.value)?null:p.value;gr(!Z(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var y=p.inactive?u:p.color;return P.createElement("li",Vh({className:g,style:c,key:"legend-item-".concat(m)},xi(n.props,p,m)),P.createElement(Dh,{width:a,height:a,viewBox:f,style:d},n.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},h?h(v,p,m):v))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,a=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}($.PureComponent);xs(Pm,"displayName","Legend");xs(Pm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var KR=Of;function qR(){this.__data__=new KR,this.size=0}var GR=qR;function XR(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var YR=XR;function QR(e){return this.__data__.get(e)}var ZR=QR;function JR(e){return this.__data__.has(e)}var eL=JR,tL=Of,rL=pm,nL=hm,iL=200;function oL(e,t){var r=this.__data__;if(r instanceof tL){var n=r.__data__;if(!rL||n.length<iL-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new nL(n)}return r.set(e,t),this.size=r.size,this}var aL=oL,sL=Of,lL=GR,uL=YR,cL=ZR,fL=eL,dL=aL;function ia(e){var t=this.__data__=new sL(e);this.size=t.size}ia.prototype.clear=lL;ia.prototype.delete=uL;ia.prototype.get=cL;ia.prototype.has=fL;ia.prototype.set=dL;var PA=ia,pL="__lodash_hash_undefined__";function hL(e){return this.__data__.set(e,pL),this}var yL=hL;function vL(e){return this.__data__.has(e)}var mL=vL,gL=hm,bL=yL,xL=mL;function rc(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new gL;++t<r;)this.add(e[t])}rc.prototype.add=rc.prototype.push=bL;rc.prototype.has=xL;var EA=rc;function wL(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var kA=wL;function SL(e,t){return e.has(t)}var jA=SL,_L=EA,OL=kA,AL=jA,PL=1,EL=2;function kL(e,t,r,n,i,o){var a=r&PL,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,p=r&EL?new _L:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var m=e[c],h=t[c];if(n)var g=a?n(h,m,c,t,e,o):n(m,h,c,e,t,o);if(g!==void 0){if(g)continue;d=!1;break}if(p){if(!OL(t,function(v,y){if(!AL(p,y)&&(m===v||i(m,v,r,n,o)))return p.push(y)})){d=!1;break}}else if(!(m===h||i(m,h,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var $A=kL,jL=Mr,$L=jL.Uint8Array,TL=$L;function CL(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var NL=CL;function ML(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Em=ML,yb=ll,vb=TL,IL=dm,DL=$A,RL=NL,LL=Em,BL=1,zL=2,FL="[object Boolean]",UL="[object Date]",WL="[object Error]",HL="[object Map]",VL="[object Number]",KL="[object RegExp]",qL="[object Set]",GL="[object String]",XL="[object Symbol]",YL="[object ArrayBuffer]",QL="[object DataView]",mb=yb?yb.prototype:void 0,ep=mb?mb.valueOf:void 0;function ZL(e,t,r,n,i,o,a){switch(r){case QL:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case YL:return!(e.byteLength!=t.byteLength||!o(new vb(e),new vb(t)));case FL:case UL:case VL:return IL(+e,+t);case WL:return e.name==t.name&&e.message==t.message;case KL:case GL:return e==t+"";case HL:var s=RL;case qL:var l=n&BL;if(s||(s=LL),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;n|=zL,a.set(e,t);var f=DL(s(e),s(t),n,i,o,a);return a.delete(e),f;case XL:if(ep)return ep.call(e)==ep.call(t)}return!1}var JL=ZL;function e5(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var TA=e5,t5=TA,r5=kt;function n5(e,t,r){var n=t(e);return r5(e)?n:t5(n,r(e))}var i5=n5;function o5(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var a5=o5;function s5(){return[]}var l5=s5,u5=a5,c5=l5,f5=Object.prototype,d5=f5.propertyIsEnumerable,gb=Object.getOwnPropertySymbols,p5=gb?function(e){return e==null?[]:(e=Object(e),u5(gb(e),function(t){return d5.call(e,t)}))}:c5,h5=p5;function y5(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var v5=y5,m5=an,g5=sn,b5="[object Arguments]";function x5(e){return g5(e)&&m5(e)==b5}var w5=x5,bb=w5,S5=sn,CA=Object.prototype,_5=CA.hasOwnProperty,O5=CA.propertyIsEnumerable,A5=bb(function(){return arguments}())?bb:function(e){return S5(e)&&_5.call(e,"callee")&&!O5.call(e,"callee")},km=A5,nc={exports:{}};function P5(){return!1}var E5=P5;nc.exports;(function(e,t){var r=Mr,n=E5,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(nc,nc.exports);var NA=nc.exports,k5=9007199254740991,j5=/^(?:0|[1-9]\d*)$/;function $5(e,t){var r=typeof e;return t=t??k5,!!t&&(r=="number"||r!="symbol"&&j5.test(e))&&e>-1&&e%1==0&&e<t}var jm=$5,T5=9007199254740991;function C5(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=T5}var $m=C5,N5=an,M5=$m,I5=sn,D5="[object Arguments]",R5="[object Array]",L5="[object Boolean]",B5="[object Date]",z5="[object Error]",F5="[object Function]",U5="[object Map]",W5="[object Number]",H5="[object Object]",V5="[object RegExp]",K5="[object Set]",q5="[object String]",G5="[object WeakMap]",X5="[object ArrayBuffer]",Y5="[object DataView]",Q5="[object Float32Array]",Z5="[object Float64Array]",J5="[object Int8Array]",e4="[object Int16Array]",t4="[object Int32Array]",r4="[object Uint8Array]",n4="[object Uint8ClampedArray]",i4="[object Uint16Array]",o4="[object Uint32Array]",Se={};Se[Q5]=Se[Z5]=Se[J5]=Se[e4]=Se[t4]=Se[r4]=Se[n4]=Se[i4]=Se[o4]=!0;Se[D5]=Se[R5]=Se[X5]=Se[L5]=Se[Y5]=Se[B5]=Se[z5]=Se[F5]=Se[U5]=Se[W5]=Se[H5]=Se[V5]=Se[K5]=Se[q5]=Se[G5]=!1;function a4(e){return I5(e)&&M5(e.length)&&!!Se[N5(e)]}var s4=a4;function l4(e){return function(t){return e(t)}}var MA=l4,ic={exports:{}};ic.exports;(function(e,t){var r=UO,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(ic,ic.exports);var u4=ic.exports,c4=s4,f4=MA,xb=u4,wb=xb&&xb.isTypedArray,d4=wb?f4(wb):c4,IA=d4,p4=v5,h4=km,y4=kt,v4=NA,m4=jm,g4=IA,b4=Object.prototype,x4=b4.hasOwnProperty;function w4(e,t){var r=y4(e),n=!r&&h4(e),i=!r&&!n&&v4(e),o=!r&&!n&&!i&&g4(e),a=r||n||i||o,s=a?p4(e.length,String):[],l=s.length;for(var u in e)(t||x4.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||m4(u,l)))&&s.push(u);return s}var S4=w4,_4=Object.prototype;function O4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_4;return e===r}var A4=O4;function P4(e,t){return function(r){return e(t(r))}}var DA=P4,E4=DA,k4=E4(Object.keys,Object),j4=k4,$4=A4,T4=j4,C4=Object.prototype,N4=C4.hasOwnProperty;function M4(e){if(!$4(e))return T4(e);var t=[];for(var r in Object(e))N4.call(e,r)&&r!="constructor"&&t.push(r);return t}var I4=M4,D4=fm,R4=$m;function L4(e){return e!=null&&R4(e.length)&&!D4(e)}var cl=L4,B4=S4,z4=I4,F4=cl;function U4(e){return F4(e)?B4(e):z4(e)}var Ff=U4,W4=i5,H4=h5,V4=Ff;function K4(e){return W4(e,V4,H4)}var q4=K4,Sb=q4,G4=1,X4=Object.prototype,Y4=X4.hasOwnProperty;function Q4(e,t,r,n,i,o){var a=r&G4,s=Sb(e),l=s.length,u=Sb(t),f=u.length;if(l!=f&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:Y4.call(t,d)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var h=!0;o.set(e,t),o.set(t,e);for(var g=a;++c<l;){d=s[c];var v=e[d],y=t[d];if(n)var b=a?n(y,v,d,t,e,o):n(v,y,d,e,t,o);if(!(b===void 0?v===y||i(v,y,r,n,o):b)){h=!1;break}g||(g=d=="constructor")}if(h&&!g){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof x=="function"&&x instanceof x)&&(h=!1)}return o.delete(e),o.delete(t),h}var Z4=Q4,J4=Ei,eB=Mr,tB=J4(eB,"DataView"),rB=tB,nB=Ei,iB=Mr,oB=nB(iB,"Promise"),aB=oB,sB=Ei,lB=Mr,uB=sB(lB,"Set"),RA=uB,cB=Ei,fB=Mr,dB=cB(fB,"WeakMap"),pB=dB,qh=rB,Gh=pm,Xh=aB,Yh=RA,Qh=pB,LA=an,oa=HO,_b="[object Map]",hB="[object Object]",Ob="[object Promise]",Ab="[object Set]",Pb="[object WeakMap]",Eb="[object DataView]",yB=oa(qh),vB=oa(Gh),mB=oa(Xh),gB=oa(Yh),bB=oa(Qh),Zn=LA;(qh&&Zn(new qh(new ArrayBuffer(1)))!=Eb||Gh&&Zn(new Gh)!=_b||Xh&&Zn(Xh.resolve())!=Ob||Yh&&Zn(new Yh)!=Ab||Qh&&Zn(new Qh)!=Pb)&&(Zn=function(e){var t=LA(e),r=t==hB?e.constructor:void 0,n=r?oa(r):"";if(n)switch(n){case yB:return Eb;case vB:return _b;case mB:return Ob;case gB:return Ab;case bB:return Pb}return t});var xB=Zn,tp=PA,wB=$A,SB=JL,_B=Z4,kb=xB,jb=kt,$b=NA,OB=IA,AB=1,Tb="[object Arguments]",Cb="[object Array]",Wl="[object Object]",PB=Object.prototype,Nb=PB.hasOwnProperty;function EB(e,t,r,n,i,o){var a=jb(e),s=jb(t),l=a?Cb:kb(e),u=s?Cb:kb(t);l=l==Tb?Wl:l,u=u==Tb?Wl:u;var f=l==Wl,c=u==Wl,d=l==u;if(d&&$b(e)){if(!$b(t))return!1;a=!0,f=!1}if(d&&!f)return o||(o=new tp),a||OB(e)?wB(e,t,r,n,i,o):SB(e,t,l,r,n,i,o);if(!(r&AB)){var p=f&&Nb.call(e,"__wrapped__"),m=c&&Nb.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,g=m?t.value():t;return o||(o=new tp),i(h,g,r,n,o)}}return d?(o||(o=new tp),_B(e,t,r,n,i,o)):!1}var kB=EB,jB=kB,Mb=sn;function BA(e,t,r,n,i){return e===t?!0:e==null||t==null||!Mb(e)&&!Mb(t)?e!==e&&t!==t:jB(e,t,r,n,BA,i)}var Tm=BA,$B=PA,TB=Tm,CB=1,NB=2;function MB(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var l=s[0],u=e[l],f=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new $B;if(n)var d=n(u,f,l,e,t,c);if(!(d===void 0?TB(f,u,CB|NB,n,c):d))return!1}}return!0}var IB=MB,DB=Bn;function RB(e){return e===e&&!DB(e)}var zA=RB,LB=zA,BB=Ff;function zB(e){for(var t=BB(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,LB(i)]}return t}var FB=zB;function UB(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var FA=UB,WB=IB,HB=FB,VB=FA;function KB(e){var t=HB(e);return t.length==1&&t[0][2]?VB(t[0][0],t[0][1]):function(r){return r===e||WB(r,e,t)}}var qB=KB;function GB(e,t){return e!=null&&t in Object(e)}var XB=GB,YB=XO,QB=km,ZB=kt,JB=jm,e8=$m,t8=Pf;function r8(e,t,r){t=YB(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=t8(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&e8(i)&&JB(a,i)&&(ZB(e)||QB(e)))}var n8=r8,i8=XB,o8=n8;function a8(e,t){return e!=null&&o8(e,t,i8)}var s8=a8,l8=Tm,u8=YO,c8=s8,f8=cm,d8=zA,p8=FA,h8=Pf,y8=1,v8=2;function m8(e,t){return f8(e)&&d8(t)?p8(h8(e),t):function(r){var n=u8(r,e);return n===void 0&&n===t?c8(r,e):l8(t,n,y8|v8)}}var g8=m8;function b8(e){return e}var aa=b8;function x8(e){return function(t){return t==null?void 0:t[e]}}var w8=x8,S8=mm;function _8(e){return function(t){return S8(t,e)}}var O8=_8,A8=w8,P8=O8,E8=cm,k8=Pf;function j8(e){return E8(e)?A8(k8(e)):P8(e)}var $8=j8,T8=qB,C8=g8,N8=aa,M8=kt,I8=$8;function D8(e){return typeof e=="function"?e:e==null?N8:typeof e=="object"?M8(e)?C8(e[0],e[1]):T8(e):I8(e)}var Ir=D8;function R8(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var UA=R8;function L8(e){return e!==e}var B8=L8;function z8(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var F8=z8,U8=UA,W8=B8,H8=F8;function V8(e,t,r){return t===t?H8(e,t,r):U8(e,W8,r)}var K8=V8,q8=K8;function G8(e,t){var r=e==null?0:e.length;return!!r&&q8(e,t,0)>-1}var X8=G8;function Y8(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var Q8=Y8;function Z8(){}var J8=Z8,rp=RA,ez=J8,tz=Em,rz=1/0,nz=rp&&1/tz(new rp([,-0]))[1]==rz?function(e){return new rp(e)}:ez,iz=nz,oz=EA,az=X8,sz=Q8,lz=jA,uz=iz,cz=Em,fz=200;function dz(e,t,r){var n=-1,i=az,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=sz;else if(o>=fz){var u=t?null:uz(e);if(u)return cz(u);a=!1,i=lz,l=new oz}else l=t?[]:s;e:for(;++n<o;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,a&&c===c){for(var d=l.length;d--;)if(l[d]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,r)||(l!==s&&l.push(c),s.push(f))}return s}var pz=dz,hz=Ir,yz=pz;function vz(e,t){return e&&e.length?yz(e,hz(t)):[]}var mz=vz;const Ib=de(mz);function WA(e,t,r){return t===!0?Ib(e,r):Z(t)?Ib(e,t):e}function Ao(e){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(e)}var gz=["ref"];function Db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Db(Object(r),!0).forEach(function(n){Uf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VA(n.key),n)}}function xz(e,t,r){return t&&Rb(e.prototype,t),r&&Rb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wz(e,t,r){return t=oc(t),Sz(e,HA()?Reflect.construct(t,r||[],oc(e).constructor):t.apply(e,r))}function Sz(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _z(e)}function _z(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HA=function(){return!!e})()}function oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oc(e)}function Oz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zh(e,t)}function Zh(e,t){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zh(e,t)}function Uf(e,t,r){return t=VA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VA(e){var t=Az(e,"string");return Ao(t)=="symbol"?t:t+""}function Az(e,t){if(Ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Pz(e,t){if(e==null)return{};var r=Ez(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ez(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kz(e){return e.value}function jz(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=Pz(t,gz);return P.createElement(Pm,r)}var Lb=1,co=function(e){function t(){var r;bz(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=wz(this,t,[].concat(i)),Uf(r,"lastBoundingBox",{width:-1,height:-1}),r}return Oz(t,e),xz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Lb||Math.abs(i.height-this.lastBoundingBox.height)>Lb)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Rr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(a==="center"&&o==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Rr(Rr({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=Rr(Rr({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return P.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},jz(o,Rr(Rr({},this.props),{},{payload:WA(f,u,kz)})))}}],[{key:"getWithHeight",value:function(n,i){var o=Rr(Rr({},this.defaultProps),n.props),a=o.layout;return a==="vertical"&&H(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||i}:null}}])}($.PureComponent);Uf(co,"displayName","Legend");Uf(co,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Bb=ll,$z=km,Tz=kt,zb=Bb?Bb.isConcatSpreadable:void 0;function Cz(e){return Tz(e)||$z(e)||!!(zb&&e&&e[zb])}var Nz=Cz,Mz=TA,Iz=Nz;function KA(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=Iz),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?KA(s,t-1,r,n,i):Mz(i,s):n||(i[i.length]=s)}return i}var qA=KA;function Dz(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(r(o[l],l,o)===!1)break}return t}}var Rz=Dz,Lz=Rz,Bz=Lz(),zz=Bz,Fz=zz,Uz=Ff;function Wz(e,t){return e&&Fz(e,t,Uz)}var GA=Wz,Hz=cl;function Vz(e,t){return function(r,n){if(r==null)return r;if(!Hz(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var Kz=Vz,qz=GA,Gz=Kz,Xz=Gz(qz),Cm=Xz,Yz=Cm,Qz=cl;function Zz(e,t){var r=-1,n=Qz(e)?Array(e.length):[];return Yz(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var XA=Zz;function Jz(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var eF=Jz,Fb=Zo;function tF(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,o=Fb(e),a=t!==void 0,s=t===null,l=t===t,u=Fb(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&e<t||u&&r&&i&&!n&&!o||s&&r&&i||!a&&i||!l)return-1}return 0}var rF=tF,nF=rF;function iF(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=nF(i[n],o[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var oF=iF,np=vm,aF=mm,sF=Ir,lF=XA,uF=eF,cF=MA,fF=oF,dF=aa,pF=kt;function hF(e,t,r){t.length?t=np(t,function(o){return pF(o)?function(a){return aF(a,o.length===1?o[0]:o)}:o}):t=[dF];var n=-1;t=np(t,cF(sF));var i=lF(e,function(o,a,s){var l=np(t,function(u){return u(o)});return{criteria:l,index:++n,value:o}});return uF(i,function(o,a){return fF(o,a,r)})}var yF=hF;function vF(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var mF=vF,gF=mF,Ub=Math.max;function bF(e,t,r){return t=Ub(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Ub(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),gF(e,this,s)}}var xF=bF;function wF(e){return function(){return e}}var SF=wF,_F=Ei,OF=function(){try{var e=_F(Object,"defineProperty");return e({},"",{}),e}catch{}}(),YA=OF,AF=SF,Wb=YA,PF=aa,EF=Wb?function(e,t){return Wb(e,"toString",{configurable:!0,enumerable:!1,value:AF(t),writable:!0})}:PF,kF=EF,jF=800,$F=16,TF=Date.now;function CF(e){var t=0,r=0;return function(){var n=TF(),i=$F-(n-r);if(r=n,i>0){if(++t>=jF)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var NF=CF,MF=kF,IF=NF,DF=IF(MF),RF=DF,LF=aa,BF=xF,zF=RF;function FF(e,t){return zF(BF(e,t,LF),e+"")}var UF=FF,WF=dm,HF=cl,VF=jm,KF=Bn;function qF(e,t,r){if(!KF(r))return!1;var n=typeof t;return(n=="number"?HF(r)&&VF(t,r.length):n=="string"&&t in r)?WF(r[t],e):!1}var Wf=qF,GF=qA,XF=yF,YF=UF,Hb=Wf,QF=YF(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Hb(e,t[0],t[1])?t=[]:r>2&&Hb(t[0],t[1],t[2])&&(t=[t[0]]),XF(e,GF(t,1),[])}),ZF=QF;const Nm=de(ZF);function ws(e){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ws(e)}function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jh.apply(this,arguments)}function JF(e,t){return n6(e)||r6(e,t)||t6(e,t)||e6()}function e6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
415
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t6(e,t){if(e){if(typeof e=="string")return Vb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vb(e,t)}}function Vb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function n6(e){if(Array.isArray(e))return e}function Kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ip(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(r),!0).forEach(function(n){i6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i6(e,t,r){return t=o6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o6(e){var t=a6(e,"string");return ws(t)=="symbol"?t:t+""}function a6(e,t){if(ws(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ws(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s6(e){return Array.isArray(e)&&Ye(e[0])&&Ye(e[1])?e.join(" ~ "):e}var l6=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,c=t.formatter,d=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,h=t.label,g=t.labelFormatter,v=t.accessibilityLayer,y=v===void 0?!1:v,b=function(){if(f&&f.length){var k={padding:0,margin:0},D=(d?Nm(f,d):f).map(function(I,N){if(I.type==="none")return null;var L=ip({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},s),z=I.formatter||c||s6,C=I.value,R=I.name,B=C,V=R;if(z&&B!=null&&V!=null){var W=z(C,R,I,N,f);if(Array.isArray(W)){var X=JF(W,2);B=X[0],V=X[1]}else B=W}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:L},Ye(V)?P.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Ye(V)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},B),P.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:k},D)}return null},_=ip({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),x=ip({margin:0},u),w=!J(h),O=w?h:"",A=te("recharts-default-tooltip",p),E=te("recharts-tooltip-label",m);w&&g&&f!==void 0&&f!==null&&(O=g(h,f));var j=y?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",Jh({className:A,style:_},j),P.createElement("p",{className:E,style:x},P.isValidElement(O)?O:"".concat(O)),b())};function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ss(e)}function Hl(e,t,r){return t=u6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u6(e){var t=c6(e,"string");return Ss(t)=="symbol"?t:t+""}function c6(e,t){if(Ss(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ss(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sa="recharts-tooltip-wrapper",f6={visibility:"hidden"};function d6(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(Sa,Hl(Hl(Hl(Hl({},"".concat(Sa,"-right"),H(r)&&t&&H(t.x)&&r>=t.x),"".concat(Sa,"-left"),H(r)&&t&&H(t.x)&&r<t.x),"".concat(Sa,"-bottom"),H(n)&&t&&H(t.y)&&n>=t.y),"".concat(Sa,"-top"),H(n)&&t&&H(t.y)&&n<t.y))}function qb(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(o&&H(o[n]))return o[n];var f=r[n]-s-i,c=r[n]+i;if(t[n])return a[n]?f:c;if(a[n]){var d=f,p=l[n];return d<p?Math.max(c,l[n]):Math.max(f,l[n])}var m=c+s,h=l[n]+u;return m>h?Math.max(f,l[n]):Math.max(c,l[n])}function p6(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function h6(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return a.height>0&&a.width>0&&r?(f=qb({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),c=qb({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=p6({translateX:f,translateY:c,useTranslate3d:s})):u=f6,{cssProperties:u,cssClasses:d6({translateX:f,translateY:c,coordinate:r})}}function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){ty(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZA(n.key),n)}}function m6(e,t,r){return t&&v6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g6(e,t,r){return t=ac(t),b6(e,QA()?Reflect.construct(t,r||[],ac(e).constructor):t.apply(e,r))}function b6(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x6(e)}function x6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QA=function(){return!!e})()}function ac(e){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ac(e)}function w6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ey(e,t)}function ey(e,t){return ey=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ey(e,t)}function ty(e,t,r){return t=ZA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZA(e){var t=S6(e,"string");return Po(t)=="symbol"?t:t+""}function S6(e,t){if(Po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yb=1,_6=function(e){function t(){var r;y6(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=g6(this,t,[].concat(i)),ty(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ty(r,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,u,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),r}return w6(t,e),m6(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Yb||Math.abs(n.height-this.state.lastBoundingBox.height)>Yb)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,m=i.position,h=i.reverseDirection,g=i.useTranslate3d,v=i.viewBox,y=i.wrapperStyle,b=h6({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:v}),_=b.cssClasses,x=b.cssProperties,w=Xb(Xb({transition:d&&o?"transform ".concat(s,"ms ").concat(l):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return P.createElement("div",{tabIndex:-1,className:_,style:w,ref:function(A){n.wrapperNode=A}},u)}}])}($.PureComponent),O6=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ki={isSsr:O6()};function Eo(e){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){Mm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eP(n.key),n)}}function E6(e,t,r){return t&&P6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k6(e,t,r){return t=sc(t),j6(e,JA()?Reflect.construct(t,r||[],sc(e).constructor):t.apply(e,r))}function j6(e,t){if(t&&(Eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $6(e)}function $6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JA=function(){return!!e})()}function sc(e){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sc(e)}function T6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ry(e,t)}function ry(e,t){return ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ry(e,t)}function Mm(e,t,r){return t=eP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eP(e){var t=C6(e,"string");return Eo(t)=="symbol"?t:t+""}function C6(e,t){if(Eo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function N6(e){return e.dataKey}function M6(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(l6,t)}var cr=function(e){function t(){return A6(this,t),k6(this,t,arguments)}return T6(t,e),E6(t,[{key:"render",value:function(){var n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,p=i.offset,m=i.payload,h=i.payloadUniqBy,g=i.position,v=i.reverseDirection,y=i.useTranslate3d,b=i.viewBox,_=i.wrapperStyle,x=m??[];c&&x.length&&(x=WA(m.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),h,N6));var w=x.length>0;return P.createElement(_6,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:d,active:o,coordinate:f,hasPayload:w,offset:p,position:g,reverseDirection:v,useTranslate3d:y,viewBox:b,wrapperStyle:_},M6(u,Zb(Zb({},this.props),{},{payload:x})))}}])}($.PureComponent);Mm(cr,"displayName","Tooltip");Mm(cr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ki.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var I6=Mr,D6=function(){return I6.Date.now()},R6=D6,L6=/\s/;function B6(e){for(var t=e.length;t--&&L6.test(e.charAt(t)););return t}var z6=B6,F6=z6,U6=/^\s+/;function W6(e){return e&&e.slice(0,F6(e)+1).replace(U6,"")}var H6=W6,V6=H6,Jb=Bn,K6=Zo,ex=NaN,q6=/^[-+]0x[0-9a-f]+$/i,G6=/^0b[01]+$/i,X6=/^0o[0-7]+$/i,Y6=parseInt;function Q6(e){if(typeof e=="number")return e;if(K6(e))return ex;if(Jb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Jb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=V6(e);var r=G6.test(e);return r||X6.test(e)?Y6(e.slice(2),r?2:8):q6.test(e)?ex:+e}var tP=Q6,Z6=Bn,op=R6,tx=tP,J6="Expected a function",eU=Math.max,tU=Math.min;function rU(e,t,r){var n,i,o,a,s,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(J6);t=tx(t)||0,Z6(r)&&(f=!!r.leading,c="maxWait"in r,o=c?eU(tx(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function p(w){var O=n,A=i;return n=i=void 0,u=w,a=e.apply(A,O),a}function m(w){return u=w,s=setTimeout(v,t),f?p(w):a}function h(w){var O=w-l,A=w-u,E=t-O;return c?tU(E,o-A):E}function g(w){var O=w-l,A=w-u;return l===void 0||O>=t||O<0||c&&A>=o}function v(){var w=op();if(g(w))return y(w);s=setTimeout(v,h(w))}function y(w){return s=void 0,d&&n?p(w):(n=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function _(){return s===void 0?a:y(op())}function x(){var w=op(),O=g(w);if(n=arguments,i=this,l=w,O){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(v,t),p(l)}return s===void 0&&(s=setTimeout(v,t)),a}return x.cancel=b,x.flush=_,x}var nU=rU,iU=nU,oU=Bn,aU="Expected a function";function sU(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(aU);return oU(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),iU(e,t,{leading:n,maxWait:t,trailing:i})}var lU=sU;const rP=de(lU);function _s(e){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_s(e)}function rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rx(Object(r),!0).forEach(function(n){uU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uU(e,t,r){return t=cU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cU(e){var t=fU(e,"string");return _s(t)=="symbol"?t:t+""}function fU(e,t){if(_s(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_s(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dU(e,t){return vU(e)||yU(e,t)||hU(e,t)||pU()}function pU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
416
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hU(e,t){if(e){if(typeof e=="string")return nx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nx(e,t)}}function nx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function vU(e){if(Array.isArray(e))return e}var ix=$.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,o=e.width,a=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,d=e.maxHeight,p=e.children,m=e.debounce,h=m===void 0?0:m,g=e.id,v=e.className,y=e.onResize,b=e.style,_=b===void 0?{}:b,x=$.useRef(null),w=$.useRef();w.current=y,$.useImperativeHandle(t,function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})});var O=$.useState({containerWidth:i.width,containerHeight:i.height}),A=dU(O,2),E=A[0],j=A[1],T=$.useCallback(function(D,I){j(function(N){var L=Math.round(D),z=Math.round(I);return N.containerWidth===L&&N.containerHeight===z?N:{containerWidth:L,containerHeight:z}})},[]);$.useEffect(function(){var D=function(R){var B,V=R[0].contentRect,W=V.width,X=V.height;T(W,X),(B=w.current)===null||B===void 0||B.call(w,W,X)};h>0&&(D=rP(D,h,{trailing:!0,leading:!1}));var I=new ResizeObserver(D),N=x.current.getBoundingClientRect(),L=N.width,z=N.height;return T(L,z),I.observe(x.current),function(){I.disconnect()}},[T,h]);var k=$.useMemo(function(){var D=E.containerWidth,I=E.containerHeight;if(D<0||I<0)return null;gr(ii(a)||ii(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
417
|
-
maybe you don't need to use a ResponsiveContainer.`,a,l),gr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var N=ii(a)?D:a,L=ii(l)?I:l;r&&r>0&&(N?L=N/r:L&&(N=L*r),d&&L>d&&(L=d)),gr(N>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
418
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
419
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
420
|
-
height and width.`,N,L,a,l,f,c,r);var z=!Array.isArray(p)&&qr(p.type).endsWith("Chart");return P.Children.map(p,function(C){return P.isValidElement(C)?$.cloneElement(C,Vl({width:N,height:L},z?{style:Vl({height:"100%",width:"100%",maxHeight:L,maxWidth:N},C.props.style)}:{})):C})},[r,p,l,d,c,f,E,a]);return P.createElement("div",{id:g?"".concat(g):void 0,className:te("recharts-responsive-container",v),style:Vl(Vl({},_),{},{width:a,height:l,minWidth:f,minHeight:c,maxHeight:d}),ref:x},k)}),Os=function(t){return null};Os.displayName="Cell";function As(e){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},As(e)}function ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(r),!0).forEach(function(n){mU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mU(e,t,r){return t=gU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gU(e){var t=bU(e,"string");return As(t)=="symbol"?t:t+""}function bU(e,t){if(As(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(As(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ii={widthCache:{},cacheCount:0},xU=2e3,wU={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ax="recharts_measurement_span";function SU(e){var t=ny({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Ka=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ki.isSsr)return{width:0,height:0};var n=SU(r),i=JSON.stringify({text:t,copyStyle:n});if(Ii.widthCache[i])return Ii.widthCache[i];try{var o=document.getElementById(ax);o||(o=document.createElement("span"),o.setAttribute("id",ax),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=ny(ny({},wU),n);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return Ii.widthCache[i]=l,++Ii.cacheCount>xU&&(Ii.cacheCount=0,Ii.widthCache={}),l}catch{return{width:0,height:0}}},_U=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ps(e){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(e)}function lc(e,t){return EU(e)||PU(e,t)||AU(e,t)||OU()}function OU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
421
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AU(e,t){if(e){if(typeof e=="string")return sx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sx(e,t)}}function sx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function EU(e){if(Array.isArray(e))return e}function kU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$U(n.key),n)}}function jU(e,t,r){return t&&lx(e.prototype,t),r&&lx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $U(e){var t=TU(e,"string");return Ps(t)=="symbol"?t:t+""}function TU(e,t){if(Ps(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ux=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,cx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,CU=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,NU=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,nP={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},MU=Object.keys(nP),Zi="NaN";function IU(e,t){return e*nP[t]}var Kl=function(){function e(t,r){kU(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!CU.test(r)&&(this.num=NaN,this.unit=""),MU.includes(r)&&(this.num=IU(t,r),this.unit="px")}return jU(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=NU.exec(r))!==null&&n!==void 0?n:[],o=lc(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function iP(e){if(e.includes(Zi))return Zi;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=ux.exec(t))!==null&&r!==void 0?r:[],i=lc(n,4),o=i[1],a=i[2],s=i[3],l=Kl.parse(o??""),u=Kl.parse(s??""),f=a==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Zi;t=t.replace(ux,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=cx.exec(t))!==null&&c!==void 0?c:[],p=lc(d,4),m=p[1],h=p[2],g=p[3],v=Kl.parse(m??""),y=Kl.parse(g??""),b=h==="+"?v.add(y):v.subtract(y);if(b.isNaN())return Zi;t=t.replace(cx,b.toString())}return t}var fx=/\(([^()]*)\)/;function DU(e){for(var t=e;t.includes("(");){var r=fx.exec(t),n=lc(r,2),i=n[1];t=t.replace(fx,iP(i))}return t}function RU(e){var t=e.replace(/\s+/g,"");return t=DU(t),t=iP(t),t}function LU(e){try{return RU(e)}catch{return Zi}}function ap(e){var t=LU(e.slice(5,-1));return t===Zi?"":t}var BU=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],zU=["dx","dy","angle","className","breakAll"];function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iy.apply(this,arguments)}function dx(e,t){if(e==null)return{};var r=FU(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function px(e,t){return VU(e)||HU(e,t)||WU(e,t)||UU()}function UU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
422
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WU(e,t){if(e){if(typeof e=="string")return hx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hx(e,t)}}function hx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function VU(e){if(Array.isArray(e))return e}var oP=/[ \f\n\r\t\v\u2028\u2029]+/,aP=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var o=[];J(r)||(n?o=r.toString().split(""):o=r.toString().split(oP));var a=o.map(function(l){return{word:l,width:Ka(l,i).width}}),s=n?0:Ka("ย ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},KU=function(t,r,n,i,o){var a=t.maxLines,s=t.children,l=t.style,u=t.breakAll,f=H(a),c=s,d=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(L,z){var C=z.word,R=z.width,B=L[L.length-1];if(B&&(i==null||o||B.width+R+n<Number(i)))B.words.push(C),B.width+=R+n;else{var V={words:[C],width:R};L.push(V)}return L},[])},p=d(r),m=function(N){return N.reduce(function(L,z){return L.width>z.width?L:z})};if(!f)return p;for(var h="โฆ",g=function(N){var L=c.slice(0,N),z=aP({breakAll:u,style:l,children:L+h}).wordsWithComputedWidth,C=d(z),R=C.length>a||m(C).width>Number(i);return[R,C]},v=0,y=c.length-1,b=0,_;v<=y&&b<=c.length-1;){var x=Math.floor((v+y)/2),w=x-1,O=g(w),A=px(O,2),E=A[0],j=A[1],T=g(x),k=px(T,1),D=k[0];if(!E&&!D&&(v=x+1),E&&D&&(y=x-1),!E&&D){_=j;break}b++}return _||p},yx=function(t){var r=J(t)?[]:t.toString().split(oP);return[{words:r}]},qU=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!ki.isSsr){var l,u,f=aP({breakAll:a,children:i,style:o});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,u=d}else return yx(i);return KU({breakAll:a,children:i,maxLines:s,style:o},l,u,r,n)}return yx(i)},vx="#808080",wi=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,m=t.verticalAnchor,h=m===void 0?"end":m,g=t.fill,v=g===void 0?vx:g,y=dx(t,BU),b=$.useMemo(function(){return qU({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:c,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,c,y.style,y.width]),_=y.dx,x=y.dy,w=y.angle,O=y.className,A=y.breakAll,E=dx(y,zU);if(!Ye(n)||!Ye(o))return null;var j=n+(H(_)?_:0),T=o+(H(x)?x:0),k;switch(h){case"start":k=ap("calc(".concat(u,")"));break;case"middle":k=ap("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:k=ap("calc(".concat(b.length-1," * -").concat(s,")"));break}var D=[];if(c){var I=b[0].width,N=y.width;D.push("scale(".concat((H(N)?N/I:1)/I,")"))}return w&&D.push("rotate(".concat(w,", ").concat(j,", ").concat(T,")")),D.length&&(E.transform=D.join(" ")),P.createElement("text",iy({},Y(E,!0),{x:j,y:T,className:te("recharts-text",O),textAnchor:p,fill:v.includes("url")?vx:v}),b.map(function(L,z){var C=L.words.join(A?"":" ");return P.createElement("tspan",{x:j,dy:z===0?k:s,key:"".concat(C,"-").concat(z)},C)}))};function Cn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function GU(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Im(e){let t,r,n;e.length!==2?(t=Cn,r=(s,l)=>Cn(e(s),l),n=(s,l)=>e(s)-l):(t=e===Cn||e===GU?e:XU,r=e,n=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<0?u=c+1:f=c}while(u<f)}return u}function o(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<=0?u=c+1:f=c}while(u<f)}return u}function a(s,l,u=0,f=s.length){const c=i(s,l,u,f-1);return c>u&&n(s[c-1],l)>-n(s[c],l)?c-1:c}return{left:i,center:a,right:o}}function XU(){return 0}function sP(e){return e===null?NaN:+e}function*YU(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const QU=Im(Cn),fl=QU.right;Im(sP).center;class mx extends Map{constructor(t,r=e7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(gx(this,t))}has(t){return super.has(gx(this,t))}set(t,r){return super.set(ZU(this,t),r)}delete(t){return super.delete(JU(this,t))}}function gx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function ZU({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function JU({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function e7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t7(e=Cn){if(e===Cn)return lP;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function lP(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const r7=Math.sqrt(50),n7=Math.sqrt(10),i7=Math.sqrt(2);function uc(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=r7?10:o>=n7?5:o>=i7?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?uc(e,t,r*2):[s,l,u]}function oy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,o,a]=n?uc(t,e,r):uc(e,t,r);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(n)if(a<0)for(let u=0;u<s;++u)l[u]=(o-u)/-a;else for(let u=0;u<s;++u)l[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)l[u]=(i+u)/-a;else for(let u=0;u<s;++u)l[u]=(i+u)*a;return l}function ay(e,t,r){return t=+t,e=+e,r=+r,uc(e,t,r)[2]}function sy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?ay(t,e,r):ay(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function bx(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function xx(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function uP(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?lP:t7(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*c/l+d)),m=Math.min(n,Math.floor(t+(l-u)*c/l+d));uP(e,t,p,m,i)}const o=e[t];let a=r,s=n;for(_a(e,r,t),i(e[n],o)>0&&_a(e,r,n);a<s;){for(_a(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[r],o)===0?_a(e,r,s):(++s,_a(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function _a(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function o7(e,t,r){if(e=Float64Array.from(YU(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return xx(e);if(t>=1)return bx(e);var n,i=(n-1)*t,o=Math.floor(i),a=bx(uP(e,o).subarray(0,o+1)),s=xx(e.subarray(o+1));return a+(s-a)*(i-o)}}function a7(e,t,r=sP){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function s7(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n<i;)o[n]=e+n*r;return o}function ir(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ln(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const ly=Symbol("implicit");function Dm(){var e=new mx,t=[],r=[],n=ly;function i(o){let a=e.get(o);if(a===void 0){if(n!==ly)return n;e.set(o,a=t.push(o)-1)}return r[a%r.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new mx;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return Dm(t,r).unknown(n)},ir.apply(i,arguments),i}function Es(){var e=Dm().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,o,a,s=!1,l=0,u=0,f=.5;delete e.unknown;function c(){var d=t().length,p=i<n,m=p?i:n,h=p?n:i;o=(h-m)/Math.max(1,d-l+u*2),s&&(o=Math.floor(o)),m+=(h-m-o*(d-l))*f,a=o*(1-l),s&&(m=Math.round(m),a=Math.round(a));var g=s7(d).map(function(v){return m+o*v});return r(p?g.reverse():g)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,c()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(d){return arguments.length?(s=!!d,c()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),c()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),c()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,c()):u},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return Es(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},ir.apply(c(),arguments)}function cP(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return cP(t())},e}function qa(){return cP(Es.apply(null,arguments).paddingInner(1))}function Rm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function fP(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function dl(){}var ks=.7,cc=1/ks,fo="\\s*([+-]?\\d+)\\s*",js="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l7=/^#([0-9a-f]{3,8})$/,u7=new RegExp(`^rgb\\(${fo},${fo},${fo}\\)$`),c7=new RegExp(`^rgb\\(${jr},${jr},${jr}\\)$`),f7=new RegExp(`^rgba\\(${fo},${fo},${fo},${js}\\)$`),d7=new RegExp(`^rgba\\(${jr},${jr},${jr},${js}\\)$`),p7=new RegExp(`^hsl\\(${js},${jr},${jr}\\)$`),h7=new RegExp(`^hsla\\(${js},${jr},${jr},${js}\\)$`),wx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Rm(dl,$s,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sx,formatHex:Sx,formatHex8:y7,formatHsl:v7,formatRgb:_x,toString:_x});function Sx(){return this.rgb().formatHex()}function y7(){return this.rgb().formatHex8()}function v7(){return dP(this).formatHsl()}function _x(){return this.rgb().formatRgb()}function $s(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l7.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ox(t):r===3?new Ot(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ql(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ql(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=u7.exec(e))?new Ot(t[1],t[2],t[3],1):(t=c7.exec(e))?new Ot(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=f7.exec(e))?ql(t[1],t[2],t[3],t[4]):(t=d7.exec(e))?ql(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=p7.exec(e))?Ex(t[1],t[2]/100,t[3]/100,1):(t=h7.exec(e))?Ex(t[1],t[2]/100,t[3]/100,t[4]):wx.hasOwnProperty(e)?Ox(wx[e]):e==="transparent"?new Ot(NaN,NaN,NaN,0):null}function Ox(e){return new Ot(e>>16&255,e>>8&255,e&255,1)}function ql(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ot(e,t,r,n)}function m7(e){return e instanceof dl||(e=$s(e)),e?(e=e.rgb(),new Ot(e.r,e.g,e.b,e.opacity)):new Ot}function uy(e,t,r,n){return arguments.length===1?m7(e):new Ot(e,t,r,n??1)}function Ot(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Rm(Ot,uy,fP(dl,{brighter(e){return e=e==null?cc:Math.pow(cc,e),new Ot(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new Ot(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ot(ci(this.r),ci(this.g),ci(this.b),fc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ax,formatHex:Ax,formatHex8:g7,formatRgb:Px,toString:Px}));function Ax(){return`#${oi(this.r)}${oi(this.g)}${oi(this.b)}`}function g7(){return`#${oi(this.r)}${oi(this.g)}${oi(this.b)}${oi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Px(){const e=fc(this.opacity);return`${e===1?"rgb(":"rgba("}${ci(this.r)}, ${ci(this.g)}, ${ci(this.b)}${e===1?")":`, ${e})`}`}function fc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ci(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oi(e){return e=ci(e),(e<16?"0":"")+e.toString(16)}function Ex(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yr(e,t,r,n)}function dP(e){if(e instanceof yr)return new yr(e.h,e.s,e.l,e.opacity);if(e instanceof dl||(e=$s(e)),!e)return new yr;if(e instanceof yr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(r-n)/s+(r<n)*6:r===o?a=(n-t)/s+2:a=(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new yr(a,s,l,e.opacity)}function b7(e,t,r,n){return arguments.length===1?dP(e):new yr(e,t,r,n??1)}function yr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Rm(yr,b7,fP(dl,{brighter(e){return e=e==null?cc:Math.pow(cc,e),new yr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new yr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ot(sp(e>=240?e-240:e+120,i,n),sp(e,i,n),sp(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new yr(kx(this.h),Gl(this.s),Gl(this.l),fc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=fc(this.opacity);return`${e===1?"hsl(":"hsla("}${kx(this.h)}, ${Gl(this.s)*100}%, ${Gl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function kx(e){return e=(e||0)%360,e<0?e+360:e}function Gl(e){return Math.max(0,Math.min(1,e||0))}function sp(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Lm=e=>()=>e;function x7(e,t){return function(r){return e+r*t}}function w7(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function S7(e){return(e=+e)==1?pP:function(t,r){return r-t?w7(t,r,e):Lm(isNaN(t)?r:t)}}function pP(e,t){var r=t-e;return r?x7(e,r):Lm(isNaN(e)?t:e)}const jx=function e(t){var r=S7(t);function n(i,o){var a=r((i=uy(i)).r,(o=uy(o)).r),s=r(i.g,o.g),l=r(i.b,o.b),u=pP(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return n.gamma=e,n}(1);function _7(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function O7(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function A7(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),a;for(a=0;a<n;++a)i[a]=sa(e[a],t[a]);for(;a<r;++a)o[a]=t[a];return function(s){for(a=0;a<n;++a)o[a]=i[a](s);return o}}function P7(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function dc(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function E7(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=sa(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var cy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lp=new RegExp(cy.source,"g");function k7(e){return function(){return e}}function j7(e){return function(t){return e(t)+""}}function $7(e,t){var r=cy.lastIndex=lp.lastIndex=0,n,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=cy.exec(e))&&(i=lp.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:dc(n,i)})),r=lp.lastIndex;return r<t.length&&(o=t.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?j7(l[0].x):k7(t):(t=l.length,function(u){for(var f=0,c;f<t;++f)s[(c=l[f]).i]=c.x(u);return s.join("")})}function sa(e,t){var r=typeof t,n;return t==null||r==="boolean"?Lm(t):(r==="number"?dc:r==="string"?(n=$s(t))?(t=n,jx):$7:t instanceof $s?jx:t instanceof Date?P7:O7(t)?_7:Array.isArray(t)?A7:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?E7:dc)(e,t)}function Bm(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function T7(e,t){t===void 0&&(t=e,e=sa);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return o[s](a-s)}}function C7(e){return function(){return e}}function pc(e){return+e}var $x=[0,1];function vt(e){return e}function fy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:C7(isNaN(t)?NaN:.5)}function N7(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function M7(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=fy(i,n),o=r(a,o)):(n=fy(n,i),o=r(o,a)),function(s){return o(n(s))}}function I7(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=fy(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(s){var l=fl(e,s,1,n)-1;return o[l](i[l](s))}}function pl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Hf(){var e=$x,t=$x,r=sa,n,i,o,a=vt,s,l,u;function f(){var d=Math.min(e.length,t.length);return a!==vt&&(a=N7(e[0],e[d-1])),s=d>2?I7:M7,l=u=null,c}function c(d){return d==null||isNaN(d=+d)?o:(l||(l=s(e.map(n),t,r)))(n(a(d)))}return c.invert=function(d){return a(i((u||(u=s(t,e.map(n),dc)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,pc),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=Bm,f()},c.clamp=function(d){return arguments.length?(a=d?!0:vt,f()):a!==vt},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(o=d,c):o},function(d,p){return n=d,i=p,f()}}function zm(){return Hf()(vt,vt)}function D7(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function hc(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ko(e){return e=hc(Math.abs(e)),e?e[1]:NaN}function R7(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function L7(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var B7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ts(e){if(!(t=B7.exec(e)))throw new Error("invalid format: "+e);var t;return new Fm({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ts.prototype=Fm.prototype;function Fm(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Fm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function z7(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var yc;function F7(e,t){var r=hc(e,t);if(!r)return yc=void 0,e.toPrecision(t);var n=r[0],i=r[1],o=i-(yc=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+hc(e,Math.max(0,t+o-1))[0]}function Tx(e,t){var r=hc(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Cx={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:D7,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Tx(e*100,t),r:Tx,s:F7,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Nx(e){return e}var Mx=Array.prototype.map,Ix=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"];function U7(e){var t=e.grouping===void 0||e.thousands===void 0?Nx:R7(Mx.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?Nx:L7(Mx.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"โ":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c,d){c=Ts(c);var p=c.fill,m=c.align,h=c.sign,g=c.symbol,v=c.zero,y=c.width,b=c.comma,_=c.precision,x=c.trim,w=c.type;w==="n"?(b=!0,w="g"):Cx[w]||(_===void 0&&(_=12),x=!0,w="g"),(v||p==="0"&&m==="=")&&(v=!0,p="0",m="=");var O=(d&&d.prefix!==void 0?d.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),A=(g==="$"?n:/[%p]/.test(w)?a:"")+(d&&d.suffix!==void 0?d.suffix:""),E=Cx[w],j=/[defgprs%]/.test(w);_=_===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function T(k){var D=O,I=A,N,L,z;if(w==="c")I=E(k)+I,k="";else{k=+k;var C=k<0||1/k<0;if(k=isNaN(k)?l:E(Math.abs(k),_),x&&(k=z7(k)),C&&+k==0&&h!=="+"&&(C=!1),D=(C?h==="("?h:s:h==="-"||h==="("?"":h)+D,I=(w==="s"&&!isNaN(k)&&yc!==void 0?Ix[8+yc/3]:"")+I+(C&&h==="("?")":""),j){for(N=-1,L=k.length;++N<L;)if(z=k.charCodeAt(N),48>z||z>57){I=(z===46?i+k.slice(N+1):k.slice(N))+I,k=k.slice(0,N);break}}}b&&!v&&(k=t(k,1/0));var R=D.length+k.length+I.length,B=R<y?new Array(y-R+1).join(p):"";switch(b&&v&&(k=t(B+k,B.length?y-I.length:1/0),B=""),m){case"<":k=D+k+I+B;break;case"=":k=D+B+k+I;break;case"^":k=B.slice(0,R=B.length>>1)+D+k+I+B.slice(R);break;default:k=B+D+k+I;break}return o(k)}return T.toString=function(){return c+""},T}function f(c,d){var p=Math.max(-8,Math.min(8,Math.floor(ko(d)/3)))*3,m=Math.pow(10,-p),h=u((c=Ts(c),c.type="f",c),{suffix:Ix[8+p/3]});return function(g){return h(m*g)}}return{format:u,formatPrefix:f}}var Xl,Um,hP;W7({thousands:",",grouping:[3],currency:["$",""]});function W7(e){return Xl=U7(e),Um=Xl.format,hP=Xl.formatPrefix,Xl}function H7(e){return Math.max(0,-ko(Math.abs(e)))}function V7(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ko(t)/3)))*3-ko(Math.abs(e)))}function K7(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ko(t)-ko(e))+1}function yP(e,t,r,n){var i=sy(e,t,r),o;switch(n=Ts(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=V7(i,a))&&(n.precision=o),hP(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=K7(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=H7(i))&&(n.precision=o-(n.type==="%")*2);break}}return Um(n)}function zn(e){var t=e.domain;return e.ticks=function(r){var n=t();return oy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return yP(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],s=n[o],l,u,f=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);f-- >0;){if(u=ay(a,s,r),u===l)return n[i]=a,n[o]=s,t(n);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function vc(){var e=zm();return e.copy=function(){return pl(e,vc())},ir.apply(e,arguments),zn(e)}function vP(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,pc),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return vP(e).unknown(t)},e=arguments.length?Array.from(e,pc):[0,1],zn(r)}function mP(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return o<i&&(a=r,r=n,n=a,a=i,i=o,o=a),e[r]=t.floor(i),e[n]=t.ceil(o),e}function Dx(e){return Math.log(e)}function Rx(e){return Math.exp(e)}function q7(e){return-Math.log(-e)}function G7(e){return-Math.exp(-e)}function X7(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Y7(e){return e===10?X7:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Q7(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Lx(e){return(t,r)=>-e(-t,r)}function Wm(e){const t=e(Dx,Rx),r=t.domain;let n=10,i,o;function a(){return i=Q7(n),o=Y7(n),r()[0]<0?(i=Lx(i),o=Lx(o),e(q7,G7)):e(Dx,Rx),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const l=r();let u=l[0],f=l[l.length-1];const c=f<u;c&&([u,f]=[f,u]);let d=i(u),p=i(f),m,h;const g=s==null?10:+s;let v=[];if(!(n%1)&&p-d<g){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(m=1;m<n;++m)if(h=d<0?m/o(-d):m*o(d),!(h<u)){if(h>f)break;v.push(h)}}else for(;d<=p;++d)for(m=n-1;m>=1;--m)if(h=d>0?m/o(-d):m*o(d),!(h<u)){if(h>f)break;v.push(h)}v.length*2<g&&(v=oy(u,f,g))}else v=oy(d,p,Math.min(p-d,g)).map(o);return c?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ts(l)).precision==null&&(l.trim=!0),l=Um(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return f=>{let c=f/o(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=u?l(f):""}},t.nice=()=>r(mP(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function gP(){const e=Wm(Hf()).domain([1,10]);return e.copy=()=>pl(e,gP()).base(e.base()),ir.apply(e,arguments),e}function Bx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Hm(e){var t=1,r=e(Bx(t),zx(t));return r.constant=function(n){return arguments.length?e(Bx(t=+n),zx(t)):t},zn(r)}function bP(){var e=Hm(Hf());return e.copy=function(){return pl(e,bP()).constant(e.constant())},ir.apply(e,arguments)}function Fx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Z7(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function J7(e){return e<0?-e*e:e*e}function Vm(e){var t=e(vt,vt),r=1;function n(){return r===1?e(vt,vt):r===.5?e(Z7,J7):e(Fx(r),Fx(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},zn(t)}function Km(){var e=Vm(Hf());return e.copy=function(){return pl(e,Km()).exponent(e.exponent())},ir.apply(e,arguments),e}function eW(){return Km.apply(null,arguments).exponent(.5)}function Ux(e){return Math.sign(e)*e*e}function tW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function xP(){var e=zm(),t=[0,1],r=!1,n;function i(o){var a=tW(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(Ux(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,pc)).map(Ux)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return xP(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ir.apply(i,arguments),zn(i)}function wP(){var e=[],t=[],r=[],n;function i(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=a7(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?n:t[fl(r,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Cn),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return wP().domain(e).range(t).unknown(n)},ir.apply(o,arguments)}function SP(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[fl(n,l,0,r)]:o}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return SP().domain([e,t]).range(i).unknown(o)},ir.apply(zn(a),arguments)}function _P(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[fl(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return _P().domain(e).range(t).unknown(r)},ir.apply(i,arguments)}const up=new Date,cp=new Date;function Qe(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return l},i.filter=o=>Qe(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),r&&(i.count=(o,a)=>(up.setTime(+o),cp.setTime(+a),e(up),e(cp),Math.floor(r(up,cp))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const mc=Qe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);mc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):mc);mc.range;const Wr=1e3,Zt=Wr*60,Hr=Zt*60,tn=Hr*24,qm=tn*7,Wx=tn*30,fp=tn*365,ai=Qe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wr)},(e,t)=>(t-e)/Wr,e=>e.getUTCSeconds());ai.range;const Gm=Qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wr)},(e,t)=>{e.setTime(+e+t*Zt)},(e,t)=>(t-e)/Zt,e=>e.getMinutes());Gm.range;const Xm=Qe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Zt)},(e,t)=>(t-e)/Zt,e=>e.getUTCMinutes());Xm.range;const Ym=Qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wr-e.getMinutes()*Zt)},(e,t)=>{e.setTime(+e+t*Hr)},(e,t)=>(t-e)/Hr,e=>e.getHours());Ym.range;const Qm=Qe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Hr)},(e,t)=>(t-e)/Hr,e=>e.getUTCHours());Qm.range;const hl=Qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Zt)/tn,e=>e.getDate()-1);hl.range;const Vf=Qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tn,e=>e.getUTCDate()-1);Vf.range;const OP=Qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tn,e=>Math.floor(e/tn));OP.range;function ji(e){return Qe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Zt)/qm)}const Kf=ji(0),gc=ji(1),rW=ji(2),nW=ji(3),jo=ji(4),iW=ji(5),oW=ji(6);Kf.range;gc.range;rW.range;nW.range;jo.range;iW.range;oW.range;function $i(e){return Qe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/qm)}const qf=$i(0),bc=$i(1),aW=$i(2),sW=$i(3),$o=$i(4),lW=$i(5),uW=$i(6);qf.range;bc.range;aW.range;sW.range;$o.range;lW.range;uW.range;const Zm=Qe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Zm.range;const Jm=Qe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Jm.range;const rn=Qe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());rn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});rn.range;const nn=Qe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());nn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});nn.range;function AP(e,t,r,n,i,o){const a=[[ai,1,Wr],[ai,5,5*Wr],[ai,15,15*Wr],[ai,30,30*Wr],[o,1,Zt],[o,5,5*Zt],[o,15,15*Zt],[o,30,30*Zt],[i,1,Hr],[i,3,3*Hr],[i,6,6*Hr],[i,12,12*Hr],[n,1,tn],[n,2,2*tn],[r,1,qm],[t,1,Wx],[t,3,3*Wx],[e,1,fp]];function s(u,f,c){const d=f<u;d&&([u,f]=[f,u]);const p=c&&typeof c.range=="function"?c:l(u,f,c),m=p?p.range(u,+f+1):[];return d?m.reverse():m}function l(u,f,c){const d=Math.abs(f-u)/c,p=Im(([,,g])=>g).right(a,d);if(p===a.length)return e.every(sy(u/fp,f/fp,c));if(p===0)return mc.every(Math.max(sy(u,f,c),1));const[m,h]=a[d/a[p-1][2]<a[p][2]/d?p-1:p];return m.every(h)}return[s,l]}const[cW,fW]=AP(nn,Jm,qf,OP,Qm,Xm),[dW,pW]=AP(rn,Zm,Kf,hl,Ym,Gm);function dp(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function pp(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Oa(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function hW(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Aa(i),f=Pa(i),c=Aa(o),d=Pa(o),p=Aa(a),m=Pa(a),h=Aa(s),g=Pa(s),v=Aa(l),y=Pa(l),b={a:z,A:C,b:R,B,c:null,d:Xx,e:Xx,f:RW,g:qW,G:XW,H:MW,I:IW,j:DW,L:PP,m:LW,M:BW,p:V,q:W,Q:Zx,s:Jx,S:zW,u:FW,U:UW,V:WW,w:HW,W:VW,x:null,X:null,y:KW,Y:GW,Z:YW,"%":Qx},_={a:X,A:oe,b:Ae,B:De,c:null,d:Yx,e:Yx,f:e9,g:c9,G:d9,H:QW,I:ZW,j:JW,L:kP,m:t9,M:r9,p:Wt,q:xt,Q:Zx,s:Jx,S:n9,u:i9,U:o9,V:a9,w:s9,W:l9,x:null,X:null,y:u9,Y:f9,Z:p9,"%":Qx},x={a:j,A:T,b:k,B:D,c:I,d:qx,e:qx,f:$W,g:Kx,G:Vx,H:Gx,I:Gx,j:PW,L:jW,m:AW,M:EW,p:E,q:OW,Q:CW,s:NW,S:kW,u:bW,U:xW,V:wW,w:gW,W:SW,x:N,X:L,y:Kx,Y:Vx,Z:_W,"%":TW};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),_.x=w(r,_),_.X=w(n,_),_.c=w(t,_);function w(K,ee){return function(re){var F=[],Ce=-1,ae=0,Ue=K.length,We,wt,cn;for(re instanceof Date||(re=new Date(+re));++Ce<Ue;)K.charCodeAt(Ce)===37&&(F.push(K.slice(ae,Ce)),(wt=Hx[We=K.charAt(++Ce)])!=null?We=K.charAt(++Ce):wt=We==="e"?" ":"0",(cn=ee[We])&&(We=cn(re,wt)),F.push(We),ae=Ce+1);return F.push(K.slice(ae,Ce)),F.join("")}}function O(K,ee){return function(re){var F=Oa(1900,void 0,1),Ce=A(F,K,re+="",0),ae,Ue;if(Ce!=re.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(ee&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(ae=pp(Oa(F.y,0,1)),Ue=ae.getUTCDay(),ae=Ue>4||Ue===0?bc.ceil(ae):bc(ae),ae=Vf.offset(ae,(F.V-1)*7),F.y=ae.getUTCFullYear(),F.m=ae.getUTCMonth(),F.d=ae.getUTCDate()+(F.w+6)%7):(ae=dp(Oa(F.y,0,1)),Ue=ae.getDay(),ae=Ue>4||Ue===0?gc.ceil(ae):gc(ae),ae=hl.offset(ae,(F.V-1)*7),F.y=ae.getFullYear(),F.m=ae.getMonth(),F.d=ae.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Ue="Z"in F?pp(Oa(F.y,0,1)).getUTCDay():dp(Oa(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Ue+5)%7:F.w+F.U*7-(Ue+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,pp(F)):dp(F)}}function A(K,ee,re,F){for(var Ce=0,ae=ee.length,Ue=re.length,We,wt;Ce<ae;){if(F>=Ue)return-1;if(We=ee.charCodeAt(Ce++),We===37){if(We=ee.charAt(Ce++),wt=x[We in Hx?ee.charAt(Ce++):We],!wt||(F=wt(K,re,F))<0)return-1}else if(We!=re.charCodeAt(F++))return-1}return F}function E(K,ee,re){var F=u.exec(ee.slice(re));return F?(K.p=f.get(F[0].toLowerCase()),re+F[0].length):-1}function j(K,ee,re){var F=p.exec(ee.slice(re));return F?(K.w=m.get(F[0].toLowerCase()),re+F[0].length):-1}function T(K,ee,re){var F=c.exec(ee.slice(re));return F?(K.w=d.get(F[0].toLowerCase()),re+F[0].length):-1}function k(K,ee,re){var F=v.exec(ee.slice(re));return F?(K.m=y.get(F[0].toLowerCase()),re+F[0].length):-1}function D(K,ee,re){var F=h.exec(ee.slice(re));return F?(K.m=g.get(F[0].toLowerCase()),re+F[0].length):-1}function I(K,ee,re){return A(K,t,ee,re)}function N(K,ee,re){return A(K,r,ee,re)}function L(K,ee,re){return A(K,n,ee,re)}function z(K){return a[K.getDay()]}function C(K){return o[K.getDay()]}function R(K){return l[K.getMonth()]}function B(K){return s[K.getMonth()]}function V(K){return i[+(K.getHours()>=12)]}function W(K){return 1+~~(K.getMonth()/3)}function X(K){return a[K.getUTCDay()]}function oe(K){return o[K.getUTCDay()]}function Ae(K){return l[K.getUTCMonth()]}function De(K){return s[K.getUTCMonth()]}function Wt(K){return i[+(K.getUTCHours()>=12)]}function xt(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var ee=w(K+="",b);return ee.toString=function(){return K},ee},parse:function(K){var ee=O(K+="",!1);return ee.toString=function(){return K},ee},utcFormat:function(K){var ee=w(K+="",_);return ee.toString=function(){return K},ee},utcParse:function(K){var ee=O(K+="",!0);return ee.toString=function(){return K},ee}}}var Hx={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,yW=/^%/,vW=/[\\^$*+?|[\]().{}]/g;function ue(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function mW(e){return e.replace(vW,"\\$&")}function Aa(e){return new RegExp("^(?:"+e.map(mW).join("|")+")","i")}function Pa(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function gW(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function bW(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function xW(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function wW(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function SW(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Vx(e,t,r){var n=rt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Kx(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _W(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function OW(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function AW(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function qx(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function PW(e,t,r){var n=rt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Gx(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function EW(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function kW(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function jW(e,t,r){var n=rt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function $W(e,t,r){var n=rt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function TW(e,t,r){var n=yW.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function CW(e,t,r){var n=rt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function NW(e,t,r){var n=rt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Xx(e,t){return ue(e.getDate(),t,2)}function MW(e,t){return ue(e.getHours(),t,2)}function IW(e,t){return ue(e.getHours()%12||12,t,2)}function DW(e,t){return ue(1+hl.count(rn(e),e),t,3)}function PP(e,t){return ue(e.getMilliseconds(),t,3)}function RW(e,t){return PP(e,t)+"000"}function LW(e,t){return ue(e.getMonth()+1,t,2)}function BW(e,t){return ue(e.getMinutes(),t,2)}function zW(e,t){return ue(e.getSeconds(),t,2)}function FW(e){var t=e.getDay();return t===0?7:t}function UW(e,t){return ue(Kf.count(rn(e)-1,e),t,2)}function EP(e){var t=e.getDay();return t>=4||t===0?jo(e):jo.ceil(e)}function WW(e,t){return e=EP(e),ue(jo.count(rn(e),e)+(rn(e).getDay()===4),t,2)}function HW(e){return e.getDay()}function VW(e,t){return ue(gc.count(rn(e)-1,e),t,2)}function KW(e,t){return ue(e.getFullYear()%100,t,2)}function qW(e,t){return e=EP(e),ue(e.getFullYear()%100,t,2)}function GW(e,t){return ue(e.getFullYear()%1e4,t,4)}function XW(e,t){var r=e.getDay();return e=r>=4||r===0?jo(e):jo.ceil(e),ue(e.getFullYear()%1e4,t,4)}function YW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ue(t/60|0,"0",2)+ue(t%60,"0",2)}function Yx(e,t){return ue(e.getUTCDate(),t,2)}function QW(e,t){return ue(e.getUTCHours(),t,2)}function ZW(e,t){return ue(e.getUTCHours()%12||12,t,2)}function JW(e,t){return ue(1+Vf.count(nn(e),e),t,3)}function kP(e,t){return ue(e.getUTCMilliseconds(),t,3)}function e9(e,t){return kP(e,t)+"000"}function t9(e,t){return ue(e.getUTCMonth()+1,t,2)}function r9(e,t){return ue(e.getUTCMinutes(),t,2)}function n9(e,t){return ue(e.getUTCSeconds(),t,2)}function i9(e){var t=e.getUTCDay();return t===0?7:t}function o9(e,t){return ue(qf.count(nn(e)-1,e),t,2)}function jP(e){var t=e.getUTCDay();return t>=4||t===0?$o(e):$o.ceil(e)}function a9(e,t){return e=jP(e),ue($o.count(nn(e),e)+(nn(e).getUTCDay()===4),t,2)}function s9(e){return e.getUTCDay()}function l9(e,t){return ue(bc.count(nn(e)-1,e),t,2)}function u9(e,t){return ue(e.getUTCFullYear()%100,t,2)}function c9(e,t){return e=jP(e),ue(e.getUTCFullYear()%100,t,2)}function f9(e,t){return ue(e.getUTCFullYear()%1e4,t,4)}function d9(e,t){var r=e.getUTCDay();return e=r>=4||r===0?$o(e):$o.ceil(e),ue(e.getUTCFullYear()%1e4,t,4)}function p9(){return"+0000"}function Qx(){return"%"}function Zx(e){return+e}function Jx(e){return Math.floor(+e/1e3)}var Di,$P,TP;h9({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function h9(e){return Di=hW(e),$P=Di.format,Di.parse,TP=Di.utcFormat,Di.utcParse,Di}function y9(e){return new Date(e)}function v9(e){return e instanceof Date?+e:+new Date(+e)}function eg(e,t,r,n,i,o,a,s,l,u){var f=zm(),c=f.invert,d=f.domain,p=u(".%L"),m=u(":%S"),h=u("%I:%M"),g=u("%I %p"),v=u("%a %d"),y=u("%b %d"),b=u("%B"),_=u("%Y");function x(w){return(l(w)<w?p:s(w)<w?m:a(w)<w?h:o(w)<w?g:n(w)<w?i(w)<w?v:y:r(w)<w?b:_)(w)}return f.invert=function(w){return new Date(c(w))},f.domain=function(w){return arguments.length?d(Array.from(w,v9)):d().map(y9)},f.ticks=function(w){var O=d();return e(O[0],O[O.length-1],w??10)},f.tickFormat=function(w,O){return O==null?x:u(O)},f.nice=function(w){var O=d();return(!w||typeof w.range!="function")&&(w=t(O[0],O[O.length-1],w??10)),w?d(mP(O,w)):f},f.copy=function(){return pl(f,eg(e,t,r,n,i,o,a,s,l,u))},f}function m9(){return ir.apply(eg(dW,pW,rn,Zm,Kf,hl,Ym,Gm,ai,$P).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function g9(){return ir.apply(eg(cW,fW,nn,Jm,qf,Vf,Qm,Xm,ai,TP).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gf(){var e=0,t=1,r,n,i,o,a=vt,s=!1,l;function u(c){return c==null||isNaN(c=+c)?l:a(i===0?.5:(c=(o(c)-r)*i,s?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(c){return arguments.length?(s=!!c,u):s},u.interpolator=function(c){return arguments.length?(a=c,u):a};function f(c){return function(d){var p,m;return arguments.length?([p,m]=d,a=c(p,m),u):[a(0),a(1)]}}return u.range=f(sa),u.rangeRound=f(Bm),u.unknown=function(c){return arguments.length?(l=c,u):l},function(c){return o=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),u}}function Fn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function CP(){var e=zn(Gf()(vt));return e.copy=function(){return Fn(e,CP())},ln.apply(e,arguments)}function NP(){var e=Wm(Gf()).domain([1,10]);return e.copy=function(){return Fn(e,NP()).base(e.base())},ln.apply(e,arguments)}function MP(){var e=Hm(Gf());return e.copy=function(){return Fn(e,MP()).constant(e.constant())},ln.apply(e,arguments)}function tg(){var e=Vm(Gf());return e.copy=function(){return Fn(e,tg()).exponent(e.exponent())},ln.apply(e,arguments)}function b9(){return tg.apply(null,arguments).exponent(.5)}function IP(){var e=[],t=vt;function r(n){if(n!=null&&!isNaN(n=+n))return t((fl(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Cn),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>o7(e,o/n))},r.copy=function(){return IP(t).domain(e)},ln.apply(r,arguments)}function Xf(){var e=0,t=.5,r=1,n=1,i,o,a,s,l,u=vt,f,c=!1,d;function p(h){return isNaN(h=+h)?d:(h=.5+((h=+f(h))-o)*(n*h<n*o?s:l),u(c?Math.max(0,Math.min(1,h)):h))}p.domain=function(h){return arguments.length?([e,t,r]=h,i=f(e=+e),o=f(t=+t),a=f(r=+r),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),n=o<i?-1:1,p):[e,t,r]},p.clamp=function(h){return arguments.length?(c=!!h,p):c},p.interpolator=function(h){return arguments.length?(u=h,p):u};function m(h){return function(g){var v,y,b;return arguments.length?([v,y,b]=g,u=T7(h,[v,y,b]),p):[u(0),u(.5),u(1)]}}return p.range=m(sa),p.rangeRound=m(Bm),p.unknown=function(h){return arguments.length?(d=h,p):d},function(h){return f=h,i=h(e),o=h(t),a=h(r),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),n=o<i?-1:1,p}}function DP(){var e=zn(Xf()(vt));return e.copy=function(){return Fn(e,DP())},ln.apply(e,arguments)}function RP(){var e=Wm(Xf()).domain([.1,1,10]);return e.copy=function(){return Fn(e,RP()).base(e.base())},ln.apply(e,arguments)}function LP(){var e=Hm(Xf());return e.copy=function(){return Fn(e,LP()).constant(e.constant())},ln.apply(e,arguments)}function rg(){var e=Vm(Xf());return e.copy=function(){return Fn(e,rg()).exponent(e.exponent())},ln.apply(e,arguments)}function x9(){return rg.apply(null,arguments).exponent(.5)}const e1=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Es,scaleDiverging:DP,scaleDivergingLog:RP,scaleDivergingPow:rg,scaleDivergingSqrt:x9,scaleDivergingSymlog:LP,scaleIdentity:vP,scaleImplicit:ly,scaleLinear:vc,scaleLog:gP,scaleOrdinal:Dm,scalePoint:qa,scalePow:Km,scaleQuantile:wP,scaleQuantize:SP,scaleRadial:xP,scaleSequential:CP,scaleSequentialLog:NP,scaleSequentialPow:tg,scaleSequentialQuantile:IP,scaleSequentialSqrt:b9,scaleSequentialSymlog:MP,scaleSqrt:eW,scaleSymlog:bP,scaleThreshold:_P,scaleTime:m9,scaleUtc:g9,tickFormat:yP},Symbol.toStringTag,{value:"Module"}));var w9=Zo;function S9(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(a!=null&&(s===void 0?a===a&&!w9(a):r(a,s)))var s=a,l=o}return l}var Yf=S9;function _9(e,t){return e>t}var BP=_9,O9=Yf,A9=BP,P9=aa;function E9(e){return e&&e.length?O9(e,P9,A9):void 0}var k9=E9;const Qf=de(k9);function j9(e,t){return e<t}var zP=j9,$9=Yf,T9=zP,C9=aa;function N9(e){return e&&e.length?$9(e,C9,T9):void 0}var M9=N9;const Zf=de(M9);var I9=vm,D9=Ir,R9=XA,L9=kt;function B9(e,t){var r=L9(e)?I9:R9;return r(e,D9(t))}var z9=B9,F9=qA,U9=z9;function W9(e,t){return F9(U9(e,t),1)}var H9=W9;const V9=de(H9);var K9=Tm;function q9(e,t){return K9(e,t)}var G9=q9;const yl=de(G9);var la=1e9,X9={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ig,ke=!0,rr="[DecimalError] ",fi=rr+"Invalid argument: ",ng=rr+"Exponent out of range: ",ua=Math.floor,Jn=Math.pow,Y9=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Mt,Ze=1e7,_e=7,FP=9007199254740991,xc=ua(FP/_e),G={};G.absoluteValue=G.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};G.comparedTo=G.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*_e;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return Gr(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return ve(Gr(t,new r(e),0,1),r.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return Fe(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Mt))throw Error(rr+"NaN");if(r.s<1)throw Error(rr+(r.s?"NaN":"-Infinity"));return r.eq(Mt)?new n(0):(ke=!1,t=Gr(Cs(r,o),Cs(e,o),o),ke=!0,ve(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?HP(t,e):UP(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(rr+"NaN");return r.s?(ke=!1,t=Gr(r,e,0,1).times(e),ke=!0,r.minus(t)):ve(new n(r),i)};G.naturalExponential=G.exp=function(){return WP(this)};G.naturalLogarithm=G.ln=function(){return Cs(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?UP(t,e):HP(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(fi+e);if(t=Fe(i)+1,n=i.d.length-1,r=n*_e+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(rr+"NaN")}for(e=Fe(s),ke=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ar(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ua((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=a=r+3;;)if(o=n,n=o.plus(Gr(s,o,a+2)).times(.5),Ar(o.d).slice(0,a)===(t=Ar(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(ve(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return ke=!0,ve(n,r)};G.times=G.mul=function(e){var t,r,n,i,o,a,s,l,u,f=this,c=f.constructor,d=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,l=d.length,u=p.length,l<u&&(o=d,d=p,p=o,a=l,l=u,u=a),o=[],a=l+u,n=a;n--;)o.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+p[n]*d[i-n-1]+t,o[i--]=s%Ze|0,t=s/Ze|0;o[i]=(o[i]+t)%Ze|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,ke?ve(e,c.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Cr(e,0,la),t===void 0?t=n.rounding:Cr(t,0,8),ve(r,e+Fe(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Si(n,!0):(Cr(e,0,la),t===void 0?t=i.rounding:Cr(t,0,8),n=ve(new i(n),e+1,t),r=Si(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Si(i):(Cr(e,0,la),t===void 0?t=o.rounding:Cr(t,0,8),n=ve(new o(i),e+Fe(i)+1,t),r=Si(n.abs(),!1,e+Fe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return ve(new t(e),Fe(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(Mt);if(s=new l(s),!s.s){if(e.s<1)throw Error(rr+"Infinity");return s}if(s.eq(Mt))return s;if(n=l.precision,e.eq(Mt))return ve(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=f<0?-f:f)<=FP){for(i=new l(Mt),t=Math.ceil(n/_e+4),ke=!1;r%2&&(i=i.times(s),r1(i.d,t)),r=ua(r/2),r!==0;)s=s.times(s),r1(s.d,t);return ke=!0,e.s<0?new l(Mt).div(i):ve(i,n)}}else if(o<0)throw Error(rr+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ke=!1,i=e.times(Cs(s,n+u)),ke=!0,i=WP(i),i.s=o,i};G.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=Fe(i),n=Si(i,r<=o.toExpNeg||r>=o.toExpPos)):(Cr(e,1,la),t===void 0?t=o.rounding:Cr(t,0,8),i=ve(new o(i),e,t),r=Fe(i),n=Si(i,e<=r||r<=o.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Cr(e,1,la),t===void 0?t=n.rounding:Cr(t,0,8)),ve(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Fe(e),r=e.constructor;return Si(e,t<=r.toExpNeg||t>=r.toExpPos)};function UP(e,t){var r,n,i,o,a,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ke?ve(t,c):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(n=l,o=-o,s=u.length):(n=u,i=a,s=l.length),a=Math.ceil(c/_e),s=a>s?a+1:s+1,o>s&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,n=u,u=l,l=n),r=0;o;)r=(l[--o]=l[o]+u[o]+r)/Ze|0,l[o]%=Ze;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ke?ve(t,c):t}function Cr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(fi+e)}function Ar(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)n=e[t]+"",r=_e-n.length,r&&(o+=yn(r)),o+=n;a=e[t],n=a+"",r=_e-n.length,r&&(o+=yn(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Gr=function(){function e(n,i){var o,a=0,s=n.length;for(n=n.slice();s--;)o=n[s]*i+a,n[s]=o%Ze|0,a=o/Ze|0;return a&&n.unshift(a),n}function t(n,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]<i[o]?1:0,n[o]=a*Ze+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,a){var s,l,u,f,c,d,p,m,h,g,v,y,b,_,x,w,O,A,E=n.constructor,j=n.s==i.s?1:-1,T=n.d,k=i.d;if(!n.s)return new E(n);if(!i.s)throw Error(rr+"Division by zero");for(l=n.e-i.e,O=k.length,x=T.length,p=new E(j),m=p.d=[],u=0;k[u]==(T[u]||0);)++u;if(k[u]>(T[u]||0)&&--l,o==null?y=o=E.precision:a?y=o+(Fe(n)-Fe(i))+1:y=o,y<0)return new E(0);if(y=y/_e+2|0,u=0,O==1)for(f=0,k=k[0],y++;(u<x||f)&&y--;u++)b=f*Ze+(T[u]||0),m[u]=b/k|0,f=b%k|0;else{for(f=Ze/(k[0]+1)|0,f>1&&(k=e(k,f),T=e(T,f),O=k.length,x=T.length),_=O,h=T.slice(0,O),g=h.length;g<O;)h[g++]=0;A=k.slice(),A.unshift(0),w=k[0],k[1]>=Ze/2&&++w;do f=0,s=t(k,h,O,g),s<0?(v=h[0],O!=g&&(v=v*Ze+(h[1]||0)),f=v/w|0,f>1?(f>=Ze&&(f=Ze-1),c=e(k,f),d=c.length,g=h.length,s=t(c,h,d,g),s==1&&(f--,r(c,O<d?A:k,d))):(f==0&&(s=f=1),c=k.slice()),d=c.length,d<g&&c.unshift(0),r(h,c,g),s==-1&&(g=h.length,s=t(k,h,O,g),s<1&&(f++,r(h,O<g?A:k,g))),g=h.length):s===0&&(f++,h=[0]),m[u++]=f,s&&h[0]?h[g++]=T[_]||0:(h=[T[_]],g=1);while((_++<x||h[0]!==void 0)&&y--)}return m[0]||m.shift(),p.e=l,ve(p,a?o+Fe(p)+1:o)}}();function WP(e,t){var r,n,i,o,a,s,l=0,u=0,f=e.constructor,c=f.precision;if(Fe(e)>16)throw Error(ng+Fe(e));if(!e.s)return new f(Mt);for(ke=!1,s=c,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(n=Math.log(Jn(2,u))/Math.LN10*2+5|0,s+=n,r=i=o=new f(Mt),f.precision=s;;){if(i=ve(i.times(e),s),r=r.times(++l),a=o.plus(Gr(i,r,s)),Ar(a.d).slice(0,s)===Ar(o.d).slice(0,s)){for(;u--;)o=ve(o.times(o),s);return f.precision=c,t==null?(ke=!0,ve(o,c)):o}o=a}}function Fe(e){for(var t=e.e*_e,r=e.d[0];r>=10;r/=10)t++;return t}function hp(e,t,r){if(t>e.LN10.sd())throw ke=!0,r&&(e.precision=r),Error(rr+"LN10 precision limit exceeded");return ve(new e(e.LN10),t)}function yn(e){for(var t="";e--;)t+="0";return t}function Cs(e,t){var r,n,i,o,a,s,l,u,f,c=1,d=10,p=e,m=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(rr+(p.s?"NaN":"-Infinity"));if(p.eq(Mt))return new h(0);if(t==null?(ke=!1,u=g):u=t,p.eq(10))return t==null&&(ke=!0),hp(h,u);if(u+=d,h.precision=u,r=Ar(m),n=r.charAt(0),o=Fe(p),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Ar(p.d),n=r.charAt(0),c++;o=Fe(p),n>1?(p=new h("0."+r),o++):p=new h(n+"."+r.slice(1))}else return l=hp(h,u+2,g).times(o+""),p=Cs(new h(n+"."+r.slice(1)),u-d).plus(l),h.precision=g,t==null?(ke=!0,ve(p,g)):p;for(s=a=p=Gr(p.minus(Mt),p.plus(Mt),u),f=ve(p.times(p),u),i=3;;){if(a=ve(a.times(f),u),l=s.plus(Gr(a,new h(i),u)),Ar(l.d).slice(0,u)===Ar(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(hp(h,u+2,g).times(o+""))),s=Gr(s,new h(c),u),h.precision=g,t==null?(ke=!0,ve(s,g)):s;s=l,i+=2}}function t1(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=ua(r/_e),e.d=[],n=(r+1)%_e,r<0&&(n+=_e),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=_e;n<i;)e.d.push(+t.slice(n,n+=_e));t=t.slice(n),n=_e-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ke&&(e.e>xc||e.e<-xc))throw Error(ng+r)}else e.s=0,e.e=0,e.d=[0];return e}function ve(e,t,r){var n,i,o,a,s,l,u,f,c=e.d;for(a=1,o=c[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=_e,i=t,u=c[f=0];else{if(f=Math.ceil((n+1)/_e),o=c.length,f>=o)return e;for(u=o=c[f],a=1;o>=10;o/=10)a++;n%=_e,i=n-_e+a}if(r!==void 0&&(o=Jn(10,a-i-1),s=u/o%10|0,l=t<0||c[f+1]!==void 0||u%o,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Jn(10,a-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return l?(o=Fe(e),c.length=1,t=t-o-1,c[0]=Jn(10,(_e-t%_e)%_e),e.e=ua(-t/_e)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,o=1,f--):(c.length=f+1,o=Jn(10,_e-n),c[f]=i>0?(u/Jn(10,a-i)%Jn(10,i)|0)*o:0),l)for(;;)if(f==0){(c[0]+=o)==Ze&&(c[0]=1,++e.e);break}else{if(c[f]+=o,c[f]!=Ze)break;c[f--]=0,o=1}for(n=c.length;c[--n]===0;)c.pop();if(ke&&(e.e>xc||e.e<-xc))throw Error(ng+Fe(e));return e}function HP(e,t){var r,n,i,o,a,s,l,u,f,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ke?ve(t,p):t;if(l=e.d,c=t.d,n=t.e,u=e.e,l=l.slice(),a=u-n,a){for(f=a<0,f?(r=l,a=-a,s=c.length):(r=c,n=u,s=l.length),i=Math.max(Math.ceil(p/_e),s)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=c.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=c[i]){f=l[i]<c[i];break}a=0}for(f&&(r=l,l=c,c=r,t.s=-t.s),s=l.length,i=c.length-s;i>0;--i)l[s++]=0;for(i=c.length;i>a;){if(l[--i]<c[i]){for(o=i;o&&l[--o]===0;)l[o]=Ze-1;--l[o],l[i]+=Ze}l[i]-=c[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,ke?ve(t,p):t):new d(0)}function Si(e,t,r){var n,i=Fe(e),o=Ar(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+yn(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+yn(-i-1)+o,r&&(n=r-a)>0&&(o+=yn(n))):i>=a?(o+=yn(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+yn(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=yn(n))),e.s<0?"-"+o:o}function r1(e,t){if(e.length>t)return e.length=t,!0}function VP(e){var t,r,n;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(fi+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return t1(a,o.toString())}else if(typeof o!="string")throw Error(fi+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Y9.test(o))t1(a,o);else throw Error(fi+o)}if(i.prototype=G,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=VP,i.config=i.set=Q9,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Q9(e){if(!e||typeof e!="object")throw Error(rr+"Object expected");var t,r,n,i=["precision",1,la,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(ua(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(fi+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(fi+r+": "+n);return this}var ig=VP(X9);Mt=new ig(1);const ye=ig;function Z9(e){return rH(e)||tH(e)||eH(e)||J9()}function J9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
423
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eH(e,t){if(e){if(typeof e=="string")return dy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dy(e,t)}}function tH(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function rH(e){if(Array.isArray(e))return dy(e)}function dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var nH=function(t){return t},KP={},qP=function(t){return t===KP},n1=function(t){return function r(){return arguments.length===0||arguments.length===1&&qP(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},iH=function e(t,r){return t===1?r:n1(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==KP}).length;return a>=t?r.apply(void 0,i):e(t-a,n1(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(c){return qP(c)?l.shift():c});return r.apply(void 0,Z9(f).concat(l))}))})},Jf=function(t){return iH(t.length,t)},py=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},oH=Jf(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),aH=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return nH;var i=r.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,l){return l(s)},o.apply(void 0,arguments))}},hy=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},GP=function(t){var r=null,n=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r&&o.every(function(s,l){return s===r[l]})||(r=o,n=t.apply(void 0,o)),n}};function sH(e){var t;return e===0?t=1:t=Math.floor(new ye(e).abs().log(10).toNumber())+1,t}function lH(e,t,r){for(var n=new ye(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var uH=Jf(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),cH=Jf(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),fH=Jf(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const ed={rangeStep:lH,getDigitCount:sH,interpolateNumber:uH,uninterpolateNumber:cH,uninterpolateTruncation:fH};function yy(e){return hH(e)||pH(e)||XP(e)||dH()}function dH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
424
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pH(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function hH(e){if(Array.isArray(e))return vy(e)}function Ns(e,t){return mH(e)||vH(e,t)||XP(e,t)||yH()}function yH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
425
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XP(e,t){if(e){if(typeof e=="string")return vy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vy(e,t)}}function vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vH(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,o=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw o}}return r}}function mH(e){if(Array.isArray(e))return e}function YP(e){var t=Ns(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function QP(e,t,r){if(e.lte(0))return new ye(0);var n=ed.getDigitCount(e.toNumber()),i=new ye(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new ye(Math.ceil(o.div(a).toNumber())).add(r).mul(a),l=s.mul(i);return t?l:new ye(Math.ceil(l))}function gH(e,t,r){var n=1,i=new ye(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new ye(10).pow(ed.getDigitCount(e)-1),i=new ye(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new ye(Math.floor(e)))}else e===0?i=new ye(Math.floor((t-1)/2)):r||(i=new ye(Math.floor(e)));var a=Math.floor((t-1)/2),s=aH(oH(function(l){return i.add(new ye(l-a).mul(n)).toNumber()}),py);return s(0,t)}function ZP(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ye(0),tickMin:new ye(0),tickMax:new ye(0)};var o=QP(new ye(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new ye(0):(a=new ye(e).add(t).div(2),a=a.sub(new ye(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new ye(t).sub(a).div(o).toNumber()),u=s+l+1;return u>r?ZP(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:o,tickMin:a.sub(new ye(s).mul(o)),tickMax:a.add(new ye(l).mul(o))})}function bH(e){var t=Ns(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=YP([r,n]),l=Ns(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(yy(py(0,i-1).map(function(){return 1/0}))):[].concat(yy(py(0,i-1).map(function(){return-1/0})),[f]);return r>n?hy(c):c}if(u===f)return gH(u,i,o);var d=ZP(u,f,a,o),p=d.step,m=d.tickMin,h=d.tickMax,g=ed.rangeStep(m,h.add(new ye(.1).mul(p)),p);return r>n?hy(g):g}function xH(e,t){var r=Ns(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=YP([n,i]),s=Ns(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var f=Math.max(t,2),c=QP(new ye(u).sub(l).div(f-1),o,0),d=[].concat(yy(ed.rangeStep(new ye(l),new ye(u).sub(new ye(.99).mul(c)),c)),[u]);return n>i?hy(d):d}var wH=GP(bH),SH=GP(xH),_H="Invariant failed";function _i(e,t){throw new Error(_H)}var OH=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wc.apply(this,arguments)}function AH(e,t){return jH(e)||kH(e,t)||EH(e,t)||PH()}function PH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
426
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EH(e,t){if(e){if(typeof e=="string")return i1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i1(e,t)}}function i1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function jH(e){if(Array.isArray(e))return e}function $H(e,t){if(e==null)return{};var r=TH(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function CH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tE(n.key),n)}}function MH(e,t,r){return t&&NH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IH(e,t,r){return t=Sc(t),DH(e,JP()?Reflect.construct(t,r||[],Sc(e).constructor):t.apply(e,r))}function DH(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RH(e)}function RH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JP=function(){return!!e})()}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sc(e)}function LH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&my(e,t)}function my(e,t){return my=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},my(e,t)}function eE(e,t,r){return t=tE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tE(e){var t=BH(e,"string");return To(t)=="symbol"?t:t+""}function BH(e,t){if(To(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(To(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vl=function(e){function t(){return CH(this,t),IH(this,t,arguments)}return LH(t,e),MH(t,[{key:"render",value:function(){var n=this.props,i=n.offset,o=n.layout,a=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,d=$H(n,OH),p=Y(d,!1);this.props.direction==="x"&&f.type!=="number"&&_i();var m=l.map(function(h){var g=u(h,s),v=g.x,y=g.y,b=g.value,_=g.errorVal;if(!_)return null;var x=[],w,O;if(Array.isArray(_)){var A=AH(_,2);w=A[0],O=A[1]}else w=O=_;if(o==="vertical"){var E=f.scale,j=y+i,T=j+a,k=j-a,D=E(b-w),I=E(b+O);x.push({x1:I,y1:T,x2:I,y2:k}),x.push({x1:D,y1:j,x2:I,y2:j}),x.push({x1:D,y1:T,x2:D,y2:k})}else if(o==="horizontal"){var N=c.scale,L=v+i,z=L-a,C=L+a,R=N(b-w),B=N(b+O);x.push({x1:z,y1:B,x2:C,y2:B}),x.push({x1:L,y1:R,x2:L,y2:B}),x.push({x1:z,y1:R,x2:C,y2:R})}return P.createElement(le,wc({className:"recharts-errorBar",key:"bar-".concat(x.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},p),x.map(function(V){return P.createElement("line",wc({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return P.createElement(le,{className:"recharts-errorBars"},m)}}])}(P.Component);eE(vl,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});eE(vl,"displayName","ErrorBar");function Ms(e){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function o1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o1(Object(r),!0).forEach(function(n){zH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zH(e,t,r){return t=FH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FH(e){var t=UH(e,"string");return Ms(t)=="symbol"?t:t+""}function UH(e,t){if(Ms(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rE=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Ct(r,co);if(!a)return null;var s=co.defaultProps,l=s!==void 0?Vn(Vn({},s),a.props):{},u;return a.props&&a.props.payload?u=a.props&&a.props.payload:o==="children"?u=(n||[]).reduce(function(f,c){var d=c.item,p=c.props,m=p.sectors||p.data||[];return f.concat(m.map(function(h){return{type:a.props.iconType||d.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):u=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,p=d!==void 0?Vn(Vn({},d),c.props):{},m=p.dataKey,h=p.name,g=p.legendType,v=p.hide;return{inactive:v,dataKey:m,type:l.iconType||g||"square",color:og(c),value:h||m,payload:p}}),Vn(Vn(Vn({},l),co.getWithHeight(a,i)),{},{payload:u,item:a})};function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}function a1(e){return KH(e)||VH(e)||HH(e)||WH()}function WH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
427
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HH(e,t){if(e){if(typeof e=="string")return gy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gy(e,t)}}function VH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KH(e){if(Array.isArray(e))return gy(e)}function gy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s1(Object(r),!0).forEach(function(n){po(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function po(e,t,r){return t=qH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qH(e){var t=GH(e,"string");return Is(t)=="symbol"?t:t+""}function GH(e,t){if(Is(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Is(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ge(e,t,r){return J(e)||J(t)?r:Ye(t)?Rt(e,t,r):Z(t)?t(e):r}function Ga(e,t,r,n){var i=V9(e,function(s){return Ge(s,t)});if(r==="number"){var o=i.filter(function(s){return H(s)||parseFloat(s)});return o.length?[Zf(o),Qf(o)]:[1/0,-1/0]}var a=n?i.filter(function(s){return!J(s)}):i;return a.map(function(s){return Ye(s)||s instanceof Date?s:""})}var XH=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,u=0;u<s;u++){var f=u>0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(ht(c-f)!==ht(d-c)){var m=[];if(ht(d-c)===ht(l[1]-l[0])){p=d;var h=c+l[1]-l[0];m[0]=Math.min(h,(h+f)/2),m[1]=Math.max(h,(h+f)/2)}else{p=f;var g=d+l[1]-l[0];m[0]=Math.min(c,(g+c)/2),m[1]=Math.max(c,(g+c)/2)}var v=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>v[0]&&t<=v[1]||t>=m[0]&&t<=m[1]){a=i[u].index;break}}else{var y=Math.min(f,d),b=Math.max(f,d);if(t>(y+c)/2&&t<=(b+c)/2){a=i[u].index;break}}}else for(var _=0;_<s;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){a=n[_].index;break}return a},og=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,l;switch(i){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},YH=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),l=0,u=s.length;l<u;l++)for(var f=o[s[l]].stackGroups,c=Object.keys(f),d=0,p=c.length;d<p;d++){var m=f[c[d]],h=m.items,g=m.cateAxisId,v=h.filter(function(O){return qr(O.type).indexOf("Bar")>=0});if(v&&v.length){var y=v[0].type.defaultProps,b=y!==void 0?Me(Me({},y),v[0].props):v[0].props,_=b.barSize,x=b[g];a[x]||(a[x]=[]);var w=J(_)?r:_;a[x].push({item:v[0],stackList:v.slice(1),barSize:J(w)?void 0:yt(w,n,0)})}}return a},QH=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,l=a.length;if(l<1)return null;var u=yt(r,i,0,!0),f,c=[];if(a[0].barSize===+a[0].barSize){var d=!1,p=i/l,m=a.reduce(function(_,x){return _+x.barSize||0},0);m+=(l-1)*u,m>=i&&(m-=(l-1)*u,u=0),m>=i&&p>0&&(d=!0,p*=.9,m=l*p);var h=(i-m)/2>>0,g={offset:h-u,size:0};f=a.reduce(function(_,x){var w={item:x.item,position:{offset:g.offset+g.size+u,size:d?p:x.barSize}},O=[].concat(a1(_),[w]);return g=O[O.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(A){O.push({item:A,position:g})}),O},c)}else{var v=yt(n,i,0,!0);i-2*v-(l-1)*u<=0&&(u=0);var y=(i-2*v-(l-1)*u)/l;y>1&&(y>>=0);var b=s===+s?Math.min(y,s):y;f=a.reduce(function(_,x,w){var O=[].concat(a1(_),[{item:x.item,position:{offset:v+(y+u)*w+(y-b)/2,size:b}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(A){O.push({item:A,position:O[O.length-1].position})}),O},c)}return f},ZH=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,l=a-(s.left||0)-(s.right||0),u=rE({children:o,legendWidth:l});if(u){var f=i||{},c=f.width,d=f.height,p=u.align,m=u.verticalAlign,h=u.layout;if((h==="vertical"||h==="horizontal"&&m==="middle")&&p!=="center"&&H(t[p]))return Me(Me({},t),{},po({},p,t[p]+(c||0)));if((h==="horizontal"||h==="vertical"&&p==="center")&&m!=="middle"&&H(t[m]))return Me(Me({},t),{},po({},m,t[m]+(d||0)))}return t},JH=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},nE=function(t,r,n,i,o){var a=r.props.children,s=Lt(a,vl).filter(function(u){return JH(i,o,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=Ge(f,n);if(J(c))return u;var d=Array.isArray(c)?[Zf(c),Qf(c)]:[c,c],p=l.reduce(function(m,h){var g=Ge(f,h,0),v=d[0]-Math.abs(Array.isArray(g)?g[0]:g),y=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(v,m[0]),Math.max(y,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},eV=function(t,r,n,i,o){var a=r.map(function(s){return nE(t,s,n,o,i)}).filter(function(s){return!J(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},iE=function(t,r,n,i,o){var a=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&nE(t,l,u,i)||Ga(t,u,n,o)});if(n==="number")return a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,u){for(var f=0,c=u.length;f<c;f++)s[u[f]]||(s[u[f]]=!0,l.push(u[f]));return l},[])},oE=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},aE=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var o,a,s=t.map(function(l){return l.coordinate===r&&(o=!0),l.coordinate===n&&(a=!0),l.coordinate});return o||s.push(r),a||s.push(n),s},Vr=function(t,r,n){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&a==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?ht(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=o?o.indexOf(c):c;return{coordinate:i(d)+u,value:c,offset:u}});return f.filter(function(c){return!ul(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+u,value:c,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,d){return{coordinate:i(c)+u,value:o?o[c]:c,index:d,offset:u}})},yp=new WeakMap,Yl=function(t,r){if(typeof r!="function")return t;yp.has(t)||yp.set(t,new WeakMap);var n=yp.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},sE=function(t,r,n){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:Es(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:vc(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:qa(),realScaleType:"point"}:o==="category"?{scale:Es(),realScaleType:"band"}:{scale:vc(),realScaleType:"linear"};if(bi(i)){var l="scale".concat(Rf(i));return{scale:(e1[l]||qa)(),realScaleType:e1[l]?l:"point"}}return Z(i)?{scale:i}:{scale:qa(),realScaleType:"point"}},l1=1e-4,lE=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-l1,a=Math.max(i[0],i[1])+l1,s=t(r[0]),l=t(r[n-1]);(s<o||s>a||l<o||l>a)&&t.domain([r[0],r[n-1]])}},tV=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},rV=function(t,r){if(!r||r.length!==2||!H(r[0])||!H(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),o=[t[0],t[1]];return(!H(t[0])||t[0]<n)&&(o[0]=n),(!H(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<n&&(o[1]=n),o},nV=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0,s=0;s<r;++s){var l=ul(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1]):(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1])}},iV=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0;a<r;++a){var s=ul(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=0,t[a][n][1]=0)}},oV={sign:nV,expand:OR,none:_o,silhouette:AR,wiggle:PR,positive:iV},aV=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=oV[n],a=_R().keys(i).value(function(s,l){return+Ge(s,l,0)}).order(Wh).offset(o);return a(t)},sV=function(t,r,n,i,o,a){if(!t)return null;var s=a?r.reverse():r,l={},u=s.reduce(function(c,d){var p,m=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Me(Me({},d.type.defaultProps),d.props):d.props,h=m.stackId,g=m.hide;if(g)return c;var v=m[n],y=c[v]||{hasStack:!1,stackGroups:{}};if(Ye(h)){var b=y.stackGroups[h]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(d),y.hasStack=!0,y.stackGroups[h]=b}else y.stackGroups[na("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Me(Me({},c),{},po({},v,y))},l),f={};return Object.keys(u).reduce(function(c,d){var p=u[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(h,g){var v=p.stackGroups[g];return Me(Me({},h),{},po({},g,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:aV(t,v.items,o)}))},m)}return Me(Me({},c),{},po({},d,p))},f)},uE=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,a=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=wH(u,o,s);return t.domain([Zf(f),Qf(f)]),{niceTicks:f}}if(o&&i==="number"){var c=t.domain(),d=SH(c,o,s);return{niceTicks:d}}return null};function u1(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!J(i[t.dataKey])){var s=Gu(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var l=Ge(i,J(a)?t.dataKey:a);return J(l)?null:t.scale(l)}var c1=function(t){var r=t.axis,n=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=Ge(a,r.dataKey,r.domain[s]);return J(l)?null:r.scale(l)-o/2+i},lV=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return i<=0&&o>=0?0:o<0?o:i}return n[0]},uV=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Ye(o)){var a=r[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},cV=function(t){return t.reduce(function(r,n){return[Zf(n.concat([r[0]]).filter(H)),Qf(n.concat([r[1]]).filter(H))]},[1/0,-1/0])},cE=function(t,r,n){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,l=s.reduce(function(u,f){var c=cV(f.slice(r,n+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},f1=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,d1=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,by=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(H(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(f1.test(t[0])){var o=+f1.exec(t[0])[1];i[0]=r[0]-o}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(H(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(d1.test(t[1])){var a=+d1.exec(t[1])[1];i[1]=r[1]+a}else Z(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},_c=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var o=Nm(r,function(c){return c.coordinate}),a=1/0,s=1,l=o.length;s<l;s++){var u=o[s],f=o[s-1];a=Math.min((u.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},p1=function(t,r,n){return!t||!t.length||yl(t,Rt(n,"type.defaultProps.domain"))?r:t},fE=function(t,r){var n=t.type.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,i=n.dataKey,o=n.name,a=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,f=n.hide;return Me(Me({},Y(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:og(t),value:Ge(r,i),type:l,payload:r,chartType:u,hide:f})};function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(e)}function h1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h1(Object(r),!0).forEach(function(n){dE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dE(e,t,r){return t=fV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fV(e){var t=dV(e,"string");return Ds(t)=="symbol"?t:t+""}function dV(e,t){if(Ds(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pV(e,t){return mV(e)||vV(e,t)||yV(e,t)||hV()}function hV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
428
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yV(e,t){if(e){if(typeof e=="string")return y1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y1(e,t)}}function y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function mV(e){if(Array.isArray(e))return e}var Oc=Math.PI/180,gV=function(t){return t*180/Math.PI},xe=function(t,r,n,i){return{x:t+Math.cos(-Oc*i)*n,y:r+Math.sin(-Oc*i)*n}},pE=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},bV=function(t,r,n,i,o){var a=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=yt(t.cx,a,a/2),c=yt(t.cy,s,s/2),d=pE(a,s,n),p=yt(t.innerRadius,d,0),m=yt(t.outerRadius,d,d*.8),h=Object.keys(r);return h.reduce(function(g,v){var y=r[v],b=y.domain,_=y.reversed,x;if(J(y.range))i==="angleAxis"?x=[l,u]:i==="radiusAxis"&&(x=[p,m]),_&&(x=[x[1],x[0]]);else{x=y.range;var w=x,O=pV(w,2);l=O[0],u=O[1]}var A=sE(y,o),E=A.realScaleType,j=A.scale;j.domain(b).range(x),lE(j);var T=uE(j,Br(Br({},y),{},{realScaleType:E})),k=Br(Br(Br({},y),T),{},{range:x,radius:m,realScaleType:E,scale:j,cx:f,cy:c,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return Br(Br({},g),{},dE({},v,k))},{})},xV=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(i-a,2))},wV=function(t,r){var n=t.x,i=t.y,o=r.cx,a=r.cy,s=xV({x:n,y:i},{x:o,y:a});if(s<=0)return{radius:s};var l=(n-o)/s,u=Math.acos(l);return i>a&&(u=2*Math.PI-u),{radius:s,angle:gV(u),angleInRadian:u}},SV=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return{startAngle:r-a*360,endAngle:n-a*360}},_V=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},v1=function(t,r){var n=t.x,i=t.y,o=wV({x:n,y:i},r),a=o.radius,s=o.angle,l=r.innerRadius,u=r.outerRadius;if(a<l||a>u)return!1;if(a===0)return!0;var f=SV(r),c=f.startAngle,d=f.endAngle,p=s,m;if(c<=d){for(;p>d;)p-=360;for(;p<c;)p+=360;m=p>=c&&p<=d}else{for(;p>c;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=c}return m?Br(Br({},r),{},{radius:a,angle:_V(p,r)}):null},hE=function(t){return!$.isValidElement(t)&&!Z(t)&&typeof t!="boolean"?t.className:""};function Rs(e){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rs(e)}var OV=["offset"];function AV(e){return jV(e)||kV(e)||EV(e)||PV()}function PV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
429
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EV(e,t){if(e){if(typeof e=="string")return xy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xy(e,t)}}function kV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jV(e){if(Array.isArray(e))return xy(e)}function xy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $V(e,t){if(e==null)return{};var r=TV(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function m1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m1(Object(r),!0).forEach(function(n){CV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CV(e,t,r){return t=NV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NV(e){var t=MV(e,"string");return Rs(t)=="symbol"?t:t+""}function MV(e,t){if(Rs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ls.apply(this,arguments)}var IV=function(t){var r=t.value,n=t.formatter,i=J(t.children)?r:t.children;return Z(n)?n(i):i},DV=function(t,r){var n=ht(r-t),i=Math.min(Math.abs(r-t),360);return n*i},RV=function(t,r,n){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,l=o,u=l.cx,f=l.cy,c=l.innerRadius,d=l.outerRadius,p=l.startAngle,m=l.endAngle,h=l.clockWise,g=(c+d)/2,v=DV(p,m),y=v>=0?1:-1,b,_;i==="insideStart"?(b=p+y*a,_=h):i==="insideEnd"?(b=m-y*a,_=!h):i==="end"&&(b=m+y*a,_=h),_=v<=0?_:!_;var x=xe(u,f,g,b),w=xe(u,f,g,b+(_?1:-1)*359),O="M".concat(x.x,",").concat(x.y,`
|
|
430
|
-
A`).concat(g,",").concat(g,",0,1,").concat(_?0:1,`,
|
|
431
|
-
`).concat(w.x,",").concat(w.y),A=J(t.id)?na("recharts-radial-line-"):t.id;return P.createElement("text",Ls({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",s)}),P.createElement("defs",null,P.createElement("path",{id:A,d:O})),P.createElement("textPath",{xlinkHref:"#".concat(A)},r))},LV=function(t){var r=t.viewBox,n=t.offset,i=t.position,o=r,a=o.cx,s=o.cy,l=o.innerRadius,u=o.outerRadius,f=o.startAngle,c=o.endAngle,d=(f+c)/2;if(i==="outside"){var p=xe(a,s,u+n,d),m=p.x,h=p.y;return{x:m,y:h,textAnchor:m>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var g=(l+u)/2,v=xe(a,s,g,d),y=v.x,b=v.y;return{x:y,y:b,textAnchor:"middle",verticalAnchor:"middle"}},BV=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,a=r,s=a.x,l=a.y,u=a.width,f=a.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",m=c>0?"start":"end",h=u>=0?1:-1,g=h*i,v=h>0?"end":"start",y=h>0?"start":"end";if(o==="top"){var b={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:p};return Ve(Ve({},b),n?{height:Math.max(l-n.y,0),width:u}:{})}if(o==="bottom"){var _={x:s+u/2,y:l+f+d,textAnchor:"middle",verticalAnchor:m};return Ve(Ve({},_),n?{height:Math.max(n.y+n.height-(l+f),0),width:u}:{})}if(o==="left"){var x={x:s-g,y:l+f/2,textAnchor:v,verticalAnchor:"middle"};return Ve(Ve({},x),n?{width:Math.max(x.x-n.x,0),height:f}:{})}if(o==="right"){var w={x:s+u+g,y:l+f/2,textAnchor:y,verticalAnchor:"middle"};return Ve(Ve({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var O=n?{width:u,height:f}:{};return o==="insideLeft"?Ve({x:s+g,y:l+f/2,textAnchor:y,verticalAnchor:"middle"},O):o==="insideRight"?Ve({x:s+u-g,y:l+f/2,textAnchor:v,verticalAnchor:"middle"},O):o==="insideTop"?Ve({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:m},O):o==="insideBottom"?Ve({x:s+u/2,y:l+f-d,textAnchor:"middle",verticalAnchor:p},O):o==="insideTopLeft"?Ve({x:s+g,y:l+d,textAnchor:y,verticalAnchor:m},O):o==="insideTopRight"?Ve({x:s+u-g,y:l+d,textAnchor:v,verticalAnchor:m},O):o==="insideBottomLeft"?Ve({x:s+g,y:l+f-d,textAnchor:y,verticalAnchor:p},O):o==="insideBottomRight"?Ve({x:s+u-g,y:l+f-d,textAnchor:v,verticalAnchor:p},O):Jo(o)&&(H(o.x)||ii(o.x))&&(H(o.y)||ii(o.y))?Ve({x:s+yt(o.x,u),y:l+yt(o.y,f),textAnchor:"end",verticalAnchor:"end"},O):Ve({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},zV=function(t){return"cx"in t&&H(t.cx)};function et(e){var t=e.offset,r=t===void 0?5:t,n=$V(e,OV),i=Ve({offset:r},n),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!o||J(s)&&J(l)&&!$.isValidElement(u)&&!Z(u))return null;if($.isValidElement(u))return $.cloneElement(u,i);var p;if(Z(u)){if(p=$.createElement(u,i),$.isValidElement(p))return p}else p=IV(i);var m=zV(o),h=Y(i,!0);if(m&&(a==="insideStart"||a==="insideEnd"||a==="end"))return RV(i,p,h);var g=m?LV(i):BV(i);return P.createElement(wi,Ls({className:te("recharts-label",c)},h,g,{breakAll:d}),p)}et.displayName="Label";var yE=function(t){var r=t.cx,n=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,m=t.left,h=t.width,g=t.height,v=t.clockWise,y=t.labelViewBox;if(y)return y;if(H(h)&&H(g)){if(H(c)&&H(d))return{x:c,y:d,width:h,height:g};if(H(p)&&H(m))return{x:p,y:m,width:h,height:g}}return H(c)&&H(d)?{x:c,y:d,width:0,height:0}:H(r)&&H(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},FV=function(t,r){return t?t===!0?P.createElement(et,{key:"label-implicit",viewBox:r}):Ye(t)?P.createElement(et,{key:"label-implicit",viewBox:r,value:t}):$.isValidElement(t)?t.type===et?$.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement(et,{key:"label-implicit",content:t,viewBox:r}):Z(t)?P.createElement(et,{key:"label-implicit",content:t,viewBox:r}):Jo(t)?P.createElement(et,Ls({viewBox:r},t,{key:"label-implicit"})):null:null},UV=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=yE(t),a=Lt(i,et).map(function(l,u){return $.cloneElement(l,{viewBox:r||o,key:"label-".concat(u)})});if(!n)return a;var s=FV(t.label,r||o);return[s].concat(AV(a))};et.parseViewBox=yE;et.renderCallByParent=UV;function WV(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var HV=WV;const VV=de(HV);function Bs(e){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bs(e)}var KV=["valueAccessor"],qV=["data","dataKey","clockWise","id","textBreakAll"];function GV(e){return ZV(e)||QV(e)||YV(e)||XV()}function XV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
432
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YV(e,t){if(e){if(typeof e=="string")return wy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wy(e,t)}}function QV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZV(e){if(Array.isArray(e))return wy(e)}function wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ac.apply(this,arguments)}function g1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function b1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g1(Object(r),!0).forEach(function(n){JV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JV(e,t,r){return t=eK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eK(e){var t=tK(e,"string");return Bs(t)=="symbol"?t:t+""}function tK(e,t){if(Bs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x1(e,t){if(e==null)return{};var r=rK(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var nK=function(t){return Array.isArray(t.value)?VV(t.value):t.value};function Xr(e){var t=e.valueAccessor,r=t===void 0?nK:t,n=x1(e,KV),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,l=n.textBreakAll,u=x1(n,qV);return!i||!i.length?null:P.createElement(le,{className:"recharts-label-list"},i.map(function(f,c){var d=J(o)?r(f,c):Ge(f&&f.payload,o),p=J(s)?{}:{id:"".concat(s,"-").concat(c)};return P.createElement(et,Ac({},Y(f,!0),u,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:et.parseViewBox(J(a)?f:b1(b1({},f),{},{clockWise:a})),key:"label-".concat(c),index:c}))}))}Xr.displayName="LabelList";function iK(e,t){return e?e===!0?P.createElement(Xr,{key:"labelList-implicit",data:t}):P.isValidElement(e)||Z(e)?P.createElement(Xr,{key:"labelList-implicit",data:t,content:e}):Jo(e)?P.createElement(Xr,Ac({data:t},e,{key:"labelList-implicit"})):null:null}function oK(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Lt(n,Xr).map(function(a,s){return $.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=iK(e.label,t);return[o].concat(GV(i))}Xr.renderCallByParent=oK;function zs(e){"@babel/helpers - typeof";return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zs(e)}function Sy(){return Sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sy.apply(this,arguments)}function w1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function S1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w1(Object(r),!0).forEach(function(n){aK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aK(e,t,r){return t=sK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sK(e){var t=lK(e,"string");return zs(t)=="symbol"?t:t+""}function lK(e,t){if(zs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uK=function(t,r){var n=ht(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Ql=function(t){var r=t.cx,n=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,f=l*(s?1:-1)+i,c=Math.asin(l/f)/Oc,d=u?o:o+a*c,p=xe(r,n,f,d),m=xe(r,n,i,d),h=u?o-a*c:o,g=xe(r,n,f*Math.cos(c*Oc),h);return{center:p,circleTangency:m,lineTangency:g,theta:c}},vE=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,l=uK(a,s),u=a+l,f=xe(r,n,o,a),c=xe(r,n,o,u),d="M ".concat(f.x,",").concat(f.y,`
|
|
433
|
-
A `).concat(o,",").concat(o,`,0,
|
|
434
|
-
`).concat(+(Math.abs(l)>180),",").concat(+(a>u),`,
|
|
435
|
-
`).concat(c.x,",").concat(c.y,`
|
|
436
|
-
`);if(i>0){var p=xe(r,n,i,a),m=xe(r,n,i,u);d+="L ".concat(m.x,",").concat(m.y,`
|
|
437
|
-
A `).concat(i,",").concat(i,`,0,
|
|
438
|
-
`).concat(+(Math.abs(l)>180),",").concat(+(a<=u),`,
|
|
439
|
-
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},cK=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=ht(f-u),d=Ql({cx:r,cy:n,radius:o,angle:u,sign:c,cornerRadius:a,cornerIsExternal:l}),p=d.circleTangency,m=d.lineTangency,h=d.theta,g=Ql({cx:r,cy:n,radius:o,angle:f,sign:-c,cornerRadius:a,cornerIsExternal:l}),v=g.circleTangency,y=g.lineTangency,b=g.theta,_=l?Math.abs(u-f):Math.abs(u-f)-h-b;if(_<0)return s?"M ".concat(m.x,",").concat(m.y,`
|
|
440
|
-
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
|
|
441
|
-
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
|
|
442
|
-
`):vE({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f});var x="M ".concat(m.x,",").concat(m.y,`
|
|
443
|
-
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
|
|
444
|
-
A`).concat(o,",").concat(o,",0,").concat(+(_>180),",").concat(+(c<0),",").concat(v.x,",").concat(v.y,`
|
|
445
|
-
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
|
|
446
|
-
`);if(i>0){var w=Ql({cx:r,cy:n,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),O=w.circleTangency,A=w.lineTangency,E=w.theta,j=Ql({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),T=j.circleTangency,k=j.lineTangency,D=j.theta,I=l?Math.abs(u-f):Math.abs(u-f)-E-D;if(I<0&&a===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat(k.x,",").concat(k.y,`
|
|
447
|
-
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(T.x,",").concat(T.y,`
|
|
448
|
-
A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(c>0),",").concat(O.x,",").concat(O.y,`
|
|
449
|
-
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(A.x,",").concat(A.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},fK={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},mE=function(t){var r=S1(S1({},fK),t),n=r.cx,i=r.cy,o=r.innerRadius,a=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(a<o||f===c)return null;var p=te("recharts-sector",d),m=a-o,h=yt(s,m,0,!0),g;return h>0&&Math.abs(f-c)<360?g=cK({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(h,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):g=vE({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:c}),P.createElement("path",Sy({},Y(r,!0),{className:p,d:g,role:"img"}))};function Fs(e){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fs(e)}function _y(){return _y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_y.apply(this,arguments)}function _1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function O1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_1(Object(r),!0).forEach(function(n){dK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dK(e,t,r){return t=pK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pK(e){var t=hK(e,"string");return Fs(t)=="symbol"?t:t+""}function hK(e,t){if(Fs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A1={curveBasisClosed:dR,curveBasisOpen:pR,curveBasis:fR,curveBumpX:Q3,curveBumpY:Z3,curveLinearClosed:hR,curveLinear:Bf,curveMonotoneX:yR,curveMonotoneY:vR,curveNatural:mR,curveStep:gR,curveStepAfter:xR,curveStepBefore:bR},Zl=function(t){return t.x===+t.x&&t.y===+t.y},Ea=function(t){return t.x},ka=function(t){return t.y},yK=function(t,r){if(Z(t))return t;var n="curve".concat(Rf(t));return(n==="curveMonotone"||n==="curveBump")&&r?A1["".concat(n).concat(r==="vertical"?"Y":"X")]:A1[n]||Bf},vK=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,f=yK(n,s),c=u?o.filter(function(h){return Zl(h)}):o,d;if(Array.isArray(a)){var p=u?a.filter(function(h){return Zl(h)}):a,m=c.map(function(h,g){return O1(O1({},h),{},{base:p[g]})});return s==="vertical"?d=Ul().y(ka).x1(Ea).x0(function(h){return h.base.x}):d=Ul().x(Ea).y1(ka).y0(function(h){return h.base.y}),d.defined(Zl).curve(f),d(m)}return s==="vertical"&&H(a)?d=Ul().y(ka).x1(Ea).x0(a):H(a)?d=Ul().x(Ea).y1(ka).y0(a):d=dA().x(Ea).y(ka),d.defined(Zl).curve(f),d(c)},Pc=function(t){var r=t.className,n=t.points,i=t.path,o=t.pathRef;if((!n||!n.length)&&!i)return null;var a=n&&n.length?vK(t):i;return $.createElement("path",_y({},Y(t,!1),Xu(t),{className:te("recharts-curve",r),d:a,ref:o}))},gE={exports:{}},mK="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gK=mK,bK=gK;function bE(){}function xE(){}xE.resetWarningCache=bE;var xK=function(){function e(n,i,o,a,s,l){if(l!==bK){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xE,resetWarningCache:bE};return r.PropTypes=r,r};gE.exports=xK();var wK=gE.exports;const fe=de(wK),{getOwnPropertyNames:SK,getOwnPropertySymbols:_K}=Object,{hasOwnProperty:OK}=Object.prototype;function vp(e,t){return function(n,i,o){return e(n,i,o)&&t(n,i,o)}}function Jl(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:o}=i,a=o.get(r),s=o.get(n);if(a&&s)return a===n&&s===r;o.set(r,n),o.set(n,r);const l=e(r,n,i);return o.delete(r),o.delete(n),l}}function AK(e){return e!=null?e[Symbol.toStringTag]:void 0}function P1(e){return SK(e).concat(_K(e))}const PK=Object.hasOwn||((e,t)=>OK.call(e,t));function Ti(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const EK="__v",kK="__o",jK="_owner",{getOwnPropertyDescriptor:E1,keys:k1}=Object;function $K(e,t){return e.byteLength===t.byteLength&&Ec(new Uint8Array(e),new Uint8Array(t))}function TK(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function CK(e,t){return e.byteLength===t.byteLength&&Ec(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function NK(e,t){return Ti(e.getTime(),t.getTime())}function MK(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function IK(e,t){return e===t}function j1(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),o=e.entries();let a,s,l=0;for(;(a=o.next())&&!a.done;){const u=t.entries();let f=!1,c=0;for(;(s=u.next())&&!s.done;){if(i[c]){c++;continue}const d=a.value,p=s.value;if(r.equals(d[0],p[0],l,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}const DK=Ti;function RK(e,t,r){const n=k1(e);let i=n.length;if(k1(t).length!==i)return!1;for(;i-- >0;)if(!wE(e,t,r,n[i]))return!1;return!0}function ja(e,t,r){const n=P1(e);let i=n.length;if(P1(t).length!==i)return!1;let o,a,s;for(;i-- >0;)if(o=n[i],!wE(e,t,r,o)||(a=E1(e,o),s=E1(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function LK(e,t){return Ti(e.valueOf(),t.valueOf())}function BK(e,t){return e.source===t.source&&e.flags===t.flags}function $1(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),o=e.values();let a,s;for(;(a=o.next())&&!a.done;){const l=t.values();let u=!1,f=0;for(;(s=l.next())&&!s.done;){if(!i[f]&&r.equals(a.value,s.value,a.value,s.value,e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function Ec(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function zK(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function wE(e,t,r,n){return(n===jK||n===kK||n===EK)&&(e.$$typeof||t.$$typeof)?!0:PK(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const FK="[object ArrayBuffer]",UK="[object Arguments]",WK="[object Boolean]",HK="[object DataView]",VK="[object Date]",KK="[object Error]",qK="[object Map]",GK="[object Number]",XK="[object Object]",YK="[object RegExp]",QK="[object Set]",ZK="[object String]",JK={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},eq="[object URL]",tq=Object.prototype.toString;function rq({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:m}){return function(g,v,y){if(g===v)return!0;if(g==null||v==null)return!1;const b=typeof g;if(b!==typeof v)return!1;if(b!=="object")return b==="number"?s(g,v,y):b==="function"?o(g,v,y):!1;const _=g.constructor;if(_!==v.constructor)return!1;if(_===Object)return l(g,v,y);if(Array.isArray(g))return t(g,v,y);if(_===Date)return n(g,v,y);if(_===RegExp)return f(g,v,y);if(_===Map)return a(g,v,y);if(_===Set)return c(g,v,y);const x=tq.call(g);if(x===VK)return n(g,v,y);if(x===YK)return f(g,v,y);if(x===qK)return a(g,v,y);if(x===QK)return c(g,v,y);if(x===XK)return typeof g.then!="function"&&typeof v.then!="function"&&l(g,v,y);if(x===eq)return p(g,v,y);if(x===KK)return i(g,v,y);if(x===UK)return l(g,v,y);if(JK[x])return d(g,v,y);if(x===FK)return e(g,v,y);if(x===HK)return r(g,v,y);if(x===WK||x===GK||x===ZK)return u(g,v,y);if(m){let w=m[x];if(!w){const O=AK(g);O&&(w=m[O])}if(w)return w(g,v,y)}return!1}}function nq({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:$K,areArraysEqual:r?ja:TK,areDataViewsEqual:CK,areDatesEqual:NK,areErrorsEqual:MK,areFunctionsEqual:IK,areMapsEqual:r?vp(j1,ja):j1,areNumbersEqual:DK,areObjectsEqual:r?ja:RK,arePrimitiveWrappersEqual:LK,areRegExpsEqual:BK,areSetsEqual:r?vp($1,ja):$1,areTypedArraysEqual:r?vp(Ec,ja):Ec,areUrlsEqual:zK,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Jl(n.areArraysEqual),o=Jl(n.areMapsEqual),a=Jl(n.areObjectsEqual),s=Jl(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:s})}return n}function iq(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function oq({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:f}=r();return t(s,l,{cache:u,equals:n,meta:f,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const o={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,o)}}const aq=Un();Un({strict:!0});Un({circular:!0});Un({circular:!0,strict:!0});Un({createInternalComparator:()=>Ti});Un({strict:!0,createInternalComparator:()=>Ti});Un({circular:!0,createInternalComparator:()=>Ti});Un({circular:!0,createInternalComparator:()=>Ti,strict:!0});function Un(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,o=nq(e),a=rq(o),s=r?r(a):iq(a);return oq({circular:t,comparator:a,createState:n,equals:s,strict:i})}function sq(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function T1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):sq(i)};requestAnimationFrame(n)}function Oy(e){"@babel/helpers - typeof";return Oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oy(e)}function lq(e){return dq(e)||fq(e)||cq(e)||uq()}function uq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
450
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cq(e,t){if(e){if(typeof e=="string")return C1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C1(e,t)}}function C1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dq(e){if(Array.isArray(e))return e}function pq(){var e={},t=function(){return null},r=!1,n=function i(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var a=o,s=lq(a),l=s[0],u=s.slice(1);if(typeof l=="number"){T1(i.bind(null,u),l);return}i(l),T1(i.bind(null,u));return}Oy(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,n(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Us(e){"@babel/helpers - typeof";return Us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Us(e)}function N1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N1(Object(r),!0).forEach(function(n){SE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SE(e,t,r){return t=hq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hq(e){var t=yq(e,"string");return Us(t)==="symbol"?t:String(t)}function yq(e,t){if(Us(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Us(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vq=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(o){return i.includes(o)})})},mq=function(t){return t},gq=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Xa=function(t,r){return Object.keys(r).reduce(function(n,i){return M1(M1({},n),{},SE({},i,t(i,r[i])))},{})},I1=function(t,r,n){return t.map(function(i){return"".concat(gq(i)," ").concat(r,"ms ").concat(n)}).join(",")};function bq(e,t){return Sq(e)||wq(e,t)||_E(e,t)||xq()}function xq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
451
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Sq(e){if(Array.isArray(e))return e}function _q(e){return Pq(e)||Aq(e)||_E(e)||Oq()}function Oq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
452
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _E(e,t){if(e){if(typeof e=="string")return Ay(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ay(e,t)}}function Aq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pq(e){if(Array.isArray(e))return Ay(e)}function Ay(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kc=1e-4,OE=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},AE=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},D1=function(t,r){return function(n){var i=OE(t,r);return AE(i,n)}},Eq=function(t,r){return function(n){var i=OE(t,r),o=[].concat(_q(i.map(function(a,s){return a*s}).slice(1)),[0]);return AE(o,n)}},R1=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],o=r[1],a=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),f=bq(u,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var c=D1(i,a),d=D1(o,s),p=Eq(i,a),m=function(v){return v>1?1:v<0?0:v},h=function(v){for(var y=v>1?1:v,b=y,_=0;_<8;++_){var x=c(b)-y,w=p(b);if(Math.abs(x-y)<kc||w<kc)return d(b);b=m(b-x/w)}return d(b)};return h.isStepper=!1,h},kq=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,l=function(f,c,d){var p=-(f-c)*n,m=d*o,h=d+(p-m)*s/1e3,g=d*s/1e3+f;return Math.abs(g-c)<kc&&Math.abs(h)<kc?[c,0]:[g,h]};return l.isStepper=!0,l.dt=s,l},jq=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return R1(i);case"spring":return kq();default:if(i.split("(")[0]==="cubic-bezier")return R1(i)}return typeof i=="function"?i:null};function Ws(e){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(e)}function L1(e){return Cq(e)||Tq(e)||PE(e)||$q()}function $q(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
453
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cq(e){if(Array.isArray(e))return Ey(e)}function B1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B1(Object(r),!0).forEach(function(n){Py(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Py(e,t,r){return t=Nq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nq(e){var t=Mq(e,"string");return Ws(t)==="symbol"?t:String(t)}function Mq(e,t){if(Ws(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ws(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iq(e,t){return Lq(e)||Rq(e,t)||PE(e,t)||Dq()}function Dq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
454
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PE(e,t){if(e){if(typeof e=="string")return Ey(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ey(e,t)}}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Lq(e){if(Array.isArray(e))return e}var jc=function(t,r,n){return t+(r-t)*n},ky=function(t){var r=t.from,n=t.to;return r!==n},Bq=function e(t,r,n){var i=Xa(function(o,a){if(ky(a)){var s=t(a.from,a.to,a.velocity),l=Iq(s,2),u=l[0],f=l[1];return nt(nt({},a),{},{from:u,velocity:f})}return a},r);return n<1?Xa(function(o,a){return ky(a)?nt(nt({},a),{},{velocity:jc(a.velocity,i[o].velocity,n),from:jc(a.from,i[o].from,n)}):a},r):e(t,i,n-1)};const zq=function(e,t,r,n,i){var o=vq(e,t),a=o.reduce(function(g,v){return nt(nt({},g),{},Py({},v,[e[v],t[v]]))},{}),s=o.reduce(function(g,v){return nt(nt({},g),{},Py({},v,{from:e[v],velocity:0,to:t[v]}))},{}),l=-1,u,f,c=function(){return null},d=function(){return Xa(function(v,y){return y.from},s)},p=function(){return!Object.values(s).filter(ky).length},m=function(v){u||(u=v);var y=v-u,b=y/r.dt;s=Bq(r,s,b),i(nt(nt(nt({},e),t),d())),u=v,p()||(l=requestAnimationFrame(c))},h=function(v){f||(f=v);var y=(v-f)/n,b=Xa(function(x,w){return jc.apply(void 0,L1(w).concat([r(y)]))},a);if(i(nt(nt(nt({},e),t),b)),y<1)l=requestAnimationFrame(c);else{var _=Xa(function(x,w){return jc.apply(void 0,L1(w).concat([r(1)]))},a);i(nt(nt(nt({},e),t),_))}};return c=r.isStepper?m:h,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(l)}}};function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}var Fq=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Uq(e,t){if(e==null)return{};var r=Wq(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function mp(e){return qq(e)||Kq(e)||Vq(e)||Hq()}function Hq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
455
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vq(e,t){if(e){if(typeof e=="string")return jy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jy(e,t)}}function Kq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qq(e){if(Array.isArray(e))return jy(e)}function jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function z1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z1(Object(r),!0).forEach(function(n){Da(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Da(e,t,r){return t=EE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EE(n.key),n)}}function Yq(e,t,r){return t&&Xq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EE(e){var t=Qq(e,"string");return Co(t)==="symbol"?t:String(t)}function Qq(e,t){if(Co(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$y(e,t)}function $y(e,t){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$y(e,t)}function Jq(e){var t=eG();return function(){var n=$c(e),i;if(t){var o=$c(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Ty(this,i)}}function Ty(e,t){if(t&&(Co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cy(e)}function Cy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$c(e)}var Nr=function(e){Zq(r,e);var t=Jq(r);function r(n,i){var o;Gq(this,r),o=t.call(this,n,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,f=a.to,c=a.steps,d=a.children,p=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Cy(o)),o.changeStyle=o.changeStyle.bind(Cy(o)),!s||p<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:f}),Ty(o);if(c&&c.length)o.state={style:c[0].style};else if(u){if(typeof d=="function")return o.state={style:u},Ty(o);o.state={style:l?Da({},l,u):u}}else o.state={style:{}};return o}return Yq(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,l=o.attributeName,u=o.shouldReAnimate,f=o.to,c=o.from,d=this.state.style;if(s){if(!a){var p={style:l?Da({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(p);return}if(!(aq(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=m||u?c:i.to;if(this.state&&d){var g={style:l?Da({},l,h):h};(l&&d[l]!==h||!l&&d!==h)&&this.setState(g)}this.runAnimation(ar(ar({},this.props),{},{from:h,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=zq(a,s,jq(u),l,this.changeStyle),m=function(){o.stopJSAnimation=p()};this.manager.start([d,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,u=a[0],f=u.style,c=u.duration,d=c===void 0?0:c,p=function(h,g,v){if(v===0)return h;var y=g.duration,b=g.easing,_=b===void 0?"ease":b,x=g.style,w=g.properties,O=g.onAnimationEnd,A=v>0?a[v-1]:g,E=w||Object.keys(x);if(typeof _=="function"||_==="spring")return[].concat(mp(h),[o.runJSAnimation.bind(o,{from:A.style,to:x,duration:y,easing:_}),y]);var j=I1(E,y,_),T=ar(ar(ar({},A.style),x),{},{transition:j});return[].concat(mp(h),[T,y,O]).filter(mq)};return this.manager.start([l].concat(mp(a.reduce(p,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=pq());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var h=s?Da({},s,l):l,g=I1(Object.keys(h),a,u);m.start([f,o,ar(ar({},h),{},{transition:g}),a,c])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=Uq(i,Fq),u=$.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||u===0||a<=0)return o;var c=function(p){var m=p.props,h=m.style,g=h===void 0?{}:h,v=m.className,y=$.cloneElement(p,ar(ar({},l),{},{style:ar(ar({},g),f),className:v}));return y};return u===1?c($.Children.only(o)):P.createElement("div",null,$.Children.map(o,function(d){return c(d)}))}}]),r}($.PureComponent);Nr.displayName="Animate";Nr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Nr.propTypes={from:fe.oneOfType([fe.object,fe.string]),to:fe.oneOfType([fe.object,fe.string]),attributeName:fe.string,duration:fe.number,begin:fe.number,easing:fe.oneOfType([fe.string,fe.func]),steps:fe.arrayOf(fe.shape({duration:fe.number.isRequired,style:fe.object.isRequired,easing:fe.oneOfType([fe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),fe.func]),properties:fe.arrayOf("string"),onAnimationEnd:fe.func})),children:fe.oneOfType([fe.node,fe.func]),isActive:fe.bool,canBegin:fe.bool,onAnimationEnd:fe.func,shouldReAnimate:fe.bool,onAnimationStart:fe.func,onAnimationReStart:fe.func};function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function Tc(){return Tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tc.apply(this,arguments)}function tG(e,t){return oG(e)||iG(e,t)||nG(e,t)||rG()}function rG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
456
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nG(e,t){if(e){if(typeof e=="string")return F1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F1(e,t)}}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function oG(e){if(Array.isArray(e))return e}function U1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function W1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U1(Object(r),!0).forEach(function(n){aG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aG(e,t,r){return t=sG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sG(e){var t=lG(e,"string");return Hs(t)=="symbol"?t:t+""}function lG(e,t){if(Hs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H1=function(t,r,n,i,o){var a=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],d=0,p=4;d<p;d++)c[d]=o[d]>a?a:o[d];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(r)),f+="L ".concat(t+n-l*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
|
|
457
|
-
`).concat(t+n,",").concat(r+s*c[1])),f+="L ".concat(t+n,",").concat(r+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
|
|
458
|
-
`).concat(t+n-l*c[2],",").concat(r+i)),f+="L ".concat(t+l*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
|
|
459
|
-
`).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var m=Math.min(a,o);f="M ".concat(t,",").concat(r+s*m,`
|
|
460
|
-
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(r,`
|
|
461
|
-
L `).concat(t+n-l*m,",").concat(r,`
|
|
462
|
-
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,`
|
|
463
|
-
L `).concat(t+n,",").concat(r+i-s*m,`
|
|
464
|
-
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-l*m,",").concat(r+i,`
|
|
465
|
-
L `).concat(t+l*m,",").concat(r+i,`
|
|
466
|
-
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},uG=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,a=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(o,o+s),f=Math.max(o,o+s),c=Math.min(a,a+l),d=Math.max(a,a+l);return n>=u&&n<=f&&i>=c&&i<=d}return!1},cG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ag=function(t){var r=W1(W1({},cG),t),n=$.useRef(),i=$.useState(-1),o=tG(i,2),a=o[0],s=o[1];$.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,m=r.animationEasing,h=r.animationDuration,g=r.animationBegin,v=r.isAnimationActive,y=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var b=te("recharts-rectangle",p);return y?P.createElement(Nr,{canBegin:a>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:h,animationEasing:m,isActive:y},function(_){var x=_.width,w=_.height,O=_.x,A=_.y;return P.createElement(Nr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:v,easing:m},P.createElement("path",Tc({},Y(r,!0),{className:b,d:H1(O,A,x,w,d),ref:n})))}):P.createElement("path",Tc({},Y(r,!0),{className:b,d:H1(l,u,f,c,d)}))},fG=["points","className","baseLinePoints","connectNulls"];function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(this,arguments)}function dG(e,t){if(e==null)return{};var r=pG(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function V1(e){return mG(e)||vG(e)||yG(e)||hG()}function hG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
467
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yG(e,t){if(e){if(typeof e=="string")return Ny(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ny(e,t)}}function vG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mG(e){if(Array.isArray(e))return Ny(e)}function Ny(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var K1=function(t){return t&&t.x===+t.x&&t.y===+t.y},gG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){K1(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),K1(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Ya=function(t,r){var n=gG(t);r&&(n=[n.reduce(function(o,a){return[].concat(V1(o),V1(a))},[])]);var i=n.map(function(o){return o.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},bG=function(t,r,n){var i=Ya(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Ya(r.reverse(),n).slice(1))},xG=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,o=t.connectNulls,a=dG(t,fG);if(!r||!r.length)return null;var s=te("recharts-polygon",n);if(i&&i.length){var l=a.stroke&&a.stroke!=="none",u=bG(r,i,o);return P.createElement("g",{className:s},P.createElement("path",Ji({},Y(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),l?P.createElement("path",Ji({},Y(a,!0),{fill:"none",d:Ya(r,o)})):null,l?P.createElement("path",Ji({},Y(a,!0),{fill:"none",d:Ya(i,o)})):null)}var f=Ya(r,o);return P.createElement("path",Ji({},Y(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},My.apply(this,arguments)}var td=function(t){var r=t.cx,n=t.cy,i=t.r,o=t.className,a=te("recharts-dot",o);return r===+r&&n===+n&&i===+i?$.createElement("circle",My({},Y(t,!1),Xu(t),{className:a,cx:r,cy:n,r:i})):null};function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}var wG=["x","y","top","left","width","height","className"];function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iy.apply(this,arguments)}function q1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q1(Object(r),!0).forEach(function(n){_G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _G(e,t,r){return t=OG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OG(e){var t=AG(e,"string");return Vs(t)=="symbol"?t:t+""}function AG(e,t){if(Vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PG(e,t){if(e==null)return{};var r=EG(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var kG=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},jG=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,m=t.className,h=PG(t,wG),g=SG({x:n,y:o,top:s,left:u,width:c,height:p},h);return!H(n)||!H(o)||!H(c)||!H(p)||!H(s)||!H(u)?null:P.createElement("path",Iy({},Y(g,!0),{className:te("recharts-cross",m),d:kG(n,o,c,p,s,u)}))},$G=Yf,TG=BP,CG=Ir;function NG(e,t){return e&&e.length?$G(e,CG(t),TG):void 0}var MG=NG;const IG=de(MG);var DG=Yf,RG=Ir,LG=zP;function BG(e,t){return e&&e.length?DG(e,RG(t),LG):void 0}var zG=BG;const FG=de(zG);var UG=["cx","cy","angle","ticks","axisLine"],WG=["ticks","tick","angle","tickFormatter","stroke"];function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qa.apply(this,arguments)}function G1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G1(Object(r),!0).forEach(function(n){rd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X1(e,t){if(e==null)return{};var r=HG(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jE(n.key),n)}}function KG(e,t,r){return t&&Y1(e.prototype,t),r&&Y1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qG(e,t,r){return t=Cc(t),GG(e,kE()?Reflect.construct(t,r||[],Cc(e).constructor):t.apply(e,r))}function GG(e,t){if(t&&(No(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XG(e)}function XG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kE=function(){return!!e})()}function Cc(e){return Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cc(e)}function YG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dy(e,t)}function Dy(e,t){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dy(e,t)}function rd(e,t,r){return t=jE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jE(e){var t=QG(e,"string");return No(t)=="symbol"?t:t+""}function QG(e,t){if(No(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(No(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nd=function(e){function t(){return VG(this,t),qG(this,t,arguments)}return YG(t,e),KG(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,o=this.props,a=o.angle,s=o.cx,l=o.cy;return xe(s,l,i,a)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,l=IG(s,function(f){return f.coordinate||0}),u=FG(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,l=n.axisLine,u=X1(n,UG),f=s.reduce(function(m,h){return[Math.min(m[0],h.coordinate),Math.max(m[1],h.coordinate)]},[1/0,-1/0]),c=xe(i,o,f[0],a),d=xe(i,o,f[1],a),p=Kn(Kn(Kn({},Y(u,!1)),{},{fill:"none"},Y(l,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return P.createElement("line",Qa({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=X1(i,WG),c=this.getTickTextAnchor(),d=Y(f,!1),p=Y(a,!1),m=o.map(function(h,g){var v=n.getTickValueCoord(h),y=Kn(Kn(Kn(Kn({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(v.x,", ").concat(v.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:g},v),{},{payload:h});return P.createElement(le,Qa({className:te("recharts-polar-radius-axis-tick",hE(a)),key:"tick-".concat(h.coordinate)},xi(n.props,h,g)),t.renderTickItem(a,y,l?l(h.value,g):h.value))});return P.createElement(le,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.axisLine,a=n.tick;return!i||!i.length?null:P.createElement(le,{className:te("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),et.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):Z(n)?a=n(i):a=P.createElement(wi,Qa({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}($.PureComponent);rd(nd,"displayName","PolarRadiusAxis");rd(nd,"axisType","radiusAxis");rd(nd,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ei.apply(this,arguments)}function Q1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q1(Object(r),!0).forEach(function(n){id(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TE(n.key),n)}}function JG(e,t,r){return t&&Z1(e.prototype,t),r&&Z1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eX(e,t,r){return t=Nc(t),tX(e,$E()?Reflect.construct(t,r||[],Nc(e).constructor):t.apply(e,r))}function tX(e,t){if(t&&(Mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rX(e)}function rX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($E=function(){return!!e})()}function Nc(e){return Nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nc(e)}function nX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ry(e,t)}function Ry(e,t){return Ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ry(e,t)}function id(e,t,r){return t=TE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TE(e){var t=iX(e,"string");return Mo(t)=="symbol"?t:t+""}function iX(e,t){if(Mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oX=Math.PI/180,J1=1e-5,od=function(e){function t(){return ZG(this,t),eX(this,t,arguments)}return nX(t,e),JG(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,o=i.cx,a=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,c=xe(o,a,s,n.coordinate),d=xe(o,a,s+(l==="inner"?-1:1)*f,n.coordinate);return{x1:c.x,y1:c.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,o=Math.cos(-n.coordinate*oX),a;return o>J1?a=i==="outer"?"start":"end":o<-J1?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.radius,s=n.axisLine,l=n.axisLineType,u=qn(qn({},Y(this.props,!1)),{},{fill:"none"},Y(s,!1));if(l==="circle")return P.createElement(td,ei({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var f=this.props.ticks,c=f.map(function(d){return xe(i,o,a,d.coordinate)});return P.createElement(xG,ei({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=Y(this.props,!1),c=Y(a,!1),d=qn(qn({},f),{},{fill:"none"},Y(s,!1)),p=o.map(function(m,h){var g=n.getTickLineCoord(m),v=n.getTickTextAnchor(m),y=qn(qn(qn({textAnchor:v},f),{},{stroke:"none",fill:u},c),{},{index:h,payload:m,x:g.x2,y:g.y2});return P.createElement(le,ei({className:te("recharts-polar-angle-axis-tick",hE(a)),key:"tick-".concat(m.coordinate)},xi(n.props,m,h)),s&&P.createElement("line",ei({className:"recharts-polar-angle-axis-tick-line"},d,g)),a&&t.renderTickItem(a,y,l?l(m.value,h):m.value))});return P.createElement(le,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.radius,a=n.axisLine;return o<=0||!i||!i.length?null:P.createElement(le,{className:te("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,o){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):Z(n)?a=n(i):a=P.createElement(wi,ei({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}($.PureComponent);id(od,"displayName","PolarAngleAxis");id(od,"axisType","angleAxis");id(od,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var aX=DA,sX=aX(Object.getPrototypeOf,Object),lX=sX,uX=an,cX=lX,fX=sn,dX="[object Object]",pX=Function.prototype,hX=Object.prototype,CE=pX.toString,yX=hX.hasOwnProperty,vX=CE.call(Object);function mX(e){if(!fX(e)||uX(e)!=dX)return!1;var t=cX(e);if(t===null)return!0;var r=yX.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&CE.call(r)==vX}var gX=mX;const bX=de(gX);var xX=an,wX=sn,SX="[object Boolean]";function _X(e){return e===!0||e===!1||wX(e)&&xX(e)==SX}var OX=_X;const AX=de(OX);function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mc.apply(this,arguments)}function PX(e,t){return $X(e)||jX(e,t)||kX(e,t)||EX()}function EX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
468
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kX(e,t){if(e){if(typeof e=="string")return ew(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ew(e,t)}}function ew(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function $X(e){if(Array.isArray(e))return e}function tw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tw(Object(r),!0).forEach(function(n){TX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TX(e,t,r){return t=CX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CX(e){var t=NX(e,"string");return Ks(t)=="symbol"?t:t+""}function NX(e,t){if(Ks(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ks(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nw=function(t,r,n,i,o){var a=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-a/2,",").concat(r+o),s+="L ".concat(t+n-a/2-i,",").concat(r+o),s+="L ".concat(t,",").concat(r," Z"),s},MX={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},IX=function(t){var r=rw(rw({},MX),t),n=$.useRef(),i=$.useState(-1),o=PX(i,2),a=o[0],s=o[1];$.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var l=r.x,u=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,p=r.className,m=r.animationEasing,h=r.animationDuration,g=r.animationBegin,v=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var y=te("recharts-trapezoid",p);return v?P.createElement(Nr,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:u},duration:h,animationEasing:m,isActive:v},function(b){var _=b.upperWidth,x=b.lowerWidth,w=b.height,O=b.x,A=b.y;return P.createElement(Nr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:m},P.createElement("path",Mc({},Y(r,!0),{className:y,d:nw(O,A,_,x,w),ref:n})))}):P.createElement("g",null,P.createElement("path",Mc({},Y(r,!0),{className:y,d:nw(l,u,f,c,d)})))},DX=["option","shapeType","propTransformer","activeClassName","isActive"];function qs(e){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(e)}function RX(e,t){if(e==null)return{};var r=LX(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iw(Object(r),!0).forEach(function(n){BX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BX(e,t,r){return t=zX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zX(e){var t=FX(e,"string");return qs(t)=="symbol"?t:t+""}function FX(e,t){if(qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UX(e,t){return Ic(Ic({},t),e)}function WX(e,t){return e==="symbols"}function ow(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(ag,r);case"trapezoid":return P.createElement(IX,r);case"sector":return P.createElement(mE,r);case"symbols":if(WX(t))return P.createElement(Am,r);break;default:return null}}function HX(e){return $.isValidElement(e)?e.props:e}function NE(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?UX:n,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=RX(e,DX),u;if($.isValidElement(t))u=$.cloneElement(t,Ic(Ic({},l),HX(t)));else if(Z(t))u=t(l);else if(bX(t)&&!AX(t)){var f=i(t,l);u=P.createElement(ow,{shapeType:r,elementProps:f})}else{var c=l;u=P.createElement(ow,{shapeType:r,elementProps:c})}return s?P.createElement(le,{className:a},u):u}function ad(e,t){return t!=null&&"trapezoids"in e.props}function sd(e,t){return t!=null&&"sectors"in e.props}function Gs(e,t){return t!=null&&"points"in e.props}function VX(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,o=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&o}function KX(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function qX(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function GX(e,t){var r;return ad(e,t)?r=VX:sd(e,t)?r=KX:Gs(e,t)&&(r=qX),r}function XX(e,t){var r;return ad(e,t)?r="trapezoids":sd(e,t)?r="sectors":Gs(e,t)&&(r="points"),r}function YX(e,t){if(ad(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(sd(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Gs(e,t)?t.payload:{}}function QX(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=XX(r,t),o=YX(r,t),a=n.filter(function(l,u){var f=yl(o,l),c=r.props[i].filter(function(m){var h=GX(r,t);return h(m,t)}),d=r.props[i].indexOf(c[c.length-1]),p=u===d;return f&&p}),s=n.indexOf(a[a.length-1]);return s}var bu;function Io(e){"@babel/helpers - typeof";return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Io(e)}function eo(){return eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eo.apply(this,arguments)}function aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(n){Yt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IE(n.key),n)}}function JX(e,t,r){return t&&sw(e.prototype,t),r&&sw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eY(e,t,r){return t=Dc(t),tY(e,ME()?Reflect.construct(t,r||[],Dc(e).constructor):t.apply(e,r))}function tY(e,t){if(t&&(Io(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rY(e)}function rY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ME(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ME=function(){return!!e})()}function Dc(e){return Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dc(e)}function nY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ly(e,t)}function Ly(e,t){return Ly=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ly(e,t)}function Yt(e,t,r){return t=IE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IE(e){var t=iY(e,"string");return Io(t)=="symbol"?t:t+""}function iY(e,t){if(Io(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Io(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var un=function(e){function t(r){var n;return ZX(this,t),n=eY(this,t,[r]),Yt(n,"pieRef",null),Yt(n,"sectorRefs",[]),Yt(n,"id",na("recharts-pie-")),Yt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Z(i)&&i()}),Yt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Z(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return nY(t,e),JX(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,l=o.dataKey,u=o.valueKey,f=Y(this.props,!1),c=Y(a,!1),d=Y(s,!1),p=a&&a.offsetRadius||20,m=n.map(function(h,g){var v=(h.startAngle+h.endAngle)/2,y=xe(h.cx,h.cy,h.outerRadius+p,v),b=me(me(me(me({},f),h),{},{stroke:"none"},c),{},{index:g,textAnchor:t.getTextAnchor(y.x,h.cx)},y),_=me(me(me(me({},f),h),{},{fill:"none",stroke:h.fill},d),{},{index:g,points:[xe(h.cx,h.cy,h.outerRadius,v),y]}),x=l;return J(l)&&J(u)?x="value":J(l)&&(x=u),P.createElement(le,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(g)},s&&t.renderLabelLineItem(s,_,"line"),t.renderLabelItem(a,b,Ge(h,x)))});return P.createElement(le,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,l=o.inactiveShape;return n.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var c=i.isActiveIndex(f),d=l&&i.hasActiveIndex()?l:null,p=c?a:d,m=me(me({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return P.createElement(le,eo({ref:function(g){g&&!i.sectorRefs.includes(g)&&i.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},xi(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),P.createElement(NE,eo({option:p,isActive:c,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,c=this.state,d=c.prevSectors,p=c.prevIsAnimationActive;return P.createElement(Nr,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var h=m.t,g=[],v=o&&o[0],y=v.startAngle;return o.forEach(function(b,_){var x=d&&d[_],w=_>0?Rt(b,"paddingAngle",0):0;if(x){var O=Nt(x.endAngle-x.startAngle,b.endAngle-b.startAngle),A=me(me({},b),{},{startAngle:y+w,endAngle:y+O(h)+w});g.push(A),y=A.endAngle}else{var E=b.endAngle,j=b.startAngle,T=Nt(0,E-j),k=T(h),D=me(me({},b),{},{startAngle:y+w,endAngle:y+k+w});g.push(D),y=D.endAngle}}),P.createElement(le,null,n.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,o=n.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!yl(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(o||!a||!a.length||!H(u)||!H(f)||!H(c)||!H(d))return null;var h=te("recharts-pie",s);return P.createElement(le,{tabIndex:this.props.rootTabIndex,className:h,ref:function(v){n.pieRef=v}},this.renderSectors(),l&&this.renderLabels(a),et.renderCallByParent(this.props,null,!1),(!p||m)&&Xr.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,o){if(P.isValidElement(n))return P.cloneElement(n,i);if(Z(n))return n(i);var a=te("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(Pc,eo({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(n,i,o){if(P.isValidElement(n))return P.cloneElement(n,i);var a=o;if(Z(n)&&(a=n(i),P.isValidElement(a)))return a;var s=te("recharts-pie-label-text",typeof n!="boolean"&&!Z(n)?n.className:"");return P.createElement(wi,eo({},i,{alignmentBaseline:"middle",className:s}),a)}}])}($.PureComponent);bu=un;Yt(un,"displayName","Pie");Yt(un,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ki.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Yt(un,"parseDeltaAngle",function(e,t){var r=ht(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Yt(un,"getRealPieData",function(e){var t=e.data,r=e.children,n=Y(e,!1),i=Lt(r,Os);return t&&t.length?t.map(function(o,a){return me(me(me({payload:o},n),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return me(me({},n),o.props)}):[]});Yt(un,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,o=t.height,a=pE(i,o),s=n+yt(e.cx,i,i/2),l=r+yt(e.cy,o,o/2),u=yt(e.innerRadius,a,0),f=yt(e.outerRadius,a,a*.8),c=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:c}});Yt(un,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?me(me({},t.type.defaultProps),t.props):t.props,i=bu.getRealPieData(n);if(!i||!i.length)return null;var o=n.cornerRadius,a=n.startAngle,s=n.endAngle,l=n.paddingAngle,u=n.dataKey,f=n.nameKey,c=n.valueKey,d=n.tooltipType,p=Math.abs(n.minAngle),m=bu.parseCoordinateOfPie(n,r),h=bu.parseDeltaAngle(a,s),g=Math.abs(h),v=u;J(u)&&J(c)?(gr(!1,`Use "dataKey" to specify the value of pie,
|
|
469
|
-
the props "valueKey" will be deprecated in 1.1.0`),v="value"):J(u)&&(gr(!1,`Use "dataKey" to specify the value of pie,
|
|
470
|
-
the props "valueKey" will be deprecated in 1.1.0`),v=c);var y=i.filter(function(A){return Ge(A,v,0)!==0}).length,b=(g>=360?y:y-1)*l,_=g-y*p-b,x=i.reduce(function(A,E){var j=Ge(E,v,0);return A+(H(j)?j:0)},0),w;if(x>0){var O;w=i.map(function(A,E){var j=Ge(A,v,0),T=Ge(A,f,E),k=(H(j)?j:0)/x,D;E?D=O.endAngle+ht(h)*l*(j!==0?1:0):D=a;var I=D+ht(h)*((j!==0?p:0)+k*_),N=(D+I)/2,L=(m.innerRadius+m.outerRadius)/2,z=[{name:T,value:j,payload:A,dataKey:v,type:d}],C=xe(m.cx,m.cy,L,N);return O=me(me(me({percent:k,cornerRadius:o,name:T,tooltipPayload:z,midAngle:N,middleRadius:L,tooltipPosition:C},A),m),{},{value:Ge(A,v),startAngle:D,endAngle:I,payload:A,paddingAngle:ht(h)*l}),O})}return me(me({},m),{},{sectors:w,data:i})});var oY=Math.ceil,aY=Math.max;function sY(e,t,r,n){for(var i=-1,o=aY(oY((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}var lY=sY,uY=tP,lw=1/0,cY=17976931348623157e292;function fY(e){if(!e)return e===0?e:0;if(e=uY(e),e===lw||e===-lw){var t=e<0?-1:1;return t*cY}return e===e?e:0}var DE=fY,dY=lY,pY=Wf,gp=DE;function hY(e){return function(t,r,n){return n&&typeof n!="number"&&pY(t,r,n)&&(r=n=void 0),t=gp(t),r===void 0?(r=t,t=0):r=gp(r),n=n===void 0?t<r?1:-1:gp(n),dY(t,r,n,e)}}var yY=hY,vY=yY,mY=vY(),gY=mY;const Rc=de(gY);function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uw(Object(r),!0).forEach(function(n){RE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RE(e,t,r){return t=bY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bY(e){var t=xY(e,"string");return Xs(t)=="symbol"?t:t+""}function xY(e,t){if(Xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wY=["Webkit","Moz","O","ms"],SY=function(t,r){var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=wY.reduce(function(o,a){return cw(cw({},o),{},RE({},a+n,r))},{});return i[t]=r,i};function Do(e){"@babel/helpers - typeof";return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Do(e)}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lc.apply(this,arguments)}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BE(n.key),n)}}function OY(e,t,r){return t&&dw(e.prototype,t),r&&dw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AY(e,t,r){return t=Bc(t),PY(e,LE()?Reflect.construct(t,r||[],Bc(e).constructor):t.apply(e,r))}function PY(e,t){if(t&&(Do(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EY(e)}function EY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LE=function(){return!!e})()}function Bc(e){return Bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bc(e)}function kY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&By(e,t)}function By(e,t){return By=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},By(e,t)}function $t(e,t,r){return t=BE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BE(e){var t=jY(e,"string");return Do(t)=="symbol"?t:t+""}function jY(e,t){if(Do(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Do(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $Y=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=qa().domain(Rc(0,l)).range([o,o+a-s]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:f}},pw=function(t){return t.changedTouches&&!!t.changedTouches.length},Ro=function(e){function t(r){var n;return _Y(this,t),n=AY(this,t,[r]),$t(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),$t(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),$t(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),n.detachDragEndListener()}),$t(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),$t(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),$t(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),$t(n,"handleSlideDragStart",function(i){var o=pw(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return kY(t,e),OY(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,o),d=Math.max(i,o),p=t.getIndexInRange(a,c),m=t.getIndexInRange(a,d);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=Ge(o[n],s,n);return Z(a)?a(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,p=l.endIndex,m=l.onChange,h=n.pageX-o;h>0?h=Math.min(h,u+f-c-s,u+f-c-a):h<0&&(h=Math.max(h,u-a,u-s));var g=this.getIndex({startX:a+h,endX:s+h});(g.startIndex!==d||g.endIndex!==p)&&m&&m(g),this.setState({startX:a+h,endX:s+h,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=pw(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[a],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,m=f.onChange,h=f.gap,g=f.data,v={startX:this.state.startX,endX:this.state.endX},y=n.pageX-o;y>0?y=Math.min(y,c+d-p-u):y<0&&(y=Math.max(y,c-u)),v[a]=u+y;var b=this.getIndex(v),_=b.startIndex,x=b.endIndex,w=function(){var A=g.length-1;return a==="startX"&&(s>l?_%h===0:x%h===0)||s<l&&x===A||a==="endX"&&(s>l?x%h===0:_%h===0)||s>l&&x===A};this.setState($t($t({},a,u+y),"brushMoveStartX",n.pageX),function(){m&&w()&&m(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=s.length)){var p=s[d];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState($t({},i,p),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.fill,u=n.stroke;return P.createElement("rect",{stroke:u,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.data,u=n.children,f=n.padding,c=$.Children.only(u);return c?P.cloneElement(c,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var o,a,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,d=l.traveller,p=l.ariaLabel,m=l.data,h=l.startIndex,g=l.endIndex,v=Math.max(n,this.props.x),y=bp(bp({},Y(this.props,!1)),{},{x:v,y:u,width:f,height:c}),b=p||"Min value: ".concat((o=m[h])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=m[g])===null||a===void 0?void 0:a.name);return P.createElement(le,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(x){["ArrowLeft","ArrowRight"].includes(x.key)&&(x.preventDefault(),x.stopPropagation(),s.handleTravellerMoveKeyboard(x.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(n,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,f=Math.min(n,i)+u,c=Math.max(Math.abs(i-n)-u,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:a,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,o=n.endIndex,a=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,m={pointerEvents:"none",fill:u};return P.createElement(le,{className:"recharts-brush-texts"},P.createElement(wi,Lc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:a+s/2},m),this.getTextOfTick(i)),P.createElement(wi,Lc({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+p,y:a+s/2},m),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,a=n.children,s=n.x,l=n.y,u=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,m=d.endX,h=d.isTextActive,g=d.isSlideMoving,v=d.isTravellerMoving,y=d.isTravellerFocused;if(!i||!i.length||!H(s)||!H(l)||!H(u)||!H(f)||u<=0||f<=0)return null;var b=te("recharts-brush",o),_=P.Children.count(a)===1,x=SY("userSelect","none");return P.createElement(le,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(h||g||v||y||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,a=n.width,s=n.height,l=n.stroke,u=Math.floor(o+s/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),P.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):Z(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,a=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,f=n.startIndex,c=n.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return bp({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?$Y({data:o,width:a,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);n[l]>i?s=l:a=l}return i>=n[s]?s:a}}])}($.PureComponent);$t(Ro,"displayName","Brush");$t(Ro,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var TY=Cm;function CY(e,t){var r;return TY(e,function(n,i,o){return r=t(n,i,o),!r}),!!r}var NY=CY,MY=kA,IY=Ir,DY=NY,RY=kt,LY=Wf;function BY(e,t,r){var n=RY(e)?MY:DY;return r&&LY(e,t,r)&&(t=void 0),n(e,IY(t))}var zY=BY;const FY=de(zY);var $r=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},hw=YA;function UY(e,t,r){t=="__proto__"&&hw?hw(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var WY=UY,HY=WY,VY=GA,KY=Ir;function qY(e,t){var r={};return t=KY(t),VY(e,function(n,i,o){HY(r,i,t(n,i,o))}),r}var GY=qY;const XY=de(GY);function YY(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var QY=YY,ZY=Cm;function JY(e,t){var r=!0;return ZY(e,function(n,i,o){return r=!!t(n,i,o),r}),r}var eQ=JY,tQ=QY,rQ=eQ,nQ=Ir,iQ=kt,oQ=Wf;function aQ(e,t,r){var n=iQ(e)?tQ:rQ;return r&&oQ(e,t,r)&&(t=void 0),n(e,nQ(t))}var sQ=aQ;const zE=de(sQ);var lQ=["x","y"];function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zy.apply(this,arguments)}function yw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yw(Object(r),!0).forEach(function(n){uQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uQ(e,t,r){return t=cQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cQ(e){var t=fQ(e,"string");return Ys(t)=="symbol"?t:t+""}function fQ(e,t){if(Ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dQ(e,t){if(e==null)return{};var r=pQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hQ(e,t){var r=e.x,n=e.y,i=dQ(e,lQ),o="".concat(r),a=parseInt(o,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),d=parseInt(c,10);return $a($a($a($a($a({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function vw(e){return P.createElement(NE,zy({shapeType:"rectangle",propTransformer:hQ,activeClassName:"recharts-active-bar"},e))}var yQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var o=H(n)||DD(n);return o?t(n,i):(o||_i(),r)}},vQ=["value","background"],FE;function Lo(e){"@babel/helpers - typeof";return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(e)}function mQ(e,t){if(e==null)return{};var r=gQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zc.apply(this,arguments)}function mw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mw(Object(r),!0).forEach(function(n){Sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WE(n.key),n)}}function xQ(e,t,r){return t&&gw(e.prototype,t),r&&gw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wQ(e,t,r){return t=Fc(t),SQ(e,UE()?Reflect.construct(t,r||[],Fc(e).constructor):t.apply(e,r))}function SQ(e,t){if(t&&(Lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Q(e)}function _Q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UE=function(){return!!e})()}function Fc(e){return Fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fc(e)}function OQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fy(e,t)}function Fy(e,t){return Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fy(e,t)}function Sn(e,t,r){return t=WE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WE(e){var t=AQ(e,"string");return Lo(t)=="symbol"?t:t+""}function AQ(e,t){if(Lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ml=function(e){function t(){var r;bQ(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=wQ(this,t,[].concat(i)),Sn(r,"state",{isAnimationFinished:!1}),Sn(r,"id",na("recharts-bar-")),Sn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),a&&a()}),Sn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),a&&a()}),r}return OQ(t,e),xQ(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,o=this.props,a=o.shape,s=o.dataKey,l=o.activeIndex,u=o.activeBar,f=Y(this.props,!1);return n&&n.map(function(c,d){var p=d===l,m=p?u:a,h=Le(Le(Le({},f),c),{},{isActive:p,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(le,zc({className:"recharts-bar-rectangle"},xi(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),P.createElement(vw,h))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return P.createElement(Nr,{begin:l,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,h=o.map(function(g,v){var y=d&&d[v];if(y){var b=Nt(y.x,g.x),_=Nt(y.y,g.y),x=Nt(y.width,g.width),w=Nt(y.height,g.height);return Le(Le({},g),{},{x:b(m),y:_(m),width:x(m),height:w(m)})}if(a==="horizontal"){var O=Nt(0,g.height),A=O(m);return Le(Le({},g),{},{y:g.y+g.height-A,height:A})}var E=Nt(0,g.width),j=E(m);return Le(Le({},g),{},{width:j})});return P.createElement(le,null,n.renderRectanglesStatically(h))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,o=n.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!yl(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,l=Y(this.props.background,!1);return o.map(function(u,f){u.value;var c=u.background,d=mQ(u,vQ);if(!c)return null;var p=Le(Le(Le(Le(Le({},d),{},{fill:"#eee"},c),l),xi(n.props,u,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(vw,zc({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,c=Lt(f,vl);if(!c)return null;var d=u==="vertical"?a[0].height/2:a[0].width/2,p=function(g,v){var y=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:y,errorVal:Ge(g,v)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(le,m,c.map(function(h){return P.cloneElement(h,{key:"error-bar-".concat(i,"-").concat(h.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,o=n.data,a=n.className,s=n.xAxis,l=n.yAxis,u=n.left,f=n.top,c=n.width,d=n.height,p=n.isAnimationActive,m=n.background,h=n.id;if(i||!o||!o.length)return null;var g=this.state.isAnimationFinished,v=te("recharts-bar",a),y=s&&s.allowDataOverflow,b=l&&l.allowDataOverflow,_=y||b,x=J(h)?this.id:h;return P.createElement(le,{className:v},y||b?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(x)},P.createElement("rect",{x:y?u:u-c/2,y:b?f:f-d/2,width:y?c:c*2,height:b?d:d*2}))):null,P.createElement(le,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(x,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,x),(!p||g)&&Xr.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}($.PureComponent);FE=ml;Sn(ml,"displayName","Bar");Sn(ml,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ki.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Sn(ml,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=tV(n,r);if(!p)return null;var m=t.layout,h=r.type.defaultProps,g=h!==void 0?Le(Le({},h),r.props):r.props,v=g.dataKey,y=g.children,b=g.minPointSize,_=m==="horizontal"?a:o,x=u?_.scale.domain():null,w=lV({numericAxis:_}),O=Lt(y,Os),A=c.map(function(E,j){var T,k,D,I,N,L;u?T=rV(u[f+j],x):(T=Ge(E,v),Array.isArray(T)||(T=[w,T]));var z=yQ(b,FE.defaultProps.minPointSize)(T[1],j);if(m==="horizontal"){var C,R=[a.scale(T[0]),a.scale(T[1])],B=R[0],V=R[1];k=c1({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:E,index:j}),D=(C=V??B)!==null&&C!==void 0?C:void 0,I=p.size;var W=B-V;if(N=Number.isNaN(W)?0:W,L={x:k,y:a.y,width:I,height:a.height},Math.abs(z)>0&&Math.abs(N)<Math.abs(z)){var X=ht(N||z)*(Math.abs(z)-Math.abs(N));D-=X,N+=X}}else{var oe=[o.scale(T[0]),o.scale(T[1])],Ae=oe[0],De=oe[1];if(k=Ae,D=c1({axis:a,ticks:l,bandSize:i,offset:p.offset,entry:E,index:j}),I=De-Ae,N=p.size,L={x:o.x,y:D,width:o.width,height:N},Math.abs(z)>0&&Math.abs(I)<Math.abs(z)){var Wt=ht(I||z)*(Math.abs(z)-Math.abs(I));I+=Wt}}return Le(Le(Le({},E),{},{x:k,y:D,width:I,height:N,value:u?T:T[1],payload:E,background:L},O&&O[j]&&O[j].props),{},{tooltipPayload:[fE(r,E)],tooltipPosition:{x:k+I/2,y:D+N/2}})});return Le({data:A,layout:m},d)});function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function PQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HE(n.key),n)}}function EQ(e,t,r){return t&&bw(e.prototype,t),r&&bw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xw(Object(r),!0).forEach(function(n){ld(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ld(e,t,r){return t=HE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HE(e){var t=kQ(e,"string");return Qs(t)=="symbol"?t:t+""}function kQ(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jQ=function(t,r,n,i,o){var a=t.width,s=t.height,l=t.layout,u=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!Ct(u,ml);return f.reduce(function(p,m){var h=r[m],g=h.orientation,v=h.domain,y=h.padding,b=y===void 0?{}:y,_=h.mirror,x=h.reversed,w="".concat(g).concat(_?"Mirror":""),O,A,E,j,T;if(h.type==="number"&&(h.padding==="gap"||h.padding==="no-gap")){var k=v[1]-v[0],D=1/0,I=h.categoricalDomain.sort(BD);if(I.forEach(function(oe,Ae){Ae>0&&(D=Math.min((oe||0)-(I[Ae-1]||0),D))}),Number.isFinite(D)){var N=D/k,L=h.layout==="vertical"?n.height:n.width;if(h.padding==="gap"&&(O=N*L/2),h.padding==="no-gap"){var z=yt(t.barCategoryGap,N*L),C=N*L/2;O=C-z-(C-z)/L*z}}}i==="xAxis"?A=[n.left+(b.left||0)+(O||0),n.left+n.width-(b.right||0)-(O||0)]:i==="yAxis"?A=l==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(O||0),n.top+n.height-(b.bottom||0)-(O||0)]:A=h.range,x&&(A=[A[1],A[0]]);var R=sE(h,o,d),B=R.scale,V=R.realScaleType;B.domain(v).range(A),lE(B);var W=uE(B,fr(fr({},h),{},{realScaleType:V}));i==="xAxis"?(T=g==="top"&&!_||g==="bottom"&&_,E=n.left,j=c[w]-T*h.height):i==="yAxis"&&(T=g==="left"&&!_||g==="right"&&_,E=c[w]-T*h.width,j=n.top);var X=fr(fr(fr({},h),W),{},{realScaleType:V,x:E,y:j,scale:B,width:i==="xAxis"?n.width:h.width,height:i==="yAxis"?n.height:h.height});return X.bandSize=_c(X,W),!h.hide&&i==="xAxis"?c[w]+=(T?-1:1)*X.height:h.hide||(c[w]+=(T?-1:1)*X.width),fr(fr({},p),{},ld({},m,X))},{})},VE=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return{x:Math.min(n,o),y:Math.min(i,a),width:Math.abs(o-n),height:Math.abs(a-i)}},$Q=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return VE({x:r,y:n},{x:i,y:o})},KE=function(){function e(t){PQ(this,e),this.scale=t}return EQ(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();ld(KE,"EPS",1e-4);var sg=function(t){var r=Object.keys(t).reduce(function(n,i){return fr(fr({},n),{},ld({},i,KE.create(t[i])))},{});return fr(fr({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return XY(i,function(l,u){return r[u].apply(l,{bandAware:a,position:s})})},isInRange:function(i){return zE(i,function(o,a){return r[a].isInRange(o)})}})};function TQ(e){return(e%180+180)%180}var CQ=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=TQ(i),a=o*Math.PI/180,s=Math.atan(n/r),l=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(l)},NQ=Ir,MQ=cl,IQ=Ff;function DQ(e){return function(t,r,n){var i=Object(t);if(!MQ(t)){var o=NQ(r);t=IQ(t),r=function(s){return o(i[s],s,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:void 0}}var RQ=DQ,LQ=DE;function BQ(e){var t=LQ(e),r=t%1;return t===t?r?t-r:t:0}var zQ=BQ,FQ=UA,UQ=Ir,WQ=zQ,HQ=Math.max;function VQ(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:WQ(r);return i<0&&(i=HQ(n+i,0)),FQ(e,UQ(t),i)}var KQ=VQ,qQ=RQ,GQ=KQ,XQ=qQ(GQ),YQ=XQ;const QQ=de(YQ);var ZQ=UI(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),lg=$.createContext(void 0),ug=$.createContext(void 0),qE=$.createContext(void 0),GE=$.createContext({}),XE=$.createContext(void 0),YE=$.createContext(0),QE=$.createContext(0),ww=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,a=t.clipPathId,s=t.children,l=t.width,u=t.height,f=ZQ(o);return P.createElement(lg.Provider,{value:n},P.createElement(ug.Provider,{value:i},P.createElement(GE.Provider,{value:o},P.createElement(qE.Provider,{value:f},P.createElement(XE.Provider,{value:a},P.createElement(YE.Provider,{value:u},P.createElement(QE.Provider,{value:l},s)))))))},JQ=function(){return $.useContext(XE)},ZE=function(t){var r=$.useContext(lg);r==null&&_i();var n=r[t];return n==null&&_i(),n},eZ=function(){var t=$.useContext(lg);return bn(t)},tZ=function(){var t=$.useContext(ug),r=QQ(t,function(n){return zE(n.domain,Number.isFinite)});return r||bn(t)},JE=function(t){var r=$.useContext(ug);r==null&&_i();var n=r[t];return n==null&&_i(),n},rZ=function(){var t=$.useContext(qE);return t},nZ=function(){return $.useContext(GE)},cg=function(){return $.useContext(QE)},fg=function(){return $.useContext(YE)};function Bo(e){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}function iZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t2(n.key),n)}}function aZ(e,t,r){return t&&oZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sZ(e,t,r){return t=Uc(t),lZ(e,e2()?Reflect.construct(t,r||[],Uc(e).constructor):t.apply(e,r))}function lZ(e,t){if(t&&(Bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uZ(e)}function uZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e2=function(){return!!e})()}function Uc(e){return Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uc(e)}function cZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uy(e,t)}function Uy(e,t){return Uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uy(e,t)}function Sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _w(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sw(Object(r),!0).forEach(function(n){dg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dg(e,t,r){return t=t2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t2(e){var t=fZ(e,"string");return Bo(t)=="symbol"?t:t+""}function fZ(e,t){if(Bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dZ(e,t){return vZ(e)||yZ(e,t)||hZ(e,t)||pZ()}function pZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
471
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hZ(e,t){if(e){if(typeof e=="string")return Ow(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ow(e,t)}}function Ow(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function vZ(e){if(Array.isArray(e))return e}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wy.apply(this,arguments)}var mZ=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):Z(t)?n=t(r):n=P.createElement("line",Wy({},r,{className:"recharts-reference-line-line"})),n},gZ=function(t,r,n,i,o,a,s,l,u){var f=o.x,c=o.y,d=o.width,p=o.height;if(n){var m=u.y,h=t.y.apply(m,{position:a});if($r(u,"discard")&&!t.y.isInRange(h))return null;var g=[{x:f+d,y:h},{x:f,y:h}];return l==="left"?g.reverse():g}if(r){var v=u.x,y=t.x.apply(v,{position:a});if($r(u,"discard")&&!t.x.isInRange(y))return null;var b=[{x:y,y:c+p},{x:y,y:c}];return s==="top"?b.reverse():b}if(i){var _=u.segment,x=_.map(function(w){return t.apply(w,{position:a})});return $r(u,"discard")&&FY(x,function(w){return!t.isInRange(w)})?null:x}return null};function bZ(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,l=e.alwaysShow,u=JQ(),f=ZE(i),c=JE(o),d=rZ();if(!u||!d)return null;gr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=sg({x:f.scale,y:c.scale}),m=Ye(t),h=Ye(r),g=n&&n.length===2,v=gZ(p,m,h,g,d,e.position,f.orientation,c.orientation,e);if(!v)return null;var y=dZ(v,2),b=y[0],_=b.x,x=b.y,w=y[1],O=w.x,A=w.y,E=$r(e,"hidden")?"url(#".concat(u,")"):void 0,j=_w(_w({clipPath:E},Y(e,!0)),{},{x1:_,y1:x,x2:O,y2:A});return P.createElement(le,{className:te("recharts-reference-line",s)},mZ(a,j),et.renderCallByParent(e,$Q({x1:_,y1:x,x2:O,y2:A})))}var pg=function(e){function t(){return iZ(this,t),sZ(this,t,arguments)}return cZ(t,e),aZ(t,[{key:"render",value:function(){return P.createElement(bZ,this.props)}}])}(P.Component);dg(pg,"displayName","ReferenceLine");dg(pg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hy.apply(this,arguments)}function zo(e){"@babel/helpers - typeof";return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zo(e)}function Aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aw(Object(r),!0).forEach(function(n){ud(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n2(n.key),n)}}function SZ(e,t,r){return t&&wZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Z(e,t,r){return t=Wc(t),OZ(e,r2()?Reflect.construct(t,r||[],Wc(e).constructor):t.apply(e,r))}function OZ(e,t){if(t&&(zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AZ(e)}function AZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r2=function(){return!!e})()}function Wc(e){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wc(e)}function PZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vy(e,t)}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vy(e,t)}function ud(e,t,r){return t=n2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n2(e){var t=EZ(e,"string");return zo(t)=="symbol"?t:t+""}function EZ(e,t){if(zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kZ=function(t){var r=t.x,n=t.y,i=t.xAxis,o=t.yAxis,a=sg({x:i.scale,y:o.scale}),s=a.apply({x:r,y:n},{bandAware:!0});return $r(t,"discard")&&!a.isInRange(s)?null:s},cd=function(e){function t(){return xZ(this,t),_Z(this,t,arguments)}return PZ(t,e),SZ(t,[{key:"render",value:function(){var n=this.props,i=n.x,o=n.y,a=n.r,s=n.alwaysShow,l=n.clipPathId,u=Ye(i),f=Ye(o);if(gr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=kZ(this.props);if(!c)return null;var d=c.x,p=c.y,m=this.props,h=m.shape,g=m.className,v=$r(this.props,"hidden")?"url(#".concat(l,")"):void 0,y=Pw(Pw({clipPath:v},Y(this.props,!0)),{},{cx:d,cy:p});return P.createElement(le,{className:te("recharts-reference-dot",g)},t.renderDot(h,y),et.renderCallByParent(this.props,{x:d-a,y:p-a,width:2*a,height:2*a}))}}])}(P.Component);ud(cd,"displayName","ReferenceDot");ud(cd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ud(cd,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Z(e)?r=e(t):r=P.createElement(td,Hy({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky.apply(this,arguments)}function Fo(e){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}function Ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ew(Object(r),!0).forEach(function(n){fd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o2(n.key),n)}}function TZ(e,t,r){return t&&$Z(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CZ(e,t,r){return t=Hc(t),NZ(e,i2()?Reflect.construct(t,r||[],Hc(e).constructor):t.apply(e,r))}function NZ(e,t){if(t&&(Fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MZ(e)}function MZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i2=function(){return!!e})()}function Hc(e){return Hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hc(e)}function IZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qy(e,t)}function qy(e,t){return qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qy(e,t)}function fd(e,t,r){return t=o2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o2(e){var t=DZ(e,"string");return Fo(t)=="symbol"?t:t+""}function DZ(e,t){if(Fo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var RZ=function(t,r,n,i,o){var a=o.x1,s=o.x2,l=o.y1,u=o.y2,f=o.xAxis,c=o.yAxis;if(!f||!c)return null;var d=sg({x:f.scale,y:c.scale}),p={x:t?d.x.apply(a,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return $r(o,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:VE(p,m)},dd=function(e){function t(){return jZ(this,t),CZ(this,t,arguments)}return IZ(t,e),TZ(t,[{key:"render",value:function(){var n=this.props,i=n.x1,o=n.x2,a=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,f=n.clipPathId;gr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=Ye(i),d=Ye(o),p=Ye(a),m=Ye(s),h=this.props.shape;if(!c&&!d&&!p&&!m&&!h)return null;var g=RZ(c,d,p,m,this.props);if(!g&&!h)return null;var v=$r(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(le,{className:te("recharts-reference-area",l)},t.renderRect(h,kw(kw({clipPath:v},Y(this.props,!0)),g)),et.renderCallByParent(this.props,g))}}])}(P.Component);fd(dd,"displayName","ReferenceArea");fd(dd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});fd(dd,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):Z(e)?r=e(t):r=P.createElement(ag,Ky({},t,{className:"recharts-reference-area-rect"})),r});function a2(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function LZ(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return CQ(n,r)}function BZ(e,t,r){var n=r==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:n?i:o,end:n?i+a:o+s}:{start:n?i+a:o+s,end:n?i:o}}function Vc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function zZ(e,t){return a2(e,t+1)}function FZ(e,t,r,n,i){for(var o=(n||[]).slice(),a=t.start,s=t.end,l=0,u=1,f=a,c=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:a2(n,u)};var h=l,g,v=function(){return g===void 0&&(g=r(m,h)),g},y=m.coordinate,b=l===0||Vc(e,y,v,f,s);b||(l=0,f=a,u+=1),b&&(f=y+e*(v()/2+i),l+=u)},d;u<=o.length;)if(d=c(),d)return d.v;return[]}function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(e)}function jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(r),!0).forEach(function(n){UZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UZ(e,t,r){return t=WZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WZ(e){var t=HZ(e,"string");return Zs(t)=="symbol"?t:t+""}function HZ(e,t){if(Zs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VZ(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,s=t.start,l=t.end,u=function(d){var p=o[d],m,h=function(){return m===void 0&&(m=r(p,d)),m};if(d===a-1){var g=e*(p.coordinate+e*h()/2-l);o[d]=p=ut(ut({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else o[d]=p=ut(ut({},p),{},{tickCoord:p.coordinate});var v=Vc(e,p.tickCoord,h,s,l);v&&(l=p.tickCoord-e*(h()/2+i),o[d]=ut(ut({},p),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return o}function KZ(e,t,r,n,i,o){var a=(n||[]).slice(),s=a.length,l=t.start,u=t.end;if(o){var f=n[s-1],c=r(f,s-1),d=e*(f.coordinate+e*c/2-u);a[s-1]=f=ut(ut({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Vc(e,f.tickCoord,function(){return c},l,u);p&&(u=f.tickCoord-e*(c/2+i),a[s-1]=ut(ut({},f),{},{isShow:!0}))}for(var m=o?s-1:s,h=function(y){var b=a[y],_,x=function(){return _===void 0&&(_=r(b,y)),_};if(y===0){var w=e*(b.coordinate-e*x()/2-l);a[y]=b=ut(ut({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else a[y]=b=ut(ut({},b),{},{tickCoord:b.coordinate});var O=Vc(e,b.tickCoord,x,l,u);O&&(l=b.tickCoord+e*(x()/2+i),a[y]=ut(ut({},b),{},{isShow:!0}))},g=0;g<m;g++)h(g);return a}function hg(e,t,r){var n=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(H(l)||ki.isSsr)return zZ(i,typeof l=="number"&&H(l)?l:0);var d=[],p=s==="top"||s==="bottom"?"width":"height",m=f&&p==="width"?Ka(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=function(b,_){var x=Z(u)?u(b.value,_):b.value;return p==="width"?LZ(Ka(x,{fontSize:t,letterSpacing:r}),m,c):Ka(x,{fontSize:t,letterSpacing:r})[p]},g=i.length>=2?ht(i[1].coordinate-i[0].coordinate):1,v=BZ(o,g,p);return l==="equidistantPreserveStart"?FZ(g,v,h,i,a):(l==="preserveStart"||l==="preserveStartEnd"?d=KZ(g,v,h,i,a,l==="preserveStartEnd"):d=VZ(g,v,h,i,a),d.filter(function(y){return y.isShow}))}var qZ=["viewBox"],GZ=["viewBox"],XZ=["ticks"];function Uo(e){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(e)}function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},to.apply(this,arguments)}function $w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$w(Object(r),!0).forEach(function(n){yg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xp(e,t){if(e==null)return{};var r=YZ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function QZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l2(n.key),n)}}function ZZ(e,t,r){return t&&Tw(e.prototype,t),r&&Tw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function JZ(e,t,r){return t=Kc(t),eJ(e,s2()?Reflect.construct(t,r||[],Kc(e).constructor):t.apply(e,r))}function eJ(e,t){if(t&&(Uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tJ(e)}function tJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s2=function(){return!!e})()}function Kc(e){return Kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kc(e)}function rJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gy(e,t)}function Gy(e,t){return Gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gy(e,t)}function yg(e,t,r){return t=l2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l2(e){var t=nJ(e,"string");return Uo(t)=="symbol"?t:t+""}function nJ(e,t){if(Uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ca=function(e){function t(r){var n;return QZ(this,t),n=JZ(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return rJ(t,e),ZZ(t,[{key:"shouldComponentUpdate",value:function(n,i){var o=n.viewBox,a=xp(n,qZ),s=this.props,l=s.viewBox,u=xp(s,GZ);return!uo(o,l)||!uo(a,u)||!uo(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,o=i.x,a=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,p,m,h,g,v,y,b=c?-1:1,_=n.tickSize||f,x=H(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=m=n.coordinate,g=a+ +!c*l,h=g-b*_,y=h-b*d,v=x;break;case"left":h=g=n.coordinate,m=o+ +!c*s,p=m-b*_,v=p-b*d,y=x;break;case"right":h=g=n.coordinate,m=o+ +c*s,p=m+b*_,v=p+b*d,y=x;break;default:p=m=n.coordinate,g=a+ +c*l,h=g+b*_,y=h+b*d,v=x;break}return{line:{x1:p,y1:h,x2:m,y2:g},tick:{x:v,y}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,o=n.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,o=n.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.orientation,u=n.mirror,f=n.axisLine,c=He(He(He({},Y(this.props,!1)),Y(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);c=He(He({},c),{},{x1:i,y1:o+d*s,x2:i+a,y2:o+d*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);c=He(He({},c),{},{x1:i+p*a,y1:o,x2:i+p*a,y2:o+s})}return P.createElement("line",to({},c,{className:te("recharts-cartesian-axis-line",Rt(f,"className"))}))}},{key:"renderTicks",value:function(n,i,o){var a=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,c=s.tickFormatter,d=s.unit,p=hg(He(He({},this.props),{},{ticks:n}),i,o),m=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=Y(this.props,!1),v=Y(f,!1),y=He(He({},g),{},{fill:"none"},Y(l,!1)),b=p.map(function(_,x){var w=a.getTickLineCoord(_),O=w.line,A=w.tick,E=He(He(He(He({textAnchor:m,verticalAnchor:h},g),{},{stroke:"none",fill:u},v),A),{},{index:x,payload:_,visibleTicksCount:p.length,tickFormatter:c});return P.createElement(le,to({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},xi(a.props,_,x)),l&&P.createElement("line",to({},y,O,{className:te("recharts-cartesian-axis-tick-line",Rt(l,"className"))})),f&&t.renderTickItem(f,E,"".concat(Z(c)?c(_.value,x):_.value).concat(d||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,p=xp(c,XZ),m=d;return Z(l)&&(m=d&&d.length>0?l(this.props):l(p)),a<=0||s<=0||!m||!m.length?null:P.createElement(le,{className:te("recharts-cartesian-axis",u),ref:function(g){n.layerReference=g}},o&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),et.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var a,s=te(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?a=P.cloneElement(n,He(He({},i),{},{className:s})):Z(n)?a=n(He(He({},i),{},{className:s})):a=P.createElement(wi,to({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}($.Component);yg(ca,"displayName","CartesianAxis");yg(ca,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var iJ=["x1","y1","x2","y2","key"],oJ=["offset"];function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function Cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(n){aJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aJ(e,t,r){return t=sJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sJ(e){var t=lJ(e,"string");return Oi(t)=="symbol"?t:t+""}function lJ(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},si.apply(this,arguments)}function Nw(e,t){if(e==null)return{};var r=uJ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var cJ=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,l=t.ry;return P.createElement("rect",{x:i,y:o,ry:l,width:a,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function u2(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(Z(e))r=e(t);else{var n=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,l=Nw(t,iJ),u=Y(l,!1);u.offset;var f=Nw(u,oJ);r=P.createElement("line",si({},f,{x1:n,y1:i,x2:o,y2:a,fill:"none",key:s}))}return r}function fJ(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=ft(ft({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return u2(i,u)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function dJ(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=ft(ft({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return u2(i,u)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function pJ(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],h=m?i+a-d:f[p+1]-d;if(h<=0)return null;var g=p%t.length;return P.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:h,width:o,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function hJ(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var f=u.map(function(d){return Math.round(d+o-o)}).sort(function(d,p){return d-p});o!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],h=m?o+s-d:f[p+1]-d;if(h<=0)return null;var g=p%n.length;return P.createElement("rect",{key:"react-".concat(p),x:d,y:a,width:h,height:l,stroke:"none",fill:n[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var yJ=function(t,r){var n=t.xAxis,i=t.width,o=t.height,a=t.offset;return aE(hg(ft(ft(ft({},ca.defaultProps),n),{},{ticks:Vr(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,r)},vJ=function(t,r){var n=t.yAxis,i=t.width,o=t.height,a=t.offset;return aE(hg(ft(ft(ft({},ca.defaultProps),n),{},{ticks:Vr(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,r)},Ri={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function c2(e){var t,r,n,i,o,a,s=cg(),l=fg(),u=nZ(),f=ft(ft({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ri.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ri.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ri.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ri.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ri.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Ri.verticalFill,x:H(e.x)?e.x:u.left,y:H(e.y)?e.y:u.top,width:H(e.width)?e.width:u.width,height:H(e.height)?e.height:u.height}),c=f.x,d=f.y,p=f.width,m=f.height,h=f.syncWithTicks,g=f.horizontalValues,v=f.verticalValues,y=eZ(),b=tZ();if(!H(p)||p<=0||!H(m)||m<=0||!H(c)||c!==+c||!H(d)||d!==+d)return null;var _=f.verticalCoordinatesGenerator||yJ,x=f.horizontalCoordinatesGenerator||vJ,w=f.horizontalPoints,O=f.verticalPoints;if((!w||!w.length)&&Z(x)){var A=g&&g.length,E=x({yAxis:b?ft(ft({},b),{},{ticks:A?g:b.ticks}):void 0,width:s,height:l,offset:u},A?!0:h);gr(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Oi(E),"]")),Array.isArray(E)&&(w=E)}if((!O||!O.length)&&Z(_)){var j=v&&v.length,T=_({xAxis:y?ft(ft({},y),{},{ticks:j?v:y.ticks}):void 0,width:s,height:l,offset:u},j?!0:h);gr(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Oi(T),"]")),Array.isArray(T)&&(O=T)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(cJ,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(fJ,si({},f,{offset:u,horizontalPoints:w,xAxis:y,yAxis:b})),P.createElement(dJ,si({},f,{offset:u,verticalPoints:O,xAxis:y,yAxis:b})),P.createElement(pJ,si({},f,{horizontalPoints:w})),P.createElement(hJ,si({},f,{verticalPoints:O})))}c2.displayName="CartesianGrid";var mJ=["type","layout","connectNulls","ref"],gJ=["key"];function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(e)}function Mw(e,t){if(e==null)return{};var r=bJ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Za.apply(this,arguments)}function Iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iw(Object(r),!0).forEach(function(n){dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Li(e){return _J(e)||SJ(e)||wJ(e)||xJ()}function xJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
472
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wJ(e,t){if(e){if(typeof e=="string")return Xy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xy(e,t)}}function SJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _J(e){if(Array.isArray(e))return Xy(e)}function Xy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d2(n.key),n)}}function AJ(e,t,r){return t&&Dw(e.prototype,t),r&&Dw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PJ(e,t,r){return t=qc(t),EJ(e,f2()?Reflect.construct(t,r||[],qc(e).constructor):t.apply(e,r))}function EJ(e,t){if(t&&(Wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kJ(e)}function kJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f2=function(){return!!e})()}function qc(e){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qc(e)}function jJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yy(e,t)}function Yy(e,t){return Yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yy(e,t)}function dr(e,t,r){return t=d2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d2(e){var t=$J(e,"string");return Wo(t)=="symbol"?t:t+""}function $J(e,t){if(Wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gl=function(e){function t(){var r;OJ(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=PJ(this,t,[].concat(i)),dr(r,"state",{isAnimationFinished:!0,totalLength:0}),dr(r,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),dr(r,"getStrokeDasharray",function(a,s,l){var u=l.reduce(function(v,y){return v+y});if(!u)return r.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/u),c=a%u,d=s-a,p=[],m=0,h=0;m<l.length;h+=l[m],++m)if(h+l[m]>c){p=[].concat(Li(l.slice(0,m)),[c-h]);break}var g=p.length%2===0?[0,d]:[d];return[].concat(Li(t.repeat(l,f)),Li(p),g).map(function(v){return"".concat(v,"px")}).join(", ")}),dr(r,"id",na("recharts-line-")),dr(r,"pathRef",function(a){r.mainCurve=a}),dr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),dr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return jJ(t,e),AJ(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,c=Lt(f,vl);if(!c)return null;var d=function(h,g){return{x:h.x,y:h.y,value:h.value,errorVal:Ge(h.payload,g)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(le,p,c.map(function(m){return P.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,f=s.dataKey,c=Y(this.props,!1),d=Y(l,!0),p=u.map(function(h,g){var v=jt(jt(jt({key:"dot-".concat(g),r:3},c),d),{},{index:g,cx:h.x,cy:h.y,value:h.value,dataKey:f,payload:h.payload,points:u});return t.renderDotItem(l,v)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return P.createElement(le,Za({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(n,i,o,a){var s=this.props,l=s.type,u=s.layout,f=s.connectNulls;s.ref;var c=Mw(s,mJ),d=jt(jt(jt({},Y(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:n},a),{},{type:l,layout:u,connectNulls:f});return P.createElement(Pc,Za({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var o=this,a=this.props,s=a.points,l=a.strokeDasharray,u=a.isAnimationActive,f=a.animationBegin,c=a.animationDuration,d=a.animationEasing,p=a.animationId,m=a.animateNewValues,h=a.width,g=a.height,v=this.state,y=v.prevPoints,b=v.totalLength;return P.createElement(Nr,{begin:f,duration:c,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var x=_.t;if(y){var w=y.length/s.length,O=s.map(function(k,D){var I=Math.floor(D*w);if(y[I]){var N=y[I],L=Nt(N.x,k.x),z=Nt(N.y,k.y);return jt(jt({},k),{},{x:L(x),y:z(x)})}if(m){var C=Nt(h*2,k.x),R=Nt(g/2,k.y);return jt(jt({},k),{},{x:C(x),y:R(x)})}return jt(jt({},k),{},{x:k.x,y:k.y})});return o.renderCurveStatically(O,n,i)}var A=Nt(0,b),E=A(x),j;if(l){var T="".concat(l).split(/[,\s]+/gim).map(function(k){return parseFloat(k)});j=o.getStrokeDasharray(E,b,T)}else j=o.generateSimpleStrokeDasharray(b,E);return o.renderCurveStatically(s,n,i,{strokeDasharray:j})})}},{key:"renderCurve",value:function(n,i){var o=this.props,a=o.points,s=o.isAnimationActive,l=this.state,u=l.prevPoints,f=l.totalLength;return s&&a&&a.length&&(!u&&f>0||!yl(u,a))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(a,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.xAxis,f=i.yAxis,c=i.top,d=i.left,p=i.width,m=i.height,h=i.isAnimationActive,g=i.id;if(o||!s||!s.length)return null;var v=this.state.isAnimationFinished,y=s.length===1,b=te("recharts-line",l),_=u&&u.allowDataOverflow,x=f&&f.allowDataOverflow,w=_||x,O=J(g)?this.id:g,A=(n=Y(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},E=A.r,j=E===void 0?3:E,T=A.strokeWidth,k=T===void 0?2:T,D=GD(a)?a:{},I=D.clipDot,N=I===void 0?!0:I,L=j*2+k;return P.createElement(le,{className:b},_||x?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(O)},P.createElement("rect",{x:_?d:d-p/2,y:x?c:c-m/2,width:_?p:p*2,height:x?m:m*2})),!N&&P.createElement("clipPath",{id:"clipPath-dots-".concat(O)},P.createElement("rect",{x:d-L/2,y:c-L/2,width:p+L,height:m+L}))):null,!y&&this.renderCurve(w,O),this.renderErrorBar(w,O),(y||a)&&this.renderDots(w,N,O),(!h||v)&&Xr.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var o=n.length%2!==0?[].concat(Li(n),[0]):n,a=[],s=0;s<i;++s)a=[].concat(Li(a),Li(o));return a}},{key:"renderDotItem",value:function(n,i){var o;if(P.isValidElement(n))o=P.cloneElement(n,i);else if(Z(n))o=n(i);else{var a=i.key,s=Mw(i,gJ),l=te("recharts-line-dot",typeof n!="boolean"?n.className:"");o=P.createElement(td,Za({key:a},s,{className:l}))}return o}}])}($.PureComponent);dr(gl,"displayName","Line");dr(gl,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ki.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});dr(gl,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,f=t.layout,c=l.map(function(d,p){var m=Ge(d,a);return f==="horizontal"?{x:u1({axis:r,ticks:i,bandSize:s,entry:d,index:p}),y:J(m)?null:n.scale(m),value:m,payload:d}:{x:J(m)?null:r.scale(m),y:u1({axis:n,ticks:o,bandSize:s,entry:d,index:p}),value:m,payload:d}});return jt({points:c,layout:f},u)});function Ho(e){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(e)}function TJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CJ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y2(n.key),n)}}function NJ(e,t,r){return t&&CJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MJ(e,t,r){return t=Gc(t),IJ(e,p2()?Reflect.construct(t,r||[],Gc(e).constructor):t.apply(e,r))}function IJ(e,t){if(t&&(Ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DJ(e)}function DJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p2=function(){return!!e})()}function Gc(e){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gc(e)}function RJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function h2(e,t,r){return t=y2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y2(e){var t=LJ(e,"string");return Ho(t)=="symbol"?t:t+""}function LJ(e,t){if(Ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ho(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}function BJ(e){var t=e.xAxisId,r=cg(),n=fg(),i=ZE(t);return i==null?null:$.createElement(ca,Zy({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(a){return Vr(a,!0)}}))}var pd=function(e){function t(){return TJ(this,t),MJ(this,t,arguments)}return RJ(t,e),NJ(t,[{key:"render",value:function(){return $.createElement(BJ,this.props)}}])}($.Component);h2(pd,"displayName","XAxis");h2(pd,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Vo(e){"@babel/helpers - typeof";return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(e)}function zJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FJ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g2(n.key),n)}}function UJ(e,t,r){return t&&FJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WJ(e,t,r){return t=Xc(t),HJ(e,v2()?Reflect.construct(t,r||[],Xc(e).constructor):t.apply(e,r))}function HJ(e,t){if(t&&(Vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VJ(e)}function VJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v2=function(){return!!e})()}function Xc(e){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xc(e)}function KJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jy(e,t)}function Jy(e,t){return Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jy(e,t)}function m2(e,t,r){return t=g2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g2(e){var t=qJ(e,"string");return Vo(t)=="symbol"?t:t+""}function qJ(e,t){if(Vo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ev.apply(this,arguments)}var GJ=function(t){var r=t.yAxisId,n=cg(),i=fg(),o=JE(r);return o==null?null:$.createElement(ca,ev({},o,{className:te("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Vr(s,!0)}}))},hd=function(e){function t(){return zJ(this,t),WJ(this,t,arguments)}return KJ(t,e),UJ(t,[{key:"render",value:function(){return $.createElement(GJ,this.props)}}])}($.Component);m2(hd,"displayName","YAxis");m2(hd,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function Rw(e){return ZJ(e)||QJ(e)||YJ(e)||XJ()}function XJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
473
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YJ(e,t){if(e){if(typeof e=="string")return tv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tv(e,t)}}function QJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZJ(e){if(Array.isArray(e))return tv(e)}function tv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var rv=function(t,r,n,i,o){var a=Lt(t,pg),s=Lt(t,cd),l=[].concat(Rw(a),Rw(s)),u=Lt(t,dd),f="".concat(i,"Id"),c=i[0],d=r;if(l.length&&(d=l.reduce(function(h,g){if(g.props[f]===n&&$r(g.props,"extendDomain")&&H(g.props[c])){var v=g.props[c];return[Math.min(h[0],v),Math.max(h[1],v)]}return h},d)),u.length){var p="".concat(c,"1"),m="".concat(c,"2");d=u.reduce(function(h,g){if(g.props[f]===n&&$r(g.props,"extendDomain")&&H(g.props[p])&&H(g.props[m])){var v=g.props[p],y=g.props[m];return[Math.min(h[0],v,y),Math.max(h[1],v,y)]}return h},d)}return o&&o.length&&(d=o.reduce(function(h,g){return H(g)?[Math.min(h[0],g),Math.max(h[1],g)]:h},d)),d},b2={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function o(l,u,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,c||l,d),m=r?r+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=r?r+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,p=c.length,m=new Array(p);d<p;d++)m[d]=c[d].fn;return m},s.prototype.listenerCount=function(u){var f=r?r+u:u,c=this._events[f];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,f,c,d,p,m){var h=r?r+u:u;if(!this._events[h])return!1;var g=this._events[h],v=arguments.length,y,b;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),v){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,f),!0;case 3:return g.fn.call(g.context,f,c),!0;case 4:return g.fn.call(g.context,f,c,d),!0;case 5:return g.fn.call(g.context,f,c,d,p),!0;case 6:return g.fn.call(g.context,f,c,d,p,m),!0}for(b=1,y=new Array(v-1);b<v;b++)y[b-1]=arguments[b];g.fn.apply(g.context,y)}else{var _=g.length,x;for(b=0;b<_;b++)switch(g[b].once&&this.removeListener(u,g[b].fn,void 0,!0),v){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,f);break;case 3:g[b].fn.call(g[b].context,f,c);break;case 4:g[b].fn.call(g[b].context,f,c,d);break;default:if(!y)for(x=1,y=new Array(v-1);x<v;x++)y[x-1]=arguments[x];g[b].fn.apply(g[b].context,y)}}return!0},s.prototype.on=function(u,f,c){return o(this,u,f,c,!1)},s.prototype.once=function(u,f,c){return o(this,u,f,c,!0)},s.prototype.removeListener=function(u,f,c,d){var p=r?r+u:u;if(!this._events[p])return this;if(!f)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!d||m.once)&&(!c||m.context===c)&&a(this,p);else{for(var h=0,g=[],v=m.length;h<v;h++)(m[h].fn!==f||d&&!m[h].once||c&&m[h].context!==c)&&g.push(m[h]);g.length?this._events[p]=g.length===1?g[0]:g:a(this,p)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&a(this,f)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(b2);var JJ=b2.exports;const eee=de(JJ);var wp=new eee,Sp="recharts.syncMouseEvents";function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function tee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ree(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x2(n.key),n)}}function nee(e,t,r){return t&&ree(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _p(e,t,r){return t=x2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x2(e){var t=iee(e,"string");return Js(t)=="symbol"?t:t+""}function iee(e,t){if(Js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oee=function(){function e(){tee(this,e),_p(this,"activeIndex",0),_p(this,"coordinateList",[]),_p(this,"layout","horizontal")}return nee(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,o=i===void 0?null:i,a=r.container,s=a===void 0?null:a,l=r.layout,u=l===void 0?null:l,f=r.offset,c=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=o??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=o+l+u,d=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])}();function aee(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&H(n)&&H(i))return!0}return!1}function see(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function w2(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,o=e.endAngle,a=xe(t,r,n,i),s=xe(t,r,n,o);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function lee(e,t,r){var n,i,o,a;if(e==="horizontal")n=t.x,o=n,i=r.top,a=r.top+r.height;else if(e==="vertical")i=t.y,a=i,n=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,d=xe(s,l,u,c),p=xe(s,l,f,c);n=d.x,i=d.y,o=p.x,a=p.y}else return w2(t);return[{x:n,y:i},{x:o,y:a}]}function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function Lw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lw(Object(r),!0).forEach(function(n){uee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uee(e,t,r){return t=cee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cee(e){var t=fee(e,"string");return el(t)=="symbol"?t:t+""}function fee(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dee(e){var t,r,n=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!o||!a||d!=="ScatterChart"&&i!=="axis")return null;var m,h=Pc;if(d==="ScatterChart")m=a,h=jG;else if(d==="BarChart")m=see(c,a,l,f),h=ag;else if(c==="radial"){var g=w2(a),v=g.cx,y=g.cy,b=g.radius,_=g.startAngle,x=g.endAngle;m={cx:v,cy:y,startAngle:_,endAngle:x,innerRadius:b,outerRadius:b},h=mE}else m={points:lee(c,a,l)},h=Pc;var w=eu(eu(eu(eu({stroke:"#ccc",pointerEvents:"none"},l),m),Y(p,!1)),{},{payload:s,payloadIndex:u,className:te("recharts-tooltip-cursor",p.className)});return $.isValidElement(p)?$.cloneElement(p,w):$.createElement(h,w)}var pee=["item"],hee=["children","className","width","height","style","compact","title","desc"];function Ko(e){"@babel/helpers - typeof";return Ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ko(e)}function ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ro.apply(this,arguments)}function Bw(e,t){return mee(e)||vee(e,t)||_2(e,t)||yee()}function yee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
474
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function mee(e){if(Array.isArray(e))return e}function zw(e,t){if(e==null)return{};var r=gee(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O2(n.key),n)}}function wee(e,t,r){return t&&xee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function See(e,t,r){return t=Yc(t),_ee(e,S2()?Reflect.construct(t,r||[],Yc(e).constructor):t.apply(e,r))}function _ee(e,t){if(t&&(Ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oee(e)}function Oee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S2=function(){return!!e})()}function Yc(e){return Yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yc(e)}function Aee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nv(e,t)}function nv(e,t){return nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nv(e,t)}function qo(e){return kee(e)||Eee(e)||_2(e)||Pee()}function Pee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
475
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _2(e,t){if(e){if(typeof e=="string")return iv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iv(e,t)}}function Eee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kee(e){if(Array.isArray(e))return iv(e)}function iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(r),!0).forEach(function(n){Q(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q(e,t,r){return t=O2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O2(e){var t=jee(e,"string");return Ko(t)=="symbol"?t:t+""}function jee(e,t){if(Ko(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ko(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $ee={xAxis:["bottom","top"],yAxis:["left","right"]},Tee={width:"100%",height:"100%"},A2={x:0,y:0};function tu(e){return e}var Cee=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Nee=function(t,r,n,i){var o=r.find(function(f){return f&&f.index===n});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,s=i.radius;return M(M(M({},i),xe(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var l=o.coordinate,u=i.angle;return M(M(M({},i),xe(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return A2},yd=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,o=r.dataEndIndex,a=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(qo(s),qo(u)):s},[]);return a.length>0?a:t&&t.length&&H(i)&&H(o)?t.slice(i,o+1):[]};function P2(e){return e==="number"?[0,"auto"]:void 0}var ov=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=yd(r,t);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(a.dataKey&&!a.allowDuplicatedCategory){var p=c===void 0?s:c;d=Gu(p,a.dataKey,i)}else d=c&&c[n]||s[n];return d?[].concat(qo(l),[fE(u,d)]):l},[])},Uw=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=Cee(o,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=XH(a,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,d=ov(t,r,f,c),p=Nee(n,s,f,o);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},Mee=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=oE(f,o);return n.reduce(function(m,h){var g,v=h.type.defaultProps!==void 0?M(M({},h.type.defaultProps),h.props):h.props,y=v.type,b=v.dataKey,_=v.allowDataOverflow,x=v.allowDuplicatedCategory,w=v.scale,O=v.ticks,A=v.includeHidden,E=v[a];if(m[E])return m;var j=yd(t.data,{graphicalItems:i.filter(function(W){var X,oe=a in W.props?W.props[a]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[a];return oe===E}),dataStartIndex:l,dataEndIndex:u}),T=j.length,k,D,I;aee(v.domain,_,y)&&(k=by(v.domain,null,_),p&&(y==="number"||w!=="auto")&&(I=Ga(j,b,"category")));var N=P2(y);if(!k||k.length===0){var L,z=(L=v.domain)!==null&&L!==void 0?L:N;if(b){if(k=Ga(j,b,y),y==="category"&&p){var C=LD(k);x&&C?(D=k,k=Rc(0,T)):x||(k=p1(z,k,h).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(qo(W),[X])},[]))}else if(y==="category")x?k=k.filter(function(W){return W!==""&&!J(W)}):k=p1(z,k,h).reduce(function(W,X){return W.indexOf(X)>=0||X===""||J(X)?W:[].concat(qo(W),[X])},[]);else if(y==="number"){var R=eV(j,i.filter(function(W){var X,oe,Ae=a in W.props?W.props[a]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[a],De="hide"in W.props?W.props.hide:(oe=W.type.defaultProps)===null||oe===void 0?void 0:oe.hide;return Ae===E&&(A||!De)}),b,o,f);R&&(k=R)}p&&(y==="number"||w!=="auto")&&(I=Ga(j,b,"category"))}else p?k=Rc(0,T):s&&s[E]&&s[E].hasStack&&y==="number"?k=d==="expand"?[0,1]:cE(s[E].stackGroups,l,u):k=iE(j,i.filter(function(W){var X=a in W.props?W.props[a]:W.type.defaultProps[a],oe="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===E&&(A||!oe)}),y,f,!0);if(y==="number")k=rv(c,k,E,o,O),z&&(k=by(z,k,_));else if(y==="category"&&z){var B=z,V=k.every(function(W){return B.indexOf(W)>=0});V&&(k=B)}}return M(M({},m),{},Q({},E,M(M({},v),{},{axisType:o,domain:k,categoricalDomain:I,duplicateDomain:D,originalDomain:(g=v.domain)!==null&&g!==void 0?g:N,isCategorical:p,layout:f})))},{})},Iee=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=yd(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=d.length,m=oE(f,o),h=-1;return n.reduce(function(g,v){var y=v.type.defaultProps!==void 0?M(M({},v.type.defaultProps),v.props):v.props,b=y[a],_=P2("number");if(!g[b]){h++;var x;return m?x=Rc(0,p):s&&s[b]&&s[b].hasStack?(x=cE(s[b].stackGroups,l,u),x=rv(c,x,b,o)):(x=by(_,iE(d,n.filter(function(w){var O,A,E=a in w.props?w.props[a]:(O=w.type.defaultProps)===null||O===void 0?void 0:O[a],j="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return E===b&&!j}),"number",f),i.defaultProps.allowDataOverflow),x=rv(c,x,b,o)),M(M({},g),{},Q({},b,M(M({axisType:o},i.defaultProps),{},{hide:!0,orientation:Rt($ee,"".concat(o,".").concat(h%2),null),domain:x,originalDomain:_,isCategorical:m,layout:f})))}return g},{})},Dee=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,a=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Lt(f,o),p={};return d&&d.length?p=Mee(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):a&&a.length&&(p=Iee(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},Ree=function(t){var r=bn(t),n=Vr(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Nm(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:_c(r,n)}},Ww=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ct(r,Ro),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},Lee=function(t){return!t||!t.length?!1:t.some(function(r){var n=qr(r&&r.type);return n&&n.indexOf("Bar")>=0})},Hw=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Bee=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,f=n.height,c=n.children,d=n.margin||{},p=Ct(c,Ro),m=Ct(c,co),h=Object.keys(l).reduce(function(x,w){var O=l[w],A=O.orientation;return!O.mirror&&!O.hide?M(M({},x),{},Q({},A,x[A]+O.width)):x},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(x,w){var O=a[w],A=O.orientation;return!O.mirror&&!O.hide?M(M({},x),{},Q({},A,Rt(x,"".concat(A))+O.height)):x},{top:d.top||0,bottom:d.bottom||0}),v=M(M({},g),h),y=v.bottom;p&&(v.bottom+=p.props.height||Ro.defaultProps.height),m&&r&&(v=ZH(v,i,n,r));var b=u-v.left-v.right,_=f-v.top-v.bottom;return M(M({brushBottom:y},v),{},{width:Math.max(b,0),height:Math.max(_,0)})},zee=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},E2=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(v,y){var b=y.graphicalItems,_=y.stackGroups,x=y.offset,w=y.updateId,O=y.dataStartIndex,A=y.dataEndIndex,E=v.barSize,j=v.layout,T=v.barGap,k=v.barCategoryGap,D=v.maxBarSize,I=Hw(j),N=I.numericAxisName,L=I.cateAxisName,z=Lee(b),C=[];return b.forEach(function(R,B){var V=yd(v.data,{graphicalItems:[R],dataStartIndex:O,dataEndIndex:A}),W=R.type.defaultProps!==void 0?M(M({},R.type.defaultProps),R.props):R.props,X=W.dataKey,oe=W.maxBarSize,Ae=W["".concat(N,"Id")],De=W["".concat(L,"Id")],Wt={},xt=l.reduce(function(Wn,Hn){var vd=y["".concat(Hn.axisType,"Map")],vg=W["".concat(Hn.axisType,"Id")];vd&&vd[vg]||Hn.axisType==="zAxis"||_i();var mg=vd[vg];return M(M({},Wn),{},Q(Q({},Hn.axisType,mg),"".concat(Hn.axisType,"Ticks"),Vr(mg)))},Wt),K=xt[L],ee=xt["".concat(L,"Ticks")],re=_&&_[Ae]&&_[Ae].hasStack&&uV(R,_[Ae].stackGroups),F=qr(R.type).indexOf("Bar")>=0,Ce=_c(K,ee),ae=[],Ue=z&&YH({barSize:E,stackGroups:_,totalSize:zee(xt,L)});if(F){var We,wt,cn=J(oe)?D:oe,Ci=(We=(wt=_c(K,ee,!0))!==null&&wt!==void 0?wt:cn)!==null&&We!==void 0?We:0;ae=QH({barGap:T,barCategoryGap:k,bandSize:Ci!==Ce?Ci:Ce,sizeList:Ue[De],maxBarSize:cn}),Ci!==Ce&&(ae=ae.map(function(Wn){return M(M({},Wn),{},{position:M(M({},Wn.position),{},{offset:Wn.position.offset-Ci/2})})}))}var bl=R&&R.type&&R.type.getComposedData;bl&&C.push({props:M(M({},bl(M(M({},xt),{},{displayedData:V,props:v,dataKey:X,item:R,bandSize:Ce,barPosition:ae,offset:x,stackedData:re,layout:j,dataStartIndex:O,dataEndIndex:A}))),{},Q(Q(Q({key:R.key||"item-".concat(B)},N,xt[N]),L,xt[L]),"animationId",w)),childIndex:QD(R,v.children),item:R})}),C},p=function(v,y){var b=v.props,_=v.dataStartIndex,x=v.dataEndIndex,w=v.updateId;if(!ob({props:b}))return null;var O=b.children,A=b.layout,E=b.stackOffset,j=b.data,T=b.reverseStackOrder,k=Hw(A),D=k.numericAxisName,I=k.cateAxisName,N=Lt(O,n),L=sV(j,N,"".concat(D,"Id"),"".concat(I,"Id"),E,T),z=l.reduce(function(W,X){var oe="".concat(X.axisType,"Map");return M(M({},W),{},Q({},oe,Dee(b,M(M({},X),{},{graphicalItems:N,stackGroups:X.axisType===D&&L,dataStartIndex:_,dataEndIndex:x}))))},{}),C=Bee(M(M({},z),{},{props:b,graphicalItems:N}),y==null?void 0:y.legendBBox);Object.keys(z).forEach(function(W){z[W]=f(b,z[W],C,W.replace("Map",""),r)});var R=z["".concat(I,"Map")],B=Ree(R),V=d(b,M(M({},z),{},{dataStartIndex:_,dataEndIndex:x,updateId:w,graphicalItems:N,stackGroups:L,offset:C}));return M(M({formattedGraphicalItems:V,graphicalItems:N,offset:C,stackGroups:L},B),z)},m=function(g){function v(y){var b,_,x;return bee(this,v),x=See(this,v,[y]),Q(x,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Q(x,"accessibilityManager",new oee),Q(x,"handleLegendBBoxUpdate",function(w){if(w){var O=x.state,A=O.dataStartIndex,E=O.dataEndIndex,j=O.updateId;x.setState(M({legendBBox:w},p({props:x.props,dataStartIndex:A,dataEndIndex:E,updateId:j},M(M({},x.state),{},{legendBBox:w}))))}}),Q(x,"handleReceiveSyncEvent",function(w,O,A){if(x.props.syncId===w){if(A===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(O)}}),Q(x,"handleBrushChange",function(w){var O=w.startIndex,A=w.endIndex;if(O!==x.state.dataStartIndex||A!==x.state.dataEndIndex){var E=x.state.updateId;x.setState(function(){return M({dataStartIndex:O,dataEndIndex:A},p({props:x.props,dataStartIndex:O,dataEndIndex:A,updateId:E},x.state))}),x.triggerSyncEvent({dataStartIndex:O,dataEndIndex:A})}}),Q(x,"handleMouseEnter",function(w){var O=x.getMouseInfo(w);if(O){var A=M(M({},O),{},{isTooltipActive:!0});x.setState(A),x.triggerSyncEvent(A);var E=x.props.onMouseEnter;Z(E)&&E(A,w)}}),Q(x,"triggeredAfterMouseMove",function(w){var O=x.getMouseInfo(w),A=O?M(M({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(A),x.triggerSyncEvent(A);var E=x.props.onMouseMove;Z(E)&&E(A,w)}),Q(x,"handleItemMouseEnter",function(w){x.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Q(x,"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),Q(x,"handleMouseMove",function(w){w.persist(),x.throttleTriggeredAfterMouseMove(w)}),Q(x,"handleMouseLeave",function(w){x.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};x.setState(O),x.triggerSyncEvent(O);var A=x.props.onMouseLeave;Z(A)&&A(O,w)}),Q(x,"handleOuterEvent",function(w){var O=YD(w),A=Rt(x.props,"".concat(O));if(O&&Z(A)){var E,j;/.*touch.*/i.test(O)?j=x.getMouseInfo(w.changedTouches[0]):j=x.getMouseInfo(w),A((E=j)!==null&&E!==void 0?E:{},w)}}),Q(x,"handleClick",function(w){var O=x.getMouseInfo(w);if(O){var A=M(M({},O),{},{isTooltipActive:!0});x.setState(A),x.triggerSyncEvent(A);var E=x.props.onClick;Z(E)&&E(A,w)}}),Q(x,"handleMouseDown",function(w){var O=x.props.onMouseDown;if(Z(O)){var A=x.getMouseInfo(w);O(A,w)}}),Q(x,"handleMouseUp",function(w){var O=x.props.onMouseUp;if(Z(O)){var A=x.getMouseInfo(w);O(A,w)}}),Q(x,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),Q(x,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&x.handleMouseDown(w.changedTouches[0])}),Q(x,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&x.handleMouseUp(w.changedTouches[0])}),Q(x,"handleDoubleClick",function(w){var O=x.props.onDoubleClick;if(Z(O)){var A=x.getMouseInfo(w);O(A,w)}}),Q(x,"handleContextMenu",function(w){var O=x.props.onContextMenu;if(Z(O)){var A=x.getMouseInfo(w);O(A,w)}}),Q(x,"triggerSyncEvent",function(w){x.props.syncId!==void 0&&wp.emit(Sp,x.props.syncId,w,x.eventEmitterSymbol)}),Q(x,"applySyncEvent",function(w){var O=x.props,A=O.layout,E=O.syncMethod,j=x.state.updateId,T=w.dataStartIndex,k=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)x.setState(M({dataStartIndex:T,dataEndIndex:k},p({props:x.props,dataStartIndex:T,dataEndIndex:k,updateId:j},x.state)));else if(w.activeTooltipIndex!==void 0){var D=w.chartX,I=w.chartY,N=w.activeTooltipIndex,L=x.state,z=L.offset,C=L.tooltipTicks;if(!z)return;if(typeof E=="function")N=E(C,w);else if(E==="value"){N=-1;for(var R=0;R<C.length;R++)if(C[R].value===w.activeLabel){N=R;break}}var B=M(M({},z),{},{x:z.left,y:z.top}),V=Math.min(D,B.x+B.width),W=Math.min(I,B.y+B.height),X=C[N]&&C[N].value,oe=ov(x.state,x.props.data,N),Ae=C[N]?{x:A==="horizontal"?C[N].coordinate:V,y:A==="horizontal"?W:C[N].coordinate}:A2;x.setState(M(M({},w),{},{activeLabel:X,activeCoordinate:Ae,activePayload:oe,activeTooltipIndex:N}))}else x.setState(w)}),Q(x,"renderCursor",function(w){var O,A=x.state,E=A.isTooltipActive,j=A.activeCoordinate,T=A.activePayload,k=A.offset,D=A.activeTooltipIndex,I=A.tooltipAxisBandSize,N=x.getTooltipEventType(),L=(O=w.props.active)!==null&&O!==void 0?O:E,z=x.props.layout,C=w.key||"_recharts-cursor";return P.createElement(dee,{key:C,activeCoordinate:j,activePayload:T,activeTooltipIndex:D,chartName:r,element:w,isActive:L,layout:z,offset:k,tooltipAxisBandSize:I,tooltipEventType:N})}),Q(x,"renderPolarAxis",function(w,O,A){var E=Rt(w,"type.axisType"),j=Rt(x.state,"".concat(E,"Map")),T=w.type.defaultProps,k=T!==void 0?M(M({},T),w.props):w.props,D=j&&j[k["".concat(E,"Id")]];return $.cloneElement(w,M(M({},D),{},{className:te(E,D.className),key:w.key||"".concat(O,"-").concat(A),ticks:Vr(D,!0)}))}),Q(x,"renderPolarGrid",function(w){var O=w.props,A=O.radialLines,E=O.polarAngles,j=O.polarRadius,T=x.state,k=T.radiusAxisMap,D=T.angleAxisMap,I=bn(k),N=bn(D),L=N.cx,z=N.cy,C=N.innerRadius,R=N.outerRadius;return $.cloneElement(w,{polarAngles:Array.isArray(E)?E:Vr(N,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(j)?j:Vr(I,!0).map(function(B){return B.coordinate}),cx:L,cy:z,innerRadius:C,outerRadius:R,key:w.key||"polar-grid",radialLines:A})}),Q(x,"renderLegend",function(){var w=x.state.formattedGraphicalItems,O=x.props,A=O.children,E=O.width,j=O.height,T=x.props.margin||{},k=E-(T.left||0)-(T.right||0),D=rE({children:A,formattedGraphicalItems:w,legendWidth:k,legendContent:u});if(!D)return null;var I=D.item,N=zw(D,pee);return $.cloneElement(I,M(M({},N),{},{chartWidth:E,chartHeight:j,margin:T,onBBoxUpdate:x.handleLegendBBoxUpdate}))}),Q(x,"renderTooltip",function(){var w,O=x.props,A=O.children,E=O.accessibilityLayer,j=Ct(A,cr);if(!j)return null;var T=x.state,k=T.isTooltipActive,D=T.activeCoordinate,I=T.activePayload,N=T.activeLabel,L=T.offset,z=(w=j.props.active)!==null&&w!==void 0?w:k;return $.cloneElement(j,{viewBox:M(M({},L),{},{x:L.left,y:L.top}),active:z,label:N,payload:z?I:[],coordinate:D,accessibilityLayer:E})}),Q(x,"renderBrush",function(w){var O=x.props,A=O.margin,E=O.data,j=x.state,T=j.offset,k=j.dataStartIndex,D=j.dataEndIndex,I=j.updateId;return $.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Yl(x.handleBrushChange,w.props.onChange),data:E,x:H(w.props.x)?w.props.x:T.left,y:H(w.props.y)?w.props.y:T.top+T.height+T.brushBottom-(A.bottom||0),width:H(w.props.width)?w.props.width:T.width,startIndex:k,endIndex:D,updateId:"brush-".concat(I)})}),Q(x,"renderReferenceElement",function(w,O,A){if(!w)return null;var E=x,j=E.clipPathId,T=x.state,k=T.xAxisMap,D=T.yAxisMap,I=T.offset,N=w.type.defaultProps||{},L=w.props,z=L.xAxisId,C=z===void 0?N.xAxisId:z,R=L.yAxisId,B=R===void 0?N.yAxisId:R;return $.cloneElement(w,{key:w.key||"".concat(O,"-").concat(A),xAxis:k[C],yAxis:D[B],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:j})}),Q(x,"renderActivePoints",function(w){var O=w.item,A=w.activePoint,E=w.basePoint,j=w.childIndex,T=w.isRange,k=[],D=O.props.key,I=O.item.type.defaultProps!==void 0?M(M({},O.item.type.defaultProps),O.item.props):O.item.props,N=I.activeDot,L=I.dataKey,z=M(M({index:j,dataKey:L,cx:A.x,cy:A.y,r:4,fill:og(O.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},Y(N,!1)),Xu(N));return k.push(v.renderActiveDot(N,z,"".concat(D,"-activePoint-").concat(j))),E?k.push(v.renderActiveDot(N,M(M({},z),{},{cx:E.x,cy:E.y}),"".concat(D,"-basePoint-").concat(j))):T&&k.push(null),k}),Q(x,"renderGraphicChild",function(w,O,A){var E=x.filterFormatItem(w,O,A);if(!E)return null;var j=x.getTooltipEventType(),T=x.state,k=T.isTooltipActive,D=T.tooltipAxis,I=T.activeTooltipIndex,N=T.activeLabel,L=x.props.children,z=Ct(L,cr),C=E.props,R=C.points,B=C.isRange,V=C.baseLine,W=E.item.type.defaultProps!==void 0?M(M({},E.item.type.defaultProps),E.item.props):E.item.props,X=W.activeDot,oe=W.hide,Ae=W.activeBar,De=W.activeShape,Wt=!!(!oe&&k&&z&&(X||Ae||De)),xt={};j!=="axis"&&z&&z.props.trigger==="click"?xt={onClick:Yl(x.handleItemMouseEnter,w.props.onClick)}:j!=="axis"&&(xt={onMouseLeave:Yl(x.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Yl(x.handleItemMouseEnter,w.props.onMouseEnter)});var K=$.cloneElement(w,M(M({},E.props),xt));function ee(Hn){return typeof D.dataKey=="function"?D.dataKey(Hn.payload):null}if(Wt)if(I>=0){var re,F;if(D.dataKey&&!D.allowDuplicatedCategory){var Ce=typeof D.dataKey=="function"?ee:"payload.".concat(D.dataKey.toString());re=Gu(R,Ce,N),F=B&&V&&Gu(V,Ce,N)}else re=R==null?void 0:R[I],F=B&&V&&V[I];if(De||Ae){var ae=w.props.activeIndex!==void 0?w.props.activeIndex:I;return[$.cloneElement(w,M(M(M({},E.props),xt),{},{activeIndex:ae})),null,null]}if(!J(re))return[K].concat(qo(x.renderActivePoints({item:E,activePoint:re,basePoint:F,childIndex:I,isRange:B})))}else{var Ue,We=(Ue=x.getItemByXY(x.state.activeCoordinate))!==null&&Ue!==void 0?Ue:{graphicalItem:K},wt=We.graphicalItem,cn=wt.item,Ci=cn===void 0?w:cn,bl=wt.childIndex,Wn=M(M(M({},E.props),xt),{},{activeIndex:bl});return[$.cloneElement(Ci,Wn),null,null]}return B?[K,null,null]:[K,null]}),Q(x,"renderCustomized",function(w,O,A){return $.cloneElement(w,M(M({key:"recharts-customized-".concat(A)},x.props),x.state))}),Q(x,"renderMap",{CartesianGrid:{handler:tu,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:tu},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:tu},YAxis:{handler:tu},Brush:{handler:x.renderBrush,once:!0},Bar:{handler:x.renderGraphicChild},Line:{handler:x.renderGraphicChild},Area:{handler:x.renderGraphicChild},Radar:{handler:x.renderGraphicChild},RadialBar:{handler:x.renderGraphicChild},Scatter:{handler:x.renderGraphicChild},Pie:{handler:x.renderGraphicChild},Funnel:{handler:x.renderGraphicChild},Tooltip:{handler:x.renderCursor,once:!0},PolarGrid:{handler:x.renderPolarGrid,once:!0},PolarAngleAxis:{handler:x.renderPolarAxis},PolarRadiusAxis:{handler:x.renderPolarAxis},Customized:{handler:x.renderCustomized}}),x.clipPathId="".concat((b=y.id)!==null&&b!==void 0?b:na("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=rP(x.triggeredAfterMouseMove,(_=y.throttleDelay)!==null&&_!==void 0?_:1e3/60),x.state={},x}return Aee(v,g),wee(v,[{key:"componentDidMount",value:function(){var b,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,_=b.children,x=b.data,w=b.height,O=b.layout,A=Ct(_,cr);if(A){var E=A.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,T=ov(this.state,x,E,j),k=this.state.tooltipTicks[E].coordinate,D=(this.state.offset.top+w)/2,I=O==="horizontal",N=I?{x:k,y:D}:{y:k,x:D},L=this.state.formattedGraphicalItems.find(function(C){var R=C.item;return R.type.name==="Scatter"});L&&(N=M(M({},N),L.props.points[E].tooltipPosition),T=L.props.points[E].tooltipPayload);var z={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:j,activePayload:T,activeCoordinate:N};this.setState(z),this.renderCursor(A),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var x,w;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){Mh([Ct(b.children,cr)],[Ct(this.props.children,cr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Ct(this.props.children,cr);if(b&&typeof b.props.shared=="boolean"){var _=b.props.shared?"axis":"item";return s.indexOf(_)>=0?_:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var _=this.container,x=_.getBoundingClientRect(),w=_U(x),O={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},A=x.width/_.offsetWidth||1,E=this.inRange(O.chartX,O.chartY,A);if(!E)return null;var j=this.state,T=j.xAxisMap,k=j.yAxisMap,D=this.getTooltipEventType(),I=Uw(this.state,this.props.data,this.props.layout,E);if(D!=="axis"&&T&&k){var N=bn(T).scale,L=bn(k).scale,z=N&&N.invert?N.invert(O.chartX):null,C=L&&L.invert?L.invert(O.chartY):null;return M(M({},O),{},{xValue:z,yValue:C},I)}return I?M(M({},O),I):null}},{key:"inRange",value:function(b,_){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,O=b/x,A=_/x;if(w==="horizontal"||w==="vertical"){var E=this.state.offset,j=O>=E.left&&O<=E.left+E.width&&A>=E.top&&A<=E.top+E.height;return j?{x:O,y:A}:null}var T=this.state,k=T.angleAxisMap,D=T.radiusAxisMap;if(k&&D){var I=bn(k);return v1({x:O,y:A},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,_=this.getTooltipEventType(),x=Ct(b,cr),w={};x&&_==="axis"&&(x.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Xu(this.props,this.handleOuterEvent);return M(M({},O),w)}},{key:"addListener",value:function(){wp.on(Sp,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){wp.removeListener(Sp,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,_,x){for(var w=this.state.formattedGraphicalItems,O=0,A=w.length;O<A;O++){var E=w[O];if(E.item===b||E.props.key===b.key||_===qr(E.item.type)&&x===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,_=this.state.offset,x=_.left,w=_.top,O=_.height,A=_.width;return P.createElement("defs",null,P.createElement("clipPath",{id:b},P.createElement("rect",{x,y:w,height:O,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(_,x){var w=Bw(x,2),O=w[0],A=w[1];return M(M({},_),{},Q({},O,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(_,x){var w=Bw(x,2),O=w[0],A=w[1];return M(M({},_),{},Q({},O,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(b){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(b){var _=this.state,x=_.formattedGraphicalItems,w=_.activeItem;if(x&&x.length)for(var O=0,A=x.length;O<A;O++){var E=x[O],j=E.props,T=E.item,k=T.type.defaultProps!==void 0?M(M({},T.type.defaultProps),T.props):T.props,D=qr(T.type);if(D==="Bar"){var I=(j.data||[]).find(function(C){return uG(b,C)});if(I)return{graphicalItem:E,payload:I}}else if(D==="RadialBar"){var N=(j.data||[]).find(function(C){return v1(b,C)});if(N)return{graphicalItem:E,payload:N}}else if(ad(E,w)||sd(E,w)||Gs(E,w)){var L=QX({graphicalItem:E,activeTooltipItem:w,itemData:k.data}),z=k.activeIndex===void 0?L:k.activeIndex;return{graphicalItem:M(M({},E),{},{childIndex:z}),payload:Gs(E,w)?k.data[L]:E.props.data[L]}}}return null}},{key:"render",value:function(){var b=this;if(!ob(this))return null;var _=this.props,x=_.children,w=_.className,O=_.width,A=_.height,E=_.style,j=_.compact,T=_.title,k=_.desc,D=zw(_,hee),I=Y(D,!1);if(j)return P.createElement(ww,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(Dh,ro({},I,{width:O,height:A,title:T,desc:k}),this.renderClipPath(),sb(x,this.renderMap)));if(this.props.accessibilityLayer){var N,L;I.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,I.role=(L=this.props.role)!==null&&L!==void 0?L:"application",I.onKeyDown=function(C){b.accessibilityManager.keyboardEvent(C)},I.onFocus=function(){b.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return P.createElement(ww,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",ro({className:te("recharts-wrapper",w),style:M({position:"relative",cursor:"default",width:O,height:A},E)},z,{ref:function(R){b.container=R}}),P.createElement(Dh,ro({},I,{width:O,height:A,title:T,desc:k,style:Tee}),this.renderClipPath(),sb(x,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}($.Component);Q(m,"displayName",r),Q(m,"defaultProps",M({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),Q(m,"getDerivedStateFromProps",function(g,v){var y=g.dataKey,b=g.data,_=g.children,x=g.width,w=g.height,O=g.layout,A=g.stackOffset,E=g.margin,j=v.dataStartIndex,T=v.dataEndIndex;if(v.updateId===void 0){var k=Ww(g);return M(M(M({},k),{},{updateId:0},p(M(M({props:g},k),{},{updateId:0}),v)),{},{prevDataKey:y,prevData:b,prevWidth:x,prevHeight:w,prevLayout:O,prevStackOffset:A,prevMargin:E,prevChildren:_})}if(y!==v.prevDataKey||b!==v.prevData||x!==v.prevWidth||w!==v.prevHeight||O!==v.prevLayout||A!==v.prevStackOffset||!uo(E,v.prevMargin)){var D=Ww(g),I={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},N=M(M({},Uw(v,b,O)),{},{updateId:v.updateId+1}),L=M(M(M({},D),I),N);return M(M(M({},L),p(M({props:g},L),v)),{},{prevDataKey:y,prevData:b,prevWidth:x,prevHeight:w,prevLayout:O,prevStackOffset:A,prevMargin:E,prevChildren:_})}if(!Mh(_,v.prevChildren)){var z,C,R,B,V=Ct(_,Ro),W=V&&(z=(C=V.props)===null||C===void 0?void 0:C.startIndex)!==null&&z!==void 0?z:j,X=V&&(R=(B=V.props)===null||B===void 0?void 0:B.endIndex)!==null&&R!==void 0?R:T,oe=W!==j||X!==T,Ae=!J(b),De=Ae&&!oe?v.updateId:v.updateId+1;return M(M({updateId:De},p(M(M({props:g},v),{},{updateId:De,dataStartIndex:W,dataEndIndex:X}),v)),{},{prevChildren:_,dataStartIndex:W,dataEndIndex:X})}return null}),Q(m,"renderActiveDot",function(g,v,y){var b;return $.isValidElement(g)?b=$.cloneElement(g,v):Z(g)?b=g(v):b=P.createElement(td,v),P.createElement(le,{className:"recharts-active-dot",key:y},b)});var h=$.forwardRef(function(v,y){return P.createElement(m,ro({},v,{ref:y}))});return h.displayName=m.displayName,h},Fee=E2({chartName:"LineChart",GraphicalChild:gl,axisComponents:[{axisType:"xAxis",AxisComp:pd},{axisType:"yAxis",AxisComp:hd}],formatAxisMap:jQ}),Uee=E2({chartName:"PieChart",GraphicalChild:un,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:od},{axisType:"radiusAxis",AxisComp:nd}],formatAxisMap:bV,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const Wee="#10b981",Hee="#818cf8",Vee=({active:e,payload:t})=>{if(e&&t&&t.length){const r=t[0],n=r.name==="Hits"?"โก Cache Hits":"๐ New Requests";return S.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl shadow-lg px-3 py-2 text-xs",children:[S.jsx("p",{className:"font-bold text-gray-800",children:n}),S.jsxs("p",{className:"text-gray-600",children:[r.value," requests (",((r.payload.percent||0)*100).toFixed(1),"%)"]})]})}return null},Kee=({active:e,payload:t,label:r})=>e&&t&&t.length?S.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl shadow-lg px-3 py-2 text-xs",children:[S.jsxs("p",{className:"font-bold text-gray-700",children:[r,":00"]}),S.jsxs("p",{className:"text-emerald-600 font-semibold",children:["$",t[0].value.toFixed(3)," saved this hour"]})]}):null,Vw=({icon:e,title:t,description:r,children:n})=>S.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-gray-100 shadow-sm hover:shadow-md transition-shadow duration-300",children:[S.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[S.jsx("div",{className:"flex-shrink-0",children:e}),S.jsxs("div",{className:"min-w-0",children:[S.jsx("h3",{className:"text-sm font-bold text-gray-900",children:t}),S.jsx("p",{className:"text-xs text-gray-400 mt-0.5 leading-relaxed",children:r})]})]}),n]}),Kw=({message:e})=>S.jsxs("div",{className:"flex flex-col items-center justify-center h-48 text-center px-4",children:[S.jsx("div",{className:"w-10 h-10 bg-gray-100 rounded-xl flex items-center justify-center mb-3",children:S.jsx(tm,{className:"w-5 h-5 text-gray-300"})}),S.jsx("p",{className:"text-gray-500 text-xs leading-relaxed max-w-[160px]",children:e})]}),qee=()=>{const e=Ie(l=>l.metrics),t=Ie(l=>l.events),r=$.useMemo(()=>{const l=new Map;return t.forEach(u=>{if(u.type!=="cache_hit")return;const c=new Date(u.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",hour12:!1});l.set(c,(l.get(c)||0)+(u.costSaved||0))}),Array.from(l.entries()).sort(([u],[f])=>u.localeCompare(f)).slice(-24).map(([u,f])=>({time:u,cost:f}))},[t]),n=(e==null?void 0:e.cacheHits)||0,i=(e==null?void 0:e.cacheMisses)||0,o=n+i,a=[{name:"Hits",value:n},{name:"New Requests",value:i}],s=o>0?(n/o*100).toFixed(0):"0";return S.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[S.jsx(Vw,{icon:S.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-emerald-500 to-teal-600 rounded-xl flex items-center justify-center shadow-sm",children:S.jsx(nT,{className:"w-4 h-4 text-white"})}),title:"Cache Efficiency",description:"How often the system reuses a saved answer vs. sending a new request to the AI",children:o===0?S.jsx(Kw,{message:"Process some requests to see the cache hit/miss breakdown here."}):S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"flex items-center gap-4 mb-3 px-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"w-3 h-3 rounded-full bg-emerald-500 flex-shrink-0"}),S.jsxs("span",{className:"text-xs font-semibold text-gray-700",children:["Cache Hits โ answered instantly (",s,"%)"]})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"w-3 h-3 rounded-full bg-indigo-400 flex-shrink-0"}),S.jsxs("span",{className:"text-xs font-semibold text-gray-700",children:["New Requests โ sent to AI (",100-parseInt(s),"%)"]})]})]}),S.jsx(ix,{width:"100%",height:200,children:S.jsxs(Uee,{children:[S.jsxs(un,{data:a,cx:"50%",cy:"50%",innerRadius:55,outerRadius:80,paddingAngle:3,dataKey:"value",children:[S.jsx(Os,{fill:Wee}),S.jsx(Os,{fill:Hee})]}),S.jsx(cr,{content:S.jsx(Vee,{})})]})}),S.jsxs("p",{className:"text-center text-xs text-gray-400 -mt-1",children:[s,"% of all requests were served from cache"]})]})}),S.jsx(Vw,{icon:S.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-violet-500 to-purple-600 rounded-xl flex items-center justify-center shadow-sm",children:S.jsx(tm,{className:"w-4 h-4 text-white"})}),title:"Savings Over Time",description:"How much money was saved each hour by using cached answers instead of calling the AI",children:r.length===0?S.jsx(Kw,{message:"Cost savings will appear here once cache hits start generating savings."}):S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"flex items-center gap-1.5 mb-3 px-1",children:[S.jsx(J$,{className:"w-3 h-3 text-gray-400 flex-shrink-0"}),S.jsx("p",{className:"text-xs text-gray-400",children:"Each point shows dollars saved per hour. Trending up = system working well."})]}),S.jsx(ix,{width:"100%",height:200,children:S.jsxs(Fee,{data:r,children:[S.jsx("defs",{children:S.jsxs("linearGradient",{id:"costGradient",x1:"0",y1:"0",x2:"1",y2:"0",children:[S.jsx("stop",{offset:"0%",stopColor:"#8b5cf6"}),S.jsx("stop",{offset:"100%",stopColor:"#06b6d4"})]})}),S.jsx(c2,{strokeDasharray:"3 3",stroke:"#f0f0f0"}),S.jsx(pd,{dataKey:"time",tick:{fontSize:10,fill:"#9ca3af"},label:{value:"Hour of day",position:"insideBottom",offset:-5,style:{fontSize:10,fill:"#9ca3af"}}}),S.jsx(hd,{tick:{fontSize:10,fill:"#9ca3af"},tickFormatter:l=>`$${l.toFixed(2)}`}),S.jsx(cr,{content:S.jsx(Kee,{})}),S.jsx(gl,{type:"monotone",dataKey:"cost",stroke:"url(#costGradient)",strokeWidth:2.5,dot:{fill:"#8b5cf6",r:3},activeDot:{r:5,fill:"#7c3aed"},name:"Savings per hour ($)"})]})})]})})]})},Gee=e=>{const t=Date.now(),r=new Date(e).getTime(),n=t-r,i=Math.floor(n/6e4),o=Math.floor(n/36e5);return i<1?"Just now":i<60?`${i}m ago`:o<24?`${o}h ago`:new Date(e).toLocaleDateString()},qw=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),Xee=()=>{const[e,t]=$.useState(null),r=Ie(o=>o.topQueries),n=o=>{t({...o,responsePreview:`This is a cached response for: "${o.query}". The system has returned this exact response ${o.hitCount} times, saving ${o.totalTokens} tokens and $${o.costSaved.toFixed(2)} in API costs.`})},i=o=>{navigator.clipboard.writeText(o),Pe.success("Copied to clipboard!")};return S.jsxs("div",{className:"flex flex-col h-full bg-white rounded-2xl overflow-hidden",children:[S.jsxs("div",{className:"px-5 py-4 border-b border-gray-100 bg-gradient-to-b from-gray-50 to-white flex-shrink-0",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-violet-500 to-purple-600 rounded-xl flex items-center justify-center shadow-sm",children:S.jsx($0,{className:"w-4 h-4 text-white"})}),S.jsxs("div",{children:[S.jsx("h2",{className:"text-sm font-bold text-gray-900",children:"Most Reused Answers"}),S.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:"Questions the system has answered before โ and cached for instant reuse"})]})]}),r.length>0&&S.jsxs("div",{className:"mt-3 flex items-center gap-2 p-2.5 bg-violet-50 rounded-xl border border-violet-100",children:[S.jsx(lT,{className:"w-3.5 h-3.5 text-violet-500 flex-shrink-0"}),S.jsxs("p",{className:"text-xs text-violet-700 font-medium",children:["Showing the top ",r.length," most frequently cached questions"]})]})]}),S.jsx("div",{className:"flex-1 overflow-auto",children:r.length===0?S.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-6 text-center py-12",children:[S.jsx("div",{className:"w-14 h-14 bg-gray-100 rounded-2xl flex items-center justify-center mb-4",children:S.jsx($0,{className:"w-7 h-7 text-gray-400"})}),S.jsx("p",{className:"text-gray-700 font-semibold text-sm",children:"No cached answers yet"}),S.jsx("p",{className:"text-gray-400 text-xs mt-2 leading-relaxed max-w-[200px]",children:"Once agents start making requests, the most common answers will appear here."})]}):S.jsxs("table",{className:"w-full text-sm",children:[S.jsx("thead",{className:"bg-gray-50 border-b border-gray-100 sticky top-0 z-10",children:S.jsxs("tr",{children:[S.jsx("th",{className:"px-4 py-3 text-left text-xs font-bold text-gray-500 uppercase tracking-wide",children:"Question / Request"}),S.jsx("th",{className:"px-4 py-3 text-right text-xs font-bold text-gray-500 uppercase tracking-wide w-20",children:"Times Used"}),S.jsx("th",{className:"px-4 py-3 text-right text-xs font-bold text-gray-500 uppercase tracking-wide w-24",children:"Tokens Saved"}),S.jsx("th",{className:"px-4 py-3 text-right text-xs font-bold text-gray-500 uppercase tracking-wide w-24",children:"Money Saved"}),S.jsx("th",{className:"px-4 py-3 w-6"})]})}),S.jsx("tbody",{className:"divide-y divide-gray-50",children:r.map((o,a)=>S.jsxs("tr",{className:"hover:bg-violet-50/50 cursor-pointer transition-colors duration-150 group",onClick:()=>n(o),children:[S.jsx("td",{className:"px-4 py-3.5",children:S.jsxs("div",{className:"flex items-start gap-2.5",children:[S.jsx("span",{className:`flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-black mt-0.5 ${a===0?"bg-amber-100 text-amber-600":a===1?"bg-gray-100 text-gray-500":a===2?"bg-orange-100 text-orange-500":"bg-gray-50 text-gray-400"}`,children:a+1}),S.jsxs("div",{className:"min-w-0",children:[S.jsx("div",{className:"text-sm font-medium text-gray-900 truncate max-w-[220px]",title:o.query,children:o.query.length>52?o.query.substring(0,49)+"...":o.query}),S.jsx("div",{className:"text-xs text-gray-400 mt-0.5",children:Gee(o.lastHit)})]})]})}),S.jsx("td",{className:"px-4 py-3.5 text-right",children:S.jsxs("span",{className:"inline-flex items-center gap-1 text-sm font-bold text-gray-800",children:[S.jsx(tm,{className:"w-3 h-3 text-indigo-400"}),o.hitCount,"ร"]})}),S.jsx("td",{className:"px-4 py-3.5 text-right",children:S.jsx("span",{className:"text-sm font-semibold text-gray-700",children:qw(o.totalTokens)})}),S.jsx("td",{className:"px-4 py-3.5 text-right",children:S.jsxs("span",{className:"inline-block bg-emerald-50 text-emerald-700 border border-emerald-100 font-bold text-xs px-2 py-1 rounded-full",children:["$",o.costSaved.toFixed(2)]})}),S.jsx("td",{className:"px-4 py-3.5",children:S.jsx(hO,{className:"w-4 h-4 text-gray-300 group-hover:text-indigo-400 transition-colors"})})]},o.queryHash))})]})}),e&&S.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:()=>t(null),children:S.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl max-w-lg w-full overflow-hidden",onClick:o=>o.stopPropagation(),children:[S.jsxs("div",{className:"px-6 py-5 border-b border-gray-100 flex items-center justify-between bg-gradient-to-r from-violet-50 to-purple-50",children:[S.jsxs("div",{children:[S.jsx("h2",{className:"text-base font-bold text-gray-900",children:"Cached Answer Detail"}),S.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:"This question has been answered and stored"})]}),S.jsx("button",{onClick:()=>t(null),className:"p-1.5 hover:bg-white rounded-lg transition text-gray-400 hover:text-gray-700",children:S.jsx(vO,{className:"w-4 h-4"})})]}),S.jsxs("div",{className:"p-6 space-y-5",children:[S.jsxs("div",{children:[S.jsx("label",{className:"text-xs font-bold text-gray-500 uppercase tracking-wide block mb-2",children:"Original Question"}),S.jsx("div",{className:"p-3.5 bg-gray-50 rounded-xl border border-gray-200 text-gray-900 text-sm leading-relaxed",children:e.query})]}),S.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[S.jsxs("div",{className:"bg-blue-50 rounded-xl p-3 text-center border border-blue-100",children:[S.jsxs("p",{className:"text-xl font-black text-blue-700",children:[e.hitCount,"ร"]}),S.jsx("p",{className:"text-xs text-blue-500 font-medium mt-0.5",children:"Times reused"})]}),S.jsxs("div",{className:"bg-violet-50 rounded-xl p-3 text-center border border-violet-100",children:[S.jsx("p",{className:"text-xl font-black text-violet-700",children:qw(e.totalTokens)}),S.jsx("p",{className:"text-xs text-violet-500 font-medium mt-0.5",children:"Tokens saved"})]}),S.jsxs("div",{className:"bg-emerald-50 rounded-xl p-3 text-center border border-emerald-100",children:[S.jsxs("p",{className:"text-xl font-black text-emerald-700",children:["$",e.costSaved.toFixed(2)]}),S.jsx("p",{className:"text-xs text-emerald-500 font-medium mt-0.5",children:"Cost avoided"})]})]}),S.jsxs("div",{children:[S.jsx("label",{className:"text-xs font-bold text-gray-500 uppercase tracking-wide block mb-2",children:"Cached Response Preview"}),S.jsx("div",{className:"p-3.5 bg-gray-50 rounded-xl border border-gray-200 text-gray-600 text-xs leading-relaxed max-h-28 overflow-y-auto",children:e.responsePreview})]}),S.jsxs("div",{className:"flex gap-2 pt-1",children:[S.jsxs("button",{onClick:()=>i(e.query),className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-indigo-50 hover:bg-indigo-100 text-indigo-700 rounded-xl font-semibold text-sm transition-colors",children:[S.jsx(yO,{className:"w-4 h-4"}),"Copy Question"]}),S.jsx("button",{onClick:()=>t(null),className:"flex-1 px-4 py-2.5 bg-gray-50 hover:bg-gray-100 text-gray-700 rounded-xl font-semibold text-sm transition-colors",children:"Close"})]})]})]})})]})},Gw={cache_hit:{icon:"โก",label:"Cache Hit",description:"Answer served from memory",bg:"bg-emerald-50",border:"border-emerald-200",text:"text-emerald-700",dot:"bg-emerald-500",badgeBg:"bg-emerald-100",badgeText:"text-emerald-700"},cache_miss:{icon:"๐",label:"New Request",description:"Sent to AI for fresh answer",bg:"bg-blue-50",border:"border-blue-200",text:"text-blue-700",dot:"bg-blue-500",badgeBg:"bg-blue-100",badgeText:"text-blue-700"},agent_join:{icon:"๐ข",label:"Agent Connected",description:"A new agent joined the network",bg:"bg-indigo-50",border:"border-indigo-200",text:"text-indigo-700",dot:"bg-indigo-500",badgeBg:"bg-indigo-100",badgeText:"text-indigo-700"},agent_leave:{icon:"๐ด",label:"Agent Disconnected",description:"An agent left the network",bg:"bg-amber-50",border:"border-amber-200",text:"text-amber-700",dot:"bg-amber-400",badgeBg:"bg-amber-100",badgeText:"text-amber-700"},error:{icon:"โ ๏ธ",label:"Error",description:"Something went wrong",bg:"bg-red-50",border:"border-red-200",text:"text-red-700",dot:"bg-red-500",badgeBg:"bg-red-100",badgeText:"text-red-700"},default:{icon:"โ",label:"Event",description:"System event",bg:"bg-gray-50",border:"border-gray-200",text:"text-gray-700",dot:"bg-gray-400",badgeBg:"bg-gray-100",badgeText:"text-gray-600"}},Yee=[{value:"all",label:"All Events",emoji:"๐"},{value:"cache_hit",label:"Cache Hits",emoji:"โก"},{value:"cache_miss",label:"New Requests",emoji:"๐"},{value:"agent_join",label:"Connections",emoji:"๐ข"},{value:"agent_leave",label:"Disconnections",emoji:"๐ด"},{value:"error",label:"Errors",emoji:"โ ๏ธ"}],Qee=()=>{const e=Ie(h=>h.events),[t,r]=$.useState("all"),[n,i]=$.useState(1),o=15,a=$.useMemo(()=>t==="all"?e:e.filter(h=>h.type===t),[e,t]),s=Math.ceil(a.length/o),l=$.useMemo(()=>{const h=(n-1)*o;return a.slice(h,h+o)},[a,n]),u=()=>i(h=>Math.max(1,h-1)),f=()=>i(h=>Math.min(s,h+1)),c=h=>new Date(h).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),d=e.filter(h=>h.type==="cache_hit").length,p=e.filter(h=>h.type==="cache_miss").length,m=e.filter(h=>h.type==="error").length;return S.jsxs("div",{className:"flex flex-col h-full bg-white rounded-2xl overflow-hidden",children:[S.jsxs("div",{className:"px-4 py-3 border-b border-gray-100 bg-gradient-to-b from-gray-50 to-white flex-shrink-0",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[S.jsx("div",{className:"w-6 h-6 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-lg flex items-center justify-center shadow-sm flex-shrink-0",children:S.jsx(bh,{className:"w-3.5 h-3.5 text-white"})}),S.jsx("h2",{className:"text-xs font-bold text-gray-900",children:"Live Activity Feed"}),S.jsx("span",{className:"ml-auto text-xs font-bold px-2 py-0.5 bg-blue-100 text-blue-700 rounded-full",children:a.length})]}),S.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[e.length>0&&S.jsxs(S.Fragment,{children:[S.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-bold px-2 py-0.5 rounded-full bg-emerald-50 text-emerald-700 border border-emerald-100",children:["โก ",d]}),S.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-bold px-2 py-0.5 rounded-full bg-blue-50 text-blue-700 border border-blue-100",children:["๐ ",p]}),m>0&&S.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-bold px-2 py-0.5 rounded-full bg-red-50 text-red-700 border border-red-100",children:["โ ๏ธ ",m]}),S.jsx("span",{className:"w-px h-3 bg-gray-200 mx-0.5 flex-shrink-0"})]}),Yee.map(h=>{const g=h.value==="all"?e.length:e.filter(v=>v.type===h.value).length;return h.value!=="all"&&g===0?null:S.jsxs("button",{onClick:()=>{r(h.value),i(1)},className:`inline-flex items-center gap-1 text-xs font-semibold px-2 py-0.5 rounded-full border transition-all duration-150 ${t===h.value?"bg-indigo-600 text-white border-indigo-600 shadow-sm":"bg-white text-gray-600 border-gray-200 hover:border-indigo-300 hover:bg-indigo-50 hover:text-indigo-600"}`,children:[h.emoji," ",h.label,g>0&&S.jsx("span",{className:`ml-0.5 text-xs ${t===h.value?"text-indigo-200":"text-gray-400"}`,children:g})]},h.value)})]})]}),S.jsx("div",{className:"flex-1 overflow-y-auto",children:l.length===0?S.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-6 text-center py-12",children:[S.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-xl flex items-center justify-center mb-3",children:S.jsx(bh,{className:"w-6 h-6 text-gray-400"})}),S.jsx("p",{className:"text-gray-600 font-semibold text-sm",children:e.length===0?"No activity yet":"No events match this filter"}),S.jsx("p",{className:"text-gray-400 text-xs mt-1 max-w-[180px]",children:e.length===0?"Events will appear here as agents process requests.":"Try selecting a different filter above."})]}):S.jsx("div",{className:"divide-y divide-gray-50",children:l.map(h=>{const g=Gw[h.type]||Gw.default;return S.jsx("div",{className:"px-4 py-3 hover:bg-gray-50/80 transition-colors duration-100",children:S.jsxs("div",{className:"flex items-start gap-3",children:[S.jsx("div",{className:`flex-shrink-0 w-7 h-7 flex items-center justify-center rounded-lg text-sm ${g.bg} border ${g.border}`,children:g.icon}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsxs("div",{className:"flex items-center justify-between gap-2",children:[S.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[S.jsx("span",{className:`text-xs font-bold ${g.text}`,children:g.label}),h.latency&&S.jsxs("span",{className:"text-xs text-gray-400 font-mono",children:[h.latency,"ms"]})]}),S.jsx("span",{className:"text-xs text-gray-400 flex-shrink-0 tabular-nums",children:c(h.timestamp)})]}),S.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:g.description}),(h.tokensSaved||h.costSaved)&&S.jsxs("div",{className:"flex gap-1.5 mt-1.5",children:[h.tokensSaved&&S.jsxs("span",{className:"text-xs bg-violet-50 text-violet-600 px-1.5 py-0.5 rounded font-medium border border-violet-100",children:[h.tokensSaved," tokens saved"]}),h.costSaved&&S.jsxs("span",{className:"text-xs bg-emerald-50 text-emerald-600 px-1.5 py-0.5 rounded font-medium border border-emerald-100",children:["$",h.costSaved.toFixed(3)," saved"]})]}),h.agentId&&S.jsxs("p",{className:"text-xs text-gray-400 mt-0.5 font-mono",children:["Agent: ",h.agentId.substring(0,12),"โฆ"]})]})]})},h.id)})})}),s>1&&S.jsxs("div",{className:"px-4 py-3 border-t border-gray-100 bg-gray-50 flex items-center justify-between flex-shrink-0",children:[S.jsx("button",{onClick:u,disabled:n===1,className:"p-1.5 hover:bg-white disabled:opacity-40 disabled:cursor-not-allowed rounded-lg border border-gray-200 transition",children:S.jsx(q$,{className:"w-4 h-4 text-gray-600"})}),S.jsxs("span",{className:"text-xs text-gray-500 font-medium",children:["Page ",n," of ",s]}),S.jsx("button",{onClick:f,disabled:n===s,className:"p-1.5 hover:bg-white disabled:opacity-40 disabled:cursor-not-allowed rounded-lg border border-gray-200 transition",children:S.jsx(hO,{className:"w-4 h-4 text-gray-600"})})]})]})},Bi=({label:e,value:t,valueClass:r="text-amber-400"})=>S.jsxs("div",{className:"flex items-center justify-between py-1.5 border-b border-gray-700/50 last:border-0",children:[S.jsx("span",{className:"text-xs text-gray-400",children:e}),S.jsx("span",{className:`text-xs font-bold font-mono ${r}`,children:t})]}),Zee=()=>{var h,g,v;const[e,t]=$.useState(!1),[r,n]=$.useState(!1),[i,o]=$.useState(1),a=Ie(y=>y.isPaused),s=Ie(y=>y.events),{pauseDebugger:l,resumeDebugger:u}=um({enableSocket:!1}),f={metrics:Ie(y=>y.metrics),connectionStatus:Ie(y=>y.connectionStatus),agents:Ie(y=>y.agents),eventCount:s.length},c=async()=>{try{await l(),Pe.success("System paused โ no new requests will be processed")}catch{Pe.error("Failed to pause")}},d=async()=>{try{await u(),Pe.success("System resumed")}catch{Pe.error("Failed to resume")}},p=()=>{navigator.clipboard.writeText(JSON.stringify(f,null,2)),Pe.success("State snapshot copied to clipboard")},m=r?"fixed inset-0 z-50 rounded-none":e?"h-72":"h-auto";return S.jsxs("div",{className:`bg-gray-950 text-gray-100 border-t border-gray-800 flex flex-col ${m} transition-all duration-300`,children:[S.jsxs("div",{className:"px-5 py-2.5 border-b border-gray-800/80 flex items-center justify-between bg-gray-900/60 backdrop-blur-sm flex-shrink-0",children:[S.jsxs("button",{onClick:()=>t(!e),className:"flex items-center gap-2.5 hover:text-indigo-300 transition-colors flex-1 group",children:[e?S.jsx(K$,{className:"w-4 h-4 text-gray-500 group-hover:text-indigo-400"}):S.jsx(G$,{className:"w-4 h-4 text-gray-500 group-hover:text-indigo-400"}),S.jsx(cT,{className:"w-3.5 h-3.5 text-gray-500"}),S.jsx("span",{className:"text-xs font-bold text-gray-400 group-hover:text-indigo-300 tracking-wide",children:"Developer Tools"}),S.jsx("span",{className:"text-xs text-gray-600",children:"ยท Time-Travel Debugger"}),S.jsx("span",{className:`ml-2 text-xs px-2.5 py-0.5 rounded-full font-bold border ${a?"bg-amber-500/20 text-amber-300 border-amber-500/40":"bg-emerald-500/20 text-emerald-300 border-emerald-500/40"}`,children:a?"โธ PAUSED":"โถ RUNNING"})]}),S.jsx("div",{className:"flex items-center gap-1",children:S.jsx("button",{onClick:()=>n(!r),className:"p-1.5 hover:bg-gray-800 rounded-lg transition text-gray-500 hover:text-gray-200",title:r?"Minimize panel":"Expand panel",children:r?S.jsx(tT,{className:"w-3.5 h-3.5"}):S.jsx(eT,{className:"w-3.5 h-3.5"})})})]}),e&&S.jsx("div",{className:"flex-1 overflow-y-auto",children:S.jsxs("div",{className:"grid grid-cols-3 gap-3 p-4",children:[S.jsxs("div",{className:"bg-gray-900 rounded-xl p-4 border border-gray-800",children:[S.jsxs("h3",{className:"text-xs font-bold uppercase text-gray-500 tracking-wider mb-3 flex items-center gap-1.5",children:[S.jsx(bh,{className:"w-3 h-3"}),"Playback Control"]}),S.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[S.jsxs("button",{onClick:a?d:c,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold transition-all ${a?"bg-emerald-600 hover:bg-emerald-500 text-white":"bg-amber-600 hover:bg-amber-500 text-white"}`,title:a?"Resume event processing":"Pause event processing",children:[a?S.jsx(iT,{className:"w-3.5 h-3.5"}):S.jsx(rT,{className:"w-3.5 h-3.5"}),a?"Resume":"Pause"]}),S.jsx("button",{onClick:()=>Pe.success("Rewound to previous event"),className:"p-1.5 rounded-lg bg-gray-800 hover:bg-gray-700 transition text-gray-300",title:"Step backward one event",children:S.jsx(aT,{className:"w-3.5 h-3.5"})}),S.jsxs("select",{value:i,onChange:y=>o(Number(y.target.value)),className:"ml-auto text-xs bg-gray-800 border border-gray-700 rounded-lg px-2 py-1.5 text-gray-300 focus:outline-none focus:ring-1 focus:ring-indigo-500",title:"Playback speed multiplier",children:[S.jsx("option",{value:.5,children:"0.5ร speed"}),S.jsx("option",{value:1,children:"1ร speed"}),S.jsx("option",{value:2,children:"2ร speed"}),S.jsx("option",{value:5,children:"5ร speed"})]})]}),S.jsx("p",{className:"text-xs text-gray-500 leading-relaxed",children:a?"โธ Processing is paused. No new events will be accepted until you resume.":"โถ System is running normally. Pause to freeze the event stream for inspection."})]}),S.jsxs("div",{className:"bg-gray-900 rounded-xl p-4 border border-gray-800",children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx("h3",{className:"text-xs font-bold uppercase text-gray-500 tracking-wider",children:"Current State"}),S.jsx("button",{onClick:p,className:"p-1.5 hover:bg-gray-800 rounded-lg transition text-gray-500 hover:text-gray-200",title:"Copy full state as JSON",children:S.jsx(yO,{className:"w-3.5 h-3.5"})})]}),S.jsxs("div",{className:"space-y-0.5",children:[S.jsx(Bi,{label:"Total Requests",value:((h=f.metrics)==null?void 0:h.totalRequests)??"โ"}),S.jsx(Bi,{label:"Cache Hits",value:((g=f.metrics)==null?void 0:g.cacheHits)??"โ",valueClass:"text-emerald-400"}),S.jsx(Bi,{label:"Hit Rate",value:f.metrics?`${((f.metrics.hitRate||0)*100).toFixed(1)}%`:"โ",valueClass:"text-indigo-400"}),S.jsx(Bi,{label:"Active Agents",value:((v=f.agents)==null?void 0:v.length)??"โ",valueClass:"text-blue-400"}),S.jsx(Bi,{label:"Events Logged",value:f.eventCount,valueClass:"text-gray-300"}),S.jsx(Bi,{label:"Connection",value:f.connectionStatus,valueClass:f.connectionStatus==="connected"?"text-emerald-400":"text-red-400"})]})]}),S.jsxs("div",{className:"bg-gray-900 rounded-xl p-4 border border-gray-800",children:[S.jsx("h3",{className:"text-xs font-bold uppercase text-gray-500 tracking-wider mb-3",children:"Event Timeline Position"}),S.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[S.jsx("button",{className:"px-2.5 py-1.5 text-xs font-bold bg-gray-800 hover:bg-gray-700 rounded-lg transition text-gray-300",children:"โ Prev"}),S.jsx("button",{className:"px-2.5 py-1.5 text-xs font-bold bg-gray-800 hover:bg-gray-700 rounded-lg transition text-gray-300",children:"Next โ"})]}),S.jsx("div",{className:"w-full bg-gray-800 rounded-full h-2 mb-2 overflow-hidden",children:S.jsx("div",{className:"bg-gradient-to-r from-indigo-500 to-violet-500 h-2 rounded-full transition-all duration-300",style:{width:s.length>0?`${Math.min(s.length/100*100,100)}%`:"0%"}})}),S.jsxs("p",{className:"text-xs text-gray-500",children:[s.length," events recorded"]}),S.jsx("p",{className:"text-xs text-gray-600 mt-1 leading-relaxed",children:"Scrub through events to inspect system state at any point in time."})]})]})})]})},Jee=()=>{const{fetchMetrics:e,fetchAgents:t,fetchEvents:r,fetchCacheStats:n}=um(),i=Ie(o=>o.refreshIntervalSeconds);return $.useEffect(()=>{(async()=>{await Promise.all([e(),t(),r(),n()])})();const a=i*1e3,s=setInterval(()=>{e(),t(),r(),n()},a);return()=>{clearInterval(s)}},[e,t,r,n,i]),S.jsxs("div",{className:"h-screen bg-gradient-to-br from-slate-100 via-gray-50 to-indigo-50/40 flex flex-col overflow-hidden",children:[S.jsx(eN,{}),S.jsx("div",{className:"px-5 py-2.5 bg-white/80 backdrop-blur-md border-b border-gray-200/60 shadow-sm flex-shrink-0",children:S.jsx(tN,{})}),S.jsxs("div",{className:"flex-1 overflow-hidden flex gap-3 p-3 min-h-0",children:[S.jsx("div",{className:"w-64 flex-shrink-0 overflow-hidden bg-white rounded-2xl border border-gray-200/80 shadow-sm hover:shadow-md transition-shadow duration-300 min-h-0",children:S.jsx(oN,{})}),S.jsx("div",{className:"flex-1 overflow-y-auto space-y-3 pb-1 pr-0.5 min-h-0",children:S.jsx(qee,{})}),S.jsxs("div",{className:"flex-shrink-0 flex flex-col gap-3 min-h-0",style:{width:"320px"},children:[S.jsx("div",{className:"overflow-hidden bg-white rounded-2xl border border-gray-200/80 shadow-sm hover:shadow-md transition-shadow duration-300 min-h-0",style:{height:"36%"},children:S.jsx(Xee,{})}),S.jsx("div",{className:"flex-1 overflow-hidden bg-white rounded-2xl border border-gray-200/80 shadow-sm hover:shadow-md transition-shadow duration-300 min-h-0",children:S.jsx(Qee,{})})]})]}),S.jsx(Zee,{}),S.jsx(F$,{position:"top-right",toastOptions:{style:{background:"#1e293b",color:"#f1f5f9",borderRadius:"12px",border:"1px solid rgba(255,255,255,0.08)",fontSize:"13px",fontWeight:"600"},success:{iconTheme:{primary:"#10b981",secondary:"#fff"}},error:{iconTheme:{primary:"#ef4444",secondary:"#fff"}}}})]})};class ete extends P.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("Dashboard Error:",t,r)}render(){var t,r;return this.state.hasError?S.jsxs("div",{style:{width:"100vw",height:"100vh",background:"#0a0a0a",color:"white",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",fontFamily:"monospace",padding:"40px"},children:[S.jsx("h1",{style:{fontSize:"32px",marginBottom:"20px",color:"#ef4444"},children:"โ ๏ธ Dashboard Error"}),S.jsxs("pre",{style:{background:"#1a1a1a",padding:"20px",borderRadius:"8px",maxWidth:"800px",overflow:"auto",fontSize:"14px",color:"#888"},children:[(t=this.state.error)==null?void 0:t.toString(),`
|
|
476
|
-
|
|
477
|
-
`,(r=this.state.error)==null?void 0:r.stack]})]}):this.props.children}}Op.createRoot(document.getElementById("root")).render(S.jsx(P.StrictMode,{children:S.jsx(ete,{children:S.jsx(Jee,{})})}));
|
|
478
|
-
//# sourceMappingURL=index-zTlIPJOp.js.map
|