@agentgazer/cli 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +726 -403
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent.d.ts +2 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/agent.js +469 -0
- package/dist/commands/agent.js.map +1 -0
- package/dist/commands/agents.d.ts +2 -0
- package/dist/commands/agents.d.ts.map +1 -0
- package/dist/commands/agents.js +70 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/events.d.ts +21 -0
- package/dist/commands/events.d.ts.map +1 -0
- package/dist/commands/events.js +247 -0
- package/dist/commands/events.js.map +1 -0
- package/dist/commands/overview.d.ts +2 -0
- package/dist/commands/overview.d.ts.map +1 -0
- package/dist/commands/overview.js +8 -0
- package/dist/commands/overview.js.map +1 -0
- package/dist/commands/provider.d.ts +2 -0
- package/dist/commands/provider.d.ts.map +1 -0
- package/dist/commands/provider.js +210 -0
- package/dist/commands/provider.js.map +1 -0
- package/dist/commands/providers.d.ts +2 -0
- package/dist/commands/providers.d.ts.map +1 -0
- package/dist/commands/providers.js +77 -0
- package/dist/commands/providers.js.map +1 -0
- package/dist/config.d.ts +46 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +97 -60
- package/dist/config.js.map +1 -1
- package/dist/dashboard/assets/index-5AtWzXiJ.js +143 -0
- package/dist/dashboard/assets/index-B7NvhJW9.js +143 -0
- package/dist/dashboard/assets/index-B9izZ4lr.js +139 -0
- package/dist/dashboard/assets/index-BADwu2fU.js +143 -0
- package/dist/dashboard/assets/index-BBonREkg.js +143 -0
- package/dist/dashboard/assets/index-BGdw1Ss1.js +139 -0
- package/dist/dashboard/assets/index-BLIagyHw.css +1 -0
- package/dist/dashboard/assets/index-BN2gLOCd.js +143 -0
- package/dist/dashboard/assets/index-BOcemxE3.js +143 -0
- package/dist/dashboard/assets/index-BYYSUJ-G.js +143 -0
- package/dist/dashboard/assets/index-BhGhcADW.js +143 -0
- package/dist/dashboard/assets/index-Bjr8f_u_.js +143 -0
- package/dist/dashboard/assets/index-BsaxUL45.js +143 -0
- package/dist/dashboard/assets/index-C-DguelG.css +1 -0
- package/dist/dashboard/assets/index-C-QgKsob.js +143 -0
- package/dist/dashboard/assets/index-C6t4YWSY.js +143 -0
- package/dist/dashboard/assets/index-C9EQrGpe.js +143 -0
- package/dist/dashboard/assets/index-CB6k7nz0.js +143 -0
- package/dist/dashboard/assets/index-CBCLOBvd.js +139 -0
- package/dist/dashboard/assets/index-CGwUmIVh.js +139 -0
- package/dist/dashboard/assets/index-CLMyGFxA.js +145 -0
- package/dist/dashboard/assets/index-CYnfgO3k.js +143 -0
- package/dist/dashboard/assets/index-CiGGhaUw.js +143 -0
- package/dist/dashboard/assets/index-Cj3GjdoQ.js +143 -0
- package/dist/dashboard/assets/index-CxEl0O9p.js +143 -0
- package/dist/dashboard/assets/index-D2mLKlRw.css +1 -0
- package/dist/dashboard/assets/index-D5AUmtdo.js +139 -0
- package/dist/dashboard/assets/index-DACbampq.css +1 -0
- package/dist/dashboard/assets/index-DB0fFjgr.js +139 -0
- package/dist/dashboard/assets/index-DI-JqWdh.css +1 -0
- package/dist/dashboard/assets/index-DRcLEFcl.js +143 -0
- package/dist/dashboard/assets/index-DaUEJqLn.css +1 -0
- package/dist/dashboard/assets/index-Db5ik9Wo.js +143 -0
- package/dist/dashboard/assets/index-DfV-2ewH.css +1 -0
- package/dist/dashboard/assets/index-DgEq2MBB.css +1 -0
- package/dist/dashboard/assets/index-DhmVjP8v.js +143 -0
- package/dist/dashboard/assets/index-Dipd1pd3.js +143 -0
- package/dist/dashboard/assets/index-DirRSEOl.js +143 -0
- package/dist/dashboard/assets/index-Dr9wOl47.js +143 -0
- package/dist/dashboard/assets/index-ee-BCW5i.js +143 -0
- package/dist/dashboard/assets/index-g4KzDTwu.js +139 -0
- package/dist/dashboard/assets/index-odup_N3G.css +1 -0
- package/dist/dashboard/assets/index-wHHHG0bR.css +1 -0
- package/dist/dashboard/assets/index-wNn2zMSu.js +143 -0
- package/dist/dashboard/assets/index-wvU3UdVf.js +143 -0
- package/dist/dashboard/assets/index-yHwKni1U.css +1 -0
- package/dist/dashboard/assets/index-z-YzEeVY.js +143 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/index.js +1 -11
- package/dist/index.js.map +1 -1
- package/dist/secret-store.js +27 -69
- package/dist/secret-store.js.map +1 -1
- package/dist/tui/AgentTable.d.ts +15 -0
- package/dist/tui/AgentTable.d.ts.map +1 -0
- package/dist/tui/AgentTable.js +35 -0
- package/dist/tui/AgentTable.js.map +1 -0
- package/dist/tui/EventLog.d.ts +15 -0
- package/dist/tui/EventLog.d.ts.map +1 -0
- package/dist/tui/EventLog.js +15 -0
- package/dist/tui/EventLog.js.map +1 -0
- package/dist/tui/HelpOverlay.d.ts +7 -0
- package/dist/tui/HelpOverlay.d.ts.map +1 -0
- package/dist/tui/HelpOverlay.js +11 -0
- package/dist/tui/HelpOverlay.js.map +1 -0
- package/dist/tui/Overview.d.ts +7 -0
- package/dist/tui/Overview.d.ts.map +1 -0
- package/dist/tui/Overview.js +69 -0
- package/dist/tui/Overview.js.map +1 -0
- package/dist/tui/StatusBar.d.ts +11 -0
- package/dist/tui/StatusBar.d.ts.map +1 -0
- package/dist/tui/StatusBar.js +27 -0
- package/dist/tui/StatusBar.js.map +1 -0
- package/dist/utils/api.d.ts +10 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/api.js +114 -0
- package/dist/utils/api.js.map +1 -0
- package/dist/utils/format.d.ts +7 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +56 -0
- package/dist/utils/format.js.map +1 -0
- package/dist/utils/prompt.d.ts +4 -0
- package/dist/utils/prompt.d.ts.map +1 -0
- package/dist/utils/prompt.js +35 -0
- package/dist/utils/prompt.js.map +1 -0
- package/package.json +13 -6
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var Nc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fp={exports:{}},Jl={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Iw;function p5(){if(Iw)return Jl;Iw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,l){var s=null;if(l!==void 0&&(s=""+l),o.key!==void 0&&(s=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:l}}return Jl.Fragment=t,Jl.jsx=n,Jl.jsxs=n,Jl}var Hw;function m5(){return Hw||(Hw=1,Fp.exports=p5()),Fp.exports}var g=m5(),Wp={exports:{}},Oe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Gw;function v5(){if(Gw)return Oe;Gw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),b=Symbol.iterator;function S(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||L["@@iterator"],typeof L=="function"?L:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,x={};function j(L,z,te){this.props=L,this.context=z,this.refs=x,this.updater=te||w}j.prototype.isReactComponent={},j.prototype.setState=function(L,z){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,z,"setState")},j.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function E(){}E.prototype=j.prototype;function T(L,z,te){this.props=L,this.context=z,this.refs=x,this.updater=te||w}var N=T.prototype=new E;N.constructor=T,_(N,j.prototype),N.isPureReactComponent=!0;var A=Array.isArray;function C(){}var M={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function $(L,z,te){var ce=te.ref;return{$$typeof:e,type:L,key:z,ref:ce!==void 0?ce:null,props:te}}function B(L,z){return $(L.type,z,L.props)}function I(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function q(L){var z={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(te){return z[te]})}var Y=/\/+/g;function K(L,z){return typeof L=="object"&&L!==null&&L.key!=null?q(""+L.key):z.toString(36)}function W(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(C,C):(L.status="pending",L.then(function(z){L.status==="pending"&&(L.status="fulfilled",L.value=z)},function(z){L.status==="pending"&&(L.status="rejected",L.reason=z)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function k(L,z,te,ce,he){var ge=typeof L;(ge==="undefined"||ge==="boolean")&&(L=null);var Me=!1;if(L===null)Me=!0;else switch(ge){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(L.$$typeof){case e:case t:Me=!0;break;case v:return Me=L._init,k(Me(L._payload),z,te,ce,he)}}if(Me)return he=he(L),Me=ce===""?"."+K(L,0):ce,A(he)?(te="",Me!=null&&(te=Me.replace(Y,"$&/")+"/"),k(he,z,te,"",function(Se){return Se})):he!=null&&(I(he)&&(he=B(he,te+(he.key==null||L&&L.key===he.key?"":(""+he.key).replace(Y,"$&/")+"/")+Me)),z.push(he)),1;Me=0;var Ie=ce===""?".":ce+":";if(A(L))for(var se=0;se<L.length;se++)ce=L[se],ge=Ie+K(ce,se),Me+=k(ce,z,te,ge,he);else if(se=S(L),typeof se=="function")for(L=se.call(L),se=0;!(ce=L.next()).done;)ce=ce.value,ge=Ie+K(ce,se++),Me+=k(ce,z,te,ge,he);else if(ge==="object"){if(typeof L.then=="function")return k(W(L),z,te,ce,he);throw z=String(L),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return Me}function X(L,z,te){if(L==null)return L;var ce=[],he=0;return k(L,ce,"","",function(ge){return z.call(te,ge,he++)}),ce}function F(L){if(L._status===-1){var z=L._result;z=z(),z.then(function(te){(L._status===0||L._status===-1)&&(L._status=1,L._result=te)},function(te){(L._status===0||L._status===-1)&&(L._status=2,L._result=te)}),L._status===-1&&(L._status=0,L._result=z)}if(L._status===1)return L._result.default;throw L._result}var oe=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},ue={map:X,forEach:function(L,z,te){X(L,function(){z.apply(this,arguments)},te)},count:function(L){var z=0;return X(L,function(){z++}),z},toArray:function(L){return X(L,function(z){return z})||[]},only:function(L){if(!I(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Oe.Activity=m,Oe.Children=ue,Oe.Component=j,Oe.Fragment=n,Oe.Profiler=o,Oe.PureComponent=T,Oe.StrictMode=r,Oe.Suspense=d,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(L){return M.H.useMemoCache(L)}},Oe.cache=function(L){return function(){return L.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(L,z,te){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ce=_({},L.props),he=L.key;if(z!=null)for(ge in z.key!==void 0&&(he=""+z.key),z)!D.call(z,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&z.ref===void 0||(ce[ge]=z[ge]);var ge=arguments.length-2;if(ge===1)ce.children=te;else if(1<ge){for(var Me=Array(ge),Ie=0;Ie<ge;Ie++)Me[Ie]=arguments[Ie+2];ce.children=Me}return $(L.type,he,ce)},Oe.createContext=function(L){return L={$$typeof:s,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:l,_context:L},L},Oe.createElement=function(L,z,te){var ce,he={},ge=null;if(z!=null)for(ce in z.key!==void 0&&(ge=""+z.key),z)D.call(z,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(he[ce]=z[ce]);var Me=arguments.length-2;if(Me===1)he.children=te;else if(1<Me){for(var Ie=Array(Me),se=0;se<Me;se++)Ie[se]=arguments[se+2];he.children=Ie}if(L&&L.defaultProps)for(ce in Me=L.defaultProps,Me)he[ce]===void 0&&(he[ce]=Me[ce]);return $(L,ge,he)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(L){return{$$typeof:f,render:L}},Oe.isValidElement=I,Oe.lazy=function(L){return{$$typeof:v,_payload:{_status:-1,_result:L},_init:F}},Oe.memo=function(L,z){return{$$typeof:h,type:L,compare:z===void 0?null:z}},Oe.startTransition=function(L){var z=M.T,te={};M.T=te;try{var ce=L(),he=M.S;he!==null&&he(te,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(C,oe)}catch(ge){oe(ge)}finally{z!==null&&te.types!==null&&(z.types=te.types),M.T=z}},Oe.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Oe.use=function(L){return M.H.use(L)},Oe.useActionState=function(L,z,te){return M.H.useActionState(L,z,te)},Oe.useCallback=function(L,z){return M.H.useCallback(L,z)},Oe.useContext=function(L){return M.H.useContext(L)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(L,z){return M.H.useDeferredValue(L,z)},Oe.useEffect=function(L,z){return M.H.useEffect(L,z)},Oe.useEffectEvent=function(L){return M.H.useEffectEvent(L)},Oe.useId=function(){return M.H.useId()},Oe.useImperativeHandle=function(L,z,te){return M.H.useImperativeHandle(L,z,te)},Oe.useInsertionEffect=function(L,z){return M.H.useInsertionEffect(L,z)},Oe.useLayoutEffect=function(L,z){return M.H.useLayoutEffect(L,z)},Oe.useMemo=function(L,z){return M.H.useMemo(L,z)},Oe.useOptimistic=function(L,z){return M.H.useOptimistic(L,z)},Oe.useReducer=function(L,z,te){return M.H.useReducer(L,z,te)},Oe.useRef=function(L){return M.H.useRef(L)},Oe.useState=function(L){return M.H.useState(L)},Oe.useSyncExternalStore=function(L,z,te){return M.H.useSyncExternalStore(L,z,te)},Oe.useTransition=function(){return M.H.useTransition()},Oe.version="19.2.4",Oe}var Yw;function Db(){return Yw||(Yw=1,Wp.exports=v5()),Wp.exports}var P=Db();const H=Ze(P);var Zp={exports:{}},eu={},Qp={exports:{}},Jp={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and 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
|
+
*/var Kw;function y5(){return Kw||(Kw=1,(function(e){function t(k,X){var F=k.length;k.push(X);e:for(;0<F;){var oe=F-1>>>1,ue=k[oe];if(0<o(ue,X))k[oe]=X,k[F]=ue,F=oe;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var X=k[0],F=k.pop();if(F!==X){k[0]=F;e:for(var oe=0,ue=k.length,L=ue>>>1;oe<L;){var z=2*(oe+1)-1,te=k[z],ce=z+1,he=k[ce];if(0>o(te,F))ce<ue&&0>o(he,te)?(k[oe]=he,k[ce]=F,oe=ce):(k[oe]=te,k[z]=F,oe=z);else if(ce<ue&&0>o(he,F))k[oe]=he,k[ce]=F,oe=ce;else break e}}return X}function o(k,X){var F=k.sortIndex-X.sortIndex;return F!==0?F:k.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,f=s.now();e.unstable_now=function(){return s.now()-f}}var d=[],h=[],v=1,m=null,b=3,S=!1,w=!1,_=!1,x=!1,j=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function N(k){for(var X=n(h);X!==null;){if(X.callback===null)r(h);else if(X.startTime<=k)r(h),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(h)}}function A(k){if(_=!1,N(k),!w)if(n(d)!==null)w=!0,C||(C=!0,q());else{var X=n(h);X!==null&&W(A,X.startTime-k)}}var C=!1,M=-1,D=5,$=-1;function B(){return x?!0:!(e.unstable_now()-$<D)}function I(){if(x=!1,C){var k=e.unstable_now();$=k;var X=!0;try{e:{w=!1,_&&(_=!1,E(M),M=-1),S=!0;var F=b;try{t:{for(N(k),m=n(d);m!==null&&!(m.expirationTime>k&&B());){var oe=m.callback;if(typeof oe=="function"){m.callback=null,b=m.priorityLevel;var ue=oe(m.expirationTime<=k);if(k=e.unstable_now(),typeof ue=="function"){m.callback=ue,N(k),X=!0;break t}m===n(d)&&r(d),N(k)}else r(d);m=n(d)}if(m!==null)X=!0;else{var L=n(h);L!==null&&W(A,L.startTime-k),X=!1}}break e}finally{m=null,b=F,S=!1}X=void 0}}finally{X?q():C=!1}}}var q;if(typeof T=="function")q=function(){T(I)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,K=Y.port2;Y.port1.onmessage=I,q=function(){K.postMessage(null)}}else q=function(){j(I,0)};function W(k,X){M=j(function(){k(e.unstable_now())},X)}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(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(k){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var F=b;b=X;try{return k()}finally{b=F}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(k,X){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var F=b;b=k;try{return X()}finally{b=F}},e.unstable_scheduleCallback=function(k,X,F){var oe=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?oe+F:oe):F=oe,k){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=F+ue,k={id:v++,callback:X,priorityLevel:k,startTime:F,expirationTime:ue,sortIndex:-1},F>oe?(k.sortIndex=F,t(h,k),n(d)===null&&k===n(h)&&(_?(E(M),M=-1):_=!0,W(A,F-oe))):(k.sortIndex=ue,t(d,k),w||S||(w=!0,C||(C=!0,q()))),k},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(k){var X=b;return function(){var F=b;b=X;try{return k.apply(this,arguments)}finally{b=F}}}})(Jp)),Jp}var Xw;function g5(){return Xw||(Xw=1,Qp.exports=y5()),Qp.exports}var em={exports:{}},It={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Vw;function b5(){if(Vw)return It;Vw=1;var e=Db();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(d,h,v){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:d,containerInfo:h,implementation:v}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,It.createPortal=function(d,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(d,h,null,v)},It.flushSync=function(d){var h=s.T,v=r.p;try{if(s.T=null,r.p=2,d)return d()}finally{s.T=h,r.p=v,r.d.f()}},It.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(d,h))},It.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},It.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var v=h.as,m=f(v,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?r.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:b,fetchPriority:S}):v==="script"&&r.d.X(d,{crossOrigin:m,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},It.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=f(h.as,h.crossOrigin);r.d.M(d,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(d)},It.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,m=f(v,h.crossOrigin);r.d.L(d,v,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},It.preloadModule=function(d,h){if(typeof d=="string")if(h){var v=f(h.as,h.crossOrigin);r.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(d)},It.requestFormReset=function(d){r.d.r(d)},It.unstable_batchedUpdates=function(d,h){return d(h)},It.useFormState=function(d,h,v){return s.H.useFormState(d,h,v)},It.useFormStatus=function(){return s.H.useHostTransitionStatus()},It.version="19.2.4",It}var Fw;function x5(){if(Fw)return em.exports;Fw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),em.exports=b5(),em.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Ww;function S5(){if(Ww)return eu;Ww=1;var e=g5(),t=Db(),n=x5();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function l(a){var i=a,u=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(u=i.return),a=i.return;while(a)}return i.tag===3?u:null}function s(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function f(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function d(a){if(l(a)!==a)throw Error(r(188))}function h(a){var i=a.alternate;if(!i){if(i=l(a),i===null)throw Error(r(188));return i!==a?null:a}for(var u=a,c=i;;){var p=u.return;if(p===null)break;var y=p.alternate;if(y===null){if(c=p.return,c!==null){u=c;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===u)return d(p),a;if(y===c)return d(p),i;y=y.sibling}throw Error(r(188))}if(u.return!==c.return)u=p,c=y;else{for(var O=!1,R=p.child;R;){if(R===u){O=!0,u=p,c=y;break}if(R===c){O=!0,c=p,u=y;break}R=R.sibling}if(!O){for(R=y.child;R;){if(R===u){O=!0,u=y,c=p;break}if(R===c){O=!0,c=y,u=p;break}R=R.sibling}if(!O)throw Error(r(189))}}if(u.alternate!==c)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:i}function v(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=v(a),i!==null)return i;a=a.sibling}return null}var m=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function q(a){return a===null||typeof a!="object"?null:(a=I&&a[I]||a["@@iterator"],typeof a=="function"?a:null)}var Y=Symbol.for("react.client.reference");function K(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Y?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case _:return"Fragment";case j:return"Profiler";case x:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList";case $:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case w:return"Portal";case T:return a.displayName||"Context";case E:return(a._context.displayName||"Context")+".Consumer";case N:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case M:return i=a.displayName||null,i!==null?i:K(a.type)||"Memo";case D:i=a._payload,a=a._init;try{return K(a(i))}catch{}}return null}var W=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},oe=[],ue=-1;function L(a){return{current:a}}function z(a){0>ue||(a.current=oe[ue],oe[ue]=null,ue--)}function te(a,i){ue++,oe[ue]=a.current,a.current=i}var ce=L(null),he=L(null),ge=L(null),Me=L(null);function Ie(a,i){switch(te(ge,i),te(he,a),te(ce,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?fw(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=fw(i),a=dw(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}z(ce),te(ce,a)}function se(){z(ce),z(he),z(ge)}function Se(a){a.memoizedState!==null&&te(Me,a);var i=ce.current,u=dw(i,a.type);i!==u&&(te(he,a),te(ce,u))}function we(a){he.current===a&&(z(ce),z(he)),Me.current===a&&(z(Me),Fl._currentValue=F)}var le,rt;function Ee(a){if(le===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);le=i&&i[1]||"",rt=-1<u.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+le+a+rt}var ct=!1;function ft(a,i){if(!a||ct)return"";ct=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(ee){var J=ee}Reflect.construct(a,[],ie)}else{try{ie.call()}catch(ee){J=ee}a.call(ie.prototype)}}else{try{throw Error()}catch(ee){J=ee}(ie=a())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),O=y[0],R=y[1];if(O&&R){var U=O.split(`
|
|
44
|
+
`),Q=R.split(`
|
|
45
|
+
`);for(p=c=0;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;for(;p<Q.length&&!Q[p].includes("DetermineComponentFrameRoot");)p++;if(c===U.length||p===Q.length)for(c=U.length-1,p=Q.length-1;1<=c&&0<=p&&U[c]!==Q[p];)p--;for(;1<=c&&0<=p;c--,p--)if(U[c]!==Q[p]){if(c!==1||p!==1)do if(c--,p--,0>p||U[c]!==Q[p]){var ne=`
|
|
46
|
+
`+U[c].replace(" at new "," at ");return a.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",a.displayName)),ne}while(1<=c&&0<=p);break}}}finally{ct=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?Ee(u):""}function zt(a,i){switch(a.tag){case 26:case 27:case 5:return Ee(a.type);case 16:return Ee("Lazy");case 13:return a.child!==i&&i!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return ft(a.type,!1);case 11:return ft(a.type.render,!1);case 1:return ft(a.type,!0);case 31:return Ee("Activity");default:return""}}function zn(a){try{var i="",u=null;do i+=zt(a,u),u=a,a=a.return;while(a);return i}catch(c){return`
|
|
47
|
+
Error generating stack: `+c.message+`
|
|
48
|
+
`+c.stack}}var Zn=Object.prototype.hasOwnProperty,Wr=e.unstable_scheduleCallback,Un=e.unstable_cancelCallback,dr=e.unstable_shouldYield,ol=e.unstable_requestPaint,Ut=e.unstable_now,fs=e.unstable_getCurrentPriorityLevel,Hx=e.unstable_ImmediatePriority,Gx=e.unstable_UserBlockingPriority,ds=e.unstable_NormalPriority,FR=e.unstable_LowPriority,Yx=e.unstable_IdlePriority,WR=e.log,ZR=e.unstable_setDisableYieldValue,ll=null,an=null;function Zr(a){if(typeof WR=="function"&&ZR(a),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(ll,a)}catch{}}var on=Math.clz32?Math.clz32:eP,QR=Math.log,JR=Math.LN2;function eP(a){return a>>>=0,a===0?32:31-(QR(a)/JR|0)|0}var hs=256,ps=262144,ms=4194304;function ka(a){var i=a&42;if(i!==0)return i;switch(a&-a){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function vs(a,i,u){var c=a.pendingLanes;if(c===0)return 0;var p=0,y=a.suspendedLanes,O=a.pingedLanes;a=a.warmLanes;var R=c&134217727;return R!==0?(c=R&~y,c!==0?p=ka(c):(O&=R,O!==0?p=ka(O):u||(u=R&~a,u!==0&&(p=ka(u))))):(R=c&~y,R!==0?p=ka(R):O!==0?p=ka(O):u||(u=c&~a,u!==0&&(p=ka(u)))),p===0?0:i!==0&&i!==p&&(i&y)===0&&(y=p&-p,u=i&-i,y>=u||y===32&&(u&4194048)!==0)?i:p}function ul(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function tP(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kx(){var a=ms;return ms<<=1,(ms&62914560)===0&&(ms=4194304),a}function Ld(a){for(var i=[],u=0;31>u;u++)i.push(a);return i}function sl(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function nP(a,i,u,c,p,y){var O=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var R=a.entanglements,U=a.expirationTimes,Q=a.hiddenUpdates;for(u=O&~u;0<u;){var ne=31-on(u),ie=1<<ne;R[ne]=0,U[ne]=-1;var J=Q[ne];if(J!==null)for(Q[ne]=null,ne=0;ne<J.length;ne++){var ee=J[ne];ee!==null&&(ee.lane&=-536870913)}u&=~ie}c!==0&&Xx(a,c,0),y!==0&&p===0&&a.tag!==0&&(a.suspendedLanes|=y&~(O&~i))}function Xx(a,i,u){a.pendingLanes|=i,a.suspendedLanes&=~i;var c=31-on(i);a.entangledLanes|=i,a.entanglements[c]=a.entanglements[c]|1073741824|u&261930}function Vx(a,i){var u=a.entangledLanes|=i;for(a=a.entanglements;u;){var c=31-on(u),p=1<<c;p&i|a[c]&i&&(a[c]|=i),u&=~p}}function Fx(a,i){var u=i&-i;return u=(u&42)!==0?1:qd(u),(u&(a.suspendedLanes|i))!==0?0:u}function qd(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Bd(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Wx(){var a=X.p;return a!==0?a:(a=window.event,a===void 0?32:kw(a.type))}function Zx(a,i){var u=X.p;try{return X.p=a,i()}finally{X.p=u}}var Qr=Math.random().toString(36).slice(2),Dt="__reactFiber$"+Qr,Vt="__reactProps$"+Qr,Oi="__reactContainer$"+Qr,zd="__reactEvents$"+Qr,rP="__reactListeners$"+Qr,aP="__reactHandles$"+Qr,Qx="__reactResources$"+Qr,cl="__reactMarker$"+Qr;function Ud(a){delete a[Dt],delete a[Vt],delete a[zd],delete a[rP],delete a[aP]}function Ai(a){var i=a[Dt];if(i)return i;for(var u=a.parentNode;u;){if(i=u[Oi]||u[Dt]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(a=bw(a);a!==null;){if(u=a[Dt])return u;a=bw(a)}return i}a=u,u=a.parentNode}return null}function ji(a){if(a=a[Dt]||a[Oi]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function fl(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function Ei(a){var i=a[Qx];return i||(i=a[Qx]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Nt(a){a[cl]=!0}var Jx=new Set,e1={};function $a(a,i){Ti(a,i),Ti(a+"Capture",i)}function Ti(a,i){for(e1[a]=i,a=0;a<i.length;a++)Jx.add(i[a])}var iP=RegExp("^[: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]*$"),t1={},n1={};function oP(a){return Zn.call(n1,a)?!0:Zn.call(t1,a)?!1:iP.test(a)?n1[a]=!0:(t1[a]=!0,!1)}function ys(a,i,u){if(oP(i))if(u===null)a.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){a.removeAttribute(i);return}}a.setAttribute(i,""+u)}}function gs(a,i,u){if(u===null)a.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttribute(i,""+u)}}function hr(a,i,u,c){if(c===null)a.removeAttribute(u);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(i,u,""+c)}}function xn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function r1(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function lP(a,i,u){var c=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,y=c.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return p.call(this)},set:function(O){u=""+O,y.call(this,O)}}),Object.defineProperty(a,i,{enumerable:c.enumerable}),{getValue:function(){return u},setValue:function(O){u=""+O},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Id(a){if(!a._valueTracker){var i=r1(a)?"checked":"value";a._valueTracker=lP(a,i,""+a[i])}}function a1(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var u=i.getValue(),c="";return a&&(c=r1(a)?a.checked?"true":"false":a.value),a=c,a!==u?(i.setValue(a),!0):!1}function bs(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var uP=/[\n"\\]/g;function Sn(a){return a.replace(uP,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Hd(a,i,u,c,p,y,O,R){a.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?a.type=O:a.removeAttribute("type"),i!=null?O==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+xn(i)):a.value!==""+xn(i)&&(a.value=""+xn(i)):O!=="submit"&&O!=="reset"||a.removeAttribute("value"),i!=null?Gd(a,O,xn(i)):u!=null?Gd(a,O,xn(u)):c!=null&&a.removeAttribute("value"),p==null&&y!=null&&(a.defaultChecked=!!y),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+xn(R):a.removeAttribute("name")}function i1(a,i,u,c,p,y,O,R){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(a.type=y),i!=null||u!=null){if(!(y!=="submit"&&y!=="reset"||i!=null)){Id(a);return}u=u!=null?""+xn(u):"",i=i!=null?""+xn(i):u,R||i===a.value||(a.value=i),a.defaultValue=i}c=c??p,c=typeof c!="function"&&typeof c!="symbol"&&!!c,a.checked=R?a.checked:!!c,a.defaultChecked=!!c,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(a.name=O),Id(a)}function Gd(a,i,u){i==="number"&&bs(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Ni(a,i,u,c){if(a=a.options,i){i={};for(var p=0;p<u.length;p++)i["$"+u[p]]=!0;for(u=0;u<a.length;u++)p=i.hasOwnProperty("$"+a[u].value),a[u].selected!==p&&(a[u].selected=p),p&&c&&(a[u].defaultSelected=!0)}else{for(u=""+xn(u),i=null,p=0;p<a.length;p++){if(a[p].value===u){a[p].selected=!0,c&&(a[p].defaultSelected=!0);return}i!==null||a[p].disabled||(i=a[p])}i!==null&&(i.selected=!0)}}function o1(a,i,u){if(i!=null&&(i=""+xn(i),i!==a.value&&(a.value=i),u==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=u!=null?""+xn(u):""}function l1(a,i,u,c){if(i==null){if(c!=null){if(u!=null)throw Error(r(92));if(W(c)){if(1<c.length)throw Error(r(93));c=c[0]}u=c}u==null&&(u=""),i=u}u=xn(i),a.defaultValue=u,c=a.textContent,c===u&&c!==""&&c!==null&&(a.value=c),Id(a)}function Ci(a,i){if(i){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=i;return}}a.textContent=i}var sP=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function u1(a,i,u){var c=i.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?c?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":c?a.setProperty(i,u):typeof u!="number"||u===0||sP.has(i)?i==="float"?a.cssFloat=u:a[i]=(""+u).trim():a[i]=u+"px"}function s1(a,i,u){if(i!=null&&typeof i!="object")throw Error(r(62));if(a=a.style,u!=null){for(var c in u)!u.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?a.setProperty(c,""):c==="float"?a.cssFloat="":a[c]="");for(var p in i)c=i[p],i.hasOwnProperty(p)&&u[p]!==c&&u1(a,p,c)}else for(var y in i)i.hasOwnProperty(y)&&u1(a,y,i[y])}function Yd(a){if(a.indexOf("-")===-1)return!1;switch(a){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 cP=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fP=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xs(a){return fP.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function pr(){}var Kd=null;function Xd(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Mi=null,Ri=null;function c1(a){var i=ji(a);if(i&&(a=i.stateNode)){var u=a[Vt]||null;e:switch(a=i.stateNode,i.type){case"input":if(Hd(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),i=u.name,u.type==="radio"&&i!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Sn(""+i)+'"][type="radio"]'),i=0;i<u.length;i++){var c=u[i];if(c!==a&&c.form===a.form){var p=c[Vt]||null;if(!p)throw Error(r(90));Hd(c,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<u.length;i++)c=u[i],c.form===a.form&&a1(c)}break e;case"textarea":o1(a,u.value,u.defaultValue);break e;case"select":i=u.value,i!=null&&Ni(a,!!u.multiple,i,!1)}}}var Vd=!1;function f1(a,i,u){if(Vd)return a(i,u);Vd=!0;try{var c=a(i);return c}finally{if(Vd=!1,(Mi!==null||Ri!==null)&&(lc(),Mi&&(i=Mi,a=Ri,Ri=Mi=null,c1(i),a)))for(i=0;i<a.length;i++)c1(a[i])}}function dl(a,i){var u=a.stateNode;if(u===null)return null;var c=u[Vt]||null;if(c===null)return null;u=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(a=a.type,c=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!c;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,i,typeof u));return u}var mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fd=!1;if(mr)try{var hl={};Object.defineProperty(hl,"passive",{get:function(){Fd=!0}}),window.addEventListener("test",hl,hl),window.removeEventListener("test",hl,hl)}catch{Fd=!1}var Jr=null,Wd=null,Ss=null;function d1(){if(Ss)return Ss;var a,i=Wd,u=i.length,c,p="value"in Jr?Jr.value:Jr.textContent,y=p.length;for(a=0;a<u&&i[a]===p[a];a++);var O=u-a;for(c=1;c<=O&&i[u-c]===p[y-c];c++);return Ss=p.slice(a,1<c?1-c:void 0)}function _s(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function ws(){return!0}function h1(){return!1}function Ft(a){function i(u,c,p,y,O){this._reactName=u,this._targetInst=p,this.type=c,this.nativeEvent=y,this.target=O,this.currentTarget=null;for(var R in a)a.hasOwnProperty(R)&&(u=a[R],this[R]=u?u(y):y[R]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ws:h1,this.isPropagationStopped=h1,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=ws)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=ws)},persist:function(){},isPersistent:ws}),i}var La={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Os=Ft(La),pl=m({},La,{view:0,detail:0}),dP=Ft(pl),Zd,Qd,ml,As=m({},pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eh,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==ml&&(ml&&a.type==="mousemove"?(Zd=a.screenX-ml.screenX,Qd=a.screenY-ml.screenY):Qd=Zd=0,ml=a),Zd)},movementY:function(a){return"movementY"in a?a.movementY:Qd}}),p1=Ft(As),hP=m({},As,{dataTransfer:0}),pP=Ft(hP),mP=m({},pl,{relatedTarget:0}),Jd=Ft(mP),vP=m({},La,{animationName:0,elapsedTime:0,pseudoElement:0}),yP=Ft(vP),gP=m({},La,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),bP=Ft(gP),xP=m({},La,{data:0}),m1=Ft(xP),SP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_P={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"},wP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OP(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=wP[a])?!!i[a]:!1}function eh(){return OP}var AP=m({},pl,{key:function(a){if(a.key){var i=SP[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=_s(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?_P[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eh,charCode:function(a){return a.type==="keypress"?_s(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?_s(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),jP=Ft(AP),EP=m({},As,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),v1=Ft(EP),TP=m({},pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eh}),NP=Ft(TP),CP=m({},La,{propertyName:0,elapsedTime:0,pseudoElement:0}),MP=Ft(CP),RP=m({},As,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),PP=Ft(RP),DP=m({},La,{newState:0,oldState:0}),kP=Ft(DP),$P=[9,13,27,32],th=mr&&"CompositionEvent"in window,vl=null;mr&&"documentMode"in document&&(vl=document.documentMode);var LP=mr&&"TextEvent"in window&&!vl,y1=mr&&(!th||vl&&8<vl&&11>=vl),g1=" ",b1=!1;function x1(a,i){switch(a){case"keyup":return $P.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S1(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Pi=!1;function qP(a,i){switch(a){case"compositionend":return S1(i);case"keypress":return i.which!==32?null:(b1=!0,g1);case"textInput":return a=i.data,a===g1&&b1?null:a;default:return null}}function BP(a,i){if(Pi)return a==="compositionend"||!th&&x1(a,i)?(a=d1(),Ss=Wd=Jr=null,Pi=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return y1&&i.locale!=="ko"?null:i.data;default:return null}}var zP={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 _1(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!zP[a.type]:i==="textarea"}function w1(a,i,u,c){Mi?Ri?Ri.push(c):Ri=[c]:Mi=c,i=pc(i,"onChange"),0<i.length&&(u=new Os("onChange","change",null,u,c),a.push({event:u,listeners:i}))}var yl=null,gl=null;function UP(a){iw(a,0)}function js(a){var i=fl(a);if(a1(i))return a}function O1(a,i){if(a==="change")return i}var A1=!1;if(mr){var nh;if(mr){var rh="oninput"in document;if(!rh){var j1=document.createElement("div");j1.setAttribute("oninput","return;"),rh=typeof j1.oninput=="function"}nh=rh}else nh=!1;A1=nh&&(!document.documentMode||9<document.documentMode)}function E1(){yl&&(yl.detachEvent("onpropertychange",T1),gl=yl=null)}function T1(a){if(a.propertyName==="value"&&js(gl)){var i=[];w1(i,gl,a,Xd(a)),f1(UP,i)}}function IP(a,i,u){a==="focusin"?(E1(),yl=i,gl=u,yl.attachEvent("onpropertychange",T1)):a==="focusout"&&E1()}function HP(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return js(gl)}function GP(a,i){if(a==="click")return js(i)}function YP(a,i){if(a==="input"||a==="change")return js(i)}function KP(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var ln=typeof Object.is=="function"?Object.is:KP;function bl(a,i){if(ln(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var u=Object.keys(a),c=Object.keys(i);if(u.length!==c.length)return!1;for(c=0;c<u.length;c++){var p=u[c];if(!Zn.call(i,p)||!ln(a[p],i[p]))return!1}return!0}function N1(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function C1(a,i){var u=N1(a);a=0;for(var c;u;){if(u.nodeType===3){if(c=a+u.textContent.length,a<=i&&c>=i)return{node:u,offset:i-a};a=c}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=N1(u)}}function M1(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?M1(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function R1(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=bs(a.document);i instanceof a.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)a=i.contentWindow;else break;i=bs(a.document)}return i}function ah(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var XP=mr&&"documentMode"in document&&11>=document.documentMode,Di=null,ih=null,xl=null,oh=!1;function P1(a,i,u){var c=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;oh||Di==null||Di!==bs(c)||(c=Di,"selectionStart"in c&&ah(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),xl&&bl(xl,c)||(xl=c,c=pc(ih,"onSelect"),0<c.length&&(i=new Os("onSelect","select",null,i,u),a.push({event:i,listeners:c}),i.target=Di)))}function qa(a,i){var u={};return u[a.toLowerCase()]=i.toLowerCase(),u["Webkit"+a]="webkit"+i,u["Moz"+a]="moz"+i,u}var ki={animationend:qa("Animation","AnimationEnd"),animationiteration:qa("Animation","AnimationIteration"),animationstart:qa("Animation","AnimationStart"),transitionrun:qa("Transition","TransitionRun"),transitionstart:qa("Transition","TransitionStart"),transitioncancel:qa("Transition","TransitionCancel"),transitionend:qa("Transition","TransitionEnd")},lh={},D1={};mr&&(D1=document.createElement("div").style,"AnimationEvent"in window||(delete ki.animationend.animation,delete ki.animationiteration.animation,delete ki.animationstart.animation),"TransitionEvent"in window||delete ki.transitionend.transition);function Ba(a){if(lh[a])return lh[a];if(!ki[a])return a;var i=ki[a],u;for(u in i)if(i.hasOwnProperty(u)&&u in D1)return lh[a]=i[u];return a}var k1=Ba("animationend"),$1=Ba("animationiteration"),L1=Ba("animationstart"),VP=Ba("transitionrun"),FP=Ba("transitionstart"),WP=Ba("transitioncancel"),q1=Ba("transitionend"),B1=new Map,uh="abort auxClick beforeToggle 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(" ");uh.push("scrollEnd");function In(a,i){B1.set(a,i),$a(i,[a])}var Es=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},_n=[],$i=0,sh=0;function Ts(){for(var a=$i,i=sh=$i=0;i<a;){var u=_n[i];_n[i++]=null;var c=_n[i];_n[i++]=null;var p=_n[i];_n[i++]=null;var y=_n[i];if(_n[i++]=null,c!==null&&p!==null){var O=c.pending;O===null?p.next=p:(p.next=O.next,O.next=p),c.pending=p}y!==0&&z1(u,p,y)}}function Ns(a,i,u,c){_n[$i++]=a,_n[$i++]=i,_n[$i++]=u,_n[$i++]=c,sh|=c,a.lanes|=c,a=a.alternate,a!==null&&(a.lanes|=c)}function ch(a,i,u,c){return Ns(a,i,u,c),Cs(a)}function za(a,i){return Ns(a,null,null,i),Cs(a)}function z1(a,i,u){a.lanes|=u;var c=a.alternate;c!==null&&(c.lanes|=u);for(var p=!1,y=a.return;y!==null;)y.childLanes|=u,c=y.alternate,c!==null&&(c.childLanes|=u),y.tag===22&&(a=y.stateNode,a===null||a._visibility&1||(p=!0)),a=y,y=y.return;return a.tag===3?(y=a.stateNode,p&&i!==null&&(p=31-on(u),a=y.hiddenUpdates,c=a[p],c===null?a[p]=[i]:c.push(i),i.lane=u|536870912),y):null}function Cs(a){if(50<Il)throw Il=0,bp=null,Error(r(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var Li={};function ZP(a,i,u,c){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(a,i,u,c){return new ZP(a,i,u,c)}function fh(a){return a=a.prototype,!(!a||!a.isReactComponent)}function vr(a,i){var u=a.alternate;return u===null?(u=un(a.tag,i,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=i,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,i=a.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function U1(a,i){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,i=u.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a}function Ms(a,i,u,c,p,y){var O=0;if(c=a,typeof a=="function")fh(a)&&(O=1);else if(typeof a=="string")O=n5(a,u,ce.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case $:return a=un(31,u,i,p),a.elementType=$,a.lanes=y,a;case _:return Ua(u.children,p,y,i);case x:O=8,p|=24;break;case j:return a=un(12,u,i,p|2),a.elementType=j,a.lanes=y,a;case A:return a=un(13,u,i,p),a.elementType=A,a.lanes=y,a;case C:return a=un(19,u,i,p),a.elementType=C,a.lanes=y,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case T:O=10;break e;case E:O=9;break e;case N:O=11;break e;case M:O=14;break e;case D:O=16,c=null;break e}O=29,u=Error(r(130,a===null?"null":typeof a,"")),c=null}return i=un(O,u,i,p),i.elementType=a,i.type=c,i.lanes=y,i}function Ua(a,i,u,c){return a=un(7,a,c,i),a.lanes=u,a}function dh(a,i,u){return a=un(6,a,null,i),a.lanes=u,a}function I1(a){var i=un(18,null,null,0);return i.stateNode=a,i}function hh(a,i,u){return i=un(4,a.children!==null?a.children:[],a.key,i),i.lanes=u,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var H1=new WeakMap;function wn(a,i){if(typeof a=="object"&&a!==null){var u=H1.get(a);return u!==void 0?u:(i={value:a,source:i,stack:zn(i)},H1.set(a,i),i)}return{value:a,source:i,stack:zn(i)}}var qi=[],Bi=0,Rs=null,Sl=0,On=[],An=0,ea=null,Qn=1,Jn="";function yr(a,i){qi[Bi++]=Sl,qi[Bi++]=Rs,Rs=a,Sl=i}function G1(a,i,u){On[An++]=Qn,On[An++]=Jn,On[An++]=ea,ea=a;var c=Qn;a=Jn;var p=32-on(c)-1;c&=~(1<<p),u+=1;var y=32-on(i)+p;if(30<y){var O=p-p%5;y=(c&(1<<O)-1).toString(32),c>>=O,p-=O,Qn=1<<32-on(i)+p|u<<p|c,Jn=y+a}else Qn=1<<y|u<<p|c,Jn=a}function ph(a){a.return!==null&&(yr(a,1),G1(a,1,0))}function mh(a){for(;a===Rs;)Rs=qi[--Bi],qi[Bi]=null,Sl=qi[--Bi],qi[Bi]=null;for(;a===ea;)ea=On[--An],On[An]=null,Jn=On[--An],On[An]=null,Qn=On[--An],On[An]=null}function Y1(a,i){On[An++]=Qn,On[An++]=Jn,On[An++]=ea,Qn=i.id,Jn=i.overflow,ea=a}var kt=null,at=null,$e=!1,ta=null,jn=!1,vh=Error(r(519));function na(a){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(wn(i,a)),vh}function K1(a){var i=a.stateNode,u=a.type,c=a.memoizedProps;switch(i[Dt]=a,i[Vt]=c,u){case"dialog":Pe("cancel",i),Pe("close",i);break;case"iframe":case"object":case"embed":Pe("load",i);break;case"video":case"audio":for(u=0;u<Gl.length;u++)Pe(Gl[u],i);break;case"source":Pe("error",i);break;case"img":case"image":case"link":Pe("error",i),Pe("load",i);break;case"details":Pe("toggle",i);break;case"input":Pe("invalid",i),i1(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pe("invalid",i);break;case"textarea":Pe("invalid",i),l1(i,c.value,c.defaultValue,c.children)}u=c.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||i.textContent===""+u||c.suppressHydrationWarning===!0||sw(i.textContent,u)?(c.popover!=null&&(Pe("beforetoggle",i),Pe("toggle",i)),c.onScroll!=null&&Pe("scroll",i),c.onScrollEnd!=null&&Pe("scrollend",i),c.onClick!=null&&(i.onclick=pr),i=!0):i=!1,i||na(a,!0)}function X1(a){for(kt=a.return;kt;)switch(kt.tag){case 5:case 31:case 13:jn=!1;return;case 27:case 3:jn=!0;return;default:kt=kt.return}}function zi(a){if(a!==kt)return!1;if(!$e)return X1(a),$e=!0,!1;var i=a.tag,u;if((u=i!==3&&i!==27)&&((u=i===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Dp(a.type,a.memoizedProps)),u=!u),u&&at&&na(a),X1(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));at=gw(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));at=gw(a)}else i===27?(i=at,va(a.type)?(a=Bp,Bp=null,at=a):at=i):at=kt?Tn(a.stateNode.nextSibling):null;return!0}function Ia(){at=kt=null,$e=!1}function yh(){var a=ta;return a!==null&&(Jt===null?Jt=a:Jt.push.apply(Jt,a),ta=null),a}function _l(a){ta===null?ta=[a]:ta.push(a)}var gh=L(null),Ha=null,gr=null;function ra(a,i,u){te(gh,i._currentValue),i._currentValue=u}function br(a){a._currentValue=gh.current,z(gh)}function bh(a,i,u){for(;a!==null;){var c=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),a===u)break;a=a.return}}function xh(a,i,u,c){var p=a.child;for(p!==null&&(p.return=a);p!==null;){var y=p.dependencies;if(y!==null){var O=p.child;y=y.firstContext;e:for(;y!==null;){var R=y;y=p;for(var U=0;U<i.length;U++)if(R.context===i[U]){y.lanes|=u,R=y.alternate,R!==null&&(R.lanes|=u),bh(y.return,u,a),c||(O=null);break e}y=R.next}}else if(p.tag===18){if(O=p.return,O===null)throw Error(r(341));O.lanes|=u,y=O.alternate,y!==null&&(y.lanes|=u),bh(O,u,a),O=null}else O=p.child;if(O!==null)O.return=p;else for(O=p;O!==null;){if(O===a){O=null;break}if(p=O.sibling,p!==null){p.return=O.return,O=p;break}O=O.return}p=O}}function Ui(a,i,u,c){a=null;for(var p=i,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var O=p.alternate;if(O===null)throw Error(r(387));if(O=O.memoizedProps,O!==null){var R=p.type;ln(p.pendingProps.value,O.value)||(a!==null?a.push(R):a=[R])}}else if(p===Me.current){if(O=p.alternate,O===null)throw Error(r(387));O.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(a!==null?a.push(Fl):a=[Fl])}p=p.return}a!==null&&xh(i,a,u,c),i.flags|=262144}function Ps(a){for(a=a.firstContext;a!==null;){if(!ln(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ga(a){Ha=a,gr=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function $t(a){return V1(Ha,a)}function Ds(a,i){return Ha===null&&Ga(a),V1(a,i)}function V1(a,i){var u=i._currentValue;if(i={context:i,memoizedValue:u,next:null},gr===null){if(a===null)throw Error(r(308));gr=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else gr=gr.next=i;return u}var QP=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(u,c){a.push(c)}};this.abort=function(){i.aborted=!0,a.forEach(function(u){return u()})}},JP=e.unstable_scheduleCallback,e4=e.unstable_NormalPriority,yt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sh(){return{controller:new QP,data:new Map,refCount:0}}function wl(a){a.refCount--,a.refCount===0&&JP(e4,function(){a.controller.abort()})}var Ol=null,_h=0,Ii=0,Hi=null;function t4(a,i){if(Ol===null){var u=Ol=[];_h=0,Ii=Ap(),Hi={status:"pending",value:void 0,then:function(c){u.push(c)}}}return _h++,i.then(F1,F1),i}function F1(){if(--_h===0&&Ol!==null){Hi!==null&&(Hi.status="fulfilled");var a=Ol;Ol=null,Ii=0,Hi=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function n4(a,i){var u=[],c={status:"pending",value:null,reason:null,then:function(p){u.push(p)}};return a.then(function(){c.status="fulfilled",c.value=i;for(var p=0;p<u.length;p++)(0,u[p])(i)},function(p){for(c.status="rejected",c.reason=p,p=0;p<u.length;p++)(0,u[p])(void 0)}),c}var W1=k.S;k.S=function(a,i){P_=Ut(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&t4(a,i),W1!==null&&W1(a,i)};var Ya=L(null);function wh(){var a=Ya.current;return a!==null?a:Qe.pooledCache}function ks(a,i){i===null?te(Ya,Ya.current):te(Ya,i.pool)}function Z1(){var a=wh();return a===null?null:{parent:yt._currentValue,pool:a}}var Gi=Error(r(460)),Oh=Error(r(474)),$s=Error(r(542)),Ls={then:function(){}};function Q1(a){return a=a.status,a==="fulfilled"||a==="rejected"}function J1(a,i,u){switch(u=a[u],u===void 0?a.push(i):u!==i&&(i.then(pr,pr),i=u),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,tS(a),a;default:if(typeof i.status=="string")i.then(pr,pr);else{if(a=Qe,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=i,a.status="pending",a.then(function(c){if(i.status==="pending"){var p=i;p.status="fulfilled",p.value=c}},function(c){if(i.status==="pending"){var p=i;p.status="rejected",p.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,tS(a),a}throw Xa=i,Gi}}function Ka(a){try{var i=a._init;return i(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Xa=u,Gi):u}}var Xa=null;function eS(){if(Xa===null)throw Error(r(459));var a=Xa;return Xa=null,a}function tS(a){if(a===Gi||a===$s)throw Error(r(483))}var Yi=null,Al=0;function qs(a){var i=Al;return Al+=1,Yi===null&&(Yi=[]),J1(Yi,a,i)}function jl(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function Bs(a,i){throw i.$$typeof===b?Error(r(525)):(a=Object.prototype.toString.call(i),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)))}function nS(a){function i(V,G){if(a){var Z=V.deletions;Z===null?(V.deletions=[G],V.flags|=16):Z.push(G)}}function u(V,G){if(!a)return null;for(;G!==null;)i(V,G),G=G.sibling;return null}function c(V){for(var G=new Map;V!==null;)V.key!==null?G.set(V.key,V):G.set(V.index,V),V=V.sibling;return G}function p(V,G){return V=vr(V,G),V.index=0,V.sibling=null,V}function y(V,G,Z){return V.index=Z,a?(Z=V.alternate,Z!==null?(Z=Z.index,Z<G?(V.flags|=67108866,G):Z):(V.flags|=67108866,G)):(V.flags|=1048576,G)}function O(V){return a&&V.alternate===null&&(V.flags|=67108866),V}function R(V,G,Z,ae){return G===null||G.tag!==6?(G=dh(Z,V.mode,ae),G.return=V,G):(G=p(G,Z),G.return=V,G)}function U(V,G,Z,ae){var ve=Z.type;return ve===_?ne(V,G,Z.props.children,ae,Z.key):G!==null&&(G.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===D&&Ka(ve)===G.type)?(G=p(G,Z.props),jl(G,Z),G.return=V,G):(G=Ms(Z.type,Z.key,Z.props,null,V.mode,ae),jl(G,Z),G.return=V,G)}function Q(V,G,Z,ae){return G===null||G.tag!==4||G.stateNode.containerInfo!==Z.containerInfo||G.stateNode.implementation!==Z.implementation?(G=hh(Z,V.mode,ae),G.return=V,G):(G=p(G,Z.children||[]),G.return=V,G)}function ne(V,G,Z,ae,ve){return G===null||G.tag!==7?(G=Ua(Z,V.mode,ae,ve),G.return=V,G):(G=p(G,Z),G.return=V,G)}function ie(V,G,Z){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=dh(""+G,V.mode,Z),G.return=V,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return Z=Ms(G.type,G.key,G.props,null,V.mode,Z),jl(Z,G),Z.return=V,Z;case w:return G=hh(G,V.mode,Z),G.return=V,G;case D:return G=Ka(G),ie(V,G,Z)}if(W(G)||q(G))return G=Ua(G,V.mode,Z,null),G.return=V,G;if(typeof G.then=="function")return ie(V,qs(G),Z);if(G.$$typeof===T)return ie(V,Ds(V,G),Z);Bs(V,G)}return null}function J(V,G,Z,ae){var ve=G!==null?G.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return ve!==null?null:R(V,G,""+Z,ae);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return Z.key===ve?U(V,G,Z,ae):null;case w:return Z.key===ve?Q(V,G,Z,ae):null;case D:return Z=Ka(Z),J(V,G,Z,ae)}if(W(Z)||q(Z))return ve!==null?null:ne(V,G,Z,ae,null);if(typeof Z.then=="function")return J(V,G,qs(Z),ae);if(Z.$$typeof===T)return J(V,G,Ds(V,Z),ae);Bs(V,Z)}return null}function ee(V,G,Z,ae,ve){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return V=V.get(Z)||null,R(G,V,""+ae,ve);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case S:return V=V.get(ae.key===null?Z:ae.key)||null,U(G,V,ae,ve);case w:return V=V.get(ae.key===null?Z:ae.key)||null,Q(G,V,ae,ve);case D:return ae=Ka(ae),ee(V,G,Z,ae,ve)}if(W(ae)||q(ae))return V=V.get(Z)||null,ne(G,V,ae,ve,null);if(typeof ae.then=="function")return ee(V,G,Z,qs(ae),ve);if(ae.$$typeof===T)return ee(V,G,Z,Ds(G,ae),ve);Bs(G,ae)}return null}function pe(V,G,Z,ae){for(var ve=null,qe=null,me=G,Te=G=0,ke=null;me!==null&&Te<Z.length;Te++){me.index>Te?(ke=me,me=null):ke=me.sibling;var Be=J(V,me,Z[Te],ae);if(Be===null){me===null&&(me=ke);break}a&&me&&Be.alternate===null&&i(V,me),G=y(Be,G,Te),qe===null?ve=Be:qe.sibling=Be,qe=Be,me=ke}if(Te===Z.length)return u(V,me),$e&&yr(V,Te),ve;if(me===null){for(;Te<Z.length;Te++)me=ie(V,Z[Te],ae),me!==null&&(G=y(me,G,Te),qe===null?ve=me:qe.sibling=me,qe=me);return $e&&yr(V,Te),ve}for(me=c(me);Te<Z.length;Te++)ke=ee(me,V,Te,Z[Te],ae),ke!==null&&(a&&ke.alternate!==null&&me.delete(ke.key===null?Te:ke.key),G=y(ke,G,Te),qe===null?ve=ke:qe.sibling=ke,qe=ke);return a&&me.forEach(function(Sa){return i(V,Sa)}),$e&&yr(V,Te),ve}function be(V,G,Z,ae){if(Z==null)throw Error(r(151));for(var ve=null,qe=null,me=G,Te=G=0,ke=null,Be=Z.next();me!==null&&!Be.done;Te++,Be=Z.next()){me.index>Te?(ke=me,me=null):ke=me.sibling;var Sa=J(V,me,Be.value,ae);if(Sa===null){me===null&&(me=ke);break}a&&me&&Sa.alternate===null&&i(V,me),G=y(Sa,G,Te),qe===null?ve=Sa:qe.sibling=Sa,qe=Sa,me=ke}if(Be.done)return u(V,me),$e&&yr(V,Te),ve;if(me===null){for(;!Be.done;Te++,Be=Z.next())Be=ie(V,Be.value,ae),Be!==null&&(G=y(Be,G,Te),qe===null?ve=Be:qe.sibling=Be,qe=Be);return $e&&yr(V,Te),ve}for(me=c(me);!Be.done;Te++,Be=Z.next())Be=ee(me,V,Te,Be.value,ae),Be!==null&&(a&&Be.alternate!==null&&me.delete(Be.key===null?Te:Be.key),G=y(Be,G,Te),qe===null?ve=Be:qe.sibling=Be,qe=Be);return a&&me.forEach(function(h5){return i(V,h5)}),$e&&yr(V,Te),ve}function Fe(V,G,Z,ae){if(typeof Z=="object"&&Z!==null&&Z.type===_&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:e:{for(var ve=Z.key;G!==null;){if(G.key===ve){if(ve=Z.type,ve===_){if(G.tag===7){u(V,G.sibling),ae=p(G,Z.props.children),ae.return=V,V=ae;break e}}else if(G.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===D&&Ka(ve)===G.type){u(V,G.sibling),ae=p(G,Z.props),jl(ae,Z),ae.return=V,V=ae;break e}u(V,G);break}else i(V,G);G=G.sibling}Z.type===_?(ae=Ua(Z.props.children,V.mode,ae,Z.key),ae.return=V,V=ae):(ae=Ms(Z.type,Z.key,Z.props,null,V.mode,ae),jl(ae,Z),ae.return=V,V=ae)}return O(V);case w:e:{for(ve=Z.key;G!==null;){if(G.key===ve)if(G.tag===4&&G.stateNode.containerInfo===Z.containerInfo&&G.stateNode.implementation===Z.implementation){u(V,G.sibling),ae=p(G,Z.children||[]),ae.return=V,V=ae;break e}else{u(V,G);break}else i(V,G);G=G.sibling}ae=hh(Z,V.mode,ae),ae.return=V,V=ae}return O(V);case D:return Z=Ka(Z),Fe(V,G,Z,ae)}if(W(Z))return pe(V,G,Z,ae);if(q(Z)){if(ve=q(Z),typeof ve!="function")throw Error(r(150));return Z=ve.call(Z),be(V,G,Z,ae)}if(typeof Z.then=="function")return Fe(V,G,qs(Z),ae);if(Z.$$typeof===T)return Fe(V,G,Ds(V,Z),ae);Bs(V,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,G!==null&&G.tag===6?(u(V,G.sibling),ae=p(G,Z),ae.return=V,V=ae):(u(V,G),ae=dh(Z,V.mode,ae),ae.return=V,V=ae),O(V)):u(V,G)}return function(V,G,Z,ae){try{Al=0;var ve=Fe(V,G,Z,ae);return Yi=null,ve}catch(me){if(me===Gi||me===$s)throw me;var qe=un(29,me,null,V.mode);return qe.lanes=ae,qe.return=V,qe}}}var Va=nS(!0),rS=nS(!1),aa=!1;function Ah(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jh(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function ia(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function oa(a,i,u){var c=a.updateQueue;if(c===null)return null;if(c=c.shared,(Ue&2)!==0){var p=c.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),c.pending=i,i=Cs(a),z1(a,null,u),i}return Ns(a,c,i,u),Cs(a)}function El(a,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194048)!==0)){var c=i.lanes;c&=a.pendingLanes,u|=c,i.lanes=u,Vx(a,u)}}function Eh(a,i){var u=a.updateQueue,c=a.alternate;if(c!==null&&(c=c.updateQueue,u===c)){var p=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var O={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};y===null?p=y=O:y=y.next=O,u=u.next}while(u!==null);y===null?p=y=i:y=y.next=i}else p=y=i;u={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=i:a.next=i,u.lastBaseUpdate=i}var Th=!1;function Tl(){if(Th){var a=Hi;if(a!==null)throw a}}function Nl(a,i,u,c){Th=!1;var p=a.updateQueue;aa=!1;var y=p.firstBaseUpdate,O=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var U=R,Q=U.next;U.next=null,O===null?y=Q:O.next=Q,O=U;var ne=a.alternate;ne!==null&&(ne=ne.updateQueue,R=ne.lastBaseUpdate,R!==O&&(R===null?ne.firstBaseUpdate=Q:R.next=Q,ne.lastBaseUpdate=U))}if(y!==null){var ie=p.baseState;O=0,ne=Q=U=null,R=y;do{var J=R.lane&-536870913,ee=J!==R.lane;if(ee?(De&J)===J:(c&J)===J){J!==0&&J===Ii&&(Th=!0),ne!==null&&(ne=ne.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=a,be=R;J=i;var Fe=u;switch(be.tag){case 1:if(pe=be.payload,typeof pe=="function"){ie=pe.call(Fe,ie,J);break e}ie=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=be.payload,J=typeof pe=="function"?pe.call(Fe,ie,J):pe,J==null)break e;ie=m({},ie,J);break e;case 2:aa=!0}}J=R.callback,J!==null&&(a.flags|=64,ee&&(a.flags|=8192),ee=p.callbacks,ee===null?p.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ne===null?(Q=ne=ee,U=ie):ne=ne.next=ee,O|=J;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,p.lastBaseUpdate=ee,p.shared.pending=null}}while(!0);ne===null&&(U=ie),p.baseState=U,p.firstBaseUpdate=Q,p.lastBaseUpdate=ne,y===null&&(p.shared.lanes=0),fa|=O,a.lanes=O,a.memoizedState=ie}}function aS(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function iS(a,i){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)aS(u[a],i)}var Ki=L(null),zs=L(0);function oS(a,i){a=Tr,te(zs,a),te(Ki,i),Tr=a|i.baseLanes}function Nh(){te(zs,Tr),te(Ki,Ki.current)}function Ch(){Tr=zs.current,z(Ki),z(zs)}var sn=L(null),En=null;function la(a){var i=a.alternate;te(mt,mt.current&1),te(sn,a),En===null&&(i===null||Ki.current!==null||i.memoizedState!==null)&&(En=a)}function Mh(a){te(mt,mt.current),te(sn,a),En===null&&(En=a)}function lS(a){a.tag===22?(te(mt,mt.current),te(sn,a),En===null&&(En=a)):ua()}function ua(){te(mt,mt.current),te(sn,sn.current)}function cn(a){z(sn),En===a&&(En=null),z(mt)}var mt=L(0);function Us(a){for(var i=a;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Lp(u)||qp(u)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var xr=0,je=null,Xe=null,gt=null,Is=!1,Xi=!1,Fa=!1,Hs=0,Cl=0,Vi=null,r4=0;function dt(){throw Error(r(321))}function Rh(a,i){if(i===null)return!1;for(var u=0;u<i.length&&u<a.length;u++)if(!ln(a[u],i[u]))return!1;return!0}function Ph(a,i,u,c,p,y){return xr=y,je=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,k.H=a===null||a.memoizedState===null?GS:Vh,Fa=!1,y=u(c,p),Fa=!1,Xi&&(y=sS(i,u,c,p)),uS(a),y}function uS(a){k.H=Pl;var i=Xe!==null&&Xe.next!==null;if(xr=0,gt=Xe=je=null,Is=!1,Cl=0,Vi=null,i)throw Error(r(300));a===null||bt||(a=a.dependencies,a!==null&&Ps(a)&&(bt=!0))}function sS(a,i,u,c){je=a;var p=0;do{if(Xi&&(Vi=null),Cl=0,Xi=!1,25<=p)throw Error(r(301));if(p+=1,gt=Xe=null,a.updateQueue!=null){var y=a.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}k.H=YS,y=i(u,c)}while(Xi);return y}function a4(){var a=k.H,i=a.useState()[0];return i=typeof i.then=="function"?Ml(i):i,a=a.useState()[0],(Xe!==null?Xe.memoizedState:null)!==a&&(je.flags|=1024),i}function Dh(){var a=Hs!==0;return Hs=0,a}function kh(a,i,u){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~u}function $h(a){if(Is){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}Is=!1}xr=0,gt=Xe=je=null,Xi=!1,Cl=Hs=0,Vi=null}function Gt(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?je.memoizedState=gt=a:gt=gt.next=a,gt}function vt(){if(Xe===null){var a=je.alternate;a=a!==null?a.memoizedState:null}else a=Xe.next;var i=gt===null?je.memoizedState:gt.next;if(i!==null)gt=i,Xe=a;else{if(a===null)throw je.alternate===null?Error(r(467)):Error(r(310));Xe=a,a={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},gt===null?je.memoizedState=gt=a:gt=gt.next=a}return gt}function Gs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ml(a){var i=Cl;return Cl+=1,Vi===null&&(Vi=[]),a=J1(Vi,a,i),i=je,(gt===null?i.memoizedState:gt.next)===null&&(i=i.alternate,k.H=i===null||i.memoizedState===null?GS:Vh),a}function Ys(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ml(a);if(a.$$typeof===T)return $t(a)}throw Error(r(438,String(a)))}function Lh(a){var i=null,u=je.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var c=je.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=Gs(),je.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0)for(u=i.data[i.index]=Array(a),c=0;c<a;c++)u[c]=B;return i.index++,u}function Sr(a,i){return typeof i=="function"?i(a):i}function Ks(a){var i=vt();return qh(i,Xe,a)}function qh(a,i,u){var c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=u;var p=a.baseQueue,y=c.pending;if(y!==null){if(p!==null){var O=p.next;p.next=y.next,y.next=O}i.baseQueue=p=y,c.pending=null}if(y=a.baseState,p===null)a.memoizedState=y;else{i=p.next;var R=O=null,U=null,Q=i,ne=!1;do{var ie=Q.lane&-536870913;if(ie!==Q.lane?(De&ie)===ie:(xr&ie)===ie){var J=Q.revertLane;if(J===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ie===Ii&&(ne=!0);else if((xr&J)===J){Q=Q.next,J===Ii&&(ne=!0);continue}else ie={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},U===null?(R=U=ie,O=y):U=U.next=ie,je.lanes|=J,fa|=J;ie=Q.action,Fa&&u(y,ie),y=Q.hasEagerState?Q.eagerState:u(y,ie)}else J={lane:ie,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},U===null?(R=U=J,O=y):U=U.next=J,je.lanes|=ie,fa|=ie;Q=Q.next}while(Q!==null&&Q!==i);if(U===null?O=y:U.next=R,!ln(y,a.memoizedState)&&(bt=!0,ne&&(u=Hi,u!==null)))throw u;a.memoizedState=y,a.baseState=O,a.baseQueue=U,c.lastRenderedState=y}return p===null&&(c.lanes=0),[a.memoizedState,c.dispatch]}function Bh(a){var i=vt(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var c=u.dispatch,p=u.pending,y=i.memoizedState;if(p!==null){u.pending=null;var O=p=p.next;do y=a(y,O.action),O=O.next;while(O!==p);ln(y,i.memoizedState)||(bt=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),u.lastRenderedState=y}return[y,c]}function cS(a,i,u){var c=je,p=vt(),y=$e;if(y){if(u===void 0)throw Error(r(407));u=u()}else u=i();var O=!ln((Xe||p).memoizedState,u);if(O&&(p.memoizedState=u,bt=!0),p=p.queue,Ih(hS.bind(null,c,p,a),[a]),p.getSnapshot!==i||O||gt!==null&>.memoizedState.tag&1){if(c.flags|=2048,Fi(9,{destroy:void 0},dS.bind(null,c,p,u,i),null),Qe===null)throw Error(r(349));y||(xr&127)!==0||fS(c,i,u)}return u}function fS(a,i,u){a.flags|=16384,a={getSnapshot:i,value:u},i=je.updateQueue,i===null?(i=Gs(),je.updateQueue=i,i.stores=[a]):(u=i.stores,u===null?i.stores=[a]:u.push(a))}function dS(a,i,u,c){i.value=u,i.getSnapshot=c,pS(i)&&mS(a)}function hS(a,i,u){return u(function(){pS(i)&&mS(a)})}function pS(a){var i=a.getSnapshot;a=a.value;try{var u=i();return!ln(a,u)}catch{return!0}}function mS(a){var i=za(a,2);i!==null&&en(i,a,2)}function zh(a){var i=Gt();if(typeof a=="function"){var u=a;if(a=u(),Fa){Zr(!0);try{u()}finally{Zr(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:a},i}function vS(a,i,u,c){return a.baseState=u,qh(a,Xe,typeof c=="function"?c:Sr)}function i4(a,i,u,c,p){if(Fs(a))throw Error(r(485));if(a=i.action,a!==null){var y={payload:p,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){y.listeners.push(O)}};k.T!==null?u(!0):y.isTransition=!1,c(y),u=i.pending,u===null?(y.next=i.pending=y,yS(i,y)):(y.next=u.next,i.pending=u.next=y)}}function yS(a,i){var u=i.action,c=i.payload,p=a.state;if(i.isTransition){var y=k.T,O={};k.T=O;try{var R=u(p,c),U=k.S;U!==null&&U(O,R),gS(a,i,R)}catch(Q){Uh(a,i,Q)}finally{y!==null&&O.types!==null&&(y.types=O.types),k.T=y}}else try{y=u(p,c),gS(a,i,y)}catch(Q){Uh(a,i,Q)}}function gS(a,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(c){bS(a,i,c)},function(c){return Uh(a,i,c)}):bS(a,i,u)}function bS(a,i,u){i.status="fulfilled",i.value=u,xS(i),a.state=u,i=a.pending,i!==null&&(u=i.next,u===i?a.pending=null:(u=u.next,i.next=u,yS(a,u)))}function Uh(a,i,u){var c=a.pending;if(a.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=u,xS(i),i=i.next;while(i!==c)}a.action=null}function xS(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function SS(a,i){return i}function _S(a,i){if($e){var u=Qe.formState;if(u!==null){e:{var c=je;if($e){if(at){t:{for(var p=at,y=jn;p.nodeType!==8;){if(!y){p=null;break t}if(p=Tn(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){at=Tn(p.nextSibling),c=p.data==="F!";break e}}na(c)}c=!1}c&&(i=u[0])}}return u=Gt(),u.memoizedState=u.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:SS,lastRenderedState:i},u.queue=c,u=US.bind(null,je,c),c.dispatch=u,c=zh(!1),y=Xh.bind(null,je,!1,c.queue),c=Gt(),p={state:i,dispatch:null,action:a,pending:null},c.queue=p,u=i4.bind(null,je,p,y,u),p.dispatch=u,c.memoizedState=a,[i,u,!1]}function wS(a){var i=vt();return OS(i,Xe,a)}function OS(a,i,u){if(i=qh(a,i,SS)[0],a=Ks(Sr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=Ml(i)}catch(O){throw O===Gi?$s:O}else c=i;i=vt();var p=i.queue,y=p.dispatch;return u!==i.memoizedState&&(je.flags|=2048,Fi(9,{destroy:void 0},o4.bind(null,p,u),null)),[c,y,a]}function o4(a,i){a.action=i}function AS(a){var i=vt(),u=Xe;if(u!==null)return OS(i,u,a);vt(),i=i.memoizedState,u=vt();var c=u.queue.dispatch;return u.memoizedState=a,[i,c,!1]}function Fi(a,i,u,c){return a={tag:a,create:u,deps:c,inst:i,next:null},i=je.updateQueue,i===null&&(i=Gs(),je.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=a.next=a:(c=u.next,u.next=a,a.next=c,i.lastEffect=a),a}function jS(){return vt().memoizedState}function Xs(a,i,u,c){var p=Gt();je.flags|=a,p.memoizedState=Fi(1|i,{destroy:void 0},u,c===void 0?null:c)}function Vs(a,i,u,c){var p=vt();c=c===void 0?null:c;var y=p.memoizedState.inst;Xe!==null&&c!==null&&Rh(c,Xe.memoizedState.deps)?p.memoizedState=Fi(i,y,u,c):(je.flags|=a,p.memoizedState=Fi(1|i,y,u,c))}function ES(a,i){Xs(8390656,8,a,i)}function Ih(a,i){Vs(2048,8,a,i)}function l4(a){je.flags|=4;var i=je.updateQueue;if(i===null)i=Gs(),je.updateQueue=i,i.events=[a];else{var u=i.events;u===null?i.events=[a]:u.push(a)}}function TS(a){var i=vt().memoizedState;return l4({ref:i,nextImpl:a}),function(){if((Ue&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function NS(a,i){return Vs(4,2,a,i)}function CS(a,i){return Vs(4,4,a,i)}function MS(a,i){if(typeof i=="function"){a=a();var u=i(a);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function RS(a,i,u){u=u!=null?u.concat([a]):null,Vs(4,4,MS.bind(null,i,a),u)}function Hh(){}function PS(a,i){var u=vt();i=i===void 0?null:i;var c=u.memoizedState;return i!==null&&Rh(i,c[1])?c[0]:(u.memoizedState=[a,i],a)}function DS(a,i){var u=vt();i=i===void 0?null:i;var c=u.memoizedState;if(i!==null&&Rh(i,c[1]))return c[0];if(c=a(),Fa){Zr(!0);try{a()}finally{Zr(!1)}}return u.memoizedState=[c,i],c}function Gh(a,i,u){return u===void 0||(xr&1073741824)!==0&&(De&261930)===0?a.memoizedState=i:(a.memoizedState=u,a=k_(),je.lanes|=a,fa|=a,u)}function kS(a,i,u,c){return ln(u,i)?u:Ki.current!==null?(a=Gh(a,u,c),ln(a,i)||(bt=!0),a):(xr&42)===0||(xr&1073741824)!==0&&(De&261930)===0?(bt=!0,a.memoizedState=u):(a=k_(),je.lanes|=a,fa|=a,i)}function $S(a,i,u,c,p){var y=X.p;X.p=y!==0&&8>y?y:8;var O=k.T,R={};k.T=R,Xh(a,!1,i,u);try{var U=p(),Q=k.S;if(Q!==null&&Q(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var ne=n4(U,c);Rl(a,i,ne,hn(a))}else Rl(a,i,c,hn(a))}catch(ie){Rl(a,i,{then:function(){},status:"rejected",reason:ie},hn())}finally{X.p=y,O!==null&&R.types!==null&&(O.types=R.types),k.T=O}}function u4(){}function Yh(a,i,u,c){if(a.tag!==5)throw Error(r(476));var p=LS(a).queue;$S(a,p,i,F,u===null?u4:function(){return qS(a),u(c)})}function LS(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:F},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:u},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function qS(a){var i=LS(a);i.next===null&&(i=a.alternate.memoizedState),Rl(a,i.next.queue,{},hn())}function Kh(){return $t(Fl)}function BS(){return vt().memoizedState}function zS(){return vt().memoizedState}function s4(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var u=hn();a=ia(u);var c=oa(i,a,u);c!==null&&(en(c,i,u),El(c,i,u)),i={cache:Sh()},a.payload=i;return}i=i.return}}function c4(a,i,u){var c=hn();u={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Fs(a)?IS(i,u):(u=ch(a,i,u,c),u!==null&&(en(u,a,c),HS(u,i,c)))}function US(a,i,u){var c=hn();Rl(a,i,u,c)}function Rl(a,i,u,c){var p={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Fs(a))IS(i,p);else{var y=a.alternate;if(a.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var O=i.lastRenderedState,R=y(O,u);if(p.hasEagerState=!0,p.eagerState=R,ln(R,O))return Ns(a,i,p,0),Qe===null&&Ts(),!1}catch{}if(u=ch(a,i,p,c),u!==null)return en(u,a,c),HS(u,i,c),!0}return!1}function Xh(a,i,u,c){if(c={lane:2,revertLane:Ap(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Fs(a)){if(i)throw Error(r(479))}else i=ch(a,u,c,2),i!==null&&en(i,a,2)}function Fs(a){var i=a.alternate;return a===je||i!==null&&i===je}function IS(a,i){Xi=Is=!0;var u=a.pending;u===null?i.next=i:(i.next=u.next,u.next=i),a.pending=i}function HS(a,i,u){if((u&4194048)!==0){var c=i.lanes;c&=a.pendingLanes,u|=c,i.lanes=u,Vx(a,u)}}var Pl={readContext:$t,use:Ys,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};Pl.useEffectEvent=dt;var GS={readContext:$t,use:Ys,useCallback:function(a,i){return Gt().memoizedState=[a,i===void 0?null:i],a},useContext:$t,useEffect:ES,useImperativeHandle:function(a,i,u){u=u!=null?u.concat([a]):null,Xs(4194308,4,MS.bind(null,i,a),u)},useLayoutEffect:function(a,i){return Xs(4194308,4,a,i)},useInsertionEffect:function(a,i){Xs(4,2,a,i)},useMemo:function(a,i){var u=Gt();i=i===void 0?null:i;var c=a();if(Fa){Zr(!0);try{a()}finally{Zr(!1)}}return u.memoizedState=[c,i],c},useReducer:function(a,i,u){var c=Gt();if(u!==void 0){var p=u(i);if(Fa){Zr(!0);try{u(i)}finally{Zr(!1)}}}else p=i;return c.memoizedState=c.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},c.queue=a,a=a.dispatch=c4.bind(null,je,a),[c.memoizedState,a]},useRef:function(a){var i=Gt();return a={current:a},i.memoizedState=a},useState:function(a){a=zh(a);var i=a.queue,u=US.bind(null,je,i);return i.dispatch=u,[a.memoizedState,u]},useDebugValue:Hh,useDeferredValue:function(a,i){var u=Gt();return Gh(u,a,i)},useTransition:function(){var a=zh(!1);return a=$S.bind(null,je,a.queue,!0,!1),Gt().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,u){var c=je,p=Gt();if($e){if(u===void 0)throw Error(r(407));u=u()}else{if(u=i(),Qe===null)throw Error(r(349));(De&127)!==0||fS(c,i,u)}p.memoizedState=u;var y={value:u,getSnapshot:i};return p.queue=y,ES(hS.bind(null,c,y,a),[a]),c.flags|=2048,Fi(9,{destroy:void 0},dS.bind(null,c,y,u,i),null),u},useId:function(){var a=Gt(),i=Qe.identifierPrefix;if($e){var u=Jn,c=Qn;u=(c&~(1<<32-on(c)-1)).toString(32)+u,i="_"+i+"R_"+u,u=Hs++,0<u&&(i+="H"+u.toString(32)),i+="_"}else u=r4++,i="_"+i+"r_"+u.toString(32)+"_";return a.memoizedState=i},useHostTransitionStatus:Kh,useFormState:_S,useActionState:_S,useOptimistic:function(a){var i=Gt();i.memoizedState=i.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=Xh.bind(null,je,!0,u),u.dispatch=i,[a,i]},useMemoCache:Lh,useCacheRefresh:function(){return Gt().memoizedState=s4.bind(null,je)},useEffectEvent:function(a){var i=Gt(),u={impl:a};return i.memoizedState=u,function(){if((Ue&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Vh={readContext:$t,use:Ys,useCallback:PS,useContext:$t,useEffect:Ih,useImperativeHandle:RS,useInsertionEffect:NS,useLayoutEffect:CS,useMemo:DS,useReducer:Ks,useRef:jS,useState:function(){return Ks(Sr)},useDebugValue:Hh,useDeferredValue:function(a,i){var u=vt();return kS(u,Xe.memoizedState,a,i)},useTransition:function(){var a=Ks(Sr)[0],i=vt().memoizedState;return[typeof a=="boolean"?a:Ml(a),i]},useSyncExternalStore:cS,useId:BS,useHostTransitionStatus:Kh,useFormState:wS,useActionState:wS,useOptimistic:function(a,i){var u=vt();return vS(u,Xe,a,i)},useMemoCache:Lh,useCacheRefresh:zS};Vh.useEffectEvent=TS;var YS={readContext:$t,use:Ys,useCallback:PS,useContext:$t,useEffect:Ih,useImperativeHandle:RS,useInsertionEffect:NS,useLayoutEffect:CS,useMemo:DS,useReducer:Bh,useRef:jS,useState:function(){return Bh(Sr)},useDebugValue:Hh,useDeferredValue:function(a,i){var u=vt();return Xe===null?Gh(u,a,i):kS(u,Xe.memoizedState,a,i)},useTransition:function(){var a=Bh(Sr)[0],i=vt().memoizedState;return[typeof a=="boolean"?a:Ml(a),i]},useSyncExternalStore:cS,useId:BS,useHostTransitionStatus:Kh,useFormState:AS,useActionState:AS,useOptimistic:function(a,i){var u=vt();return Xe!==null?vS(u,Xe,a,i):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Lh,useCacheRefresh:zS};YS.useEffectEvent=TS;function Fh(a,i,u,c){i=a.memoizedState,u=u(c,i),u=u==null?i:m({},i,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Wh={enqueueSetState:function(a,i,u){a=a._reactInternals;var c=hn(),p=ia(c);p.payload=i,u!=null&&(p.callback=u),i=oa(a,p,c),i!==null&&(en(i,a,c),El(i,a,c))},enqueueReplaceState:function(a,i,u){a=a._reactInternals;var c=hn(),p=ia(c);p.tag=1,p.payload=i,u!=null&&(p.callback=u),i=oa(a,p,c),i!==null&&(en(i,a,c),El(i,a,c))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var u=hn(),c=ia(u);c.tag=2,i!=null&&(c.callback=i),i=oa(a,c,u),i!==null&&(en(i,a,u),El(i,a,u))}};function KS(a,i,u,c,p,y,O){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(c,y,O):i.prototype&&i.prototype.isPureReactComponent?!bl(u,c)||!bl(p,y):!0}function XS(a,i,u,c){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,c),i.state!==a&&Wh.enqueueReplaceState(i,i.state,null)}function Wa(a,i){var u=i;if("ref"in i){u={};for(var c in i)c!=="ref"&&(u[c]=i[c])}if(a=a.defaultProps){u===i&&(u=m({},u));for(var p in a)u[p]===void 0&&(u[p]=a[p])}return u}function VS(a){Es(a)}function FS(a){console.error(a)}function WS(a){Es(a)}function Ws(a,i){try{var u=a.onUncaughtError;u(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function ZS(a,i,u){try{var c=a.onCaughtError;c(u.value,{componentStack:u.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Zh(a,i,u){return u=ia(u),u.tag=3,u.payload={element:null},u.callback=function(){Ws(a,i)},u}function QS(a){return a=ia(a),a.tag=3,a}function JS(a,i,u,c){var p=u.type.getDerivedStateFromError;if(typeof p=="function"){var y=c.value;a.payload=function(){return p(y)},a.callback=function(){ZS(i,u,c)}}var O=u.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(a.callback=function(){ZS(i,u,c),typeof p!="function"&&(da===null?da=new Set([this]):da.add(this));var R=c.stack;this.componentDidCatch(c.value,{componentStack:R!==null?R:""})})}function f4(a,i,u,c,p){if(u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=u.alternate,i!==null&&Ui(i,u,p,!0),u=sn.current,u!==null){switch(u.tag){case 31:case 13:return En===null?uc():u.alternate===null&&ht===0&&(ht=3),u.flags&=-257,u.flags|=65536,u.lanes=p,c===Ls?u.flags|=16384:(i=u.updateQueue,i===null?u.updateQueue=new Set([c]):i.add(c),_p(a,c,p)),!1;case 22:return u.flags|=65536,c===Ls?u.flags|=16384:(i=u.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},u.updateQueue=i):(u=i.retryQueue,u===null?i.retryQueue=new Set([c]):u.add(c)),_p(a,c,p)),!1}throw Error(r(435,u.tag))}return _p(a,c,p),uc(),!1}if($e)return i=sn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,c!==vh&&(a=Error(r(422),{cause:c}),_l(wn(a,u)))):(c!==vh&&(i=Error(r(423),{cause:c}),_l(wn(i,u))),a=a.current.alternate,a.flags|=65536,p&=-p,a.lanes|=p,c=wn(c,u),p=Zh(a.stateNode,c,p),Eh(a,p),ht!==4&&(ht=2)),!1;var y=Error(r(520),{cause:c});if(y=wn(y,u),Ul===null?Ul=[y]:Ul.push(y),ht!==4&&(ht=2),i===null)return!0;c=wn(c,u),u=i;do{switch(u.tag){case 3:return u.flags|=65536,a=p&-p,u.lanes|=a,a=Zh(u.stateNode,c,a),Eh(u,a),!1;case 1:if(i=u.type,y=u.stateNode,(u.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(da===null||!da.has(y))))return u.flags|=65536,p&=-p,u.lanes|=p,p=QS(p),JS(p,a,u,c),Eh(u,p),!1}u=u.return}while(u!==null);return!1}var Qh=Error(r(461)),bt=!1;function Lt(a,i,u,c){i.child=a===null?rS(i,null,u,c):Va(i,a.child,u,c)}function e_(a,i,u,c,p){u=u.render;var y=i.ref;if("ref"in c){var O={};for(var R in c)R!=="ref"&&(O[R]=c[R])}else O=c;return Ga(i),c=Ph(a,i,u,O,y,p),R=Dh(),a!==null&&!bt?(kh(a,i,p),_r(a,i,p)):($e&&R&&ph(i),i.flags|=1,Lt(a,i,c,p),i.child)}function t_(a,i,u,c,p){if(a===null){var y=u.type;return typeof y=="function"&&!fh(y)&&y.defaultProps===void 0&&u.compare===null?(i.tag=15,i.type=y,n_(a,i,y,c,p)):(a=Ms(u.type,null,c,i,i.mode,p),a.ref=i.ref,a.return=i,i.child=a)}if(y=a.child,!op(a,p)){var O=y.memoizedProps;if(u=u.compare,u=u!==null?u:bl,u(O,c)&&a.ref===i.ref)return _r(a,i,p)}return i.flags|=1,a=vr(y,c),a.ref=i.ref,a.return=i,i.child=a}function n_(a,i,u,c,p){if(a!==null){var y=a.memoizedProps;if(bl(y,c)&&a.ref===i.ref)if(bt=!1,i.pendingProps=c=y,op(a,p))(a.flags&131072)!==0&&(bt=!0);else return i.lanes=a.lanes,_r(a,i,p)}return Jh(a,i,u,c,p)}function r_(a,i,u,c){var p=c.children,y=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((i.flags&128)!==0){if(y=y!==null?y.baseLanes|u:u,a!==null){for(c=i.child=a.child,p=0;c!==null;)p=p|c.lanes|c.childLanes,c=c.sibling;c=p&~y}else c=0,i.child=null;return a_(a,i,y,u,c)}if((u&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&ks(i,y!==null?y.cachePool:null),y!==null?oS(i,y):Nh(),lS(i);else return c=i.lanes=536870912,a_(a,i,y!==null?y.baseLanes|u:u,u,c)}else y!==null?(ks(i,y.cachePool),oS(i,y),ua(),i.memoizedState=null):(a!==null&&ks(i,null),Nh(),ua());return Lt(a,i,p,u),i.child}function Dl(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function a_(a,i,u,c,p){var y=wh();return y=y===null?null:{parent:yt._currentValue,pool:y},i.memoizedState={baseLanes:u,cachePool:y},a!==null&&ks(i,null),Nh(),lS(i),a!==null&&Ui(a,i,c,!0),i.childLanes=p,null}function Zs(a,i){return i=Js({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function i_(a,i,u){return Va(i,a.child,null,u),a=Zs(i,i.pendingProps),a.flags|=2,cn(i),i.memoizedState=null,a}function d4(a,i,u){var c=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,a===null){if($e){if(c.mode==="hidden")return a=Zs(i,c),i.lanes=536870912,Dl(null,a);if(Mh(i),(a=at)?(a=yw(a,jn),a=a!==null&&a.data==="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:ea!==null?{id:Qn,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},u=I1(a),u.return=i,i.child=u,kt=i,at=null)):a=null,a===null)throw na(i);return i.lanes=536870912,null}return Zs(i,c)}var y=a.memoizedState;if(y!==null){var O=y.dehydrated;if(Mh(i),p)if(i.flags&256)i.flags&=-257,i=i_(a,i,u);else if(i.memoizedState!==null)i.child=a.child,i.flags|=128,i=null;else throw Error(r(558));else if(bt||Ui(a,i,u,!1),p=(u&a.childLanes)!==0,bt||p){if(c=Qe,c!==null&&(O=Fx(c,u),O!==0&&O!==y.retryLane))throw y.retryLane=O,za(a,O),en(c,a,O),Qh;uc(),i=i_(a,i,u)}else a=y.treeContext,at=Tn(O.nextSibling),kt=i,$e=!0,ta=null,jn=!1,a!==null&&Y1(i,a),i=Zs(i,c),i.flags|=4096;return i}return a=vr(a.child,{mode:c.mode,children:c.children}),a.ref=i.ref,i.child=a,a.return=i,a}function Qs(a,i){var u=i.ref;if(u===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(i.flags|=4194816)}}function Jh(a,i,u,c,p){return Ga(i),u=Ph(a,i,u,c,void 0,p),c=Dh(),a!==null&&!bt?(kh(a,i,p),_r(a,i,p)):($e&&c&&ph(i),i.flags|=1,Lt(a,i,u,p),i.child)}function o_(a,i,u,c,p,y){return Ga(i),i.updateQueue=null,u=sS(i,c,u,p),uS(a),c=Dh(),a!==null&&!bt?(kh(a,i,y),_r(a,i,y)):($e&&c&&ph(i),i.flags|=1,Lt(a,i,u,y),i.child)}function l_(a,i,u,c,p){if(Ga(i),i.stateNode===null){var y=Li,O=u.contextType;typeof O=="object"&&O!==null&&(y=$t(O)),y=new u(c,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Wh,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=c,y.state=i.memoizedState,y.refs={},Ah(i),O=u.contextType,y.context=typeof O=="object"&&O!==null?$t(O):Li,y.state=i.memoizedState,O=u.getDerivedStateFromProps,typeof O=="function"&&(Fh(i,u,O,c),y.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(O=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),O!==y.state&&Wh.enqueueReplaceState(y,y.state,null),Nl(i,c,y,p),Tl(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(a===null){y=i.stateNode;var R=i.memoizedProps,U=Wa(u,R);y.props=U;var Q=y.context,ne=u.contextType;O=Li,typeof ne=="object"&&ne!==null&&(O=$t(ne));var ie=u.getDerivedStateFromProps;ne=typeof ie=="function"||typeof y.getSnapshotBeforeUpdate=="function",R=i.pendingProps!==R,ne||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R||Q!==O)&&XS(i,y,c,O),aa=!1;var J=i.memoizedState;y.state=J,Nl(i,c,y,p),Tl(),Q=i.memoizedState,R||J!==Q||aa?(typeof ie=="function"&&(Fh(i,u,ie,c),Q=i.memoizedState),(U=aa||KS(i,u,U,c,J,Q,O))?(ne||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=Q),y.props=c,y.state=Q,y.context=O,c=U):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{y=i.stateNode,jh(a,i),O=i.memoizedProps,ne=Wa(u,O),y.props=ne,ie=i.pendingProps,J=y.context,Q=u.contextType,U=Li,typeof Q=="object"&&Q!==null&&(U=$t(Q)),R=u.getDerivedStateFromProps,(Q=typeof R=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(O!==ie||J!==U)&&XS(i,y,c,U),aa=!1,J=i.memoizedState,y.state=J,Nl(i,c,y,p),Tl();var ee=i.memoizedState;O!==ie||J!==ee||aa||a!==null&&a.dependencies!==null&&Ps(a.dependencies)?(typeof R=="function"&&(Fh(i,u,R,c),ee=i.memoizedState),(ne=aa||KS(i,u,ne,c,J,ee,U)||a!==null&&a.dependencies!==null&&Ps(a.dependencies))?(Q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,ee,U),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,ee,U)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||O===a.memoizedProps&&J===a.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||O===a.memoizedProps&&J===a.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=ee),y.props=c,y.state=ee,y.context=U,c=ne):(typeof y.componentDidUpdate!="function"||O===a.memoizedProps&&J===a.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||O===a.memoizedProps&&J===a.memoizedState||(i.flags|=1024),c=!1)}return y=c,Qs(a,i),c=(i.flags&128)!==0,y||c?(y=i.stateNode,u=c&&typeof u.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,a!==null&&c?(i.child=Va(i,a.child,null,p),i.child=Va(i,null,u,p)):Lt(a,i,u,p),i.memoizedState=y.state,a=i.child):a=_r(a,i,p),a}function u_(a,i,u,c){return Ia(),i.flags|=256,Lt(a,i,u,c),i.child}var ep={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tp(a){return{baseLanes:a,cachePool:Z1()}}function np(a,i,u){return a=a!==null?a.childLanes&~u:0,i&&(a|=dn),a}function s_(a,i,u){var c=i.pendingProps,p=!1,y=(i.flags&128)!==0,O;if((O=y)||(O=a!==null&&a.memoizedState===null?!1:(mt.current&2)!==0),O&&(p=!0,i.flags&=-129),O=(i.flags&32)!==0,i.flags&=-33,a===null){if($e){if(p?la(i):ua(),(a=at)?(a=yw(a,jn),a=a!==null&&a.data!=="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:ea!==null?{id:Qn,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},u=I1(a),u.return=i,i.child=u,kt=i,at=null)):a=null,a===null)throw na(i);return qp(a)?i.lanes=32:i.lanes=536870912,null}var R=c.children;return c=c.fallback,p?(ua(),p=i.mode,R=Js({mode:"hidden",children:R},p),c=Ua(c,p,u,null),R.return=i,c.return=i,R.sibling=c,i.child=R,c=i.child,c.memoizedState=tp(u),c.childLanes=np(a,O,u),i.memoizedState=ep,Dl(null,c)):(la(i),rp(i,R))}var U=a.memoizedState;if(U!==null&&(R=U.dehydrated,R!==null)){if(y)i.flags&256?(la(i),i.flags&=-257,i=ap(a,i,u)):i.memoizedState!==null?(ua(),i.child=a.child,i.flags|=128,i=null):(ua(),R=c.fallback,p=i.mode,c=Js({mode:"visible",children:c.children},p),R=Ua(R,p,u,null),R.flags|=2,c.return=i,R.return=i,c.sibling=R,i.child=c,Va(i,a.child,null,u),c=i.child,c.memoizedState=tp(u),c.childLanes=np(a,O,u),i.memoizedState=ep,i=Dl(null,c));else if(la(i),qp(R)){if(O=R.nextSibling&&R.nextSibling.dataset,O)var Q=O.dgst;O=Q,c=Error(r(419)),c.stack="",c.digest=O,_l({value:c,source:null,stack:null}),i=ap(a,i,u)}else if(bt||Ui(a,i,u,!1),O=(u&a.childLanes)!==0,bt||O){if(O=Qe,O!==null&&(c=Fx(O,u),c!==0&&c!==U.retryLane))throw U.retryLane=c,za(a,c),en(O,a,c),Qh;Lp(R)||uc(),i=ap(a,i,u)}else Lp(R)?(i.flags|=192,i.child=a.child,i=null):(a=U.treeContext,at=Tn(R.nextSibling),kt=i,$e=!0,ta=null,jn=!1,a!==null&&Y1(i,a),i=rp(i,c.children),i.flags|=4096);return i}return p?(ua(),R=c.fallback,p=i.mode,U=a.child,Q=U.sibling,c=vr(U,{mode:"hidden",children:c.children}),c.subtreeFlags=U.subtreeFlags&65011712,Q!==null?R=vr(Q,R):(R=Ua(R,p,u,null),R.flags|=2),R.return=i,c.return=i,c.sibling=R,i.child=c,Dl(null,c),c=i.child,R=a.child.memoizedState,R===null?R=tp(u):(p=R.cachePool,p!==null?(U=yt._currentValue,p=p.parent!==U?{parent:U,pool:U}:p):p=Z1(),R={baseLanes:R.baseLanes|u,cachePool:p}),c.memoizedState=R,c.childLanes=np(a,O,u),i.memoizedState=ep,Dl(a.child,c)):(la(i),u=a.child,a=u.sibling,u=vr(u,{mode:"visible",children:c.children}),u.return=i,u.sibling=null,a!==null&&(O=i.deletions,O===null?(i.deletions=[a],i.flags|=16):O.push(a)),i.child=u,i.memoizedState=null,u)}function rp(a,i){return i=Js({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function Js(a,i){return a=un(22,a,null,i),a.lanes=0,a}function ap(a,i,u){return Va(i,a.child,null,u),a=rp(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function c_(a,i,u){a.lanes|=i;var c=a.alternate;c!==null&&(c.lanes|=i),bh(a.return,i,u)}function ip(a,i,u,c,p,y){var O=a.memoizedState;O===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:u,tailMode:p,treeForkCount:y}:(O.isBackwards=i,O.rendering=null,O.renderingStartTime=0,O.last=c,O.tail=u,O.tailMode=p,O.treeForkCount=y)}function f_(a,i,u){var c=i.pendingProps,p=c.revealOrder,y=c.tail;c=c.children;var O=mt.current,R=(O&2)!==0;if(R?(O=O&1|2,i.flags|=128):O&=1,te(mt,O),Lt(a,i,c,u),c=$e?Sl:0,!R&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&c_(a,u,i);else if(a.tag===19)c_(a,u,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(p){case"forwards":for(u=i.child,p=null;u!==null;)a=u.alternate,a!==null&&Us(a)===null&&(p=u),u=u.sibling;u=p,u===null?(p=i.child,i.child=null):(p=u.sibling,u.sibling=null),ip(i,!1,p,u,y,c);break;case"backwards":case"unstable_legacy-backwards":for(u=null,p=i.child,i.child=null;p!==null;){if(a=p.alternate,a!==null&&Us(a)===null){i.child=p;break}a=p.sibling,p.sibling=u,u=p,p=a}ip(i,!0,u,null,y,c);break;case"together":ip(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function _r(a,i,u){if(a!==null&&(i.dependencies=a.dependencies),fa|=i.lanes,(u&i.childLanes)===0)if(a!==null){if(Ui(a,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(r(153));if(i.child!==null){for(a=i.child,u=vr(a,a.pendingProps),i.child=u,u.return=i;a.sibling!==null;)a=a.sibling,u=u.sibling=vr(a,a.pendingProps),u.return=i;u.sibling=null}return i.child}function op(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&Ps(a)))}function h4(a,i,u){switch(i.tag){case 3:Ie(i,i.stateNode.containerInfo),ra(i,yt,a.memoizedState.cache),Ia();break;case 27:case 5:Se(i);break;case 4:Ie(i,i.stateNode.containerInfo);break;case 10:ra(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Mh(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(la(i),i.flags|=128,null):(u&i.child.childLanes)!==0?s_(a,i,u):(la(i),a=_r(a,i,u),a!==null?a.sibling:null);la(i);break;case 19:var p=(a.flags&128)!==0;if(c=(u&i.childLanes)!==0,c||(Ui(a,i,u,!1),c=(u&i.childLanes)!==0),p){if(c)return f_(a,i,u);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),te(mt,mt.current),c)break;return null;case 22:return i.lanes=0,r_(a,i,u,i.pendingProps);case 24:ra(i,yt,a.memoizedState.cache)}return _r(a,i,u)}function d_(a,i,u){if(a!==null)if(a.memoizedProps!==i.pendingProps)bt=!0;else{if(!op(a,u)&&(i.flags&128)===0)return bt=!1,h4(a,i,u);bt=(a.flags&131072)!==0}else bt=!1,$e&&(i.flags&1048576)!==0&&G1(i,Sl,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(a=Ka(i.elementType),i.type=a,typeof a=="function")fh(a)?(c=Wa(a,c),i.tag=1,i=l_(null,i,a,c,u)):(i.tag=0,i=Jh(null,i,a,c,u));else{if(a!=null){var p=a.$$typeof;if(p===N){i.tag=11,i=e_(null,i,a,c,u);break e}else if(p===M){i.tag=14,i=t_(null,i,a,c,u);break e}}throw i=K(a)||a,Error(r(306,i,""))}}return i;case 0:return Jh(a,i,i.type,i.pendingProps,u);case 1:return c=i.type,p=Wa(c,i.pendingProps),l_(a,i,c,p,u);case 3:e:{if(Ie(i,i.stateNode.containerInfo),a===null)throw Error(r(387));c=i.pendingProps;var y=i.memoizedState;p=y.element,jh(a,i),Nl(i,c,null,u);var O=i.memoizedState;if(c=O.cache,ra(i,yt,c),c!==y.cache&&xh(i,[yt],u,!0),Tl(),c=O.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:O.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=u_(a,i,c,u);break e}else if(c!==p){p=wn(Error(r(424)),i),_l(p),i=u_(a,i,c,u);break e}else for(a=i.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,at=Tn(a.firstChild),kt=i,$e=!0,ta=null,jn=!0,u=rS(i,null,c,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ia(),c===p){i=_r(a,i,u);break e}Lt(a,i,c,u)}i=i.child}return i;case 26:return Qs(a,i),a===null?(u=ww(i.type,null,i.pendingProps,null))?i.memoizedState=u:$e||(u=i.type,a=i.pendingProps,c=mc(ge.current).createElement(u),c[Dt]=i,c[Vt]=a,qt(c,u,a),Nt(c),i.stateNode=c):i.memoizedState=ww(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return Se(i),a===null&&$e&&(c=i.stateNode=xw(i.type,i.pendingProps,ge.current),kt=i,jn=!0,p=at,va(i.type)?(Bp=p,at=Tn(c.firstChild)):at=p),Lt(a,i,i.pendingProps.children,u),Qs(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&$e&&((p=c=at)&&(c=H4(c,i.type,i.pendingProps,jn),c!==null?(i.stateNode=c,kt=i,at=Tn(c.firstChild),jn=!1,p=!0):p=!1),p||na(i)),Se(i),p=i.type,y=i.pendingProps,O=a!==null?a.memoizedProps:null,c=y.children,Dp(p,y)?c=null:O!==null&&Dp(p,O)&&(i.flags|=32),i.memoizedState!==null&&(p=Ph(a,i,a4,null,null,u),Fl._currentValue=p),Qs(a,i),Lt(a,i,c,u),i.child;case 6:return a===null&&$e&&((a=u=at)&&(u=G4(u,i.pendingProps,jn),u!==null?(i.stateNode=u,kt=i,at=null,a=!0):a=!1),a||na(i)),null;case 13:return s_(a,i,u);case 4:return Ie(i,i.stateNode.containerInfo),c=i.pendingProps,a===null?i.child=Va(i,null,c,u):Lt(a,i,c,u),i.child;case 11:return e_(a,i,i.type,i.pendingProps,u);case 7:return Lt(a,i,i.pendingProps,u),i.child;case 8:return Lt(a,i,i.pendingProps.children,u),i.child;case 12:return Lt(a,i,i.pendingProps.children,u),i.child;case 10:return c=i.pendingProps,ra(i,i.type,c.value),Lt(a,i,c.children,u),i.child;case 9:return p=i.type._context,c=i.pendingProps.children,Ga(i),p=$t(p),c=c(p),i.flags|=1,Lt(a,i,c,u),i.child;case 14:return t_(a,i,i.type,i.pendingProps,u);case 15:return n_(a,i,i.type,i.pendingProps,u);case 19:return f_(a,i,u);case 31:return d4(a,i,u);case 22:return r_(a,i,u,i.pendingProps);case 24:return Ga(i),c=$t(yt),a===null?(p=wh(),p===null&&(p=Qe,y=Sh(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=u),p=y),i.memoizedState={parent:c,cache:p},Ah(i),ra(i,yt,p)):((a.lanes&u)!==0&&(jh(a,i),Nl(i,null,null,u),Tl()),p=a.memoizedState,y=i.memoizedState,p.parent!==c?(p={parent:c,cache:c},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),ra(i,yt,c)):(c=y.cache,ra(i,yt,c),c!==p.cache&&xh(i,[yt],u,!0))),Lt(a,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function wr(a){a.flags|=4}function lp(a,i,u,c,p){if((i=(a.mode&32)!==0)&&(i=!1),i){if(a.flags|=16777216,(p&335544128)===p)if(a.stateNode.complete)a.flags|=8192;else if(B_())a.flags|=8192;else throw Xa=Ls,Oh}else a.flags&=-16777217}function h_(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!Tw(i))if(B_())a.flags|=8192;else throw Xa=Ls,Oh}function ec(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Kx():536870912,a.lanes|=i,Ji|=i)}function kl(a,i){if(!$e)switch(a.tailMode){case"hidden":i=a.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var c=null;u!==null;)u.alternate!==null&&(c=u),u=u.sibling;c===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:c.sibling=null}}function it(a){var i=a.alternate!==null&&a.alternate.child===a.child,u=0,c=0;if(i)for(var p=a.child;p!==null;)u|=p.lanes|p.childLanes,c|=p.subtreeFlags&65011712,c|=p.flags&65011712,p.return=a,p=p.sibling;else for(p=a.child;p!==null;)u|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=a,p=p.sibling;return a.subtreeFlags|=c,a.childLanes=u,i}function p4(a,i,u){var c=i.pendingProps;switch(mh(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(i),null;case 1:return it(i),null;case 3:return u=i.stateNode,c=null,a!==null&&(c=a.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),br(yt),se(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(zi(i)?wr(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,yh())),it(i),null;case 26:var p=i.type,y=i.memoizedState;return a===null?(wr(i),y!==null?(it(i),h_(i,y)):(it(i),lp(i,p,null,c,u))):y?y!==a.memoizedState?(wr(i),it(i),h_(i,y)):(it(i),i.flags&=-16777217):(a=a.memoizedProps,a!==c&&wr(i),it(i),lp(i,p,a,c,u)),null;case 27:if(we(i),u=ge.current,p=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&wr(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return it(i),null}a=ce.current,zi(i)?K1(i):(a=xw(p,c,u),i.stateNode=a,wr(i))}return it(i),null;case 5:if(we(i),p=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&wr(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return it(i),null}if(y=ce.current,zi(i))K1(i);else{var O=mc(ge.current);switch(y){case 1:y=O.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:y=O.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":y=O.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":y=O.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":y=O.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof c.is=="string"?O.createElement("select",{is:c.is}):O.createElement("select"),c.multiple?y.multiple=!0:c.size&&(y.size=c.size);break;default:y=typeof c.is=="string"?O.createElement(p,{is:c.is}):O.createElement(p)}}y[Dt]=i,y[Vt]=c;e:for(O=i.child;O!==null;){if(O.tag===5||O.tag===6)y.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===i)break e;for(;O.sibling===null;){if(O.return===null||O.return===i)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}i.stateNode=y;e:switch(qt(y,p,c),p){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&wr(i)}}return it(i),lp(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,u),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==c&&wr(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(a=ge.current,zi(i)){if(a=i.stateNode,u=i.memoizedProps,c=null,p=kt,p!==null)switch(p.tag){case 27:case 5:c=p.memoizedProps}a[Dt]=i,a=!!(a.nodeValue===u||c!==null&&c.suppressHydrationWarning===!0||sw(a.nodeValue,u)),a||na(i,!0)}else a=mc(a).createTextNode(c),a[Dt]=i,i.stateNode=a}return it(i),null;case 31:if(u=i.memoizedState,a===null||a.memoizedState!==null){if(c=zi(i),u!==null){if(a===null){if(!c)throw Error(r(318));if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Dt]=i}else Ia(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;it(i),a=!1}else u=yh(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return i.flags&256?(cn(i),i):(cn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return it(i),null;case 13:if(c=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=zi(i),c!==null&&c.dehydrated!==null){if(a===null){if(!p)throw Error(r(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[Dt]=i}else Ia(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;it(i),p=!1}else p=yh(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(cn(i),i):(cn(i),null)}return cn(i),(i.flags&128)!==0?(i.lanes=u,i):(u=c!==null,a=a!==null&&a.memoizedState!==null,u&&(c=i.child,p=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(p=c.alternate.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==p&&(c.flags|=2048)),u!==a&&u&&(i.child.flags|=8192),ec(i,i.updateQueue),it(i),null);case 4:return se(),a===null&&Np(i.stateNode.containerInfo),it(i),null;case 10:return br(i.type),it(i),null;case 19:if(z(mt),c=i.memoizedState,c===null)return it(i),null;if(p=(i.flags&128)!==0,y=c.rendering,y===null)if(p)kl(c,!1);else{if(ht!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(y=Us(a),y!==null){for(i.flags|=128,kl(c,!1),a=y.updateQueue,i.updateQueue=a,ec(i,a),i.subtreeFlags=0,a=u,u=i.child;u!==null;)U1(u,a),u=u.sibling;return te(mt,mt.current&1|2),$e&&yr(i,c.treeForkCount),i.child}a=a.sibling}c.tail!==null&&Ut()>ic&&(i.flags|=128,p=!0,kl(c,!1),i.lanes=4194304)}else{if(!p)if(a=Us(y),a!==null){if(i.flags|=128,p=!0,a=a.updateQueue,i.updateQueue=a,ec(i,a),kl(c,!0),c.tail===null&&c.tailMode==="hidden"&&!y.alternate&&!$e)return it(i),null}else 2*Ut()-c.renderingStartTime>ic&&u!==536870912&&(i.flags|=128,p=!0,kl(c,!1),i.lanes=4194304);c.isBackwards?(y.sibling=i.child,i.child=y):(a=c.last,a!==null?a.sibling=y:i.child=y,c.last=y)}return c.tail!==null?(a=c.tail,c.rendering=a,c.tail=a.sibling,c.renderingStartTime=Ut(),a.sibling=null,u=mt.current,te(mt,p?u&1|2:u&1),$e&&yr(i,c.treeForkCount),a):(it(i),null);case 22:case 23:return cn(i),Ch(),c=i.memoizedState!==null,a!==null?a.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(u&536870912)!==0&&(i.flags&128)===0&&(it(i),i.subtreeFlags&6&&(i.flags|=8192)):it(i),u=i.updateQueue,u!==null&&ec(i,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048),a!==null&&z(Ya),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),br(yt),it(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function m4(a,i){switch(mh(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return br(yt),se(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return we(i),null;case 31:if(i.memoizedState!==null){if(cn(i),i.alternate===null)throw Error(r(340));Ia()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 13:if(cn(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Ia()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return z(mt),null;case 4:return se(),null;case 10:return br(i.type),null;case 22:case 23:return cn(i),Ch(),a!==null&&z(Ya),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return br(yt),null;case 25:return null;default:return null}}function p_(a,i){switch(mh(i),i.tag){case 3:br(yt),se();break;case 26:case 27:case 5:we(i);break;case 4:se();break;case 31:i.memoizedState!==null&&cn(i);break;case 13:cn(i);break;case 19:z(mt);break;case 10:br(i.type);break;case 22:case 23:cn(i),Ch(),a!==null&&z(Ya);break;case 24:br(yt)}}function $l(a,i){try{var u=i.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var p=c.next;u=p;do{if((u.tag&a)===a){c=void 0;var y=u.create,O=u.inst;c=y(),O.destroy=c}u=u.next}while(u!==p)}}catch(R){Ke(i,i.return,R)}}function sa(a,i,u){try{var c=i.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var y=p.next;c=y;do{if((c.tag&a)===a){var O=c.inst,R=O.destroy;if(R!==void 0){O.destroy=void 0,p=i;var U=u,Q=R;try{Q()}catch(ne){Ke(p,U,ne)}}}c=c.next}while(c!==y)}}catch(ne){Ke(i,i.return,ne)}}function m_(a){var i=a.updateQueue;if(i!==null){var u=a.stateNode;try{iS(i,u)}catch(c){Ke(a,a.return,c)}}}function v_(a,i,u){u.props=Wa(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(c){Ke(a,i,c)}}function Ll(a,i){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var c=a.stateNode;break;case 30:c=a.stateNode;break;default:c=a.stateNode}typeof u=="function"?a.refCleanup=u(c):u.current=c}}catch(p){Ke(a,i,p)}}function er(a,i){var u=a.ref,c=a.refCleanup;if(u!==null)if(typeof c=="function")try{c()}catch(p){Ke(a,i,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(p){Ke(a,i,p)}else u.current=null}function y_(a){var i=a.type,u=a.memoizedProps,c=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&c.focus();break e;case"img":u.src?c.src=u.src:u.srcSet&&(c.srcset=u.srcSet)}}catch(p){Ke(a,a.return,p)}}function up(a,i,u){try{var c=a.stateNode;L4(c,a.type,u,i),c[Vt]=i}catch(p){Ke(a,a.return,p)}}function g_(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&va(a.type)||a.tag===4}function sp(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||g_(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&va(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function cp(a,i,u){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(a),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=pr));else if(c!==4&&(c===27&&va(a.type)&&(u=a.stateNode,i=null),a=a.child,a!==null))for(cp(a,i,u),a=a.sibling;a!==null;)cp(a,i,u),a=a.sibling}function tc(a,i,u){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?u.insertBefore(a,i):u.appendChild(a);else if(c!==4&&(c===27&&va(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(tc(a,i,u),a=a.sibling;a!==null;)tc(a,i,u),a=a.sibling}function b_(a){var i=a.stateNode,u=a.memoizedProps;try{for(var c=a.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);qt(i,c,u),i[Dt]=a,i[Vt]=u}catch(y){Ke(a,a.return,y)}}var Or=!1,xt=!1,fp=!1,x_=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function v4(a,i){if(a=a.containerInfo,Rp=_c,a=R1(a),ah(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var c=u.getSelection&&u.getSelection();if(c&&c.rangeCount!==0){u=c.anchorNode;var p=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break e}var O=0,R=-1,U=-1,Q=0,ne=0,ie=a,J=null;t:for(;;){for(var ee;ie!==u||p!==0&&ie.nodeType!==3||(R=O+p),ie!==y||c!==0&&ie.nodeType!==3||(U=O+c),ie.nodeType===3&&(O+=ie.nodeValue.length),(ee=ie.firstChild)!==null;)J=ie,ie=ee;for(;;){if(ie===a)break t;if(J===u&&++Q===p&&(R=O),J===y&&++ne===c&&(U=O),(ee=ie.nextSibling)!==null)break;ie=J,J=ie.parentNode}ie=ee}u=R===-1||U===-1?null:{start:R,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(Pp={focusedElem:a,selectionRange:u},_c=!1,Ct=i;Ct!==null;)if(i=Ct,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Ct=a;else for(;Ct!==null;){switch(i=Ct,y=i.alternate,a=i.flags,i.tag){case 0:if((a&4)!==0&&(a=i.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)p=a[u],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&y!==null){a=void 0,u=i,p=y.memoizedProps,y=y.memoizedState,c=u.stateNode;try{var pe=Wa(u.type,p);a=c.getSnapshotBeforeUpdate(pe,y),c.__reactInternalSnapshotBeforeUpdate=a}catch(be){Ke(u,u.return,be)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,u=a.nodeType,u===9)$p(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":$p(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=i.sibling,a!==null){a.return=i.return,Ct=a;break}Ct=i.return}}function S_(a,i,u){var c=u.flags;switch(u.tag){case 0:case 11:case 15:jr(a,u),c&4&&$l(5,u);break;case 1:if(jr(a,u),c&4)if(a=u.stateNode,i===null)try{a.componentDidMount()}catch(O){Ke(u,u.return,O)}else{var p=Wa(u.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(p,i,a.__reactInternalSnapshotBeforeUpdate)}catch(O){Ke(u,u.return,O)}}c&64&&m_(u),c&512&&Ll(u,u.return);break;case 3:if(jr(a,u),c&64&&(a=u.updateQueue,a!==null)){if(i=null,u.child!==null)switch(u.child.tag){case 27:case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}try{iS(a,i)}catch(O){Ke(u,u.return,O)}}break;case 27:i===null&&c&4&&b_(u);case 26:case 5:jr(a,u),i===null&&c&4&&y_(u),c&512&&Ll(u,u.return);break;case 12:jr(a,u);break;case 31:jr(a,u),c&4&&O_(a,u);break;case 13:jr(a,u),c&4&&A_(a,u),c&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=A4.bind(null,u),Y4(a,u))));break;case 22:if(c=u.memoizedState!==null||Or,!c){i=i!==null&&i.memoizedState!==null||xt,p=Or;var y=xt;Or=c,(xt=i)&&!y?Er(a,u,(u.subtreeFlags&8772)!==0):jr(a,u),Or=p,xt=y}break;case 30:break;default:jr(a,u)}}function __(a){var i=a.alternate;i!==null&&(a.alternate=null,__(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&Ud(i)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var lt=null,Wt=!1;function Ar(a,i,u){for(u=u.child;u!==null;)w_(a,i,u),u=u.sibling}function w_(a,i,u){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(ll,u)}catch{}switch(u.tag){case 26:xt||er(u,i),Ar(a,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:xt||er(u,i);var c=lt,p=Wt;va(u.type)&&(lt=u.stateNode,Wt=!1),Ar(a,i,u),Kl(u.stateNode),lt=c,Wt=p;break;case 5:xt||er(u,i);case 6:if(c=lt,p=Wt,lt=null,Ar(a,i,u),lt=c,Wt=p,lt!==null)if(Wt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(u.stateNode)}catch(y){Ke(u,i,y)}else try{lt.removeChild(u.stateNode)}catch(y){Ke(u,i,y)}break;case 18:lt!==null&&(Wt?(a=lt,mw(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),lo(a)):mw(lt,u.stateNode));break;case 4:c=lt,p=Wt,lt=u.stateNode.containerInfo,Wt=!0,Ar(a,i,u),lt=c,Wt=p;break;case 0:case 11:case 14:case 15:sa(2,u,i),xt||sa(4,u,i),Ar(a,i,u);break;case 1:xt||(er(u,i),c=u.stateNode,typeof c.componentWillUnmount=="function"&&v_(u,i,c)),Ar(a,i,u);break;case 21:Ar(a,i,u);break;case 22:xt=(c=xt)||u.memoizedState!==null,Ar(a,i,u),xt=c;break;default:Ar(a,i,u)}}function O_(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{lo(a)}catch(u){Ke(i,i.return,u)}}}function A_(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{lo(a)}catch(u){Ke(i,i.return,u)}}function y4(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new x_),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new x_),i;default:throw Error(r(435,a.tag))}}function nc(a,i){var u=y4(a);i.forEach(function(c){if(!u.has(c)){u.add(c);var p=j4.bind(null,a,c);c.then(p,p)}})}function Zt(a,i){var u=i.deletions;if(u!==null)for(var c=0;c<u.length;c++){var p=u[c],y=a,O=i,R=O;e:for(;R!==null;){switch(R.tag){case 27:if(va(R.type)){lt=R.stateNode,Wt=!1;break e}break;case 5:lt=R.stateNode,Wt=!1;break e;case 3:case 4:lt=R.stateNode.containerInfo,Wt=!0;break e}R=R.return}if(lt===null)throw Error(r(160));w_(y,O,p),lt=null,Wt=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)j_(i,a),i=i.sibling}var Hn=null;function j_(a,i){var u=a.alternate,c=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Zt(i,a),Qt(a),c&4&&(sa(3,a,a.return),$l(3,a),sa(5,a,a.return));break;case 1:Zt(i,a),Qt(a),c&512&&(xt||u===null||er(u,u.return)),c&64&&Or&&(a=a.updateQueue,a!==null&&(c=a.callbacks,c!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?c:u.concat(c))));break;case 26:var p=Hn;if(Zt(i,a),Qt(a),c&512&&(xt||u===null||er(u,u.return)),c&4){var y=u!==null?u.memoizedState:null;if(c=a.memoizedState,u===null)if(c===null)if(a.stateNode===null){e:{c=a.type,u=a.memoizedProps,p=p.ownerDocument||p;t:switch(c){case"title":y=p.getElementsByTagName("title")[0],(!y||y[cl]||y[Dt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(c),p.head.insertBefore(y,p.querySelector("head > title"))),qt(y,c,u),y[Dt]=a,Nt(y),c=y;break e;case"link":var O=jw("link","href",p).get(c+(u.href||""));if(O){for(var R=0;R<O.length;R++)if(y=O[R],y.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){O.splice(R,1);break t}}y=p.createElement(c),qt(y,c,u),p.head.appendChild(y);break;case"meta":if(O=jw("meta","content",p).get(c+(u.content||""))){for(R=0;R<O.length;R++)if(y=O[R],y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){O.splice(R,1);break t}}y=p.createElement(c),qt(y,c,u),p.head.appendChild(y);break;default:throw Error(r(468,c))}y[Dt]=a,Nt(y),c=y}a.stateNode=c}else Ew(p,a.type,a.stateNode);else a.stateNode=Aw(p,c,a.memoizedProps);else y!==c?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,c===null?Ew(p,a.type,a.stateNode):Aw(p,c,a.memoizedProps)):c===null&&a.stateNode!==null&&up(a,a.memoizedProps,u.memoizedProps)}break;case 27:Zt(i,a),Qt(a),c&512&&(xt||u===null||er(u,u.return)),u!==null&&c&4&&up(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Zt(i,a),Qt(a),c&512&&(xt||u===null||er(u,u.return)),a.flags&32){p=a.stateNode;try{Ci(p,"")}catch(pe){Ke(a,a.return,pe)}}c&4&&a.stateNode!=null&&(p=a.memoizedProps,up(a,p,u!==null?u.memoizedProps:p)),c&1024&&(fp=!0);break;case 6:if(Zt(i,a),Qt(a),c&4){if(a.stateNode===null)throw Error(r(162));c=a.memoizedProps,u=a.stateNode;try{u.nodeValue=c}catch(pe){Ke(a,a.return,pe)}}break;case 3:if(gc=null,p=Hn,Hn=vc(i.containerInfo),Zt(i,a),Hn=p,Qt(a),c&4&&u!==null&&u.memoizedState.isDehydrated)try{lo(i.containerInfo)}catch(pe){Ke(a,a.return,pe)}fp&&(fp=!1,E_(a));break;case 4:c=Hn,Hn=vc(a.stateNode.containerInfo),Zt(i,a),Qt(a),Hn=c;break;case 12:Zt(i,a),Qt(a);break;case 31:Zt(i,a),Qt(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,nc(a,c)));break;case 13:Zt(i,a),Qt(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(ac=Ut()),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,nc(a,c)));break;case 22:p=a.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,Q=Or,ne=xt;if(Or=Q||p,xt=ne||U,Zt(i,a),xt=ne,Or=Q,Qt(a),c&8192)e:for(i=a.stateNode,i._visibility=p?i._visibility&-2:i._visibility|1,p&&(u===null||U||Or||xt||Za(a)),u=null,i=a;;){if(i.tag===5||i.tag===26){if(u===null){U=u=i;try{if(y=U.stateNode,p)O=y.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{R=U.stateNode;var ie=U.memoizedProps.style,J=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;R.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(pe){Ke(U,U.return,pe)}}}else if(i.tag===6){if(u===null){U=i;try{U.stateNode.nodeValue=p?"":U.memoizedProps}catch(pe){Ke(U,U.return,pe)}}}else if(i.tag===18){if(u===null){U=i;try{var ee=U.stateNode;p?vw(ee,!0):vw(U.stateNode,!1)}catch(pe){Ke(U,U.return,pe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=a.updateQueue,c!==null&&(u=c.retryQueue,u!==null&&(c.retryQueue=null,nc(a,u))));break;case 19:Zt(i,a),Qt(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,nc(a,c)));break;case 30:break;case 21:break;default:Zt(i,a),Qt(a)}}function Qt(a){var i=a.flags;if(i&2){try{for(var u,c=a.return;c!==null;){if(g_(c)){u=c;break}c=c.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var p=u.stateNode,y=sp(a);tc(a,y,p);break;case 5:var O=u.stateNode;u.flags&32&&(Ci(O,""),u.flags&=-33);var R=sp(a);tc(a,R,O);break;case 3:case 4:var U=u.stateNode.containerInfo,Q=sp(a);cp(a,Q,U);break;default:throw Error(r(161))}}catch(ne){Ke(a,a.return,ne)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function E_(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;E_(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function jr(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)S_(a,i.alternate,i),i=i.sibling}function Za(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:sa(4,i,i.return),Za(i);break;case 1:er(i,i.return);var u=i.stateNode;typeof u.componentWillUnmount=="function"&&v_(i,i.return,u),Za(i);break;case 27:Kl(i.stateNode);case 26:case 5:er(i,i.return),Za(i);break;case 22:i.memoizedState===null&&Za(i);break;case 30:Za(i);break;default:Za(i)}a=a.sibling}}function Er(a,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,p=a,y=i,O=y.flags;switch(y.tag){case 0:case 11:case 15:Er(p,y,u),$l(4,y);break;case 1:if(Er(p,y,u),c=y,p=c.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(Q){Ke(c,c.return,Q)}if(c=y,p=c.updateQueue,p!==null){var R=c.stateNode;try{var U=p.shared.hiddenCallbacks;if(U!==null)for(p.shared.hiddenCallbacks=null,p=0;p<U.length;p++)aS(U[p],R)}catch(Q){Ke(c,c.return,Q)}}u&&O&64&&m_(y),Ll(y,y.return);break;case 27:b_(y);case 26:case 5:Er(p,y,u),u&&c===null&&O&4&&y_(y),Ll(y,y.return);break;case 12:Er(p,y,u);break;case 31:Er(p,y,u),u&&O&4&&O_(p,y);break;case 13:Er(p,y,u),u&&O&4&&A_(p,y);break;case 22:y.memoizedState===null&&Er(p,y,u),Ll(y,y.return);break;case 30:break;default:Er(p,y,u)}i=i.sibling}}function dp(a,i){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&wl(u))}function hp(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&wl(a))}function Gn(a,i,u,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)T_(a,i,u,c),i=i.sibling}function T_(a,i,u,c){var p=i.flags;switch(i.tag){case 0:case 11:case 15:Gn(a,i,u,c),p&2048&&$l(9,i);break;case 1:Gn(a,i,u,c);break;case 3:Gn(a,i,u,c),p&2048&&(a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&wl(a)));break;case 12:if(p&2048){Gn(a,i,u,c),a=i.stateNode;try{var y=i.memoizedProps,O=y.id,R=y.onPostCommit;typeof R=="function"&&R(O,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(U){Ke(i,i.return,U)}}else Gn(a,i,u,c);break;case 31:Gn(a,i,u,c);break;case 13:Gn(a,i,u,c);break;case 23:break;case 22:y=i.stateNode,O=i.alternate,i.memoizedState!==null?y._visibility&2?Gn(a,i,u,c):ql(a,i):y._visibility&2?Gn(a,i,u,c):(y._visibility|=2,Wi(a,i,u,c,(i.subtreeFlags&10256)!==0||!1)),p&2048&&dp(O,i);break;case 24:Gn(a,i,u,c),p&2048&&hp(i.alternate,i);break;default:Gn(a,i,u,c)}}function Wi(a,i,u,c,p){for(p=p&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var y=a,O=i,R=u,U=c,Q=O.flags;switch(O.tag){case 0:case 11:case 15:Wi(y,O,R,U,p),$l(8,O);break;case 23:break;case 22:var ne=O.stateNode;O.memoizedState!==null?ne._visibility&2?Wi(y,O,R,U,p):ql(y,O):(ne._visibility|=2,Wi(y,O,R,U,p)),p&&Q&2048&&dp(O.alternate,O);break;case 24:Wi(y,O,R,U,p),p&&Q&2048&&hp(O.alternate,O);break;default:Wi(y,O,R,U,p)}i=i.sibling}}function ql(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=a,c=i,p=c.flags;switch(c.tag){case 22:ql(u,c),p&2048&&dp(c.alternate,c);break;case 24:ql(u,c),p&2048&&hp(c.alternate,c);break;default:ql(u,c)}i=i.sibling}}var Bl=8192;function Zi(a,i,u){if(a.subtreeFlags&Bl)for(a=a.child;a!==null;)N_(a,i,u),a=a.sibling}function N_(a,i,u){switch(a.tag){case 26:Zi(a,i,u),a.flags&Bl&&a.memoizedState!==null&&r5(u,Hn,a.memoizedState,a.memoizedProps);break;case 5:Zi(a,i,u);break;case 3:case 4:var c=Hn;Hn=vc(a.stateNode.containerInfo),Zi(a,i,u),Hn=c;break;case 22:a.memoizedState===null&&(c=a.alternate,c!==null&&c.memoizedState!==null?(c=Bl,Bl=16777216,Zi(a,i,u),Bl=c):Zi(a,i,u));break;default:Zi(a,i,u)}}function C_(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function zl(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var c=i[u];Ct=c,R_(c,a)}C_(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)M_(a),a=a.sibling}function M_(a){switch(a.tag){case 0:case 11:case 15:zl(a),a.flags&2048&&sa(9,a,a.return);break;case 3:zl(a);break;case 12:zl(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,rc(a)):zl(a);break;default:zl(a)}}function rc(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var c=i[u];Ct=c,R_(c,a)}C_(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:sa(8,i,i.return),rc(i);break;case 22:u=i.stateNode,u._visibility&2&&(u._visibility&=-3,rc(i));break;default:rc(i)}a=a.sibling}}function R_(a,i){for(;Ct!==null;){var u=Ct;switch(u.tag){case 0:case 11:case 15:sa(8,u,i);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var c=u.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:wl(u.memoizedState.cache)}if(c=u.child,c!==null)c.return=u,Ct=c;else e:for(u=a;Ct!==null;){c=Ct;var p=c.sibling,y=c.return;if(__(c),c===u){Ct=null;break e}if(p!==null){p.return=y,Ct=p;break e}Ct=y}}}var g4={getCacheForType:function(a){var i=$t(yt),u=i.data.get(a);return u===void 0&&(u=a(),i.data.set(a,u)),u},cacheSignal:function(){return $t(yt).controller.signal}},b4=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Qe=null,Re=null,De=0,Ye=0,fn=null,ca=!1,Qi=!1,pp=!1,Tr=0,ht=0,fa=0,Qa=0,mp=0,dn=0,Ji=0,Ul=null,Jt=null,vp=!1,ac=0,P_=0,ic=1/0,oc=null,da=null,wt=0,ha=null,eo=null,Nr=0,yp=0,gp=null,D_=null,Il=0,bp=null;function hn(){return(Ue&2)!==0&&De!==0?De&-De:k.T!==null?Ap():Wx()}function k_(){if(dn===0)if((De&536870912)===0||$e){var a=ps;ps<<=1,(ps&3932160)===0&&(ps=262144),dn=a}else dn=536870912;return a=sn.current,a!==null&&(a.flags|=32),dn}function en(a,i,u){(a===Qe&&(Ye===2||Ye===9)||a.cancelPendingCommit!==null)&&(to(a,0),pa(a,De,dn,!1)),sl(a,u),((Ue&2)===0||a!==Qe)&&(a===Qe&&((Ue&2)===0&&(Qa|=u),ht===4&&pa(a,De,dn,!1)),tr(a))}function $_(a,i,u){if((Ue&6)!==0)throw Error(r(327));var c=!u&&(i&127)===0&&(i&a.expiredLanes)===0||ul(a,i),p=c?_4(a,i):Sp(a,i,!0),y=c;do{if(p===0){Qi&&!c&&pa(a,i,0,!1);break}else{if(u=a.current.alternate,y&&!x4(u)){p=Sp(a,i,!1),y=!1;continue}if(p===2){if(y=i,a.errorRecoveryDisabledLanes&y)var O=0;else O=a.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){i=O;e:{var R=a;p=Ul;var U=R.current.memoizedState.isDehydrated;if(U&&(to(R,O).flags|=256),O=Sp(R,O,!1),O!==2){if(pp&&!U){R.errorRecoveryDisabledLanes|=y,Qa|=y,p=4;break e}y=Jt,Jt=p,y!==null&&(Jt===null?Jt=y:Jt.push.apply(Jt,y))}p=O}if(y=!1,p!==2)continue}}if(p===1){to(a,0),pa(a,i,0,!0);break}e:{switch(c=a,y=p,y){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:pa(c,i,dn,!ca);break e;case 2:Jt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(p=ac+300-Ut(),10<p)){if(pa(c,i,dn,!ca),vs(c,0,!0)!==0)break e;Nr=i,c.timeoutHandle=hw(L_.bind(null,c,u,Jt,oc,vp,i,dn,Qa,Ji,ca,y,"Throttled",-0,0),p);break e}L_(c,u,Jt,oc,vp,i,dn,Qa,Ji,ca,y,null,-0,0)}}break}while(!0);tr(a)}function L_(a,i,u,c,p,y,O,R,U,Q,ne,ie,J,ee){if(a.timeoutHandle=-1,ie=i.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pr},N_(i,y,ie);var pe=(y&62914560)===y?ac-Ut():(y&4194048)===y?P_-Ut():0;if(pe=a5(ie,pe),pe!==null){Nr=y,a.cancelPendingCommit=pe(Y_.bind(null,a,i,y,u,c,p,O,R,U,ne,ie,null,J,ee)),pa(a,y,O,!Q);return}}Y_(a,i,y,u,c,p,O,R,U)}function x4(a){for(var i=a;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var c=0;c<u.length;c++){var p=u[c],y=p.getSnapshot;p=p.value;try{if(!ln(y(),p))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function pa(a,i,u,c){i&=~mp,i&=~Qa,a.suspendedLanes|=i,a.pingedLanes&=~i,c&&(a.warmLanes|=i),c=a.expirationTimes;for(var p=i;0<p;){var y=31-on(p),O=1<<y;c[y]=-1,p&=~O}u!==0&&Xx(a,u,i)}function lc(){return(Ue&6)===0?(Hl(0),!1):!0}function xp(){if(Re!==null){if(Ye===0)var a=Re.return;else a=Re,gr=Ha=null,$h(a),Yi=null,Al=0,a=Re;for(;a!==null;)p_(a.alternate,a),a=a.return;Re=null}}function to(a,i){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,z4(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Nr=0,xp(),Qe=a,Re=u=vr(a.current,null),De=i,Ye=0,fn=null,ca=!1,Qi=ul(a,i),pp=!1,Ji=dn=mp=Qa=fa=ht=0,Jt=Ul=null,vp=!1,(i&8)!==0&&(i|=i&32);var c=a.entangledLanes;if(c!==0)for(a=a.entanglements,c&=i;0<c;){var p=31-on(c),y=1<<p;i|=a[p],c&=~y}return Tr=i,Ts(),u}function q_(a,i){je=null,k.H=Pl,i===Gi||i===$s?(i=eS(),Ye=3):i===Oh?(i=eS(),Ye=4):Ye=i===Qh?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,fn=i,Re===null&&(ht=1,Ws(a,wn(i,a.current)))}function B_(){var a=sn.current;return a===null?!0:(De&4194048)===De?En===null:(De&62914560)===De||(De&536870912)!==0?a===En:!1}function z_(){var a=k.H;return k.H=Pl,a===null?Pl:a}function U_(){var a=k.A;return k.A=g4,a}function uc(){ht=4,ca||(De&4194048)!==De&&sn.current!==null||(Qi=!0),(fa&134217727)===0&&(Qa&134217727)===0||Qe===null||pa(Qe,De,dn,!1)}function Sp(a,i,u){var c=Ue;Ue|=2;var p=z_(),y=U_();(Qe!==a||De!==i)&&(oc=null,to(a,i)),i=!1;var O=ht;e:do try{if(Ye!==0&&Re!==null){var R=Re,U=fn;switch(Ye){case 8:xp(),O=6;break e;case 3:case 2:case 9:case 6:sn.current===null&&(i=!0);var Q=Ye;if(Ye=0,fn=null,no(a,R,U,Q),u&&Qi){O=0;break e}break;default:Q=Ye,Ye=0,fn=null,no(a,R,U,Q)}}S4(),O=ht;break}catch(ne){q_(a,ne)}while(!0);return i&&a.shellSuspendCounter++,gr=Ha=null,Ue=c,k.H=p,k.A=y,Re===null&&(Qe=null,De=0,Ts()),O}function S4(){for(;Re!==null;)I_(Re)}function _4(a,i){var u=Ue;Ue|=2;var c=z_(),p=U_();Qe!==a||De!==i?(oc=null,ic=Ut()+500,to(a,i)):Qi=ul(a,i);e:do try{if(Ye!==0&&Re!==null){i=Re;var y=fn;t:switch(Ye){case 1:Ye=0,fn=null,no(a,i,y,1);break;case 2:case 9:if(Q1(y)){Ye=0,fn=null,H_(i);break}i=function(){Ye!==2&&Ye!==9||Qe!==a||(Ye=7),tr(a)},y.then(i,i);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:Q1(y)?(Ye=0,fn=null,H_(i)):(Ye=0,fn=null,no(a,i,y,7));break;case 5:var O=null;switch(Re.tag){case 26:O=Re.memoizedState;case 5:case 27:var R=Re;if(O?Tw(O):R.stateNode.complete){Ye=0,fn=null;var U=R.sibling;if(U!==null)Re=U;else{var Q=R.return;Q!==null?(Re=Q,sc(Q)):Re=null}break t}}Ye=0,fn=null,no(a,i,y,5);break;case 6:Ye=0,fn=null,no(a,i,y,6);break;case 8:xp(),ht=6;break e;default:throw Error(r(462))}}w4();break}catch(ne){q_(a,ne)}while(!0);return gr=Ha=null,k.H=c,k.A=p,Ue=u,Re!==null?0:(Qe=null,De=0,Ts(),ht)}function w4(){for(;Re!==null&&!dr();)I_(Re)}function I_(a){var i=d_(a.alternate,a,Tr);a.memoizedProps=a.pendingProps,i===null?sc(a):Re=i}function H_(a){var i=a,u=i.alternate;switch(i.tag){case 15:case 0:i=o_(u,i,i.pendingProps,i.type,void 0,De);break;case 11:i=o_(u,i,i.pendingProps,i.type.render,i.ref,De);break;case 5:$h(i);default:p_(u,i),i=Re=U1(i,Tr),i=d_(u,i,Tr)}a.memoizedProps=a.pendingProps,i===null?sc(a):Re=i}function no(a,i,u,c){gr=Ha=null,$h(i),Yi=null,Al=0;var p=i.return;try{if(f4(a,p,i,u,De)){ht=1,Ws(a,wn(u,a.current)),Re=null;return}}catch(y){if(p!==null)throw Re=p,y;ht=1,Ws(a,wn(u,a.current)),Re=null;return}i.flags&32768?($e||c===1?a=!0:Qi||(De&536870912)!==0?a=!1:(ca=a=!0,(c===2||c===9||c===3||c===6)&&(c=sn.current,c!==null&&c.tag===13&&(c.flags|=16384))),G_(i,a)):sc(i)}function sc(a){var i=a;do{if((i.flags&32768)!==0){G_(i,ca);return}a=i.return;var u=p4(i.alternate,i,Tr);if(u!==null){Re=u;return}if(i=i.sibling,i!==null){Re=i;return}Re=i=a}while(i!==null);ht===0&&(ht=5)}function G_(a,i){do{var u=m4(a.alternate,a);if(u!==null){u.flags&=32767,Re=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(a=a.sibling,a!==null)){Re=a;return}Re=a=u}while(a!==null);ht=6,Re=null}function Y_(a,i,u,c,p,y,O,R,U){a.cancelPendingCommit=null;do cc();while(wt!==0);if((Ue&6)!==0)throw Error(r(327));if(i!==null){if(i===a.current)throw Error(r(177));if(y=i.lanes|i.childLanes,y|=sh,nP(a,u,y,O,R,U),a===Qe&&(Re=Qe=null,De=0),eo=i,ha=a,Nr=u,yp=y,gp=p,D_=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,E4(ds,function(){return W_(),null})):(a.callbackNode=null,a.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=k.T,k.T=null,p=X.p,X.p=2,O=Ue,Ue|=4;try{v4(a,i,u)}finally{Ue=O,X.p=p,k.T=c}}wt=1,K_(),X_(),V_()}}function K_(){if(wt===1){wt=0;var a=ha,i=eo,u=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||u){u=k.T,k.T=null;var c=X.p;X.p=2;var p=Ue;Ue|=4;try{j_(i,a);var y=Pp,O=R1(a.containerInfo),R=y.focusedElem,U=y.selectionRange;if(O!==R&&R&&R.ownerDocument&&M1(R.ownerDocument.documentElement,R)){if(U!==null&&ah(R)){var Q=U.start,ne=U.end;if(ne===void 0&&(ne=Q),"selectionStart"in R)R.selectionStart=Q,R.selectionEnd=Math.min(ne,R.value.length);else{var ie=R.ownerDocument||document,J=ie&&ie.defaultView||window;if(J.getSelection){var ee=J.getSelection(),pe=R.textContent.length,be=Math.min(U.start,pe),Fe=U.end===void 0?be:Math.min(U.end,pe);!ee.extend&&be>Fe&&(O=Fe,Fe=be,be=O);var V=C1(R,be),G=C1(R,Fe);if(V&&G&&(ee.rangeCount!==1||ee.anchorNode!==V.node||ee.anchorOffset!==V.offset||ee.focusNode!==G.node||ee.focusOffset!==G.offset)){var Z=ie.createRange();Z.setStart(V.node,V.offset),ee.removeAllRanges(),be>Fe?(ee.addRange(Z),ee.extend(G.node,G.offset)):(Z.setEnd(G.node,G.offset),ee.addRange(Z))}}}}for(ie=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&ie.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ie.length;R++){var ae=ie[R];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}_c=!!Rp,Pp=Rp=null}finally{Ue=p,X.p=c,k.T=u}}a.current=i,wt=2}}function X_(){if(wt===2){wt=0;var a=ha,i=eo,u=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||u){u=k.T,k.T=null;var c=X.p;X.p=2;var p=Ue;Ue|=4;try{S_(a,i.alternate,i)}finally{Ue=p,X.p=c,k.T=u}}wt=3}}function V_(){if(wt===4||wt===3){wt=0,ol();var a=ha,i=eo,u=Nr,c=D_;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?wt=5:(wt=0,eo=ha=null,F_(a,a.pendingLanes));var p=a.pendingLanes;if(p===0&&(da=null),Bd(u),i=i.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(ll,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=k.T,p=X.p,X.p=2,k.T=null;try{for(var y=a.onRecoverableError,O=0;O<c.length;O++){var R=c[O];y(R.value,{componentStack:R.stack})}}finally{k.T=i,X.p=p}}(Nr&3)!==0&&cc(),tr(a),p=a.pendingLanes,(u&261930)!==0&&(p&42)!==0?a===bp?Il++:(Il=0,bp=a):Il=0,Hl(0)}}function F_(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,wl(i)))}function cc(){return K_(),X_(),V_(),W_()}function W_(){if(wt!==5)return!1;var a=ha,i=yp;yp=0;var u=Bd(Nr),c=k.T,p=X.p;try{X.p=32>u?32:u,k.T=null,u=gp,gp=null;var y=ha,O=Nr;if(wt=0,eo=ha=null,Nr=0,(Ue&6)!==0)throw Error(r(331));var R=Ue;if(Ue|=4,M_(y.current),T_(y,y.current,O,u),Ue=R,Hl(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(ll,y)}catch{}return!0}finally{X.p=p,k.T=c,F_(a,i)}}function Z_(a,i,u){i=wn(u,i),i=Zh(a.stateNode,i,2),a=oa(a,i,2),a!==null&&(sl(a,2),tr(a))}function Ke(a,i,u){if(a.tag===3)Z_(a,a,u);else for(;i!==null;){if(i.tag===3){Z_(i,a,u);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(da===null||!da.has(c))){a=wn(u,a),u=QS(2),c=oa(i,u,2),c!==null&&(JS(u,c,i,a),sl(c,2),tr(c));break}}i=i.return}}function _p(a,i,u){var c=a.pingCache;if(c===null){c=a.pingCache=new b4;var p=new Set;c.set(i,p)}else p=c.get(i),p===void 0&&(p=new Set,c.set(i,p));p.has(u)||(pp=!0,p.add(u),a=O4.bind(null,a,i,u),i.then(a,a))}function O4(a,i,u){var c=a.pingCache;c!==null&&c.delete(i),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,Qe===a&&(De&u)===u&&(ht===4||ht===3&&(De&62914560)===De&&300>Ut()-ac?(Ue&2)===0&&to(a,0):mp|=u,Ji===De&&(Ji=0)),tr(a)}function Q_(a,i){i===0&&(i=Kx()),a=za(a,i),a!==null&&(sl(a,i),tr(a))}function A4(a){var i=a.memoizedState,u=0;i!==null&&(u=i.retryLane),Q_(a,u)}function j4(a,i){var u=0;switch(a.tag){case 31:case 13:var c=a.stateNode,p=a.memoizedState;p!==null&&(u=p.retryLane);break;case 19:c=a.stateNode;break;case 22:c=a.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(i),Q_(a,u)}function E4(a,i){return Wr(a,i)}var fc=null,ro=null,wp=!1,dc=!1,Op=!1,ma=0;function tr(a){a!==ro&&a.next===null&&(ro===null?fc=ro=a:ro=ro.next=a),dc=!0,wp||(wp=!0,N4())}function Hl(a,i){if(!Op&&dc){Op=!0;do for(var u=!1,c=fc;c!==null;){if(a!==0){var p=c.pendingLanes;if(p===0)var y=0;else{var O=c.suspendedLanes,R=c.pingedLanes;y=(1<<31-on(42|a)+1)-1,y&=p&~(O&~R),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(u=!0,nw(c,y))}else y=De,y=vs(c,c===Qe?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||ul(c,y)||(u=!0,nw(c,y));c=c.next}while(u);Op=!1}}function T4(){J_()}function J_(){dc=wp=!1;var a=0;ma!==0&&B4()&&(a=ma);for(var i=Ut(),u=null,c=fc;c!==null;){var p=c.next,y=ew(c,i);y===0?(c.next=null,u===null?fc=p:u.next=p,p===null&&(ro=u)):(u=c,(a!==0||(y&3)!==0)&&(dc=!0)),c=p}wt!==0&&wt!==5||Hl(a),ma!==0&&(ma=0)}function ew(a,i){for(var u=a.suspendedLanes,c=a.pingedLanes,p=a.expirationTimes,y=a.pendingLanes&-62914561;0<y;){var O=31-on(y),R=1<<O,U=p[O];U===-1?((R&u)===0||(R&c)!==0)&&(p[O]=tP(R,i)):U<=i&&(a.expiredLanes|=R),y&=~R}if(i=Qe,u=De,u=vs(a,a===i?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c=a.callbackNode,u===0||a===i&&(Ye===2||Ye===9)||a.cancelPendingCommit!==null)return c!==null&&c!==null&&Un(c),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||ul(a,u)){if(i=u&-u,i===a.callbackPriority)return i;switch(c!==null&&Un(c),Bd(u)){case 2:case 8:u=Gx;break;case 32:u=ds;break;case 268435456:u=Yx;break;default:u=ds}return c=tw.bind(null,a),u=Wr(u,c),a.callbackPriority=i,a.callbackNode=u,i}return c!==null&&c!==null&&Un(c),a.callbackPriority=2,a.callbackNode=null,2}function tw(a,i){if(wt!==0&&wt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(cc()&&a.callbackNode!==u)return null;var c=De;return c=vs(a,a===Qe?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c===0?null:($_(a,c,i),ew(a,Ut()),a.callbackNode!=null&&a.callbackNode===u?tw.bind(null,a):null)}function nw(a,i){if(cc())return null;$_(a,i,!0)}function N4(){U4(function(){(Ue&6)!==0?Wr(Hx,T4):J_()})}function Ap(){if(ma===0){var a=Ii;a===0&&(a=hs,hs<<=1,(hs&261888)===0&&(hs=256)),ma=a}return ma}function rw(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:xs(""+a)}function aw(a,i){var u=i.ownerDocument.createElement("input");return u.name=i.name,u.value=i.value,a.id&&u.setAttribute("form",a.id),i.parentNode.insertBefore(u,i),a=new FormData(a),u.parentNode.removeChild(u),a}function C4(a,i,u,c,p){if(i==="submit"&&u&&u.stateNode===p){var y=rw((p[Vt]||null).action),O=c.submitter;O&&(i=(i=O[Vt]||null)?rw(i.formAction):O.getAttribute("formAction"),i!==null&&(y=i,O=null));var R=new Os("action","action",null,c,p);a.push({event:R,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ma!==0){var U=O?aw(p,O):new FormData(p);Yh(u,{pending:!0,data:U,method:p.method,action:y},null,U)}}else typeof y=="function"&&(R.preventDefault(),U=O?aw(p,O):new FormData(p),Yh(u,{pending:!0,data:U,method:p.method,action:y},y,U))},currentTarget:p}]})}}for(var jp=0;jp<uh.length;jp++){var Ep=uh[jp],M4=Ep.toLowerCase(),R4=Ep[0].toUpperCase()+Ep.slice(1);In(M4,"on"+R4)}In(k1,"onAnimationEnd"),In($1,"onAnimationIteration"),In(L1,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(VP,"onTransitionRun"),In(FP,"onTransitionStart"),In(WP,"onTransitionCancel"),In(q1,"onTransitionEnd"),Ti("onMouseEnter",["mouseout","mouseover"]),Ti("onMouseLeave",["mouseout","mouseover"]),Ti("onPointerEnter",["pointerout","pointerover"]),Ti("onPointerLeave",["pointerout","pointerover"]),$a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$a("onBeforeInput",["compositionend","keypress","textInput","paste"]),$a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gl="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(" "),P4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gl));function iw(a,i){i=(i&4)!==0;for(var u=0;u<a.length;u++){var c=a[u],p=c.event;c=c.listeners;e:{var y=void 0;if(i)for(var O=c.length-1;0<=O;O--){var R=c[O],U=R.instance,Q=R.currentTarget;if(R=R.listener,U!==y&&p.isPropagationStopped())break e;y=R,p.currentTarget=Q;try{y(p)}catch(ne){Es(ne)}p.currentTarget=null,y=U}else for(O=0;O<c.length;O++){if(R=c[O],U=R.instance,Q=R.currentTarget,R=R.listener,U!==y&&p.isPropagationStopped())break e;y=R,p.currentTarget=Q;try{y(p)}catch(ne){Es(ne)}p.currentTarget=null,y=U}}}}function Pe(a,i){var u=i[zd];u===void 0&&(u=i[zd]=new Set);var c=a+"__bubble";u.has(c)||(ow(i,a,2,!1),u.add(c))}function Tp(a,i,u){var c=0;i&&(c|=4),ow(u,a,c,i)}var hc="_reactListening"+Math.random().toString(36).slice(2);function Np(a){if(!a[hc]){a[hc]=!0,Jx.forEach(function(u){u!=="selectionchange"&&(P4.has(u)||Tp(u,!1,a),Tp(u,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[hc]||(i[hc]=!0,Tp("selectionchange",!1,i))}}function ow(a,i,u,c){switch(kw(i)){case 2:var p=l5;break;case 8:p=u5;break;default:p=Gp}u=p.bind(null,i,u,a),p=void 0,!Fd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),c?p!==void 0?a.addEventListener(i,u,{capture:!0,passive:p}):a.addEventListener(i,u,!0):p!==void 0?a.addEventListener(i,u,{passive:p}):a.addEventListener(i,u,!1)}function Cp(a,i,u,c,p){var y=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var O=c.tag;if(O===3||O===4){var R=c.stateNode.containerInfo;if(R===p)break;if(O===4)for(O=c.return;O!==null;){var U=O.tag;if((U===3||U===4)&&O.stateNode.containerInfo===p)return;O=O.return}for(;R!==null;){if(O=Ai(R),O===null)return;if(U=O.tag,U===5||U===6||U===26||U===27){c=y=O;continue e}R=R.parentNode}}c=c.return}f1(function(){var Q=y,ne=Xd(u),ie=[];e:{var J=B1.get(a);if(J!==void 0){var ee=Os,pe=a;switch(a){case"keypress":if(_s(u)===0)break e;case"keydown":case"keyup":ee=jP;break;case"focusin":pe="focus",ee=Jd;break;case"focusout":pe="blur",ee=Jd;break;case"beforeblur":case"afterblur":ee=Jd;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=p1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=pP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=NP;break;case k1:case $1:case L1:ee=yP;break;case q1:ee=MP;break;case"scroll":case"scrollend":ee=dP;break;case"wheel":ee=PP;break;case"copy":case"cut":case"paste":ee=bP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=v1;break;case"toggle":case"beforetoggle":ee=kP}var be=(i&4)!==0,Fe=!be&&(a==="scroll"||a==="scrollend"),V=be?J!==null?J+"Capture":null:J;be=[];for(var G=Q,Z;G!==null;){var ae=G;if(Z=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Z===null||V===null||(ae=dl(G,V),ae!=null&&be.push(Yl(G,ae,Z))),Fe)break;G=G.return}0<be.length&&(J=new ee(J,pe,null,u,ne),ie.push({event:J,listeners:be}))}}if((i&7)===0){e:{if(J=a==="mouseover"||a==="pointerover",ee=a==="mouseout"||a==="pointerout",J&&u!==Kd&&(pe=u.relatedTarget||u.fromElement)&&(Ai(pe)||pe[Oi]))break e;if((ee||J)&&(J=ne.window===ne?ne:(J=ne.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(pe=u.relatedTarget||u.toElement,ee=Q,pe=pe?Ai(pe):null,pe!==null&&(Fe=l(pe),be=pe.tag,pe!==Fe||be!==5&&be!==27&&be!==6)&&(pe=null)):(ee=null,pe=Q),ee!==pe)){if(be=p1,ae="onMouseLeave",V="onMouseEnter",G="mouse",(a==="pointerout"||a==="pointerover")&&(be=v1,ae="onPointerLeave",V="onPointerEnter",G="pointer"),Fe=ee==null?J:fl(ee),Z=pe==null?J:fl(pe),J=new be(ae,G+"leave",ee,u,ne),J.target=Fe,J.relatedTarget=Z,ae=null,Ai(ne)===Q&&(be=new be(V,G+"enter",pe,u,ne),be.target=Z,be.relatedTarget=Fe,ae=be),Fe=ae,ee&&pe)t:{for(be=D4,V=ee,G=pe,Z=0,ae=V;ae;ae=be(ae))Z++;ae=0;for(var ve=G;ve;ve=be(ve))ae++;for(;0<Z-ae;)V=be(V),Z--;for(;0<ae-Z;)G=be(G),ae--;for(;Z--;){if(V===G||G!==null&&V===G.alternate){be=V;break t}V=be(V),G=be(G)}be=null}else be=null;ee!==null&&lw(ie,J,ee,be,!1),pe!==null&&Fe!==null&&lw(ie,Fe,pe,be,!0)}}e:{if(J=Q?fl(Q):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var qe=O1;else if(_1(J))if(A1)qe=YP;else{qe=HP;var me=IP}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Q&&Yd(Q.elementType)&&(qe=O1):qe=GP;if(qe&&(qe=qe(a,Q))){w1(ie,qe,u,ne);break e}me&&me(a,J,Q),a==="focusout"&&Q&&J.type==="number"&&Q.memoizedProps.value!=null&&Gd(J,"number",J.value)}switch(me=Q?fl(Q):window,a){case"focusin":(_1(me)||me.contentEditable==="true")&&(Di=me,ih=Q,xl=null);break;case"focusout":xl=ih=Di=null;break;case"mousedown":oh=!0;break;case"contextmenu":case"mouseup":case"dragend":oh=!1,P1(ie,u,ne);break;case"selectionchange":if(XP)break;case"keydown":case"keyup":P1(ie,u,ne)}var Te;if(th)e:{switch(a){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Pi?x1(a,u)&&(ke="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(ke="onCompositionStart");ke&&(y1&&u.locale!=="ko"&&(Pi||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Pi&&(Te=d1()):(Jr=ne,Wd="value"in Jr?Jr.value:Jr.textContent,Pi=!0)),me=pc(Q,ke),0<me.length&&(ke=new m1(ke,a,null,u,ne),ie.push({event:ke,listeners:me}),Te?ke.data=Te:(Te=S1(u),Te!==null&&(ke.data=Te)))),(Te=LP?qP(a,u):BP(a,u))&&(ke=pc(Q,"onBeforeInput"),0<ke.length&&(me=new m1("onBeforeInput","beforeinput",null,u,ne),ie.push({event:me,listeners:ke}),me.data=Te)),C4(ie,a,Q,u,ne)}iw(ie,i)})}function Yl(a,i,u){return{instance:a,listener:i,currentTarget:u}}function pc(a,i){for(var u=i+"Capture",c=[];a!==null;){var p=a,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=dl(a,u),p!=null&&c.unshift(Yl(a,p,y)),p=dl(a,i),p!=null&&c.push(Yl(a,p,y))),a.tag===3)return c;a=a.return}return[]}function D4(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function lw(a,i,u,c,p){for(var y=i._reactName,O=[];u!==null&&u!==c;){var R=u,U=R.alternate,Q=R.stateNode;if(R=R.tag,U!==null&&U===c)break;R!==5&&R!==26&&R!==27||Q===null||(U=Q,p?(Q=dl(u,y),Q!=null&&O.unshift(Yl(u,Q,U))):p||(Q=dl(u,y),Q!=null&&O.push(Yl(u,Q,U)))),u=u.return}O.length!==0&&a.push({event:i,listeners:O})}var k4=/\r\n?/g,$4=/\u0000|\uFFFD/g;function uw(a){return(typeof a=="string"?a:""+a).replace(k4,`
|
|
49
|
+
`).replace($4,"")}function sw(a,i){return i=uw(i),uw(a)===i}function Ve(a,i,u,c,p,y){switch(u){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||Ci(a,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&Ci(a,""+c);break;case"className":gs(a,"class",c);break;case"tabIndex":gs(a,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":gs(a,u,c);break;case"style":s1(a,c,y);break;case"data":if(i!=="object"){gs(a,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||u!=="href")){a.removeAttribute(u);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(u);break}c=xs(""+c),a.setAttribute(u,c);break;case"action":case"formAction":if(typeof c=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(u==="formAction"?(i!=="input"&&Ve(a,i,"name",p.name,p,null),Ve(a,i,"formEncType",p.formEncType,p,null),Ve(a,i,"formMethod",p.formMethod,p,null),Ve(a,i,"formTarget",p.formTarget,p,null)):(Ve(a,i,"encType",p.encType,p,null),Ve(a,i,"method",p.method,p,null),Ve(a,i,"target",p.target,p,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(u);break}c=xs(""+c),a.setAttribute(u,c);break;case"onClick":c!=null&&(a.onclick=pr);break;case"onScroll":c!=null&&Pe("scroll",a);break;case"onScrollEnd":c!=null&&Pe("scrollend",a);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(u=c.__html,u!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":a.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){a.removeAttribute("xlink:href");break}u=xs(""+c),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,""+c):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":c===!0?a.setAttribute(u,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(u,c):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?a.setAttribute(u,c):a.removeAttribute(u);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?a.removeAttribute(u):a.setAttribute(u,c);break;case"popover":Pe("beforetoggle",a),Pe("toggle",a),ys(a,"popover",c);break;case"xlinkActuate":hr(a,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":hr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":hr(a,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":hr(a,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":hr(a,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":hr(a,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":hr(a,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":hr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":hr(a,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":ys(a,"is",c);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=cP.get(u)||u,ys(a,u,c))}}function Mp(a,i,u,c,p,y){switch(u){case"style":s1(a,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(u=c.__html,u!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof c=="string"?Ci(a,c):(typeof c=="number"||typeof c=="bigint")&&Ci(a,""+c);break;case"onScroll":c!=null&&Pe("scroll",a);break;case"onScrollEnd":c!=null&&Pe("scrollend",a);break;case"onClick":c!=null&&(a.onclick=pr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!e1.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(p=u.endsWith("Capture"),i=u.slice(2,p?u.length-7:void 0),y=a[Vt]||null,y=y!=null?y[u]:null,typeof y=="function"&&a.removeEventListener(i,y,p),typeof c=="function")){typeof y!="function"&&y!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(i,c,p);break e}u in a?a[u]=c:c===!0?a.setAttribute(u,""):ys(a,u,c)}}}function qt(a,i,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",a),Pe("load",a);var c=!1,p=!1,y;for(y in u)if(u.hasOwnProperty(y)){var O=u[y];if(O!=null)switch(y){case"src":c=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ve(a,i,y,O,u,null)}}p&&Ve(a,i,"srcSet",u.srcSet,u,null),c&&Ve(a,i,"src",u.src,u,null);return;case"input":Pe("invalid",a);var R=y=O=p=null,U=null,Q=null;for(c in u)if(u.hasOwnProperty(c)){var ne=u[c];if(ne!=null)switch(c){case"name":p=ne;break;case"type":O=ne;break;case"checked":U=ne;break;case"defaultChecked":Q=ne;break;case"value":y=ne;break;case"defaultValue":R=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,i));break;default:Ve(a,i,c,ne,u,null)}}i1(a,y,R,U,Q,O,p,!1);return;case"select":Pe("invalid",a),c=O=y=null;for(p in u)if(u.hasOwnProperty(p)&&(R=u[p],R!=null))switch(p){case"value":y=R;break;case"defaultValue":O=R;break;case"multiple":c=R;default:Ve(a,i,p,R,u,null)}i=y,u=O,a.multiple=!!c,i!=null?Ni(a,!!c,i,!1):u!=null&&Ni(a,!!c,u,!0);return;case"textarea":Pe("invalid",a),y=p=c=null;for(O in u)if(u.hasOwnProperty(O)&&(R=u[O],R!=null))switch(O){case"value":c=R;break;case"defaultValue":p=R;break;case"children":y=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:Ve(a,i,O,R,u,null)}l1(a,c,p,y);return;case"option":for(U in u)u.hasOwnProperty(U)&&(c=u[U],c!=null)&&(U==="selected"?a.selected=c&&typeof c!="function"&&typeof c!="symbol":Ve(a,i,U,c,u,null));return;case"dialog":Pe("beforetoggle",a),Pe("toggle",a),Pe("cancel",a),Pe("close",a);break;case"iframe":case"object":Pe("load",a);break;case"video":case"audio":for(c=0;c<Gl.length;c++)Pe(Gl[c],a);break;case"image":Pe("error",a),Pe("load",a);break;case"details":Pe("toggle",a);break;case"embed":case"source":case"link":Pe("error",a),Pe("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in u)if(u.hasOwnProperty(Q)&&(c=u[Q],c!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ve(a,i,Q,c,u,null)}return;default:if(Yd(i)){for(ne in u)u.hasOwnProperty(ne)&&(c=u[ne],c!==void 0&&Mp(a,i,ne,c,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(c=u[R],c!=null&&Ve(a,i,R,c,u,null))}function L4(a,i,u,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,O=null,R=null,U=null,Q=null,ne=null;for(ee in u){var ie=u[ee];if(u.hasOwnProperty(ee)&&ie!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":U=ie;default:c.hasOwnProperty(ee)||Ve(a,i,ee,null,c,ie)}}for(var J in c){var ee=c[J];if(ie=u[J],c.hasOwnProperty(J)&&(ee!=null||ie!=null))switch(J){case"type":y=ee;break;case"name":p=ee;break;case"checked":Q=ee;break;case"defaultChecked":ne=ee;break;case"value":O=ee;break;case"defaultValue":R=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,i));break;default:ee!==ie&&Ve(a,i,J,ee,c,ie)}}Hd(a,O,R,U,Q,ne,y,p);return;case"select":ee=O=R=J=null;for(y in u)if(U=u[y],u.hasOwnProperty(y)&&U!=null)switch(y){case"value":break;case"multiple":ee=U;default:c.hasOwnProperty(y)||Ve(a,i,y,null,c,U)}for(p in c)if(y=c[p],U=u[p],c.hasOwnProperty(p)&&(y!=null||U!=null))switch(p){case"value":J=y;break;case"defaultValue":R=y;break;case"multiple":O=y;default:y!==U&&Ve(a,i,p,y,c,U)}i=R,u=O,c=ee,J!=null?Ni(a,!!u,J,!1):!!c!=!!u&&(i!=null?Ni(a,!!u,i,!0):Ni(a,!!u,u?[]:"",!1));return;case"textarea":ee=J=null;for(R in u)if(p=u[R],u.hasOwnProperty(R)&&p!=null&&!c.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ve(a,i,R,null,c,p)}for(O in c)if(p=c[O],y=u[O],c.hasOwnProperty(O)&&(p!=null||y!=null))switch(O){case"value":J=p;break;case"defaultValue":ee=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==y&&Ve(a,i,O,p,c,y)}o1(a,J,ee);return;case"option":for(var pe in u)J=u[pe],u.hasOwnProperty(pe)&&J!=null&&!c.hasOwnProperty(pe)&&(pe==="selected"?a.selected=!1:Ve(a,i,pe,null,c,J));for(U in c)J=c[U],ee=u[U],c.hasOwnProperty(U)&&J!==ee&&(J!=null||ee!=null)&&(U==="selected"?a.selected=J&&typeof J!="function"&&typeof J!="symbol":Ve(a,i,U,J,c,ee));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in u)J=u[be],u.hasOwnProperty(be)&&J!=null&&!c.hasOwnProperty(be)&&Ve(a,i,be,null,c,J);for(Q in c)if(J=c[Q],ee=u[Q],c.hasOwnProperty(Q)&&J!==ee&&(J!=null||ee!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,i));break;default:Ve(a,i,Q,J,c,ee)}return;default:if(Yd(i)){for(var Fe in u)J=u[Fe],u.hasOwnProperty(Fe)&&J!==void 0&&!c.hasOwnProperty(Fe)&&Mp(a,i,Fe,void 0,c,J);for(ne in c)J=c[ne],ee=u[ne],!c.hasOwnProperty(ne)||J===ee||J===void 0&&ee===void 0||Mp(a,i,ne,J,c,ee);return}}for(var V in u)J=u[V],u.hasOwnProperty(V)&&J!=null&&!c.hasOwnProperty(V)&&Ve(a,i,V,null,c,J);for(ie in c)J=c[ie],ee=u[ie],!c.hasOwnProperty(ie)||J===ee||J==null&&ee==null||Ve(a,i,ie,J,c,ee)}function cw(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function q4(){if(typeof performance.getEntriesByType=="function"){for(var a=0,i=0,u=performance.getEntriesByType("resource"),c=0;c<u.length;c++){var p=u[c],y=p.transferSize,O=p.initiatorType,R=p.duration;if(y&&R&&cw(O)){for(O=0,R=p.responseEnd,c+=1;c<u.length;c++){var U=u[c],Q=U.startTime;if(Q>R)break;var ne=U.transferSize,ie=U.initiatorType;ne&&cw(ie)&&(U=U.responseEnd,O+=ne*(U<R?1:(R-Q)/(U-Q)))}if(--c,i+=8*(y+O)/(p.duration/1e3),a++,10<a)break}}if(0<a)return i/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Rp=null,Pp=null;function mc(a){return a.nodeType===9?a:a.ownerDocument}function fw(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dw(a,i){if(a===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&i==="foreignObject"?0:a}function Dp(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var kp=null;function B4(){var a=window.event;return a&&a.type==="popstate"?a===kp?!1:(kp=a,!0):(kp=null,!1)}var hw=typeof setTimeout=="function"?setTimeout:void 0,z4=typeof clearTimeout=="function"?clearTimeout:void 0,pw=typeof Promise=="function"?Promise:void 0,U4=typeof queueMicrotask=="function"?queueMicrotask:typeof pw<"u"?function(a){return pw.resolve(null).then(a).catch(I4)}:hw;function I4(a){setTimeout(function(){throw a})}function va(a){return a==="head"}function mw(a,i){var u=i,c=0;do{var p=u.nextSibling;if(a.removeChild(u),p&&p.nodeType===8)if(u=p.data,u==="/$"||u==="/&"){if(c===0){a.removeChild(p),lo(i);return}c--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")c++;else if(u==="html")Kl(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Kl(u);for(var y=u.firstChild;y;){var O=y.nextSibling,R=y.nodeName;y[cl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&y.rel.toLowerCase()==="stylesheet"||u.removeChild(y),y=O}}else u==="body"&&Kl(a.ownerDocument.body);u=p}while(u);lo(i)}function vw(a,i){var u=a;a=0;do{var c=u.nextSibling;if(u.nodeType===1?i?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(i?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),c&&c.nodeType===8)if(u=c.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=c}while(u)}function $p(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var u=i;switch(i=i.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":$p(u),Ud(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function H4(a,i,u,c){for(;a.nodeType===1;){var p=u;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(c){if(!a[cl])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(y=a.getAttribute("rel"),y==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(y!==p.rel||a.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||a.getAttribute("title")!==(p.title==null?null:p.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(y=a.getAttribute("src"),(y!==(p.src==null?null:p.src)||a.getAttribute("type")!==(p.type==null?null:p.type)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&a.getAttribute("name")===y)return a}else return a;if(a=Tn(a.nextSibling),a===null)break}return null}function G4(a,i,u){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=Tn(a.nextSibling),a===null))return null;return a}function yw(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=Tn(a.nextSibling),a===null))return null;return a}function Lp(a){return a.data==="$?"||a.data==="$~"}function qp(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function Y4(a,i){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=i;else if(a.data!=="$?"||u.readyState!=="loading")i();else{var c=function(){i(),u.removeEventListener("DOMContentLoaded",c)};u.addEventListener("DOMContentLoaded",c),a._reactRetry=c}}function Tn(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return a}var Bp=null;function gw(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(i===0)return Tn(a.nextSibling);i--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||i++}a=a.nextSibling}return null}function bw(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(i===0)return a;i--}else u!=="/$"&&u!=="/&"||i++}a=a.previousSibling}return null}function xw(a,i,u){switch(i=mc(u),a){case"html":if(a=i.documentElement,!a)throw Error(r(452));return a;case"head":if(a=i.head,!a)throw Error(r(453));return a;case"body":if(a=i.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Kl(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);Ud(a)}var Nn=new Map,Sw=new Set;function vc(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Cr=X.d;X.d={f:K4,r:X4,D:V4,C:F4,L:W4,m:Z4,X:J4,S:Q4,M:e5};function K4(){var a=Cr.f(),i=lc();return a||i}function X4(a){var i=ji(a);i!==null&&i.tag===5&&i.type==="form"?qS(i):Cr.r(a)}var ao=typeof document>"u"?null:document;function _w(a,i,u){var c=ao;if(c&&typeof i=="string"&&i){var p=Sn(i);p='link[rel="'+a+'"][href="'+p+'"]',typeof u=="string"&&(p+='[crossorigin="'+u+'"]'),Sw.has(p)||(Sw.add(p),a={rel:a,crossOrigin:u,href:i},c.querySelector(p)===null&&(i=c.createElement("link"),qt(i,"link",a),Nt(i),c.head.appendChild(i)))}}function V4(a){Cr.D(a),_w("dns-prefetch",a,null)}function F4(a,i){Cr.C(a,i),_w("preconnect",a,i)}function W4(a,i,u){Cr.L(a,i,u);var c=ao;if(c&&a&&i){var p='link[rel="preload"][as="'+Sn(i)+'"]';i==="image"&&u&&u.imageSrcSet?(p+='[imagesrcset="'+Sn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(p+='[imagesizes="'+Sn(u.imageSizes)+'"]')):p+='[href="'+Sn(a)+'"]';var y=p;switch(i){case"style":y=io(a);break;case"script":y=oo(a)}Nn.has(y)||(a=m({rel:"preload",href:i==="image"&&u&&u.imageSrcSet?void 0:a,as:i},u),Nn.set(y,a),c.querySelector(p)!==null||i==="style"&&c.querySelector(Xl(y))||i==="script"&&c.querySelector(Vl(y))||(i=c.createElement("link"),qt(i,"link",a),Nt(i),c.head.appendChild(i)))}}function Z4(a,i){Cr.m(a,i);var u=ao;if(u&&a){var c=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+Sn(c)+'"][href="'+Sn(a)+'"]',y=p;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=oo(a)}if(!Nn.has(y)&&(a=m({rel:"modulepreload",href:a},i),Nn.set(y,a),u.querySelector(p)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Vl(y)))return}c=u.createElement("link"),qt(c,"link",a),Nt(c),u.head.appendChild(c)}}}function Q4(a,i,u){Cr.S(a,i,u);var c=ao;if(c&&a){var p=Ei(c).hoistableStyles,y=io(a);i=i||"default";var O=p.get(y);if(!O){var R={loading:0,preload:null};if(O=c.querySelector(Xl(y)))R.loading=5;else{a=m({rel:"stylesheet",href:a,"data-precedence":i},u),(u=Nn.get(y))&&zp(a,u);var U=O=c.createElement("link");Nt(U),qt(U,"link",a),U._p=new Promise(function(Q,ne){U.onload=Q,U.onerror=ne}),U.addEventListener("load",function(){R.loading|=1}),U.addEventListener("error",function(){R.loading|=2}),R.loading|=4,yc(O,i,c)}O={type:"stylesheet",instance:O,count:1,state:R},p.set(y,O)}}}function J4(a,i){Cr.X(a,i);var u=ao;if(u&&a){var c=Ei(u).hoistableScripts,p=oo(a),y=c.get(p);y||(y=u.querySelector(Vl(p)),y||(a=m({src:a,async:!0},i),(i=Nn.get(p))&&Up(a,i),y=u.createElement("script"),Nt(y),qt(y,"link",a),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(p,y))}}function e5(a,i){Cr.M(a,i);var u=ao;if(u&&a){var c=Ei(u).hoistableScripts,p=oo(a),y=c.get(p);y||(y=u.querySelector(Vl(p)),y||(a=m({src:a,async:!0,type:"module"},i),(i=Nn.get(p))&&Up(a,i),y=u.createElement("script"),Nt(y),qt(y,"link",a),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(p,y))}}function ww(a,i,u,c){var p=(p=ge.current)?vc(p):null;if(!p)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(i=io(u.href),u=Ei(p).hoistableStyles,c=u.get(i),c||(c={type:"style",instance:null,count:0,state:null},u.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=io(u.href);var y=Ei(p).hoistableStyles,O=y.get(a);if(O||(p=p.ownerDocument||p,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(a,O),(y=p.querySelector(Xl(a)))&&!y._p&&(O.instance=y,O.state.loading=5),Nn.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Nn.set(a,u),y||t5(p,a,u,O.state))),i&&c===null)throw Error(r(528,""));return O}if(i&&c!==null)throw Error(r(529,""));return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=oo(u),u=Ei(p).hoistableScripts,c=u.get(i),c||(c={type:"script",instance:null,count:0,state:null},u.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function io(a){return'href="'+Sn(a)+'"'}function Xl(a){return'link[rel="stylesheet"]['+a+"]"}function Ow(a){return m({},a,{"data-precedence":a.precedence,precedence:null})}function t5(a,i,u,c){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=a.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),qt(i,"link",u),Nt(i),a.head.appendChild(i))}function oo(a){return'[src="'+Sn(a)+'"]'}function Vl(a){return"script[async]"+a}function Aw(a,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var c=a.querySelector('style[data-href~="'+Sn(u.href)+'"]');if(c)return i.instance=c,Nt(c),c;var p=m({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return c=(a.ownerDocument||a).createElement("style"),Nt(c),qt(c,"style",p),yc(c,u.precedence,a),i.instance=c;case"stylesheet":p=io(u.href);var y=a.querySelector(Xl(p));if(y)return i.state.loading|=4,i.instance=y,Nt(y),y;c=Ow(u),(p=Nn.get(p))&&zp(c,p),y=(a.ownerDocument||a).createElement("link"),Nt(y);var O=y;return O._p=new Promise(function(R,U){O.onload=R,O.onerror=U}),qt(y,"link",c),i.state.loading|=4,yc(y,u.precedence,a),i.instance=y;case"script":return y=oo(u.src),(p=a.querySelector(Vl(y)))?(i.instance=p,Nt(p),p):(c=u,(p=Nn.get(y))&&(c=m({},u),Up(c,p)),a=a.ownerDocument||a,p=a.createElement("script"),Nt(p),qt(p,"link",c),a.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,yc(c,u.precedence,a));return i.instance}function yc(a,i,u){for(var c=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=c.length?c[c.length-1]:null,y=p,O=0;O<c.length;O++){var R=c[O];if(R.dataset.precedence===i)y=R;else if(y!==p)break}y?y.parentNode.insertBefore(a,y.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(a,i.firstChild))}function zp(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function Up(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var gc=null;function jw(a,i,u){if(gc===null){var c=new Map,p=gc=new Map;p.set(u,c)}else p=gc,c=p.get(u),c||(c=new Map,p.set(u,c));if(c.has(a))return c;for(c.set(a,null),u=u.getElementsByTagName(a),p=0;p<u.length;p++){var y=u[p];if(!(y[cl]||y[Dt]||a==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var O=y.getAttribute(i)||"";O=a+O;var R=c.get(O);R?R.push(y):c.set(O,[y])}}return c}function Ew(a,i,u){a=a.ownerDocument||a,a.head.insertBefore(u,i==="title"?a.querySelector("head > title"):null)}function n5(a,i,u){if(u===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(a=i.disabled,typeof i.precedence=="string"&&a==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Tw(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function r5(a,i,u,c){if(u.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var p=io(c.href),y=i.querySelector(Xl(p));if(y){i=y._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=bc.bind(a),i.then(a,a)),u.state.loading|=4,u.instance=y,Nt(y);return}y=i.ownerDocument||i,c=Ow(c),(p=Nn.get(p))&&zp(c,p),y=y.createElement("link"),Nt(y);var O=y;O._p=new Promise(function(R,U){O.onload=R,O.onerror=U}),qt(y,"link",c),u.instance=y}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,i),(i=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=bc.bind(a),i.addEventListener("load",u),i.addEventListener("error",u))}}var Ip=0;function a5(a,i){return a.stylesheets&&a.count===0&&Sc(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var c=setTimeout(function(){if(a.stylesheets&&Sc(a,a.stylesheets),a.unsuspend){var y=a.unsuspend;a.unsuspend=null,y()}},6e4+i);0<a.imgBytes&&Ip===0&&(Ip=62500*q4());var p=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Sc(a,a.stylesheets),a.unsuspend)){var y=a.unsuspend;a.unsuspend=null,y()}},(a.imgBytes>Ip?50:800)+i);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(c),clearTimeout(p)}}:null}function bc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Sc(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var xc=null;function Sc(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,xc=new Map,i.forEach(i5,a),xc=null,bc.call(a))}function i5(a,i){if(!(i.state.loading&4)){var u=xc.get(a);if(u)var c=u.get(null);else{u=new Map,xc.set(a,u);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var O=p[y];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(u.set(O.dataset.precedence,O),c=O)}c&&u.set(null,c)}p=i.instance,O=p.getAttribute("data-precedence"),y=u.get(O)||c,y===c&&u.set(null,p),u.set(O,p),this.count++,c=bc.bind(this),p.addEventListener("load",c),p.addEventListener("error",c),y?y.parentNode.insertBefore(p,y.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(p,a.firstChild)),i.state.loading|=4}}var Fl={$$typeof:T,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function o5(a,i,u,c,p,y,O,R,U){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ld(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ld(0),this.hiddenUpdates=Ld(null),this.identifierPrefix=c,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function Nw(a,i,u,c,p,y,O,R,U,Q,ne,ie){return a=new o5(a,i,u,O,U,Q,ne,ie,R),i=1,y===!0&&(i|=24),y=un(3,null,null,i),a.current=y,y.stateNode=a,i=Sh(),i.refCount++,a.pooledCache=i,i.refCount++,y.memoizedState={element:c,isDehydrated:u,cache:i},Ah(y),a}function Cw(a){return a?(a=Li,a):Li}function Mw(a,i,u,c,p,y){p=Cw(p),c.context===null?c.context=p:c.pendingContext=p,c=ia(i),c.payload={element:u},y=y===void 0?null:y,y!==null&&(c.callback=y),u=oa(a,c,i),u!==null&&(en(u,a,i),El(u,a,i))}function Rw(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<i?u:i}}function Hp(a,i){Rw(a,i),(a=a.alternate)&&Rw(a,i)}function Pw(a){if(a.tag===13||a.tag===31){var i=za(a,67108864);i!==null&&en(i,a,67108864),Hp(a,67108864)}}function Dw(a){if(a.tag===13||a.tag===31){var i=hn();i=qd(i);var u=za(a,i);u!==null&&en(u,a,i),Hp(a,i)}}var _c=!0;function l5(a,i,u,c){var p=k.T;k.T=null;var y=X.p;try{X.p=2,Gp(a,i,u,c)}finally{X.p=y,k.T=p}}function u5(a,i,u,c){var p=k.T;k.T=null;var y=X.p;try{X.p=8,Gp(a,i,u,c)}finally{X.p=y,k.T=p}}function Gp(a,i,u,c){if(_c){var p=Yp(c);if(p===null)Cp(a,i,c,wc,u),$w(a,c);else if(c5(p,a,i,u,c))c.stopPropagation();else if($w(a,c),i&4&&-1<s5.indexOf(a)){for(;p!==null;){var y=ji(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var O=ka(y.pendingLanes);if(O!==0){var R=y;for(R.pendingLanes|=2,R.entangledLanes|=2;O;){var U=1<<31-on(O);R.entanglements[1]|=U,O&=~U}tr(y),(Ue&6)===0&&(ic=Ut()+500,Hl(0))}}break;case 31:case 13:R=za(y,2),R!==null&&en(R,y,2),lc(),Hp(y,2)}if(y=Yp(c),y===null&&Cp(a,i,c,wc,u),y===p)break;p=y}p!==null&&c.stopPropagation()}else Cp(a,i,c,null,u)}}function Yp(a){return a=Xd(a),Kp(a)}var wc=null;function Kp(a){if(wc=null,a=Ai(a),a!==null){var i=l(a);if(i===null)a=null;else{var u=i.tag;if(u===13){if(a=s(i),a!==null)return a;a=null}else if(u===31){if(a=f(i),a!==null)return a;a=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return wc=a,null}function kw(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fs()){case Hx:return 2;case Gx:return 8;case ds:case FR:return 32;case Yx:return 268435456;default:return 32}default:return 32}}var Xp=!1,ya=null,ga=null,ba=null,Wl=new Map,Zl=new Map,xa=[],s5="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".split(" ");function $w(a,i){switch(a){case"focusin":case"focusout":ya=null;break;case"dragenter":case"dragleave":ga=null;break;case"mouseover":case"mouseout":ba=null;break;case"pointerover":case"pointerout":Wl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(i.pointerId)}}function Ql(a,i,u,c,p,y){return a===null||a.nativeEvent!==y?(a={blockedOn:i,domEventName:u,eventSystemFlags:c,nativeEvent:y,targetContainers:[p]},i!==null&&(i=ji(i),i!==null&&Pw(i)),a):(a.eventSystemFlags|=c,i=a.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),a)}function c5(a,i,u,c,p){switch(i){case"focusin":return ya=Ql(ya,a,i,u,c,p),!0;case"dragenter":return ga=Ql(ga,a,i,u,c,p),!0;case"mouseover":return ba=Ql(ba,a,i,u,c,p),!0;case"pointerover":var y=p.pointerId;return Wl.set(y,Ql(Wl.get(y)||null,a,i,u,c,p)),!0;case"gotpointercapture":return y=p.pointerId,Zl.set(y,Ql(Zl.get(y)||null,a,i,u,c,p)),!0}return!1}function Lw(a){var i=Ai(a.target);if(i!==null){var u=l(i);if(u!==null){if(i=u.tag,i===13){if(i=s(u),i!==null){a.blockedOn=i,Zx(a.priority,function(){Dw(u)});return}}else if(i===31){if(i=f(u),i!==null){a.blockedOn=i,Zx(a.priority,function(){Dw(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Oc(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var u=Yp(a.nativeEvent);if(u===null){u=a.nativeEvent;var c=new u.constructor(u.type,u);Kd=c,u.target.dispatchEvent(c),Kd=null}else return i=ji(u),i!==null&&Pw(i),a.blockedOn=u,!1;i.shift()}return!0}function qw(a,i,u){Oc(a)&&u.delete(i)}function f5(){Xp=!1,ya!==null&&Oc(ya)&&(ya=null),ga!==null&&Oc(ga)&&(ga=null),ba!==null&&Oc(ba)&&(ba=null),Wl.forEach(qw),Zl.forEach(qw)}function Ac(a,i){a.blockedOn===i&&(a.blockedOn=null,Xp||(Xp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,f5)))}var jc=null;function Bw(a){jc!==a&&(jc=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){jc===a&&(jc=null);for(var i=0;i<a.length;i+=3){var u=a[i],c=a[i+1],p=a[i+2];if(typeof c!="function"){if(Kp(c||u)===null)continue;break}var y=ji(u);y!==null&&(a.splice(i,3),i-=3,Yh(y,{pending:!0,data:p,method:u.method,action:c},c,p))}}))}function lo(a){function i(U){return Ac(U,a)}ya!==null&&Ac(ya,a),ga!==null&&Ac(ga,a),ba!==null&&Ac(ba,a),Wl.forEach(i),Zl.forEach(i);for(var u=0;u<xa.length;u++){var c=xa[u];c.blockedOn===a&&(c.blockedOn=null)}for(;0<xa.length&&(u=xa[0],u.blockedOn===null);)Lw(u),u.blockedOn===null&&xa.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(c=0;c<u.length;c+=3){var p=u[c],y=u[c+1],O=p[Vt]||null;if(typeof y=="function")O||Bw(u);else if(O){var R=null;if(y&&y.hasAttribute("formAction")){if(p=y,O=y[Vt]||null)R=O.formAction;else if(Kp(p)!==null)continue}else R=O.action;typeof R=="function"?u[c+1]=R:(u.splice(c,3),c-=3),Bw(u)}}}function zw(){function a(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(O){return p=O})},focusReset:"manual",scroll:"manual"})}function i(){p!==null&&(p(),p=null),c||setTimeout(u,20)}function u(){if(!c&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,p=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(u,100),function(){c=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),p!==null&&(p(),p=null)}}}function Vp(a){this._internalRoot=a}Ec.prototype.render=Vp.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(r(409));var u=i.current,c=hn();Mw(u,c,a,i,null,null)},Ec.prototype.unmount=Vp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;Mw(a.current,2,null,a,null,null),lc(),i[Oi]=null}};function Ec(a){this._internalRoot=a}Ec.prototype.unstable_scheduleHydration=function(a){if(a){var i=Wx();a={blockedOn:null,target:a,priority:i};for(var u=0;u<xa.length&&i!==0&&i<xa[u].priority;u++);xa.splice(u,0,a),u===0&&Lw(a)}};var Uw=t.version;if(Uw!=="19.2.4")throw Error(r(527,Uw,"19.2.4"));X.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(i),a=a!==null?v(a):null,a=a===null?null:a.stateNode,a};var d5={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tc.isDisabled&&Tc.supportsFiber)try{ll=Tc.inject(d5),an=Tc}catch{}}return eu.createRoot=function(a,i){if(!o(a))throw Error(r(299));var u=!1,c="",p=VS,y=FS,O=WS;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(O=i.onRecoverableError)),i=Nw(a,1,!1,null,null,u,c,null,p,y,O,zw),a[Oi]=i.current,Np(a),new Vp(i)},eu.hydrateRoot=function(a,i,u){if(!o(a))throw Error(r(299));var c=!1,p="",y=VS,O=FS,R=WS,U=null;return u!=null&&(u.unstable_strictMode===!0&&(c=!0),u.identifierPrefix!==void 0&&(p=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(O=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.formState!==void 0&&(U=u.formState)),i=Nw(a,1,!0,i,u??null,c,p,U,y,O,R,zw),i.context=Cw(null),u=i.current,c=hn(),c=qd(c),p=ia(c),p.callback=null,oa(u,p,c),u=c,i.current.lanes=u,sl(i,u),tr(i),a[Oi]=i.current,Np(a),new Ec(i)},eu.version="19.2.4",eu}var Zw;function _5(){if(Zw)return Zp.exports;Zw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Zp.exports=S5(),Zp.exports}var w5=_5();/**
|
|
50
|
+
* react-router v7.13.0
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Qw="popstate";function O5(e={}){function t(r,o){let{pathname:l,search:s,hash:f}=r.location;return f0("",{pathname:l,search:s,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Su(o)}return j5(t,n,null,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Fn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A5(){return Math.random().toString(36).substring(2,10)}function Jw(e,t){return{usr:e.state,key:e.key,idx:t}}function f0(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Xo(t):t,state:n,key:t&&t.key||r||A5()}}function Su({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Xo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function j5(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:l=!1}=r,s=o.history,f="POP",d=null,h=v();h==null&&(h=0,s.replaceState({...s.state,idx:h},""));function v(){return(s.state||{idx:null}).idx}function m(){f="POP";let x=v(),j=x==null?null:x-h;h=x,d&&d({action:f,location:_.location,delta:j})}function b(x,j){f="PUSH";let E=f0(_.location,x,j);h=v()+1;let T=Jw(E,h),N=_.createHref(E);try{s.pushState(T,"",N)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;o.location.assign(N)}l&&d&&d({action:f,location:_.location,delta:1})}function S(x,j){f="REPLACE";let E=f0(_.location,x,j);h=v();let T=Jw(E,h),N=_.createHref(E);s.replaceState(T,"",N),l&&d&&d({action:f,location:_.location,delta:0})}function w(x){return E5(x)}let _={get action(){return f},get location(){return e(o,s)},listen(x){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(Qw,m),d=x,()=>{o.removeEventListener(Qw,m),d=null}},createHref(x){return t(o,x)},createURL:w,encodeLocation(x){let j=w(x);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:b,replace:S,go(x){return s.go(x)}};return _}function E5(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),st(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Su(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function iC(e,t,n="/"){return T5(e,t,n,!1)}function T5(e,t,n,r){let o=typeof t=="string"?Xo(t):t,l=Ur(o.pathname||"/",n);if(l==null)return null;let s=oC(e);N5(s);let f=null;for(let d=0;f==null&&d<s.length;++d){let h=z5(l);f=q5(s[d],h,r)}return f}function oC(e,t=[],n=[],r="",o=!1){let l=(s,f,d=o,h)=>{let v={relativePath:h===void 0?s.path||"":h,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&d)return;st(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let m=kr([r,v.relativePath]),b=n.concat(v);s.children&&s.children.length>0&&(st(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),oC(s.children,t,b,m,d)),!(s.path==null&&!s.index)&&t.push({path:m,score:$5(m,s.index),routesMeta:b})};return e.forEach((s,f)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))l(s,f);else for(let h of lC(s.path))l(s,f,!0,h)}),t}function lC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let s=lC(r.join("/")),f=[];return f.push(...s.map(d=>d===""?l:[l,d].join("/"))),o&&f.push(...s),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function N5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:L5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var C5=/^:[\w-]+$/,M5=3,R5=2,P5=1,D5=10,k5=-2,eO=e=>e==="*";function $5(e,t){let n=e.split("/"),r=n.length;return n.some(eO)&&(r+=k5),t&&(r+=R5),n.filter(o=>!eO(o)).reduce((o,l)=>o+(C5.test(l)?M5:l===""?P5:D5),r)}function L5(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function q5(e,t,n=!1){let{routesMeta:r}=e,o={},l="/",s=[];for(let f=0;f<r.length;++f){let d=r[f],h=f===r.length-1,v=l==="/"?t:t.slice(l.length)||"/",m=Xc({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},v),b=d.route;if(!m&&h&&n&&!r[r.length-1].route.index&&(m=Xc({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},v)),!m)return null;Object.assign(o,m.params),s.push({params:o,pathname:kr([l,m.pathname]),pathnameBase:G5(kr([l,m.pathnameBase])),route:b}),m.pathnameBase!=="/"&&(l=kr([l,m.pathnameBase]))}return s}function Xc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=B5(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let l=o[0],s=l.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:r.reduce((h,{paramName:v,isOptional:m},b)=>{if(v==="*"){let w=f[b]||"";s=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const S=f[b];return m&&!S?h[v]=void 0:h[v]=(S||"").replace(/%2F/g,"/"),h},{}),pathname:l,pathnameBase:s,pattern:e}}function B5(e,t=!1,n=!0){Fn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,d)=>(r.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function z5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ur(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var U5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function I5(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Xo(e):e,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=tO(n.substring(1),"/"):l=tO(n,t)):l=t,{pathname:l,search:Y5(r),hash:K5(o)}}function tO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function tm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function H5(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kb(e){let t=H5(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function $b(e,t,n,r=!1){let o;typeof e=="string"?o=Xo(e):(o={...e},st(!o.pathname||!o.pathname.includes("?"),tm("?","pathname","search",o)),st(!o.pathname||!o.pathname.includes("#"),tm("#","pathname","hash",o)),st(!o.search||!o.search.includes("#"),tm("#","search","hash",o)));let l=e===""||o.pathname==="",s=l?"/":o.pathname,f;if(s==null)f=n;else{let m=t.length-1;if(!r&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),m-=1;o.pathname=b.join("/")}f=m>=0?t[m]:"/"}let d=I5(o,f),h=s&&s!=="/"&&s.endsWith("/"),v=(l||s===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||v)&&(d.pathname+="/"),d}var kr=e=>e.join("/").replace(/\/\/+/g,"/"),G5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,K5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,X5=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function V5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function F5(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var uC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sC(e,t){let n=e;if(typeof n!="string"||!U5.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(uC)try{let l=new URL(window.location.href),s=n.startsWith("//")?new URL(l.protocol+n):new URL(n),f=Ur(s.pathname,t);s.origin===l.origin&&f!=null?n=f+s.search+s.hash:o=!0}catch{Fn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var cC=["POST","PUT","PATCH","DELETE"];new Set(cC);var W5=["GET",...cC];new Set(W5);var Vo=P.createContext(null);Vo.displayName="DataRouter";var Ff=P.createContext(null);Ff.displayName="DataRouterState";var Z5=P.createContext(!1),fC=P.createContext({isTransitioning:!1});fC.displayName="ViewTransition";var Q5=P.createContext(new Map);Q5.displayName="Fetchers";var J5=P.createContext(null);J5.displayName="Await";var bn=P.createContext(null);bn.displayName="Navigation";var rs=P.createContext(null);rs.displayName="Location";var qn=P.createContext({outlet:null,matches:[],isDataRoute:!1});qn.displayName="Route";var Lb=P.createContext(null);Lb.displayName="RouteError";var dC="REACT_ROUTER_ERROR",eD="REDIRECT",tD="ROUTE_ERROR_RESPONSE";function nD(e){if(e.startsWith(`${dC}:${eD}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function rD(e){if(e.startsWith(`${dC}:${tD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new X5(t.status,t.statusText,t.data)}catch{}}function aD(e,{relative:t}={}){st(Fo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=P.useContext(bn),{hash:o,pathname:l,search:s}=as(e,{relative:t}),f=l;return n!=="/"&&(f=l==="/"?n:kr([n,l])),r.createHref({pathname:f,search:s,hash:o})}function Fo(){return P.useContext(rs)!=null}function Yr(){return st(Fo(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(rs).location}var hC="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pC(e){P.useContext(bn).static||P.useLayoutEffect(e)}function Wf(){let{isDataRoute:e}=P.useContext(qn);return e?bD():iD()}function iD(){st(Fo(),"useNavigate() may be used only in the context of a <Router> component.");let e=P.useContext(Vo),{basename:t,navigator:n}=P.useContext(bn),{matches:r}=P.useContext(qn),{pathname:o}=Yr(),l=JSON.stringify(kb(r)),s=P.useRef(!1);return pC(()=>{s.current=!0}),P.useCallback((d,h={})=>{if(Fn(s.current,hC),!s.current)return;if(typeof d=="number"){n.go(d);return}let v=$b(d,JSON.parse(l),o,h.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:kr([t,v.pathname])),(h.replace?n.replace:n.push)(v,h.state,h)},[t,n,l,o,e])}var oD=P.createContext(null);function lD(e){let t=P.useContext(qn).outlet;return P.useMemo(()=>t&&P.createElement(oD.Provider,{value:e},t),[t,e])}function mC(){let{matches:e}=P.useContext(qn),t=e[e.length-1];return t?t.params:{}}function as(e,{relative:t}={}){let{matches:n}=P.useContext(qn),{pathname:r}=Yr(),o=JSON.stringify(kb(n));return P.useMemo(()=>$b(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function uD(e,t){return vC(e,t)}function vC(e,t,n,r,o){var E;st(Fo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=P.useContext(bn),{matches:s}=P.useContext(qn),f=s[s.length-1],d=f?f.params:{},h=f?f.pathname:"/",v=f?f.pathnameBase:"/",m=f&&f.route;{let T=m&&m.path||"";gC(h,!m||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let b=Yr(),S;if(t){let T=typeof t=="string"?Xo(t):t;st(v==="/"||((E=T.pathname)==null?void 0:E.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${T.pathname}" was given in the \`location\` prop.`),S=T}else S=b;let w=S.pathname||"/",_=w;if(v!=="/"){let T=v.replace(/^\//,"").split("/");_="/"+w.replace(/^\//,"").split("/").slice(T.length).join("/")}let x=iC(e,{pathname:_});Fn(m||x!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Fn(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let j=hD(x&&x.map(T=>Object.assign({},T,{params:Object.assign({},d,T.params),pathname:kr([v,l.encodeLocation?l.encodeLocation(T.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?v:kr([v,l.encodeLocation?l.encodeLocation(T.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),s,n,r,o);return t&&j?P.createElement(rs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},j):j}function sD(){let e=gD(),t=V5(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:l},"ErrorBoundary")," or"," ",P.createElement("code",{style:l},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:o},n):null,s)}var cD=P.createElement(sD,null),yC=class extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=rD(e.digest);n&&(e=n)}let t=e!==void 0?P.createElement(qn.Provider,{value:this.props.routeContext},P.createElement(Lb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?P.createElement(fD,{error:e},t):t}};yC.contextType=Z5;var nm=new WeakMap;function fD({children:e,error:t}){let{basename:n}=P.useContext(bn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=nD(t.digest);if(r){let o=nm.get(t);if(o)throw o;let l=sC(r.location,n);if(uC&&!nm.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw nm.set(t,s),s}return P.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function dD({routeContext:e,match:t,children:n}){let r=P.useContext(Vo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(qn.Provider,{value:e},n)}function hD(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,s=n==null?void 0:n.errors;if(s!=null){let v=l.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);st(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),l=l.slice(0,Math.min(l.length,v+1))}let f=!1,d=-1;if(n)for(let v=0;v<l.length;v++){let m=l[v];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=v),m.route.id){let{loaderData:b,errors:S}=n,w=m.route.loader&&!b.hasOwnProperty(m.route.id)&&(!S||S[m.route.id]===void 0);if(m.route.lazy||w){f=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}let h=n&&r?(v,m)=>{var b,S;r(v,{location:n.location,params:((S=(b=n.matches)==null?void 0:b[0])==null?void 0:S.params)??{},unstable_pattern:F5(n.matches),errorInfo:m})}:void 0;return l.reduceRight((v,m,b)=>{let S,w=!1,_=null,x=null;n&&(S=s&&m.route.id?s[m.route.id]:void 0,_=m.route.errorElement||cD,f&&(d<0&&b===0?(gC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,x=null):d===b&&(w=!0,x=m.route.hydrateFallbackElement||null)));let j=t.concat(l.slice(0,b+1)),E=()=>{let T;return S?T=_:w?T=x:m.route.Component?T=P.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=v,P.createElement(dD,{match:m,routeContext:{outlet:v,matches:j,isDataRoute:n!=null},children:T})};return n&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?P.createElement(yC,{location:n.location,revalidation:n.revalidation,component:_,error:S,children:E(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:h}):E()},null)}function qb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pD(e){let t=P.useContext(Vo);return st(t,qb(e)),t}function mD(e){let t=P.useContext(Ff);return st(t,qb(e)),t}function vD(e){let t=P.useContext(qn);return st(t,qb(e)),t}function Bb(e){let t=vD(e),n=t.matches[t.matches.length-1];return st(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function yD(){return Bb("useRouteId")}function gD(){var r;let e=P.useContext(Lb),t=mD("useRouteError"),n=Bb("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function bD(){let{router:e}=pD("useNavigate"),t=Bb("useNavigate"),n=P.useRef(!1);return pC(()=>{n.current=!0}),P.useCallback(async(o,l={})=>{Fn(n.current,hC),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...l}))},[e,t])}var nO={};function gC(e,t,n){!t&&!nO[e]&&(nO[e]=!0,Fn(!1,n))}P.memo(xD);function xD({routes:e,future:t,state:n,onError:r}){return vC(e,void 0,n,r,t)}function SD({to:e,replace:t,state:n,relative:r}){st(Fo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=P.useContext(bn);Fn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=P.useContext(qn),{pathname:s}=Yr(),f=Wf(),d=$b(e,kb(l),s,r==="path"),h=JSON.stringify(d);return P.useEffect(()=>{f(JSON.parse(h),{replace:t,state:n,relative:r})},[f,h,r,t,n]),null}function _D(e){return lD(e.context)}function nr(e){st(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function wD({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:l=!1,unstable_useTransitions:s}){st(!Fo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=P.useMemo(()=>({basename:f,navigator:o,static:l,unstable_useTransitions:s,future:{}}),[f,o,l,s]);typeof n=="string"&&(n=Xo(n));let{pathname:h="/",search:v="",hash:m="",state:b=null,key:S="default"}=n,w=P.useMemo(()=>{let _=Ur(h,f);return _==null?null:{location:{pathname:_,search:v,hash:m,state:b,key:S},navigationType:r}},[f,h,v,m,b,S,r]);return Fn(w!=null,`<Router basename="${f}"> is not able to match the URL "${h}${v}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:P.createElement(bn.Provider,{value:d},P.createElement(rs.Provider,{children:t,value:w}))}function OD({children:e,location:t}){return uD(d0(e),t)}function d0(e,t=[]){let n=[];return P.Children.forEach(e,(r,o)=>{if(!P.isValidElement(r))return;let l=[...t,o];if(r.type===P.Fragment){n.push.apply(n,d0(r.props.children,l));return}st(r.type===nr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),st(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=d0(r.props.children,l)),n.push(s)}),n}var Gc="get",Yc="application/x-www-form-urlencoded";function Zf(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function AD(e){return Zf(e)&&e.tagName.toLowerCase()==="button"}function jD(e){return Zf(e)&&e.tagName.toLowerCase()==="form"}function ED(e){return Zf(e)&&e.tagName.toLowerCase()==="input"}function TD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ND(e,t){return e.button===0&&(!t||t==="_self")&&!TD(e)}var Cc=null;function CD(){if(Cc===null)try{new FormData(document.createElement("form"),0),Cc=!1}catch{Cc=!0}return Cc}var MD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rm(e){return e!=null&&!MD.has(e)?(Fn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yc}"`),null):e}function RD(e,t){let n,r,o,l,s;if(jD(e)){let f=e.getAttribute("action");r=f?Ur(f,t):null,n=e.getAttribute("method")||Gc,o=rm(e.getAttribute("enctype"))||Yc,l=new FormData(e)}else if(AD(e)||ED(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(r=d?Ur(d,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||Gc,o=rm(e.getAttribute("formenctype"))||rm(f.getAttribute("enctype"))||Yc,l=new FormData(f,e),!CD()){let{name:h,type:v,value:m}=e;if(v==="image"){let b=h?`${h}.`:"";l.append(`${b}x`,"0"),l.append(`${b}y`,"0")}else h&&l.append(h,m)}}else{if(Zf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Gc,r=null,o=Yc,s=e}return l&&o==="text/plain"&&(s=l,l=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:l,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function zb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function PD(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Ur(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function DD(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function kD(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function $D(e,t,n){let r=await Promise.all(e.map(async o=>{let l=t.routes[o.route.id];if(l){let s=await DD(l,n);return s.links?s.links():[]}return[]}));return zD(r.flat(1).filter(kD).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function rO(e,t,n,r,o,l){let s=(d,h)=>n[h]?d.route.id!==n[h].route.id:!0,f=(d,h)=>{var v;return n[h].pathname!==d.pathname||((v=n[h].route.path)==null?void 0:v.endsWith("*"))&&n[h].params["*"]!==d.params["*"]};return l==="assets"?t.filter((d,h)=>s(d,h)||f(d,h)):l==="data"?t.filter((d,h)=>{var m;let v=r.routes[d.route.id];if(!v||!v.hasLoader)return!1;if(s(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let b=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function LD(e,t,{includeHydrateFallback:n}={}){return qD(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let l=[o.module];return o.clientActionModule&&(l=l.concat(o.clientActionModule)),o.clientLoaderModule&&(l=l.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(l=l.concat(o.hydrateFallbackModule)),o.imports&&(l=l.concat(o.imports)),l}).flat(1))}function qD(e){return[...new Set(e)]}function BD(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function zD(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let l=JSON.stringify(BD(o));return n.has(l)||(n.add(l),r.push({key:l,link:o})),r},[])}function bC(){let e=P.useContext(Vo);return zb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function UD(){let e=P.useContext(Ff);return zb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ub=P.createContext(void 0);Ub.displayName="FrameworkContext";function xC(){let e=P.useContext(Ub);return zb(e,"You must render this element inside a <HydratedRouter> element"),e}function ID(e,t){let n=P.useContext(Ub),[r,o]=P.useState(!1),[l,s]=P.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:v,onTouchStart:m}=t,b=P.useRef(null);P.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let _=j=>{j.forEach(E=>{s(E.isIntersecting)})},x=new IntersectionObserver(_,{threshold:.5});return b.current&&x.observe(b.current),()=>{x.disconnect()}}},[e]),P.useEffect(()=>{if(r){let _=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(_)}}},[r]);let S=()=>{o(!0)},w=()=>{o(!1),s(!1)};return n?e!=="intent"?[l,b,{}]:[l,b,{onFocus:tu(f,S),onBlur:tu(d,w),onMouseEnter:tu(h,S),onMouseLeave:tu(v,w),onTouchStart:tu(m,S)}]:[!1,b,{}]}function tu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function HD({page:e,...t}){let{router:n}=bC(),r=P.useMemo(()=>iC(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?P.createElement(YD,{page:e,matches:r,...t}):null}function GD(e){let{manifest:t,routeModules:n}=xC(),[r,o]=P.useState([]);return P.useEffect(()=>{let l=!1;return $D(e,t,n).then(s=>{l||o(s)}),()=>{l=!0}},[e,t,n]),r}function YD({page:e,matches:t,...n}){let r=Yr(),{future:o,manifest:l,routeModules:s}=xC(),{basename:f}=bC(),{loaderData:d,matches:h}=UD(),v=P.useMemo(()=>rO(e,t,h,l,r,"data"),[e,t,h,l,r]),m=P.useMemo(()=>rO(e,t,h,l,r,"assets"),[e,t,h,l,r]),b=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let _=new Set,x=!1;if(t.forEach(E=>{var N;let T=l.routes[E.route.id];!T||!T.hasLoader||(!v.some(A=>A.route.id===E.route.id)&&E.route.id in d&&((N=s[E.route.id])!=null&&N.shouldRevalidate)||T.hasClientLoader?x=!0:_.add(E.route.id))}),_.size===0)return[];let j=PD(e,f,o.unstable_trailingSlashAwareDataRequests,"data");return x&&_.size>0&&j.searchParams.set("_routes",t.filter(E=>_.has(E.route.id)).map(E=>E.route.id).join(",")),[j.pathname+j.search]},[f,o.unstable_trailingSlashAwareDataRequests,d,r,l,v,t,e,s]),S=P.useMemo(()=>LD(m,l),[m,l]),w=GD(m);return P.createElement(P.Fragment,null,b.map(_=>P.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),S.map(_=>P.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),w.map(({key:_,link:x})=>P.createElement("link",{key:_,nonce:n.nonce,...x,crossOrigin:x.crossOrigin??n.crossOrigin})))}function KD(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var XD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{XD&&(window.__reactRouterVersion="7.13.0")}catch{}function VD({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=P.useRef();o.current==null&&(o.current=O5({window:r,v5Compat:!0}));let l=o.current,[s,f]=P.useState({action:l.action,location:l.location}),d=P.useCallback(h=>{n===!1?f(h):P.startTransition(()=>f(h))},[n]);return P.useLayoutEffect(()=>l.listen(d),[l,d]),P.createElement(wD,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:l,unstable_useTransitions:n})}var SC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Na=P.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:l,replace:s,state:f,target:d,to:h,preventScrollReset:v,viewTransition:m,unstable_defaultShouldRevalidate:b,...S},w){let{basename:_,unstable_useTransitions:x}=P.useContext(bn),j=typeof h=="string"&&SC.test(h),E=sC(h,_);h=E.to;let T=aD(h,{relative:o}),[N,A,C]=ID(r,S),M=QD(h,{replace:s,state:f,target:d,preventScrollReset:v,relative:o,viewTransition:m,unstable_defaultShouldRevalidate:b,unstable_useTransitions:x});function D(B){t&&t(B),B.defaultPrevented||M(B)}let $=P.createElement("a",{...S,...C,href:E.absoluteURL||T,onClick:E.isExternal||l?t:D,ref:KD(w,A),target:d,"data-discover":!j&&n==="render"?"true":void 0});return N&&!j?P.createElement(P.Fragment,null,$,P.createElement(HD,{page:T})):$});Na.displayName="Link";var FD=P.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:l,to:s,viewTransition:f,children:d,...h},v){let m=as(s,{relative:h.relative}),b=Yr(),S=P.useContext(Ff),{navigator:w,basename:_}=P.useContext(bn),x=S!=null&&r6(m)&&f===!0,j=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,E=b.pathname,T=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;n||(E=E.toLowerCase(),T=T?T.toLowerCase():null,j=j.toLowerCase()),T&&_&&(T=Ur(T,_)||T);const N=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let A=E===j||!o&&E.startsWith(j)&&E.charAt(N)==="/",C=T!=null&&(T===j||!o&&T.startsWith(j)&&T.charAt(j.length)==="/"),M={isActive:A,isPending:C,isTransitioning:x},D=A?t:void 0,$;typeof r=="function"?$=r(M):$=[r,A?"active":null,C?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let B=typeof l=="function"?l(M):l;return P.createElement(Na,{...h,"aria-current":D,className:$,ref:v,style:B,to:s,viewTransition:f},typeof d=="function"?d(M):d)});FD.displayName="NavLink";var WD=P.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:l,method:s=Gc,action:f,onSubmit:d,relative:h,preventScrollReset:v,viewTransition:m,unstable_defaultShouldRevalidate:b,...S},w)=>{let{unstable_useTransitions:_}=P.useContext(bn),x=t6(),j=n6(f,{relative:h}),E=s.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&SC.test(f),N=A=>{if(d&&d(A),A.defaultPrevented)return;A.preventDefault();let C=A.nativeEvent.submitter,M=(C==null?void 0:C.getAttribute("formmethod"))||s,D=()=>x(C||A.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:o,state:l,relative:h,preventScrollReset:v,viewTransition:m,unstable_defaultShouldRevalidate:b});_&&n!==!1?P.startTransition(()=>D()):D()};return P.createElement("form",{ref:w,method:E,action:j,onSubmit:r?d:N,...S,"data-discover":!T&&e==="render"?"true":void 0})});WD.displayName="Form";function ZD(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _C(e){let t=P.useContext(Vo);return st(t,ZD(e)),t}function QD(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:l,viewTransition:s,unstable_defaultShouldRevalidate:f,unstable_useTransitions:d}={}){let h=Wf(),v=Yr(),m=as(e,{relative:l});return P.useCallback(b=>{if(ND(b,t)){b.preventDefault();let S=n!==void 0?n:Su(v)===Su(m),w=()=>h(e,{replace:S,state:r,preventScrollReset:o,relative:l,viewTransition:s,unstable_defaultShouldRevalidate:f});d?P.startTransition(()=>w()):w()}},[v,h,m,n,r,t,e,o,l,s,f,d])}var JD=0,e6=()=>`__${String(++JD)}__`;function t6(){let{router:e}=_C("useSubmit"),{basename:t}=P.useContext(bn),n=yD(),r=e.fetch,o=e.navigate;return P.useCallback(async(l,s={})=>{let{action:f,method:d,encType:h,formData:v,body:m}=RD(l,t);if(s.navigate===!1){let b=s.fetcherKey||e6();await r(b,n,s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:v,body:m,formMethod:s.method||d,formEncType:s.encType||h,flushSync:s.flushSync})}else await o(s.action||f,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:v,body:m,formMethod:s.method||d,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,o,t,n])}function n6(e,{relative:t}={}){let{basename:n}=P.useContext(bn),r=P.useContext(qn);st(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),l={...as(e||".",{relative:t})},s=Yr();if(e==null){l.search=s.search;let f=new URLSearchParams(l.search),d=f.getAll("index");if(d.some(v=>v==="")){f.delete("index"),d.filter(m=>m).forEach(m=>f.append("index",m));let v=f.toString();l.search=v?`?${v}`:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:kr([n,l.pathname])),Su(l)}function r6(e,{relative:t}={}){let n=P.useContext(fC);st(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_C("useViewTransitionState"),o=as(e,{relative:t});if(!n.isTransitioning)return!1;let l=Ur(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ur(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xc(o.pathname,s)!=null||Xc(o.pathname,l)!=null}const Ib="agentgazer_token";function wC(){return localStorage.getItem(Ib)}function a6(e){localStorage.setItem(Ib,e)}function OC(){localStorage.removeItem(Ib)}async function nu(e,t){const n=wC(),r={"Content-Type":"application/json",...n?{Authorization:`Bearer ${n}`}:{}},o=await fetch(e,{...t,headers:{...r,...t==null?void 0:t.headers}});if(o.status===401)throw OC(),window.location.href="/login",new Error("Unauthorized");if(!o.ok){const l=await o.json().catch(()=>({}));throw new Error(l.error||`Request failed: ${o.status}`)}return o.json()}const Ne={get:e=>nu(e),post:(e,t)=>nu(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>nu(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>nu(e,{method:"PATCH",body:JSON.stringify(t)}),del:e=>nu(e,{method:"DELETE"})},Kn={getConnectionInfo:()=>Ne.get("/api/connection-info"),list:()=>Ne.get("/api/providers"),add:(e,t)=>Ne.post("/api/providers",{name:e,apiKey:t}),remove:e=>Ne.del(`/api/providers/${e}`),toggle:(e,t)=>Ne.put(`/api/providers/${e}`,{active:t}),validate:(e,t)=>Ne.post(`/api/providers/${e}/validate`,t?{apiKey:t}:{}),getSettings:e=>Ne.get(`/api/providers/${e}/settings`),updateSettings:(e,t)=>Ne.patch(`/api/providers/${e}/settings`,t),getModels:e=>Ne.get(`/api/providers/${e}/models`),addModel:(e,t,n)=>Ne.post(`/api/providers/${e}/models`,{modelId:t,displayName:n}),removeModel:(e,t)=>Ne.del(`/api/providers/${e}/models/${encodeURIComponent(t)}`),testModel:(e,t)=>Ne.post(`/api/providers/${e}/models/${encodeURIComponent(t)}/test`,{}),getStats:(e,t,n)=>{const r=new URLSearchParams;t&&r.set("from",t),n&&r.set("to",n);const o=r.toString();return Ne.get(`/api/providers/${e}/stats${o?`?${o}`:""}`)}};function i6({children:e}){return wC()?g.jsx(g.Fragment,{children:e}):g.jsx(SD,{to:"/login",replace:!0})}function o6(){const[e,t]=P.useState(""),[n,r]=P.useState(null),[o,l]=P.useState(!1),s=Wf();async function f(d){d.preventDefault(),r(null),l(!0);try{await Ne.post("/api/auth/verify",{token:e}),a6(e),s("/",{replace:!0})}catch{r("Invalid token")}finally{l(!1)}}return g.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-950 px-4",children:g.jsxs("form",{onSubmit:f,className:"w-full max-w-sm rounded-lg border border-gray-800 bg-gray-900 p-8 shadow-xl",children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-100",children:"AgentGazer"}),g.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Enter your token to continue"}),g.jsx("label",{htmlFor:"token",className:"mt-6 block text-sm font-medium text-gray-300",children:"Token"}),g.jsx("input",{id:"token",type:"password",value:e,onChange:d=>t(d.target.value),className:"mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 font-mono text-sm text-gray-100 placeholder-gray-500 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500",placeholder:"paste token here",autoFocus:!0,required:!0}),n&&g.jsx("p",{className:"mt-2 text-sm text-red-400",children:n}),g.jsx("button",{type:"submit",disabled:o,className:"mt-6 w-full rounded-md bg-indigo-600 px-4 py-2 text-sm font-medium text-white hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-900 disabled:opacity-50",children:o?"Verifying...":"Login"})]})})}const l6={sm:{icon:"h-5 w-5",text:"text-sm"},md:{icon:"h-7 w-7",text:"text-lg"},lg:{icon:"h-9 w-9",text:"text-xl"}};function u6({size:e="md"}){const t=l6[e];return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("svg",{className:`${t.icon} text-blue-500`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:[g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),g.jsx("span",{className:`${t.text} font-semibold text-white`,children:"AgentGazer"})]})}const aO="agentgazer-sidebar-collapsed",s6=[{path:"/",label:"Overview",icon:g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})})},{path:"/agents",label:"Agents",icon:g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})})},{path:"/providers",label:"Providers",icon:g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 0 1-3-3m3 3a3 3 0 1 0 0 6h13.5a3 3 0 1 0 0-6m-16.5-3a3 3 0 0 1 3-3h13.5a3 3 0 0 1 3 3m-19.5 0a4.5 4.5 0 0 1 .9-2.7L5.737 5.1a3.375 3.375 0 0 1 2.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 0 1 .9 2.7m0 0a3 3 0 0 1-3 3m0 3h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Zm-3 6h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Z"})})},{path:"/costs",label:"Costs",icon:g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})},{path:"/alerts",label:"Alerts",icon:g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})})}];function c6(){const e=Yr(),t=Wf(),[n,r]=P.useState(()=>localStorage.getItem(aO)==="true");P.useEffect(()=>{localStorage.setItem(aO,String(n))},[n]);function o(){OC(),t("/login")}function l(d){return d==="/"?e.pathname==="/":e.pathname.startsWith(d)}const s=n?"w-16":"w-64",f=n?"ml-16":"ml-64";return g.jsxs("div",{className:"flex min-h-screen",children:[g.jsxs("aside",{className:`fixed inset-y-0 left-0 flex ${s} flex-col border-r border-gray-800 bg-gray-900 transition-all duration-200`,children:[g.jsxs("div",{className:"flex h-16 items-center justify-between px-3",children:[!n&&g.jsx("div",{className:"pl-3",children:g.jsx(u6,{size:"md"})}),g.jsx("button",{onClick:()=>r(!n),className:`rounded p-2 text-gray-400 transition-colors hover:bg-gray-800 hover:text-white ${n?"mx-auto":""}`,title:n?"Expand sidebar":"Collapse sidebar",children:g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:n?g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}):g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"})})})]}),g.jsx("nav",{className:"flex-1 space-y-1 px-3 py-4",children:s6.map(d=>{const h=l(d.path);return g.jsxs(Na,{to:d.path,title:n?d.label:void 0,className:`flex items-center ${n?"justify-center":"gap-3"} rounded-md px-3 py-2 text-sm font-medium transition-colors ${h?"bg-gray-700 text-white":"text-gray-400 hover:bg-gray-800 hover:text-white"}`,children:[d.icon,!n&&g.jsx("span",{children:d.label})]},d.path)})}),g.jsx("div",{className:"border-t border-gray-800 p-3",children:g.jsxs("button",{onClick:o,title:n?"Logout":void 0,className:`flex w-full items-center ${n?"justify-center":"gap-3"} rounded-md px-3 py-2 text-sm font-medium text-gray-400 transition-colors hover:bg-gray-800 hover:text-white`,children:[g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"})}),!n&&g.jsx("span",{children:"Logout"})]})})]}),g.jsx("main",{className:`${f} min-h-screen flex-1 bg-gray-950 p-6 transition-all duration-200`,children:g.jsx(_D,{})})]})}function Qf(e){if(!e)return"Never";const t=Date.now(),n=new Date(e).getTime();if(isNaN(n))return"Never";const r=Math.max(0,t-n),o=Math.floor(r/1e3);if(o<60)return`${o}s ago`;const l=Math.floor(o/60);if(l<60)return`${l}m ago`;const s=Math.floor(l/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`}function yn(e){return`$${e.toFixed(4)}`}function rr(e){return e.toLocaleString("en-US")}function Ea(e,t=3e3){const[n,r]=P.useState(null),[o,l]=P.useState(null),[s,f]=P.useState(!0),d=P.useRef(null),h=P.useRef(e);h.current=e;const v=P.useCallback(async()=>{f(!0);try{const m=await h.current();r(m),l(null)}catch(m){l(m instanceof Error?m.message:String(m))}finally{f(!1)}},[]);return P.useEffect(()=>{v(),d.current=setInterval(v,t);const m=()=>{document.hidden?d.current&&clearInterval(d.current):(v(),d.current=setInterval(v,t))};return document.addEventListener("visibilitychange",m),()=>{d.current&&clearInterval(d.current),document.removeEventListener("visibilitychange",m)}},[v,t]),P.useEffect(()=>{v()},[e,v]),{data:n,error:o,loading:s,refresh:v}}function hi(){return g.jsx("div",{className:"flex items-center justify-center py-20",children:g.jsxs("svg",{className:"h-8 w-8 animate-spin text-blue-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})}function $r({message:e,onDismiss:t,onRetry:n}){return g.jsxs("div",{className:"rounded-lg border border-red-800 bg-red-900/30 px-4 py-3 text-sm text-red-300",children:[g.jsx("span",{className:"font-medium",children:"Error:"})," ",e,n&&g.jsx("button",{onClick:n,className:"ml-3 text-red-400 hover:text-red-200",children:"Retry"}),t&&g.jsx("button",{onClick:t,className:"ml-3 text-red-400 hover:text-red-200",children:"Dismiss"})]})}function Vc({currentPage:e,totalPages:t,onPageChange:n}){if(t<=1)return null;function r(){if(t<=7)return Array.from({length:t},(s,f)=>f+1);const l=[];if(e<=4){for(let s=1;s<=5;s++)l.push(s);l.push("...",t)}else if(e>=t-3){l.push(1,"...");for(let s=t-4;s<=t;s++)l.push(s)}else l.push(1,"...",e-1,e,e+1,"...",t);return l}const o=r();return g.jsxs("div",{className:"flex items-center justify-center gap-1 pt-4",children:[g.jsx("button",{onClick:()=>n(e-1),disabled:e===1,className:"rounded-md bg-gray-700 px-2.5 py-1.5 text-sm font-medium text-gray-300 transition-colors hover:bg-gray-600 disabled:opacity-40 disabled:hover:bg-gray-700",children:"<"}),o.map((l,s)=>l==="..."?g.jsx("span",{className:"px-2 text-sm text-gray-500",children:"..."},`ellipsis-${s}`):g.jsx("button",{onClick:()=>n(l),className:`rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${l===e?"bg-blue-600 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600"}`,children:l},l)),g.jsx("button",{onClick:()=>n(e+1),disabled:e===t,className:"rounded-md bg-gray-700 px-2.5 py-1.5 text-sm font-medium text-gray-300 transition-colors hover:bg-gray-600 disabled:opacity-40 disabled:hover:bg-gray-700",children:">"})]})}const am=12;function f6(){const[e,t]=P.useState(1),n=P.useCallback(()=>{const f=new URLSearchParams;return f.set("limit",String(am)),f.set("offset",String((e-1)*am)),Ne.get(`/api/agents?${f.toString()}`)},[e]),{data:r,error:o,loading:l}=Ea(n,3e3),s=(r==null?void 0:r.total)!=null?Math.ceil(r.total/am):1;return l&&!r?g.jsx(hi,{}):g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-white",children:"Overview"}),o&&g.jsx("div",{className:"mt-4",children:g.jsx($r,{message:o})}),r&&r.agents.length===0&&g.jsx("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:g.jsx("p",{className:"text-gray-400",children:"No agents detected yet. Start sending events to see them here."})}),r&&r.agents.length>0&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mt-6 grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:r.agents.map(f=>g.jsxs(Na,{to:`/agents/${encodeURIComponent(f.agent_id)}`,className:"rounded-lg border border-gray-700 bg-gray-800 px-5 py-4 transition-colors hover:border-gray-600 hover:bg-gray-750",children:[g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsx("h2",{className:"truncate text-sm font-semibold text-white",children:f.agent_id}),g.jsx("span",{className:"text-xs text-gray-400",children:Qf(f.updated_at)})]}),g.jsxs("div",{className:"mt-3 grid grid-cols-3 gap-2 text-xs",children:[g.jsxs("div",{children:[g.jsx("div",{className:"text-gray-500",children:"Tokens"}),g.jsx("div",{className:"text-gray-300",children:f.total_tokens.toLocaleString()})]}),g.jsxs("div",{children:[g.jsx("div",{className:"text-gray-500",children:"Total Cost"}),g.jsx("div",{className:"text-gray-300",children:yn(f.total_cost)})]}),g.jsxs("div",{children:[g.jsx("div",{className:"text-gray-500",children:"Today"}),g.jsx("div",{className:"text-gray-300",children:yn(f.today_cost)})]})]})]},f.agent_id))}),g.jsx(Vc,{currentPage:e,totalPages:s,onPageChange:t})]})]})}function d6({value:e,onChange:t,placeholder:n="Search..."}){const[r,o]=P.useState(e),l=P.useRef(null);P.useEffect(()=>{o(e)},[e]),P.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);function s(d){o(d),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>t(d),300)}function f(){o(""),l.current&&clearTimeout(l.current),t("")}return g.jsxs("div",{className:"relative",children:[g.jsx("svg",{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})}),g.jsx("input",{type:"text",value:r,onChange:d=>s(d.target.value),placeholder:n,className:"block w-full rounded-md border border-gray-600 bg-gray-900 py-2 pl-9 pr-8 text-sm text-gray-100 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500"}),r&&g.jsx("button",{onClick:f,className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300",children:g.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})})})]})}const im=20;function h6(){const[e,t]=P.useState(1),[n,r]=P.useState(""),[o,l]=P.useState(null),s=P.useCallback(()=>{const w=new URLSearchParams;return w.set("limit",String(im)),w.set("offset",String((e-1)*im)),n&&w.set("search",n),Ne.get(`/api/agents?${w.toString()}`)},[e,n]),{data:f,error:d,loading:h,refresh:v}=Ea(s,3e3),m=(f==null?void 0:f.total)!=null?Math.ceil(f.total/im):1;function b(w){r(w),t(1)}async function S(w){l(w.agent_id);try{await Ne.put(`/api/agents/${encodeURIComponent(w.agent_id)}/policy`,{active:w.active===0}),v()}catch(_){console.error("Failed to toggle agent active state:",_)}finally{l(null)}}return h&&!f?g.jsx(hi,{}):g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-white",children:"Agents"}),d&&g.jsx("div",{className:"mt-4",children:g.jsx($r,{message:d})}),g.jsx("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:g.jsx("div",{className:"w-64",children:g.jsx(d6,{value:n,onChange:b,placeholder:"Search agents..."})})}),f&&f.agents.length===0&&g.jsx("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:g.jsx("p",{className:"text-gray-400",children:"No agents found."})}),f&&f.agents.length>0&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mt-4 overflow-hidden rounded-lg border border-gray-700",children:g.jsxs("table",{className:"w-full text-left text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[g.jsx("th",{className:"px-4 py-3 font-medium",children:"Agent ID"}),g.jsx("th",{className:"px-4 py-3 font-medium text-center",children:"Active"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Providers"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Last Activity"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Tokens"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Total Cost"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Today"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-700",children:f.agents.map(w=>{const _=o===w.agent_id;return g.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[g.jsx("td",{className:"px-4 py-3",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Na,{to:`/agents/${encodeURIComponent(w.agent_id)}`,className:"font-medium text-blue-400 hover:text-blue-300",children:w.agent_id}),w.kill_switch_enabled===1&&g.jsx("span",{className:"inline-flex items-center rounded-full bg-red-900/50 px-2 py-0.5 text-xs font-medium text-red-400",title:"Kill switch enabled for loop detection",children:"Kill Switch"})]})}),g.jsx("td",{className:"px-4 py-3 text-center",children:g.jsxs("div",{className:"flex items-center justify-center gap-2",children:[g.jsx("button",{onClick:()=>S(w),disabled:_,className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus:outline-none disabled:opacity-50 ${w.active?"bg-green-600":"bg-gray-600"}`,role:"switch","aria-checked":w.active===1,children:g.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform ${w.active?"translate-x-5":"translate-x-0"}`})}),!w.active&&w.deactivated_by==="kill_switch"&&g.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-red-900/70 px-2 py-0.5 text-xs font-medium text-red-300",title:"Deactivated by Kill Switch due to loop detection",children:[g.jsx("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),"Kill Switch"]})]})}),g.jsx("td",{className:"px-4 py-3 text-gray-300",children:w.providers&&w.providers.length>0?g.jsx("div",{className:"flex flex-wrap gap-1",children:w.providers.map(x=>g.jsxs("span",{className:`inline-flex items-center rounded px-2 py-0.5 text-xs ${x.has_override?"bg-indigo-900 text-indigo-200":"bg-gray-700 text-gray-300"}`,children:[x.provider,x.has_override&&g.jsxs("svg",{className:"ml-1 h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})]},x.provider))}):g.jsx("span",{className:"text-gray-500",children:"-"})}),g.jsx("td",{className:"px-4 py-3 text-gray-300",children:Qf(w.updated_at)}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:w.total_tokens.toLocaleString()}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:yn(w.total_cost)}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:yn(w.today_cost)})]},w.agent_id)})})]})}),g.jsx(Vc,{currentPage:e,totalPages:m,onPageChange:t})]})]})}const p6=["1h","24h","7d","30d"];function AC({value:e,onChange:t,customFrom:n,customTo:r,onCustomFromChange:o,onCustomToChange:l,showCustom:s=!0}){return g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[p6.map(f=>g.jsx("button",{onClick:()=>t(f),className:`rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${f===e?"bg-blue-600 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600 hover:text-white"}`,children:f},f)),s&&g.jsxs(g.Fragment,{children:[g.jsx("button",{onClick:()=>t("custom"),className:`rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${e==="custom"?"bg-blue-600 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600 hover:text-white"}`,children:"Custom"}),e==="custom"&&o&&l&&g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("input",{type:"date",value:n??"",onChange:f=>o(f.target.value),className:"rounded-md border border-gray-600 bg-gray-700 px-2 py-1 text-sm text-gray-200"}),g.jsx("span",{className:"text-sm text-gray-400",children:"to"}),g.jsx("input",{type:"date",value:r??"",onChange:f=>l(f.target.value),className:"rounded-md border border-gray-600 bg-gray-700 px-2 py-1 text-sm text-gray-200"})]})]})]})}function jC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=jC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ce(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jC(e))&&(r&&(r+=" "),r+=t);return r}var om,iO;function rn(){if(iO)return om;iO=1;var e=Array.isArray;return om=e,om}var lm,oO;function EC(){if(oO)return lm;oO=1;var e=typeof Nc=="object"&&Nc&&Nc.Object===Object&&Nc;return lm=e,lm}var um,lO;function cr(){if(lO)return um;lO=1;var e=EC(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return um=n,um}var sm,uO;function is(){if(uO)return sm;uO=1;var e=cr(),t=e.Symbol;return sm=t,sm}var cm,sO;function m6(){if(sO)return cm;sO=1;var e=is(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function l(s){var f=n.call(s,o),d=s[o];try{s[o]=void 0;var h=!0}catch{}var v=r.call(s);return h&&(f?s[o]=d:delete s[o]),v}return cm=l,cm}var fm,cO;function v6(){if(cO)return fm;cO=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return fm=n,fm}var dm,fO;function Kr(){if(fO)return dm;fO=1;var e=is(),t=m6(),n=v6(),r="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function s(f){return f==null?f===void 0?o:r:l&&l in Object(f)?t(f):n(f)}return dm=s,dm}var hm,dO;function Xr(){if(dO)return hm;dO=1;function e(t){return t!=null&&typeof t=="object"}return hm=e,hm}var pm,hO;function Wo(){if(hO)return pm;hO=1;var e=Kr(),t=Xr(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return pm=r,pm}var mm,pO;function Hb(){if(pO)return mm;pO=1;var e=rn(),t=Wo(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(l,s){if(e(l))return!1;var f=typeof l;return f=="number"||f=="symbol"||f=="boolean"||l==null||t(l)?!0:r.test(l)||!n.test(l)||s!=null&&l in Object(s)}return mm=o,mm}var vm,mO;function Ca(){if(mO)return vm;mO=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return vm=e,vm}var ym,vO;function Gb(){if(vO)return ym;vO=1;var e=Kr(),t=Ca(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function s(f){if(!t(f))return!1;var d=e(f);return d==r||d==o||d==n||d==l}return ym=s,ym}var gm,yO;function y6(){if(yO)return gm;yO=1;var e=cr(),t=e["__core-js_shared__"];return gm=t,gm}var bm,gO;function g6(){if(gO)return bm;gO=1;var e=y6(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return bm=n,bm}var xm,bO;function TC(){if(bO)return xm;bO=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return xm=n,xm}var Sm,xO;function b6(){if(xO)return Sm;xO=1;var e=Gb(),t=g6(),n=Ca(),r=TC(),o=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,s=Function.prototype,f=Object.prototype,d=s.toString,h=f.hasOwnProperty,v=RegExp("^"+d.call(h).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(b){if(!n(b)||t(b))return!1;var S=e(b)?v:l;return S.test(r(b))}return Sm=m,Sm}var _m,SO;function x6(){if(SO)return _m;SO=1;function e(t,n){return t==null?void 0:t[n]}return _m=e,_m}var wm,_O;function bi(){if(_O)return wm;_O=1;var e=b6(),t=x6();function n(r,o){var l=t(r,o);return e(l)?l:void 0}return wm=n,wm}var Om,wO;function Jf(){if(wO)return Om;wO=1;var e=bi(),t=e(Object,"create");return Om=t,Om}var Am,OO;function S6(){if(OO)return Am;OO=1;var e=Jf();function t(){this.__data__=e?e(null):{},this.size=0}return Am=t,Am}var jm,AO;function _6(){if(AO)return jm;AO=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return jm=e,jm}var Em,jO;function w6(){if(jO)return Em;jO=1;var e=Jf(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(l){var s=this.__data__;if(e){var f=s[l];return f===t?void 0:f}return r.call(s,l)?s[l]:void 0}return Em=o,Em}var Tm,EO;function O6(){if(EO)return Tm;EO=1;var e=Jf(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var l=this.__data__;return e?l[o]!==void 0:n.call(l,o)}return Tm=r,Tm}var Nm,TO;function A6(){if(TO)return Nm;TO=1;var e=Jf(),t="__lodash_hash_undefined__";function n(r,o){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=e&&o===void 0?t:o,this}return Nm=n,Nm}var Cm,NO;function j6(){if(NO)return Cm;NO=1;var e=S6(),t=_6(),n=w6(),r=O6(),o=A6();function l(s){var f=-1,d=s==null?0:s.length;for(this.clear();++f<d;){var h=s[f];this.set(h[0],h[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=o,Cm=l,Cm}var Mm,CO;function E6(){if(CO)return Mm;CO=1;function e(){this.__data__=[],this.size=0}return Mm=e,Mm}var Rm,MO;function Yb(){if(MO)return Rm;MO=1;function e(t,n){return t===n||t!==t&&n!==n}return Rm=e,Rm}var Pm,RO;function ed(){if(RO)return Pm;RO=1;var e=Yb();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return Pm=t,Pm}var Dm,PO;function T6(){if(PO)return Dm;PO=1;var e=ed(),t=Array.prototype,n=t.splice;function r(o){var l=this.__data__,s=e(l,o);if(s<0)return!1;var f=l.length-1;return s==f?l.pop():n.call(l,s,1),--this.size,!0}return Dm=r,Dm}var km,DO;function N6(){if(DO)return km;DO=1;var e=ed();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return km=t,km}var $m,kO;function C6(){if(kO)return $m;kO=1;var e=ed();function t(n){return e(this.__data__,n)>-1}return $m=t,$m}var Lm,$O;function M6(){if($O)return Lm;$O=1;var e=ed();function t(n,r){var o=this.__data__,l=e(o,n);return l<0?(++this.size,o.push([n,r])):o[l][1]=r,this}return Lm=t,Lm}var qm,LO;function td(){if(LO)return qm;LO=1;var e=E6(),t=T6(),n=N6(),r=C6(),o=M6();function l(s){var f=-1,d=s==null?0:s.length;for(this.clear();++f<d;){var h=s[f];this.set(h[0],h[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=o,qm=l,qm}var Bm,qO;function Kb(){if(qO)return Bm;qO=1;var e=bi(),t=cr(),n=e(t,"Map");return Bm=n,Bm}var zm,BO;function R6(){if(BO)return zm;BO=1;var e=j6(),t=td(),n=Kb();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return zm=r,zm}var Um,zO;function P6(){if(zO)return Um;zO=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Um=e,Um}var Im,UO;function nd(){if(UO)return Im;UO=1;var e=P6();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return Im=t,Im}var Hm,IO;function D6(){if(IO)return Hm;IO=1;var e=nd();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Hm=t,Hm}var Gm,HO;function k6(){if(HO)return Gm;HO=1;var e=nd();function t(n){return e(this,n).get(n)}return Gm=t,Gm}var Ym,GO;function $6(){if(GO)return Ym;GO=1;var e=nd();function t(n){return e(this,n).has(n)}return Ym=t,Ym}var Km,YO;function L6(){if(YO)return Km;YO=1;var e=nd();function t(n,r){var o=e(this,n),l=o.size;return o.set(n,r),this.size+=o.size==l?0:1,this}return Km=t,Km}var Xm,KO;function Xb(){if(KO)return Xm;KO=1;var e=R6(),t=D6(),n=k6(),r=$6(),o=L6();function l(s){var f=-1,d=s==null?0:s.length;for(this.clear();++f<d;){var h=s[f];this.set(h[0],h[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=o,Xm=l,Xm}var Vm,XO;function NC(){if(XO)return Vm;XO=1;var e=Xb(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var l=function(){var s=arguments,f=o?o.apply(this,s):s[0],d=l.cache;if(d.has(f))return d.get(f);var h=r.apply(this,s);return l.cache=d.set(f,h)||d,h};return l.cache=new(n.Cache||e),l}return n.Cache=e,Vm=n,Vm}var Fm,VO;function q6(){if(VO)return Fm;VO=1;var e=NC(),t=500;function n(r){var o=e(r,function(s){return l.size===t&&l.clear(),s}),l=o.cache;return o}return Fm=n,Fm}var Wm,FO;function B6(){if(FO)return Wm;FO=1;var e=q6(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(t,function(s,f,d,h){l.push(d?h.replace(n,"$1"):f||s)}),l});return Wm=r,Wm}var Zm,WO;function Vb(){if(WO)return Zm;WO=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,l=Array(o);++r<o;)l[r]=n(t[r],r,t);return l}return Zm=e,Zm}var Qm,ZO;function z6(){if(ZO)return Qm;ZO=1;var e=is(),t=Vb(),n=rn(),r=Wo(),o=e?e.prototype:void 0,l=o?o.toString:void 0;function s(f){if(typeof f=="string")return f;if(n(f))return t(f,s)+"";if(r(f))return l?l.call(f):"";var d=f+"";return d=="0"&&1/f==-1/0?"-0":d}return Qm=s,Qm}var Jm,QO;function CC(){if(QO)return Jm;QO=1;var e=z6();function t(n){return n==null?"":e(n)}return Jm=t,Jm}var ev,JO;function MC(){if(JO)return ev;JO=1;var e=rn(),t=Hb(),n=B6(),r=CC();function o(l,s){return e(l)?l:t(l,s)?[l]:n(r(l))}return ev=o,ev}var tv,eA;function rd(){if(eA)return tv;eA=1;var e=Wo();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return tv=t,tv}var nv,tA;function Fb(){if(tA)return nv;tA=1;var e=MC(),t=rd();function n(r,o){o=e(o,r);for(var l=0,s=o.length;r!=null&&l<s;)r=r[t(o[l++])];return l&&l==s?r:void 0}return nv=n,nv}var rv,nA;function RC(){if(nA)return rv;nA=1;var e=Fb();function t(n,r,o){var l=n==null?void 0:e(n,r);return l===void 0?o:l}return rv=t,rv}var U6=RC();const gn=Ze(U6);var av,rA;function I6(){if(rA)return av;rA=1;function e(t){return t==null}return av=e,av}var H6=I6();const Ae=Ze(H6);var iv,aA;function G6(){if(aA)return iv;aA=1;var e=Kr(),t=rn(),n=Xr(),r="[object String]";function o(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==r}return iv=o,iv}var Y6=G6();const pi=Ze(Y6);var K6=Gb();const _e=Ze(K6);var X6=Ca();const Zo=Ze(X6);var ov={exports:{}},He={};/**
|
|
61
|
+
* @license React
|
|
62
|
+
* react-is.production.min.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/var iA;function V6(){if(iA)return He;iA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),f=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function _(x){if(typeof x=="object"&&x!==null){var j=x.$$typeof;switch(j){case e:switch(x=x.type,x){case n:case o:case r:case h:case v:return x;default:switch(x=x&&x.$$typeof,x){case f:case s:case d:case b:case m:case l:return x;default:return j}}case t:return j}}}return He.ContextConsumer=s,He.ContextProvider=l,He.Element=e,He.ForwardRef=d,He.Fragment=n,He.Lazy=b,He.Memo=m,He.Portal=t,He.Profiler=o,He.StrictMode=r,He.Suspense=h,He.SuspenseList=v,He.isAsyncMode=function(){return!1},He.isConcurrentMode=function(){return!1},He.isContextConsumer=function(x){return _(x)===s},He.isContextProvider=function(x){return _(x)===l},He.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},He.isForwardRef=function(x){return _(x)===d},He.isFragment=function(x){return _(x)===n},He.isLazy=function(x){return _(x)===b},He.isMemo=function(x){return _(x)===m},He.isPortal=function(x){return _(x)===t},He.isProfiler=function(x){return _(x)===o},He.isStrictMode=function(x){return _(x)===r},He.isSuspense=function(x){return _(x)===h},He.isSuspenseList=function(x){return _(x)===v},He.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===h||x===v||x===S||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===m||x.$$typeof===l||x.$$typeof===s||x.$$typeof===d||x.$$typeof===w||x.getModuleId!==void 0)},He.typeOf=_,He}var oA;function F6(){return oA||(oA=1,ov.exports=V6()),ov.exports}var W6=F6(),lv,lA;function PC(){if(lA)return lv;lA=1;var e=Kr(),t=Xr(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return lv=r,lv}var uv,uA;function Z6(){if(uA)return uv;uA=1;var e=PC();function t(n){return e(n)&&n!=+n}return uv=t,uv}var Q6=Z6();const Qo=Ze(Q6);var J6=PC();const ek=Ze(J6);var Yt=function(t){return t===0?0:t>0?1:-1},ii=function(t){return pi(t)&&t.indexOf("%")===t.length-1},fe=function(t){return ek(t)&&!Qo(t)},tk=function(t){return Ae(t)},Et=function(t){return fe(t)||pi(t)},nk=0,Jo=function(t){var n=++nk;return"".concat(t||"").concat(n)},Kt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!fe(t)&&!pi(t))return r;var l;if(ii(t)){var s=t.indexOf("%");l=n*parseFloat(t.slice(0,s))/100}else l=+t;return Qo(l)&&(l=r),o&&l>n&&(l=n),l},co=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},rk=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o<n;o++)if(!r[t[o]])r[t[o]]=!0;else return!0;return!1},tn=function(t,n){return fe(t)&&fe(n)?function(r){return t+r*(n-t)}:function(){return n}};function Fc(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):gn(r,t))===n})}var ak=function(t,n){return fe(t)&&fe(n)?t-n:pi(t)&&pi(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function yo(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function h0(e){"@babel/helpers - typeof";return h0=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},h0(e)}var ik=["viewBox","children"],ok=["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"],sA=["points","pathLength"],sv={svg:ik,polygon:sA,polyline:sA},Wb=["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"],Wc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!Zo(r))return null;var o={};return Object.keys(r).forEach(function(l){Wb.includes(l)&&(o[l]=n||function(s){return r[l](r,s)})}),o},lk=function(t,n,r){return function(o){return t(n,r,o),null}},mi=function(t,n,r){if(!Zo(t)||h0(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(l){var s=t[l];Wb.includes(l)&&typeof s=="function"&&(o||(o={}),o[l]=lk(s,n,r))}),o},uk=["children"],sk=["children"];function cA(e,t){if(e==null)return{};var n=ck(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ck(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function p0(e){"@babel/helpers - typeof";return p0=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},p0(e)}var fA={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"},Lr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},dA=null,cv=null,Zb=function e(t){if(t===dA&&Array.isArray(cv))return cv;var n=[];return P.Children.forEach(t,function(r){Ae(r)||(W6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),cv=n,dA=t,n};function $n(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Lr(o)}):r=[Lr(t)],Zb(e).forEach(function(o){var l=gn(o,"type.displayName")||gn(o,"type.name");r.indexOf(l)!==-1&&n.push(o)}),n}function mn(e,t){var n=$n(e,t);return n&&n[0]}var hA=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!fe(r)||r<=0||!fe(o)||o<=0)},fk=["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"],dk=function(t){return t&&t.type&&pi(t.type)&&fk.indexOf(t.type)>=0},hk=function(t){return t&&p0(t)==="object"&&"clipDot"in t},pk=function(t,n,r,o){var l,s=(l=sv==null?void 0:sv[o])!==null&&l!==void 0?l:[];return n.startsWith("data-")||!_e(t)&&(o&&s.includes(n)||ok.includes(n))||r&&Wb.includes(n)},ye=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(P.isValidElement(t)&&(o=t.props),!Zo(o))return null;var l={};return Object.keys(o).forEach(function(s){var f;pk((f=o)===null||f===void 0?void 0:f[s],s,n,r)&&(l[s]=o[s])}),l},m0=function e(t,n){if(t===n)return!0;var r=P.Children.count(t);if(r!==P.Children.count(n))return!1;if(r===0)return!0;if(r===1)return pA(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var l=t[o],s=n[o];if(Array.isArray(l)||Array.isArray(s)){if(!e(l,s))return!1}else if(!pA(l,s))return!1}return!0},pA=function(t,n){if(Ae(t)&&Ae(n))return!0;if(!Ae(t)&&!Ae(n)){var r=t.props||{},o=r.children,l=cA(r,uk),s=n.props||{},f=s.children,d=cA(s,sk);return o&&f?yo(l,d)&&m0(o,f):!o&&!f?yo(l,d):!1}return!1},mA=function(t,n){var r=[],o={};return Zb(t).forEach(function(l,s){if(dk(l))r.push(l);else if(l){var f=Lr(l.type),d=n[f]||{},h=d.handler,v=d.once;if(h&&(!v||!o[f])){var m=h(l,f,s);r.push(m),o[f]=!0}}}),r},mk=function(t){var n=t&&t.type;return n&&fA[n]?fA[n]:null},vk=function(t,n){return Zb(n).indexOf(t)},yk=["children","width","height","viewBox","className","style","title","desc"];function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}function gk(e,t){if(e==null)return{};var n=bk(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function y0(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,l=e.className,s=e.style,f=e.title,d=e.desc,h=gk(e,yk),v=o||{width:n,height:r,x:0,y:0},m=Ce("recharts-surface",l);return H.createElement("svg",v0({},ye(h,!0,"svg"),{className:m,width:n,height:r,style:s,viewBox:"".concat(v.x," ").concat(v.y," ").concat(v.width," ").concat(v.height)}),H.createElement("title",null,f),H.createElement("desc",null,d),t)}var xk=["children","className"];function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}function Sk(e,t){if(e==null)return{};var n=_k(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _k(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Le=H.forwardRef(function(e,t){var n=e.children,r=e.className,o=Sk(e,xk),l=Ce("recharts-layer",r);return H.createElement("g",g0({className:l},ye(o,!0),{ref:t}),n)}),qr=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),l=2;l<r;l++)o[l-2]=arguments[l]},fv,vA;function wk(){if(vA)return fv;vA=1;function e(t,n,r){var o=-1,l=t.length;n<0&&(n=-n>l?0:l+n),r=r>l?l:r,r<0&&(r+=l),l=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(l);++o<l;)s[o]=t[o+n];return s}return fv=e,fv}var dv,yA;function Ok(){if(yA)return dv;yA=1;var e=wk();function t(n,r,o){var l=n.length;return o=o===void 0?l:o,!r&&o>=l?n:e(n,r,o)}return dv=t,dv}var hv,gA;function DC(){if(gA)return hv;gA=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,l="\\ufe0e\\ufe0f",s="\\u200d",f=RegExp("["+s+e+o+l+"]");function d(h){return f.test(h)}return hv=d,hv}var pv,bA;function Ak(){if(bA)return pv;bA=1;function e(t){return t.split("")}return pv=e,pv}var mv,xA;function jk(){if(xA)return mv;xA=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,l="\\ufe0e\\ufe0f",s="["+e+"]",f="["+o+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+f+"|"+d+")",v="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",w=h+"?",_="["+l+"]?",x="(?:"+S+"(?:"+[v,m,b].join("|")+")"+_+w+")*",j=_+w+x,E="(?:"+[v+f+"?",f,m,b,s].join("|")+")",T=RegExp(d+"(?="+d+")|"+E+j,"g");function N(A){return A.match(T)||[]}return mv=N,mv}var vv,SA;function Ek(){if(SA)return vv;SA=1;var e=Ak(),t=DC(),n=jk();function r(o){return t(o)?n(o):e(o)}return vv=r,vv}var yv,_A;function Tk(){if(_A)return yv;_A=1;var e=Ok(),t=DC(),n=Ek(),r=CC();function o(l){return function(s){s=r(s);var f=t(s)?n(s):void 0,d=f?f[0]:s.charAt(0),h=f?e(f,1).join(""):s.slice(1);return d[l]()+h}}return yv=o,yv}var gv,wA;function Nk(){if(wA)return gv;wA=1;var e=Tk(),t=e("toUpperCase");return gv=t,gv}var Ck=Nk();const ad=Ze(Ck);function tt(e){return function(){return e}}const kC=Math.cos,Zc=Math.sin,Wn=Math.sqrt,Qc=Math.PI,id=2*Qc,b0=Math.PI,x0=2*b0,ni=1e-6,Mk=x0-ni;function $C(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Rk(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return $C;const n=10**t;return function(r){this._+=r[0];for(let o=1,l=r.length;o<l;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class Pk{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?$C:Rk(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,l,s){this._append`C${+t},${+n},${+r},${+o},${this._x1=+l},${this._y1=+s}`}arcTo(t,n,r,o,l){if(t=+t,n=+n,r=+r,o=+o,l=+l,l<0)throw new Error(`negative radius: ${l}`);let s=this._x1,f=this._y1,d=r-t,h=o-n,v=s-t,m=f-n,b=v*v+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(b>ni)if(!(Math.abs(m*d-h*v)>ni)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let S=r-s,w=o-f,_=d*d+h*h,x=S*S+w*w,j=Math.sqrt(_),E=Math.sqrt(b),T=l*Math.tan((b0-Math.acos((_+b-x)/(2*j*E)))/2),N=T/E,A=T/j;Math.abs(N-1)>ni&&this._append`L${t+N*v},${n+N*m}`,this._append`A${l},${l},0,0,${+(m*S>v*w)},${this._x1=t+A*d},${this._y1=n+A*h}`}}arc(t,n,r,o,l,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(o),d=r*Math.sin(o),h=t+f,v=n+d,m=1^s,b=s?o-l:l-o;this._x1===null?this._append`M${h},${v}`:(Math.abs(this._x1-h)>ni||Math.abs(this._y1-v)>ni)&&this._append`L${h},${v}`,r&&(b<0&&(b=b%x0+x0),b>Mk?this._append`A${r},${r},0,1,${m},${t-f},${n-d}A${r},${r},0,1,${m},${this._x1=h},${this._y1=v}`:b>ni&&this._append`A${r},${r},0,${+(b>=b0)},${m},${this._x1=t+r*Math.cos(l)},${this._y1=n+r*Math.sin(l)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function Qb(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Pk(t)}function Jb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function LC(e){this._context=e}LC.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 od(e){return new LC(e)}function qC(e){return e[0]}function BC(e){return e[1]}function zC(e,t){var n=tt(!0),r=null,o=od,l=null,s=Qb(f);e=typeof e=="function"?e:e===void 0?qC:tt(e),t=typeof t=="function"?t:t===void 0?BC:tt(t);function f(d){var h,v=(d=Jb(d)).length,m,b=!1,S;for(r==null&&(l=o(S=s())),h=0;h<=v;++h)!(h<v&&n(m=d[h],h,d))===b&&((b=!b)?l.lineStart():l.lineEnd()),b&&l.point(+e(m,h,d),+t(m,h,d));if(S)return l=null,S+""||null}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),f):e},f.y=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),f):t},f.defined=function(d){return arguments.length?(n=typeof d=="function"?d:tt(!!d),f):n},f.curve=function(d){return arguments.length?(o=d,r!=null&&(l=o(r)),f):o},f.context=function(d){return arguments.length?(d==null?r=l=null:l=o(r=d),f):r},f}function Mc(e,t,n){var r=null,o=tt(!0),l=null,s=od,f=null,d=Qb(h);e=typeof e=="function"?e:e===void 0?qC:tt(+e),t=typeof t=="function"?t:tt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?BC:tt(+n);function h(m){var b,S,w,_=(m=Jb(m)).length,x,j=!1,E,T=new Array(_),N=new Array(_);for(l==null&&(f=s(E=d())),b=0;b<=_;++b){if(!(b<_&&o(x=m[b],b,m))===j)if(j=!j)S=b,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),w=b-1;w>=S;--w)f.point(T[w],N[w]);f.lineEnd(),f.areaEnd()}j&&(T[b]=+e(x,b,m),N[b]=+t(x,b,m),f.point(r?+r(x,b,m):T[b],n?+n(x,b,m):N[b]))}if(E)return f=null,E+""||null}function v(){return zC().defined(o).curve(s).context(l)}return h.x=function(m){return arguments.length?(e=typeof m=="function"?m:tt(+m),r=null,h):e},h.x0=function(m){return arguments.length?(e=typeof m=="function"?m:tt(+m),h):e},h.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:tt(+m),h):r},h.y=function(m){return arguments.length?(t=typeof m=="function"?m:tt(+m),n=null,h):t},h.y0=function(m){return arguments.length?(t=typeof m=="function"?m:tt(+m),h):t},h.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:tt(+m),h):n},h.lineX0=h.lineY0=function(){return v().x(e).y(t)},h.lineY1=function(){return v().x(e).y(n)},h.lineX1=function(){return v().x(r).y(t)},h.defined=function(m){return arguments.length?(o=typeof m=="function"?m:tt(!!m),h):o},h.curve=function(m){return arguments.length?(s=m,l!=null&&(f=s(l)),h):s},h.context=function(m){return arguments.length?(m==null?l=f=null:f=s(l=m),h):l},h}class UC{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Dk(e){return new UC(e,!0)}function kk(e){return new UC(e,!1)}const ex={draw(e,t){const n=Wn(t/Qc);e.moveTo(n,0),e.arc(0,0,n,0,id)}},$k={draw(e,t){const n=Wn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},IC=Wn(1/3),Lk=IC*2,qk={draw(e,t){const n=Wn(t/Lk),r=n*IC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Bk={draw(e,t){const n=Wn(t),r=-n/2;e.rect(r,r,n,n)}},zk=.8908130915292852,HC=Zc(Qc/10)/Zc(7*Qc/10),Uk=Zc(id/10)*HC,Ik=-kC(id/10)*HC,Hk={draw(e,t){const n=Wn(t*zk),r=Uk*n,o=Ik*n;e.moveTo(0,-n),e.lineTo(r,o);for(let l=1;l<5;++l){const s=id*l/5,f=kC(s),d=Zc(s);e.lineTo(d*n,-f*n),e.lineTo(f*r-d*o,d*r+f*o)}e.closePath()}},bv=Wn(3),Gk={draw(e,t){const n=-Wn(t/(bv*3));e.moveTo(0,n*2),e.lineTo(-bv*n,-n),e.lineTo(bv*n,-n),e.closePath()}},Cn=-.5,Mn=Wn(3)/2,S0=1/Wn(12),Yk=(S0/2+1)*3,Kk={draw(e,t){const n=Wn(t/Yk),r=n/2,o=n*S0,l=r,s=n*S0+n,f=-l,d=s;e.moveTo(r,o),e.lineTo(l,s),e.lineTo(f,d),e.lineTo(Cn*r-Mn*o,Mn*r+Cn*o),e.lineTo(Cn*l-Mn*s,Mn*l+Cn*s),e.lineTo(Cn*f-Mn*d,Mn*f+Cn*d),e.lineTo(Cn*r+Mn*o,Cn*o-Mn*r),e.lineTo(Cn*l+Mn*s,Cn*s-Mn*l),e.lineTo(Cn*f+Mn*d,Cn*d-Mn*f),e.closePath()}};function Xk(e,t){let n=null,r=Qb(o);e=typeof e=="function"?e:tt(e||ex),t=typeof t=="function"?t:tt(t===void 0?64:+t);function o(){let l;if(n||(n=l=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return o.type=function(l){return arguments.length?(e=typeof l=="function"?l:tt(l),o):e},o.size=function(l){return arguments.length?(t=typeof l=="function"?l:tt(+l),o):t},o.context=function(l){return arguments.length?(n=l??null,o):n},o}function Jc(){}function ef(e,t,n){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+n)/6)}function GC(e){this._context=e}GC.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:ef(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:ef(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vk(e){return new GC(e)}function YC(e){this._context=e}YC.prototype={areaStart:Jc,areaEnd:Jc,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:ef(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fk(e){return new YC(e)}function KC(e){this._context=e}KC.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ef(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Wk(e){return new KC(e)}function XC(e){this._context=e}XC.prototype={areaStart:Jc,areaEnd:Jc,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 Zk(e){return new XC(e)}function OA(e){return e<0?-1:1}function AA(e,t,n){var r=e._x1-e._x0,o=t-e._x1,l=(e._y1-e._y0)/(r||o<0&&-0),s=(n-e._y1)/(o||r<0&&-0),f=(l*o+s*r)/(r+o);return(OA(l)+OA(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(f))||0}function jA(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function xv(e,t,n){var r=e._x0,o=e._y0,l=e._x1,s=e._y1,f=(l-r)/3;e._context.bezierCurveTo(r+f,o+f*t,l-f,s-f*n,l,s)}function tf(e){this._context=e}tf.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:xv(this,this._t0,jA(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 n=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,xv(this,jA(this,n=AA(this,e,t)),n);break;default:xv(this,this._t0,n=AA(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function VC(e){this._context=new FC(e)}(VC.prototype=Object.create(tf.prototype)).point=function(e,t){tf.prototype.point.call(this,t,e)};function FC(e){this._context=e}FC.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,n,r,o,l){this._context.bezierCurveTo(t,e,r,n,l,o)}};function Qk(e){return new tf(e)}function Jk(e){return new VC(e)}function WC(e){this._context=e}WC.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=EA(e),o=EA(t),l=0,s=1;s<n;++l,++s)this._context.bezierCurveTo(r[0][l],o[0][l],r[1][l],o[1][l],e[s],t[s]);(this._line||this._line!==0&&n===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 EA(e){var t,n=e.length-1,r,o=new Array(n),l=new Array(n),s=new Array(n);for(o[0]=0,l[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,l[t]=4,s[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,l[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/l[t-1],l[t]-=r,s[t]-=r*s[t-1];for(o[n-1]=s[n-1]/l[n-1],t=n-2;t>=0;--t)o[t]=(s[t]-o[t+1])/l[t];for(l[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-o[t+1];return[o,l]}function e$(e){return new WC(e)}function ld(e,t){this._context=e,this._t=t}ld.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function t$(e){return new ld(e,.5)}function n$(e){return new ld(e,0)}function r$(e){return new ld(e,1)}function So(e,t){if((s=e.length)>1)for(var n=1,r,o,l=e[t[0]],s,f=l.length;n<s;++n)for(o=l,l=e[t[n]],r=0;r<f;++r)l[r][1]+=l[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function _0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function a$(e,t){return e[t]}function i$(e){const t=[];return t.key=e,t}function o$(){var e=tt([]),t=_0,n=So,r=a$;function o(l){var s=Array.from(e.apply(this,arguments),i$),f,d=s.length,h=-1,v;for(const m of l)for(f=0,++h;f<d;++f)(s[f][h]=[0,+r(m,s[f].key,h,l)]).data=m;for(f=0,v=Jb(t(s));f<d;++f)s[v[f]].index=f;return n(s,v),s}return o.keys=function(l){return arguments.length?(e=typeof l=="function"?l:tt(Array.from(l)),o):e},o.value=function(l){return arguments.length?(r=typeof l=="function"?l:tt(+l),o):r},o.order=function(l){return arguments.length?(t=l==null?_0:typeof l=="function"?l:tt(Array.from(l)),o):t},o.offset=function(l){return arguments.length?(n=l??So,o):n},o}function l$(e,t){if((r=e.length)>0){for(var n,r,o=0,l=e[0].length,s;o<l;++o){for(s=n=0;n<r;++n)s+=e[n][o][1]||0;if(s)for(n=0;n<r;++n)e[n][o][1]/=s}So(e,t)}}function u$(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,l=r.length;n<l;++n){for(var s=0,f=0;s<o;++s)f+=e[s][n][1]||0;r[n][1]+=r[n][0]=-f/2}So(e,t)}}function s$(e,t){if(!(!((s=e.length)>0)||!((l=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,l,s;r<l;++r){for(var f=0,d=0,h=0;f<s;++f){for(var v=e[t[f]],m=v[r][1]||0,b=v[r-1][1]||0,S=(m-b)/2,w=0;w<f;++w){var _=e[t[w]],x=_[r][1]||0,j=_[r-1][1]||0;S+=x-j}d+=m,h+=S*m}o[r-1][1]+=o[r-1][0]=n,d&&(n-=h/d)}o[r-1][1]+=o[r-1][0]=n,So(e,t)}}function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}var c$=["type","size","sizeType"];function w0(){return w0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w0.apply(this,arguments)}function TA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function NA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(n),!0).forEach(function(r){f$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f$(e,t,n){return t=d$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d$(e){var t=h$(e,"string");return _u(t)=="symbol"?t:t+""}function h$(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p$(e,t){if(e==null)return{};var n=m$(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function m$(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ZC={symbolCircle:ex,symbolCross:$k,symbolDiamond:qk,symbolSquare:Bk,symbolStar:Hk,symbolTriangle:Gk,symbolWye:Kk},v$=Math.PI/180,y$=function(t){var n="symbol".concat(ad(t));return ZC[n]||ex},g$=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*v$;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),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}},b$=function(t,n){ZC["symbol".concat(ad(t))]=n},tx=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,l=o===void 0?64:o,s=t.sizeType,f=s===void 0?"area":s,d=p$(t,c$),h=NA(NA({},d),{},{type:r,size:l,sizeType:f}),v=function(){var x=y$(r),j=Xk().type(x).size(g$(l,f,r));return j()},m=h.className,b=h.cx,S=h.cy,w=ye(h,!0);return b===+b&&S===+S&&l===+l?H.createElement("path",w0({},w,{className:Ce("recharts-symbols",m),transform:"translate(".concat(b,", ").concat(S,")"),d:v()})):null};tx.registerSymbol=b$;function _o(e){"@babel/helpers - typeof";return _o=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},_o(e)}function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function x$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(n),!0).forEach(function(r){wu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JC(r.key),r)}}function w$(e,t,n){return t&&_$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O$(e,t,n){return t=nf(t),A$(e,QC()?Reflect.construct(t,n||[],nf(e).constructor):t.apply(e,n))}function A$(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j$(e)}function j$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QC=function(){return!!e})()}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function E$(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&&A0(e,t)}function A0(e,t){return A0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},A0(e,t)}function wu(e,t,n){return t=JC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JC(e){var t=T$(e,"string");return _o(t)=="symbol"?t:t+""}function T$(e,t){if(_o(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rn=32,nx=(function(e){function t(){return S$(this,t),O$(this,t,arguments)}return E$(t,e),w$(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,l=Rn/2,s=Rn/6,f=Rn/3,d=r.inactive?o:r.color;if(r.type==="plainline")return H.createElement("line",{strokeWidth:4,fill:"none",stroke:d,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:l,x2:Rn,y2:l,className:"recharts-legend-icon"});if(r.type==="line")return H.createElement("path",{strokeWidth:4,fill:"none",stroke:d,d:"M0,".concat(l,"h").concat(f,`
|
|
69
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*f,",").concat(l,`
|
|
70
|
+
H`).concat(Rn,"M").concat(2*f,",").concat(l,`
|
|
71
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(f,",").concat(l),className:"recharts-legend-icon"});if(r.type==="rect")return H.createElement("path",{stroke:"none",fill:d,d:"M0,".concat(Rn/8,"h").concat(Rn,"v").concat(Rn*3/4,"h").concat(-Rn,"z"),className:"recharts-legend-icon"});if(H.isValidElement(r.legendIcon)){var h=x$({},r);return delete h.legendIcon,H.cloneElement(r.legendIcon,h)}return H.createElement(tx,{fill:d,cx:l,cy:l,size:Rn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,l=o.payload,s=o.iconSize,f=o.layout,d=o.formatter,h=o.inactiveColor,v={x:0,y:0,width:Rn,height:Rn},m={display:f==="horizontal"?"inline-block":"block",marginRight:10},b={display:"inline-block",verticalAlign:"middle",marginRight:4};return l.map(function(S,w){var _=S.formatter||d,x=Ce(wu(wu({"recharts-legend-item":!0},"legend-item-".concat(w),!0),"inactive",S.inactive));if(S.type==="none")return null;var j=_e(S.value)?null:S.value;qr(!_e(S.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 E=S.inactive?h:S.color;return H.createElement("li",O0({className:x,style:m,key:"legend-item-".concat(w)},mi(r.props,S,w)),H.createElement(y0,{width:s,height:s,viewBox:v,style:b},r.renderIcon(S)),H.createElement("span",{className:"recharts-legend-item-text",style:{color:E}},_?_(j,S,w):j))})}},{key:"render",value:function(){var r=this.props,o=r.payload,l=r.layout,s=r.align;if(!o||!o.length)return null;var f={padding:0,margin:0,textAlign:l==="horizontal"?s:"left"};return H.createElement("ul",{className:"recharts-default-legend",style:f},this.renderItems())}}])})(P.PureComponent);wu(nx,"displayName","Legend");wu(nx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Sv,MA;function N$(){if(MA)return Sv;MA=1;var e=td();function t(){this.__data__=new e,this.size=0}return Sv=t,Sv}var _v,RA;function C$(){if(RA)return _v;RA=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return _v=e,_v}var wv,PA;function M$(){if(PA)return wv;PA=1;function e(t){return this.__data__.get(t)}return wv=e,wv}var Ov,DA;function R$(){if(DA)return Ov;DA=1;function e(t){return this.__data__.has(t)}return Ov=e,Ov}var Av,kA;function P$(){if(kA)return Av;kA=1;var e=td(),t=Kb(),n=Xb(),r=200;function o(l,s){var f=this.__data__;if(f instanceof e){var d=f.__data__;if(!t||d.length<r-1)return d.push([l,s]),this.size=++f.size,this;f=this.__data__=new n(d)}return f.set(l,s),this.size=f.size,this}return Av=o,Av}var jv,$A;function eM(){if($A)return jv;$A=1;var e=td(),t=N$(),n=C$(),r=M$(),o=R$(),l=P$();function s(f){var d=this.__data__=new e(f);this.size=d.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=o,s.prototype.set=l,jv=s,jv}var Ev,LA;function D$(){if(LA)return Ev;LA=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Ev=t,Ev}var Tv,qA;function k$(){if(qA)return Tv;qA=1;function e(t){return this.__data__.has(t)}return Tv=e,Tv}var Nv,BA;function tM(){if(BA)return Nv;BA=1;var e=Xb(),t=D$(),n=k$();function r(o){var l=-1,s=o==null?0:o.length;for(this.__data__=new e;++l<s;)this.add(o[l])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Nv=r,Nv}var Cv,zA;function nM(){if(zA)return Cv;zA=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return Cv=e,Cv}var Mv,UA;function rM(){if(UA)return Mv;UA=1;function e(t,n){return t.has(n)}return Mv=e,Mv}var Rv,IA;function aM(){if(IA)return Rv;IA=1;var e=tM(),t=nM(),n=rM(),r=1,o=2;function l(s,f,d,h,v,m){var b=d&r,S=s.length,w=f.length;if(S!=w&&!(b&&w>S))return!1;var _=m.get(s),x=m.get(f);if(_&&x)return _==f&&x==s;var j=-1,E=!0,T=d&o?new e:void 0;for(m.set(s,f),m.set(f,s);++j<S;){var N=s[j],A=f[j];if(h)var C=b?h(A,N,j,f,s,m):h(N,A,j,s,f,m);if(C!==void 0){if(C)continue;E=!1;break}if(T){if(!t(f,function(M,D){if(!n(T,D)&&(N===M||v(N,M,d,h,m)))return T.push(D)})){E=!1;break}}else if(!(N===A||v(N,A,d,h,m))){E=!1;break}}return m.delete(s),m.delete(f),E}return Rv=l,Rv}var Pv,HA;function $$(){if(HA)return Pv;HA=1;var e=cr(),t=e.Uint8Array;return Pv=t,Pv}var Dv,GA;function L$(){if(GA)return Dv;GA=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,l){r[++n]=[l,o]}),r}return Dv=e,Dv}var kv,YA;function rx(){if(YA)return kv;YA=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return kv=e,kv}var $v,KA;function q$(){if(KA)return $v;KA=1;var e=is(),t=$$(),n=Yb(),r=aM(),o=L$(),l=rx(),s=1,f=2,d="[object Boolean]",h="[object Date]",v="[object Error]",m="[object Map]",b="[object Number]",S="[object RegExp]",w="[object Set]",_="[object String]",x="[object Symbol]",j="[object ArrayBuffer]",E="[object DataView]",T=e?e.prototype:void 0,N=T?T.valueOf:void 0;function A(C,M,D,$,B,I,q){switch(D){case E:if(C.byteLength!=M.byteLength||C.byteOffset!=M.byteOffset)return!1;C=C.buffer,M=M.buffer;case j:return!(C.byteLength!=M.byteLength||!I(new t(C),new t(M)));case d:case h:case b:return n(+C,+M);case v:return C.name==M.name&&C.message==M.message;case S:case _:return C==M+"";case m:var Y=o;case w:var K=$&s;if(Y||(Y=l),C.size!=M.size&&!K)return!1;var W=q.get(C);if(W)return W==M;$|=f,q.set(C,M);var k=r(Y(C),Y(M),$,B,I,q);return q.delete(C),k;case x:if(N)return N.call(C)==N.call(M)}return!1}return $v=A,$v}var Lv,XA;function iM(){if(XA)return Lv;XA=1;function e(t,n){for(var r=-1,o=n.length,l=t.length;++r<o;)t[l+r]=n[r];return t}return Lv=e,Lv}var qv,VA;function B$(){if(VA)return qv;VA=1;var e=iM(),t=rn();function n(r,o,l){var s=o(r);return t(r)?s:e(s,l(r))}return qv=n,qv}var Bv,FA;function z$(){if(FA)return Bv;FA=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,l=0,s=[];++r<o;){var f=t[r];n(f,r,t)&&(s[l++]=f)}return s}return Bv=e,Bv}var zv,WA;function U$(){if(WA)return zv;WA=1;function e(){return[]}return zv=e,zv}var Uv,ZA;function I$(){if(ZA)return Uv;ZA=1;var e=z$(),t=U$(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,l=o?function(s){return s==null?[]:(s=Object(s),e(o(s),function(f){return r.call(s,f)}))}:t;return Uv=l,Uv}var Iv,QA;function H$(){if(QA)return Iv;QA=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return Iv=e,Iv}var Hv,JA;function G$(){if(JA)return Hv;JA=1;var e=Kr(),t=Xr(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return Hv=r,Hv}var Gv,e2;function ax(){if(e2)return Gv;e2=1;var e=G$(),t=Xr(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(s){return t(s)&&r.call(s,"callee")&&!o.call(s,"callee")};return Gv=l,Gv}var du={exports:{}},Yv,t2;function Y$(){if(t2)return Yv;t2=1;function e(){return!1}return Yv=e,Yv}du.exports;var n2;function oM(){return n2||(n2=1,(function(e,t){var n=cr(),r=Y$(),o=t&&!t.nodeType&&t,l=o&&!0&&e&&!e.nodeType&&e,s=l&&l.exports===o,f=s?n.Buffer:void 0,d=f?f.isBuffer:void 0,h=d||r;e.exports=h})(du,du.exports)),du.exports}var Kv,r2;function ix(){if(r2)return Kv;r2=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var l=typeof r;return o=o??e,!!o&&(l=="number"||l!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return Kv=n,Kv}var Xv,a2;function ox(){if(a2)return Xv;a2=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Xv=t,Xv}var Vv,i2;function K$(){if(i2)return Vv;i2=1;var e=Kr(),t=ox(),n=Xr(),r="[object Arguments]",o="[object Array]",l="[object Boolean]",s="[object Date]",f="[object Error]",d="[object Function]",h="[object Map]",v="[object Number]",m="[object Object]",b="[object RegExp]",S="[object Set]",w="[object String]",_="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",E="[object Float32Array]",T="[object Float64Array]",N="[object Int8Array]",A="[object Int16Array]",C="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",$="[object Uint16Array]",B="[object Uint32Array]",I={};I[E]=I[T]=I[N]=I[A]=I[C]=I[M]=I[D]=I[$]=I[B]=!0,I[r]=I[o]=I[x]=I[l]=I[j]=I[s]=I[f]=I[d]=I[h]=I[v]=I[m]=I[b]=I[S]=I[w]=I[_]=!1;function q(Y){return n(Y)&&t(Y.length)&&!!I[e(Y)]}return Vv=q,Vv}var Fv,o2;function lM(){if(o2)return Fv;o2=1;function e(t){return function(n){return t(n)}}return Fv=e,Fv}var hu={exports:{}};hu.exports;var l2;function X$(){return l2||(l2=1,(function(e,t){var n=EC(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===r,s=l&&n.process,f=(function(){try{var d=o&&o.require&&o.require("util").types;return d||s&&s.binding&&s.binding("util")}catch{}})();e.exports=f})(hu,hu.exports)),hu.exports}var Wv,u2;function uM(){if(u2)return Wv;u2=1;var e=K$(),t=lM(),n=X$(),r=n&&n.isTypedArray,o=r?t(r):e;return Wv=o,Wv}var Zv,s2;function V$(){if(s2)return Zv;s2=1;var e=H$(),t=ax(),n=rn(),r=oM(),o=ix(),l=uM(),s=Object.prototype,f=s.hasOwnProperty;function d(h,v){var m=n(h),b=!m&&t(h),S=!m&&!b&&r(h),w=!m&&!b&&!S&&l(h),_=m||b||S||w,x=_?e(h.length,String):[],j=x.length;for(var E in h)(v||f.call(h,E))&&!(_&&(E=="length"||S&&(E=="offset"||E=="parent")||w&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||o(E,j)))&&x.push(E);return x}return Zv=d,Zv}var Qv,c2;function F$(){if(c2)return Qv;c2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return Qv=t,Qv}var Jv,f2;function sM(){if(f2)return Jv;f2=1;function e(t,n){return function(r){return t(n(r))}}return Jv=e,Jv}var ey,d2;function W$(){if(d2)return ey;d2=1;var e=sM(),t=e(Object.keys,Object);return ey=t,ey}var ty,h2;function Z$(){if(h2)return ty;h2=1;var e=F$(),t=W$(),n=Object.prototype,r=n.hasOwnProperty;function o(l){if(!e(l))return t(l);var s=[];for(var f in Object(l))r.call(l,f)&&f!="constructor"&&s.push(f);return s}return ty=o,ty}var ny,p2;function os(){if(p2)return ny;p2=1;var e=Gb(),t=ox();function n(r){return r!=null&&t(r.length)&&!e(r)}return ny=n,ny}var ry,m2;function ud(){if(m2)return ry;m2=1;var e=V$(),t=Z$(),n=os();function r(o){return n(o)?e(o):t(o)}return ry=r,ry}var ay,v2;function Q$(){if(v2)return ay;v2=1;var e=B$(),t=I$(),n=ud();function r(o){return e(o,n,t)}return ay=r,ay}var iy,y2;function J$(){if(y2)return iy;y2=1;var e=Q$(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(l,s,f,d,h,v){var m=f&t,b=e(l),S=b.length,w=e(s),_=w.length;if(S!=_&&!m)return!1;for(var x=S;x--;){var j=b[x];if(!(m?j in s:r.call(s,j)))return!1}var E=v.get(l),T=v.get(s);if(E&&T)return E==s&&T==l;var N=!0;v.set(l,s),v.set(s,l);for(var A=m;++x<S;){j=b[x];var C=l[j],M=s[j];if(d)var D=m?d(M,C,j,s,l,v):d(C,M,j,l,s,v);if(!(D===void 0?C===M||h(C,M,f,d,v):D)){N=!1;break}A||(A=j=="constructor")}if(N&&!A){var $=l.constructor,B=s.constructor;$!=B&&"constructor"in l&&"constructor"in s&&!(typeof $=="function"&&$ instanceof $&&typeof B=="function"&&B instanceof B)&&(N=!1)}return v.delete(l),v.delete(s),N}return iy=o,iy}var oy,g2;function eL(){if(g2)return oy;g2=1;var e=bi(),t=cr(),n=e(t,"DataView");return oy=n,oy}var ly,b2;function tL(){if(b2)return ly;b2=1;var e=bi(),t=cr(),n=e(t,"Promise");return ly=n,ly}var uy,x2;function cM(){if(x2)return uy;x2=1;var e=bi(),t=cr(),n=e(t,"Set");return uy=n,uy}var sy,S2;function nL(){if(S2)return sy;S2=1;var e=bi(),t=cr(),n=e(t,"WeakMap");return sy=n,sy}var cy,_2;function rL(){if(_2)return cy;_2=1;var e=eL(),t=Kb(),n=tL(),r=cM(),o=nL(),l=Kr(),s=TC(),f="[object Map]",d="[object Object]",h="[object Promise]",v="[object Set]",m="[object WeakMap]",b="[object DataView]",S=s(e),w=s(t),_=s(n),x=s(r),j=s(o),E=l;return(e&&E(new e(new ArrayBuffer(1)))!=b||t&&E(new t)!=f||n&&E(n.resolve())!=h||r&&E(new r)!=v||o&&E(new o)!=m)&&(E=function(T){var N=l(T),A=N==d?T.constructor:void 0,C=A?s(A):"";if(C)switch(C){case S:return b;case w:return f;case _:return h;case x:return v;case j:return m}return N}),cy=E,cy}var fy,w2;function aL(){if(w2)return fy;w2=1;var e=eM(),t=aM(),n=q$(),r=J$(),o=rL(),l=rn(),s=oM(),f=uM(),d=1,h="[object Arguments]",v="[object Array]",m="[object Object]",b=Object.prototype,S=b.hasOwnProperty;function w(_,x,j,E,T,N){var A=l(_),C=l(x),M=A?v:o(_),D=C?v:o(x);M=M==h?m:M,D=D==h?m:D;var $=M==m,B=D==m,I=M==D;if(I&&s(_)){if(!s(x))return!1;A=!0,$=!1}if(I&&!$)return N||(N=new e),A||f(_)?t(_,x,j,E,T,N):n(_,x,M,j,E,T,N);if(!(j&d)){var q=$&&S.call(_,"__wrapped__"),Y=B&&S.call(x,"__wrapped__");if(q||Y){var K=q?_.value():_,W=Y?x.value():x;return N||(N=new e),T(K,W,j,E,N)}}return I?(N||(N=new e),r(_,x,j,E,T,N)):!1}return fy=w,fy}var dy,O2;function lx(){if(O2)return dy;O2=1;var e=aL(),t=Xr();function n(r,o,l,s,f){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,l,s,n,f)}return dy=n,dy}var hy,A2;function iL(){if(A2)return hy;A2=1;var e=eM(),t=lx(),n=1,r=2;function o(l,s,f,d){var h=f.length,v=h,m=!d;if(l==null)return!v;for(l=Object(l);h--;){var b=f[h];if(m&&b[2]?b[1]!==l[b[0]]:!(b[0]in l))return!1}for(;++h<v;){b=f[h];var S=b[0],w=l[S],_=b[1];if(m&&b[2]){if(w===void 0&&!(S in l))return!1}else{var x=new e;if(d)var j=d(w,_,S,l,s,x);if(!(j===void 0?t(_,w,n|r,d,x):j))return!1}}return!0}return hy=o,hy}var py,j2;function fM(){if(j2)return py;j2=1;var e=Ca();function t(n){return n===n&&!e(n)}return py=t,py}var my,E2;function oL(){if(E2)return my;E2=1;var e=fM(),t=ud();function n(r){for(var o=t(r),l=o.length;l--;){var s=o[l],f=r[s];o[l]=[s,f,e(f)]}return o}return my=n,my}var vy,T2;function dM(){if(T2)return vy;T2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return vy=e,vy}var yy,N2;function lL(){if(N2)return yy;N2=1;var e=iL(),t=oL(),n=dM();function r(o){var l=t(o);return l.length==1&&l[0][2]?n(l[0][0],l[0][1]):function(s){return s===o||e(s,o,l)}}return yy=r,yy}var gy,C2;function uL(){if(C2)return gy;C2=1;function e(t,n){return t!=null&&n in Object(t)}return gy=e,gy}var by,M2;function sL(){if(M2)return by;M2=1;var e=MC(),t=ax(),n=rn(),r=ix(),o=ox(),l=rd();function s(f,d,h){d=e(d,f);for(var v=-1,m=d.length,b=!1;++v<m;){var S=l(d[v]);if(!(b=f!=null&&h(f,S)))break;f=f[S]}return b||++v!=m?b:(m=f==null?0:f.length,!!m&&o(m)&&r(S,m)&&(n(f)||t(f)))}return by=s,by}var xy,R2;function cL(){if(R2)return xy;R2=1;var e=uL(),t=sL();function n(r,o){return r!=null&&t(r,o,e)}return xy=n,xy}var Sy,P2;function fL(){if(P2)return Sy;P2=1;var e=lx(),t=RC(),n=cL(),r=Hb(),o=fM(),l=dM(),s=rd(),f=1,d=2;function h(v,m){return r(v)&&o(m)?l(s(v),m):function(b){var S=t(b,v);return S===void 0&&S===m?n(b,v):e(m,S,f|d)}}return Sy=h,Sy}var _y,D2;function el(){if(D2)return _y;D2=1;function e(t){return t}return _y=e,_y}var wy,k2;function dL(){if(k2)return wy;k2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return wy=e,wy}var Oy,$2;function hL(){if($2)return Oy;$2=1;var e=Fb();function t(n){return function(r){return e(r,n)}}return Oy=t,Oy}var Ay,L2;function pL(){if(L2)return Ay;L2=1;var e=dL(),t=hL(),n=Hb(),r=rd();function o(l){return n(l)?e(r(l)):t(l)}return Ay=o,Ay}var jy,q2;function fr(){if(q2)return jy;q2=1;var e=lL(),t=fL(),n=el(),r=rn(),o=pL();function l(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):o(s)}return jy=l,jy}var Ey,B2;function hM(){if(B2)return Ey;B2=1;function e(t,n,r,o){for(var l=t.length,s=r+(o?1:-1);o?s--:++s<l;)if(n(t[s],s,t))return s;return-1}return Ey=e,Ey}var Ty,z2;function mL(){if(z2)return Ty;z2=1;function e(t){return t!==t}return Ty=e,Ty}var Ny,U2;function vL(){if(U2)return Ny;U2=1;function e(t,n,r){for(var o=r-1,l=t.length;++o<l;)if(t[o]===n)return o;return-1}return Ny=e,Ny}var Cy,I2;function yL(){if(I2)return Cy;I2=1;var e=hM(),t=mL(),n=vL();function r(o,l,s){return l===l?n(o,l,s):e(o,t,s)}return Cy=r,Cy}var My,H2;function gL(){if(H2)return My;H2=1;var e=yL();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return My=t,My}var Ry,G2;function bL(){if(G2)return Ry;G2=1;function e(t,n,r){for(var o=-1,l=t==null?0:t.length;++o<l;)if(r(n,t[o]))return!0;return!1}return Ry=e,Ry}var Py,Y2;function xL(){if(Y2)return Py;Y2=1;function e(){}return Py=e,Py}var Dy,K2;function SL(){if(K2)return Dy;K2=1;var e=cM(),t=xL(),n=rx(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(l){return new e(l)}:t;return Dy=o,Dy}var ky,X2;function _L(){if(X2)return ky;X2=1;var e=tM(),t=gL(),n=bL(),r=rM(),o=SL(),l=rx(),s=200;function f(d,h,v){var m=-1,b=t,S=d.length,w=!0,_=[],x=_;if(v)w=!1,b=n;else if(S>=s){var j=h?null:o(d);if(j)return l(j);w=!1,b=r,x=new e}else x=h?[]:_;e:for(;++m<S;){var E=d[m],T=h?h(E):E;if(E=v||E!==0?E:0,w&&T===T){for(var N=x.length;N--;)if(x[N]===T)continue e;h&&x.push(T),_.push(E)}else b(x,T,v)||(x!==_&&x.push(T),_.push(E))}return _}return ky=f,ky}var $y,V2;function wL(){if(V2)return $y;V2=1;var e=fr(),t=_L();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return $y=n,$y}var OL=wL();const F2=Ze(OL);function pM(e,t,n){return t===!0?F2(e,n):_e(t)?F2(e,t):e}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)}var AL=["ref"];function W2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W2(Object(n),!0).forEach(function(r){sd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vM(r.key),r)}}function EL(e,t,n){return t&&Z2(e.prototype,t),n&&Z2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TL(e,t,n){return t=rf(t),NL(e,mM()?Reflect.construct(t,n||[],rf(e).constructor):t.apply(e,n))}function NL(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 CL(e)}function CL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mM=function(){return!!e})()}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function ML(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&&j0(e,t)}function j0(e,t){return j0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},j0(e,t)}function sd(e,t,n){return t=vM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vM(e){var t=RL(e,"string");return wo(t)=="symbol"?t:t+""}function RL(e,t){if(wo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function PL(e,t){if(e==null)return{};var n=DL(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function kL(e){return e.value}function $L(e,t){if(H.isValidElement(e))return H.cloneElement(e,t);if(typeof e=="function")return H.createElement(e,t);t.ref;var n=PL(t,AL);return H.createElement(nx,n)}var Q2=1,ci=(function(e){function t(){var n;jL(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=TL(this,t,[].concat(o)),sd(n,"lastBoundingBox",{width:-1,height:-1}),n}return ML(t,e),EL(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>Q2||Math.abs(o.height-this.lastBoundingBox.height)>Q2)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Mr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,l=o.layout,s=o.align,f=o.verticalAlign,d=o.margin,h=o.chartWidth,v=o.chartHeight,m,b;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&l==="vertical"){var S=this.getBBoxSnapshot();m={left:((h||0)-S.width)/2}}else m=s==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(f==="middle"){var w=this.getBBoxSnapshot();b={top:((v||0)-w.height)/2}}else b=f==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return Mr(Mr({},m),b)}},{key:"render",value:function(){var r=this,o=this.props,l=o.content,s=o.width,f=o.height,d=o.wrapperStyle,h=o.payloadUniqBy,v=o.payload,m=Mr(Mr({position:"absolute",width:s||"auto",height:f||"auto"},this.getDefaultPosition(d)),d);return H.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(S){r.wrapperNode=S}},$L(l,Mr(Mr({},this.props),{},{payload:pM(v,h,kL)})))}}],[{key:"getWithHeight",value:function(r,o){var l=Mr(Mr({},this.defaultProps),r.props),s=l.layout;return s==="vertical"&&fe(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||o}:null}}])})(P.PureComponent);sd(ci,"displayName","Legend");sd(ci,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ly,J2;function LL(){if(J2)return Ly;J2=1;var e=is(),t=ax(),n=rn(),r=e?e.isConcatSpreadable:void 0;function o(l){return n(l)||t(l)||!!(r&&l&&l[r])}return Ly=o,Ly}var qy,ej;function yM(){if(ej)return qy;ej=1;var e=iM(),t=LL();function n(r,o,l,s,f){var d=-1,h=r.length;for(l||(l=t),f||(f=[]);++d<h;){var v=r[d];o>0&&l(v)?o>1?n(v,o-1,l,s,f):e(f,v):s||(f[f.length]=v)}return f}return qy=n,qy}var By,tj;function qL(){if(tj)return By;tj=1;function e(t){return function(n,r,o){for(var l=-1,s=Object(n),f=o(n),d=f.length;d--;){var h=f[t?d:++l];if(r(s[h],h,s)===!1)break}return n}}return By=e,By}var zy,nj;function BL(){if(nj)return zy;nj=1;var e=qL(),t=e();return zy=t,zy}var Uy,rj;function gM(){if(rj)return Uy;rj=1;var e=BL(),t=ud();function n(r,o){return r&&e(r,o,t)}return Uy=n,Uy}var Iy,aj;function zL(){if(aj)return Iy;aj=1;var e=os();function t(n,r){return function(o,l){if(o==null)return o;if(!e(o))return n(o,l);for(var s=o.length,f=r?s:-1,d=Object(o);(r?f--:++f<s)&&l(d[f],f,d)!==!1;);return o}}return Iy=t,Iy}var Hy,ij;function ux(){if(ij)return Hy;ij=1;var e=gM(),t=zL(),n=t(e);return Hy=n,Hy}var Gy,oj;function bM(){if(oj)return Gy;oj=1;var e=ux(),t=os();function n(r,o){var l=-1,s=t(r)?Array(r.length):[];return e(r,function(f,d,h){s[++l]=o(f,d,h)}),s}return Gy=n,Gy}var Yy,lj;function UL(){if(lj)return Yy;lj=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Yy=e,Yy}var Ky,uj;function IL(){if(uj)return Ky;uj=1;var e=Wo();function t(n,r){if(n!==r){var o=n!==void 0,l=n===null,s=n===n,f=e(n),d=r!==void 0,h=r===null,v=r===r,m=e(r);if(!h&&!m&&!f&&n>r||f&&d&&v&&!h&&!m||l&&d&&v||!o&&v||!s)return 1;if(!l&&!f&&!m&&n<r||m&&o&&s&&!l&&!f||h&&o&&s||!d&&s||!v)return-1}return 0}return Ky=t,Ky}var Xy,sj;function HL(){if(sj)return Xy;sj=1;var e=IL();function t(n,r,o){for(var l=-1,s=n.criteria,f=r.criteria,d=s.length,h=o.length;++l<d;){var v=e(s[l],f[l]);if(v){if(l>=h)return v;var m=o[l];return v*(m=="desc"?-1:1)}}return n.index-r.index}return Xy=t,Xy}var Vy,cj;function GL(){if(cj)return Vy;cj=1;var e=Vb(),t=Fb(),n=fr(),r=bM(),o=UL(),l=lM(),s=HL(),f=el(),d=rn();function h(v,m,b){m.length?m=e(m,function(_){return d(_)?function(x){return t(x,_.length===1?_[0]:_)}:_}):m=[f];var S=-1;m=e(m,l(n));var w=r(v,function(_,x,j){var E=e(m,function(T){return T(_)});return{criteria:E,index:++S,value:_}});return o(w,function(_,x){return s(_,x,b)})}return Vy=h,Vy}var Fy,fj;function YL(){if(fj)return Fy;fj=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Fy=e,Fy}var Wy,dj;function KL(){if(dj)return Wy;dj=1;var e=YL(),t=Math.max;function n(r,o,l){return o=t(o===void 0?r.length-1:o,0),function(){for(var s=arguments,f=-1,d=t(s.length-o,0),h=Array(d);++f<d;)h[f]=s[o+f];f=-1;for(var v=Array(o+1);++f<o;)v[f]=s[f];return v[o]=l(h),e(r,this,v)}}return Wy=n,Wy}var Zy,hj;function XL(){if(hj)return Zy;hj=1;function e(t){return function(){return t}}return Zy=e,Zy}var Qy,pj;function xM(){if(pj)return Qy;pj=1;var e=bi(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Qy=t,Qy}var Jy,mj;function VL(){if(mj)return Jy;mj=1;var e=XL(),t=xM(),n=el(),r=t?function(o,l){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return Jy=r,Jy}var eg,vj;function FL(){if(vj)return eg;vj=1;var e=800,t=16,n=Date.now;function r(o){var l=0,s=0;return function(){var f=n(),d=t-(f-s);if(s=f,d>0){if(++l>=e)return arguments[0]}else l=0;return o.apply(void 0,arguments)}}return eg=r,eg}var tg,yj;function WL(){if(yj)return tg;yj=1;var e=VL(),t=FL(),n=t(e);return tg=n,tg}var ng,gj;function ZL(){if(gj)return ng;gj=1;var e=el(),t=KL(),n=WL();function r(o,l){return n(t(o,l,e),o+"")}return ng=r,ng}var rg,bj;function cd(){if(bj)return rg;bj=1;var e=Yb(),t=os(),n=ix(),r=Ca();function o(l,s,f){if(!r(f))return!1;var d=typeof s;return(d=="number"?t(f)&&n(s,f.length):d=="string"&&s in f)?e(f[s],l):!1}return rg=o,rg}var ag,xj;function QL(){if(xj)return ag;xj=1;var e=yM(),t=GL(),n=ZL(),r=cd(),o=n(function(l,s){if(l==null)return[];var f=s.length;return f>1&&r(l,s[0],s[1])?s=[]:f>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(l,e(s,1),[])});return ag=o,ag}var JL=QL();const sx=Ze(JL);function Ou(e){"@babel/helpers - typeof";return Ou=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},Ou(e)}function E0(){return E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E0.apply(this,arguments)}function e8(e,t){return a8(e)||r8(e,t)||n8(e,t)||t8()}function t8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
72
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n8(e,t){if(e){if(typeof e=="string")return Sj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sj(e,t)}}function Sj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function a8(e){if(Array.isArray(e))return e}function _j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ig(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_j(Object(n),!0).forEach(function(r){i8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_j(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i8(e,t,n){return t=o8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o8(e){var t=l8(e,"string");return Ou(t)=="symbol"?t:t+""}function l8(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u8(e){return Array.isArray(e)&&Et(e[0])&&Et(e[1])?e.join(" ~ "):e}var s8=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,l=o===void 0?{}:o,s=t.itemStyle,f=s===void 0?{}:s,d=t.labelStyle,h=d===void 0?{}:d,v=t.payload,m=t.formatter,b=t.itemSorter,S=t.wrapperClassName,w=t.labelClassName,_=t.label,x=t.labelFormatter,j=t.accessibilityLayer,E=j===void 0?!1:j,T=function(){if(v&&v.length){var q={padding:0,margin:0},Y=(b?sx(v,b):v).map(function(K,W){if(K.type==="none")return null;var k=ig({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},f),X=K.formatter||m||u8,F=K.value,oe=K.name,ue=F,L=oe;if(X&&ue!=null&&L!=null){var z=X(F,oe,K,W,v);if(Array.isArray(z)){var te=e8(z,2);ue=te[0],L=te[1]}else ue=z}return H.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:k},Et(L)?H.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Et(L)?H.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,H.createElement("span",{className:"recharts-tooltip-item-value"},ue),H.createElement("span",{className:"recharts-tooltip-item-unit"},K.unit||""))});return H.createElement("ul",{className:"recharts-tooltip-item-list",style:q},Y)}return null},N=ig({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},l),A=ig({margin:0},h),C=!Ae(_),M=C?_:"",D=Ce("recharts-default-tooltip",S),$=Ce("recharts-tooltip-label",w);C&&x&&v!==void 0&&v!==null&&(M=x(_,v));var B=E?{role:"status","aria-live":"assertive"}:{};return H.createElement("div",E0({className:D,style:N},B),H.createElement("p",{className:$,style:A},H.isValidElement(M)?M:"".concat(M)),T())};function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function Rc(e,t,n){return t=c8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c8(e){var t=f8(e,"string");return Au(t)=="symbol"?t:t+""}function f8(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ru="recharts-tooltip-wrapper",d8={visibility:"hidden"};function h8(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ce(ru,Rc(Rc(Rc(Rc({},"".concat(ru,"-right"),fe(n)&&t&&fe(t.x)&&n>=t.x),"".concat(ru,"-left"),fe(n)&&t&&fe(t.x)&&n<t.x),"".concat(ru,"-bottom"),fe(r)&&t&&fe(t.y)&&r>=t.y),"".concat(ru,"-top"),fe(r)&&t&&fe(t.y)&&r<t.y))}function wj(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,l=e.position,s=e.reverseDirection,f=e.tooltipDimension,d=e.viewBox,h=e.viewBoxDimension;if(l&&fe(l[r]))return l[r];var v=n[r]-f-o,m=n[r]+o;if(t[r])return s[r]?v:m;if(s[r]){var b=v,S=d[r];return b<S?Math.max(m,d[r]):Math.max(v,d[r])}var w=m+f,_=d[r]+h;return w>_?Math.max(v,d[r]):Math.max(m,d[r])}function p8(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function m8(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,l=e.reverseDirection,s=e.tooltipBox,f=e.useTranslate3d,d=e.viewBox,h,v,m;return s.height>0&&s.width>0&&n?(v=wj({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:l,tooltipDimension:s.width,viewBox:d,viewBoxDimension:d.width}),m=wj({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:l,tooltipDimension:s.height,viewBox:d,viewBoxDimension:d.height}),h=p8({translateX:v,translateY:m,useTranslate3d:f})):h=d8,{cssProperties:h,cssClasses:h8({translateX:v,translateY:m,coordinate:n})}}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 Oj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Aj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Oj(Object(n),!0).forEach(function(r){N0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_M(r.key),r)}}function g8(e,t,n){return t&&y8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function b8(e,t,n){return t=af(t),x8(e,SM()?Reflect.construct(t,n||[],af(e).constructor):t.apply(e,n))}function x8(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 S8(e)}function S8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SM=function(){return!!e})()}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function _8(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&&T0(e,t)}function T0(e,t){return T0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},T0(e,t)}function N0(e,t,n){return t=_M(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(e){var t=w8(e,"string");return Oo(t)=="symbol"?t:t+""}function w8(e,t){if(Oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jj=1,O8=(function(e){function t(){var n;v8(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=b8(this,t,[].concat(o)),N0(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),N0(n,"handleKeyDown",function(s){if(s.key==="Escape"){var f,d,h,v;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(f=(d=n.props.coordinate)===null||d===void 0?void 0:d.x)!==null&&f!==void 0?f:0,y:(h=(v=n.props.coordinate)===null||v===void 0?void 0:v.y)!==null&&h!==void 0?h:0}})}}),n}return _8(t,e),g8(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>jj||Math.abs(r.height-this.state.lastBoundingBox.height)>jj)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,l=o.active,s=o.allowEscapeViewBox,f=o.animationDuration,d=o.animationEasing,h=o.children,v=o.coordinate,m=o.hasPayload,b=o.isAnimationActive,S=o.offset,w=o.position,_=o.reverseDirection,x=o.useTranslate3d,j=o.viewBox,E=o.wrapperStyle,T=m8({allowEscapeViewBox:s,coordinate:v,offsetTopLeft:S,position:w,reverseDirection:_,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:j}),N=T.cssClasses,A=T.cssProperties,C=Aj(Aj({transition:b&&l?"transform ".concat(f,"ms ").concat(d):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&l&&m?"visible":"hidden",position:"absolute",top:0,left:0},E);return H.createElement("div",{tabIndex:-1,className:N,style:C,ref:function(D){r.wrapperNode=D}},h)}}])})(P.PureComponent),A8=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},xi={isSsr:A8()};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)}function Ej(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ej(Object(n),!0).forEach(function(r){cx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ej(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OM(r.key),r)}}function T8(e,t,n){return t&&E8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N8(e,t,n){return t=of(t),C8(e,wM()?Reflect.construct(t,n||[],of(e).constructor):t.apply(e,n))}function C8(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 M8(e)}function M8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wM=function(){return!!e})()}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function R8(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&&C0(e,t)}function C0(e,t){return C0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},C0(e,t)}function cx(e,t,n){return t=OM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OM(e){var t=P8(e,"string");return Ao(t)=="symbol"?t:t+""}function P8(e,t){if(Ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function D8(e){return e.dataKey}function k8(e,t){return H.isValidElement(e)?H.cloneElement(e,t):typeof e=="function"?H.createElement(e,t):H.createElement(s8,t)}var Pn=(function(e){function t(){return j8(this,t),N8(this,t,arguments)}return R8(t,e),T8(t,[{key:"render",value:function(){var r=this,o=this.props,l=o.active,s=o.allowEscapeViewBox,f=o.animationDuration,d=o.animationEasing,h=o.content,v=o.coordinate,m=o.filterNull,b=o.isAnimationActive,S=o.offset,w=o.payload,_=o.payloadUniqBy,x=o.position,j=o.reverseDirection,E=o.useTranslate3d,T=o.viewBox,N=o.wrapperStyle,A=w??[];m&&A.length&&(A=pM(w.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),_,D8));var C=A.length>0;return H.createElement(O8,{allowEscapeViewBox:s,animationDuration:f,animationEasing:d,isAnimationActive:b,active:l,coordinate:v,hasPayload:C,offset:S,position:x,reverseDirection:j,useTranslate3d:E,viewBox:T,wrapperStyle:N},k8(h,Tj(Tj({},this.props),{},{payload:A})))}}])})(P.PureComponent);cx(Pn,"displayName","Tooltip");cx(Pn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!xi.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 og,Nj;function $8(){if(Nj)return og;Nj=1;var e=cr(),t=function(){return e.Date.now()};return og=t,og}var lg,Cj;function L8(){if(Cj)return lg;Cj=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return lg=t,lg}var ug,Mj;function q8(){if(Mj)return ug;Mj=1;var e=L8(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return ug=n,ug}var sg,Rj;function AM(){if(Rj)return sg;Rj=1;var e=q8(),t=Ca(),n=Wo(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;function d(h){if(typeof h=="number")return h;if(n(h))return r;if(t(h)){var v=typeof h.valueOf=="function"?h.valueOf():h;h=t(v)?v+"":v}if(typeof h!="string")return h===0?h:+h;h=e(h);var m=l.test(h);return m||s.test(h)?f(h.slice(2),m?2:8):o.test(h)?r:+h}return sg=d,sg}var cg,Pj;function B8(){if(Pj)return cg;Pj=1;var e=Ca(),t=$8(),n=AM(),r="Expected a function",o=Math.max,l=Math.min;function s(f,d,h){var v,m,b,S,w,_,x=0,j=!1,E=!1,T=!0;if(typeof f!="function")throw new TypeError(r);d=n(d)||0,e(h)&&(j=!!h.leading,E="maxWait"in h,b=E?o(n(h.maxWait)||0,d):b,T="trailing"in h?!!h.trailing:T);function N(Y){var K=v,W=m;return v=m=void 0,x=Y,S=f.apply(W,K),S}function A(Y){return x=Y,w=setTimeout(D,d),j?N(Y):S}function C(Y){var K=Y-_,W=Y-x,k=d-K;return E?l(k,b-W):k}function M(Y){var K=Y-_,W=Y-x;return _===void 0||K>=d||K<0||E&&W>=b}function D(){var Y=t();if(M(Y))return $(Y);w=setTimeout(D,C(Y))}function $(Y){return w=void 0,T&&v?N(Y):(v=m=void 0,S)}function B(){w!==void 0&&clearTimeout(w),x=0,v=_=m=w=void 0}function I(){return w===void 0?S:$(t())}function q(){var Y=t(),K=M(Y);if(v=arguments,m=this,_=Y,K){if(w===void 0)return A(_);if(E)return clearTimeout(w),w=setTimeout(D,d),N(_)}return w===void 0&&(w=setTimeout(D,d)),S}return q.cancel=B,q.flush=I,q}return cg=s,cg}var fg,Dj;function z8(){if(Dj)return fg;Dj=1;var e=B8(),t=Ca(),n="Expected a function";function r(o,l,s){var f=!0,d=!0;if(typeof o!="function")throw new TypeError(n);return t(s)&&(f="leading"in s?!!s.leading:f,d="trailing"in s?!!s.trailing:d),e(o,l,{leading:f,maxWait:l,trailing:d})}return fg=r,fg}var U8=z8();const jM=Ze(U8);function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kj(Object(n),!0).forEach(function(r){I8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I8(e,t,n){return t=H8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H8(e){var t=G8(e,"string");return ju(t)=="symbol"?t:t+""}function G8(e,t){if(ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y8(e,t){return F8(e)||V8(e,t)||X8(e,t)||K8()}function K8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
73
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X8(e,t){if(e){if(typeof e=="string")return $j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $j(e,t)}}function $j(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function V8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function F8(e){if(Array.isArray(e))return e}var fx=P.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,l=e.width,s=l===void 0?"100%":l,f=e.height,d=f===void 0?"100%":f,h=e.minWidth,v=h===void 0?0:h,m=e.minHeight,b=e.maxHeight,S=e.children,w=e.debounce,_=w===void 0?0:w,x=e.id,j=e.className,E=e.onResize,T=e.style,N=T===void 0?{}:T,A=P.useRef(null),C=P.useRef();C.current=E,P.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var M=P.useState({containerWidth:o.width,containerHeight:o.height}),D=Y8(M,2),$=D[0],B=D[1],I=P.useCallback(function(Y,K){B(function(W){var k=Math.round(Y),X=Math.round(K);return W.containerWidth===k&&W.containerHeight===X?W:{containerWidth:k,containerHeight:X}})},[]);P.useEffect(function(){var Y=function(oe){var ue,L=oe[0].contentRect,z=L.width,te=L.height;I(z,te),(ue=C.current)===null||ue===void 0||ue.call(C,z,te)};_>0&&(Y=jM(Y,_,{trailing:!0,leading:!1}));var K=new ResizeObserver(Y),W=A.current.getBoundingClientRect(),k=W.width,X=W.height;return I(k,X),K.observe(A.current),function(){K.disconnect()}},[I,_]);var q=P.useMemo(function(){var Y=$.containerWidth,K=$.containerHeight;if(Y<0||K<0)return null;qr(ii(s)||ii(d),`The width(%s) and height(%s) are both fixed numbers,
|
|
74
|
+
maybe you don't need to use a ResponsiveContainer.`,s,d),qr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var W=ii(s)?Y:s,k=ii(d)?K:d;n&&n>0&&(W?k=W/n:k&&(W=k*n),b&&k>b&&(k=b)),qr(W>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
75
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
76
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
77
|
+
height and width.`,W,k,s,d,v,m,n);var X=!Array.isArray(S)&&Lr(S.type).endsWith("Chart");return H.Children.map(S,function(F){return H.isValidElement(F)?P.cloneElement(F,Pc({width:W,height:k},X?{style:Pc({height:"100%",width:"100%",maxHeight:k,maxWidth:W},F.props.style)}:{})):F})},[n,S,d,b,m,v,$,s]);return H.createElement("div",{id:x?"".concat(x):void 0,className:Ce("recharts-responsive-container",j),style:Pc(Pc({},N),{},{width:s,height:d,minWidth:v,minHeight:m,maxHeight:b}),ref:A},q)}),fd=function(t){return null};fd.displayName="Cell";function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function Lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function M0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lj(Object(n),!0).forEach(function(r){W8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W8(e,t,n){return t=Z8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z8(e){var t=Q8(e,"string");return Eu(t)=="symbol"?t:t+""}function Q8(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uo={widthCache:{},cacheCount:0},J8=2e3,eq={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},qj="recharts_measurement_span";function tq(e){var t=M0({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var mu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||xi.isSsr)return{width:0,height:0};var r=tq(n),o=JSON.stringify({text:t,copyStyle:r});if(uo.widthCache[o])return uo.widthCache[o];try{var l=document.getElementById(qj);l||(l=document.createElement("span"),l.setAttribute("id",qj),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=M0(M0({},eq),r);Object.assign(l.style,s),l.textContent="".concat(t);var f=l.getBoundingClientRect(),d={width:f.width,height:f.height};return uo.widthCache[o]=d,++uo.cacheCount>J8&&(uo.cacheCount=0,uo.widthCache={}),d}catch{return{width:0,height:0}}},nq=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Tu(e){"@babel/helpers - typeof";return Tu=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},Tu(e)}function lf(e,t){return oq(e)||iq(e,t)||aq(e,t)||rq()}function rq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aq(e,t){if(e){if(typeof e=="string")return Bj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bj(e,t)}}function Bj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function oq(e){if(Array.isArray(e))return e}function lq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sq(r.key),r)}}function uq(e,t,n){return t&&zj(e.prototype,t),n&&zj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sq(e){var t=cq(e,"string");return Tu(t)=="symbol"?t:t+""}function cq(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Uj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ij=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fq=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,dq=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,EM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},hq=Object.keys(EM),fo="NaN";function pq(e,t){return e*EM[t]}var Dc=(function(){function e(t,n){lq(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!fq.test(n)&&(this.num=NaN,this.unit=""),hq.includes(n)&&(this.num=pq(t,n),this.unit="px")}return uq(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.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(n){var r,o=(r=dq.exec(n))!==null&&r!==void 0?r:[],l=lf(o,3),s=l[1],f=l[2];return new e(parseFloat(s),f??"")}}])})();function TM(e){if(e.includes(fo))return fo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=Uj.exec(t))!==null&&n!==void 0?n:[],o=lf(r,4),l=o[1],s=o[2],f=o[3],d=Dc.parse(l??""),h=Dc.parse(f??""),v=s==="*"?d.multiply(h):d.divide(h);if(v.isNaN())return fo;t=t.replace(Uj,v.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,b=(m=Ij.exec(t))!==null&&m!==void 0?m:[],S=lf(b,4),w=S[1],_=S[2],x=S[3],j=Dc.parse(w??""),E=Dc.parse(x??""),T=_==="+"?j.add(E):j.subtract(E);if(T.isNaN())return fo;t=t.replace(Ij,T.toString())}return t}var Hj=/\(([^()]*)\)/;function mq(e){for(var t=e;t.includes("(");){var n=Hj.exec(t),r=lf(n,2),o=r[1];t=t.replace(Hj,TM(o))}return t}function vq(e){var t=e.replace(/\s+/g,"");return t=mq(t),t=TM(t),t}function yq(e){try{return vq(e)}catch{return fo}}function dg(e){var t=yq(e.slice(5,-1));return t===fo?"":t}var gq=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],bq=["dx","dy","angle","className","breakAll"];function R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R0.apply(this,arguments)}function Gj(e,t){if(e==null)return{};var n=xq(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xq(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Yj(e,t){return Oq(e)||wq(e,t)||_q(e,t)||Sq()}function Sq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
79
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _q(e,t){if(e){if(typeof e=="string")return Kj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kj(e,t)}}function Kj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function Oq(e){if(Array.isArray(e))return e}var NM=/[ \f\n\r\t\v\u2028\u2029]+/,CM=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var l=[];Ae(n)||(r?l=n.toString().split(""):l=n.toString().split(NM));var s=l.map(function(d){return{word:d,width:mu(d,o).width}}),f=r?0:mu(" ",o).width;return{wordsWithComputedWidth:s,spaceWidth:f}}catch{return null}},Aq=function(t,n,r,o,l){var s=t.maxLines,f=t.children,d=t.style,h=t.breakAll,v=fe(s),m=f,b=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(k,X){var F=X.word,oe=X.width,ue=k[k.length-1];if(ue&&(o==null||l||ue.width+oe+r<Number(o)))ue.words.push(F),ue.width+=oe+r;else{var L={words:[F],width:oe};k.push(L)}return k},[])},S=b(n),w=function(W){return W.reduce(function(k,X){return k.width>X.width?k:X})};if(!v)return S;for(var _="…",x=function(W){var k=m.slice(0,W),X=CM({breakAll:h,style:d,children:k+_}).wordsWithComputedWidth,F=b(X),oe=F.length>s||w(F).width>Number(o);return[oe,F]},j=0,E=m.length-1,T=0,N;j<=E&&T<=m.length-1;){var A=Math.floor((j+E)/2),C=A-1,M=x(C),D=Yj(M,2),$=D[0],B=D[1],I=x(A),q=Yj(I,1),Y=q[0];if(!$&&!Y&&(j=A+1),$&&Y&&(E=A-1),!$&&Y){N=B;break}T++}return N||S},Xj=function(t){var n=Ae(t)?[]:t.toString().split(NM);return[{words:n}]},jq=function(t){var n=t.width,r=t.scaleToFit,o=t.children,l=t.style,s=t.breakAll,f=t.maxLines;if((n||r)&&!xi.isSsr){var d,h,v=CM({breakAll:s,children:o,style:l});if(v){var m=v.wordsWithComputedWidth,b=v.spaceWidth;d=m,h=b}else return Xj(o);return Aq({breakAll:s,children:o,maxLines:f,style:l},d,h,n,r)}return Xj(o)},Vj="#808080",vi=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,l=o===void 0?0:o,s=t.lineHeight,f=s===void 0?"1em":s,d=t.capHeight,h=d===void 0?"0.71em":d,v=t.scaleToFit,m=v===void 0?!1:v,b=t.textAnchor,S=b===void 0?"start":b,w=t.verticalAnchor,_=w===void 0?"end":w,x=t.fill,j=x===void 0?Vj:x,E=Gj(t,gq),T=P.useMemo(function(){return jq({breakAll:E.breakAll,children:E.children,maxLines:E.maxLines,scaleToFit:m,style:E.style,width:E.width})},[E.breakAll,E.children,E.maxLines,m,E.style,E.width]),N=E.dx,A=E.dy,C=E.angle,M=E.className,D=E.breakAll,$=Gj(E,bq);if(!Et(r)||!Et(l))return null;var B=r+(fe(N)?N:0),I=l+(fe(A)?A:0),q;switch(_){case"start":q=dg("calc(".concat(h,")"));break;case"middle":q=dg("calc(".concat((T.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:q=dg("calc(".concat(T.length-1," * -").concat(f,")"));break}var Y=[];if(m){var K=T[0].width,W=E.width;Y.push("scale(".concat((fe(W)?W/K:1)/K,")"))}return C&&Y.push("rotate(".concat(C,", ").concat(B,", ").concat(I,")")),Y.length&&($.transform=Y.join(" ")),H.createElement("text",R0({},ye($,!0),{x:B,y:I,className:Ce("recharts-text",M),textAnchor:S,fill:j.includes("url")?Vj:j}),T.map(function(k,X){var F=k.words.join(D?"":" ");return H.createElement("tspan",{x:B,dy:X===0?q:f,key:"".concat(F,"-").concat(X)},F)}))};function ja(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Eq(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function dx(e){let t,n,r;e.length!==2?(t=ja,n=(f,d)=>ja(e(f),d),r=(f,d)=>e(f)-d):(t=e===ja||e===Eq?e:Tq,n=e,r=e);function o(f,d,h=0,v=f.length){if(h<v){if(t(d,d)!==0)return v;do{const m=h+v>>>1;n(f[m],d)<0?h=m+1:v=m}while(h<v)}return h}function l(f,d,h=0,v=f.length){if(h<v){if(t(d,d)!==0)return v;do{const m=h+v>>>1;n(f[m],d)<=0?h=m+1:v=m}while(h<v)}return h}function s(f,d,h=0,v=f.length){const m=o(f,d,h,v-1);return m>h&&r(f[m-1],d)>-r(f[m],d)?m-1:m}return{left:o,center:s,right:l}}function Tq(){return 0}function MM(e){return e===null?NaN:+e}function*Nq(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Cq=dx(ja),ls=Cq.right;dx(MM).center;class Fj extends Map{constructor(t,n=Pq){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(Wj(this,t))}has(t){return super.has(Wj(this,t))}set(t,n){return super.set(Mq(this,t),n)}delete(t){return super.delete(Rq(this,t))}}function Wj({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Mq({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Rq({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Pq(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Dq(e=ja){if(e===ja)return RM;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function RM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kq=Math.sqrt(50),$q=Math.sqrt(10),Lq=Math.sqrt(2);function uf(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),l=r/Math.pow(10,o),s=l>=kq?10:l>=$q?5:l>=Lq?2:1;let f,d,h;return o<0?(h=Math.pow(10,-o)/s,f=Math.round(e*h),d=Math.round(t*h),f/h<e&&++f,d/h>t&&--d,h=-h):(h=Math.pow(10,o)*s,f=Math.round(e/h),d=Math.round(t/h),f*h<e&&++f,d*h>t&&--d),d<f&&.5<=n&&n<2?uf(e,t,n*2):[f,d,h]}function P0(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,l,s]=r?uf(t,e,n):uf(e,t,n);if(!(l>=o))return[];const f=l-o+1,d=new Array(f);if(r)if(s<0)for(let h=0;h<f;++h)d[h]=(l-h)/-s;else for(let h=0;h<f;++h)d[h]=(l-h)*s;else if(s<0)for(let h=0;h<f;++h)d[h]=(o+h)/-s;else for(let h=0;h<f;++h)d[h]=(o+h)*s;return d}function D0(e,t,n){return t=+t,e=+e,n=+n,uf(e,t,n)[2]}function k0(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?D0(t,e,n):D0(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function Zj(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Qj(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function PM(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?RM:Dq(o);r>n;){if(r-n>600){const d=r-n+1,h=t-n+1,v=Math.log(d),m=.5*Math.exp(2*v/3),b=.5*Math.sqrt(v*m*(d-m)/d)*(h-d/2<0?-1:1),S=Math.max(n,Math.floor(t-h*m/d+b)),w=Math.min(r,Math.floor(t+(d-h)*m/d+b));PM(e,t,S,w,o)}const l=e[t];let s=n,f=r;for(au(e,n,t),o(e[r],l)>0&&au(e,n,r);s<f;){for(au(e,s,f),++s,--f;o(e[s],l)<0;)++s;for(;o(e[f],l)>0;)--f}o(e[n],l)===0?au(e,n,f):(++f,au(e,f,r)),f<=t&&(n=f+1),t<=f&&(r=f-1)}return e}function au(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function qq(e,t,n){if(e=Float64Array.from(Nq(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Qj(e);if(t>=1)return Zj(e);var r,o=(r-1)*t,l=Math.floor(o),s=Zj(PM(e,l).subarray(0,l+1)),f=Qj(e.subarray(l+1));return s+(f-s)*(o-l)}}function Bq(e,t,n=MM){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,l=Math.floor(o),s=+n(e[l],l,e),f=+n(e[l+1],l+1,e);return s+(f-s)*(o-l)}}function zq(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,l=new Array(o);++r<o;)l[r]=e+r*n;return l}function Bn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Vr(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 $0=Symbol("implicit");function hx(){var e=new Fj,t=[],n=[],r=$0;function o(l){let s=e.get(l);if(s===void 0){if(r!==$0)return r;e.set(l,s=t.push(l)-1)}return n[s%n.length]}return o.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new Fj;for(const s of l)e.has(s)||e.set(s,t.push(s)-1);return o},o.range=function(l){return arguments.length?(n=Array.from(l),o):n.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.copy=function(){return hx(t,n).unknown(r)},Bn.apply(o,arguments),o}function Nu(){var e=hx().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,l,s,f=!1,d=0,h=0,v=.5;delete e.unknown;function m(){var b=t().length,S=o<r,w=S?o:r,_=S?r:o;l=(_-w)/Math.max(1,b-d+h*2),f&&(l=Math.floor(l)),w+=(_-w-l*(b-d))*v,s=l*(1-d),f&&(w=Math.round(w),s=Math.round(s));var x=zq(b).map(function(j){return w+l*j});return n(S?x.reverse():x)}return e.domain=function(b){return arguments.length?(t(b),m()):t()},e.range=function(b){return arguments.length?([r,o]=b,r=+r,o=+o,m()):[r,o]},e.rangeRound=function(b){return[r,o]=b,r=+r,o=+o,f=!0,m()},e.bandwidth=function(){return s},e.step=function(){return l},e.round=function(b){return arguments.length?(f=!!b,m()):f},e.padding=function(b){return arguments.length?(d=Math.min(1,h=+b),m()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),m()):d},e.paddingOuter=function(b){return arguments.length?(h=+b,m()):h},e.align=function(b){return arguments.length?(v=Math.max(0,Math.min(1,b)),m()):v},e.copy=function(){return Nu(t(),[r,o]).round(f).paddingInner(d).paddingOuter(h).align(v)},Bn.apply(m(),arguments)}function DM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return DM(t())},e}function vu(){return DM(Nu.apply(null,arguments).paddingInner(1))}function px(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function kM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function us(){}var Cu=.7,sf=1/Cu,go="\\s*([+-]?\\d+)\\s*",Mu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",or="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uq=/^#([0-9a-f]{3,8})$/,Iq=new RegExp(`^rgb\\(${go},${go},${go}\\)$`),Hq=new RegExp(`^rgb\\(${or},${or},${or}\\)$`),Gq=new RegExp(`^rgba\\(${go},${go},${go},${Mu}\\)$`),Yq=new RegExp(`^rgba\\(${or},${or},${or},${Mu}\\)$`),Kq=new RegExp(`^hsl\\(${Mu},${or},${or}\\)$`),Xq=new RegExp(`^hsla\\(${Mu},${or},${or},${Mu}\\)$`),Jj={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};px(us,Ru,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eE,formatHex:eE,formatHex8:Vq,formatHsl:Fq,formatRgb:tE,toString:tE});function eE(){return this.rgb().formatHex()}function Vq(){return this.rgb().formatHex8()}function Fq(){return $M(this).formatHsl()}function tE(){return this.rgb().formatRgb()}function Ru(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Uq.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?nE(t):n===3?new nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?kc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?kc(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=Iq.exec(e))?new nn(t[1],t[2],t[3],1):(t=Hq.exec(e))?new nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Gq.exec(e))?kc(t[1],t[2],t[3],t[4]):(t=Yq.exec(e))?kc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Kq.exec(e))?iE(t[1],t[2]/100,t[3]/100,1):(t=Xq.exec(e))?iE(t[1],t[2]/100,t[3]/100,t[4]):Jj.hasOwnProperty(e)?nE(Jj[e]):e==="transparent"?new nn(NaN,NaN,NaN,0):null}function nE(e){return new nn(e>>16&255,e>>8&255,e&255,1)}function kc(e,t,n,r){return r<=0&&(e=t=n=NaN),new nn(e,t,n,r)}function Wq(e){return e instanceof us||(e=Ru(e)),e?(e=e.rgb(),new nn(e.r,e.g,e.b,e.opacity)):new nn}function L0(e,t,n,r){return arguments.length===1?Wq(e):new nn(e,t,n,r??1)}function nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}px(nn,L0,kM(us,{brighter(e){return e=e==null?sf:Math.pow(sf,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cu:Math.pow(Cu,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nn(fi(this.r),fi(this.g),fi(this.b),cf(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:rE,formatHex:rE,formatHex8:Zq,formatRgb:aE,toString:aE}));function rE(){return`#${oi(this.r)}${oi(this.g)}${oi(this.b)}`}function Zq(){return`#${oi(this.r)}${oi(this.g)}${oi(this.b)}${oi((isNaN(this.opacity)?1:this.opacity)*255)}`}function aE(){const e=cf(this.opacity);return`${e===1?"rgb(":"rgba("}${fi(this.r)}, ${fi(this.g)}, ${fi(this.b)}${e===1?")":`, ${e})`}`}function cf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oi(e){return e=fi(e),(e<16?"0":"")+e.toString(16)}function iE(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vn(e,t,n,r)}function $M(e){if(e instanceof Vn)return new Vn(e.h,e.s,e.l,e.opacity);if(e instanceof us||(e=Ru(e)),!e)return new Vn;if(e instanceof Vn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),l=Math.max(t,n,r),s=NaN,f=l-o,d=(l+o)/2;return f?(t===l?s=(n-r)/f+(n<r)*6:n===l?s=(r-t)/f+2:s=(t-n)/f+4,f/=d<.5?l+o:2-l-o,s*=60):f=d>0&&d<1?0:s,new Vn(s,f,d,e.opacity)}function Qq(e,t,n,r){return arguments.length===1?$M(e):new Vn(e,t,n,r??1)}function Vn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}px(Vn,Qq,kM(us,{brighter(e){return e=e==null?sf:Math.pow(sf,e),new Vn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cu:Math.pow(Cu,e),new Vn(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new nn(hg(e>=240?e-240:e+120,o,r),hg(e,o,r),hg(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Vn(oE(this.h),$c(this.s),$c(this.l),cf(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=cf(this.opacity);return`${e===1?"hsl(":"hsla("}${oE(this.h)}, ${$c(this.s)*100}%, ${$c(this.l)*100}%${e===1?")":`, ${e})`}`}}));function oE(e){return e=(e||0)%360,e<0?e+360:e}function $c(e){return Math.max(0,Math.min(1,e||0))}function hg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const mx=e=>()=>e;function Jq(e,t){return function(n){return e+n*t}}function eB(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function tB(e){return(e=+e)==1?LM:function(t,n){return n-t?eB(t,n,e):mx(isNaN(t)?n:t)}}function LM(e,t){var n=t-e;return n?Jq(e,n):mx(isNaN(e)?t:e)}const lE=(function e(t){var n=tB(t);function r(o,l){var s=n((o=L0(o)).r,(l=L0(l)).r),f=n(o.g,l.g),d=n(o.b,l.b),h=LM(o.opacity,l.opacity);return function(v){return o.r=s(v),o.g=f(v),o.b=d(v),o.opacity=h(v),o+""}}return r.gamma=e,r})(1);function nB(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(l){for(o=0;o<n;++o)r[o]=e[o]*(1-l)+t[o]*l;return r}}function rB(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function aB(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),l=new Array(n),s;for(s=0;s<r;++s)o[s]=tl(e[s],t[s]);for(;s<n;++s)l[s]=t[s];return function(f){for(s=0;s<r;++s)l[s]=o[s](f);return l}}function iB(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ff(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function oB(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=tl(e[o],t[o]):r[o]=t[o];return function(l){for(o in n)r[o]=n[o](l);return r}}var q0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pg=new RegExp(q0.source,"g");function lB(e){return function(){return e}}function uB(e){return function(t){return e(t)+""}}function sB(e,t){var n=q0.lastIndex=pg.lastIndex=0,r,o,l,s=-1,f=[],d=[];for(e=e+"",t=t+"";(r=q0.exec(e))&&(o=pg.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[s]?f[s]+=l:f[++s]=l),(r=r[0])===(o=o[0])?f[s]?f[s]+=o:f[++s]=o:(f[++s]=null,d.push({i:s,x:ff(r,o)})),n=pg.lastIndex;return n<t.length&&(l=t.slice(n),f[s]?f[s]+=l:f[++s]=l),f.length<2?d[0]?uB(d[0].x):lB(t):(t=d.length,function(h){for(var v=0,m;v<t;++v)f[(m=d[v]).i]=m.x(h);return f.join("")})}function tl(e,t){var n=typeof t,r;return t==null||n==="boolean"?mx(t):(n==="number"?ff:n==="string"?(r=Ru(t))?(t=r,lE):sB:t instanceof Ru?lE:t instanceof Date?iB:rB(t)?nB:Array.isArray(t)?aB:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?oB:ff)(e,t)}function vx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function cB(e,t){t===void 0&&(t=e,e=tl);for(var n=0,r=t.length-1,o=t[0],l=new Array(r<0?0:r);n<r;)l[n]=e(o,o=t[++n]);return function(s){var f=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return l[f](s-f)}}function fB(e){return function(){return e}}function df(e){return+e}var uE=[0,1];function Xt(e){return e}function B0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:fB(isNaN(t)?NaN:.5)}function dB(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function hB(e,t,n){var r=e[0],o=e[1],l=t[0],s=t[1];return o<r?(r=B0(o,r),l=n(s,l)):(r=B0(r,o),l=n(l,s)),function(f){return l(r(f))}}function pB(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),l=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)o[s]=B0(e[s],e[s+1]),l[s]=n(t[s],t[s+1]);return function(f){var d=ls(e,f,1,r)-1;return l[d](o[d](f))}}function ss(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function dd(){var e=uE,t=uE,n=tl,r,o,l,s=Xt,f,d,h;function v(){var b=Math.min(e.length,t.length);return s!==Xt&&(s=dB(e[0],e[b-1])),f=b>2?pB:hB,d=h=null,m}function m(b){return b==null||isNaN(b=+b)?l:(d||(d=f(e.map(r),t,n)))(r(s(b)))}return m.invert=function(b){return s(o((h||(h=f(t,e.map(r),ff)))(b)))},m.domain=function(b){return arguments.length?(e=Array.from(b,df),v()):e.slice()},m.range=function(b){return arguments.length?(t=Array.from(b),v()):t.slice()},m.rangeRound=function(b){return t=Array.from(b),n=vx,v()},m.clamp=function(b){return arguments.length?(s=b?!0:Xt,v()):s!==Xt},m.interpolate=function(b){return arguments.length?(n=b,v()):n},m.unknown=function(b){return arguments.length?(l=b,m):l},function(b,S){return r=b,o=S,v()}}function yx(){return dd()(Xt,Xt)}function mB(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function hf(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function jo(e){return e=hf(Math.abs(e)),e?e[1]:NaN}function vB(e,t){return function(n,r){for(var o=n.length,l=[],s=0,f=e[0],d=0;o>0&&f>0&&(d+f+1>r&&(f=Math.max(1,r-d)),l.push(n.substring(o-=f,o+f)),!((d+=f+1)>r));)f=e[s=(s+1)%e.length];return l.reverse().join(t)}}function yB(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pu(e){if(!(t=gB.exec(e)))throw new Error("invalid format: "+e);var t;return new gx({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]})}Pu.prototype=gx.prototype;function gx(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+""}gx.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 bB(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var pf;function xB(e,t){var n=hf(e,t);if(!n)return pf=void 0,e.toPrecision(t);var r=n[0],o=n[1],l=o-(pf=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return l===s?r:l>s?r+new Array(l-s+1).join("0"):l>0?r.slice(0,l)+"."+r.slice(l):"0."+new Array(1-l).join("0")+hf(e,Math.max(0,t+l-1))[0]}function sE(e,t){var n=hf(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const cE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:mB,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)=>sE(e*100,t),r:sE,s:xB,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function fE(e){return e}var dE=Array.prototype.map,hE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function SB(e){var t=e.grouping===void 0||e.thousands===void 0?fE:vB(dE.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?fE:yB(dE.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function h(m,b){m=Pu(m);var S=m.fill,w=m.align,_=m.sign,x=m.symbol,j=m.zero,E=m.width,T=m.comma,N=m.precision,A=m.trim,C=m.type;C==="n"?(T=!0,C="g"):cE[C]||(N===void 0&&(N=12),A=!0,C="g"),(j||S==="0"&&w==="=")&&(j=!0,S="0",w="=");var M=(b&&b.prefix!==void 0?b.prefix:"")+(x==="$"?n:x==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),D=(x==="$"?r:/[%p]/.test(C)?s:"")+(b&&b.suffix!==void 0?b.suffix:""),$=cE[C],B=/[defgprs%]/.test(C);N=N===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function I(q){var Y=M,K=D,W,k,X;if(C==="c")K=$(q)+K,q="";else{q=+q;var F=q<0||1/q<0;if(q=isNaN(q)?d:$(Math.abs(q),N),A&&(q=bB(q)),F&&+q==0&&_!=="+"&&(F=!1),Y=(F?_==="("?_:f:_==="-"||_==="("?"":_)+Y,K=(C==="s"&&!isNaN(q)&&pf!==void 0?hE[8+pf/3]:"")+K+(F&&_==="("?")":""),B){for(W=-1,k=q.length;++W<k;)if(X=q.charCodeAt(W),48>X||X>57){K=(X===46?o+q.slice(W+1):q.slice(W))+K,q=q.slice(0,W);break}}}T&&!j&&(q=t(q,1/0));var oe=Y.length+q.length+K.length,ue=oe<E?new Array(E-oe+1).join(S):"";switch(T&&j&&(q=t(ue+q,ue.length?E-K.length:1/0),ue=""),w){case"<":q=Y+q+K+ue;break;case"=":q=Y+ue+q+K;break;case"^":q=ue.slice(0,oe=ue.length>>1)+Y+q+K+ue.slice(oe);break;default:q=ue+Y+q+K;break}return l(q)}return I.toString=function(){return m+""},I}function v(m,b){var S=Math.max(-8,Math.min(8,Math.floor(jo(b)/3)))*3,w=Math.pow(10,-S),_=h((m=Pu(m),m.type="f",m),{suffix:hE[8+S/3]});return function(x){return _(w*x)}}return{format:h,formatPrefix:v}}var Lc,bx,qM;_B({thousands:",",grouping:[3],currency:["$",""]});function _B(e){return Lc=SB(e),bx=Lc.format,qM=Lc.formatPrefix,Lc}function wB(e){return Math.max(0,-jo(Math.abs(e)))}function OB(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jo(t)/3)))*3-jo(Math.abs(e)))}function AB(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jo(t)-jo(e))+1}function BM(e,t,n,r){var o=k0(e,t,n),l;switch(r=Pu(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(l=OB(o,s))&&(r.precision=l),qM(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(l=AB(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=l-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(l=wB(o))&&(r.precision=l-(r.type==="%")*2);break}}return bx(r)}function Ma(e){var t=e.domain;return e.ticks=function(n){var r=t();return P0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return BM(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,l=r.length-1,s=r[o],f=r[l],d,h,v=10;for(f<s&&(h=s,s=f,f=h,h=o,o=l,l=h);v-- >0;){if(h=D0(s,f,n),h===d)return r[o]=s,r[l]=f,t(r);if(h>0)s=Math.floor(s/h)*h,f=Math.ceil(f/h)*h;else if(h<0)s=Math.ceil(s*h)/h,f=Math.floor(f*h)/h;else break;d=h}return e},e}function mf(){var e=yx();return e.copy=function(){return ss(e,mf())},Bn.apply(e,arguments),Ma(e)}function zM(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,df),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return zM(e).unknown(t)},e=arguments.length?Array.from(e,df):[0,1],Ma(n)}function UM(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],l=e[r],s;return l<o&&(s=n,n=r,r=s,s=o,o=l,l=s),e[n]=t.floor(o),e[r]=t.ceil(l),e}function pE(e){return Math.log(e)}function mE(e){return Math.exp(e)}function jB(e){return-Math.log(-e)}function EB(e){return-Math.exp(-e)}function TB(e){return isFinite(e)?+("1e"+e):e<0?0:e}function NB(e){return e===10?TB:e===Math.E?Math.exp:t=>Math.pow(e,t)}function CB(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 vE(e){return(t,n)=>-e(-t,n)}function xx(e){const t=e(pE,mE),n=t.domain;let r=10,o,l;function s(){return o=CB(r),l=NB(r),n()[0]<0?(o=vE(o),l=vE(l),e(jB,EB)):e(pE,mE),t}return t.base=function(f){return arguments.length?(r=+f,s()):r},t.domain=function(f){return arguments.length?(n(f),s()):n()},t.ticks=f=>{const d=n();let h=d[0],v=d[d.length-1];const m=v<h;m&&([h,v]=[v,h]);let b=o(h),S=o(v),w,_;const x=f==null?10:+f;let j=[];if(!(r%1)&&S-b<x){if(b=Math.floor(b),S=Math.ceil(S),h>0){for(;b<=S;++b)for(w=1;w<r;++w)if(_=b<0?w/l(-b):w*l(b),!(_<h)){if(_>v)break;j.push(_)}}else for(;b<=S;++b)for(w=r-1;w>=1;--w)if(_=b>0?w/l(-b):w*l(b),!(_<h)){if(_>v)break;j.push(_)}j.length*2<x&&(j=P0(h,v,x))}else j=P0(b,S,Math.min(S-b,x)).map(l);return m?j.reverse():j},t.tickFormat=(f,d)=>{if(f==null&&(f=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Pu(d)).precision==null&&(d.trim=!0),d=bx(d)),f===1/0)return d;const h=Math.max(1,r*f/t.ticks().length);return v=>{let m=v/l(Math.round(o(v)));return m*r<r-.5&&(m*=r),m<=h?d(v):""}},t.nice=()=>n(UM(n(),{floor:f=>l(Math.floor(o(f))),ceil:f=>l(Math.ceil(o(f)))})),t}function IM(){const e=xx(dd()).domain([1,10]);return e.copy=()=>ss(e,IM()).base(e.base()),Bn.apply(e,arguments),e}function yE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Sx(e){var t=1,n=e(yE(t),gE(t));return n.constant=function(r){return arguments.length?e(yE(t=+r),gE(t)):t},Ma(n)}function HM(){var e=Sx(dd());return e.copy=function(){return ss(e,HM()).constant(e.constant())},Bn.apply(e,arguments)}function bE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function MB(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function RB(e){return e<0?-e*e:e*e}function _x(e){var t=e(Xt,Xt),n=1;function r(){return n===1?e(Xt,Xt):n===.5?e(MB,RB):e(bE(n),bE(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Ma(t)}function wx(){var e=_x(dd());return e.copy=function(){return ss(e,wx()).exponent(e.exponent())},Bn.apply(e,arguments),e}function PB(){return wx.apply(null,arguments).exponent(.5)}function xE(e){return Math.sign(e)*e*e}function DB(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function GM(){var e=yx(),t=[0,1],n=!1,r;function o(l){var s=DB(e(l));return isNaN(s)?r:n?Math.round(s):s}return o.invert=function(l){return e.invert(xE(l))},o.domain=function(l){return arguments.length?(e.domain(l),o):e.domain()},o.range=function(l){return arguments.length?(e.range((t=Array.from(l,df)).map(xE)),o):t.slice()},o.rangeRound=function(l){return o.range(l).round(!0)},o.round=function(l){return arguments.length?(n=!!l,o):n},o.clamp=function(l){return arguments.length?(e.clamp(l),o):e.clamp()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.copy=function(){return GM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Bn.apply(o,arguments),Ma(o)}function YM(){var e=[],t=[],n=[],r;function o(){var s=0,f=Math.max(1,t.length);for(n=new Array(f-1);++s<f;)n[s-1]=Bq(e,s/f);return l}function l(s){return s==null||isNaN(s=+s)?r:t[ls(n,s)]}return l.invertExtent=function(s){var f=t.indexOf(s);return f<0?[NaN,NaN]:[f>0?n[f-1]:e[0],f<n.length?n[f]:e[e.length-1]]},l.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let f of s)f!=null&&!isNaN(f=+f)&&e.push(f);return e.sort(ja),o()},l.range=function(s){return arguments.length?(t=Array.from(s),o()):t.slice()},l.unknown=function(s){return arguments.length?(r=s,l):r},l.quantiles=function(){return n.slice()},l.copy=function(){return YM().domain(e).range(t).unknown(r)},Bn.apply(l,arguments)}function KM(){var e=0,t=1,n=1,r=[.5],o=[0,1],l;function s(d){return d!=null&&d<=d?o[ls(r,d,0,n)]:l}function f(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return s}return s.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,f()):[e,t]},s.range=function(d){return arguments.length?(n=(o=Array.from(d)).length-1,f()):o.slice()},s.invertExtent=function(d){var h=o.indexOf(d);return h<0?[NaN,NaN]:h<1?[e,r[0]]:h>=n?[r[n-1],t]:[r[h-1],r[h]]},s.unknown=function(d){return arguments.length&&(l=d),s},s.thresholds=function(){return r.slice()},s.copy=function(){return KM().domain([e,t]).range(o).unknown(l)},Bn.apply(Ma(s),arguments)}function XM(){var e=[.5],t=[0,1],n,r=1;function o(l){return l!=null&&l<=l?t[ls(e,l,0,r)]:n}return o.domain=function(l){return arguments.length?(e=Array.from(l),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(l){return arguments.length?(t=Array.from(l),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(l){var s=t.indexOf(l);return[e[s-1],e[s]]},o.unknown=function(l){return arguments.length?(n=l,o):n},o.copy=function(){return XM().domain(e).range(t).unknown(n)},Bn.apply(o,arguments)}const mg=new Date,vg=new Date;function Tt(e,t,n,r){function o(l){return e(l=arguments.length===0?new Date:new Date(+l)),l}return o.floor=l=>(e(l=new Date(+l)),l),o.ceil=l=>(e(l=new Date(l-1)),t(l,1),e(l),l),o.round=l=>{const s=o(l),f=o.ceil(l);return l-s<f-l?s:f},o.offset=(l,s)=>(t(l=new Date(+l),s==null?1:Math.floor(s)),l),o.range=(l,s,f)=>{const d=[];if(l=o.ceil(l),f=f==null?1:Math.floor(f),!(l<s)||!(f>0))return d;let h;do d.push(h=new Date(+l)),t(l,f),e(l);while(h<l&&l<s);return d},o.filter=l=>Tt(s=>{if(s>=s)for(;e(s),!l(s);)s.setTime(s-1)},(s,f)=>{if(s>=s)if(f<0)for(;++f<=0;)for(;t(s,-1),!l(s););else for(;--f>=0;)for(;t(s,1),!l(s););}),n&&(o.count=(l,s)=>(mg.setTime(+l),vg.setTime(+s),e(mg),e(vg),Math.floor(n(mg,vg))),o.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?o.filter(r?s=>r(s)%l===0:s=>o.count(0,s)%l===0):o)),o}const vf=Tt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);vf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Tt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):vf);vf.range;const Pr=1e3,kn=Pr*60,Dr=kn*60,Ir=Dr*24,Ox=Ir*7,SE=Ir*30,yg=Ir*365,li=Tt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Pr)},(e,t)=>(t-e)/Pr,e=>e.getUTCSeconds());li.range;const Ax=Tt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pr)},(e,t)=>{e.setTime(+e+t*kn)},(e,t)=>(t-e)/kn,e=>e.getMinutes());Ax.range;const jx=Tt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*kn)},(e,t)=>(t-e)/kn,e=>e.getUTCMinutes());jx.range;const Ex=Tt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pr-e.getMinutes()*kn)},(e,t)=>{e.setTime(+e+t*Dr)},(e,t)=>(t-e)/Dr,e=>e.getHours());Ex.range;const Tx=Tt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Dr)},(e,t)=>(t-e)/Dr,e=>e.getUTCHours());Tx.range;const cs=Tt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kn)/Ir,e=>e.getDate()-1);cs.range;const hd=Tt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ir,e=>e.getUTCDate()-1);hd.range;const VM=Tt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ir,e=>Math.floor(e/Ir));VM.range;function Si(e){return Tt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*kn)/Ox)}const pd=Si(0),yf=Si(1),kB=Si(2),$B=Si(3),Eo=Si(4),LB=Si(5),qB=Si(6);pd.range;yf.range;kB.range;$B.range;Eo.range;LB.range;qB.range;function _i(e){return Tt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ox)}const md=_i(0),gf=_i(1),BB=_i(2),zB=_i(3),To=_i(4),UB=_i(5),IB=_i(6);md.range;gf.range;BB.range;zB.range;To.range;UB.range;IB.range;const Nx=Tt(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());Nx.range;const Cx=Tt(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());Cx.range;const Hr=Tt(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());Hr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Hr.range;const Gr=Tt(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());Gr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Gr.range;function FM(e,t,n,r,o,l){const s=[[li,1,Pr],[li,5,5*Pr],[li,15,15*Pr],[li,30,30*Pr],[l,1,kn],[l,5,5*kn],[l,15,15*kn],[l,30,30*kn],[o,1,Dr],[o,3,3*Dr],[o,6,6*Dr],[o,12,12*Dr],[r,1,Ir],[r,2,2*Ir],[n,1,Ox],[t,1,SE],[t,3,3*SE],[e,1,yg]];function f(h,v,m){const b=v<h;b&&([h,v]=[v,h]);const S=m&&typeof m.range=="function"?m:d(h,v,m),w=S?S.range(h,+v+1):[];return b?w.reverse():w}function d(h,v,m){const b=Math.abs(v-h)/m,S=dx(([,,x])=>x).right(s,b);if(S===s.length)return e.every(k0(h/yg,v/yg,m));if(S===0)return vf.every(Math.max(k0(h,v,m),1));const[w,_]=s[b/s[S-1][2]<s[S][2]/b?S-1:S];return w.every(_)}return[f,d]}const[HB,GB]=FM(Gr,Cx,md,VM,Tx,jx),[YB,KB]=FM(Hr,Nx,pd,cs,Ex,Ax);function gg(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 bg(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 iu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function XB(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,l=e.days,s=e.shortDays,f=e.months,d=e.shortMonths,h=ou(o),v=lu(o),m=ou(l),b=lu(l),S=ou(s),w=lu(s),_=ou(f),x=lu(f),j=ou(d),E=lu(d),T={a:X,A:F,b:oe,B:ue,c:null,d:EE,e:EE,f:vz,g:jz,G:Tz,H:hz,I:pz,j:mz,L:WM,m:yz,M:gz,p:L,q:z,Q:CE,s:ME,S:bz,u:xz,U:Sz,V:_z,w:wz,W:Oz,x:null,X:null,y:Az,Y:Ez,Z:Nz,"%":NE},N={a:te,A:ce,b:he,B:ge,c:null,d:TE,e:TE,f:Pz,g:Hz,G:Yz,H:Cz,I:Mz,j:Rz,L:QM,m:Dz,M:kz,p:Me,q:Ie,Q:CE,s:ME,S:$z,u:Lz,U:qz,V:Bz,w:zz,W:Uz,x:null,X:null,y:Iz,Y:Gz,Z:Kz,"%":NE},A={a:B,A:I,b:q,B:Y,c:K,d:AE,e:AE,f:sz,g:OE,G:wE,H:jE,I:jE,j:iz,L:uz,m:az,M:oz,p:$,q:rz,Q:fz,s:dz,S:lz,u:QB,U:JB,V:ez,w:ZB,W:tz,x:W,X:k,y:OE,Y:wE,Z:nz,"%":cz};T.x=C(n,T),T.X=C(r,T),T.c=C(t,T),N.x=C(n,N),N.X=C(r,N),N.c=C(t,N);function C(se,Se){return function(we){var le=[],rt=-1,Ee=0,ct=se.length,ft,zt,zn;for(we instanceof Date||(we=new Date(+we));++rt<ct;)se.charCodeAt(rt)===37&&(le.push(se.slice(Ee,rt)),(zt=_E[ft=se.charAt(++rt)])!=null?ft=se.charAt(++rt):zt=ft==="e"?" ":"0",(zn=Se[ft])&&(ft=zn(we,zt)),le.push(ft),Ee=rt+1);return le.push(se.slice(Ee,rt)),le.join("")}}function M(se,Se){return function(we){var le=iu(1900,void 0,1),rt=D(le,se,we+="",0),Ee,ct;if(rt!=we.length)return null;if("Q"in le)return new Date(le.Q);if("s"in le)return new Date(le.s*1e3+("L"in le?le.L:0));if(Se&&!("Z"in le)&&(le.Z=0),"p"in le&&(le.H=le.H%12+le.p*12),le.m===void 0&&(le.m="q"in le?le.q:0),"V"in le){if(le.V<1||le.V>53)return null;"w"in le||(le.w=1),"Z"in le?(Ee=bg(iu(le.y,0,1)),ct=Ee.getUTCDay(),Ee=ct>4||ct===0?gf.ceil(Ee):gf(Ee),Ee=hd.offset(Ee,(le.V-1)*7),le.y=Ee.getUTCFullYear(),le.m=Ee.getUTCMonth(),le.d=Ee.getUTCDate()+(le.w+6)%7):(Ee=gg(iu(le.y,0,1)),ct=Ee.getDay(),Ee=ct>4||ct===0?yf.ceil(Ee):yf(Ee),Ee=cs.offset(Ee,(le.V-1)*7),le.y=Ee.getFullYear(),le.m=Ee.getMonth(),le.d=Ee.getDate()+(le.w+6)%7)}else("W"in le||"U"in le)&&("w"in le||(le.w="u"in le?le.u%7:"W"in le?1:0),ct="Z"in le?bg(iu(le.y,0,1)).getUTCDay():gg(iu(le.y,0,1)).getDay(),le.m=0,le.d="W"in le?(le.w+6)%7+le.W*7-(ct+5)%7:le.w+le.U*7-(ct+6)%7);return"Z"in le?(le.H+=le.Z/100|0,le.M+=le.Z%100,bg(le)):gg(le)}}function D(se,Se,we,le){for(var rt=0,Ee=Se.length,ct=we.length,ft,zt;rt<Ee;){if(le>=ct)return-1;if(ft=Se.charCodeAt(rt++),ft===37){if(ft=Se.charAt(rt++),zt=A[ft in _E?Se.charAt(rt++):ft],!zt||(le=zt(se,we,le))<0)return-1}else if(ft!=we.charCodeAt(le++))return-1}return le}function $(se,Se,we){var le=h.exec(Se.slice(we));return le?(se.p=v.get(le[0].toLowerCase()),we+le[0].length):-1}function B(se,Se,we){var le=S.exec(Se.slice(we));return le?(se.w=w.get(le[0].toLowerCase()),we+le[0].length):-1}function I(se,Se,we){var le=m.exec(Se.slice(we));return le?(se.w=b.get(le[0].toLowerCase()),we+le[0].length):-1}function q(se,Se,we){var le=j.exec(Se.slice(we));return le?(se.m=E.get(le[0].toLowerCase()),we+le[0].length):-1}function Y(se,Se,we){var le=_.exec(Se.slice(we));return le?(se.m=x.get(le[0].toLowerCase()),we+le[0].length):-1}function K(se,Se,we){return D(se,t,Se,we)}function W(se,Se,we){return D(se,n,Se,we)}function k(se,Se,we){return D(se,r,Se,we)}function X(se){return s[se.getDay()]}function F(se){return l[se.getDay()]}function oe(se){return d[se.getMonth()]}function ue(se){return f[se.getMonth()]}function L(se){return o[+(se.getHours()>=12)]}function z(se){return 1+~~(se.getMonth()/3)}function te(se){return s[se.getUTCDay()]}function ce(se){return l[se.getUTCDay()]}function he(se){return d[se.getUTCMonth()]}function ge(se){return f[se.getUTCMonth()]}function Me(se){return o[+(se.getUTCHours()>=12)]}function Ie(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var Se=C(se+="",T);return Se.toString=function(){return se},Se},parse:function(se){var Se=M(se+="",!1);return Se.toString=function(){return se},Se},utcFormat:function(se){var Se=C(se+="",N);return Se.toString=function(){return se},Se},utcParse:function(se){var Se=M(se+="",!0);return Se.toString=function(){return se},Se}}}var _E={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,VB=/^%/,FB=/[\\^$*+?|[\]().{}]/g;function ze(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",l=o.length;return r+(l<n?new Array(n-l+1).join(t)+o:o)}function WB(e){return e.replace(FB,"\\$&")}function ou(e){return new RegExp("^(?:"+e.map(WB).join("|")+")","i")}function lu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function ZB(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function QB(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function JB(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ez(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function tz(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wE(e,t,n){var r=Pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function OE(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nz(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rz(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function az(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function AE(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function iz(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function jE(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function oz(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lz(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function uz(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function sz(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cz(e,t,n){var r=VB.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function fz(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function dz(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function EE(e,t){return ze(e.getDate(),t,2)}function hz(e,t){return ze(e.getHours(),t,2)}function pz(e,t){return ze(e.getHours()%12||12,t,2)}function mz(e,t){return ze(1+cs.count(Hr(e),e),t,3)}function WM(e,t){return ze(e.getMilliseconds(),t,3)}function vz(e,t){return WM(e,t)+"000"}function yz(e,t){return ze(e.getMonth()+1,t,2)}function gz(e,t){return ze(e.getMinutes(),t,2)}function bz(e,t){return ze(e.getSeconds(),t,2)}function xz(e){var t=e.getDay();return t===0?7:t}function Sz(e,t){return ze(pd.count(Hr(e)-1,e),t,2)}function ZM(e){var t=e.getDay();return t>=4||t===0?Eo(e):Eo.ceil(e)}function _z(e,t){return e=ZM(e),ze(Eo.count(Hr(e),e)+(Hr(e).getDay()===4),t,2)}function wz(e){return e.getDay()}function Oz(e,t){return ze(yf.count(Hr(e)-1,e),t,2)}function Az(e,t){return ze(e.getFullYear()%100,t,2)}function jz(e,t){return e=ZM(e),ze(e.getFullYear()%100,t,2)}function Ez(e,t){return ze(e.getFullYear()%1e4,t,4)}function Tz(e,t){var n=e.getDay();return e=n>=4||n===0?Eo(e):Eo.ceil(e),ze(e.getFullYear()%1e4,t,4)}function Nz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ze(t/60|0,"0",2)+ze(t%60,"0",2)}function TE(e,t){return ze(e.getUTCDate(),t,2)}function Cz(e,t){return ze(e.getUTCHours(),t,2)}function Mz(e,t){return ze(e.getUTCHours()%12||12,t,2)}function Rz(e,t){return ze(1+hd.count(Gr(e),e),t,3)}function QM(e,t){return ze(e.getUTCMilliseconds(),t,3)}function Pz(e,t){return QM(e,t)+"000"}function Dz(e,t){return ze(e.getUTCMonth()+1,t,2)}function kz(e,t){return ze(e.getUTCMinutes(),t,2)}function $z(e,t){return ze(e.getUTCSeconds(),t,2)}function Lz(e){var t=e.getUTCDay();return t===0?7:t}function qz(e,t){return ze(md.count(Gr(e)-1,e),t,2)}function JM(e){var t=e.getUTCDay();return t>=4||t===0?To(e):To.ceil(e)}function Bz(e,t){return e=JM(e),ze(To.count(Gr(e),e)+(Gr(e).getUTCDay()===4),t,2)}function zz(e){return e.getUTCDay()}function Uz(e,t){return ze(gf.count(Gr(e)-1,e),t,2)}function Iz(e,t){return ze(e.getUTCFullYear()%100,t,2)}function Hz(e,t){return e=JM(e),ze(e.getUTCFullYear()%100,t,2)}function Gz(e,t){return ze(e.getUTCFullYear()%1e4,t,4)}function Yz(e,t){var n=e.getUTCDay();return e=n>=4||n===0?To(e):To.ceil(e),ze(e.getUTCFullYear()%1e4,t,4)}function Kz(){return"+0000"}function NE(){return"%"}function CE(e){return+e}function ME(e){return Math.floor(+e/1e3)}var so,e3,t3;Xz({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 Xz(e){return so=XB(e),e3=so.format,so.parse,t3=so.utcFormat,so.utcParse,so}function Vz(e){return new Date(e)}function Fz(e){return e instanceof Date?+e:+new Date(+e)}function Mx(e,t,n,r,o,l,s,f,d,h){var v=yx(),m=v.invert,b=v.domain,S=h(".%L"),w=h(":%S"),_=h("%I:%M"),x=h("%I %p"),j=h("%a %d"),E=h("%b %d"),T=h("%B"),N=h("%Y");function A(C){return(d(C)<C?S:f(C)<C?w:s(C)<C?_:l(C)<C?x:r(C)<C?o(C)<C?j:E:n(C)<C?T:N)(C)}return v.invert=function(C){return new Date(m(C))},v.domain=function(C){return arguments.length?b(Array.from(C,Fz)):b().map(Vz)},v.ticks=function(C){var M=b();return e(M[0],M[M.length-1],C??10)},v.tickFormat=function(C,M){return M==null?A:h(M)},v.nice=function(C){var M=b();return(!C||typeof C.range!="function")&&(C=t(M[0],M[M.length-1],C??10)),C?b(UM(M,C)):v},v.copy=function(){return ss(v,Mx(e,t,n,r,o,l,s,f,d,h))},v}function Wz(){return Bn.apply(Mx(YB,KB,Hr,Nx,pd,cs,Ex,Ax,li,e3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Zz(){return Bn.apply(Mx(HB,GB,Gr,Cx,md,hd,Tx,jx,li,t3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vd(){var e=0,t=1,n,r,o,l,s=Xt,f=!1,d;function h(m){return m==null||isNaN(m=+m)?d:s(o===0?.5:(m=(l(m)-n)*o,f?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t]=m,n=l(e=+e),r=l(t=+t),o=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(m){return arguments.length?(f=!!m,h):f},h.interpolator=function(m){return arguments.length?(s=m,h):s};function v(m){return function(b){var S,w;return arguments.length?([S,w]=b,s=m(S,w),h):[s(0),s(1)]}}return h.range=v(tl),h.rangeRound=v(vx),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return l=m,n=m(e),r=m(t),o=n===r?0:1/(r-n),h}}function Ra(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function n3(){var e=Ma(vd()(Xt));return e.copy=function(){return Ra(e,n3())},Vr.apply(e,arguments)}function r3(){var e=xx(vd()).domain([1,10]);return e.copy=function(){return Ra(e,r3()).base(e.base())},Vr.apply(e,arguments)}function a3(){var e=Sx(vd());return e.copy=function(){return Ra(e,a3()).constant(e.constant())},Vr.apply(e,arguments)}function Rx(){var e=_x(vd());return e.copy=function(){return Ra(e,Rx()).exponent(e.exponent())},Vr.apply(e,arguments)}function Qz(){return Rx.apply(null,arguments).exponent(.5)}function i3(){var e=[],t=Xt;function n(r){if(r!=null&&!isNaN(r=+r))return t((ls(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(ja),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,l)=>qq(e,l/r))},n.copy=function(){return i3(t).domain(e)},Vr.apply(n,arguments)}function yd(){var e=0,t=.5,n=1,r=1,o,l,s,f,d,h=Xt,v,m=!1,b;function S(_){return isNaN(_=+_)?b:(_=.5+((_=+v(_))-l)*(r*_<r*l?f:d),h(m?Math.max(0,Math.min(1,_)):_))}S.domain=function(_){return arguments.length?([e,t,n]=_,o=v(e=+e),l=v(t=+t),s=v(n=+n),f=o===l?0:.5/(l-o),d=l===s?0:.5/(s-l),r=l<o?-1:1,S):[e,t,n]},S.clamp=function(_){return arguments.length?(m=!!_,S):m},S.interpolator=function(_){return arguments.length?(h=_,S):h};function w(_){return function(x){var j,E,T;return arguments.length?([j,E,T]=x,h=cB(_,[j,E,T]),S):[h(0),h(.5),h(1)]}}return S.range=w(tl),S.rangeRound=w(vx),S.unknown=function(_){return arguments.length?(b=_,S):b},function(_){return v=_,o=_(e),l=_(t),s=_(n),f=o===l?0:.5/(l-o),d=l===s?0:.5/(s-l),r=l<o?-1:1,S}}function o3(){var e=Ma(yd()(Xt));return e.copy=function(){return Ra(e,o3())},Vr.apply(e,arguments)}function l3(){var e=xx(yd()).domain([.1,1,10]);return e.copy=function(){return Ra(e,l3()).base(e.base())},Vr.apply(e,arguments)}function u3(){var e=Sx(yd());return e.copy=function(){return Ra(e,u3()).constant(e.constant())},Vr.apply(e,arguments)}function Px(){var e=_x(yd());return e.copy=function(){return Ra(e,Px()).exponent(e.exponent())},Vr.apply(e,arguments)}function Jz(){return Px.apply(null,arguments).exponent(.5)}const RE=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Nu,scaleDiverging:o3,scaleDivergingLog:l3,scaleDivergingPow:Px,scaleDivergingSqrt:Jz,scaleDivergingSymlog:u3,scaleIdentity:zM,scaleImplicit:$0,scaleLinear:mf,scaleLog:IM,scaleOrdinal:hx,scalePoint:vu,scalePow:wx,scaleQuantile:YM,scaleQuantize:KM,scaleRadial:GM,scaleSequential:n3,scaleSequentialLog:r3,scaleSequentialPow:Rx,scaleSequentialQuantile:i3,scaleSequentialSqrt:Qz,scaleSequentialSymlog:a3,scaleSqrt:PB,scaleSymlog:HM,scaleThreshold:XM,scaleTime:Wz,scaleUtc:Zz,tickFormat:BM},Symbol.toStringTag,{value:"Module"}));var xg,PE;function gd(){if(PE)return xg;PE=1;var e=Wo();function t(n,r,o){for(var l=-1,s=n.length;++l<s;){var f=n[l],d=r(f);if(d!=null&&(h===void 0?d===d&&!e(d):o(d,h)))var h=d,v=f}return v}return xg=t,xg}var Sg,DE;function s3(){if(DE)return Sg;DE=1;function e(t,n){return t>n}return Sg=e,Sg}var _g,kE;function e7(){if(kE)return _g;kE=1;var e=gd(),t=s3(),n=el();function r(o){return o&&o.length?e(o,n,t):void 0}return _g=r,_g}var t7=e7();const Oa=Ze(t7);var wg,$E;function c3(){if($E)return wg;$E=1;function e(t,n){return t<n}return wg=e,wg}var Og,LE;function n7(){if(LE)return Og;LE=1;var e=gd(),t=c3(),n=el();function r(o){return o&&o.length?e(o,n,t):void 0}return Og=r,Og}var r7=n7();const bd=Ze(r7);var Ag,qE;function a7(){if(qE)return Ag;qE=1;var e=Vb(),t=fr(),n=bM(),r=rn();function o(l,s){var f=r(l)?e:n;return f(l,t(s,3))}return Ag=o,Ag}var jg,BE;function i7(){if(BE)return jg;BE=1;var e=yM(),t=a7();function n(r,o){return e(t(r,o),1)}return jg=n,jg}var o7=i7();const l7=Ze(o7);var Eg,zE;function u7(){if(zE)return Eg;zE=1;var e=lx();function t(n,r){return e(n,r)}return Eg=t,Eg}var s7=u7();const No=Ze(s7);var nl=1e9,c7={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kx,ut=!0,Ln="[DecimalError] ",di=Ln+"Invalid argument: ",Dx=Ln+"Exponent out of range: ",rl=Math.floor,ri=Math.pow,f7=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,vn,Mt=1e7,ot=7,f3=9007199254740991,bf=rl(f3/ot),de={};de.absoluteValue=de.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};de.comparedTo=de.cmp=function(e){var t,n,r,o,l=this;if(e=new l.constructor(e),l.s!==e.s)return l.s||-e.s;if(l.e!==e.e)return l.e>e.e^l.s<0?1:-1;for(r=l.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(l.d[t]!==e.d[t])return l.d[t]>e.d[t]^l.s<0?1:-1;return r===o?0:r>o^l.s<0?1:-1};de.decimalPlaces=de.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};de.dividedBy=de.div=function(e){return Br(this,new this.constructor(e))};de.dividedToIntegerBy=de.idiv=function(e){var t=this,n=t.constructor;return Je(Br(t,new n(e),0,1),n.precision)};de.equals=de.eq=function(e){return!this.cmp(e)};de.exponent=function(){return _t(this)};de.greaterThan=de.gt=function(e){return this.cmp(e)>0};de.greaterThanOrEqualTo=de.gte=function(e){return this.cmp(e)>=0};de.isInteger=de.isint=function(){return this.e>this.d.length-2};de.isNegative=de.isneg=function(){return this.s<0};de.isPositive=de.ispos=function(){return this.s>0};de.isZero=function(){return this.s===0};de.lessThan=de.lt=function(e){return this.cmp(e)<0};de.lessThanOrEqualTo=de.lte=function(e){return this.cmp(e)<1};de.logarithm=de.log=function(e){var t,n=this,r=n.constructor,o=r.precision,l=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(vn))throw Error(Ln+"NaN");if(n.s<1)throw Error(Ln+(n.s?"NaN":"-Infinity"));return n.eq(vn)?new r(0):(ut=!1,t=Br(Du(n,l),Du(e,l),l),ut=!0,Je(t,o))};de.minus=de.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?p3(t,e):d3(t,(e.s=-e.s,e))};de.modulo=de.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(Ln+"NaN");return n.s?(ut=!1,t=Br(n,e,0,1).times(e),ut=!0,n.minus(t)):Je(new r(n),o)};de.naturalExponential=de.exp=function(){return h3(this)};de.naturalLogarithm=de.ln=function(){return Du(this)};de.negated=de.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};de.plus=de.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?d3(t,e):p3(t,(e.s=-e.s,e))};de.precision=de.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(di+e);if(t=_t(o)+1,r=o.d.length-1,n=r*ot+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};de.squareRoot=de.sqrt=function(){var e,t,n,r,o,l,s,f=this,d=f.constructor;if(f.s<1){if(!f.s)return new d(0);throw Error(Ln+"NaN")}for(e=_t(f),ut=!1,o=Math.sqrt(+f),o==0||o==1/0?(t=ar(f.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=rl((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=s=n+3;;)if(l=r,r=l.plus(Br(f,l,s+2)).times(.5),ar(l.d).slice(0,s)===(t=ar(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),o==s&&t=="4999"){if(Je(l,n+1,0),l.times(l).eq(f)){r=l;break}}else if(t!="9999")break;s+=4}return ut=!0,Je(r,n)};de.times=de.mul=function(e){var t,n,r,o,l,s,f,d,h,v=this,m=v.constructor,b=v.d,S=(e=new m(e)).d;if(!v.s||!e.s)return new m(0);for(e.s*=v.s,n=v.e+e.e,d=b.length,h=S.length,d<h&&(l=b,b=S,S=l,s=d,d=h,h=s),l=[],s=d+h,r=s;r--;)l.push(0);for(r=h;--r>=0;){for(t=0,o=d+r;o>r;)f=l[o]+S[r]*b[o-r-1]+t,l[o--]=f%Mt|0,t=f/Mt|0;l[o]=(l[o]+t)%Mt|0}for(;!l[--s];)l.pop();return t?++n:l.shift(),e.d=l,e.e=n,ut?Je(e,m.precision):e};de.toDecimalPlaces=de.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ur(e,0,nl),t===void 0?t=r.rounding:ur(t,0,8),Je(n,e+_t(n)+1,t))};de.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=yi(r,!0):(ur(e,0,nl),t===void 0?t=o.rounding:ur(t,0,8),r=Je(new o(r),e+1,t),n=yi(r,!0,e+1)),n};de.toFixed=function(e,t){var n,r,o=this,l=o.constructor;return e===void 0?yi(o):(ur(e,0,nl),t===void 0?t=l.rounding:ur(t,0,8),r=Je(new l(o),e+_t(o)+1,t),n=yi(r.abs(),!1,e+_t(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};de.toInteger=de.toint=function(){var e=this,t=e.constructor;return Je(new t(e),_t(e)+1,t.rounding)};de.toNumber=function(){return+this};de.toPower=de.pow=function(e){var t,n,r,o,l,s,f=this,d=f.constructor,h=12,v=+(e=new d(e));if(!e.s)return new d(vn);if(f=new d(f),!f.s){if(e.s<1)throw Error(Ln+"Infinity");return f}if(f.eq(vn))return f;if(r=d.precision,e.eq(vn))return Je(f,r);if(t=e.e,n=e.d.length-1,s=t>=n,l=f.s,s){if((n=v<0?-v:v)<=f3){for(o=new d(vn),t=Math.ceil(r/ot+4),ut=!1;n%2&&(o=o.times(f),IE(o.d,t)),n=rl(n/2),n!==0;)f=f.times(f),IE(f.d,t);return ut=!0,e.s<0?new d(vn).div(o):Je(o,r)}}else if(l<0)throw Error(Ln+"NaN");return l=l<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,ut=!1,o=e.times(Du(f,r+h)),ut=!0,o=h3(o),o.s=l,o};de.toPrecision=function(e,t){var n,r,o=this,l=o.constructor;return e===void 0?(n=_t(o),r=yi(o,n<=l.toExpNeg||n>=l.toExpPos)):(ur(e,1,nl),t===void 0?t=l.rounding:ur(t,0,8),o=Je(new l(o),e,t),n=_t(o),r=yi(o,e<=n||n<=l.toExpNeg,e)),r};de.toSignificantDigits=de.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ur(e,1,nl),t===void 0?t=r.rounding:ur(t,0,8)),Je(new r(n),e,t)};de.toString=de.valueOf=de.val=de.toJSON=de[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=_t(e),n=e.constructor;return yi(e,t<=n.toExpNeg||t>=n.toExpPos)};function d3(e,t){var n,r,o,l,s,f,d,h,v=e.constructor,m=v.precision;if(!e.s||!t.s)return t.s||(t=new v(e)),ut?Je(t,m):t;if(d=e.d,h=t.d,s=e.e,o=t.e,d=d.slice(),l=s-o,l){for(l<0?(r=d,l=-l,f=h.length):(r=h,o=s,f=d.length),s=Math.ceil(m/ot),f=s>f?s+1:f+1,l>f&&(l=f,r.length=1),r.reverse();l--;)r.push(0);r.reverse()}for(f=d.length,l=h.length,f-l<0&&(l=f,r=h,h=d,d=r),n=0;l;)n=(d[--l]=d[l]+h[l]+n)/Mt|0,d[l]%=Mt;for(n&&(d.unshift(n),++o),f=d.length;d[--f]==0;)d.pop();return t.d=d,t.e=o,ut?Je(t,m):t}function ur(e,t,n){if(e!==~~e||e<t||e>n)throw Error(di+e)}function ar(e){var t,n,r,o=e.length-1,l="",s=e[0];if(o>0){for(l+=s,t=1;t<o;t++)r=e[t]+"",n=ot-r.length,n&&(l+=wa(n)),l+=r;s=e[t],r=s+"",n=ot-r.length,n&&(l+=wa(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return l+s}var Br=(function(){function e(r,o){var l,s=0,f=r.length;for(r=r.slice();f--;)l=r[f]*o+s,r[f]=l%Mt|0,s=l/Mt|0;return s&&r.unshift(s),r}function t(r,o,l,s){var f,d;if(l!=s)d=l>s?1:-1;else for(f=d=0;f<l;f++)if(r[f]!=o[f]){d=r[f]>o[f]?1:-1;break}return d}function n(r,o,l){for(var s=0;l--;)r[l]-=s,s=r[l]<o[l]?1:0,r[l]=s*Mt+r[l]-o[l];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,l,s){var f,d,h,v,m,b,S,w,_,x,j,E,T,N,A,C,M,D,$=r.constructor,B=r.s==o.s?1:-1,I=r.d,q=o.d;if(!r.s)return new $(r);if(!o.s)throw Error(Ln+"Division by zero");for(d=r.e-o.e,M=q.length,A=I.length,S=new $(B),w=S.d=[],h=0;q[h]==(I[h]||0);)++h;if(q[h]>(I[h]||0)&&--d,l==null?E=l=$.precision:s?E=l+(_t(r)-_t(o))+1:E=l,E<0)return new $(0);if(E=E/ot+2|0,h=0,M==1)for(v=0,q=q[0],E++;(h<A||v)&&E--;h++)T=v*Mt+(I[h]||0),w[h]=T/q|0,v=T%q|0;else{for(v=Mt/(q[0]+1)|0,v>1&&(q=e(q,v),I=e(I,v),M=q.length,A=I.length),N=M,_=I.slice(0,M),x=_.length;x<M;)_[x++]=0;D=q.slice(),D.unshift(0),C=q[0],q[1]>=Mt/2&&++C;do v=0,f=t(q,_,M,x),f<0?(j=_[0],M!=x&&(j=j*Mt+(_[1]||0)),v=j/C|0,v>1?(v>=Mt&&(v=Mt-1),m=e(q,v),b=m.length,x=_.length,f=t(m,_,b,x),f==1&&(v--,n(m,M<b?D:q,b))):(v==0&&(f=v=1),m=q.slice()),b=m.length,b<x&&m.unshift(0),n(_,m,x),f==-1&&(x=_.length,f=t(q,_,M,x),f<1&&(v++,n(_,M<x?D:q,x))),x=_.length):f===0&&(v++,_=[0]),w[h++]=v,f&&_[0]?_[x++]=I[N]||0:(_=[I[N]],x=1);while((N++<A||_[0]!==void 0)&&E--)}return w[0]||w.shift(),S.e=d,Je(S,s?l+_t(S)+1:l)}})();function h3(e,t){var n,r,o,l,s,f,d=0,h=0,v=e.constructor,m=v.precision;if(_t(e)>16)throw Error(Dx+_t(e));if(!e.s)return new v(vn);for(ut=!1,f=m,s=new v(.03125);e.abs().gte(.1);)e=e.times(s),h+=5;for(r=Math.log(ri(2,h))/Math.LN10*2+5|0,f+=r,n=o=l=new v(vn),v.precision=f;;){if(o=Je(o.times(e),f),n=n.times(++d),s=l.plus(Br(o,n,f)),ar(s.d).slice(0,f)===ar(l.d).slice(0,f)){for(;h--;)l=Je(l.times(l),f);return v.precision=m,t==null?(ut=!0,Je(l,m)):l}l=s}}function _t(e){for(var t=e.e*ot,n=e.d[0];n>=10;n/=10)t++;return t}function Tg(e,t,n){if(t>e.LN10.sd())throw ut=!0,n&&(e.precision=n),Error(Ln+"LN10 precision limit exceeded");return Je(new e(e.LN10),t)}function wa(e){for(var t="";e--;)t+="0";return t}function Du(e,t){var n,r,o,l,s,f,d,h,v,m=1,b=10,S=e,w=S.d,_=S.constructor,x=_.precision;if(S.s<1)throw Error(Ln+(S.s?"NaN":"-Infinity"));if(S.eq(vn))return new _(0);if(t==null?(ut=!1,h=x):h=t,S.eq(10))return t==null&&(ut=!0),Tg(_,h);if(h+=b,_.precision=h,n=ar(w),r=n.charAt(0),l=_t(S),Math.abs(l)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)S=S.times(e),n=ar(S.d),r=n.charAt(0),m++;l=_t(S),r>1?(S=new _("0."+n),l++):S=new _(r+"."+n.slice(1))}else return d=Tg(_,h+2,x).times(l+""),S=Du(new _(r+"."+n.slice(1)),h-b).plus(d),_.precision=x,t==null?(ut=!0,Je(S,x)):S;for(f=s=S=Br(S.minus(vn),S.plus(vn),h),v=Je(S.times(S),h),o=3;;){if(s=Je(s.times(v),h),d=f.plus(Br(s,new _(o),h)),ar(d.d).slice(0,h)===ar(f.d).slice(0,h))return f=f.times(2),l!==0&&(f=f.plus(Tg(_,h+2,x).times(l+""))),f=Br(f,new _(m),h),_.precision=x,t==null?(ut=!0,Je(f,x)):f;f=d,o+=2}}function UE(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=rl(n/ot),e.d=[],r=(n+1)%ot,n<0&&(r+=ot),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=ot;r<o;)e.d.push(+t.slice(r,r+=ot));t=t.slice(r),r=ot-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ut&&(e.e>bf||e.e<-bf))throw Error(Dx+n)}else e.s=0,e.e=0,e.d=[0];return e}function Je(e,t,n){var r,o,l,s,f,d,h,v,m=e.d;for(s=1,l=m[0];l>=10;l/=10)s++;if(r=t-s,r<0)r+=ot,o=t,h=m[v=0];else{if(v=Math.ceil((r+1)/ot),l=m.length,v>=l)return e;for(h=l=m[v],s=1;l>=10;l/=10)s++;r%=ot,o=r-ot+s}if(n!==void 0&&(l=ri(10,s-o-1),f=h/l%10|0,d=t<0||m[v+1]!==void 0||h%l,d=n<4?(f||d)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||d||n==6&&(r>0?o>0?h/ri(10,s-o):0:m[v-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return d?(l=_t(e),m.length=1,t=t-l-1,m[0]=ri(10,(ot-t%ot)%ot),e.e=rl(-t/ot)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=v,l=1,v--):(m.length=v+1,l=ri(10,ot-r),m[v]=o>0?(h/ri(10,s-o)%ri(10,o)|0)*l:0),d)for(;;)if(v==0){(m[0]+=l)==Mt&&(m[0]=1,++e.e);break}else{if(m[v]+=l,m[v]!=Mt)break;m[v--]=0,l=1}for(r=m.length;m[--r]===0;)m.pop();if(ut&&(e.e>bf||e.e<-bf))throw Error(Dx+_t(e));return e}function p3(e,t){var n,r,o,l,s,f,d,h,v,m,b=e.constructor,S=b.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new b(e),ut?Je(t,S):t;if(d=e.d,m=t.d,r=t.e,h=e.e,d=d.slice(),s=h-r,s){for(v=s<0,v?(n=d,s=-s,f=m.length):(n=m,r=h,f=d.length),o=Math.max(Math.ceil(S/ot),f)+2,s>o&&(s=o,n.length=1),n.reverse(),o=s;o--;)n.push(0);n.reverse()}else{for(o=d.length,f=m.length,v=o<f,v&&(f=o),o=0;o<f;o++)if(d[o]!=m[o]){v=d[o]<m[o];break}s=0}for(v&&(n=d,d=m,m=n,t.s=-t.s),f=d.length,o=m.length-f;o>0;--o)d[f++]=0;for(o=m.length;o>s;){if(d[--o]<m[o]){for(l=o;l&&d[--l]===0;)d[l]=Mt-1;--d[l],d[o]+=Mt}d[o]-=m[o]}for(;d[--f]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,ut?Je(t,S):t):new b(0)}function yi(e,t,n){var r,o=_t(e),l=ar(e.d),s=l.length;return t?(n&&(r=n-s)>0?l=l.charAt(0)+"."+l.slice(1)+wa(r):s>1&&(l=l.charAt(0)+"."+l.slice(1)),l=l+(o<0?"e":"e+")+o):o<0?(l="0."+wa(-o-1)+l,n&&(r=n-s)>0&&(l+=wa(r))):o>=s?(l+=wa(o+1-s),n&&(r=n-o-1)>0&&(l=l+"."+wa(r))):((r=o+1)<s&&(l=l.slice(0,r)+"."+l.slice(r)),n&&(r=n-s)>0&&(o+1===s&&(l+="."),l+=wa(r))),e.s<0?"-"+l:l}function IE(e,t){if(e.length>t)return e.length=t,!0}function m3(e){var t,n,r;function o(l){var s=this;if(!(s instanceof o))return new o(l);if(s.constructor=o,l instanceof o){s.s=l.s,s.e=l.e,s.d=(l=l.d)?l.slice():l;return}if(typeof l=="number"){if(l*0!==0)throw Error(di+l);if(l>0)s.s=1;else if(l<0)l=-l,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(l===~~l&&l<1e7){s.e=0,s.d=[l];return}return UE(s,l.toString())}else if(typeof l!="string")throw Error(di+l);if(l.charCodeAt(0)===45?(l=l.slice(1),s.s=-1):s.s=1,f7.test(l))UE(s,l);else throw Error(di+l)}if(o.prototype=de,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=m3,o.config=o.set=d7,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function d7(e){if(!e||typeof e!="object")throw Error(Ln+"Object expected");var t,n,r,o=["precision",1,nl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(rl(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(di+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(di+n+": "+r);return this}var kx=m3(c7);vn=new kx(1);const We=kx;function h7(e){return y7(e)||v7(e)||m7(e)||p7()}function p7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
80
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m7(e,t){if(e){if(typeof e=="string")return z0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z0(e,t)}}function v7(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function y7(e){if(Array.isArray(e))return z0(e)}function z0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g7=function(t){return t},v3={},y3=function(t){return t===v3},HE=function(t){return function n(){return arguments.length===0||arguments.length===1&&y3(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},b7=function e(t,n){return t===1?n:HE(function(){for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var s=o.filter(function(f){return f!==v3}).length;return s>=t?n.apply(void 0,o):e(t-s,HE(function(){for(var f=arguments.length,d=new Array(f),h=0;h<f;h++)d[h]=arguments[h];var v=o.map(function(m){return y3(m)?d.shift():m});return n.apply(void 0,h7(v).concat(d))}))})},xd=function(t){return b7(t.length,t)},U0=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},x7=xd(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),S7=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return g7;var o=n.reverse(),l=o[0],s=o.slice(1);return function(){return s.reduce(function(f,d){return d(f)},l.apply(void 0,arguments))}},I0=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},g3=function(t){var n=null,r=null;return function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return n&&l.every(function(f,d){return f===n[d]})||(n=l,r=t.apply(void 0,l)),r}};function _7(e){var t;return e===0?t=1:t=Math.floor(new We(e).abs().log(10).toNumber())+1,t}function w7(e,t,n){for(var r=new We(e),o=0,l=[];r.lt(t)&&o<1e5;)l.push(r.toNumber()),r=r.add(n),o++;return l}var O7=xd(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),A7=xd(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),j7=xd(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Sd={rangeStep:w7,getDigitCount:_7,interpolateNumber:O7,uninterpolateNumber:A7,uninterpolateTruncation:j7};function H0(e){return N7(e)||T7(e)||b3(e)||E7()}function E7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
81
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T7(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function N7(e){if(Array.isArray(e))return G0(e)}function ku(e,t){return R7(e)||M7(e,t)||b3(e,t)||C7()}function C7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b3(e,t){if(e){if(typeof e=="string")return G0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G0(e,t)}}function G0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M7(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,l=void 0;try{for(var s=e[Symbol.iterator](),f;!(r=(f=s.next()).done)&&(n.push(f.value),!(t&&n.length===t));r=!0);}catch(d){o=!0,l=d}finally{try{!r&&s.return!=null&&s.return()}finally{if(o)throw l}}return n}}function R7(e){if(Array.isArray(e))return e}function x3(e){var t=ku(e,2),n=t[0],r=t[1],o=n,l=r;return n>r&&(o=r,l=n),[o,l]}function S3(e,t,n){if(e.lte(0))return new We(0);var r=Sd.getDigitCount(e.toNumber()),o=new We(10).pow(r),l=e.div(o),s=r!==1?.05:.1,f=new We(Math.ceil(l.div(s).toNumber())).add(n).mul(s),d=f.mul(o);return t?d:new We(Math.ceil(d))}function P7(e,t,n){var r=1,o=new We(e);if(!o.isint()&&n){var l=Math.abs(e);l<1?(r=new We(10).pow(Sd.getDigitCount(e)-1),o=new We(Math.floor(o.div(r).toNumber())).mul(r)):l>1&&(o=new We(Math.floor(e)))}else e===0?o=new We(Math.floor((t-1)/2)):n||(o=new We(Math.floor(e)));var s=Math.floor((t-1)/2),f=S7(x7(function(d){return o.add(new We(d-s).mul(r)).toNumber()}),U0);return f(0,t)}function _3(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new We(0),tickMin:new We(0),tickMax:new We(0)};var l=S3(new We(t).sub(e).div(n-1),r,o),s;e<=0&&t>=0?s=new We(0):(s=new We(e).add(t).div(2),s=s.sub(new We(s).mod(l)));var f=Math.ceil(s.sub(e).div(l).toNumber()),d=Math.ceil(new We(t).sub(s).div(l).toNumber()),h=f+d+1;return h>n?_3(e,t,n,r,o+1):(h<n&&(d=t>0?d+(n-h):d,f=t>0?f:f+(n-h)),{step:l,tickMin:s.sub(new We(f).mul(l)),tickMax:s.add(new We(d).mul(l))})}function D7(e){var t=ku(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(o,2),f=x3([n,r]),d=ku(f,2),h=d[0],v=d[1];if(h===-1/0||v===1/0){var m=v===1/0?[h].concat(H0(U0(0,o-1).map(function(){return 1/0}))):[].concat(H0(U0(0,o-1).map(function(){return-1/0})),[v]);return n>r?I0(m):m}if(h===v)return P7(h,o,l);var b=_3(h,v,s,l),S=b.step,w=b.tickMin,_=b.tickMax,x=Sd.rangeStep(w,_.add(new We(.1).mul(S)),S);return n>r?I0(x):x}function k7(e,t){var n=ku(e,2),r=n[0],o=n[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=x3([r,o]),f=ku(s,2),d=f[0],h=f[1];if(d===-1/0||h===1/0)return[r,o];if(d===h)return[d];var v=Math.max(t,2),m=S3(new We(h).sub(d).div(v-1),l,0),b=[].concat(H0(Sd.rangeStep(new We(d),new We(h).sub(new We(.99).mul(m)),m)),[h]);return r>o?I0(b):b}var $7=g3(D7),L7=g3(k7),q7="Invariant failed";function gi(e,t){throw new Error(q7)}var B7=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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)}function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xf.apply(this,arguments)}function z7(e,t){return G7(e)||H7(e,t)||I7(e,t)||U7()}function U7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
83
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I7(e,t){if(e){if(typeof e=="string")return GE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GE(e,t)}}function GE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function G7(e){if(Array.isArray(e))return e}function Y7(e,t){if(e==null)return{};var n=K7(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function K7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function X7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A3(r.key),r)}}function F7(e,t,n){return t&&V7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function W7(e,t,n){return t=Sf(t),Z7(e,w3()?Reflect.construct(t,n||[],Sf(e).constructor):t.apply(e,n))}function Z7(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 Q7(e)}function Q7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w3=function(){return!!e})()}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function J7(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&&Y0(e,t)}function Y0(e,t){return Y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Y0(e,t)}function O3(e,t,n){return t=A3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A3(e){var t=eU(e,"string");return Co(t)=="symbol"?t:t+""}function eU(e,t){if(Co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _d=(function(e){function t(){return X7(this,t),W7(this,t,arguments)}return J7(t,e),F7(t,[{key:"render",value:function(){var r=this.props,o=r.offset,l=r.layout,s=r.width,f=r.dataKey,d=r.data,h=r.dataPointFormatter,v=r.xAxis,m=r.yAxis,b=Y7(r,B7),S=ye(b,!1);this.props.direction==="x"&&v.type!=="number"&&gi();var w=d.map(function(_){var x=h(_,f),j=x.x,E=x.y,T=x.value,N=x.errorVal;if(!N)return null;var A=[],C,M;if(Array.isArray(N)){var D=z7(N,2);C=D[0],M=D[1]}else C=M=N;if(l==="vertical"){var $=v.scale,B=E+o,I=B+s,q=B-s,Y=$(T-C),K=$(T+M);A.push({x1:K,y1:I,x2:K,y2:q}),A.push({x1:Y,y1:B,x2:K,y2:B}),A.push({x1:Y,y1:I,x2:Y,y2:q})}else if(l==="horizontal"){var W=m.scale,k=j+o,X=k-s,F=k+s,oe=W(T-C),ue=W(T+M);A.push({x1:X,y1:ue,x2:F,y2:ue}),A.push({x1:k,y1:oe,x2:k,y2:ue}),A.push({x1:X,y1:oe,x2:F,y2:oe})}return H.createElement(Le,xf({className:"recharts-errorBar",key:"bar-".concat(A.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},S),A.map(function(L){return H.createElement("line",xf({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return H.createElement(Le,{className:"recharts-errorBars"},w)}}])})(H.Component);O3(_d,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});O3(_d,"displayName","ErrorBar");function $u(e){"@babel/helpers - typeof";return $u=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},$u(e)}function YE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YE(Object(n),!0).forEach(function(r){tU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tU(e,t,n){return t=nU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nU(e){var t=rU(e,"string");return $u(t)=="symbol"?t:t+""}function rU(e,t){if($u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var j3=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,l=t.legendContent,s=mn(n,ci);if(!s)return null;var f=ci.defaultProps,d=f!==void 0?Ja(Ja({},f),s.props):{},h;return s.props&&s.props.payload?h=s.props&&s.props.payload:l==="children"?h=(r||[]).reduce(function(v,m){var b=m.item,S=m.props,w=S.sectors||S.data||[];return v.concat(w.map(function(_){return{type:s.props.iconType||b.props.legendType,value:_.name,color:_.fill,payload:_}}))},[]):h=(r||[]).map(function(v){var m=v.item,b=m.type.defaultProps,S=b!==void 0?Ja(Ja({},b),m.props):{},w=S.dataKey,_=S.name,x=S.legendType,j=S.hide;return{inactive:j,dataKey:w,type:d.iconType||x||"square",color:$x(m),value:_||w,payload:S}}),Ja(Ja(Ja({},d),ci.getWithHeight(s,o)),{},{payload:h,item:s})};function Lu(e){"@babel/helpers - typeof";return Lu=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},Lu(e)}function KE(e){return lU(e)||oU(e)||iU(e)||aU()}function aU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
84
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iU(e,t){if(e){if(typeof e=="string")return K0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K0(e,t)}}function oU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lU(e){if(Array.isArray(e))return K0(e)}function K0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XE(Object(n),!0).forEach(function(r){bo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bo(e,t,n){return t=uU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uU(e){var t=sU(e,"string");return Lu(t)=="symbol"?t:t+""}function sU(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jt(e,t,n){return Ae(e)||Ae(t)?n:Et(t)?gn(e,t,n):_e(t)?t(e):n}function yu(e,t,n,r){var o=l7(e,function(f){return jt(f,t)});if(n==="number"){var l=o.filter(function(f){return fe(f)||parseFloat(f)});return l.length?[bd(l),Oa(l)]:[1/0,-1/0]}var s=r?o.filter(function(f){return!Ae(f)}):o;return s.map(function(f){return Et(f)||f instanceof Date?f:""})}var cU=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,s=-1,f=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(f<=1)return 0;if(l&&l.axisType==="angleAxis"&&Math.abs(Math.abs(l.range[1]-l.range[0])-360)<=1e-6)for(var d=l.range,h=0;h<f;h++){var v=h>0?o[h-1].coordinate:o[f-1].coordinate,m=o[h].coordinate,b=h>=f-1?o[0].coordinate:o[h+1].coordinate,S=void 0;if(Yt(m-v)!==Yt(b-m)){var w=[];if(Yt(b-m)===Yt(d[1]-d[0])){S=b;var _=m+d[1]-d[0];w[0]=Math.min(_,(_+v)/2),w[1]=Math.max(_,(_+v)/2)}else{S=v;var x=b+d[1]-d[0];w[0]=Math.min(m,(x+m)/2),w[1]=Math.max(m,(x+m)/2)}var j=[Math.min(m,(S+m)/2),Math.max(m,(S+m)/2)];if(t>j[0]&&t<=j[1]||t>=w[0]&&t<=w[1]){s=o[h].index;break}}else{var E=Math.min(v,b),T=Math.max(v,b);if(t>(E+m)/2&&t<=(T+m)/2){s=o[h].index;break}}}else for(var N=0;N<f;N++)if(N===0&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N>0&&N<f-1&&t>(r[N].coordinate+r[N-1].coordinate)/2&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N===f-1&&t>(r[N].coordinate+r[N-1].coordinate)/2){s=r[N].index;break}return s},$x=function(t){var n,r=t,o=r.type.displayName,l=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pt(pt({},t.type.defaultProps),t.props):t.props,s=l.stroke,f=l.fill,d;switch(o){case"Line":d=s;break;case"Area":case"Radar":d=s&&s!=="none"?s:f;break;default:d=f;break}return d},fU=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,l=o===void 0?{}:o;if(!l)return{};for(var s={},f=Object.keys(l),d=0,h=f.length;d<h;d++)for(var v=l[f[d]].stackGroups,m=Object.keys(v),b=0,S=m.length;b<S;b++){var w=v[m[b]],_=w.items,x=w.cateAxisId,j=_.filter(function(M){return Lr(M.type).indexOf("Bar")>=0});if(j&&j.length){var E=j[0].type.defaultProps,T=E!==void 0?pt(pt({},E),j[0].props):j[0].props,N=T.barSize,A=T[x];s[A]||(s[A]=[]);var C=Ae(N)?n:N;s[A].push({item:j[0],stackList:j.slice(1),barSize:Ae(C)?void 0:Kt(C,r,0)})}}return s},dU=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,l=t.sizeList,s=l===void 0?[]:l,f=t.maxBarSize,d=s.length;if(d<1)return null;var h=Kt(n,o,0,!0),v,m=[];if(s[0].barSize===+s[0].barSize){var b=!1,S=o/d,w=s.reduce(function(N,A){return N+A.barSize||0},0);w+=(d-1)*h,w>=o&&(w-=(d-1)*h,h=0),w>=o&&S>0&&(b=!0,S*=.9,w=d*S);var _=(o-w)/2>>0,x={offset:_-h,size:0};v=s.reduce(function(N,A){var C={item:A.item,position:{offset:x.offset+x.size+h,size:b?S:A.barSize}},M=[].concat(KE(N),[C]);return x=M[M.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(D){M.push({item:D,position:x})}),M},m)}else{var j=Kt(r,o,0,!0);o-2*j-(d-1)*h<=0&&(h=0);var E=(o-2*j-(d-1)*h)/d;E>1&&(E>>=0);var T=f===+f?Math.min(E,f):E;v=s.reduce(function(N,A,C){var M=[].concat(KE(N),[{item:A.item,position:{offset:j+(E+h)*C+(E-T)/2,size:T}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(D){M.push({item:D,position:M[M.length-1].position})}),M},m)}return v},hU=function(t,n,r,o){var l=r.children,s=r.width,f=r.margin,d=s-(f.left||0)-(f.right||0),h=j3({children:l,legendWidth:d});if(h){var v=o||{},m=v.width,b=v.height,S=h.align,w=h.verticalAlign,_=h.layout;if((_==="vertical"||_==="horizontal"&&w==="middle")&&S!=="center"&&fe(t[S]))return pt(pt({},t),{},bo({},S,t[S]+(m||0)));if((_==="horizontal"||_==="vertical"&&S==="center")&&w!=="middle"&&fe(t[w]))return pt(pt({},t),{},bo({},w,t[w]+(b||0)))}return t},pU=function(t,n,r){return Ae(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},E3=function(t,n,r,o,l){var s=n.props.children,f=$n(s,_d).filter(function(h){return pU(o,l,h.props.direction)});if(f&&f.length){var d=f.map(function(h){return h.props.dataKey});return t.reduce(function(h,v){var m=jt(v,r);if(Ae(m))return h;var b=Array.isArray(m)?[bd(m),Oa(m)]:[m,m],S=d.reduce(function(w,_){var x=jt(v,_,0),j=b[0]-Math.abs(Array.isArray(x)?x[0]:x),E=b[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(j,w[0]),Math.max(E,w[1])]},[1/0,-1/0]);return[Math.min(S[0],h[0]),Math.max(S[1],h[1])]},[1/0,-1/0])}return null},mU=function(t,n,r,o,l){var s=n.map(function(f){return E3(t,f,r,l,o)}).filter(function(f){return!Ae(f)});return s&&s.length?s.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]):null},T3=function(t,n,r,o,l){var s=n.map(function(d){var h=d.props.dataKey;return r==="number"&&h&&E3(t,d,h,o)||yu(t,h,r,l)});if(r==="number")return s.reduce(function(d,h){return[Math.min(d[0],h[0]),Math.max(d[1],h[1])]},[1/0,-1/0]);var f={};return s.reduce(function(d,h){for(var v=0,m=h.length;v<m;v++)f[h[v]]||(f[h[v]]=!0,d.push(h[v]));return d},[])},N3=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},ui=function(t,n,r){if(!t)return null;var o=t.scale,l=t.duplicateDomain,s=t.type,f=t.range,d=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,h=(n||r)&&s==="category"&&o.bandwidth?o.bandwidth()/d:0;if(h=t.axisType==="angleAxis"&&(f==null?void 0:f.length)>=2?Yt(f[0]-f[1])*2*h:h,n&&(t.ticks||t.niceTicks)){var v=(t.ticks||t.niceTicks).map(function(m){var b=l?l.indexOf(m):m;return{coordinate:o(b)+h,value:m,offset:h}});return v.filter(function(m){return!Qo(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,b){return{coordinate:o(m)+h,value:m,index:b,offset:h}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(m){return{coordinate:o(m)+h,value:m,offset:h}}):o.domain().map(function(m,b){return{coordinate:o(m)+h,value:l?l[m]:m,index:b,offset:h}})},Ng=new WeakMap,qc=function(t,n){if(typeof n!="function")return t;Ng.has(t)||Ng.set(t,new WeakMap);var r=Ng.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},C3=function(t,n,r){var o=t.scale,l=t.type,s=t.layout,f=t.axisType;if(o==="auto")return s==="radial"&&f==="radiusAxis"?{scale:Nu(),realScaleType:"band"}:s==="radial"&&f==="angleAxis"?{scale:mf(),realScaleType:"linear"}:l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:vu(),realScaleType:"point"}:l==="category"?{scale:Nu(),realScaleType:"band"}:{scale:mf(),realScaleType:"linear"};if(pi(o)){var d="scale".concat(ad(o));return{scale:(RE[d]||vu)(),realScaleType:RE[d]?d:"point"}}return _e(o)?{scale:o}:{scale:vu(),realScaleType:"point"}},VE=1e-4,M3=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),l=Math.min(o[0],o[1])-VE,s=Math.max(o[0],o[1])+VE,f=t(n[0]),d=t(n[r-1]);(f<l||f>s||d<l||d>s)&&t.domain([n[0],n[r-1]])}},vU=function(t,n){if(!t)return null;for(var r=0,o=t.length;r<o;r++)if(t[r].item===n)return t[r].position;return null},yU=function(t,n){if(!n||n.length!==2||!fe(n[0])||!fe(n[1]))return t;var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),l=[t[0],t[1]];return(!fe(t[0])||t[0]<r)&&(l[0]=r),(!fe(t[1])||t[1]>o)&&(l[1]=o),l[0]>o&&(l[0]=o),l[1]<r&&(l[1]=r),l},gU=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var l=0,s=0,f=0;f<n;++f){var d=Qo(t[f][r][1])?t[f][r][0]:t[f][r][1];d>=0?(t[f][r][0]=l,t[f][r][1]=l+d,l=t[f][r][1]):(t[f][r][0]=s,t[f][r][1]=s+d,s=t[f][r][1])}},bU=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var l=0,s=0;s<n;++s){var f=Qo(t[s][r][1])?t[s][r][0]:t[s][r][1];f>=0?(t[s][r][0]=l,t[s][r][1]=l+f,l=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},xU={sign:gU,expand:l$,none:So,silhouette:u$,wiggle:s$,positive:bU},SU=function(t,n,r){var o=n.map(function(f){return f.props.dataKey}),l=xU[r],s=o$().keys(o).value(function(f,d){return+jt(f,d,0)}).order(_0).offset(l);return s(t)},_U=function(t,n,r,o,l,s){if(!t)return null;var f=s?n.reverse():n,d={},h=f.reduce(function(m,b){var S,w=(S=b.type)!==null&&S!==void 0&&S.defaultProps?pt(pt({},b.type.defaultProps),b.props):b.props,_=w.stackId,x=w.hide;if(x)return m;var j=w[r],E=m[j]||{hasStack:!1,stackGroups:{}};if(Et(_)){var T=E.stackGroups[_]||{numericAxisId:r,cateAxisId:o,items:[]};T.items.push(b),E.hasStack=!0,E.stackGroups[_]=T}else E.stackGroups[Jo("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[b]};return pt(pt({},m),{},bo({},j,E))},d),v={};return Object.keys(h).reduce(function(m,b){var S=h[b];if(S.hasStack){var w={};S.stackGroups=Object.keys(S.stackGroups).reduce(function(_,x){var j=S.stackGroups[x];return pt(pt({},_),{},bo({},x,{numericAxisId:r,cateAxisId:o,items:j.items,stackedData:SU(t,j.items,l)}))},w)}return pt(pt({},m),{},bo({},b,S))},v)},R3=function(t,n){var r=n.realScaleType,o=n.type,l=n.tickCount,s=n.originalDomain,f=n.allowDecimals,d=r||n.scale;if(d!=="auto"&&d!=="linear")return null;if(l&&o==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var h=t.domain();if(!h.length)return null;var v=$7(h,l,f);return t.domain([bd(v),Oa(v)]),{niceTicks:v}}if(l&&o==="number"){var m=t.domain(),b=L7(m,l,f);return{niceTicks:b}}return null};function FE(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,l=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ae(o[t.dataKey])){var f=Fc(n,"value",o[t.dataKey]);if(f)return f.coordinate+r/2}return n[l]?n[l].coordinate+r/2:null}var d=jt(o,Ae(s)?t.dataKey:s);return Ae(d)?null:t.scale(d)}var WE=function(t){var n=t.axis,r=t.ticks,o=t.offset,l=t.bandSize,s=t.entry,f=t.index;if(n.type==="category")return r[f]?r[f].coordinate+o:null;var d=jt(s,n.dataKey,n.domain[f]);return Ae(d)?null:n.scale(d)-l/2+o},wU=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),l=Math.max(r[0],r[1]);return o<=0&&l>=0?0:l<0?l:o}return r[0]},OU=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pt(pt({},t.type.defaultProps),t.props):t.props,l=o.stackId;if(Et(l)){var s=n[l];if(s){var f=s.items.indexOf(t);return f>=0?s.stackedData[f]:null}}return null},AU=function(t){return t.reduce(function(n,r){return[bd(r.concat([n[0]]).filter(fe)),Oa(r.concat([n[1]]).filter(fe))]},[1/0,-1/0])},P3=function(t,n,r){return Object.keys(t).reduce(function(o,l){var s=t[l],f=s.stackedData,d=f.reduce(function(h,v){var m=AU(v.slice(n,r+1));return[Math.min(h[0],m[0]),Math.max(h[1],m[1])]},[1/0,-1/0]);return[Math.min(d[0],o[0]),Math.max(d[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},ZE=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,QE=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,X0=function(t,n,r){if(_e(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(fe(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(ZE.test(t[0])){var l=+ZE.exec(t[0])[1];o[0]=n[0]-l}else _e(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(fe(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(QE.test(t[1])){var s=+QE.exec(t[1])[1];o[1]=n[1]+s}else _e(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},_f=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var l=sx(n,function(m){return m.coordinate}),s=1/0,f=1,d=l.length;f<d;f++){var h=l[f],v=l[f-1];s=Math.min((h.coordinate||0)-(v.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},JE=function(t,n,r){return!t||!t.length||No(t,gn(r,"type.defaultProps.domain"))?n:t},D3=function(t,n){var r=t.type.defaultProps?pt(pt({},t.type.defaultProps),t.props):t.props,o=r.dataKey,l=r.name,s=r.unit,f=r.formatter,d=r.tooltipType,h=r.chartType,v=r.hide;return pt(pt({},ye(t,!1)),{},{dataKey:o,unit:s,formatter:f,name:l||o,color:$x(t),value:jt(n,o),type:d,payload:n,chartType:h,hide:v})};function qu(e){"@babel/helpers - typeof";return qu=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},qu(e)}function eT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eT(Object(n),!0).forEach(function(r){k3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k3(e,t,n){return t=jU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jU(e){var t=EU(e,"string");return qu(t)=="symbol"?t:t+""}function EU(e,t){if(qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TU(e,t){return RU(e)||MU(e,t)||CU(e,t)||NU()}function NU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
85
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CU(e,t){if(e){if(typeof e=="string")return tT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tT(e,t)}}function tT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function RU(e){if(Array.isArray(e))return e}var wf=Math.PI/180,PU=function(t){return t*180/Math.PI},nt=function(t,n,r,o){return{x:t+Math.cos(-wf*o)*r,y:n+Math.sin(-wf*o)*r}},$3=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},DU=function(t,n,r,o,l){var s=t.width,f=t.height,d=t.startAngle,h=t.endAngle,v=Kt(t.cx,s,s/2),m=Kt(t.cy,f,f/2),b=$3(s,f,r),S=Kt(t.innerRadius,b,0),w=Kt(t.outerRadius,b,b*.8),_=Object.keys(n);return _.reduce(function(x,j){var E=n[j],T=E.domain,N=E.reversed,A;if(Ae(E.range))o==="angleAxis"?A=[d,h]:o==="radiusAxis"&&(A=[S,w]),N&&(A=[A[1],A[0]]);else{A=E.range;var C=A,M=TU(C,2);d=M[0],h=M[1]}var D=C3(E,l),$=D.realScaleType,B=D.scale;B.domain(T).range(A),M3(B);var I=R3(B,Rr(Rr({},E),{},{realScaleType:$})),q=Rr(Rr(Rr({},E),I),{},{range:A,radius:w,realScaleType:$,scale:B,cx:v,cy:m,innerRadius:S,outerRadius:w,startAngle:d,endAngle:h});return Rr(Rr({},x),{},k3({},j,q))},{})},kU=function(t,n){var r=t.x,o=t.y,l=n.x,s=n.y;return Math.sqrt(Math.pow(r-l,2)+Math.pow(o-s,2))},$U=function(t,n){var r=t.x,o=t.y,l=n.cx,s=n.cy,f=kU({x:r,y:o},{x:l,y:s});if(f<=0)return{radius:f};var d=(r-l)/f,h=Math.acos(d);return o>s&&(h=2*Math.PI-h),{radius:f,angle:PU(h),angleInRadian:h}},LU=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),l=Math.floor(r/360),s=Math.min(o,l);return{startAngle:n-s*360,endAngle:r-s*360}},qU=function(t,n){var r=n.startAngle,o=n.endAngle,l=Math.floor(r/360),s=Math.floor(o/360),f=Math.min(l,s);return t+f*360},nT=function(t,n){var r=t.x,o=t.y,l=$U({x:r,y:o},n),s=l.radius,f=l.angle,d=n.innerRadius,h=n.outerRadius;if(s<d||s>h)return!1;if(s===0)return!0;var v=LU(n),m=v.startAngle,b=v.endAngle,S=f,w;if(m<=b){for(;S>b;)S-=360;for(;S<m;)S+=360;w=S>=m&&S<=b}else{for(;S>m;)S-=360;for(;S<b;)S+=360;w=S>=b&&S<=m}return w?Rr(Rr({},n),{},{radius:s,angle:qU(S,n)}):null},L3=function(t){return!P.isValidElement(t)&&!_e(t)&&typeof t!="boolean"?t.className:""};function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}var BU=["offset"];function zU(e){return GU(e)||HU(e)||IU(e)||UU()}function UU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
86
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IU(e,t){if(e){if(typeof e=="string")return V0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V0(e,t)}}function HU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GU(e){if(Array.isArray(e))return V0(e)}function V0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YU(e,t){if(e==null)return{};var n=KU(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KU(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rT(Object(n),!0).forEach(function(r){XU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XU(e,t,n){return t=VU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VU(e){var t=FU(e,"string");return Bu(t)=="symbol"?t:t+""}function FU(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zu.apply(this,arguments)}var WU=function(t){var n=t.value,r=t.formatter,o=Ae(t.children)?n:t.children;return _e(r)?r(o):o},ZU=function(t,n){var r=Yt(n-t),o=Math.min(Math.abs(n-t),360);return r*o},QU=function(t,n,r){var o=t.position,l=t.viewBox,s=t.offset,f=t.className,d=l,h=d.cx,v=d.cy,m=d.innerRadius,b=d.outerRadius,S=d.startAngle,w=d.endAngle,_=d.clockWise,x=(m+b)/2,j=ZU(S,w),E=j>=0?1:-1,T,N;o==="insideStart"?(T=S+E*s,N=_):o==="insideEnd"?(T=w-E*s,N=!_):o==="end"&&(T=w+E*s,N=_),N=j<=0?N:!N;var A=nt(h,v,x,T),C=nt(h,v,x,T+(N?1:-1)*359),M="M".concat(A.x,",").concat(A.y,`
|
|
87
|
+
A`).concat(x,",").concat(x,",0,1,").concat(N?0:1,`,
|
|
88
|
+
`).concat(C.x,",").concat(C.y),D=Ae(t.id)?Jo("recharts-radial-line-"):t.id;return H.createElement("text",zu({},r,{dominantBaseline:"central",className:Ce("recharts-radial-bar-label",f)}),H.createElement("defs",null,H.createElement("path",{id:D,d:M})),H.createElement("textPath",{xlinkHref:"#".concat(D)},n))},JU=function(t){var n=t.viewBox,r=t.offset,o=t.position,l=n,s=l.cx,f=l.cy,d=l.innerRadius,h=l.outerRadius,v=l.startAngle,m=l.endAngle,b=(v+m)/2;if(o==="outside"){var S=nt(s,f,h+r,b),w=S.x,_=S.y;return{x:w,y:_,textAnchor:w>=s?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:s,y:f,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:s,y:f,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:s,y:f,textAnchor:"middle",verticalAnchor:"end"};var x=(d+h)/2,j=nt(s,f,x,b),E=j.x,T=j.y;return{x:E,y:T,textAnchor:"middle",verticalAnchor:"middle"}},e9=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,l=t.position,s=n,f=s.x,d=s.y,h=s.width,v=s.height,m=v>=0?1:-1,b=m*o,S=m>0?"end":"start",w=m>0?"start":"end",_=h>=0?1:-1,x=_*o,j=_>0?"end":"start",E=_>0?"start":"end";if(l==="top"){var T={x:f+h/2,y:d-m*o,textAnchor:"middle",verticalAnchor:S};return At(At({},T),r?{height:Math.max(d-r.y,0),width:h}:{})}if(l==="bottom"){var N={x:f+h/2,y:d+v+b,textAnchor:"middle",verticalAnchor:w};return At(At({},N),r?{height:Math.max(r.y+r.height-(d+v),0),width:h}:{})}if(l==="left"){var A={x:f-x,y:d+v/2,textAnchor:j,verticalAnchor:"middle"};return At(At({},A),r?{width:Math.max(A.x-r.x,0),height:v}:{})}if(l==="right"){var C={x:f+h+x,y:d+v/2,textAnchor:E,verticalAnchor:"middle"};return At(At({},C),r?{width:Math.max(r.x+r.width-C.x,0),height:v}:{})}var M=r?{width:h,height:v}:{};return l==="insideLeft"?At({x:f+x,y:d+v/2,textAnchor:E,verticalAnchor:"middle"},M):l==="insideRight"?At({x:f+h-x,y:d+v/2,textAnchor:j,verticalAnchor:"middle"},M):l==="insideTop"?At({x:f+h/2,y:d+b,textAnchor:"middle",verticalAnchor:w},M):l==="insideBottom"?At({x:f+h/2,y:d+v-b,textAnchor:"middle",verticalAnchor:S},M):l==="insideTopLeft"?At({x:f+x,y:d+b,textAnchor:E,verticalAnchor:w},M):l==="insideTopRight"?At({x:f+h-x,y:d+b,textAnchor:j,verticalAnchor:w},M):l==="insideBottomLeft"?At({x:f+x,y:d+v-b,textAnchor:E,verticalAnchor:S},M):l==="insideBottomRight"?At({x:f+h-x,y:d+v-b,textAnchor:j,verticalAnchor:S},M):Zo(l)&&(fe(l.x)||ii(l.x))&&(fe(l.y)||ii(l.y))?At({x:f+Kt(l.x,h),y:d+Kt(l.y,v),textAnchor:"end",verticalAnchor:"end"},M):At({x:f+h/2,y:d+v/2,textAnchor:"middle",verticalAnchor:"middle"},M)},t9=function(t){return"cx"in t&&fe(t.cx)};function Rt(e){var t=e.offset,n=t===void 0?5:t,r=YU(e,BU),o=At({offset:n},r),l=o.viewBox,s=o.position,f=o.value,d=o.children,h=o.content,v=o.className,m=v===void 0?"":v,b=o.textBreakAll;if(!l||Ae(f)&&Ae(d)&&!P.isValidElement(h)&&!_e(h))return null;if(P.isValidElement(h))return P.cloneElement(h,o);var S;if(_e(h)){if(S=P.createElement(h,o),P.isValidElement(S))return S}else S=WU(o);var w=t9(l),_=ye(o,!0);if(w&&(s==="insideStart"||s==="insideEnd"||s==="end"))return QU(o,S,_);var x=w?JU(o):e9(o);return H.createElement(vi,zu({className:Ce("recharts-label",m)},_,x,{breakAll:b}),S)}Rt.displayName="Label";var q3=function(t){var n=t.cx,r=t.cy,o=t.angle,l=t.startAngle,s=t.endAngle,f=t.r,d=t.radius,h=t.innerRadius,v=t.outerRadius,m=t.x,b=t.y,S=t.top,w=t.left,_=t.width,x=t.height,j=t.clockWise,E=t.labelViewBox;if(E)return E;if(fe(_)&&fe(x)){if(fe(m)&&fe(b))return{x:m,y:b,width:_,height:x};if(fe(S)&&fe(w))return{x:S,y:w,width:_,height:x}}return fe(m)&&fe(b)?{x:m,y:b,width:0,height:0}:fe(n)&&fe(r)?{cx:n,cy:r,startAngle:l||o||0,endAngle:s||o||0,innerRadius:h||0,outerRadius:v||d||f||0,clockWise:j}:t.viewBox?t.viewBox:{}},n9=function(t,n){return t?t===!0?H.createElement(Rt,{key:"label-implicit",viewBox:n}):Et(t)?H.createElement(Rt,{key:"label-implicit",viewBox:n,value:t}):P.isValidElement(t)?t.type===Rt?P.cloneElement(t,{key:"label-implicit",viewBox:n}):H.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):_e(t)?H.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):Zo(t)?H.createElement(Rt,zu({viewBox:n},t,{key:"label-implicit"})):null:null},r9=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var o=t.children,l=q3(t),s=$n(o,Rt).map(function(d,h){return P.cloneElement(d,{viewBox:n||l,key:"label-".concat(h)})});if(!r)return s;var f=n9(t.label,n||l);return[f].concat(zU(s))};Rt.parseViewBox=q3;Rt.renderCallByParent=r9;var Cg,aT;function a9(){if(aT)return Cg;aT=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Cg=e,Cg}var i9=a9();const o9=Ze(i9);function Uu(e){"@babel/helpers - typeof";return Uu=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},Uu(e)}var l9=["valueAccessor"],u9=["data","dataKey","clockWise","id","textBreakAll"];function s9(e){return h9(e)||d9(e)||f9(e)||c9()}function c9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f9(e,t){if(e){if(typeof e=="string")return F0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F0(e,t)}}function d9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function h9(e){if(Array.isArray(e))return F0(e)}function F0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Of(){return Of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Of.apply(this,arguments)}function iT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iT(Object(n),!0).forEach(function(r){p9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p9(e,t,n){return t=m9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m9(e){var t=v9(e,"string");return Uu(t)=="symbol"?t:t+""}function v9(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lT(e,t){if(e==null)return{};var n=y9(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var g9=function(t){return Array.isArray(t.value)?o9(t.value):t.value};function zr(e){var t=e.valueAccessor,n=t===void 0?g9:t,r=lT(e,l9),o=r.data,l=r.dataKey,s=r.clockWise,f=r.id,d=r.textBreakAll,h=lT(r,u9);return!o||!o.length?null:H.createElement(Le,{className:"recharts-label-list"},o.map(function(v,m){var b=Ae(l)?n(v,m):jt(v&&v.payload,l),S=Ae(f)?{}:{id:"".concat(f,"-").concat(m)};return H.createElement(Rt,Of({},ye(v,!0),h,S,{parentViewBox:v.parentViewBox,value:b,textBreakAll:d,viewBox:Rt.parseViewBox(Ae(s)?v:oT(oT({},v),{},{clockWise:s})),key:"label-".concat(m),index:m}))}))}zr.displayName="LabelList";function b9(e,t){return e?e===!0?H.createElement(zr,{key:"labelList-implicit",data:t}):H.isValidElement(e)||_e(e)?H.createElement(zr,{key:"labelList-implicit",data:t,content:e}):Zo(e)?H.createElement(zr,Of({data:t},e,{key:"labelList-implicit"})):null:null}function x9(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=$n(r,zr).map(function(s,f){return P.cloneElement(s,{data:t,key:"labelList-".concat(f)})});if(!n)return o;var l=b9(e.label,t);return[l].concat(s9(o))}zr.renderCallByParent=x9;function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W0.apply(this,arguments)}function uT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uT(Object(n),!0).forEach(function(r){S9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S9(e,t,n){return t=_9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _9(e){var t=w9(e,"string");return Iu(t)=="symbol"?t:t+""}function w9(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O9=function(t,n){var r=Yt(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},Bc=function(t){var n=t.cx,r=t.cy,o=t.radius,l=t.angle,s=t.sign,f=t.isExternal,d=t.cornerRadius,h=t.cornerIsExternal,v=d*(f?1:-1)+o,m=Math.asin(d/v)/wf,b=h?l:l+s*m,S=nt(n,r,v,b),w=nt(n,r,o,b),_=h?l-s*m:l,x=nt(n,r,v*Math.cos(m*wf),_);return{center:S,circleTangency:w,lineTangency:x,theta:m}},B3=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,l=t.outerRadius,s=t.startAngle,f=t.endAngle,d=O9(s,f),h=s+d,v=nt(n,r,l,s),m=nt(n,r,l,h),b="M ".concat(v.x,",").concat(v.y,`
|
|
90
|
+
A `).concat(l,",").concat(l,`,0,
|
|
91
|
+
`).concat(+(Math.abs(d)>180),",").concat(+(s>h),`,
|
|
92
|
+
`).concat(m.x,",").concat(m.y,`
|
|
93
|
+
`);if(o>0){var S=nt(n,r,o,s),w=nt(n,r,o,h);b+="L ".concat(w.x,",").concat(w.y,`
|
|
94
|
+
A `).concat(o,",").concat(o,`,0,
|
|
95
|
+
`).concat(+(Math.abs(d)>180),",").concat(+(s<=h),`,
|
|
96
|
+
`).concat(S.x,",").concat(S.y," Z")}else b+="L ".concat(n,",").concat(r," Z");return b},A9=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,l=t.outerRadius,s=t.cornerRadius,f=t.forceCornerRadius,d=t.cornerIsExternal,h=t.startAngle,v=t.endAngle,m=Yt(v-h),b=Bc({cx:n,cy:r,radius:l,angle:h,sign:m,cornerRadius:s,cornerIsExternal:d}),S=b.circleTangency,w=b.lineTangency,_=b.theta,x=Bc({cx:n,cy:r,radius:l,angle:v,sign:-m,cornerRadius:s,cornerIsExternal:d}),j=x.circleTangency,E=x.lineTangency,T=x.theta,N=d?Math.abs(h-v):Math.abs(h-v)-_-T;if(N<0)return f?"M ".concat(w.x,",").concat(w.y,`
|
|
97
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
98
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
99
|
+
`):B3({cx:n,cy:r,innerRadius:o,outerRadius:l,startAngle:h,endAngle:v});var A="M ".concat(w.x,",").concat(w.y,`
|
|
100
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(m<0),",").concat(S.x,",").concat(S.y,`
|
|
101
|
+
A`).concat(l,",").concat(l,",0,").concat(+(N>180),",").concat(+(m<0),",").concat(j.x,",").concat(j.y,`
|
|
102
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(m<0),",").concat(E.x,",").concat(E.y,`
|
|
103
|
+
`);if(o>0){var C=Bc({cx:n,cy:r,radius:o,angle:h,sign:m,isExternal:!0,cornerRadius:s,cornerIsExternal:d}),M=C.circleTangency,D=C.lineTangency,$=C.theta,B=Bc({cx:n,cy:r,radius:o,angle:v,sign:-m,isExternal:!0,cornerRadius:s,cornerIsExternal:d}),I=B.circleTangency,q=B.lineTangency,Y=B.theta,K=d?Math.abs(h-v):Math.abs(h-v)-$-Y;if(K<0&&s===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(q.x,",").concat(q.y,`
|
|
104
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(m<0),",").concat(I.x,",").concat(I.y,`
|
|
105
|
+
A`).concat(o,",").concat(o,",0,").concat(+(K>180),",").concat(+(m>0),",").concat(M.x,",").concat(M.y,`
|
|
106
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(m<0),",").concat(D.x,",").concat(D.y,"Z")}else A+="L".concat(n,",").concat(r,"Z");return A},j9={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},z3=function(t){var n=sT(sT({},j9),t),r=n.cx,o=n.cy,l=n.innerRadius,s=n.outerRadius,f=n.cornerRadius,d=n.forceCornerRadius,h=n.cornerIsExternal,v=n.startAngle,m=n.endAngle,b=n.className;if(s<l||v===m)return null;var S=Ce("recharts-sector",b),w=s-l,_=Kt(f,w,0,!0),x;return _>0&&Math.abs(v-m)<360?x=A9({cx:r,cy:o,innerRadius:l,outerRadius:s,cornerRadius:Math.min(_,w/2),forceCornerRadius:d,cornerIsExternal:h,startAngle:v,endAngle:m}):x=B3({cx:r,cy:o,innerRadius:l,outerRadius:s,startAngle:v,endAngle:m}),H.createElement("path",W0({},ye(n,!0),{className:S,d:x,role:"img"}))};function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z0.apply(this,arguments)}function cT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cT(Object(n),!0).forEach(function(r){E9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E9(e,t,n){return t=T9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T9(e){var t=N9(e,"string");return Hu(t)=="symbol"?t:t+""}function N9(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dT={curveBasisClosed:Fk,curveBasisOpen:Wk,curveBasis:Vk,curveBumpX:Dk,curveBumpY:kk,curveLinearClosed:Zk,curveLinear:od,curveMonotoneX:Qk,curveMonotoneY:Jk,curveNatural:e$,curveStep:t$,curveStepAfter:r$,curveStepBefore:n$},zc=function(t){return t.x===+t.x&&t.y===+t.y},uu=function(t){return t.x},su=function(t){return t.y},C9=function(t,n){if(_e(t))return t;var r="curve".concat(ad(t));return(r==="curveMonotone"||r==="curveBump")&&n?dT["".concat(r).concat(n==="vertical"?"Y":"X")]:dT[r]||od},M9=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,l=o===void 0?[]:o,s=t.baseLine,f=t.layout,d=t.connectNulls,h=d===void 0?!1:d,v=C9(r,f),m=h?l.filter(function(_){return zc(_)}):l,b;if(Array.isArray(s)){var S=h?s.filter(function(_){return zc(_)}):s,w=m.map(function(_,x){return fT(fT({},_),{},{base:S[x]})});return f==="vertical"?b=Mc().y(su).x1(uu).x0(function(_){return _.base.x}):b=Mc().x(uu).y1(su).y0(function(_){return _.base.y}),b.defined(zc).curve(v),b(w)}return f==="vertical"&&fe(s)?b=Mc().y(su).x1(uu).x0(s):fe(s)?b=Mc().x(uu).y1(su).y0(s):b=zC().x(uu).y(su),b.defined(zc).curve(v),b(m)},xo=function(t){var n=t.className,r=t.points,o=t.path,l=t.pathRef;if((!r||!r.length)&&!o)return null;var s=r&&r.length?M9(t):o;return P.createElement("path",Z0({},ye(t,!1),Wc(t),{className:Ce("recharts-curve",n),d:s,ref:l}))},Mg={exports:{}},Rg,hT;function R9(){if(hT)return Rg;hT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rg=e,Rg}var Pg,pT;function P9(){if(pT)return Pg;pT=1;var e=R9();function t(){}function n(){}return n.resetWarningCache=t,Pg=function(){function r(s,f,d,h,v,m){if(m!==e){var b=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 b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},Pg}var mT;function D9(){return mT||(mT=1,Mg.exports=P9()()),Mg.exports}var k9=D9();const Ge=Ze(k9),{getOwnPropertyNames:$9,getOwnPropertySymbols:L9}=Object,{hasOwnProperty:q9}=Object.prototype;function Dg(e,t){return function(r,o,l){return e(r,o,l)&&t(r,o,l)}}function Uc(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);const{cache:l}=o,s=l.get(n),f=l.get(r);if(s&&f)return s===r&&f===n;l.set(n,r),l.set(r,n);const d=e(n,r,o);return l.delete(n),l.delete(r),d}}function B9(e){return e!=null?e[Symbol.toStringTag]:void 0}function vT(e){return $9(e).concat(L9(e))}const z9=Object.hasOwn||((e,t)=>q9.call(e,t));function wi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const U9="__v",I9="__o",H9="_owner",{getOwnPropertyDescriptor:yT,keys:gT}=Object;function G9(e,t){return e.byteLength===t.byteLength&&Af(new Uint8Array(e),new Uint8Array(t))}function Y9(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function K9(e,t){return e.byteLength===t.byteLength&&Af(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function X9(e,t){return wi(e.getTime(),t.getTime())}function V9(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function F9(e,t){return e===t}function bT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),l=e.entries();let s,f,d=0;for(;(s=l.next())&&!s.done;){const h=t.entries();let v=!1,m=0;for(;(f=h.next())&&!f.done;){if(o[m]){m++;continue}const b=s.value,S=f.value;if(n.equals(b[0],S[0],d,m,e,t,n)&&n.equals(b[1],S[1],b[0],S[0],e,t,n)){v=o[m]=!0;break}m++}if(!v)return!1;d++}return!0}const W9=wi;function Z9(e,t,n){const r=gT(e);let o=r.length;if(gT(t).length!==o)return!1;for(;o-- >0;)if(!U3(e,t,n,r[o]))return!1;return!0}function cu(e,t,n){const r=vT(e);let o=r.length;if(vT(t).length!==o)return!1;let l,s,f;for(;o-- >0;)if(l=r[o],!U3(e,t,n,l)||(s=yT(e,l),f=yT(t,l),(s||f)&&(!s||!f||s.configurable!==f.configurable||s.enumerable!==f.enumerable||s.writable!==f.writable)))return!1;return!0}function Q9(e,t){return wi(e.valueOf(),t.valueOf())}function J9(e,t){return e.source===t.source&&e.flags===t.flags}function xT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),l=e.values();let s,f;for(;(s=l.next())&&!s.done;){const d=t.values();let h=!1,v=0;for(;(f=d.next())&&!f.done;){if(!o[v]&&n.equals(s.value,f.value,s.value,f.value,e,t,n)){h=o[v]=!0;break}v++}if(!h)return!1}return!0}function Af(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function eI(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 U3(e,t,n,r){return(r===H9||r===I9||r===U9)&&(e.$$typeof||t.$$typeof)?!0:z9(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const tI="[object ArrayBuffer]",nI="[object Arguments]",rI="[object Boolean]",aI="[object DataView]",iI="[object Date]",oI="[object Error]",lI="[object Map]",uI="[object Number]",sI="[object Object]",cI="[object RegExp]",fI="[object Set]",dI="[object String]",hI={"[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},pI="[object URL]",mI=Object.prototype.toString;function vI({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:l,areMapsEqual:s,areNumbersEqual:f,areObjectsEqual:d,arePrimitiveWrappersEqual:h,areRegExpsEqual:v,areSetsEqual:m,areTypedArraysEqual:b,areUrlsEqual:S,unknownTagComparators:w}){return function(x,j,E){if(x===j)return!0;if(x==null||j==null)return!1;const T=typeof x;if(T!==typeof j)return!1;if(T!=="object")return T==="number"?f(x,j,E):T==="function"?l(x,j,E):!1;const N=x.constructor;if(N!==j.constructor)return!1;if(N===Object)return d(x,j,E);if(Array.isArray(x))return t(x,j,E);if(N===Date)return r(x,j,E);if(N===RegExp)return v(x,j,E);if(N===Map)return s(x,j,E);if(N===Set)return m(x,j,E);const A=mI.call(x);if(A===iI)return r(x,j,E);if(A===cI)return v(x,j,E);if(A===lI)return s(x,j,E);if(A===fI)return m(x,j,E);if(A===sI)return typeof x.then!="function"&&typeof j.then!="function"&&d(x,j,E);if(A===pI)return S(x,j,E);if(A===oI)return o(x,j,E);if(A===nI)return d(x,j,E);if(hI[A])return b(x,j,E);if(A===tI)return e(x,j,E);if(A===aI)return n(x,j,E);if(A===rI||A===uI||A===dI)return h(x,j,E);if(w){let C=w[A];if(!C){const M=B9(x);M&&(C=w[M])}if(C)return C(x,j,E)}return!1}}function yI({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:G9,areArraysEqual:n?cu:Y9,areDataViewsEqual:K9,areDatesEqual:X9,areErrorsEqual:V9,areFunctionsEqual:F9,areMapsEqual:n?Dg(bT,cu):bT,areNumbersEqual:W9,areObjectsEqual:n?cu:Z9,arePrimitiveWrappersEqual:Q9,areRegExpsEqual:J9,areSetsEqual:n?Dg(xT,cu):xT,areTypedArraysEqual:n?Dg(Af,cu):Af,areUrlsEqual:eI,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const o=Uc(r.areArraysEqual),l=Uc(r.areMapsEqual),s=Uc(r.areObjectsEqual),f=Uc(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:o,areMapsEqual:l,areObjectsEqual:s,areSetsEqual:f})}return r}function gI(e){return function(t,n,r,o,l,s,f){return e(t,n,f)}}function bI({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(f,d){const{cache:h=e?new WeakMap:void 0,meta:v}=n();return t(f,d,{cache:h,equals:r,meta:v,strict:o})};if(e)return function(f,d){return t(f,d,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};const l={cache:void 0,equals:r,meta:void 0,strict:o};return function(f,d){return t(f,d,l)}}const xI=Pa();Pa({strict:!0});Pa({circular:!0});Pa({circular:!0,strict:!0});Pa({createInternalComparator:()=>wi});Pa({strict:!0,createInternalComparator:()=>wi});Pa({circular:!0,createInternalComparator:()=>wi});Pa({circular:!0,createInternalComparator:()=>wi,strict:!0});function Pa(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,l=yI(e),s=vI(l),f=n?n(s):gI(s);return bI({circular:t,comparator:s,createState:r,equals:f,strict:o})}function SI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function ST(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(l){n<0&&(n=l),l-n>t?(e(l),n=-1):SI(o)};requestAnimationFrame(r)}function Q0(e){"@babel/helpers - typeof";return Q0=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},Q0(e)}function _I(e){return jI(e)||AI(e)||OI(e)||wI()}function wI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
107
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OI(e,t){if(e){if(typeof e=="string")return _T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _T(e,t)}}function _T(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jI(e){if(Array.isArray(e))return e}function EI(){var e={},t=function(){return null},n=!1,r=function o(l){if(!n){if(Array.isArray(l)){if(!l.length)return;var s=l,f=_I(s),d=f[0],h=f.slice(1);if(typeof d=="number"){ST(o.bind(null,h),d);return}o(d),ST(o.bind(null,h));return}Q0(l)==="object"&&(e=l,t(e)),typeof l=="function"&&l()}};return{stop:function(){n=!0},start:function(l){n=!1,r(l)},subscribe:function(l){return t=l,function(){t=function(){return null}}}}}function Gu(e){"@babel/helpers - typeof";return Gu=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},Gu(e)}function wT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wT(Object(n),!0).forEach(function(r){I3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I3(e,t,n){return t=TI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TI(e){var t=NI(e,"string");return Gu(t)==="symbol"?t:String(t)}function NI(e,t){if(Gu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CI=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(l){return o.includes(l)})})},MI=function(t){return t},RI=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},gu=function(t,n){return Object.keys(n).reduce(function(r,o){return OT(OT({},r),{},I3({},o,t(o,n[o])))},{})},AT=function(t,n,r){return t.map(function(o){return"".concat(RI(o)," ").concat(n,"ms ").concat(r)}).join(",")};function PI(e,t){return $I(e)||kI(e,t)||H3(e,t)||DI()}function DI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
108
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function $I(e){if(Array.isArray(e))return e}function LI(e){return zI(e)||BI(e)||H3(e)||qI()}function qI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
109
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H3(e,t){if(e){if(typeof e=="string")return J0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J0(e,t)}}function BI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zI(e){if(Array.isArray(e))return J0(e)}function J0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jf=1e-4,G3=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Y3=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},jT=function(t,n){return function(r){var o=G3(t,n);return Y3(o,r)}},UI=function(t,n){return function(r){var o=G3(t,n),l=[].concat(LI(o.map(function(s,f){return s*f}).slice(1)),[0]);return Y3(l,r)}},ET=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],l=n[1],s=n[2],f=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,l=0,s=1,f=1;break;case"ease":o=.25,l=.1,s=.25,f=1;break;case"ease-in":o=.42,l=0,s=1,f=1;break;case"ease-out":o=.42,l=0,s=.58,f=1;break;case"ease-in-out":o=0,l=0,s=.58,f=1;break;default:{var d=n[0].split("(");if(d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4){var h=d[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),v=PI(h,4);o=v[0],l=v[1],s=v[2],f=v[3]}}}var m=jT(o,s),b=jT(l,f),S=UI(o,s),w=function(j){return j>1?1:j<0?0:j},_=function(j){for(var E=j>1?1:j,T=E,N=0;N<8;++N){var A=m(T)-E,C=S(T);if(Math.abs(A-E)<jf||C<jf)return b(T);T=w(T-A/C)}return b(T)};return _.isStepper=!1,_},II=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,l=o===void 0?8:o,s=t.dt,f=s===void 0?17:s,d=function(v,m,b){var S=-(v-m)*r,w=b*l,_=b+(S-w)*f/1e3,x=b*f/1e3+v;return Math.abs(x-m)<jf&&Math.abs(_)<jf?[m,0]:[x,_]};return d.isStepper=!0,d.dt=f,d},HI=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ET(o);case"spring":return II();default:if(o.split("(")[0]==="cubic-bezier")return ET(o)}return typeof o=="function"?o:null};function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function TT(e){return KI(e)||YI(e)||K3(e)||GI()}function GI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
110
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KI(e){if(Array.isArray(e))return tb(e)}function NT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NT(Object(n),!0).forEach(function(r){eb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eb(e,t,n){return t=XI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XI(e){var t=VI(e,"string");return Yu(t)==="symbol"?t:String(t)}function VI(e,t){if(Yu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FI(e,t){return QI(e)||ZI(e,t)||K3(e,t)||WI()}function WI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
111
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K3(e,t){if(e){if(typeof e=="string")return tb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tb(e,t)}}function tb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function QI(e){if(Array.isArray(e))return e}var Ef=function(t,n,r){return t+(n-t)*r},nb=function(t){var n=t.from,r=t.to;return n!==r},JI=function e(t,n,r){var o=gu(function(l,s){if(nb(s)){var f=t(s.from,s.to,s.velocity),d=FI(f,2),h=d[0],v=d[1];return Bt(Bt({},s),{},{from:h,velocity:v})}return s},n);return r<1?gu(function(l,s){return nb(s)?Bt(Bt({},s),{},{velocity:Ef(s.velocity,o[l].velocity,r),from:Ef(s.from,o[l].from,r)}):s},n):e(t,o,r-1)};const eH=(function(e,t,n,r,o){var l=CI(e,t),s=l.reduce(function(x,j){return Bt(Bt({},x),{},eb({},j,[e[j],t[j]]))},{}),f=l.reduce(function(x,j){return Bt(Bt({},x),{},eb({},j,{from:e[j],velocity:0,to:t[j]}))},{}),d=-1,h,v,m=function(){return null},b=function(){return gu(function(j,E){return E.from},f)},S=function(){return!Object.values(f).filter(nb).length},w=function(j){h||(h=j);var E=j-h,T=E/n.dt;f=JI(n,f,T),o(Bt(Bt(Bt({},e),t),b())),h=j,S()||(d=requestAnimationFrame(m))},_=function(j){v||(v=j);var E=(j-v)/r,T=gu(function(A,C){return Ef.apply(void 0,TT(C).concat([n(E)]))},s);if(o(Bt(Bt(Bt({},e),t),T)),E<1)d=requestAnimationFrame(m);else{var N=gu(function(A,C){return Ef.apply(void 0,TT(C).concat([n(1)]))},s);o(Bt(Bt(Bt({},e),t),N))}};return m=n.isStepper?w:_,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(d)}}});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)}var tH=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function nH(e,t){if(e==null)return{};var n=rH(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rH(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,l;for(l=0;l<r.length;l++)o=r[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function kg(e){return lH(e)||oH(e)||iH(e)||aH()}function aH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
112
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iH(e,t){if(e){if(typeof e=="string")return rb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rb(e,t)}}function oH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lH(e){if(Array.isArray(e))return rb(e)}function rb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CT(Object(n),!0).forEach(function(r){pu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pu(e,t,n){return t=X3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X3(r.key),r)}}function cH(e,t,n){return t&&sH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X3(e){var t=fH(e,"string");return Mo(t)==="symbol"?t:String(t)}function fH(e,t){if(Mo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dH(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&&ab(e,t)}function ab(e,t){return ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ab(e,t)}function hH(e){var t=pH();return function(){var r=Tf(e),o;if(t){var l=Tf(this).constructor;o=Reflect.construct(r,arguments,l)}else o=r.apply(this,arguments);return ib(this,o)}}function ib(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 ob(e)}function ob(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pH(){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 Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}var sr=(function(e){dH(n,e);var t=hH(n);function n(r,o){var l;uH(this,n),l=t.call(this,r,o);var s=l.props,f=s.isActive,d=s.attributeName,h=s.from,v=s.to,m=s.steps,b=s.children,S=s.duration;if(l.handleStyleChange=l.handleStyleChange.bind(ob(l)),l.changeStyle=l.changeStyle.bind(ob(l)),!f||S<=0)return l.state={style:{}},typeof b=="function"&&(l.state={style:v}),ib(l);if(m&&m.length)l.state={style:m[0].style};else if(h){if(typeof b=="function")return l.state={style:h},ib(l);l.state={style:d?pu({},d,h):h}}else l.state={style:{}};return l}return cH(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.isActive,s=o.canBegin;this.mounted=!0,!(!l||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var l=this.props,s=l.isActive,f=l.canBegin,d=l.attributeName,h=l.shouldReAnimate,v=l.to,m=l.from,b=this.state.style;if(f){if(!s){var S={style:d?pu({},d,v):v};this.state&&b&&(d&&b[d]!==v||!d&&b!==v)&&this.setState(S);return}if(!(xI(o.to,v)&&o.canBegin&&o.isActive)){var w=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var _=w||h?m:o.to;if(this.state&&b){var x={style:d?pu({},d,_):_};(d&&b[d]!==_||!d&&b!==_)&&this.setState(x)}this.runAnimation(Yn(Yn({},this.props),{},{from:_,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var l=this,s=o.from,f=o.to,d=o.duration,h=o.easing,v=o.begin,m=o.onAnimationEnd,b=o.onAnimationStart,S=eH(s,f,HI(h),d,this.changeStyle),w=function(){l.stopJSAnimation=S()};this.manager.start([b,v,w,d,m])}},{key:"runStepAnimation",value:function(o){var l=this,s=o.steps,f=o.begin,d=o.onAnimationStart,h=s[0],v=h.style,m=h.duration,b=m===void 0?0:m,S=function(_,x,j){if(j===0)return _;var E=x.duration,T=x.easing,N=T===void 0?"ease":T,A=x.style,C=x.properties,M=x.onAnimationEnd,D=j>0?s[j-1]:x,$=C||Object.keys(A);if(typeof N=="function"||N==="spring")return[].concat(kg(_),[l.runJSAnimation.bind(l,{from:D.style,to:A,duration:E,easing:N}),E]);var B=AT($,E,N),I=Yn(Yn(Yn({},D.style),A),{},{transition:B});return[].concat(kg(_),[I,E,M]).filter(MI)};return this.manager.start([d].concat(kg(s.reduce(S,[v,Math.max(b,f)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=EI());var l=o.begin,s=o.duration,f=o.attributeName,d=o.to,h=o.easing,v=o.onAnimationStart,m=o.onAnimationEnd,b=o.steps,S=o.children,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof h=="function"||typeof S=="function"||h==="spring"){this.runJSAnimation(o);return}if(b.length>1){this.runStepAnimation(o);return}var _=f?pu({},f,d):d,x=AT(Object.keys(_),s,h);w.start([v,l,Yn(Yn({},_),{},{transition:x}),s,m])}},{key:"render",value:function(){var o=this.props,l=o.children;o.begin;var s=o.duration;o.attributeName,o.easing;var f=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var d=nH(o,tH),h=P.Children.count(l),v=this.state.style;if(typeof l=="function")return l(v);if(!f||h===0||s<=0)return l;var m=function(S){var w=S.props,_=w.style,x=_===void 0?{}:_,j=w.className,E=P.cloneElement(S,Yn(Yn({},d),{},{style:Yn(Yn({},x),v),className:j}));return E};return h===1?m(P.Children.only(l)):H.createElement("div",null,P.Children.map(l,function(b){return m(b)}))}}]),n})(P.PureComponent);sr.displayName="Animate";sr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};sr.propTypes={from:Ge.oneOfType([Ge.object,Ge.string]),to:Ge.oneOfType([Ge.object,Ge.string]),attributeName:Ge.string,duration:Ge.number,begin:Ge.number,easing:Ge.oneOfType([Ge.string,Ge.func]),steps:Ge.arrayOf(Ge.shape({duration:Ge.number.isRequired,style:Ge.object.isRequired,easing:Ge.oneOfType([Ge.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ge.func]),properties:Ge.arrayOf("string"),onAnimationEnd:Ge.func})),children:Ge.oneOfType([Ge.node,Ge.func]),isActive:Ge.bool,canBegin:Ge.bool,onAnimationEnd:Ge.func,shouldReAnimate:Ge.bool,onAnimationStart:Ge.func,onAnimationReStart:Ge.func};function Ku(e){"@babel/helpers - typeof";return Ku=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},Ku(e)}function Nf(){return Nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nf.apply(this,arguments)}function mH(e,t){return bH(e)||gH(e,t)||yH(e,t)||vH()}function vH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
113
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yH(e,t){if(e){if(typeof e=="string")return MT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MT(e,t)}}function MT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function bH(e){if(Array.isArray(e))return e}function RT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function PT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RT(Object(n),!0).forEach(function(r){xH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xH(e,t,n){return t=SH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SH(e){var t=_H(e,"string");return Ku(t)=="symbol"?t:t+""}function _H(e,t){if(Ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DT=function(t,n,r,o,l){var s=Math.min(Math.abs(r)/2,Math.abs(o)/2),f=o>=0?1:-1,d=r>=0?1:-1,h=o>=0&&r>=0||o<0&&r<0?1:0,v;if(s>0&&l instanceof Array){for(var m=[0,0,0,0],b=0,S=4;b<S;b++)m[b]=l[b]>s?s:l[b];v="M".concat(t,",").concat(n+f*m[0]),m[0]>0&&(v+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(h,",").concat(t+d*m[0],",").concat(n)),v+="L ".concat(t+r-d*m[1],",").concat(n),m[1]>0&&(v+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(h,`,
|
|
114
|
+
`).concat(t+r,",").concat(n+f*m[1])),v+="L ".concat(t+r,",").concat(n+o-f*m[2]),m[2]>0&&(v+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(h,`,
|
|
115
|
+
`).concat(t+r-d*m[2],",").concat(n+o)),v+="L ".concat(t+d*m[3],",").concat(n+o),m[3]>0&&(v+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(h,`,
|
|
116
|
+
`).concat(t,",").concat(n+o-f*m[3])),v+="Z"}else if(s>0&&l===+l&&l>0){var w=Math.min(s,l);v="M ".concat(t,",").concat(n+f*w,`
|
|
117
|
+
A `).concat(w,",").concat(w,",0,0,").concat(h,",").concat(t+d*w,",").concat(n,`
|
|
118
|
+
L `).concat(t+r-d*w,",").concat(n,`
|
|
119
|
+
A `).concat(w,",").concat(w,",0,0,").concat(h,",").concat(t+r,",").concat(n+f*w,`
|
|
120
|
+
L `).concat(t+r,",").concat(n+o-f*w,`
|
|
121
|
+
A `).concat(w,",").concat(w,",0,0,").concat(h,",").concat(t+r-d*w,",").concat(n+o,`
|
|
122
|
+
L `).concat(t+d*w,",").concat(n+o,`
|
|
123
|
+
A `).concat(w,",").concat(w,",0,0,").concat(h,",").concat(t,",").concat(n+o-f*w," Z")}else v="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return v},wH=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,l=n.x,s=n.y,f=n.width,d=n.height;if(Math.abs(f)>0&&Math.abs(d)>0){var h=Math.min(l,l+f),v=Math.max(l,l+f),m=Math.min(s,s+d),b=Math.max(s,s+d);return r>=h&&r<=v&&o>=m&&o<=b}return!1},OH={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Lx=function(t){var n=PT(PT({},OH),t),r=P.useRef(),o=P.useState(-1),l=mH(o,2),s=l[0],f=l[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var N=r.current.getTotalLength();N&&f(N)}catch{}},[]);var d=n.x,h=n.y,v=n.width,m=n.height,b=n.radius,S=n.className,w=n.animationEasing,_=n.animationDuration,x=n.animationBegin,j=n.isAnimationActive,E=n.isUpdateAnimationActive;if(d!==+d||h!==+h||v!==+v||m!==+m||v===0||m===0)return null;var T=Ce("recharts-rectangle",S);return E?H.createElement(sr,{canBegin:s>0,from:{width:v,height:m,x:d,y:h},to:{width:v,height:m,x:d,y:h},duration:_,animationEasing:w,isActive:E},function(N){var A=N.width,C=N.height,M=N.x,D=N.y;return H.createElement(sr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:_,isActive:j,easing:w},H.createElement("path",Nf({},ye(n,!0),{className:T,d:DT(M,D,A,C,b),ref:r})))}):H.createElement("path",Nf({},ye(n,!0),{className:T,d:DT(d,h,v,m,b)}))},AH=["points","className","baseLinePoints","connectNulls"];function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ho.apply(this,arguments)}function jH(e,t){if(e==null)return{};var n=EH(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function kT(e){return MH(e)||CH(e)||NH(e)||TH()}function TH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
124
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NH(e,t){if(e){if(typeof e=="string")return lb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lb(e,t)}}function CH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MH(e){if(Array.isArray(e))return lb(e)}function lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $T=function(t){return t&&t.x===+t.x&&t.y===+t.y},RH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){$T(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),$T(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},bu=function(t,n){var r=RH(t);n&&(r=[r.reduce(function(l,s){return[].concat(kT(l),kT(s))},[])]);var o=r.map(function(l){return l.reduce(function(s,f,d){return"".concat(s).concat(d===0?"M":"L").concat(f.x,",").concat(f.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},PH=function(t,n,r){var o=bu(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(bu(n.reverse(),r).slice(1))},DH=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,l=t.connectNulls,s=jH(t,AH);if(!n||!n.length)return null;var f=Ce("recharts-polygon",r);if(o&&o.length){var d=s.stroke&&s.stroke!=="none",h=PH(n,o,l);return H.createElement("g",{className:f},H.createElement("path",ho({},ye(s,!0),{fill:h.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:h})),d?H.createElement("path",ho({},ye(s,!0),{fill:"none",d:bu(n,l)})):null,d?H.createElement("path",ho({},ye(s,!0),{fill:"none",d:bu(o,l)})):null)}var v=bu(n,l);return H.createElement("path",ho({},ye(s,!0),{fill:v.slice(-1)==="Z"?s.fill:"none",className:f,d:v}))};function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ub.apply(this,arguments)}var wd=function(t){var n=t.cx,r=t.cy,o=t.r,l=t.className,s=Ce("recharts-dot",l);return n===+n&&r===+r&&o===+o?P.createElement("circle",ub({},ye(t,!1),Wc(t),{className:s,cx:n,cy:r,r:o})):null};function Xu(e){"@babel/helpers - typeof";return Xu=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},Xu(e)}var kH=["x","y","top","left","width","height","className"];function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sb.apply(this,arguments)}function LT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LT(Object(n),!0).forEach(function(r){LH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LH(e,t,n){return t=qH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qH(e){var t=BH(e,"string");return Xu(t)=="symbol"?t:t+""}function BH(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zH(e,t){if(e==null)return{};var n=UH(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var IH=function(t,n,r,o,l,s){return"M".concat(t,",").concat(l,"v").concat(o,"M").concat(s,",").concat(n,"h").concat(r)},HH=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,l=o===void 0?0:o,s=t.top,f=s===void 0?0:s,d=t.left,h=d===void 0?0:d,v=t.width,m=v===void 0?0:v,b=t.height,S=b===void 0?0:b,w=t.className,_=zH(t,kH),x=$H({x:r,y:l,top:f,left:h,width:m,height:S},_);return!fe(r)||!fe(l)||!fe(m)||!fe(S)||!fe(f)||!fe(h)?null:H.createElement("path",sb({},ye(x,!0),{className:Ce("recharts-cross",w),d:IH(r,l,m,S,f,h)}))},$g,qT;function GH(){if(qT)return $g;qT=1;var e=gd(),t=s3(),n=fr();function r(o,l){return o&&o.length?e(o,n(l,2),t):void 0}return $g=r,$g}var YH=GH();const KH=Ze(YH);var Lg,BT;function XH(){if(BT)return Lg;BT=1;var e=gd(),t=fr(),n=c3();function r(o,l){return o&&o.length?e(o,t(l,2),n):void 0}return Lg=r,Lg}var VH=XH();const FH=Ze(VH);var WH=["cx","cy","angle","ticks","axisLine"],ZH=["ticks","tick","angle","tickFormatter","stroke"];function Ro(e){"@babel/helpers - typeof";return Ro=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},Ro(e)}function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xu.apply(this,arguments)}function zT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zT(Object(n),!0).forEach(function(r){Od(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UT(e,t){if(e==null)return{};var n=QH(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F3(r.key),r)}}function eG(e,t,n){return t&&IT(e.prototype,t),n&&IT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tG(e,t,n){return t=Cf(t),nG(e,V3()?Reflect.construct(t,n||[],Cf(e).constructor):t.apply(e,n))}function nG(e,t){if(t&&(Ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rG(e)}function rG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V3=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function aG(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&&cb(e,t)}function cb(e,t){return cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},cb(e,t)}function Od(e,t,n){return t=F3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F3(e){var t=iG(e,"string");return Ro(t)=="symbol"?t:t+""}function iG(e,t){if(Ro(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ro(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ad=(function(e){function t(){return JH(this,t),tG(this,t,arguments)}return aG(t,e),eG(t,[{key:"getTickValueCoord",value:function(r){var o=r.coordinate,l=this.props,s=l.angle,f=l.cx,d=l.cy;return nt(f,d,o,s)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,o;switch(r){case"left":o="end";break;case"right":o="start";break;default:o="middle";break}return o}},{key:"getViewBox",value:function(){var r=this.props,o=r.cx,l=r.cy,s=r.angle,f=r.ticks,d=KH(f,function(v){return v.coordinate||0}),h=FH(f,function(v){return v.coordinate||0});return{cx:o,cy:l,startAngle:s,endAngle:s,innerRadius:h.coordinate||0,outerRadius:d.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,l=r.cy,s=r.angle,f=r.ticks,d=r.axisLine,h=UT(r,WH),v=f.reduce(function(w,_){return[Math.min(w[0],_.coordinate),Math.max(w[1],_.coordinate)]},[1/0,-1/0]),m=nt(o,l,v[0],s),b=nt(o,l,v[1],s),S=ei(ei(ei({},ye(h,!1)),{},{fill:"none"},ye(d,!1)),{},{x1:m.x,y1:m.y,x2:b.x,y2:b.y});return H.createElement("line",xu({className:"recharts-polar-radius-axis-line"},S))}},{key:"renderTicks",value:function(){var r=this,o=this.props,l=o.ticks,s=o.tick,f=o.angle,d=o.tickFormatter,h=o.stroke,v=UT(o,ZH),m=this.getTickTextAnchor(),b=ye(v,!1),S=ye(s,!1),w=l.map(function(_,x){var j=r.getTickValueCoord(_),E=ei(ei(ei(ei({textAnchor:m,transform:"rotate(".concat(90-f,", ").concat(j.x,", ").concat(j.y,")")},b),{},{stroke:"none",fill:h},S),{},{index:x},j),{},{payload:_});return H.createElement(Le,xu({className:Ce("recharts-polar-radius-axis-tick",L3(s)),key:"tick-".concat(_.coordinate)},mi(r.props,_,x)),t.renderTickItem(s,E,d?d(_.value,x):_.value))});return H.createElement(Le,{className:"recharts-polar-radius-axis-ticks"},w)}},{key:"render",value:function(){var r=this.props,o=r.ticks,l=r.axisLine,s=r.tick;return!o||!o.length?null:H.createElement(Le,{className:Ce("recharts-polar-radius-axis",this.props.className)},l&&this.renderAxisLine(),s&&this.renderTicks(),Rt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,o,l){var s;return H.isValidElement(r)?s=H.cloneElement(r,o):_e(r)?s=r(o):s=H.createElement(vi,xu({},o,{className:"recharts-polar-radius-axis-tick-value"}),l),s}}])})(P.PureComponent);Od(Ad,"displayName","PolarRadiusAxis");Od(Ad,"axisType","radiusAxis");Od(Ad,"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 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 ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ai.apply(this,arguments)}function HT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HT(Object(n),!0).forEach(function(r){jd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z3(r.key),r)}}function lG(e,t,n){return t&>(e.prototype,t),n&>(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uG(e,t,n){return t=Mf(t),sG(e,W3()?Reflect.construct(t,n||[],Mf(e).constructor):t.apply(e,n))}function sG(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 cG(e)}function cG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W3=function(){return!!e})()}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mf(e)}function fG(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&&fb(e,t)}function fb(e,t){return fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fb(e,t)}function jd(e,t,n){return t=Z3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z3(e){var t=dG(e,"string");return Po(t)=="symbol"?t:t+""}function dG(e,t){if(Po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hG=Math.PI/180,YT=1e-5,Ed=(function(e){function t(){return oG(this,t),uG(this,t,arguments)}return fG(t,e),lG(t,[{key:"getTickLineCoord",value:function(r){var o=this.props,l=o.cx,s=o.cy,f=o.radius,d=o.orientation,h=o.tickSize,v=h||8,m=nt(l,s,f,r.coordinate),b=nt(l,s,f+(d==="inner"?-1:1)*v,r.coordinate);return{x1:m.x,y1:m.y,x2:b.x,y2:b.y}}},{key:"getTickTextAnchor",value:function(r){var o=this.props.orientation,l=Math.cos(-r.coordinate*hG),s;return l>YT?s=o==="outer"?"start":"end":l<-YT?s=o==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,l=r.cy,s=r.radius,f=r.axisLine,d=r.axisLineType,h=ti(ti({},ye(this.props,!1)),{},{fill:"none"},ye(f,!1));if(d==="circle")return H.createElement(wd,ai({className:"recharts-polar-angle-axis-line"},h,{cx:o,cy:l,r:s}));var v=this.props.ticks,m=v.map(function(b){return nt(o,l,s,b.coordinate)});return H.createElement(DH,ai({className:"recharts-polar-angle-axis-line"},h,{points:m}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,l=o.ticks,s=o.tick,f=o.tickLine,d=o.tickFormatter,h=o.stroke,v=ye(this.props,!1),m=ye(s,!1),b=ti(ti({},v),{},{fill:"none"},ye(f,!1)),S=l.map(function(w,_){var x=r.getTickLineCoord(w),j=r.getTickTextAnchor(w),E=ti(ti(ti({textAnchor:j},v),{},{stroke:"none",fill:h},m),{},{index:_,payload:w,x:x.x2,y:x.y2});return H.createElement(Le,ai({className:Ce("recharts-polar-angle-axis-tick",L3(s)),key:"tick-".concat(w.coordinate)},mi(r.props,w,_)),f&&H.createElement("line",ai({className:"recharts-polar-angle-axis-tick-line"},b,x)),s&&t.renderTickItem(s,E,d?d(w.value,_):w.value))});return H.createElement(Le,{className:"recharts-polar-angle-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,o=r.ticks,l=r.radius,s=r.axisLine;return l<=0||!o||!o.length?null:H.createElement(Le,{className:Ce("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,l){var s;return H.isValidElement(r)?s=H.cloneElement(r,o):_e(r)?s=r(o):s=H.createElement(vi,ai({},o,{className:"recharts-polar-angle-axis-tick-value"}),l),s}}])})(P.PureComponent);jd(Ed,"displayName","PolarAngleAxis");jd(Ed,"axisType","angleAxis");jd(Ed,"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 qg,KT;function pG(){if(KT)return qg;KT=1;var e=sM(),t=e(Object.getPrototypeOf,Object);return qg=t,qg}var Bg,XT;function mG(){if(XT)return Bg;XT=1;var e=Kr(),t=pG(),n=Xr(),r="[object Object]",o=Function.prototype,l=Object.prototype,s=o.toString,f=l.hasOwnProperty,d=s.call(Object);function h(v){if(!n(v)||e(v)!=r)return!1;var m=t(v);if(m===null)return!0;var b=f.call(m,"constructor")&&m.constructor;return typeof b=="function"&&b instanceof b&&s.call(b)==d}return Bg=h,Bg}var vG=mG();const yG=Ze(vG);var zg,VT;function gG(){if(VT)return zg;VT=1;var e=Kr(),t=Xr(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return zg=r,zg}var bG=gG();const xG=Ze(bG);function Vu(e){"@babel/helpers - typeof";return Vu=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},Vu(e)}function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rf.apply(this,arguments)}function SG(e,t){return AG(e)||OG(e,t)||wG(e,t)||_G()}function _G(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wG(e,t){if(e){if(typeof e=="string")return FT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FT(e,t)}}function FT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function AG(e){if(Array.isArray(e))return e}function WT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ZT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(n),!0).forEach(function(r){jG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jG(e,t,n){return t=EG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EG(e){var t=TG(e,"string");return Vu(t)=="symbol"?t:t+""}function TG(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QT=function(t,n,r,o,l){var s=r-o,f;return f="M ".concat(t,",").concat(n),f+="L ".concat(t+r,",").concat(n),f+="L ".concat(t+r-s/2,",").concat(n+l),f+="L ".concat(t+r-s/2-o,",").concat(n+l),f+="L ".concat(t,",").concat(n," Z"),f},NG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CG=function(t){var n=ZT(ZT({},NG),t),r=P.useRef(),o=P.useState(-1),l=SG(o,2),s=l[0],f=l[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&f(T)}catch{}},[]);var d=n.x,h=n.y,v=n.upperWidth,m=n.lowerWidth,b=n.height,S=n.className,w=n.animationEasing,_=n.animationDuration,x=n.animationBegin,j=n.isUpdateAnimationActive;if(d!==+d||h!==+h||v!==+v||m!==+m||b!==+b||v===0&&m===0||b===0)return null;var E=Ce("recharts-trapezoid",S);return j?H.createElement(sr,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:b,x:d,y:h},to:{upperWidth:v,lowerWidth:m,height:b,x:d,y:h},duration:_,animationEasing:w,isActive:j},function(T){var N=T.upperWidth,A=T.lowerWidth,C=T.height,M=T.x,D=T.y;return H.createElement(sr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:_,easing:w},H.createElement("path",Rf({},ye(n,!0),{className:E,d:QT(M,D,N,A,C),ref:r})))}):H.createElement("g",null,H.createElement("path",Rf({},ye(n,!0),{className:E,d:QT(d,h,v,m,b)})))},MG=["option","shapeType","propTransformer","activeClassName","isActive"];function Fu(e){"@babel/helpers - typeof";return Fu=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},Fu(e)}function RG(e,t){if(e==null)return{};var n=PG(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JT(Object(n),!0).forEach(function(r){DG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DG(e,t,n){return t=kG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kG(e){var t=$G(e,"string");return Fu(t)=="symbol"?t:t+""}function $G(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LG(e,t){return Pf(Pf({},t),e)}function qG(e,t){return e==="symbols"}function eN(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return H.createElement(Lx,n);case"trapezoid":return H.createElement(CG,n);case"sector":return H.createElement(z3,n);case"symbols":if(qG(t))return H.createElement(tx,n);break;default:return null}}function BG(e){return P.isValidElement(e)?e.props:e}function Q3(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?LG:r,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,f=e.isActive,d=RG(e,MG),h;if(P.isValidElement(t))h=P.cloneElement(t,Pf(Pf({},d),BG(t)));else if(_e(t))h=t(d);else if(yG(t)&&!xG(t)){var v=o(t,d);h=H.createElement(eN,{shapeType:n,elementProps:v})}else{var m=d;h=H.createElement(eN,{shapeType:n,elementProps:m})}return f?H.createElement(Le,{className:s},h):h}function Td(e,t){return t!=null&&"trapezoids"in e.props}function Nd(e,t){return t!=null&&"sectors"in e.props}function Wu(e,t){return t!=null&&"points"in e.props}function zG(e,t){var n,r,o=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,l=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return o&&l}function UG(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function IG(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function HG(e,t){var n;return Td(e,t)?n=zG:Nd(e,t)?n=UG:Wu(e,t)&&(n=IG),n}function GG(e,t){var n;return Td(e,t)?n="trapezoids":Nd(e,t)?n="sectors":Wu(e,t)&&(n="points"),n}function YG(e,t){if(Td(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}if(Nd(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}return Wu(e,t)?t.payload:{}}function KG(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=GG(n,t),l=YG(n,t),s=r.filter(function(d,h){var v=No(l,d),m=n.props[o].filter(function(w){var _=HG(n,t);return _(w,t)}),b=n.props[o].indexOf(m[m.length-1]),S=h===b;return v&&S}),f=r.indexOf(s[s.length-1]);return f}var Kc;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 po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},po.apply(this,arguments)}function tN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tN(Object(n),!0).forEach(function(r){Dn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eR(r.key),r)}}function VG(e,t,n){return t&&nN(e.prototype,t),n&&nN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FG(e,t,n){return t=Df(t),WG(e,J3()?Reflect.construct(t,n||[],Df(e).constructor):t.apply(e,n))}function WG(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 ZG(e)}function ZG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J3=function(){return!!e})()}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Df(e)}function QG(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&&db(e,t)}function db(e,t){return db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},db(e,t)}function Dn(e,t,n){return t=eR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eR(e){var t=JG(e,"string");return Do(t)=="symbol"?t:t+""}function JG(e,t){if(Do(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Do(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fr=(function(e){function t(n){var r;return XG(this,t),r=FG(this,t,[n]),Dn(r,"pieRef",null),Dn(r,"sectorRefs",[]),Dn(r,"id",Jo("recharts-pie-")),Dn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),_e(o)&&o()}),Dn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),_e(o)&&o()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return QG(t,e),VG(t,[{key:"isActiveIndex",value:function(r){var o=this.props.activeIndex;return Array.isArray(o)?o.indexOf(r)!==-1:r===o}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.label,f=l.labelLine,d=l.dataKey,h=l.valueKey,v=ye(this.props,!1),m=ye(s,!1),b=ye(f,!1),S=s&&s.offsetRadius||20,w=r.map(function(_,x){var j=(_.startAngle+_.endAngle)/2,E=nt(_.cx,_.cy,_.outerRadius+S,j),T=et(et(et(et({},v),_),{},{stroke:"none"},m),{},{index:x,textAnchor:t.getTextAnchor(E.x,_.cx)},E),N=et(et(et(et({},v),_),{},{fill:"none",stroke:_.fill},b),{},{index:x,points:[nt(_.cx,_.cy,_.outerRadius,j),E]}),A=d;return Ae(d)&&Ae(h)?A="value":Ae(d)&&(A=h),H.createElement(Le,{key:"label-".concat(_.startAngle,"-").concat(_.endAngle,"-").concat(_.midAngle,"-").concat(x)},f&&t.renderLabelLineItem(f,N,"line"),t.renderLabelItem(s,T,jt(_,A)))});return H.createElement(Le,{className:"recharts-pie-labels"},w)}},{key:"renderSectorsStatically",value:function(r){var o=this,l=this.props,s=l.activeShape,f=l.blendStroke,d=l.inactiveShape;return r.map(function(h,v){if((h==null?void 0:h.startAngle)===0&&(h==null?void 0:h.endAngle)===0&&r.length!==1)return null;var m=o.isActiveIndex(v),b=d&&o.hasActiveIndex()?d:null,S=m?s:b,w=et(et({},h),{},{stroke:f?h.fill:h.stroke,tabIndex:-1});return H.createElement(Le,po({ref:function(x){x&&!o.sectorRefs.includes(x)&&o.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},mi(o.props,h,v),{key:"sector-".concat(h==null?void 0:h.startAngle,"-").concat(h==null?void 0:h.endAngle,"-").concat(h.midAngle,"-").concat(v)}),H.createElement(Q3,po({option:S,isActive:m,shapeType:"sector"},w)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,o=this.props,l=o.sectors,s=o.isAnimationActive,f=o.animationBegin,d=o.animationDuration,h=o.animationEasing,v=o.animationId,m=this.state,b=m.prevSectors,S=m.prevIsAnimationActive;return H.createElement(sr,{begin:f,duration:d,isActive:s,easing:h,from:{t:0},to:{t:1},key:"pie-".concat(v,"-").concat(S),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(w){var _=w.t,x=[],j=l&&l[0],E=j.startAngle;return l.forEach(function(T,N){var A=b&&b[N],C=N>0?gn(T,"paddingAngle",0):0;if(A){var M=tn(A.endAngle-A.startAngle,T.endAngle-T.startAngle),D=et(et({},T),{},{startAngle:E+C,endAngle:E+M(_)+C});x.push(D),E=D.endAngle}else{var $=T.endAngle,B=T.startAngle,I=tn(0,$-B),q=I(_),Y=et(et({},T),{},{startAngle:E+C,endAngle:E+q+C});x.push(Y),E=Y.endAngle}}),H.createElement(Le,null,r.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(l){if(!l.altKey)switch(l.key){case"ArrowLeft":{var s=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[s].focus(),o.setState({sectorToFocus:s});break}case"ArrowRight":{var f=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[f].focus(),o.setState({sectorToFocus:f});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,o=r.sectors,l=r.isAnimationActive,s=this.state.prevSectors;return l&&o&&o.length&&(!s||!No(s,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,o=this.props,l=o.hide,s=o.sectors,f=o.className,d=o.label,h=o.cx,v=o.cy,m=o.innerRadius,b=o.outerRadius,S=o.isAnimationActive,w=this.state.isAnimationFinished;if(l||!s||!s.length||!fe(h)||!fe(v)||!fe(m)||!fe(b))return null;var _=Ce("recharts-pie",f);return H.createElement(Le,{tabIndex:this.props.rootTabIndex,className:_,ref:function(j){r.pieRef=j}},this.renderSectors(),d&&this.renderLabels(s),Rt.renderCallByParent(this.props,null,!1),(!S||w)&&zr.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return o.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:r.sectors!==o.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,o){return r>o?"start":r<o?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,o,l){if(H.isValidElement(r))return H.cloneElement(r,o);if(_e(r))return r(o);var s=Ce("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return H.createElement(xo,po({},o,{key:l,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(r,o,l){if(H.isValidElement(r))return H.cloneElement(r,o);var s=l;if(_e(r)&&(s=r(o),H.isValidElement(s)))return s;var f=Ce("recharts-pie-label-text",typeof r!="boolean"&&!_e(r)?r.className:"");return H.createElement(vi,po({},o,{alignmentBaseline:"middle",className:f}),s)}}])})(P.PureComponent);Kc=Fr;Dn(Fr,"displayName","Pie");Dn(Fr,"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:!xi.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Dn(Fr,"parseDeltaAngle",function(e,t){var n=Yt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Dn(Fr,"getRealPieData",function(e){var t=e.data,n=e.children,r=ye(e,!1),o=$n(n,fd);return t&&t.length?t.map(function(l,s){return et(et(et({payload:l},r),l),o&&o[s]&&o[s].props)}):o&&o.length?o.map(function(l){return et(et({},r),l.props)}):[]});Dn(Fr,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,l=t.height,s=$3(o,l),f=r+Kt(e.cx,o,o/2),d=n+Kt(e.cy,l,l/2),h=Kt(e.innerRadius,s,0),v=Kt(e.outerRadius,s,s*.8),m=e.maxRadius||Math.sqrt(o*o+l*l)/2;return{cx:f,cy:d,innerRadius:h,outerRadius:v,maxRadius:m}});Dn(Fr,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?et(et({},t.type.defaultProps),t.props):t.props,o=Kc.getRealPieData(r);if(!o||!o.length)return null;var l=r.cornerRadius,s=r.startAngle,f=r.endAngle,d=r.paddingAngle,h=r.dataKey,v=r.nameKey,m=r.valueKey,b=r.tooltipType,S=Math.abs(r.minAngle),w=Kc.parseCoordinateOfPie(r,n),_=Kc.parseDeltaAngle(s,f),x=Math.abs(_),j=h;Ae(h)&&Ae(m)?(qr(!1,`Use "dataKey" to specify the value of pie,
|
|
126
|
+
the props "valueKey" will be deprecated in 1.1.0`),j="value"):Ae(h)&&(qr(!1,`Use "dataKey" to specify the value of pie,
|
|
127
|
+
the props "valueKey" will be deprecated in 1.1.0`),j=m);var E=o.filter(function(D){return jt(D,j,0)!==0}).length,T=(x>=360?E:E-1)*d,N=x-E*S-T,A=o.reduce(function(D,$){var B=jt($,j,0);return D+(fe(B)?B:0)},0),C;if(A>0){var M;C=o.map(function(D,$){var B=jt(D,j,0),I=jt(D,v,$),q=(fe(B)?B:0)/A,Y;$?Y=M.endAngle+Yt(_)*d*(B!==0?1:0):Y=s;var K=Y+Yt(_)*((B!==0?S:0)+q*N),W=(Y+K)/2,k=(w.innerRadius+w.outerRadius)/2,X=[{name:I,value:B,payload:D,dataKey:j,type:b}],F=nt(w.cx,w.cy,k,W);return M=et(et(et({percent:q,cornerRadius:l,name:I,tooltipPayload:X,midAngle:W,middleRadius:k,tooltipPosition:F},D),w),{},{value:jt(D,j),startAngle:Y,endAngle:K,payload:D,paddingAngle:Yt(_)*d}),M})}return et(et({},w),{},{sectors:C,data:o})});var Ug,rN;function eY(){if(rN)return Ug;rN=1;var e=Math.ceil,t=Math.max;function n(r,o,l,s){for(var f=-1,d=t(e((o-r)/(l||1)),0),h=Array(d);d--;)h[s?d:++f]=r,r+=l;return h}return Ug=n,Ug}var Ig,aN;function tR(){if(aN)return Ig;aN=1;var e=AM(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var l=o<0?-1:1;return l*n}return o===o?o:0}return Ig=r,Ig}var Hg,iN;function tY(){if(iN)return Hg;iN=1;var e=eY(),t=cd(),n=tR();function r(o){return function(l,s,f){return f&&typeof f!="number"&&t(l,s,f)&&(s=f=void 0),l=n(l),s===void 0?(s=l,l=0):s=n(s),f=f===void 0?l<s?1:-1:n(f),e(l,s,f,o)}}return Hg=r,Hg}var Gg,oN;function nY(){if(oN)return Gg;oN=1;var e=tY(),t=e();return Gg=t,Gg}var rY=nY();const kf=Ze(rY);function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function lN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function uN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lN(Object(n),!0).forEach(function(r){nR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nR(e,t,n){return t=aY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aY(e){var t=iY(e,"string");return Zu(t)=="symbol"?t:t+""}function iY(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oY=["Webkit","Moz","O","ms"],lY=function(t,n){var r=t.replace(/(\w)/,function(l){return l.toUpperCase()}),o=oY.reduce(function(l,s){return uN(uN({},l),{},nR({},s+r,n))},{});return o[t]=n,o};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 $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$f.apply(this,arguments)}function sN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sN(Object(n),!0).forEach(function(r){pn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aR(r.key),r)}}function sY(e,t,n){return t&&cN(e.prototype,t),n&&cN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cY(e,t,n){return t=Lf(t),fY(e,rR()?Reflect.construct(t,n||[],Lf(e).constructor):t.apply(e,n))}function fY(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 dY(e)}function dY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rR=function(){return!!e})()}function Lf(e){return Lf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lf(e)}function hY(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&&hb(e,t)}function hb(e,t){return hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},hb(e,t)}function pn(e,t,n){return t=aR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aR(e){var t=pY(e,"string");return ko(t)=="symbol"?t:t+""}function pY(e,t){if(ko(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ko(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mY=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,l=t.x,s=t.width,f=t.travellerWidth;if(!n||!n.length)return{};var d=n.length,h=vu().domain(kf(0,d)).range([l,l+s-f]),v=h.domain().map(function(m){return h(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:h(r),endX:h(o),scale:h,scaleValues:v}},fN=function(t){return t.changedTouches&&!!t.changedTouches.length},$o=(function(e){function t(n){var r;return uY(this,t),r=cY(this,t,[n]),pn(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),pn(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),pn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,l=o.endIndex,s=o.onDragEnd,f=o.startIndex;s==null||s({endIndex:l,startIndex:f})}),r.detachDragEndListener()}),pn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),pn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),pn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),pn(r,"handleSlideDragStart",function(o){var l=fN(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:l.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return hY(t,e),sY(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,l=r.endX,s=this.state.scaleValues,f=this.props,d=f.gap,h=f.data,v=h.length-1,m=Math.min(o,l),b=Math.max(o,l),S=t.getIndexInRange(s,m),w=t.getIndexInRange(s,b);return{startIndex:S-S%d,endIndex:w===v?v:w-w%d}}},{key:"getTextOfTick",value:function(r){var o=this.props,l=o.data,s=o.tickFormatter,f=o.dataKey,d=jt(l[r],f,r);return _e(s)?s(d,r):d}},{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(r){var o=this.state,l=o.slideMoveStartX,s=o.startX,f=o.endX,d=this.props,h=d.x,v=d.width,m=d.travellerWidth,b=d.startIndex,S=d.endIndex,w=d.onChange,_=r.pageX-l;_>0?_=Math.min(_,h+v-m-f,h+v-m-s):_<0&&(_=Math.max(_,h-s,h-f));var x=this.getIndex({startX:s+_,endX:f+_});(x.startIndex!==b||x.endIndex!==S)&&w&&w(x),this.setState({startX:s+_,endX:f+_,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var l=fN(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:l.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,l=o.brushMoveStartX,s=o.movingTravellerId,f=o.endX,d=o.startX,h=this.state[s],v=this.props,m=v.x,b=v.width,S=v.travellerWidth,w=v.onChange,_=v.gap,x=v.data,j={startX:this.state.startX,endX:this.state.endX},E=r.pageX-l;E>0?E=Math.min(E,m+b-S-h):E<0&&(E=Math.max(E,m-h)),j[s]=h+E;var T=this.getIndex(j),N=T.startIndex,A=T.endIndex,C=function(){var D=x.length-1;return s==="startX"&&(f>d?N%_===0:A%_===0)||f<d&&A===D||s==="endX"&&(f>d?A%_===0:N%_===0)||f>d&&A===D};this.setState(pn(pn({},s,h+E),"brushMoveStartX",r.pageX),function(){w&&C()&&w(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var l=this,s=this.state,f=s.scaleValues,d=s.startX,h=s.endX,v=this.state[o],m=f.indexOf(v);if(m!==-1){var b=m+r;if(!(b===-1||b>=f.length)){var S=f[b];o==="startX"&&S>=h||o==="endX"&&S<=d||this.setState(pn({},o,S),function(){l.props.onChange(l.getIndex({startX:l.state.startX,endX:l.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,l=r.y,s=r.width,f=r.height,d=r.fill,h=r.stroke;return H.createElement("rect",{stroke:h,fill:d,x:o,y:l,width:s,height:f})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,l=r.y,s=r.width,f=r.height,d=r.data,h=r.children,v=r.padding,m=P.Children.only(h);return m?H.cloneElement(m,{x:o,y:l,width:s,height:f,margin:v,compact:!0,data:d}):null}},{key:"renderTravellerLayer",value:function(r,o){var l,s,f=this,d=this.props,h=d.y,v=d.travellerWidth,m=d.height,b=d.traveller,S=d.ariaLabel,w=d.data,_=d.startIndex,x=d.endIndex,j=Math.max(r,this.props.x),E=Yg(Yg({},ye(this.props,!1)),{},{x:j,y:h,width:v,height:m}),T=S||"Min value: ".concat((l=w[_])===null||l===void 0?void 0:l.name,", Max value: ").concat((s=w[x])===null||s===void 0?void 0:s.name);return H.createElement(Le,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),f.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,o))},onFocus:function(){f.setState({isTravellerFocused:!0})},onBlur:function(){f.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(b,E))}},{key:"renderSlide",value:function(r,o){var l=this.props,s=l.y,f=l.height,d=l.stroke,h=l.travellerWidth,v=Math.min(r,o)+h,m=Math.max(Math.abs(o-r)-h,0);return H.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:d,fillOpacity:.2,x:v,y:s,width:m,height:f})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,l=r.endIndex,s=r.y,f=r.height,d=r.travellerWidth,h=r.stroke,v=this.state,m=v.startX,b=v.endX,S=5,w={pointerEvents:"none",fill:h};return H.createElement(Le,{className:"recharts-brush-texts"},H.createElement(vi,$f({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,b)-S,y:s+f/2},w),this.getTextOfTick(o)),H.createElement(vi,$f({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,b)+d+S,y:s+f/2},w),this.getTextOfTick(l)))}},{key:"render",value:function(){var r=this.props,o=r.data,l=r.className,s=r.children,f=r.x,d=r.y,h=r.width,v=r.height,m=r.alwaysShowText,b=this.state,S=b.startX,w=b.endX,_=b.isTextActive,x=b.isSlideMoving,j=b.isTravellerMoving,E=b.isTravellerFocused;if(!o||!o.length||!fe(f)||!fe(d)||!fe(h)||!fe(v)||h<=0||v<=0)return null;var T=Ce("recharts-brush",l),N=H.Children.count(s)===1,A=lY("userSelect","none");return H.createElement(Le,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),N&&this.renderPanorama(),this.renderSlide(S,w),this.renderTravellerLayer(S,"startX"),this.renderTravellerLayer(w,"endX"),(_||x||j||E||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,l=r.y,s=r.width,f=r.height,d=r.stroke,h=Math.floor(l+f/2)-1;return H.createElement(H.Fragment,null,H.createElement("rect",{x:o,y:l,width:s,height:f,fill:d,stroke:"none"}),H.createElement("line",{x1:o+1,y1:h,x2:o+s-1,y2:h,fill:"none",stroke:"#fff"}),H.createElement("line",{x1:o+1,y1:h+2,x2:o+s-1,y2:h+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var l;return H.isValidElement(r)?l=H.cloneElement(r,o):_e(r)?l=r(o):l=t.renderDefaultTraveller(o),l}},{key:"getDerivedStateFromProps",value:function(r,o){var l=r.data,s=r.width,f=r.x,d=r.travellerWidth,h=r.updateId,v=r.startIndex,m=r.endIndex;if(l!==o.prevData||h!==o.prevUpdateId)return Yg({prevData:l,prevTravellerWidth:d,prevUpdateId:h,prevX:f,prevWidth:s},l&&l.length?mY({data:l,width:s,x:f,travellerWidth:d,startIndex:v,endIndex:m}):{scale:null,scaleValues:null});if(o.scale&&(s!==o.prevWidth||f!==o.prevX||d!==o.prevTravellerWidth)){o.scale.range([f,f+s-d]);var b=o.scale.domain().map(function(S){return o.scale(S)});return{prevData:l,prevTravellerWidth:d,prevUpdateId:h,prevX:f,prevWidth:s,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:b}}return null}},{key:"getIndexInRange",value:function(r,o){for(var l=r.length,s=0,f=l-1;f-s>1;){var d=Math.floor((s+f)/2);r[d]>o?f=d:s=d}return o>=r[f]?f:s}}])})(P.PureComponent);pn($o,"displayName","Brush");pn($o,"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 Kg,dN;function vY(){if(dN)return Kg;dN=1;var e=ux();function t(n,r){var o;return e(n,function(l,s,f){return o=r(l,s,f),!o}),!!o}return Kg=t,Kg}var Xg,hN;function yY(){if(hN)return Xg;hN=1;var e=nM(),t=fr(),n=vY(),r=rn(),o=cd();function l(s,f,d){var h=r(s)?e:n;return d&&o(s,f,d)&&(f=void 0),h(s,t(f,3))}return Xg=l,Xg}var gY=yY();const bY=Ze(gY);var lr=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},Vg,pN;function xY(){if(pN)return Vg;pN=1;var e=xM();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return Vg=t,Vg}var Fg,mN;function SY(){if(mN)return Fg;mN=1;var e=xY(),t=gM(),n=fr();function r(o,l){var s={};return l=n(l,3),t(o,function(f,d,h){e(s,d,l(f,d,h))}),s}return Fg=r,Fg}var _Y=SY();const wY=Ze(_Y);var Wg,vN;function OY(){if(vN)return Wg;vN=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(!n(t[r],r,t))return!1;return!0}return Wg=e,Wg}var Zg,yN;function AY(){if(yN)return Zg;yN=1;var e=ux();function t(n,r){var o=!0;return e(n,function(l,s,f){return o=!!r(l,s,f),o}),o}return Zg=t,Zg}var Qg,gN;function jY(){if(gN)return Qg;gN=1;var e=OY(),t=AY(),n=fr(),r=rn(),o=cd();function l(s,f,d){var h=r(s)?e:t;return d&&o(s,f,d)&&(f=void 0),h(s,n(f,3))}return Qg=l,Qg}var EY=jY();const TY=Ze(EY);var NY=["x","y"];function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pb.apply(this,arguments)}function bN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bN(Object(n),!0).forEach(function(r){CY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CY(e,t,n){return t=MY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MY(e){var t=RY(e,"string");return Qu(t)=="symbol"?t:t+""}function RY(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PY(e,t){if(e==null)return{};var n=DY(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function kY(e,t){var n=e.x,r=e.y,o=PY(e,NY),l="".concat(n),s=parseInt(l,10),f="".concat(r),d=parseInt(f,10),h="".concat(t.height||o.height),v=parseInt(h,10),m="".concat(t.width||o.width),b=parseInt(m,10);return fu(fu(fu(fu(fu({},t),o),s?{x:s}:{}),d?{y:d}:{}),{},{height:v,width:b,name:t.name,radius:t.radius})}function xN(e){return H.createElement(Q3,pb({shapeType:"rectangle",propTransformer:kY,activeClassName:"recharts-active-bar"},e))}var $Y=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var l=fe(r)||tk(r);return l?t(r,o):(l||gi(),n)}},LY=["value","background"],iR;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 qY(e,t){if(e==null)return{};var n=BY(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qf.apply(this,arguments)}function SN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SN(Object(n),!0).forEach(function(r){Aa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lR(r.key),r)}}function UY(e,t,n){return t&&_N(e.prototype,t),n&&_N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function IY(e,t,n){return t=Bf(t),HY(e,oR()?Reflect.construct(t,n||[],Bf(e).constructor):t.apply(e,n))}function HY(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 GY(e)}function GY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oR=function(){return!!e})()}function Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bf(e)}function YY(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&&mb(e,t)}function mb(e,t){return mb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},mb(e,t)}function Aa(e,t,n){return t=lR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lR(e){var t=KY(e,"string");return Lo(t)=="symbol"?t:t+""}function KY(e,t){if(Lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ta=(function(e){function t(){var n;zY(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=IY(this,t,[].concat(o)),Aa(n,"state",{isAnimationFinished:!1}),Aa(n,"id",Jo("recharts-bar-")),Aa(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),Aa(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return YY(t,e),UY(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,l=this.props,s=l.shape,f=l.dataKey,d=l.activeIndex,h=l.activeBar,v=ye(this.props,!1);return r&&r.map(function(m,b){var S=b===d,w=S?h:s,_=St(St(St({},v),m),{},{isActive:S,option:w,index:b,dataKey:f,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return H.createElement(Le,qf({className:"recharts-bar-rectangle"},mi(o.props,m,b),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(b)}),H.createElement(xN,_))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,l=o.data,s=o.layout,f=o.isAnimationActive,d=o.animationBegin,h=o.animationDuration,v=o.animationEasing,m=o.animationId,b=this.state.prevData;return H.createElement(sr,{begin:d,duration:h,isActive:f,easing:v,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var w=S.t,_=l.map(function(x,j){var E=b&&b[j];if(E){var T=tn(E.x,x.x),N=tn(E.y,x.y),A=tn(E.width,x.width),C=tn(E.height,x.height);return St(St({},x),{},{x:T(w),y:N(w),width:A(w),height:C(w)})}if(s==="horizontal"){var M=tn(0,x.height),D=M(w);return St(St({},x),{},{y:x.y+x.height-D,height:D})}var $=tn(0,x.width),B=$(w);return St(St({},x),{},{width:B})});return H.createElement(Le,null,r.renderRectanglesStatically(_))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,l=r.isAnimationActive,s=this.state.prevData;return l&&o&&o.length&&(!s||!No(s,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,l=o.data,s=o.dataKey,f=o.activeIndex,d=ye(this.props.background,!1);return l.map(function(h,v){h.value;var m=h.background,b=qY(h,LY);if(!m)return null;var S=St(St(St(St(St({},b),{},{fill:"#eee"},m),d),mi(r.props,h,v)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:v,className:"recharts-bar-background-rectangle"});return H.createElement(xN,qf({key:"background-bar-".concat(v),option:r.props.background,isActive:v===f},S))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.data,f=l.xAxis,d=l.yAxis,h=l.layout,v=l.children,m=$n(v,_d);if(!m)return null;var b=h==="vertical"?s[0].height/2:s[0].width/2,S=function(x,j){var E=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:E,errorVal:jt(x,j)}},w={clipPath:r?"url(#clipPath-".concat(o,")"):null};return H.createElement(Le,w,m.map(function(_){return H.cloneElement(_,{key:"error-bar-".concat(o,"-").concat(_.props.dataKey),data:s,xAxis:f,yAxis:d,layout:h,offset:b,dataPointFormatter:S})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,l=r.data,s=r.className,f=r.xAxis,d=r.yAxis,h=r.left,v=r.top,m=r.width,b=r.height,S=r.isAnimationActive,w=r.background,_=r.id;if(o||!l||!l.length)return null;var x=this.state.isAnimationFinished,j=Ce("recharts-bar",s),E=f&&f.allowDataOverflow,T=d&&d.allowDataOverflow,N=E||T,A=Ae(_)?this.id:_;return H.createElement(Le,{className:j},E||T?H.createElement("defs",null,H.createElement("clipPath",{id:"clipPath-".concat(A)},H.createElement("rect",{x:E?h:h-m/2,y:T?v:v-b/2,width:E?m:m*2,height:T?b:b*2}))):null,H.createElement(Le,{className:"recharts-bar-rectangles",clipPath:N?"url(#clipPath-".concat(A,")"):null},w?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(N,A),(!S||x)&&zr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:o.curData}:r.data!==o.curData?{curData:r.data}:null}}])})(P.PureComponent);iR=Ta;Aa(Ta,"displayName","Bar");Aa(Ta,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!xi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Aa(Ta,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,l=e.xAxis,s=e.yAxis,f=e.xAxisTicks,d=e.yAxisTicks,h=e.stackedData,v=e.dataStartIndex,m=e.displayedData,b=e.offset,S=vU(r,n);if(!S)return null;var w=t.layout,_=n.type.defaultProps,x=_!==void 0?St(St({},_),n.props):n.props,j=x.dataKey,E=x.children,T=x.minPointSize,N=w==="horizontal"?s:l,A=h?N.scale.domain():null,C=wU({numericAxis:N}),M=$n(E,fd),D=m.map(function($,B){var I,q,Y,K,W,k;h?I=yU(h[v+B],A):(I=jt($,j),Array.isArray(I)||(I=[C,I]));var X=$Y(T,iR.defaultProps.minPointSize)(I[1],B);if(w==="horizontal"){var F,oe=[s.scale(I[0]),s.scale(I[1])],ue=oe[0],L=oe[1];q=WE({axis:l,ticks:f,bandSize:o,offset:S.offset,entry:$,index:B}),Y=(F=L??ue)!==null&&F!==void 0?F:void 0,K=S.size;var z=ue-L;if(W=Number.isNaN(z)?0:z,k={x:q,y:s.y,width:K,height:s.height},Math.abs(X)>0&&Math.abs(W)<Math.abs(X)){var te=Yt(W||X)*(Math.abs(X)-Math.abs(W));Y-=te,W+=te}}else{var ce=[l.scale(I[0]),l.scale(I[1])],he=ce[0],ge=ce[1];if(q=he,Y=WE({axis:s,ticks:d,bandSize:o,offset:S.offset,entry:$,index:B}),K=ge-he,W=S.size,k={x:l.x,y:Y,width:l.width,height:W},Math.abs(X)>0&&Math.abs(K)<Math.abs(X)){var Me=Yt(K||X)*(Math.abs(X)-Math.abs(K));K+=Me}}return St(St(St({},$),{},{x:q,y:Y,width:K,height:W,value:h?I:I[1],payload:$,background:k},M&&M[B]&&M[B].props),{},{tooltipPayload:[D3(n,$)],tooltipPosition:{x:q+K/2,y:Y+W/2}})});return St({data:D,layout:w},b)});function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}function XY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uR(r.key),r)}}function VY(e,t,n){return t&&wN(e.prototype,t),n&&wN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ON(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(n),!0).forEach(function(r){Cd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cd(e,t,n){return t=uR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){var t=FY(e,"string");return Ju(t)=="symbol"?t:t+""}function FY(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sR=function(t,n,r,o,l){var s=t.width,f=t.height,d=t.layout,h=t.children,v=Object.keys(n),m={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:f-r.bottom,bottomMirror:f-r.bottom},b=!!mn(h,Ta);return v.reduce(function(S,w){var _=n[w],x=_.orientation,j=_.domain,E=_.padding,T=E===void 0?{}:E,N=_.mirror,A=_.reversed,C="".concat(x).concat(N?"Mirror":""),M,D,$,B,I;if(_.type==="number"&&(_.padding==="gap"||_.padding==="no-gap")){var q=j[1]-j[0],Y=1/0,K=_.categoricalDomain.sort(ak);if(K.forEach(function(ce,he){he>0&&(Y=Math.min((ce||0)-(K[he-1]||0),Y))}),Number.isFinite(Y)){var W=Y/q,k=_.layout==="vertical"?r.height:r.width;if(_.padding==="gap"&&(M=W*k/2),_.padding==="no-gap"){var X=Kt(t.barCategoryGap,W*k),F=W*k/2;M=F-X-(F-X)/k*X}}}o==="xAxis"?D=[r.left+(T.left||0)+(M||0),r.left+r.width-(T.right||0)-(M||0)]:o==="yAxis"?D=d==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(M||0),r.top+r.height-(T.bottom||0)-(M||0)]:D=_.range,A&&(D=[D[1],D[0]]);var oe=C3(_,l,b),ue=oe.scale,L=oe.realScaleType;ue.domain(j).range(D),M3(ue);var z=R3(ue,Xn(Xn({},_),{},{realScaleType:L}));o==="xAxis"?(I=x==="top"&&!N||x==="bottom"&&N,$=r.left,B=m[C]-I*_.height):o==="yAxis"&&(I=x==="left"&&!N||x==="right"&&N,$=m[C]-I*_.width,B=r.top);var te=Xn(Xn(Xn({},_),z),{},{realScaleType:L,x:$,y:B,scale:ue,width:o==="xAxis"?r.width:_.width,height:o==="yAxis"?r.height:_.height});return te.bandSize=_f(te,z),!_.hide&&o==="xAxis"?m[C]+=(I?-1:1)*te.height:_.hide||(m[C]+=(I?-1:1)*te.width),Xn(Xn({},S),{},Cd({},w,te))},{})},cR=function(t,n){var r=t.x,o=t.y,l=n.x,s=n.y;return{x:Math.min(r,l),y:Math.min(o,s),width:Math.abs(l-r),height:Math.abs(s-o)}},WY=function(t){var n=t.x1,r=t.y1,o=t.x2,l=t.y2;return cR({x:n,y:r},{x:o,y:l})},fR=(function(){function e(t){XY(this,e),this.scale=t}return VY(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.bandAware,l=r.position;if(n!==void 0){if(l)switch(l){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var f=this.bandwidth?this.bandwidth():0;return this.scale(n)+f}default:return this.scale(n)}if(o){var d=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+d}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],l=r[r.length-1];return o<=l?n>=o&&n<=l:n>=l&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])})();Cd(fR,"EPS",1e-4);var qx=function(t){var n=Object.keys(t).reduce(function(r,o){return Xn(Xn({},r),{},Cd({},o,fR.create(t[o])))},{});return Xn(Xn({},n),{},{apply:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.bandAware,f=l.position;return wY(o,function(d,h){return n[h].apply(d,{bandAware:s,position:f})})},isInRange:function(o){return TY(o,function(l,s){return n[s].isInRange(l)})}})};function ZY(e){return(e%180+180)%180}var QY=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=ZY(o),s=l*Math.PI/180,f=Math.atan(r/n),d=s>f&&s<Math.PI-f?r/Math.sin(s):n/Math.cos(s);return Math.abs(d)},Jg,AN;function JY(){if(AN)return Jg;AN=1;var e=fr(),t=os(),n=ud();function r(o){return function(l,s,f){var d=Object(l);if(!t(l)){var h=e(s,3);l=n(l),s=function(m){return h(d[m],m,d)}}var v=o(l,s,f);return v>-1?d[h?l[v]:v]:void 0}}return Jg=r,Jg}var e0,jN;function eK(){if(jN)return e0;jN=1;var e=tR();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return e0=t,e0}var t0,EN;function tK(){if(EN)return t0;EN=1;var e=hM(),t=fr(),n=eK(),r=Math.max;function o(l,s,f){var d=l==null?0:l.length;if(!d)return-1;var h=f==null?0:n(f);return h<0&&(h=r(d+h,0)),e(l,t(s,3),h)}return t0=o,t0}var n0,TN;function nK(){if(TN)return n0;TN=1;var e=JY(),t=tK(),n=e(t);return n0=n,n0}nK();var rK=NC();const aK=Ze(rK);var iK=aK(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("")}),dR=P.createContext(void 0),hR=P.createContext(void 0),pR=P.createContext(void 0),oK=P.createContext({}),mR=P.createContext(void 0),vR=P.createContext(0),yR=P.createContext(0),NN=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,l=n.offset,s=t.clipPathId,f=t.children,d=t.width,h=t.height,v=iK(l);return H.createElement(dR.Provider,{value:r},H.createElement(hR.Provider,{value:o},H.createElement(oK.Provider,{value:l},H.createElement(pR.Provider,{value:v},H.createElement(mR.Provider,{value:s},H.createElement(vR.Provider,{value:h},H.createElement(yR.Provider,{value:d},f)))))))},lK=function(){return P.useContext(mR)},gR=function(t){var n=P.useContext(dR);n==null&&gi();var r=n[t];return r==null&&gi(),r},bR=function(t){var n=P.useContext(hR);n==null&&gi();var r=n[t];return r==null&&gi(),r},uK=function(){var t=P.useContext(pR);return t},xR=function(){return P.useContext(yR)},SR=function(){return P.useContext(vR)};function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}function sK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wR(r.key),r)}}function fK(e,t,n){return t&&cK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dK(e,t,n){return t=zf(t),hK(e,_R()?Reflect.construct(t,n||[],zf(e).constructor):t.apply(e,n))}function hK(e,t){if(t&&(qo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pK(e)}function pK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_R=function(){return!!e})()}function zf(e){return zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zf(e)}function mK(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&&vb(e,t)}function vb(e,t){return vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vb(e,t)}function CN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function MN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CN(Object(n),!0).forEach(function(r){Bx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bx(e,t,n){return t=wR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wR(e){var t=vK(e,"string");return qo(t)=="symbol"?t:t+""}function vK(e,t){if(qo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yK(e,t){return SK(e)||xK(e,t)||bK(e,t)||gK()}function gK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
128
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bK(e,t){if(e){if(typeof e=="string")return RN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RN(e,t)}}function RN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function SK(e){if(Array.isArray(e))return e}function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yb.apply(this,arguments)}var _K=function(t,n){var r;return H.isValidElement(t)?r=H.cloneElement(t,n):_e(t)?r=t(n):r=H.createElement("line",yb({},n,{className:"recharts-reference-line-line"})),r},wK=function(t,n,r,o,l,s,f,d,h){var v=l.x,m=l.y,b=l.width,S=l.height;if(r){var w=h.y,_=t.y.apply(w,{position:s});if(lr(h,"discard")&&!t.y.isInRange(_))return null;var x=[{x:v+b,y:_},{x:v,y:_}];return d==="left"?x.reverse():x}if(n){var j=h.x,E=t.x.apply(j,{position:s});if(lr(h,"discard")&&!t.x.isInRange(E))return null;var T=[{x:E,y:m+S},{x:E,y:m}];return f==="top"?T.reverse():T}if(o){var N=h.segment,A=N.map(function(C){return t.apply(C,{position:s})});return lr(h,"discard")&&bY(A,function(C){return!t.isInRange(C)})?null:A}return null};function OK(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,l=e.yAxisId,s=e.shape,f=e.className,d=e.alwaysShow,h=lK(),v=gR(o),m=bR(l),b=uK();if(!h||!b)return null;qr(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var S=qx({x:v.scale,y:m.scale}),w=Et(t),_=Et(n),x=r&&r.length===2,j=wK(S,w,_,x,b,e.position,v.orientation,m.orientation,e);if(!j)return null;var E=yK(j,2),T=E[0],N=T.x,A=T.y,C=E[1],M=C.x,D=C.y,$=lr(e,"hidden")?"url(#".concat(h,")"):void 0,B=MN(MN({clipPath:$},ye(e,!0)),{},{x1:N,y1:A,x2:M,y2:D});return H.createElement(Le,{className:Ce("recharts-reference-line",f)},_K(s,B),Rt.renderCallByParent(e,WY({x1:N,y1:A,x2:M,y2:D})))}var zx=(function(e){function t(){return sK(this,t),dK(this,t,arguments)}return mK(t,e),fK(t,[{key:"render",value:function(){return H.createElement(OK,this.props)}}])})(H.Component);Bx(zx,"displayName","ReferenceLine");Bx(zx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function gb(){return gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gb.apply(this,arguments)}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 PN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function DN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(n),!0).forEach(function(r){Md(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AR(r.key),r)}}function EK(e,t,n){return t&&jK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TK(e,t,n){return t=Uf(t),NK(e,OR()?Reflect.construct(t,n||[],Uf(e).constructor):t.apply(e,n))}function NK(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 CK(e)}function CK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OR=function(){return!!e})()}function Uf(e){return Uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uf(e)}function MK(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&&bb(e,t)}function bb(e,t){return bb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},bb(e,t)}function Md(e,t,n){return t=AR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AR(e){var t=RK(e,"string");return Bo(t)=="symbol"?t:t+""}function RK(e,t){if(Bo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PK=function(t){var n=t.x,r=t.y,o=t.xAxis,l=t.yAxis,s=qx({x:o.scale,y:l.scale}),f=s.apply({x:n,y:r},{bandAware:!0});return lr(t,"discard")&&!s.isInRange(f)?null:f},Rd=(function(e){function t(){return AK(this,t),TK(this,t,arguments)}return MK(t,e),EK(t,[{key:"render",value:function(){var r=this.props,o=r.x,l=r.y,s=r.r,f=r.alwaysShow,d=r.clipPathId,h=Et(o),v=Et(l);if(qr(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!h||!v)return null;var m=PK(this.props);if(!m)return null;var b=m.x,S=m.y,w=this.props,_=w.shape,x=w.className,j=lr(this.props,"hidden")?"url(#".concat(d,")"):void 0,E=DN(DN({clipPath:j},ye(this.props,!0)),{},{cx:b,cy:S});return H.createElement(Le,{className:Ce("recharts-reference-dot",x)},t.renderDot(_,E),Rt.renderCallByParent(this.props,{x:b-s,y:S-s,width:2*s,height:2*s}))}}])})(H.Component);Md(Rd,"displayName","ReferenceDot");Md(Rd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Md(Rd,"renderDot",function(e,t){var n;return H.isValidElement(e)?n=H.cloneElement(e,t):_e(e)?n=e(t):n=H.createElement(wd,gb({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xb.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 kN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kN(Object(n),!0).forEach(function(r){Pd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ER(r.key),r)}}function $K(e,t,n){return t&&kK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LK(e,t,n){return t=If(t),qK(e,jR()?Reflect.construct(t,n||[],If(e).constructor):t.apply(e,n))}function qK(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 BK(e)}function BK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jR=function(){return!!e})()}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function zK(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&&Sb(e,t)}function Sb(e,t){return Sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Sb(e,t)}function Pd(e,t,n){return t=ER(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ER(e){var t=UK(e,"string");return zo(t)=="symbol"?t:t+""}function UK(e,t){if(zo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var IK=function(t,n,r,o,l){var s=l.x1,f=l.x2,d=l.y1,h=l.y2,v=l.xAxis,m=l.yAxis;if(!v||!m)return null;var b=qx({x:v.scale,y:m.scale}),S={x:t?b.x.apply(s,{position:"start"}):b.x.rangeMin,y:r?b.y.apply(d,{position:"start"}):b.y.rangeMin},w={x:n?b.x.apply(f,{position:"end"}):b.x.rangeMax,y:o?b.y.apply(h,{position:"end"}):b.y.rangeMax};return lr(l,"discard")&&(!b.isInRange(S)||!b.isInRange(w))?null:cR(S,w)},Dd=(function(e){function t(){return DK(this,t),LK(this,t,arguments)}return zK(t,e),$K(t,[{key:"render",value:function(){var r=this.props,o=r.x1,l=r.x2,s=r.y1,f=r.y2,d=r.className,h=r.alwaysShow,v=r.clipPathId;qr(h===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Et(o),b=Et(l),S=Et(s),w=Et(f),_=this.props.shape;if(!m&&!b&&!S&&!w&&!_)return null;var x=IK(m,b,S,w,this.props);if(!x&&!_)return null;var j=lr(this.props,"hidden")?"url(#".concat(v,")"):void 0;return H.createElement(Le,{className:Ce("recharts-reference-area",d)},t.renderRect(_,$N($N({clipPath:j},ye(this.props,!0)),x)),Rt.renderCallByParent(this.props,x))}}])})(H.Component);Pd(Dd,"displayName","ReferenceArea");Pd(Dd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Pd(Dd,"renderRect",function(e,t){var n;return H.isValidElement(e)?n=H.cloneElement(e,t):_e(e)?n=e(t):n=H.createElement(Lx,xb({},t,{className:"recharts-reference-area-rect"})),n});function TR(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function HK(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return QY(r,n)}function GK(e,t,n){var r=n==="width",o=e.x,l=e.y,s=e.width,f=e.height;return t===1?{start:r?o:l,end:r?o+s:l+f}:{start:r?o+s:l+f,end:r?o:l}}function Hf(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var l=n();return e*(t-e*l/2-r)>=0&&e*(t+e*l/2-o)<=0}function YK(e,t){return TR(e,t+1)}function KK(e,t,n,r,o){for(var l=(r||[]).slice(),s=t.start,f=t.end,d=0,h=1,v=s,m=function(){var w=r==null?void 0:r[d];if(w===void 0)return{v:TR(r,h)};var _=d,x,j=function(){return x===void 0&&(x=n(w,_)),x},E=w.coordinate,T=d===0||Hf(e,E,j,v,f);T||(d=0,v=s,h+=1),T&&(v=E+e*(j()/2+o),d+=h)},b;h<=l.length;)if(b=m(),b)return b.v;return[]}function es(e){"@babel/helpers - typeof";return es=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},es(e)}function LN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LN(Object(n),!0).forEach(function(r){XK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XK(e,t,n){return t=VK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VK(e){var t=FK(e,"string");return es(t)=="symbol"?t:t+""}function FK(e,t){if(es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WK(e,t,n,r,o){for(var l=(r||[]).slice(),s=l.length,f=t.start,d=t.end,h=function(b){var S=l[b],w,_=function(){return w===void 0&&(w=n(S,b)),w};if(b===s-1){var x=e*(S.coordinate+e*_()/2-d);l[b]=S=Ht(Ht({},S),{},{tickCoord:x>0?S.coordinate-x*e:S.coordinate})}else l[b]=S=Ht(Ht({},S),{},{tickCoord:S.coordinate});var j=Hf(e,S.tickCoord,_,f,d);j&&(d=S.tickCoord-e*(_()/2+o),l[b]=Ht(Ht({},S),{},{isShow:!0}))},v=s-1;v>=0;v--)h(v);return l}function ZK(e,t,n,r,o,l){var s=(r||[]).slice(),f=s.length,d=t.start,h=t.end;if(l){var v=r[f-1],m=n(v,f-1),b=e*(v.coordinate+e*m/2-h);s[f-1]=v=Ht(Ht({},v),{},{tickCoord:b>0?v.coordinate-b*e:v.coordinate});var S=Hf(e,v.tickCoord,function(){return m},d,h);S&&(h=v.tickCoord-e*(m/2+o),s[f-1]=Ht(Ht({},v),{},{isShow:!0}))}for(var w=l?f-1:f,_=function(E){var T=s[E],N,A=function(){return N===void 0&&(N=n(T,E)),N};if(E===0){var C=e*(T.coordinate-e*A()/2-d);s[E]=T=Ht(Ht({},T),{},{tickCoord:C<0?T.coordinate-C*e:T.coordinate})}else s[E]=T=Ht(Ht({},T),{},{tickCoord:T.coordinate});var M=Hf(e,T.tickCoord,A,d,h);M&&(d=T.tickCoord+e*(A()/2+o),s[E]=Ht(Ht({},T),{},{isShow:!0}))},x=0;x<w;x++)_(x);return s}function QK(e,t,n){var r=e.tick,o=e.ticks,l=e.viewBox,s=e.minTickGap,f=e.orientation,d=e.interval,h=e.tickFormatter,v=e.unit,m=e.angle;if(!o||!o.length||!r)return[];if(fe(d)||xi.isSsr)return YK(o,typeof d=="number"&&fe(d)?d:0);var b=[],S=f==="top"||f==="bottom"?"width":"height",w=v&&S==="width"?mu(v,{fontSize:t,letterSpacing:n}):{width:0,height:0},_=function(T,N){var A=_e(h)?h(T.value,N):T.value;return S==="width"?HK(mu(A,{fontSize:t,letterSpacing:n}),w,m):mu(A,{fontSize:t,letterSpacing:n})[S]},x=o.length>=2?Yt(o[1].coordinate-o[0].coordinate):1,j=GK(l,x,S);return d==="equidistantPreserveStart"?KK(x,j,_,o,s):(d==="preserveStart"||d==="preserveStartEnd"?b=ZK(x,j,_,o,s,d==="preserveStartEnd"):b=WK(x,j,_,o,s),b.filter(function(E){return E.isShow}))}var JK=["viewBox"],eX=["viewBox"],tX=["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 mo(){return mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mo.apply(this,arguments)}function qN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qN(Object(n),!0).forEach(function(r){Ux(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r0(e,t){if(e==null)return{};var n=nX(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CR(r.key),r)}}function aX(e,t,n){return t&&BN(e.prototype,t),n&&BN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iX(e,t,n){return t=Gf(t),oX(e,NR()?Reflect.construct(t,n||[],Gf(e).constructor):t.apply(e,n))}function oX(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 lX(e)}function lX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NR=function(){return!!e})()}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gf(e)}function uX(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&&_b(e,t)}function _b(e,t){return _b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_b(e,t)}function Ux(e,t,n){return t=CR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CR(e){var t=sX(e,"string");return Uo(t)=="symbol"?t:t+""}function sX(e,t){if(Uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kd=(function(e){function t(n){var r;return rX(this,t),r=iX(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return uX(t,e),aX(t,[{key:"shouldComponentUpdate",value:function(r,o){var l=r.viewBox,s=r0(r,JK),f=this.props,d=f.viewBox,h=r0(f,eX);return!yo(l,d)||!yo(s,h)||!yo(o,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var o=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];o&&this.setState({fontSize:window.getComputedStyle(o).fontSize,letterSpacing:window.getComputedStyle(o).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var o=this.props,l=o.x,s=o.y,f=o.width,d=o.height,h=o.orientation,v=o.tickSize,m=o.mirror,b=o.tickMargin,S,w,_,x,j,E,T=m?-1:1,N=r.tickSize||v,A=fe(r.tickCoord)?r.tickCoord:r.coordinate;switch(h){case"top":S=w=r.coordinate,x=s+ +!m*d,_=x-T*N,E=_-T*b,j=A;break;case"left":_=x=r.coordinate,w=l+ +!m*f,S=w-T*N,j=S-T*b,E=A;break;case"right":_=x=r.coordinate,w=l+ +m*f,S=w+T*N,j=S+T*b,E=A;break;default:S=w=r.coordinate,x=s+ +m*d,_=x+T*N,E=_+T*b,j=A;break}return{line:{x1:S,y1:_,x2:w,y2:x},tick:{x:j,y:E}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,l=r.mirror,s;switch(o){case"left":s=l?"start":"end";break;case"right":s=l?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,l=r.mirror,s="end";switch(o){case"left":case"right":s="middle";break;case"top":s=l?"start":"end";break;default:s=l?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,l=r.y,s=r.width,f=r.height,d=r.orientation,h=r.mirror,v=r.axisLine,m=Ot(Ot(Ot({},ye(this.props,!1)),ye(v,!1)),{},{fill:"none"});if(d==="top"||d==="bottom"){var b=+(d==="top"&&!h||d==="bottom"&&h);m=Ot(Ot({},m),{},{x1:o,y1:l+b*f,x2:o+s,y2:l+b*f})}else{var S=+(d==="left"&&!h||d==="right"&&h);m=Ot(Ot({},m),{},{x1:o+S*s,y1:l,x2:o+S*s,y2:l+f})}return H.createElement("line",mo({},m,{className:Ce("recharts-cartesian-axis-line",gn(v,"className"))}))}},{key:"renderTicks",value:function(r,o,l){var s=this,f=this.props,d=f.tickLine,h=f.stroke,v=f.tick,m=f.tickFormatter,b=f.unit,S=QK(Ot(Ot({},this.props),{},{ticks:r}),o,l),w=this.getTickTextAnchor(),_=this.getTickVerticalAnchor(),x=ye(this.props,!1),j=ye(v,!1),E=Ot(Ot({},x),{},{fill:"none"},ye(d,!1)),T=S.map(function(N,A){var C=s.getTickLineCoord(N),M=C.line,D=C.tick,$=Ot(Ot(Ot(Ot({textAnchor:w,verticalAnchor:_},x),{},{stroke:"none",fill:h},j),D),{},{index:A,payload:N,visibleTicksCount:S.length,tickFormatter:m});return H.createElement(Le,mo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(N.value,"-").concat(N.coordinate,"-").concat(N.tickCoord)},mi(s.props,N,A)),d&&H.createElement("line",mo({},E,M,{className:Ce("recharts-cartesian-axis-tick-line",gn(d,"className"))})),v&&t.renderTickItem(v,$,"".concat(_e(m)?m(N.value,A):N.value).concat(b||"")))});return H.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,o=this.props,l=o.axisLine,s=o.width,f=o.height,d=o.ticksGenerator,h=o.className,v=o.hide;if(v)return null;var m=this.props,b=m.ticks,S=r0(m,tX),w=b;return _e(d)&&(w=b&&b.length>0?d(this.props):d(S)),s<=0||f<=0||!w||!w.length?null:H.createElement(Le,{className:Ce("recharts-cartesian-axis",h),ref:function(x){r.layerReference=x}},l&&this.renderAxisLine(),this.renderTicks(w,this.state.fontSize,this.state.letterSpacing),Rt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,l){var s,f=Ce(o.className,"recharts-cartesian-axis-tick-value");return H.isValidElement(r)?s=H.cloneElement(r,Ot(Ot({},o),{},{className:f})):_e(r)?s=r(Ot(Ot({},o),{},{className:f})):s=H.createElement(vi,mo({},o,{className:"recharts-cartesian-axis-tick-value"}),l),s}}])})(P.Component);Ux(kd,"displayName","CartesianAxis");Ux(kd,"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 cX=["layout","type","stroke","connectNulls","isRange","ref"],fX=["key"],MR;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 RR(e,t){if(e==null)return{};var n=dX(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},si.apply(this,arguments)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zN(Object(n),!0).forEach(function(r){ir(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DR(r.key),r)}}function pX(e,t,n){return t&&UN(e.prototype,t),n&&UN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mX(e,t,n){return t=Yf(t),vX(e,PR()?Reflect.construct(t,n||[],Yf(e).constructor):t.apply(e,n))}function vX(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 yX(e)}function yX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PR=function(){return!!e})()}function Yf(e){return Yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yf(e)}function gX(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&&wb(e,t)}function wb(e,t){return wb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},wb(e,t)}function ir(e,t,n){return t=DR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DR(e){var t=bX(e,"string");return Io(t)=="symbol"?t:t+""}function bX(e,t){if(Io(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Io(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Da=(function(e){function t(){var n;hX(this,t);for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];return n=mX(this,t,[].concat(o)),ir(n,"state",{isAnimationFinished:!0}),ir(n,"id",Jo("recharts-area-")),ir(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),_e(s)&&s()}),ir(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),_e(s)&&s()}),n}return gX(t,e),pX(t,[{key:"renderDots",value:function(r,o,l){var s=this.props.isAnimationActive,f=this.state.isAnimationFinished;if(s&&!f)return null;var d=this.props,h=d.dot,v=d.points,m=d.dataKey,b=ye(this.props,!1),S=ye(h,!0),w=v.map(function(x,j){var E=_a(_a(_a({key:"dot-".concat(j),r:3},b),S),{},{index:j,cx:x.x,cy:x.y,dataKey:m,value:x.value,payload:x.payload,points:v});return t.renderDotItem(h,E)}),_={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(l,")"):null};return H.createElement(Le,si({className:"recharts-area-dots"},_),w)}},{key:"renderHorizontalRect",value:function(r){var o=this.props,l=o.baseLine,s=o.points,f=o.strokeWidth,d=s[0].x,h=s[s.length-1].x,v=r*Math.abs(d-h),m=Oa(s.map(function(b){return b.y||0}));return fe(l)&&typeof l=="number"?m=Math.max(l,m):l&&Array.isArray(l)&&l.length&&(m=Math.max(Oa(l.map(function(b){return b.y||0})),m)),fe(m)?H.createElement("rect",{x:d<h?d:d-v,y:0,width:v,height:Math.floor(m+(f?parseInt("".concat(f),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var o=this.props,l=o.baseLine,s=o.points,f=o.strokeWidth,d=s[0].y,h=s[s.length-1].y,v=r*Math.abs(d-h),m=Oa(s.map(function(b){return b.x||0}));return fe(l)&&typeof l=="number"?m=Math.max(l,m):l&&Array.isArray(l)&&l.length&&(m=Math.max(Oa(l.map(function(b){return b.x||0})),m)),fe(m)?H.createElement("rect",{x:0,y:d<h?d:d-v,width:m+(f?parseInt("".concat(f),10):1),height:Math.floor(v)}):null}},{key:"renderClipRect",value:function(r){var o=this.props.layout;return o==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,o,l,s){var f=this.props,d=f.layout,h=f.type,v=f.stroke,m=f.connectNulls,b=f.isRange;f.ref;var S=RR(f,cX);return H.createElement(Le,{clipPath:l?"url(#clipPath-".concat(s,")"):null},H.createElement(xo,si({},ye(S,!0),{points:r,connectNulls:m,type:h,baseLine:o,layout:d,stroke:"none",className:"recharts-area-area"})),v!=="none"&&H.createElement(xo,si({},ye(this.props,!1),{className:"recharts-area-curve",layout:d,type:h,connectNulls:m,fill:"none",points:r})),v!=="none"&&b&&H.createElement(xo,si({},ye(this.props,!1),{className:"recharts-area-curve",layout:d,type:h,connectNulls:m,fill:"none",points:o})))}},{key:"renderAreaWithAnimation",value:function(r,o){var l=this,s=this.props,f=s.points,d=s.baseLine,h=s.isAnimationActive,v=s.animationBegin,m=s.animationDuration,b=s.animationEasing,S=s.animationId,w=this.state,_=w.prevPoints,x=w.prevBaseLine;return H.createElement(sr,{begin:v,duration:m,isActive:h,easing:b,from:{t:0},to:{t:1},key:"area-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var E=j.t;if(_){var T=_.length/f.length,N=f.map(function(D,$){var B=Math.floor($*T);if(_[B]){var I=_[B],q=tn(I.x,D.x),Y=tn(I.y,D.y);return _a(_a({},D),{},{x:q(E),y:Y(E)})}return D}),A;if(fe(d)&&typeof d=="number"){var C=tn(x,d);A=C(E)}else if(Ae(d)||Qo(d)){var M=tn(x,0);A=M(E)}else A=d.map(function(D,$){var B=Math.floor($*T);if(x[B]){var I=x[B],q=tn(I.x,D.x),Y=tn(I.y,D.y);return _a(_a({},D),{},{x:q(E),y:Y(E)})}return D});return l.renderAreaStatically(N,A,r,o)}return H.createElement(Le,null,H.createElement("defs",null,H.createElement("clipPath",{id:"animationClipPath-".concat(o)},l.renderClipRect(E))),H.createElement(Le,{clipPath:"url(#animationClipPath-".concat(o,")")},l.renderAreaStatically(f,d,r,o)))})}},{key:"renderArea",value:function(r,o){var l=this.props,s=l.points,f=l.baseLine,d=l.isAnimationActive,h=this.state,v=h.prevPoints,m=h.prevBaseLine,b=h.totalLength;return d&&s&&s.length&&(!v&&b>0||!No(v,s)||!No(m,f))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(s,f,r,o)}},{key:"render",value:function(){var r,o=this.props,l=o.hide,s=o.dot,f=o.points,d=o.className,h=o.top,v=o.left,m=o.xAxis,b=o.yAxis,S=o.width,w=o.height,_=o.isAnimationActive,x=o.id;if(l||!f||!f.length)return null;var j=this.state.isAnimationFinished,E=f.length===1,T=Ce("recharts-area",d),N=m&&m.allowDataOverflow,A=b&&b.allowDataOverflow,C=N||A,M=Ae(x)?this.id:x,D=(r=ye(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},$=D.r,B=$===void 0?3:$,I=D.strokeWidth,q=I===void 0?2:I,Y=hk(s)?s:{},K=Y.clipDot,W=K===void 0?!0:K,k=B*2+q;return H.createElement(Le,{className:T},N||A?H.createElement("defs",null,H.createElement("clipPath",{id:"clipPath-".concat(M)},H.createElement("rect",{x:N?v:v-S/2,y:A?h:h-w/2,width:N?S:S*2,height:A?w:w*2})),!W&&H.createElement("clipPath",{id:"clipPath-dots-".concat(M)},H.createElement("rect",{x:v-k/2,y:h-k/2,width:S+k,height:w+k}))):null,E?null:this.renderArea(C,M),(s||E)&&this.renderDots(C,W,M),(!_||j)&&zr.renderCallByParent(this.props,f))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(P.PureComponent);MR=Da;ir(Da,"displayName","Area");ir(Da,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!xi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ir(Da,"getBaseValue",function(e,t,n,r){var o=e.layout,l=e.baseValue,s=t.props.baseValue,f=s??l;if(fe(f)&&typeof f=="number")return f;var d=o==="horizontal"?r:n,h=d.scale.domain();if(d.type==="number"){var v=Math.max(h[0],h[1]),m=Math.min(h[0],h[1]);return f==="dataMin"?m:f==="dataMax"||v<0?v:Math.max(Math.min(h[0],h[1]),0)}return f==="dataMin"?h[0]:f==="dataMax"?h[1]:h[0]});ir(Da,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,l=e.xAxisTicks,s=e.yAxisTicks,f=e.bandSize,d=e.dataKey,h=e.stackedData,v=e.dataStartIndex,m=e.displayedData,b=e.offset,S=t.layout,w=h&&h.length,_=MR.getBaseValue(t,n,r,o),x=S==="horizontal",j=!1,E=m.map(function(N,A){var C;w?C=h[v+A]:(C=jt(N,d),Array.isArray(C)?j=!0:C=[_,C]);var M=C[1]==null||w&&jt(N,d)==null;return x?{x:FE({axis:r,ticks:l,bandSize:f,entry:N,index:A}),y:M?null:o.scale(C[1]),value:C,payload:N}:{x:M?null:r.scale(C[1]),y:FE({axis:o,ticks:s,bandSize:f,entry:N,index:A}),value:C,payload:N}}),T;return w||j?T=E.map(function(N){var A=Array.isArray(N.value)?N.value[0]:null;return x?{x:N.x,y:A!=null&&N.y!=null?o.scale(A):null}:{x:A!=null?r.scale(A):null,y:N.y}}):T=x?o.scale(_):r.scale(_),_a({points:E,baseLine:T,layout:S,isRange:j},b)});ir(Da,"renderDotItem",function(e,t){var n;if(H.isValidElement(e))n=H.cloneElement(e,t);else if(_e(e))n=e(t);else{var r=Ce("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,l=RR(t,fX);n=H.createElement(wd,si({},l,{key:o,className:r}))}return n});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 xX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LR(r.key),r)}}function _X(e,t,n){return t&&SX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wX(e,t,n){return t=Kf(t),OX(e,kR()?Reflect.construct(t,n||[],Kf(e).constructor):t.apply(e,n))}function OX(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 AX(e)}function AX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kR=function(){return!!e})()}function Kf(e){return Kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kf(e)}function jX(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&&Ob(e,t)}function Ob(e,t){return Ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ob(e,t)}function $R(e,t,n){return t=LR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LR(e){var t=EX(e,"string");return Ho(t)=="symbol"?t:t+""}function EX(e,t){if(Ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ab.apply(this,arguments)}function TX(e){var t=e.xAxisId,n=xR(),r=SR(),o=gR(t);return o==null?null:P.createElement(kd,Ab({},o,{className:Ce("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return ui(s,!0)}}))}var al=(function(e){function t(){return xX(this,t),wX(this,t,arguments)}return jX(t,e),_X(t,[{key:"render",value:function(){return P.createElement(TX,this.props)}}])})(P.Component);$R(al,"displayName","XAxis");$R(al,"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 Go(e){"@babel/helpers - typeof";return Go=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},Go(e)}function NX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zR(r.key),r)}}function MX(e,t,n){return t&&CX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RX(e,t,n){return t=Xf(t),PX(e,qR()?Reflect.construct(t,n||[],Xf(e).constructor):t.apply(e,n))}function PX(e,t){if(t&&(Go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DX(e)}function DX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qR=function(){return!!e})()}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xf(e)}function kX(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&&jb(e,t)}function jb(e,t){return jb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jb(e,t)}function BR(e,t,n){return t=zR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zR(e){var t=$X(e,"string");return Go(t)=="symbol"?t:t+""}function $X(e,t){if(Go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eb.apply(this,arguments)}var LX=function(t){var n=t.yAxisId,r=xR(),o=SR(),l=bR(n);return l==null?null:P.createElement(kd,Eb({},l,{className:Ce("recharts-".concat(l.axisType," ").concat(l.axisType),l.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(f){return ui(f,!0)}}))},il=(function(e){function t(){return NX(this,t),RX(this,t,arguments)}return kX(t,e),MX(t,[{key:"render",value:function(){return P.createElement(LX,this.props)}}])})(P.Component);BR(il,"displayName","YAxis");BR(il,"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 IN(e){return UX(e)||zX(e)||BX(e)||qX()}function qX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
129
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BX(e,t){if(e){if(typeof e=="string")return Tb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tb(e,t)}}function zX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UX(e){if(Array.isArray(e))return Tb(e)}function Tb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Nb=function(t,n,r,o,l){var s=$n(t,zx),f=$n(t,Rd),d=[].concat(IN(s),IN(f)),h=$n(t,Dd),v="".concat(o,"Id"),m=o[0],b=n;if(d.length&&(b=d.reduce(function(_,x){if(x.props[v]===r&&lr(x.props,"extendDomain")&&fe(x.props[m])){var j=x.props[m];return[Math.min(_[0],j),Math.max(_[1],j)]}return _},b)),h.length){var S="".concat(m,"1"),w="".concat(m,"2");b=h.reduce(function(_,x){if(x.props[v]===r&&lr(x.props,"extendDomain")&&fe(x.props[S])&&fe(x.props[w])){var j=x.props[S],E=x.props[w];return[Math.min(_[0],j,E),Math.max(_[1],j,E)]}return _},b)}return l&&l.length&&(b=l.reduce(function(_,x){return fe(x)?[Math.min(_[0],x),Math.max(_[1],x)]:_},b)),b},a0={exports:{}},HN;function IX(){return HN||(HN=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(d,h,v){this.fn=d,this.context=h,this.once=v||!1}function l(d,h,v,m,b){if(typeof v!="function")throw new TypeError("The listener must be a function");var S=new o(v,m||d,b),w=n?n+h:h;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],S]:d._events[w].push(S):(d._events[w]=S,d._eventsCount++),d}function s(d,h){--d._eventsCount===0?d._events=new r:delete d._events[h]}function f(){this._events=new r,this._eventsCount=0}f.prototype.eventNames=function(){var h=[],v,m;if(this._eventsCount===0)return h;for(m in v=this._events)t.call(v,m)&&h.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(v)):h},f.prototype.listeners=function(h){var v=n?n+h:h,m=this._events[v];if(!m)return[];if(m.fn)return[m.fn];for(var b=0,S=m.length,w=new Array(S);b<S;b++)w[b]=m[b].fn;return w},f.prototype.listenerCount=function(h){var v=n?n+h:h,m=this._events[v];return m?m.fn?1:m.length:0},f.prototype.emit=function(h,v,m,b,S,w){var _=n?n+h:h;if(!this._events[_])return!1;var x=this._events[_],j=arguments.length,E,T;if(x.fn){switch(x.once&&this.removeListener(h,x.fn,void 0,!0),j){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,v),!0;case 3:return x.fn.call(x.context,v,m),!0;case 4:return x.fn.call(x.context,v,m,b),!0;case 5:return x.fn.call(x.context,v,m,b,S),!0;case 6:return x.fn.call(x.context,v,m,b,S,w),!0}for(T=1,E=new Array(j-1);T<j;T++)E[T-1]=arguments[T];x.fn.apply(x.context,E)}else{var N=x.length,A;for(T=0;T<N;T++)switch(x[T].once&&this.removeListener(h,x[T].fn,void 0,!0),j){case 1:x[T].fn.call(x[T].context);break;case 2:x[T].fn.call(x[T].context,v);break;case 3:x[T].fn.call(x[T].context,v,m);break;case 4:x[T].fn.call(x[T].context,v,m,b);break;default:if(!E)for(A=1,E=new Array(j-1);A<j;A++)E[A-1]=arguments[A];x[T].fn.apply(x[T].context,E)}}return!0},f.prototype.on=function(h,v,m){return l(this,h,v,m,!1)},f.prototype.once=function(h,v,m){return l(this,h,v,m,!0)},f.prototype.removeListener=function(h,v,m,b){var S=n?n+h:h;if(!this._events[S])return this;if(!v)return s(this,S),this;var w=this._events[S];if(w.fn)w.fn===v&&(!b||w.once)&&(!m||w.context===m)&&s(this,S);else{for(var _=0,x=[],j=w.length;_<j;_++)(w[_].fn!==v||b&&!w[_].once||m&&w[_].context!==m)&&x.push(w[_]);x.length?this._events[S]=x.length===1?x[0]:x:s(this,S)}return this},f.prototype.removeAllListeners=function(h){var v;return h?(v=n?n+h:h,this._events[v]&&s(this,v)):(this._events=new r,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=n,f.EventEmitter=f,e.exports=f})(a0)),a0.exports}var HX=IX();const GX=Ze(HX);var i0=new GX,o0="recharts.syncMouseEvents";function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}function YX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UR(r.key),r)}}function XX(e,t,n){return t&&KX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l0(e,t,n){return t=UR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UR(e){var t=VX(e,"string");return ts(t)=="symbol"?t:t+""}function VX(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var FX=(function(){function e(){YX(this,e),l0(this,"activeIndex",0),l0(this,"coordinateList",[]),l0(this,"layout","horizontal")}return XX(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,l=o===void 0?null:o,s=n.container,f=s===void 0?null:s,d=n.layout,h=d===void 0?null:d,v=n.offset,m=v===void 0?null:v,b=n.mouseHandlerCallback,S=b===void 0?null:b;this.coordinateList=(r=l??this.coordinateList)!==null&&r!==void 0?r:[],this.container=f??this.container,this.layout=h??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=S??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(n){if(this.coordinateList.length!==0)switch(n.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(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var o=this.container.getBoundingClientRect(),l=o.x,s=o.y,f=o.height,d=this.coordinateList[this.activeIndex].coordinate,h=((n=window)===null||n===void 0?void 0:n.scrollX)||0,v=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=l+d+h,b=s+this.offset.top+f/2+v;this.mouseHandlerCallback({pageX:m,pageY:b})}}}])})();function WX(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],o=e==null?void 0:e[1];if(r&&o&&fe(r)&&fe(o))return!0}return!1}function ZX(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function IR(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,l=e.endAngle,s=nt(t,n,r,o),f=nt(t,n,r,l);return{points:[s,f],cx:t,cy:n,radius:r,startAngle:o,endAngle:l}}function QX(e,t,n){var r,o,l,s;if(e==="horizontal")r=t.x,l=r,o=n.top,s=n.top+n.height;else if(e==="vertical")o=t.y,s=o,r=n.left,l=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var f=t.cx,d=t.cy,h=t.innerRadius,v=t.outerRadius,m=t.angle,b=nt(f,d,h,m),S=nt(f,d,v,m);r=b.x,o=b.y,l=S.x,s=S.y}else return IR(t);return[{x:r,y:o},{x:l,y:s}]}function ns(e){"@babel/helpers - typeof";return ns=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},ns(e)}function GN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ic(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GN(Object(n),!0).forEach(function(r){JX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JX(e,t,n){return t=eV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eV(e){var t=tV(e,"string");return ns(t)=="symbol"?t:t+""}function tV(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nV(e){var t,n,r=e.element,o=e.tooltipEventType,l=e.isActive,s=e.activeCoordinate,f=e.activePayload,d=e.offset,h=e.activeTooltipIndex,v=e.tooltipAxisBandSize,m=e.layout,b=e.chartName,S=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!S||!l||!s||b!=="ScatterChart"&&o!=="axis")return null;var w,_=xo;if(b==="ScatterChart")w=s,_=HH;else if(b==="BarChart")w=ZX(m,s,d,v),_=Lx;else if(m==="radial"){var x=IR(s),j=x.cx,E=x.cy,T=x.radius,N=x.startAngle,A=x.endAngle;w={cx:j,cy:E,startAngle:N,endAngle:A,innerRadius:T,outerRadius:T},_=z3}else w={points:QX(m,s,d)},_=xo;var C=Ic(Ic(Ic(Ic({stroke:"#ccc",pointerEvents:"none"},d),w),ye(S,!1)),{},{payload:f,payloadIndex:h,className:Ce("recharts-tooltip-cursor",S.className)});return P.isValidElement(S)?P.cloneElement(S,C):P.createElement(_,C)}var rV=["item"],aV=["children","className","width","height","style","compact","title","desc"];function Yo(e){"@babel/helpers - typeof";return Yo=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},Yo(e)}function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(this,arguments)}function YN(e,t){return lV(e)||oV(e,t)||GR(e,t)||iV()}function iV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
130
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,f=[],d=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(d=(r=l.call(n)).done)&&(f.push(r.value),f.length!==t);d=!0);}catch(v){h=!0,o=v}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw o}}return f}}function lV(e){if(Array.isArray(e))return e}function KN(e,t){if(e==null)return{};var n=uV(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function sV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YR(r.key),r)}}function fV(e,t,n){return t&&cV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dV(e,t,n){return t=Vf(t),hV(e,HR()?Reflect.construct(t,n||[],Vf(e).constructor):t.apply(e,n))}function hV(e,t){if(t&&(Yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pV(e)}function pV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HR=function(){return!!e})()}function Vf(e){return Vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vf(e)}function mV(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&&Cb(e,t)}function Cb(e,t){return Cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Cb(e,t)}function Ko(e){return gV(e)||yV(e)||GR(e)||vV()}function vV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
131
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GR(e,t){if(e){if(typeof e=="string")return Mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mb(e,t)}}function yV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gV(e){if(Array.isArray(e))return Mb(e)}function Mb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XN(Object(n),!0).forEach(function(r){xe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xe(e,t,n){return t=YR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YR(e){var t=bV(e,"string");return Yo(t)=="symbol"?t:t+""}function bV(e,t){if(Yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xV={xAxis:["bottom","top"],yAxis:["left","right"]},SV={width:"100%",height:"100%"},KR={x:0,y:0};function Hc(e){return e}var _V=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},wV=function(t,n,r,o){var l=n.find(function(v){return v&&v.index===r});if(l){if(t==="horizontal")return{x:l.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:l.coordinate};if(t==="centric"){var s=l.coordinate,f=o.radius;return re(re(re({},o),nt(o.cx,o.cy,f,s)),{},{angle:s,radius:f})}var d=l.coordinate,h=o.angle;return re(re(re({},o),nt(o.cx,o.cy,d,h)),{},{angle:h,radius:d})}return KR},$d=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,l=n.dataEndIndex,s=(r??[]).reduce(function(f,d){var h=d.props.data;return h&&h.length?[].concat(Ko(f),Ko(h)):f},[]);return s.length>0?s:t&&t.length&&fe(o)&&fe(l)?t.slice(o,l+1):[]};function XR(e){return e==="number"?[0,"auto"]:void 0}var Rb=function(t,n,r,o){var l=t.graphicalItems,s=t.tooltipAxis,f=$d(n,t);return r<0||!l||!l.length||r>=f.length?null:l.reduce(function(d,h){var v,m=(v=h.props.data)!==null&&v!==void 0?v:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var b;if(s.dataKey&&!s.allowDuplicatedCategory){var S=m===void 0?f:m;b=Fc(S,s.dataKey,o)}else b=m&&m[r]||f[r];return b?[].concat(Ko(d),[D3(h,b)]):d},[])},VN=function(t,n,r,o){var l=o||{x:t.chartX,y:t.chartY},s=_V(l,r),f=t.orderedTooltipTicks,d=t.tooltipAxis,h=t.tooltipTicks,v=cU(s,f,h,d);if(v>=0&&h){var m=h[v]&&h[v].value,b=Rb(t,n,v,m),S=wV(r,f,v,l);return{activeTooltipIndex:v,activeLabel:m,activePayload:b,activeCoordinate:S}}return null},OV=function(t,n){var r=n.axes,o=n.graphicalItems,l=n.axisType,s=n.axisIdKey,f=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,v=t.layout,m=t.children,b=t.stackOffset,S=N3(v,l);return r.reduce(function(w,_){var x,j=_.type.defaultProps!==void 0?re(re({},_.type.defaultProps),_.props):_.props,E=j.type,T=j.dataKey,N=j.allowDataOverflow,A=j.allowDuplicatedCategory,C=j.scale,M=j.ticks,D=j.includeHidden,$=j[s];if(w[$])return w;var B=$d(t.data,{graphicalItems:o.filter(function(z){var te,ce=s in z.props?z.props[s]:(te=z.type.defaultProps)===null||te===void 0?void 0:te[s];return ce===$}),dataStartIndex:d,dataEndIndex:h}),I=B.length,q,Y,K;WX(j.domain,N,E)&&(q=X0(j.domain,null,N),S&&(E==="number"||C!=="auto")&&(K=yu(B,T,"category")));var W=XR(E);if(!q||q.length===0){var k,X=(k=j.domain)!==null&&k!==void 0?k:W;if(T){if(q=yu(B,T,E),E==="category"&&S){var F=rk(q);A&&F?(Y=q,q=kf(0,I)):A||(q=JE(X,q,_).reduce(function(z,te){return z.indexOf(te)>=0?z:[].concat(Ko(z),[te])},[]))}else if(E==="category")A?q=q.filter(function(z){return z!==""&&!Ae(z)}):q=JE(X,q,_).reduce(function(z,te){return z.indexOf(te)>=0||te===""||Ae(te)?z:[].concat(Ko(z),[te])},[]);else if(E==="number"){var oe=mU(B,o.filter(function(z){var te,ce,he=s in z.props?z.props[s]:(te=z.type.defaultProps)===null||te===void 0?void 0:te[s],ge="hide"in z.props?z.props.hide:(ce=z.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return he===$&&(D||!ge)}),T,l,v);oe&&(q=oe)}S&&(E==="number"||C!=="auto")&&(K=yu(B,T,"category"))}else S?q=kf(0,I):f&&f[$]&&f[$].hasStack&&E==="number"?q=b==="expand"?[0,1]:P3(f[$].stackGroups,d,h):q=T3(B,o.filter(function(z){var te=s in z.props?z.props[s]:z.type.defaultProps[s],ce="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return te===$&&(D||!ce)}),E,v,!0);if(E==="number")q=Nb(m,q,$,l,M),X&&(q=X0(X,q,N));else if(E==="category"&&X){var ue=X,L=q.every(function(z){return ue.indexOf(z)>=0});L&&(q=ue)}}return re(re({},w),{},xe({},$,re(re({},j),{},{axisType:l,domain:q,categoricalDomain:K,duplicateDomain:Y,originalDomain:(x=j.domain)!==null&&x!==void 0?x:W,isCategorical:S,layout:v})))},{})},AV=function(t,n){var r=n.graphicalItems,o=n.Axis,l=n.axisType,s=n.axisIdKey,f=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,v=t.layout,m=t.children,b=$d(t.data,{graphicalItems:r,dataStartIndex:d,dataEndIndex:h}),S=b.length,w=N3(v,l),_=-1;return r.reduce(function(x,j){var E=j.type.defaultProps!==void 0?re(re({},j.type.defaultProps),j.props):j.props,T=E[s],N=XR("number");if(!x[T]){_++;var A;return w?A=kf(0,S):f&&f[T]&&f[T].hasStack?(A=P3(f[T].stackGroups,d,h),A=Nb(m,A,T,l)):(A=X0(N,T3(b,r.filter(function(C){var M,D,$=s in C.props?C.props[s]:(M=C.type.defaultProps)===null||M===void 0?void 0:M[s],B="hide"in C.props?C.props.hide:(D=C.type.defaultProps)===null||D===void 0?void 0:D.hide;return $===T&&!B}),"number",v),o.defaultProps.allowDataOverflow),A=Nb(m,A,T,l)),re(re({},x),{},xe({},T,re(re({axisType:l},o.defaultProps),{},{hide:!0,orientation:gn(xV,"".concat(l,".").concat(_%2),null),domain:A,originalDomain:N,isCategorical:w,layout:v})))}return x},{})},jV=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,l=n.AxisComp,s=n.graphicalItems,f=n.stackGroups,d=n.dataStartIndex,h=n.dataEndIndex,v=t.children,m="".concat(o,"Id"),b=$n(v,l),S={};return b&&b.length?S=OV(t,{axes:b,graphicalItems:s,axisType:o,axisIdKey:m,stackGroups:f,dataStartIndex:d,dataEndIndex:h}):s&&s.length&&(S=AV(t,{Axis:l,graphicalItems:s,axisType:o,axisIdKey:m,stackGroups:f,dataStartIndex:d,dataEndIndex:h})),S},EV=function(t){var n=co(t),r=ui(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:sx(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:_f(n,r)}},FN=function(t){var n=t.children,r=t.defaultShowTooltip,o=mn(n,$o),l=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(l=o.props.startIndex),o.props.endIndex>=0&&(s=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:l,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},TV=function(t){return!t||!t.length?!1:t.some(function(n){var r=Lr(n&&n.type);return r&&r.indexOf("Bar")>=0})},WN=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"}},NV=function(t,n){var r=t.props,o=t.graphicalItems,l=t.xAxisMap,s=l===void 0?{}:l,f=t.yAxisMap,d=f===void 0?{}:f,h=r.width,v=r.height,m=r.children,b=r.margin||{},S=mn(m,$o),w=mn(m,ci),_=Object.keys(d).reduce(function(A,C){var M=d[C],D=M.orientation;return!M.mirror&&!M.hide?re(re({},A),{},xe({},D,A[D]+M.width)):A},{left:b.left||0,right:b.right||0}),x=Object.keys(s).reduce(function(A,C){var M=s[C],D=M.orientation;return!M.mirror&&!M.hide?re(re({},A),{},xe({},D,gn(A,"".concat(D))+M.height)):A},{top:b.top||0,bottom:b.bottom||0}),j=re(re({},x),_),E=j.bottom;S&&(j.bottom+=S.props.height||$o.defaultProps.height),w&&n&&(j=hU(j,o,r,n));var T=h-j.left-j.right,N=v-j.top-j.bottom;return re(re({brushBottom:E},j),{},{width:Math.max(T,0),height:Math.max(N,0)})},CV=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Ix=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,l=o===void 0?"axis":o,s=t.validateTooltipEventTypes,f=s===void 0?["axis"]:s,d=t.axisComponents,h=t.legendContent,v=t.formatAxisMap,m=t.defaultProps,b=function(j,E){var T=E.graphicalItems,N=E.stackGroups,A=E.offset,C=E.updateId,M=E.dataStartIndex,D=E.dataEndIndex,$=j.barSize,B=j.layout,I=j.barGap,q=j.barCategoryGap,Y=j.maxBarSize,K=WN(B),W=K.numericAxisName,k=K.cateAxisName,X=TV(T),F=[];return T.forEach(function(oe,ue){var L=$d(j.data,{graphicalItems:[oe],dataStartIndex:M,dataEndIndex:D}),z=oe.type.defaultProps!==void 0?re(re({},oe.type.defaultProps),oe.props):oe.props,te=z.dataKey,ce=z.maxBarSize,he=z["".concat(W,"Id")],ge=z["".concat(k,"Id")],Me={},Ie=d.reduce(function(Un,dr){var ol=E["".concat(dr.axisType,"Map")],Ut=z["".concat(dr.axisType,"Id")];ol&&ol[Ut]||dr.axisType==="zAxis"||gi();var fs=ol[Ut];return re(re({},Un),{},xe(xe({},dr.axisType,fs),"".concat(dr.axisType,"Ticks"),ui(fs)))},Me),se=Ie[k],Se=Ie["".concat(k,"Ticks")],we=N&&N[he]&&N[he].hasStack&&OU(oe,N[he].stackGroups),le=Lr(oe.type).indexOf("Bar")>=0,rt=_f(se,Se),Ee=[],ct=X&&fU({barSize:$,stackGroups:N,totalSize:CV(Ie,k)});if(le){var ft,zt,zn=Ae(ce)?Y:ce,Zn=(ft=(zt=_f(se,Se,!0))!==null&&zt!==void 0?zt:zn)!==null&&ft!==void 0?ft:0;Ee=dU({barGap:I,barCategoryGap:q,bandSize:Zn!==rt?Zn:rt,sizeList:ct[ge],maxBarSize:zn}),Zn!==rt&&(Ee=Ee.map(function(Un){return re(re({},Un),{},{position:re(re({},Un.position),{},{offset:Un.position.offset-Zn/2})})}))}var Wr=oe&&oe.type&&oe.type.getComposedData;Wr&&F.push({props:re(re({},Wr(re(re({},Ie),{},{displayedData:L,props:j,dataKey:te,item:oe,bandSize:rt,barPosition:Ee,offset:A,stackedData:we,layout:B,dataStartIndex:M,dataEndIndex:D}))),{},xe(xe(xe({key:oe.key||"item-".concat(ue)},W,Ie[W]),k,Ie[k]),"animationId",C)),childIndex:vk(oe,j.children),item:oe})}),F},S=function(j,E){var T=j.props,N=j.dataStartIndex,A=j.dataEndIndex,C=j.updateId;if(!hA({props:T}))return null;var M=T.children,D=T.layout,$=T.stackOffset,B=T.data,I=T.reverseStackOrder,q=WN(D),Y=q.numericAxisName,K=q.cateAxisName,W=$n(M,r),k=_U(B,W,"".concat(Y,"Id"),"".concat(K,"Id"),$,I),X=d.reduce(function(z,te){var ce="".concat(te.axisType,"Map");return re(re({},z),{},xe({},ce,jV(T,re(re({},te),{},{graphicalItems:W,stackGroups:te.axisType===Y&&k,dataStartIndex:N,dataEndIndex:A}))))},{}),F=NV(re(re({},X),{},{props:T,graphicalItems:W}),E==null?void 0:E.legendBBox);Object.keys(X).forEach(function(z){X[z]=v(T,X[z],F,z.replace("Map",""),n)});var oe=X["".concat(K,"Map")],ue=EV(oe),L=b(T,re(re({},X),{},{dataStartIndex:N,dataEndIndex:A,updateId:C,graphicalItems:W,stackGroups:k,offset:F}));return re(re({formattedGraphicalItems:L,graphicalItems:W,offset:F,stackGroups:k},ue),X)},w=(function(x){function j(E){var T,N,A;return sV(this,j),A=dV(this,j,[E]),xe(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),xe(A,"accessibilityManager",new FX),xe(A,"handleLegendBBoxUpdate",function(C){if(C){var M=A.state,D=M.dataStartIndex,$=M.dataEndIndex,B=M.updateId;A.setState(re({legendBBox:C},S({props:A.props,dataStartIndex:D,dataEndIndex:$,updateId:B},re(re({},A.state),{},{legendBBox:C}))))}}),xe(A,"handleReceiveSyncEvent",function(C,M,D){if(A.props.syncId===C){if(D===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(M)}}),xe(A,"handleBrushChange",function(C){var M=C.startIndex,D=C.endIndex;if(M!==A.state.dataStartIndex||D!==A.state.dataEndIndex){var $=A.state.updateId;A.setState(function(){return re({dataStartIndex:M,dataEndIndex:D},S({props:A.props,dataStartIndex:M,dataEndIndex:D,updateId:$},A.state))}),A.triggerSyncEvent({dataStartIndex:M,dataEndIndex:D})}}),xe(A,"handleMouseEnter",function(C){var M=A.getMouseInfo(C);if(M){var D=re(re({},M),{},{isTooltipActive:!0});A.setState(D),A.triggerSyncEvent(D);var $=A.props.onMouseEnter;_e($)&&$(D,C)}}),xe(A,"triggeredAfterMouseMove",function(C){var M=A.getMouseInfo(C),D=M?re(re({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(D),A.triggerSyncEvent(D);var $=A.props.onMouseMove;_e($)&&$(D,C)}),xe(A,"handleItemMouseEnter",function(C){A.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),xe(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),xe(A,"handleMouseMove",function(C){C.persist(),A.throttleTriggeredAfterMouseMove(C)}),xe(A,"handleMouseLeave",function(C){A.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};A.setState(M),A.triggerSyncEvent(M);var D=A.props.onMouseLeave;_e(D)&&D(M,C)}),xe(A,"handleOuterEvent",function(C){var M=mk(C),D=gn(A.props,"".concat(M));if(M&&_e(D)){var $,B;/.*touch.*/i.test(M)?B=A.getMouseInfo(C.changedTouches[0]):B=A.getMouseInfo(C),D(($=B)!==null&&$!==void 0?$:{},C)}}),xe(A,"handleClick",function(C){var M=A.getMouseInfo(C);if(M){var D=re(re({},M),{},{isTooltipActive:!0});A.setState(D),A.triggerSyncEvent(D);var $=A.props.onClick;_e($)&&$(D,C)}}),xe(A,"handleMouseDown",function(C){var M=A.props.onMouseDown;if(_e(M)){var D=A.getMouseInfo(C);M(D,C)}}),xe(A,"handleMouseUp",function(C){var M=A.props.onMouseUp;if(_e(M)){var D=A.getMouseInfo(C);M(D,C)}}),xe(A,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),xe(A,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&A.handleMouseDown(C.changedTouches[0])}),xe(A,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&A.handleMouseUp(C.changedTouches[0])}),xe(A,"handleDoubleClick",function(C){var M=A.props.onDoubleClick;if(_e(M)){var D=A.getMouseInfo(C);M(D,C)}}),xe(A,"handleContextMenu",function(C){var M=A.props.onContextMenu;if(_e(M)){var D=A.getMouseInfo(C);M(D,C)}}),xe(A,"triggerSyncEvent",function(C){A.props.syncId!==void 0&&i0.emit(o0,A.props.syncId,C,A.eventEmitterSymbol)}),xe(A,"applySyncEvent",function(C){var M=A.props,D=M.layout,$=M.syncMethod,B=A.state.updateId,I=C.dataStartIndex,q=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)A.setState(re({dataStartIndex:I,dataEndIndex:q},S({props:A.props,dataStartIndex:I,dataEndIndex:q,updateId:B},A.state)));else if(C.activeTooltipIndex!==void 0){var Y=C.chartX,K=C.chartY,W=C.activeTooltipIndex,k=A.state,X=k.offset,F=k.tooltipTicks;if(!X)return;if(typeof $=="function")W=$(F,C);else if($==="value"){W=-1;for(var oe=0;oe<F.length;oe++)if(F[oe].value===C.activeLabel){W=oe;break}}var ue=re(re({},X),{},{x:X.left,y:X.top}),L=Math.min(Y,ue.x+ue.width),z=Math.min(K,ue.y+ue.height),te=F[W]&&F[W].value,ce=Rb(A.state,A.props.data,W),he=F[W]?{x:D==="horizontal"?F[W].coordinate:L,y:D==="horizontal"?z:F[W].coordinate}:KR;A.setState(re(re({},C),{},{activeLabel:te,activeCoordinate:he,activePayload:ce,activeTooltipIndex:W}))}else A.setState(C)}),xe(A,"renderCursor",function(C){var M,D=A.state,$=D.isTooltipActive,B=D.activeCoordinate,I=D.activePayload,q=D.offset,Y=D.activeTooltipIndex,K=D.tooltipAxisBandSize,W=A.getTooltipEventType(),k=(M=C.props.active)!==null&&M!==void 0?M:$,X=A.props.layout,F=C.key||"_recharts-cursor";return H.createElement(nV,{key:F,activeCoordinate:B,activePayload:I,activeTooltipIndex:Y,chartName:n,element:C,isActive:k,layout:X,offset:q,tooltipAxisBandSize:K,tooltipEventType:W})}),xe(A,"renderPolarAxis",function(C,M,D){var $=gn(C,"type.axisType"),B=gn(A.state,"".concat($,"Map")),I=C.type.defaultProps,q=I!==void 0?re(re({},I),C.props):C.props,Y=B&&B[q["".concat($,"Id")]];return P.cloneElement(C,re(re({},Y),{},{className:Ce($,Y.className),key:C.key||"".concat(M,"-").concat(D),ticks:ui(Y,!0)}))}),xe(A,"renderPolarGrid",function(C){var M=C.props,D=M.radialLines,$=M.polarAngles,B=M.polarRadius,I=A.state,q=I.radiusAxisMap,Y=I.angleAxisMap,K=co(q),W=co(Y),k=W.cx,X=W.cy,F=W.innerRadius,oe=W.outerRadius;return P.cloneElement(C,{polarAngles:Array.isArray($)?$:ui(W,!0).map(function(ue){return ue.coordinate}),polarRadius:Array.isArray(B)?B:ui(K,!0).map(function(ue){return ue.coordinate}),cx:k,cy:X,innerRadius:F,outerRadius:oe,key:C.key||"polar-grid",radialLines:D})}),xe(A,"renderLegend",function(){var C=A.state.formattedGraphicalItems,M=A.props,D=M.children,$=M.width,B=M.height,I=A.props.margin||{},q=$-(I.left||0)-(I.right||0),Y=j3({children:D,formattedGraphicalItems:C,legendWidth:q,legendContent:h});if(!Y)return null;var K=Y.item,W=KN(Y,rV);return P.cloneElement(K,re(re({},W),{},{chartWidth:$,chartHeight:B,margin:I,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),xe(A,"renderTooltip",function(){var C,M=A.props,D=M.children,$=M.accessibilityLayer,B=mn(D,Pn);if(!B)return null;var I=A.state,q=I.isTooltipActive,Y=I.activeCoordinate,K=I.activePayload,W=I.activeLabel,k=I.offset,X=(C=B.props.active)!==null&&C!==void 0?C:q;return P.cloneElement(B,{viewBox:re(re({},k),{},{x:k.left,y:k.top}),active:X,label:W,payload:X?K:[],coordinate:Y,accessibilityLayer:$})}),xe(A,"renderBrush",function(C){var M=A.props,D=M.margin,$=M.data,B=A.state,I=B.offset,q=B.dataStartIndex,Y=B.dataEndIndex,K=B.updateId;return P.cloneElement(C,{key:C.key||"_recharts-brush",onChange:qc(A.handleBrushChange,C.props.onChange),data:$,x:fe(C.props.x)?C.props.x:I.left,y:fe(C.props.y)?C.props.y:I.top+I.height+I.brushBottom-(D.bottom||0),width:fe(C.props.width)?C.props.width:I.width,startIndex:q,endIndex:Y,updateId:"brush-".concat(K)})}),xe(A,"renderReferenceElement",function(C,M,D){if(!C)return null;var $=A,B=$.clipPathId,I=A.state,q=I.xAxisMap,Y=I.yAxisMap,K=I.offset,W=C.type.defaultProps||{},k=C.props,X=k.xAxisId,F=X===void 0?W.xAxisId:X,oe=k.yAxisId,ue=oe===void 0?W.yAxisId:oe;return P.cloneElement(C,{key:C.key||"".concat(M,"-").concat(D),xAxis:q[F],yAxis:Y[ue],viewBox:{x:K.left,y:K.top,width:K.width,height:K.height},clipPathId:B})}),xe(A,"renderActivePoints",function(C){var M=C.item,D=C.activePoint,$=C.basePoint,B=C.childIndex,I=C.isRange,q=[],Y=M.props.key,K=M.item.type.defaultProps!==void 0?re(re({},M.item.type.defaultProps),M.item.props):M.item.props,W=K.activeDot,k=K.dataKey,X=re(re({index:B,dataKey:k,cx:D.x,cy:D.y,r:4,fill:$x(M.item),strokeWidth:2,stroke:"#fff",payload:D.payload,value:D.value},ye(W,!1)),Wc(W));return q.push(j.renderActiveDot(W,X,"".concat(Y,"-activePoint-").concat(B))),$?q.push(j.renderActiveDot(W,re(re({},X),{},{cx:$.x,cy:$.y}),"".concat(Y,"-basePoint-").concat(B))):I&&q.push(null),q}),xe(A,"renderGraphicChild",function(C,M,D){var $=A.filterFormatItem(C,M,D);if(!$)return null;var B=A.getTooltipEventType(),I=A.state,q=I.isTooltipActive,Y=I.tooltipAxis,K=I.activeTooltipIndex,W=I.activeLabel,k=A.props.children,X=mn(k,Pn),F=$.props,oe=F.points,ue=F.isRange,L=F.baseLine,z=$.item.type.defaultProps!==void 0?re(re({},$.item.type.defaultProps),$.item.props):$.item.props,te=z.activeDot,ce=z.hide,he=z.activeBar,ge=z.activeShape,Me=!!(!ce&&q&&X&&(te||he||ge)),Ie={};B!=="axis"&&X&&X.props.trigger==="click"?Ie={onClick:qc(A.handleItemMouseEnter,C.props.onClick)}:B!=="axis"&&(Ie={onMouseLeave:qc(A.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:qc(A.handleItemMouseEnter,C.props.onMouseEnter)});var se=P.cloneElement(C,re(re({},$.props),Ie));function Se(dr){return typeof Y.dataKey=="function"?Y.dataKey(dr.payload):null}if(Me)if(K>=0){var we,le;if(Y.dataKey&&!Y.allowDuplicatedCategory){var rt=typeof Y.dataKey=="function"?Se:"payload.".concat(Y.dataKey.toString());we=Fc(oe,rt,W),le=ue&&L&&Fc(L,rt,W)}else we=oe==null?void 0:oe[K],le=ue&&L&&L[K];if(ge||he){var Ee=C.props.activeIndex!==void 0?C.props.activeIndex:K;return[P.cloneElement(C,re(re(re({},$.props),Ie),{},{activeIndex:Ee})),null,null]}if(!Ae(we))return[se].concat(Ko(A.renderActivePoints({item:$,activePoint:we,basePoint:le,childIndex:K,isRange:ue})))}else{var ct,ft=(ct=A.getItemByXY(A.state.activeCoordinate))!==null&&ct!==void 0?ct:{graphicalItem:se},zt=ft.graphicalItem,zn=zt.item,Zn=zn===void 0?C:zn,Wr=zt.childIndex,Un=re(re(re({},$.props),Ie),{},{activeIndex:Wr});return[P.cloneElement(Zn,Un),null,null]}return ue?[se,null,null]:[se,null]}),xe(A,"renderCustomized",function(C,M,D){return P.cloneElement(C,re(re({key:"recharts-customized-".concat(D)},A.props),A.state))}),xe(A,"renderMap",{CartesianGrid:{handler:Hc,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:Hc},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:Hc},YAxis:{handler:Hc},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((T=E.id)!==null&&T!==void 0?T:Jo("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=jM(A.triggeredAfterMouseMove,(N=E.throttleDelay)!==null&&N!==void 0?N:1e3/60),A.state={},A}return mV(j,x),fV(j,[{key:"componentDidMount",value:function(){var T,N;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,N=T.children,A=T.data,C=T.height,M=T.layout,D=mn(N,Pn);if(D){var $=D.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,I=Rb(this.state,A,$,B),q=this.state.tooltipTicks[$].coordinate,Y=(this.state.offset.top+C)/2,K=M==="horizontal",W=K?{x:q,y:Y}:{y:q,x:Y},k=this.state.formattedGraphicalItems.find(function(F){var oe=F.item;return oe.type.name==="Scatter"});k&&(W=re(re({},W),k.props.points[$].tooltipPosition),I=k.props.points[$].tooltipPayload);var X={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:B,activePayload:I,activeCoordinate:W};this.setState(X),this.renderCursor(D),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,N){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==N.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var A,C;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(T){m0([mn(T.children,Pn)],[mn(this.props.children,Pn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=mn(this.props.children,Pn);if(T&&typeof T.props.shared=="boolean"){var N=T.props.shared?"axis":"item";return f.indexOf(N)>=0?N:l}return l}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var N=this.container,A=N.getBoundingClientRect(),C=nq(A),M={chartX:Math.round(T.pageX-C.left),chartY:Math.round(T.pageY-C.top)},D=A.width/N.offsetWidth||1,$=this.inRange(M.chartX,M.chartY,D);if(!$)return null;var B=this.state,I=B.xAxisMap,q=B.yAxisMap,Y=this.getTooltipEventType(),K=VN(this.state,this.props.data,this.props.layout,$);if(Y!=="axis"&&I&&q){var W=co(I).scale,k=co(q).scale,X=W&&W.invert?W.invert(M.chartX):null,F=k&&k.invert?k.invert(M.chartY):null;return re(re({},M),{},{xValue:X,yValue:F},K)}return K?re(re({},M),K):null}},{key:"inRange",value:function(T,N){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,M=T/A,D=N/A;if(C==="horizontal"||C==="vertical"){var $=this.state.offset,B=M>=$.left&&M<=$.left+$.width&&D>=$.top&&D<=$.top+$.height;return B?{x:M,y:D}:null}var I=this.state,q=I.angleAxisMap,Y=I.radiusAxisMap;if(q&&Y){var K=co(q);return nT({x:M,y:D},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,N=this.getTooltipEventType(),A=mn(T,Pn),C={};A&&N==="axis"&&(A.props.trigger==="click"?C={onClick:this.handleClick}:C={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 M=Wc(this.props,this.handleOuterEvent);return re(re({},M),C)}},{key:"addListener",value:function(){i0.on(o0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){i0.removeListener(o0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,N,A){for(var C=this.state.formattedGraphicalItems,M=0,D=C.length;M<D;M++){var $=C[M];if($.item===T||$.props.key===T.key||N===Lr($.item.type)&&A===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,N=this.state.offset,A=N.left,C=N.top,M=N.height,D=N.width;return H.createElement("defs",null,H.createElement("clipPath",{id:T},H.createElement("rect",{x:A,y:C,height:M,width:D})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(N,A){var C=YN(A,2),M=C[0],D=C[1];return re(re({},N),{},xe({},M,D.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(N,A){var C=YN(A,2),M=C[0],D=C[1];return re(re({},N),{},xe({},M,D.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var N;return(N=this.state.xAxisMap)===null||N===void 0||(N=N[T])===null||N===void 0?void 0:N.scale}},{key:"getYScaleByAxisId",value:function(T){var N;return(N=this.state.yAxisMap)===null||N===void 0||(N=N[T])===null||N===void 0?void 0:N.scale}},{key:"getItemByXY",value:function(T){var N=this.state,A=N.formattedGraphicalItems,C=N.activeItem;if(A&&A.length)for(var M=0,D=A.length;M<D;M++){var $=A[M],B=$.props,I=$.item,q=I.type.defaultProps!==void 0?re(re({},I.type.defaultProps),I.props):I.props,Y=Lr(I.type);if(Y==="Bar"){var K=(B.data||[]).find(function(F){return wH(T,F)});if(K)return{graphicalItem:$,payload:K}}else if(Y==="RadialBar"){var W=(B.data||[]).find(function(F){return nT(T,F)});if(W)return{graphicalItem:$,payload:W}}else if(Td($,C)||Nd($,C)||Wu($,C)){var k=KG({graphicalItem:$,activeTooltipItem:C,itemData:q.data}),X=q.activeIndex===void 0?k:q.activeIndex;return{graphicalItem:re(re({},$),{},{childIndex:X}),payload:Wu($,C)?q.data[k]:$.props.data[k]}}}return null}},{key:"render",value:function(){var T=this;if(!hA(this))return null;var N=this.props,A=N.children,C=N.className,M=N.width,D=N.height,$=N.style,B=N.compact,I=N.title,q=N.desc,Y=KN(N,aV),K=ye(Y,!1);if(B)return H.createElement(NN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},H.createElement(y0,vo({},K,{width:M,height:D,title:I,desc:q}),this.renderClipPath(),mA(A,this.renderMap)));if(this.props.accessibilityLayer){var W,k;K.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,K.role=(k=this.props.role)!==null&&k!==void 0?k:"application",K.onKeyDown=function(F){T.accessibilityManager.keyboardEvent(F)},K.onFocus=function(){T.accessibilityManager.focus()}}var X=this.parseEventsOfWrapper();return H.createElement(NN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},H.createElement("div",vo({className:Ce("recharts-wrapper",C),style:re({position:"relative",cursor:"default",width:M,height:D},$)},X,{ref:function(oe){T.container=oe}}),H.createElement(y0,vo({},K,{width:M,height:D,title:I,desc:q,style:SV}),this.renderClipPath(),mA(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);xe(w,"displayName",n),xe(w,"defaultProps",re({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),xe(w,"getDerivedStateFromProps",function(x,j){var E=x.dataKey,T=x.data,N=x.children,A=x.width,C=x.height,M=x.layout,D=x.stackOffset,$=x.margin,B=j.dataStartIndex,I=j.dataEndIndex;if(j.updateId===void 0){var q=FN(x);return re(re(re({},q),{},{updateId:0},S(re(re({props:x},q),{},{updateId:0}),j)),{},{prevDataKey:E,prevData:T,prevWidth:A,prevHeight:C,prevLayout:M,prevStackOffset:D,prevMargin:$,prevChildren:N})}if(E!==j.prevDataKey||T!==j.prevData||A!==j.prevWidth||C!==j.prevHeight||M!==j.prevLayout||D!==j.prevStackOffset||!yo($,j.prevMargin)){var Y=FN(x),K={chartX:j.chartX,chartY:j.chartY,isTooltipActive:j.isTooltipActive},W=re(re({},VN(j,T,M)),{},{updateId:j.updateId+1}),k=re(re(re({},Y),K),W);return re(re(re({},k),S(re({props:x},k),j)),{},{prevDataKey:E,prevData:T,prevWidth:A,prevHeight:C,prevLayout:M,prevStackOffset:D,prevMargin:$,prevChildren:N})}if(!m0(N,j.prevChildren)){var X,F,oe,ue,L=mn(N,$o),z=L&&(X=(F=L.props)===null||F===void 0?void 0:F.startIndex)!==null&&X!==void 0?X:B,te=L&&(oe=(ue=L.props)===null||ue===void 0?void 0:ue.endIndex)!==null&&oe!==void 0?oe:I,ce=z!==B||te!==I,he=!Ae(T),ge=he&&!ce?j.updateId:j.updateId+1;return re(re({updateId:ge},S(re(re({props:x},j),{},{updateId:ge,dataStartIndex:z,dataEndIndex:te}),j)),{},{prevChildren:N,dataStartIndex:z,dataEndIndex:te})}return null}),xe(w,"renderActiveDot",function(x,j,E){var T;return P.isValidElement(x)?T=P.cloneElement(x,j):_e(x)?T=x(j):T=H.createElement(wd,j),H.createElement(Le,{className:"recharts-active-dot",key:E},T)});var _=P.forwardRef(function(j,E){return H.createElement(w,vo({},j,{ref:E}))});return _.displayName=w.displayName,_},MV=Ix({chartName:"BarChart",GraphicalChild:Ta,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:al},{axisType:"yAxis",AxisComp:il}],formatAxisMap:sR}),RV=Ix({chartName:"PieChart",GraphicalChild:Fr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ed},{axisType:"radiusAxis",AxisComp:Ad}],formatAxisMap:DU,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),PV=Ix({chartName:"AreaChart",GraphicalChild:Da,axisComponents:[{axisType:"xAxis",AxisComp:al},{axisType:"yAxis",AxisComp:il}],formatAxisMap:sR});function DV(e,t){const n=new Date(e);return t<=10?n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):n.toLocaleDateString([],{month:"short",day:"numeric"})}function kV({series:e}){const t=e.slice(-50).map(n=>({timestamp:n.timestamp,tokens_in:n.tokens_in??0,tokens_out:n.tokens_out??0}));return t.length===0?g.jsx("div",{className:"flex h-48 items-center justify-center text-sm text-gray-500",children:"No token data available"}):g.jsx(fx,{width:"100%",height:220,children:g.jsxs(MV,{data:t,margin:{top:4,right:4,bottom:0,left:0},children:[g.jsx(al,{dataKey:"timestamp",tickFormatter:n=>DV(n,t.length),tick:{fill:"#6b7280",fontSize:11},axisLine:{stroke:"#374151"},tickLine:{stroke:"#374151"},interval:"preserveStartEnd"}),g.jsx(il,{tick:{fill:"#6b7280",fontSize:11},axisLine:{stroke:"#374151"},tickLine:{stroke:"#374151"},tickFormatter:n=>rr(n),width:60}),g.jsx(Pn,{contentStyle:{backgroundColor:"#1f2937",border:"1px solid #374151",borderRadius:6,color:"#e5e7eb",fontSize:12},formatter:(n,r)=>[rr(n),r==="tokens_in"?"Tokens In":"Tokens Out"],labelFormatter:n=>new Date(n).toLocaleString()}),g.jsx(ci,{formatter:n=>n==="tokens_in"?"Tokens In":"Tokens Out",wrapperStyle:{fontSize:12,color:"#9ca3af"}}),g.jsx(Ta,{dataKey:"tokens_in",fill:"#3b82f6",radius:[2,2,0,0],opacity:.85}),g.jsx(Ta,{dataKey:"tokens_out",fill:"#8b5cf6",radius:[2,2,0,0],opacity:.85})]})})}function $V({agentId:e}){const[t,n]=P.useState(null),[r,o]=P.useState(!0),[l,s]=P.useState(null),[f,d]=P.useState(!1),[h,v]=P.useState(!0),[m,b]=P.useState(!1),[S,w]=P.useState(""),[_,x]=P.useState(!1),[j,E]=P.useState("9"),[T,N]=P.useState("17"),A=P.useCallback(async()=>{var Y,K,W;try{const k=await Ne.get(`/api/agents/${encodeURIComponent(e)}/policy`);n(k),v(k.active),b(k.budget_limit!==null),w(((Y=k.budget_limit)==null?void 0:Y.toString())??""),x(k.allowed_hours_start!==null&&k.allowed_hours_end!==null),E(((K=k.allowed_hours_start)==null?void 0:K.toString())??"9"),N(((W=k.allowed_hours_end)==null?void 0:W.toString())??"17"),s(null)}catch(k){s(k instanceof Error?k.message:"Failed to load policy")}finally{o(!1)}},[e]);P.useEffect(()=>{A()},[A]);const C=async()=>{d(!0),s(null);try{const Y={active:h,budget_limit:m&&parseFloat(S)||null,allowed_hours_start:_?parseInt(j,10):null,allowed_hours_end:_?parseInt(T,10):null},K=await Ne.put(`/api/agents/${encodeURIComponent(e)}/policy`,Y);n(K)}catch(Y){s(Y instanceof Error?Y.message:"Failed to save policy")}finally{d(!1)}},M=async()=>{const Y=!h;v(Y),d(!0);try{const K=await Ne.put(`/api/agents/${encodeURIComponent(e)}/policy`,{active:Y});n(K),s(null)}catch(K){v(!Y),s(K instanceof Error?K.message:"Failed to update")}finally{d(!1)}};if(r)return g.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:g.jsx("div",{className:"animate-pulse text-gray-400",children:"Loading policy..."})});const D=new Date().getTimezoneOffset(),$=Math.abs(Math.floor(D/60)),B=Math.abs(D%60),q=`UTC${D<=0?"+":"-"}${$}${B>0?`:${B.toString().padStart(2,"0")}`:""}`;return g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"mb-4 text-sm font-semibold text-gray-300",children:"Agent Policy Settings"}),l&&g.jsx("div",{className:"mb-4 rounded-md border border-red-800 bg-red-900/20 px-3 py-2 text-sm text-red-400",children:l}),g.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-sm font-medium text-white",children:"Agent Active"}),g.jsx("p",{className:"text-xs text-gray-400",children:"When disabled, all requests will be blocked"}),!h&&(t==null?void 0:t.deactivated_by)==="kill_switch"&&g.jsxs("div",{className:"mt-2 flex items-center gap-2 rounded-md border border-red-800 bg-red-900/30 px-3 py-2",children:[g.jsx("svg",{className:"h-4 w-4 text-red-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),g.jsx("span",{className:"text-sm text-red-300",children:"Deactivated by Kill Switch due to loop detection"})]})]}),g.jsx("button",{onClick:M,disabled:f,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${h?"bg-green-600":"bg-gray-600"} ${f?"opacity-50 cursor-not-allowed":""}`,children:g.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${h?"translate-x-6":"translate-x-1"}`})})]}),g.jsxs("div",{className:"mb-6",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("input",{type:"checkbox",id:"budget-enabled",checked:m,onChange:Y=>b(Y.target.checked),className:"h-4 w-4 rounded border-gray-600 bg-gray-700 text-blue-600 focus:ring-blue-500"}),g.jsx("label",{htmlFor:"budget-enabled",className:"text-sm font-medium text-white",children:"Daily Budget Limit"})]}),m&&g.jsxs("div",{className:"mt-3 ml-7",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-gray-400",children:"$"}),g.jsx("input",{type:"number",value:S,onChange:Y=>w(Y.target.value),min:"0",step:"0.01",className:"w-24 rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none",placeholder:"10.00"}),g.jsx("span",{className:"text-sm text-gray-400",children:"per day"})]}),t&&g.jsxs("p",{className:"mt-2 text-xs text-gray-400",children:["Today's spend:"," ",g.jsx("span",{className:"font-medium text-white",children:yn(t.daily_spend)}),t.budget_limit!==null&&g.jsxs(g.Fragment,{children:[" ","/ $",t.budget_limit.toFixed(2),t.daily_spend>=t.budget_limit&&g.jsx("span",{className:"ml-2 text-red-400",children:"(Limit reached)"})]})]})]})]}),g.jsxs("div",{className:"mb-6",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("input",{type:"checkbox",id:"hours-enabled",checked:_,onChange:Y=>x(Y.target.checked),className:"h-4 w-4 rounded border-gray-600 bg-gray-700 text-blue-600 focus:ring-blue-500"}),g.jsx("label",{htmlFor:"hours-enabled",className:"text-sm font-medium text-white",children:"Allowed Operating Hours"})]}),_&&g.jsxs("div",{className:"mt-3 ml-7",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("select",{value:j,onChange:Y=>E(Y.target.value),className:"rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none",children:Array.from({length:24},(Y,K)=>g.jsxs("option",{value:K,children:[K.toString().padStart(2,"0"),":00"]},K))}),g.jsx("span",{className:"text-gray-400",children:"to"}),g.jsx("select",{value:T,onChange:Y=>N(Y.target.value),className:"rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none",children:Array.from({length:24},(Y,K)=>g.jsxs("option",{value:K,children:[K.toString().padStart(2,"0"),":00"]},K))})]}),g.jsxs("p",{className:"mt-2 text-xs text-gray-400",children:["Server timezone: ",q]})]})]}),g.jsx("div",{className:"flex justify-end border-t border-gray-700 pt-4",children:g.jsx("button",{onClick:C,disabled:f,className:`rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-500 ${f?"opacity-50 cursor-not-allowed":""}`,children:f?"Saving...":"Save Policy"})})]})}function LV({agentId:e}){const[t,n]=P.useState(null),[r,o]=P.useState(!0),[l,s]=P.useState(null),[f,d]=P.useState(!1),[h,v]=P.useState(!1),[m,b]=P.useState(!1),[S,w]=P.useState(!1),[_,x]=P.useState(20),[j,E]=P.useState(10),T=P.useCallback(async()=>{try{const $=await Ne.get(`/api/agents/${encodeURIComponent(e)}/kill-switch`);n($),w($.enabled),x($.window_size),E($.threshold),s(null)}catch($){s($ instanceof Error?$.message:"Failed to load kill switch config")}finally{o(!1)}},[e]),N=P.useCallback(async()=>{try{const $=await Ne.get(`/api/alerts?agent_id=${encodeURIComponent(e)}&rule_type=kill_switch`);v($.alerts.some(B=>B.enabled))}catch{}},[e]);P.useEffect(()=>{T(),N()},[T,N]);const A=async()=>{const $=!S;if($&&!h){b(!0);return}await M({enabled:$})},C=async()=>{b(!1),await M({enabled:!0})},M=async $=>{d(!0),s(null);try{const B={enabled:$.enabled??S,window_size:$.window_size??_,threshold:$.threshold??j},I=await Ne.patch(`/api/agents/${encodeURIComponent(e)}/kill-switch`,B);n(I),w(I.enabled),x(I.window_size),E(I.threshold)}catch(B){s(B instanceof Error?B.message:"Failed to save config"),t&&(w(t.enabled),x(t.window_size),E(t.threshold))}finally{d(!1)}},D=async()=>{await M({enabled:S,window_size:_,threshold:j})};return r?g.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:g.jsx("div",{className:"animate-pulse text-gray-400",children:"Loading kill switch settings..."})}):g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsxs("h2",{className:"mb-4 flex items-center gap-2 text-sm font-semibold text-gray-300",children:[g.jsx("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-full bg-red-600 text-xs",children:"!"}),"Kill Switch (Loop Detection)"]}),l&&g.jsx("div",{className:"mb-4 rounded-md border border-red-800 bg-red-900/20 px-3 py-2 text-sm text-red-400",children:l}),m&&g.jsxs("div",{className:"mb-4 rounded-md border border-yellow-700 bg-yellow-900/20 p-4",children:[g.jsx("p",{className:"text-sm font-medium text-yellow-400",children:"No Alert Rule Configured"}),g.jsx("p",{className:"mt-1 text-xs text-yellow-300/80",children:`The kill switch will block loops but you won't receive notifications. Consider adding a "kill_switch" alert rule on the Alerts page first.`}),g.jsxs("div",{className:"mt-3 flex gap-2",children:[g.jsx("button",{onClick:C,className:"rounded-md bg-yellow-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-yellow-500",children:"Enable Anyway"}),g.jsx("button",{onClick:()=>b(!1),className:"rounded-md bg-gray-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-gray-500",children:"Cancel"})]})]}),g.jsx("p",{className:"mb-4 text-xs text-gray-400",children:"Automatically detect and block infinite loops to prevent wasting API credits. When triggered, requests return HTTP 429 and an alert is sent."}),g.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-sm font-medium text-white",children:"Kill Switch Enabled"}),g.jsx("p",{className:"text-xs text-gray-400",children:S?"Loop detection is active":"Loop detection is disabled"})]}),g.jsx("button",{onClick:A,disabled:f,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${S?"bg-red-600":"bg-gray-600"} ${f?"opacity-50 cursor-not-allowed":""}`,children:g.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${S?"translate-x-6":"translate-x-1"}`})})]}),S&&g.jsxs("div",{className:"space-y-4 border-t border-gray-700 pt-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"window-size",className:"block text-sm font-medium text-white",children:"Detection Window Size"}),g.jsx("p",{className:"text-xs text-gray-400",children:"Number of recent requests to analyze for patterns (5-100)"}),g.jsx("input",{type:"number",id:"window-size",value:_,onChange:$=>x(Math.max(5,Math.min(100,parseInt($.target.value)||20))),min:5,max:100,className:"mt-2 w-24 rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none"})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"threshold",className:"block text-sm font-medium text-white",children:"Loop Score Threshold"}),g.jsx("p",{className:"text-xs text-gray-400",children:"Minimum score to trigger kill switch (1-50). Lower = more sensitive."}),g.jsx("input",{type:"number",id:"threshold",value:j,onChange:$=>E(Math.max(1,Math.min(50,parseFloat($.target.value)||10))),min:1,max:50,step:.5,className:"mt-2 w-24 rounded-md border border-gray-600 bg-gray-700 px-3 py-1.5 text-sm text-white focus:border-blue-500 focus:outline-none"})]}),g.jsxs("div",{className:"rounded-md border border-gray-700 bg-gray-900 p-3",children:[g.jsx("p",{className:"text-xs font-medium text-gray-300",children:"How scoring works:"}),g.jsxs("ul",{className:"mt-1 list-inside list-disc text-xs text-gray-400",children:[g.jsx("li",{children:"Similar prompts: +1.0 per match"}),g.jsx("li",{children:"Similar responses: +2.0 per pair"}),g.jsx("li",{children:"Repeated tool calls: +1.5 per match"})]})]}),g.jsx("div",{className:"flex justify-end border-t border-gray-700 pt-4",children:g.jsx("button",{onClick:D,disabled:f,className:`rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-500 ${f?"opacity-50 cursor-not-allowed":""}`,children:f?"Saving...":"Save Settings"})})]}),S&&g.jsx("div",{className:"mt-4 flex items-center gap-2 text-xs",children:h?g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-green-500"}),g.jsx("span",{className:"text-green-400",children:"Alert rule configured"})]}):g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-yellow-500"}),g.jsx("span",{className:"text-yellow-400",children:"No alert rule - loops will be blocked silently"})]})})]})}function qV({agentId:e}){const[t,n]=P.useState([]),[r,o]=P.useState({}),[l,s]=P.useState(!0),[f,d]=P.useState(null),[h,v]=P.useState(null),[m,b]=P.useState({});P.useEffect(()=>{async function x(){try{const[j,E]=await Promise.all([Ne.get(`/api/agents/${encodeURIComponent(e)}/providers`),Ne.get("/api/models")]);n(j.providers),o(E),b({}),v(null)}catch(j){v("Failed to load model settings"),console.error(j)}finally{s(!1)}}x()},[e]);function S(x,j){b(E=>({...E,[x]:j}))}async function w(x){const j=m[x];if(j!==void 0){d(x);try{j?await Ne.put(`/api/agents/${encodeURIComponent(e)}/model-rules/${encodeURIComponent(x)}`,{model_override:j}):await Ne.del(`/api/agents/${encodeURIComponent(e)}/model-rules/${encodeURIComponent(x)}`),n(E=>E.map(T=>T.provider===x?{...T,model_override:j}:T)),b(E=>{const T={...E};return delete T[x],T}),v(null)}catch(E){v("Failed to update model override"),console.error(E)}finally{d(null)}}}function _(x){b(j=>{const E={...j};return delete E[x],E})}return l?g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Model Settings"}),g.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"Loading..."})]}):t.length===0?g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Model Settings"}),g.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"No providers detected yet. Make some LLM calls through the proxy to see provider options here."})]}):g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Model Settings"}),g.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Override the model for requests to each provider. The agent's original model request will be replaced."}),h&&g.jsx("div",{className:"mt-2 rounded bg-red-900/50 px-3 py-2 text-sm text-red-300",children:h}),g.jsx("div",{className:"mt-4 space-y-4",children:t.map(x=>{const j=r[x.provider]??[],E=f===x.provider,T=x.provider in m,N=T?m[x.provider]:x.model_override;return g.jsxs("div",{className:"rounded-lg border border-gray-600 bg-gray-900 p-3",children:[g.jsx("div",{className:"flex items-center justify-between",children:g.jsxs("div",{children:[g.jsx("span",{className:"font-medium capitalize text-white",children:x.provider}),x.model_override&&!T&&g.jsx("span",{className:"ml-2 rounded bg-indigo-900 px-2 py-0.5 text-xs text-indigo-200",children:"Override active"}),T&&g.jsx("span",{className:"ml-2 rounded bg-yellow-900 px-2 py-0.5 text-xs text-yellow-200",children:"Unsaved"})]})}),g.jsxs("div",{className:"mt-2",children:[g.jsx("label",{className:"text-xs text-gray-400",children:"Model Override"}),g.jsxs("div",{className:"mt-1 flex gap-2",children:[g.jsxs("select",{className:"block flex-1 rounded-md border border-gray-600 bg-gray-800 px-3 py-2 text-sm text-white focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 disabled:opacity-50",value:N??"",onChange:A=>S(x.provider,A.target.value||null),disabled:E,children:[g.jsx("option",{value:"",children:"None (use agent default)"}),j.map(A=>g.jsx("option",{value:A,children:A},A))]}),T&&g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",onClick:()=>w(x.provider),disabled:E,className:"rounded-md bg-indigo-600 px-3 py-2 text-sm font-medium text-white hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 disabled:opacity-50",children:E?"Applying...":"Apply"}),g.jsx("button",{type:"button",onClick:()=>_(x.provider),disabled:E,className:"rounded-md border border-gray-600 px-3 py-2 text-sm font-medium text-gray-300 hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-500 disabled:opacity-50",children:"Cancel"})]})]})]})]},x.provider)})})]})}const BV=["openai","anthropic","google","mistral","cohere","deepseek","moonshot","zhipu","minimax","baichuan","yi"];function zV({agentId:e}){const[t,n]=P.useState([]),[r,o]=P.useState(!0),[l,s]=P.useState(null),[f,d]=P.useState(null),[h,v]=P.useState({}),[m,b]=P.useState(!1),[S,w]=P.useState(""),[_,x]=P.useState("100"),[j,E]=P.useState("60");P.useEffect(()=>{async function B(){try{const I=await Ne.get(`/api/agents/${encodeURIComponent(e)}/rate-limits`);n(I.rate_limits),v({}),d(null)}catch(I){d("Failed to load rate limit settings"),console.error(I)}finally{o(!1)}}B()},[e]);const T=new Set(t.map(B=>B.provider)),N=BV.filter(B=>!T.has(B));function A(B,I,q){const Y=parseInt(q,10);if(isNaN(Y)||Y<=0)return;const K=t.find(k=>k.provider===B),W=h[B]??{max_requests:(K==null?void 0:K.max_requests)??100,window_seconds:(K==null?void 0:K.window_seconds)??60};v(k=>({...k,[B]:{...W,[I]:Y}}))}async function C(B){const I=h[B];if(I){s(B);try{await Ne.put(`/api/agents/${encodeURIComponent(e)}/rate-limits/${encodeURIComponent(B)}`,I),n(q=>{const Y=q.findIndex(K=>K.provider===B);if(Y>=0){const K=[...q];return K[Y]={...K[Y],...I},K}return[...q,{agent_id:e,provider:B,...I}]}),v(q=>{const Y={...q};return delete Y[B],Y}),d(null)}catch(q){d("Failed to update rate limit"),console.error(q)}finally{s(null)}}}function M(B){v(I=>{const q={...I};return delete q[B],q})}async function D(B){s(B);try{await Ne.del(`/api/agents/${encodeURIComponent(e)}/rate-limits/${encodeURIComponent(B)}`),n(I=>I.filter(q=>q.provider!==B)),v(I=>{const q={...I};return delete q[B],q}),d(null)}catch(I){d("Failed to remove rate limit"),console.error(I)}finally{s(null)}}async function $(){if(!S)return;const B=parseInt(_,10),I=parseInt(j,10);if(isNaN(B)||B<=0||isNaN(I)||I<=0){d("Invalid rate limit values");return}s(S);try{await Ne.put(`/api/agents/${encodeURIComponent(e)}/rate-limits/${encodeURIComponent(S)}`,{max_requests:B,window_seconds:I}),n(q=>[...q,{agent_id:e,provider:S,max_requests:B,window_seconds:I}]),b(!1),w(""),x("100"),E("60"),d(null)}catch(q){d("Failed to add rate limit"),console.error(q)}finally{s(null)}}return r?g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Rate Limits"}),g.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"Loading..."})]}):g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Rate Limits"}),g.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Limit requests per provider for this agent. Requests exceeding the limit will receive a 429 response."}),f&&g.jsx("div",{className:"mt-2 rounded bg-red-900/50 px-3 py-2 text-sm text-red-300",children:f}),g.jsxs("div",{className:"mt-4 space-y-4",children:[t.map(B=>{const I=l===B.provider,q=B.provider in h,Y=q?h[B.provider].max_requests:B.max_requests,K=q?h[B.provider].window_seconds:B.window_seconds;return g.jsxs("div",{className:"rounded-lg border border-gray-600 bg-gray-900 p-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("span",{className:"font-medium capitalize text-white",children:B.provider}),q&&g.jsx("span",{className:"ml-2 rounded bg-yellow-900 px-2 py-0.5 text-xs text-yellow-200",children:"Unsaved"})]}),g.jsx("button",{onClick:()=>D(B.provider),disabled:I,className:"text-xs text-red-400 hover:text-red-300 disabled:opacity-50",children:"Remove"})]}),g.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[g.jsx("input",{type:"number",min:"1",className:"w-20 rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none disabled:opacity-50",value:Y,onChange:W=>A(B.provider,"max_requests",W.target.value),disabled:I}),g.jsx("span",{className:"text-xs text-gray-400",children:"requests per"}),g.jsx("input",{type:"number",min:"1",className:"w-20 rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none disabled:opacity-50",value:K,onChange:W=>A(B.provider,"window_seconds",W.target.value),disabled:I}),g.jsx("span",{className:"text-xs text-gray-400",children:"seconds"}),q&&g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",onClick:()=>C(B.provider),disabled:I,className:"ml-2 rounded-md bg-indigo-600 px-3 py-1 text-xs font-medium text-white hover:bg-indigo-500 disabled:opacity-50",children:I?"Applying...":"Apply"}),g.jsx("button",{type:"button",onClick:()=>M(B.provider),disabled:I,className:"rounded-md border border-gray-600 px-3 py-1 text-xs font-medium text-gray-300 hover:bg-gray-700 disabled:opacity-50",children:"Cancel"})]})]})]},B.provider)}),t.length===0&&!m&&g.jsx("p",{className:"text-sm text-gray-400",children:"No rate limits configured. Add one to limit request frequency."}),m&&g.jsx("div",{className:"rounded-lg border border-gray-600 bg-gray-900 p-3",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("select",{className:"rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none",value:S,onChange:B=>w(B.target.value),children:[g.jsx("option",{value:"",children:"Select provider"}),N.map(B=>g.jsx("option",{value:B,children:B},B))]}),g.jsx("input",{type:"number",min:"1",placeholder:"Max requests",className:"w-20 rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none",value:_,onChange:B=>x(B.target.value)}),g.jsx("span",{className:"text-xs text-gray-400",children:"per"}),g.jsx("input",{type:"number",min:"1",placeholder:"Seconds",className:"w-20 rounded-md border border-gray-600 bg-gray-800 px-2 py-1 text-sm text-white focus:border-indigo-500 focus:outline-none",value:j,onChange:B=>E(B.target.value)}),g.jsx("span",{className:"text-xs text-gray-400",children:"sec"}),g.jsx("button",{type:"button",onClick:$,disabled:!S||l===S,className:"rounded-md bg-indigo-600 px-3 py-1 text-xs font-medium text-white hover:bg-indigo-500 disabled:opacity-50",children:"Add"}),g.jsx("button",{type:"button",onClick:()=>b(!1),className:"rounded-md border border-gray-600 px-3 py-1 text-xs font-medium text-gray-300 hover:bg-gray-700",children:"Cancel"})]})}),!m&&N.length>0&&g.jsxs("button",{type:"button",onClick:()=>b(!0),className:"flex items-center gap-1 text-sm text-indigo-400 hover:text-indigo-300",children:[g.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Add Rate Limit"]})]})]})}function UV({agentId:e}){const[t]=P.useState(20),n=P.useCallback(()=>Ne.get(`/api/events?agent_id=${encodeURIComponent(e)}&event_type=llm_call&limit=${t}`),[e,t]),{data:r,loading:o,error:l,refresh:s}=Ea(n,5e3);if(o&&!r)return g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Request Log"}),g.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"Loading..."})]});const f=(r==null?void 0:r.events)??[];return g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800",children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[g.jsx("h2",{className:"text-sm font-semibold text-gray-300",children:"Request Log"}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("span",{className:"text-xs text-gray-500",children:["Last ",t," LLM calls"]}),g.jsx("button",{onClick:s,disabled:o,className:"rounded p-1 text-gray-400 transition-colors hover:bg-gray-700 hover:text-gray-200 disabled:opacity-50",title:"Reload",children:g.jsx("svg",{className:`h-4 w-4 ${o?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})})]})]}),l&&g.jsx("div",{className:"mx-4 mb-3 rounded bg-red-900/50 px-3 py-2 text-sm text-red-300",children:l}),f.length===0?g.jsx("div",{className:"px-4 pb-4 text-sm text-gray-400",children:"No LLM calls recorded yet."}):g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"w-full text-left text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-t border-gray-700 bg-gray-900 text-xs uppercase text-gray-400",children:[g.jsx("th",{className:"px-4 py-2 font-medium",children:"Time"}),g.jsx("th",{className:"px-4 py-2 font-medium",children:"Provider"}),g.jsx("th",{className:"px-4 py-2 font-medium",children:"Model"}),g.jsx("th",{className:"px-4 py-2 font-medium text-right",children:"Tokens"}),g.jsx("th",{className:"px-4 py-2 font-medium text-right",children:"Cost"}),g.jsx("th",{className:"px-4 py-2 font-medium text-right",children:"Latency"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-700",children:f.map(d=>{var v;const h=d.requested_model&&d.model&&d.requested_model!==d.model;return g.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[g.jsx("td",{className:"whitespace-nowrap px-4 py-2 text-gray-300",children:Qf(d.timestamp)}),g.jsx("td",{className:"px-4 py-2 text-gray-300",children:d.provider??"-"}),g.jsx("td",{className:"px-4 py-2",children:h?g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("span",{className:"text-gray-500 line-through",children:d.requested_model}),g.jsx("span",{className:"text-gray-400",children:"→"}),g.jsx("span",{className:"font-medium text-indigo-300",children:d.model})]}):g.jsx("span",{className:"text-gray-300",children:d.model??"-"})}),g.jsx("td",{className:"px-4 py-2 text-right text-gray-300",children:((v=d.tokens_total)==null?void 0:v.toLocaleString())??"-"}),g.jsx("td",{className:"px-4 py-2 text-right text-gray-300",children:d.cost_usd!=null?yn(d.cost_usd):"-"}),g.jsx("td",{className:"px-4 py-2 text-right text-gray-300",children:d.latency_ms!=null?`${d.latency_ms}ms`:"-"})]},d.id)})})]})})]})}function ZN(e){return e===null?"--":`${e.toFixed(1)}`}function IV(e){return`${e.toFixed(2)}`}function HV(){const{agentId:e}=mC(),[t,n]=P.useState("24h"),[r,o]=P.useState(""),[l,s]=P.useState(""),f=P.useCallback(()=>{if(!e)return Promise.reject(new Error("Missing agentId"));let b=`/api/stats/${encodeURIComponent(e)}?range=${t}`;return t==="custom"&&r&&l&&(b+=`&from=${encodeURIComponent(r+"T00:00:00Z")}&to=${encodeURIComponent(l+"T23:59:59Z")}`),Ne.get(b)},[e,t,r,l]),{data:d,error:h,loading:v}=Ea(f,3e3),m=P.useMemo(()=>{if(!d)return[];const b=[{label:"Total Requests",value:rr(d.total_requests)},{label:"Total Errors",value:rr(d.total_errors)},{label:"Error Rate (%)",value:IV(d.error_rate)},{label:"Total Cost ($)",value:yn(d.total_cost)},{label:"Tokens Used",value:rr(d.total_tokens)},{label:"P50 Latency (ms)",value:ZN(d.p50_latency)},{label:"P99 Latency (ms)",value:ZN(d.p99_latency)}];return d.blocked_count>0&&b.push({label:"Blocked Requests",value:rr(d.blocked_count)}),b},[d]);return v&&!d?g.jsx(hi,{}):g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Na,{to:"/agents",className:"rounded-md bg-gray-700 px-3 py-1.5 text-sm font-medium text-gray-300 transition-colors hover:bg-gray-600 hover:text-white",children:"← Back"}),g.jsx("h1",{className:"text-2xl font-bold text-white",children:e})]}),h&&g.jsx("div",{className:"mt-4",children:g.jsx($r,{message:h})}),g.jsx("div",{className:"mt-6",children:g.jsx($V,{agentId:e})}),g.jsx("div",{className:"mt-6",children:g.jsx(LV,{agentId:e})}),g.jsx("div",{className:"mt-6",children:g.jsx(qV,{agentId:e})}),g.jsx("div",{className:"mt-6",children:g.jsx(zV,{agentId:e})}),g.jsx("div",{className:"mt-6",children:g.jsx(UV,{agentId:e})}),g.jsx("div",{className:"mt-6",children:g.jsx(AC,{value:t,onChange:n,customFrom:r,customTo:l,onCustomFromChange:o,onCustomToChange:s})}),d&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mt-6 grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-7",children:m.map(b=>g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[g.jsx("p",{className:"text-xs text-gray-400",children:b.label}),g.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:b.value})]},b.label))}),g.jsxs("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"mb-4 text-sm font-semibold text-gray-300",children:"Token Usage Over Time"}),g.jsx(kV,{series:d.token_series})]}),d.cost_by_model.length>0&&g.jsxs("div",{className:"mt-8 overflow-hidden rounded-lg border border-gray-700",children:[g.jsx("h2",{className:"bg-gray-800 px-4 py-3 text-sm font-semibold text-gray-300",children:"Cost Breakdown by Model"}),g.jsxs("table",{className:"w-full text-left text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[g.jsx("th",{className:"px-4 py-3 font-medium",children:"Model"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Provider"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Cost ($)"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Count"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-700",children:d.cost_by_model.map(b=>g.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[g.jsx("td",{className:"px-4 py-3 font-medium text-white",children:b.model}),g.jsx("td",{className:"px-4 py-3 text-gray-300",children:b.provider}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:yn(b.cost)}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:rr(b.count)})]},`${b.model}-${b.provider}`))})]})]}),d.blocked_count>0&&Object.keys(d.block_reasons).length>0&&g.jsxs("div",{className:"mt-8 overflow-hidden rounded-lg border border-gray-700",children:[g.jsx("h2",{className:"bg-gray-800 px-4 py-3 text-sm font-semibold text-gray-300",children:"Blocked Requests by Reason"}),g.jsx("div",{className:"bg-gray-900 p-4",children:g.jsx("div",{className:"flex flex-wrap gap-4",children:Object.entries(d.block_reasons).map(([b,S])=>g.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-red-800 bg-red-900/20 px-3 py-2",children:[g.jsx("span",{className:"text-sm font-medium text-red-400",children:b.replace(/_/g," ")}),g.jsx("span",{className:"rounded-full bg-red-800 px-2 py-0.5 text-xs font-medium text-white",children:rr(S)})]},b))})})]})]})]})}const VR=P.createContext({isLoopback:!1,loading:!0});function GV({children:e}){const[t,n]=P.useState(!1),[r,o]=P.useState(!0);return P.useEffect(()=>{Kn.getConnectionInfo().then(l=>{n(l.isLoopback)}).catch(()=>{n(!1)}).finally(()=>{o(!1)})},[]),g.jsx(VR.Provider,{value:{isLoopback:t,loading:r},children:e})}function YV(){return P.useContext(VR)}const KV={openai:"O",anthropic:"A",google:"G",mistral:"M",cohere:"C",deepseek:"D",moonshot:"m",zhipu:"Z",minimax:"X",baichuan:"B",yi:"Y"};function XV(){const{isLoopback:e}=YV(),[t,n]=P.useState(!1),[r,o]=P.useState(null),l=P.useCallback(()=>Kn.list(),[]),{data:s,error:f,loading:d,refresh:h}=Ea(l,3e3),v=(s==null?void 0:s.providers.filter(b=>b.configured))??[];async function m(b){o(b.name);try{await Kn.toggle(b.name,!b.active),h()}catch(S){console.error("Failed to toggle provider active state:",S)}finally{o(null)}}return d&&!s?g.jsx(hi,{}):g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-white",children:"Providers"}),g.jsx("p",{className:"text-sm text-gray-400",children:"Manage LLM provider connections and settings"})]}),g.jsxs("div",{className:"relative",children:[g.jsx("button",{onClick:()=>n(!0),disabled:!e,className:`rounded-md px-4 py-2 text-sm font-medium transition-colors ${e?"bg-blue-600 text-white hover:bg-blue-700":"cursor-not-allowed bg-gray-700 text-gray-500"}`,title:e?"Add a new provider":"Only available from localhost for API key security",children:"+ Add Provider"}),!e&&g.jsx("div",{className:"absolute right-0 top-full mt-1 w-64 rounded bg-gray-800 p-2 text-xs text-gray-400 shadow-lg",children:"Only available from localhost for API key security"})]})]}),f&&g.jsx("div",{className:"mt-4",children:g.jsx($r,{message:f})}),v.length===0&&g.jsxs("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:[g.jsx("p",{className:"text-gray-400",children:"No providers configured yet."}),g.jsx("p",{className:"mt-1 text-sm text-gray-500",children:'Click "Add Provider" to get started.'})]}),v.length>0&&g.jsx("div",{className:"mt-4 overflow-hidden rounded-lg border border-gray-700",children:g.jsxs("table",{className:"w-full text-left text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[g.jsx("th",{className:"px-4 py-3 font-medium",children:"Provider"}),g.jsx("th",{className:"px-4 py-3 font-medium text-center",children:"Active"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Agents"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Total Tokens"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Total Cost"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Today"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-700",children:v.map(b=>{const S=r===b.name,w=KV[b.name]||b.name[0].toUpperCase();return g.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[g.jsx("td",{className:"px-4 py-3",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-gray-800 text-sm font-bold text-white",children:w}),g.jsx(Na,{to:`/providers/${b.name}`,className:"font-medium capitalize text-blue-400 hover:text-blue-300",children:b.name})]})}),g.jsx("td",{className:"px-4 py-3 text-center",children:g.jsx("button",{onClick:()=>m(b),disabled:S,className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus:outline-none disabled:opacity-50 ${b.active?"bg-green-600":"bg-gray-600"}`,role:"switch","aria-checked":b.active,children:g.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform ${b.active?"translate-x-5":"translate-x-0"}`})})}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:b.agent_count.toLocaleString()}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:b.total_tokens.toLocaleString()}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:yn(b.total_cost)}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:yn(b.today_cost)})]},b.name)})})]})}),t&&g.jsx(VV,{onClose:()=>n(!1),onSuccess:()=>{n(!1),h()}})]})}function VV({onClose:e,onSuccess:t}){const[n,r]=P.useState(""),[o,l]=P.useState(""),[s,f]=P.useState(!1),[d,h]=P.useState(null),[v,m]=P.useState(null),b=["openai","anthropic","google","mistral","cohere","deepseek","moonshot","zhipu","minimax","baichuan","yi"];async function S(w){if(w.preventDefault(),!(!n||!o)){f(!0),h(null),m(null);try{const _=await Kn.add(n,o);m({validated:_.validated,error:_.error}),_.success&&setTimeout(t,1500)}catch(_){h(String(_))}finally{f(!1)}}}return g.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:g.jsxs("div",{className:"w-full max-w-md rounded-lg bg-gray-900 p-6 shadow-xl",children:[g.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[g.jsx("h2",{className:"text-lg font-medium text-white",children:"Add Provider"}),g.jsx("button",{onClick:e,className:"text-gray-400 hover:text-white",children:g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),g.jsxs("form",{onSubmit:S,className:"space-y-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-300",children:"Provider"}),g.jsxs("select",{value:n,onChange:w=>r(w.target.value),className:"mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-white focus:border-blue-500 focus:outline-none",required:!0,children:[g.jsx("option",{value:"",children:"Select a provider..."}),b.map(w=>g.jsx("option",{value:w,children:w.charAt(0).toUpperCase()+w.slice(1)},w))]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-300",children:"API Key"}),g.jsx("input",{type:"password",value:o,onChange:w=>l(w.target.value),placeholder:"sk-...",className:"mt-1 block w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-white placeholder-gray-500 focus:border-blue-500 focus:outline-none",required:!0})]}),d&&g.jsx("div",{className:"rounded bg-red-900/20 p-2 text-sm text-red-400",children:d}),v&&g.jsx("div",{className:`rounded p-2 text-sm ${v.validated?"bg-green-900/20 text-green-400":"bg-yellow-900/20 text-yellow-400"}`,children:v.validated?"API key validated successfully! Provider saved.":`Provider saved, but validation failed: ${v.error}`}),g.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[g.jsx("button",{type:"button",onClick:e,className:"rounded-md px-4 py-2 text-sm text-gray-400 hover:text-white",children:"Cancel"}),g.jsx("button",{type:"submit",disabled:s||!n||!o,className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 disabled:opacity-50",children:s?"Testing...":"Test & Save"})]})]})]})})}const QN=[{label:"1h",value:"1h",ms:3600*1e3},{label:"24h",value:"24h",ms:1440*60*1e3},{label:"7d",value:"7d",ms:10080*60*1e3},{label:"30d",value:"30d",ms:720*60*60*1e3}],JN=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#ec4899"];function FV(){const{name:e}=mC(),[t,n]=P.useState(null),[r,o]=P.useState([]),[l,s]=P.useState(null),[f,d]=P.useState("24h"),[h,v]=P.useState(!0),[m,b]=P.useState(null),[S,w]=P.useState(!0),[_,x]=P.useState(!1),[j,E]=P.useState(100),[T,N]=P.useState(60),[A,C]=P.useState(!1),[M,D]=P.useState(""),[$,B]=P.useState(!1),[I,q]=P.useState(null),[Y,K]=P.useState(!1),[W,k]=P.useState(null);P.useEffect(()=>{e&&X()},[e,f]);async function X(){if(e)try{v(!0);const[z,te,ce]=await Promise.all([Kn.getSettings(e),Kn.getModels(e),Kn.getStats(e,new Date(Date.now()-QN.find(he=>he.value===f).ms).toISOString())]);n(z),o(te.models),s(ce),w(z.active),x(!!z.rate_limit),z.rate_limit&&(E(z.rate_limit.max_requests),N(z.rate_limit.window_seconds)),b(null)}catch(z){b(String(z))}finally{v(!1)}}async function F(){if(e){C(!0);try{await Kn.updateSettings(e,{active:S,rate_limit:_?{max_requests:j,window_seconds:T}:null}),await X()}catch(z){b(String(z))}finally{C(!1)}}}async function oe(){if(e){K(!0),k(null);try{const z=await Kn.validate(e);k(z)}catch(z){k({valid:!1,error:String(z)})}finally{K(!1)}}}async function ue(){if(!(!e||!M.trim())){B(!0),q(null);try{const z=await Kn.testModel(e,M.trim());z.exists?(q({success:!0}),D(""),await X()):q({success:!1,error:z.error||"Model not found"})}catch(z){q({success:!1,error:String(z)})}finally{B(!1)}}}async function L(z){if(e)try{await Kn.removeModel(e,z),await X()}catch(te){b(String(te))}}return h?g.jsx("div",{className:"flex h-64 items-center justify-center",children:g.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-gray-600 border-t-blue-500"})}):m?g.jsxs("div",{className:"rounded-lg bg-red-900/20 p-4 text-red-400",children:["Error: ",m]}):g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Na,{to:"/providers",className:"text-gray-400 hover:text-white",children:g.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold capitalize text-white",children:e}),g.jsx("p",{className:"text-sm text-gray-400",children:"Provider configuration and statistics"})]})]}),g.jsx("button",{onClick:oe,disabled:Y,className:"rounded-md bg-gray-700 px-4 py-2 text-sm font-medium text-white hover:bg-gray-600 disabled:opacity-50",children:Y?"Testing...":"Test Connection"})]}),W&&g.jsx("div",{className:`rounded-lg p-3 ${W.valid?"bg-green-900/20 text-green-400":"bg-red-900/20 text-red-400"}`,children:W.valid?"Connection successful!":`Connection failed: ${W.error}`}),g.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[g.jsx("h2",{className:"mb-4 text-lg font-medium text-white",children:"Settings"}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("label",{className:"font-medium text-white",children:"Active"}),g.jsx("p",{className:"text-sm text-gray-400",children:"Deactivated providers block all requests"})]}),g.jsx("button",{onClick:()=>w(!S),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${S?"bg-blue-600":"bg-gray-600"}`,children:g.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${S?"translate-x-6":"translate-x-1"}`})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("label",{className:"font-medium text-white",children:"Rate Limit"}),g.jsx("p",{className:"text-sm text-gray-400",children:"Limit requests per time window"})]}),g.jsx("button",{onClick:()=>x(!_),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${_?"bg-blue-600":"bg-gray-600"}`,children:g.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${_?"translate-x-6":"translate-x-1"}`})})]}),_&&g.jsxs("div",{className:"mt-2 flex gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm text-gray-400",children:"Max Requests"}),g.jsx("input",{type:"number",value:j,onChange:z=>E(Number(z.target.value)),className:"mt-1 w-24 rounded border border-gray-700 bg-gray-800 px-2 py-1 text-white",min:1})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm text-gray-400",children:"Window (seconds)"}),g.jsx("input",{type:"number",value:T,onChange:z=>N(Number(z.target.value)),className:"mt-1 w-24 rounded border border-gray-700 bg-gray-800 px-2 py-1 text-white",min:1})]})]})]}),g.jsx("div",{className:"pt-2",children:g.jsx("button",{onClick:F,disabled:A,className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 disabled:opacity-50",children:A?"Saving...":"Save Settings"})})]})]}),g.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[g.jsx("h2",{className:"mb-4 text-lg font-medium text-white",children:"Models"}),g.jsxs("div",{className:"mb-4 flex gap-2",children:[g.jsx("input",{type:"text",value:M,onChange:z=>D(z.target.value),placeholder:"Enter model ID (e.g., gpt-4o-mini)",className:"flex-1 rounded border border-gray-700 bg-gray-800 px-3 py-2 text-white placeholder-gray-500"}),g.jsx("button",{onClick:ue,disabled:$||!M.trim(),className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 disabled:opacity-50",children:$?"Testing...":"Test & Add"})]}),I&&g.jsx("div",{className:`mb-4 rounded p-2 text-sm ${I.success?"bg-green-900/20 text-green-400":"bg-red-900/20 text-red-400"}`,children:I.success?"Model verified and added!":`Failed: ${I.error}`}),g.jsxs("div",{className:"space-y-2",children:[r.map(z=>g.jsxs("div",{className:"flex items-center justify-between rounded border border-gray-800 bg-gray-800/50 px-3 py-2",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-white",children:z.id}),z.verified&&g.jsx("span",{className:"rounded-full bg-green-900/30 px-2 py-0.5 text-xs text-green-400",children:"Verified"}),z.custom&&g.jsx("span",{className:"rounded-full bg-blue-900/30 px-2 py-0.5 text-xs text-blue-400",children:"Custom"})]}),z.custom&&g.jsx("button",{onClick:()=>L(z.id),className:"text-gray-400 hover:text-red-400",children:g.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},z.id)),r.length===0&&g.jsx("p",{className:"text-center text-gray-500",children:"No models available"})]})]}),g.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[g.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[g.jsx("h2",{className:"text-lg font-medium text-white",children:"Usage Statistics"}),g.jsx("div",{className:"flex gap-1",children:QN.map(z=>g.jsx("button",{onClick:()=>d(z.value),className:`rounded px-3 py-1 text-sm ${f===z.value?"bg-blue-600 text-white":"bg-gray-800 text-gray-400 hover:bg-gray-700"}`,children:z.label},z.value))})]}),g.jsxs("div",{className:"mb-6 grid gap-4 sm:grid-cols-3",children:[g.jsx(u0,{label:"Total Requests",value:(l==null?void 0:l.total_requests)??0}),g.jsx(u0,{label:"Total Tokens",value:(l==null?void 0:l.total_tokens)??0,format:z=>z.toLocaleString()}),g.jsx(u0,{label:"Total Cost",value:(l==null?void 0:l.total_cost)??0,format:z=>`$${z.toFixed(4)}`})]}),(l==null?void 0:l.by_model)&&l.by_model.length>0&&g.jsxs("div",{children:[g.jsx("h3",{className:"mb-2 text-sm font-medium text-gray-400",children:"Cost by Model"}),g.jsx("div",{className:"h-64",children:g.jsx(fx,{width:"100%",height:"100%",children:g.jsxs(RV,{children:[g.jsx(Fr,{data:l.by_model,dataKey:"cost",nameKey:"model",cx:"50%",cy:"50%",outerRadius:80,label:({model:z,cost:te})=>`${z}: $${te.toFixed(4)}`,children:l.by_model.map((z,te)=>g.jsx(fd,{fill:JN[te%JN.length]},te))}),g.jsx(Pn,{contentStyle:{backgroundColor:"#1f2937",border:"1px solid #374151"},formatter:z=>[`$${z.toFixed(4)}`,"Cost"]})]})})})]})]})]})}function u0({label:e,value:t,format:n}){return g.jsxs("div",{className:"rounded-lg bg-gray-800 p-4",children:[g.jsx("p",{className:"text-sm text-gray-400",children:e}),g.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:n?n(t):t})]})}function Pb({value:e,onChange:t,options:n,label:r}){return g.jsxs("select",{value:e,onChange:o=>t(o.target.value),className:"rounded-md border border-gray-600 bg-gray-900 px-3 py-2 text-sm text-gray-100 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500",children:[g.jsxs("option",{value:"",children:["All ",r]}),n.map(o=>g.jsx("option",{value:o.value,children:o.label},o.value))]})}function WV({series:e,range:t="24h"}){return e.length===0?g.jsx("div",{className:"flex h-[300px] items-center justify-center text-sm text-gray-500",children:"No cost data available"}):g.jsx(fx,{width:"100%",height:300,children:g.jsxs(PV,{data:e,margin:{top:4,right:4,bottom:0,left:0},children:[g.jsx("defs",{children:g.jsxs("linearGradient",{id:"costGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[g.jsx("stop",{offset:"5%",stopColor:"#3b82f6",stopOpacity:.3}),g.jsx("stop",{offset:"95%",stopColor:"#3b82f6",stopOpacity:0})]})}),g.jsx(al,{dataKey:"timestamp",tickFormatter:n=>{const r=new Date(n);return t==="1h"?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):t==="24h"?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):r.toLocaleDateString([],{month:"short",day:"numeric"})},tick:{fill:"#6b7280",fontSize:11},axisLine:{stroke:"#374151"},tickLine:{stroke:"#374151"},interval:"preserveStartEnd"}),g.jsx(il,{tick:{fill:"#6b7280",fontSize:11},axisLine:{stroke:"#374151"},tickLine:{stroke:"#374151"},tickFormatter:n=>`$${n.toFixed(2)}`,width:65}),g.jsx(Pn,{contentStyle:{backgroundColor:"#1f2937",border:"1px solid #374151",borderRadius:6,color:"#e5e7eb",fontSize:12},formatter:(n,r)=>[r==="cost"?`$${n.toFixed(4)}`:n.toLocaleString(),r==="cost"?"Cost":"Tokens"],labelFormatter:n=>{const r=new Date(n);return t==="1h"||t==="24h"?r.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):r.toLocaleDateString([],{weekday:"short",month:"short",day:"numeric"})}}),g.jsx(Da,{type:"monotone",dataKey:"cost",stroke:"#3b82f6",fill:"url(#costGradient)",strokeWidth:2})]})})}function ZV(){const[e,t]=P.useState("24h"),[n,r]=P.useState(""),o=P.useCallback(()=>{const h=new URLSearchParams;return h.set("range",e),n&&h.set("model",n),Ne.get(`/api/stats/overview?${h.toString()}`)},[e,n]),{data:l,error:s,loading:f}=Ea(o,1e4),d=((l==null?void 0:l.available_models)??[]).map(h=>({value:h,label:h}));return f&&!l?g.jsx(hi,{}):g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-white",children:"Costs"}),s&&g.jsx("div",{className:"mt-4",children:g.jsx($r,{message:s})}),g.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[g.jsx(AC,{value:e,onChange:h=>t(h),showCustom:!1}),d.length>0&&g.jsx(Pb,{value:n,onChange:r,options:d,label:"Models"})]}),l&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[g.jsx("p",{className:"text-xs text-gray-400",children:"Total Cost"}),g.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:yn(l.total_cost)})]}),g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[g.jsx("p",{className:"text-xs text-gray-400",children:"Avg Cost / Request"}),g.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:yn(l.avg_cost_per_request)})]}),g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[g.jsx("p",{className:"text-xs text-gray-400",children:"Total Tokens"}),g.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:rr(l.total_tokens)})]}),g.jsxs("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-4 py-3",children:[g.jsx("p",{className:"text-xs text-gray-400",children:"Active Models"}),g.jsx("p",{className:"mt-1 text-2xl font-bold text-white",children:l.active_models})]})]}),g.jsxs("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 p-4",children:[g.jsx("h2",{className:"mb-4 text-sm font-semibold text-gray-300",children:"Cost Trend"}),g.jsx(WV,{series:l.cost_series,range:e})]}),l.cost_by_model.length>0&&g.jsxs("div",{className:"mt-8 overflow-hidden rounded-lg border border-gray-700",children:[g.jsx("h2",{className:"bg-gray-800 px-4 py-3 text-sm font-semibold text-gray-300",children:"Cost by Model"}),g.jsxs("table",{className:"w-full text-left text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[g.jsx("th",{className:"px-4 py-3 font-medium",children:"Model"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Provider"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Cost"}),g.jsx("th",{className:"px-4 py-3 font-medium text-right",children:"Requests"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-700",children:l.cost_by_model.map(h=>g.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[g.jsx("td",{className:"px-4 py-3 font-medium text-white",children:h.model}),g.jsx("td",{className:"px-4 py-3 text-gray-300",children:h.provider}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:yn(h.cost)}),g.jsx("td",{className:"px-4 py-3 text-right text-gray-300",children:rr(h.count)})]},`${h.model}-${h.provider}`))})]})]}),l.cost_by_model.length===0&&g.jsx("div",{className:"mt-8 rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:g.jsx("p",{className:"text-gray-400",children:"No cost data available for this period."})})]})]})}function QV(e,t){switch(e){case"agent_down":return`Inactive > ${t.duration_minutes??"?"}min`;case"error_rate":return`Errors > ${t.threshold??"?"}% / ${t.window_minutes??"?"}min`;case"budget":return`Cost > $${(t.threshold??0).toFixed(2)}`;case"kill_switch":return"Loop detected";default:return JSON.stringify(t)}}function eC(e){switch(e){case"agent_down":return{duration_minutes:5};case"error_rate":return{threshold:10,window_minutes:15};case"budget":return{threshold:100};case"kill_switch":return{}}}function tC(){return{host:"",port:587,secure:!1,user:"",pass:"",from:"",to:""}}function nC(){return{bot_token:"",chat_id:"",message_template:"[From AgentGazer] Alert: {rule_type} - Agent: {agent_id} - {message}"}}const JV={agent_down:"bg-red-900/50 text-red-400 border-red-700",error_rate:"bg-yellow-900/50 text-yellow-400 border-yellow-700",budget:"bg-blue-900/50 text-blue-400 border-blue-700",kill_switch:"bg-purple-900/50 text-purple-400 border-purple-700"};function rC({type:e}){const t=JV[e]??"bg-gray-800 text-gray-400 border-gray-600",n=tF[e]??e.replace("_"," ");return g.jsx("span",{className:`inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium ${t}`,children:n})}function eF({type:e}){const t={webhook:g.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})}),email:g.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"})}),telegram:g.jsx("svg",{className:"h-3.5 w-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})})},n={webhook:"webhook",email:"email",telegram:"telegram"},r=e??"webhook";return g.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-gray-500",children:[t[r],n[r]]})}const aC=[{value:"agent_down",label:"Agent Inactive"},{value:"error_rate",label:"Error Rate"},{value:"budget",label:"Budget Exceeded"},{value:"kill_switch",label:"Kill Switch (Loop)"}],tF={agent_down:"Agent Inactive",error_rate:"Error Rate",budget:"Budget Exceeded",kill_switch:"Kill Switch"},nF=[{value:"webhook",label:"Webhook"},{value:"email",label:"Email (SMTP)"},{value:"telegram",label:"Telegram Bot"}],s0=20,c0=20;function rF({initial:e,editId:t,onSave:n,onCancel:r}){const[o,l]=P.useState([]),[s,f]=P.useState(!0),[d,h]=P.useState(()=>e?{agent_id:e.agent_id,rule_type:e.rule_type,config:{...e.config},notification_type:e.notification_type??"webhook",webhook_url:e.webhook_url??"",smtp_config:e.smtp_config??tC(),telegram_config:e.telegram_config??nC()}:{agent_id:"",rule_type:"agent_down",config:eC("agent_down"),notification_type:"webhook",webhook_url:"",smtp_config:tC(),telegram_config:nC()}),[v,m]=P.useState(!1),[b,S]=P.useState(null);P.useEffect(()=>{Ne.get("/api/agents?limit=1000").then(N=>{l(N.agents),!t&&!d.agent_id&&N.agents.length>0&&h(A=>({...A,agent_id:N.agents[0].agent_id}))}).catch(()=>l([])).finally(()=>f(!1))},[t,d.agent_id]);function w(N){h(A=>({...A,rule_type:N,config:eC(N)}))}function _(N,A){const C=parseFloat(A);h(M=>({...M,config:{...M.config,[N]:isNaN(C)?0:C}}))}function x(N,A){h(C=>({...C,smtp_config:{...C.smtp_config,[N]:A}}))}function j(N,A){h(C=>({...C,telegram_config:{...C.telegram_config,[N]:A}}))}async function E(N){N.preventDefault(),m(!0),S(null);const A={agent_id:d.agent_id,rule_type:d.rule_type,config:d.config,notification_type:d.notification_type};d.notification_type==="webhook"?A.webhook_url=d.webhook_url||void 0:d.notification_type==="email"?A.smtp_config=d.smtp_config:d.notification_type==="telegram"&&(A.telegram_config=d.telegram_config);try{t?await Ne.put(`/api/alerts/${t}`,A):await Ne.post("/api/alerts",A),n()}catch(C){S(C instanceof Error?C.message:"Failed to save")}finally{m(!1)}}const T="mt-1 block w-full rounded-md border border-gray-600 bg-gray-900 px-3 py-2 text-sm text-gray-100 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500";return g.jsxs("form",{onSubmit:E,className:"rounded-lg border border-gray-700 bg-gray-800 p-5",children:[g.jsx("h3",{className:"text-sm font-semibold text-white",children:t?"Edit Alert Rule":"New Alert Rule"}),b&&g.jsx("div",{className:"mt-3",children:g.jsx($r,{message:b})}),g.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Agent"}),s?g.jsx("div",{className:"mt-1 text-sm text-gray-500",children:"Loading agents..."}):o.length===0?g.jsxs("div",{className:"mt-1",children:[g.jsx("input",{type:"text",value:d.agent_id,onChange:N=>h(A=>({...A,agent_id:N.target.value})),className:T,placeholder:"my-agent",required:!0}),g.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"No agents found. Enter agent ID manually."})]}):g.jsxs("select",{value:d.agent_id,onChange:N=>h(A=>({...A,agent_id:N.target.value})),className:T,required:!0,children:[g.jsx("option",{value:"",children:"Select an agent..."}),o.map(N=>g.jsx("option",{value:N.agent_id,children:N.agent_id},N.agent_id))]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Rule Type"}),g.jsxs("select",{value:d.rule_type,onChange:N=>w(N.target.value),className:T,children:[g.jsx("option",{value:"agent_down",children:"Agent Inactive (no activity for X minutes)"}),g.jsx("option",{value:"error_rate",children:"Error Rate (% errors in time window)"}),g.jsx("option",{value:"budget",children:"Budget Exceeded (daily spend threshold)"}),g.jsx("option",{value:"kill_switch",children:"Kill Switch (notify when loop detected)"})]})]})]}),g.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.rule_type==="agent_down"&&g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Inactive Duration (minutes)"}),g.jsx("input",{type:"number",min:1,value:d.config.duration_minutes??5,onChange:N=>_("duration_minutes",N.target.value),className:T}),g.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Alert when agent has no activity for this many minutes"})]}),d.rule_type==="error_rate"&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Error Threshold (%)"}),g.jsx("input",{type:"number",min:0,max:100,step:.1,value:d.config.threshold??10,onChange:N=>_("threshold",N.target.value),className:T})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Time Window (minutes)"}),g.jsx("input",{type:"number",min:1,value:d.config.window_minutes??15,onChange:N=>_("window_minutes",N.target.value),className:T})]})]}),d.rule_type==="budget"&&g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Daily Budget Threshold (USD)"}),g.jsx("input",{type:"number",min:0,step:.01,value:d.config.threshold??100,onChange:N=>_("threshold",N.target.value),className:T}),g.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Alert when daily spend exceeds this amount"})]}),d.rule_type==="kill_switch"&&g.jsx("div",{className:"sm:col-span-2",children:g.jsxs("div",{className:"rounded-md border border-purple-700 bg-purple-900/20 p-4",children:[g.jsx("p",{className:"text-sm font-medium text-purple-300",children:"Kill Switch Alert"}),g.jsx("p",{className:"mt-1 text-xs text-purple-300/80",children:"This alert fires automatically when the kill switch detects an agent stuck in an infinite loop. Enable Kill Switch in the agent's detail page first, then create this alert rule to receive notifications."}),g.jsx("p",{className:"mt-2 text-xs text-gray-400",children:"No additional configuration required - the alert triggers on any loop detection event."})]})})]}),g.jsxs("div",{className:"mt-6 border-t border-gray-700 pt-4",children:[g.jsx("h4",{className:"text-sm font-medium text-white",children:"Notification Settings"}),g.jsxs("div",{className:"mt-3",children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Notification Method"}),g.jsx("select",{value:d.notification_type,onChange:N=>h(A=>({...A,notification_type:N.target.value})),className:T,children:nF.map(N=>g.jsx("option",{value:N.value,children:N.label},N.value))})]})]}),d.notification_type==="webhook"&&g.jsxs("div",{className:"mt-4 space-y-3",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Webhook URL"}),g.jsx("input",{type:"url",value:d.webhook_url,onChange:N=>h(A=>({...A,webhook_url:N.target.value})),className:T,placeholder:"https://hooks.example.com/webhook",required:!0})]}),g.jsxs("div",{className:"rounded-md bg-gray-900 p-3",children:[g.jsx("p",{className:"text-xs font-medium text-gray-400",children:"Webhook Payload Format"}),g.jsx("pre",{className:"mt-2 overflow-x-auto text-xs text-gray-300",children:`POST <your-webhook-url>
|
|
132
|
+
Content-Type: application/json
|
|
133
|
+
|
|
134
|
+
{
|
|
135
|
+
"agent_id": "my-agent",
|
|
136
|
+
"rule_type": "agent_down",
|
|
137
|
+
"message": "Agent \\"my-agent\\" last heartbeat was 10 minutes ago",
|
|
138
|
+
"timestamp": "2026-02-06T12:00:00.000Z"
|
|
139
|
+
}`})]})]}),d.notification_type==="email"&&g.jsxs("div",{className:"mt-4 space-y-3",children:[g.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"SMTP Host"}),g.jsx("input",{type:"text",value:d.smtp_config.host,onChange:N=>x("host",N.target.value),className:T,placeholder:"smtp.gmail.com",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"SMTP Port"}),g.jsx("input",{type:"number",value:d.smtp_config.port,onChange:N=>x("port",parseInt(N.target.value)||587),className:T,placeholder:"587",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"SMTP User"}),g.jsx("input",{type:"text",value:d.smtp_config.user,onChange:N=>x("user",N.target.value),className:T,placeholder:"user@example.com"})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"SMTP Password"}),g.jsx("input",{type:"password",value:d.smtp_config.pass,onChange:N=>x("pass",N.target.value),className:T,placeholder:"••••••••"})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"From Address"}),g.jsx("input",{type:"email",value:d.smtp_config.from,onChange:N=>x("from",N.target.value),className:T,placeholder:"alerts@example.com",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"To Address"}),g.jsx("input",{type:"email",value:d.smtp_config.to,onChange:N=>x("to",N.target.value),className:T,placeholder:"admin@example.com",required:!0})]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("input",{type:"checkbox",id:"smtp-secure",checked:d.smtp_config.secure,onChange:N=>x("secure",N.target.checked),className:"h-4 w-4 rounded border-gray-600 bg-gray-900 text-blue-600 focus:ring-blue-500"}),g.jsx("label",{htmlFor:"smtp-secure",className:"text-xs text-gray-400",children:"Use TLS/SSL (secure connection)"})]})]}),d.notification_type==="telegram"&&g.jsxs("div",{className:"mt-4 space-y-3",children:[g.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Bot Token"}),g.jsx("input",{type:"password",value:d.telegram_config.bot_token,onChange:N=>j("bot_token",N.target.value),className:T,placeholder:"123456789:ABCdefGHIjklMNOpqrsTUVwxyz",required:!0}),g.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"Get from @BotFather on Telegram"})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Chat ID"}),g.jsx("input",{type:"text",value:d.telegram_config.chat_id,onChange:N=>j("chat_id",N.target.value),className:T,placeholder:"-1001234567890",required:!0}),g.jsx("p",{className:"mt-1 text-xs text-gray-500",children:"User ID, group ID, or channel ID"})]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-medium text-gray-400",children:"Message Template"}),g.jsx("textarea",{value:d.telegram_config.message_template,onChange:N=>j("message_template",N.target.value),className:T+" h-20 resize-none",placeholder:"[From AgentGazer] Alert: {rule_type} - Agent: {agent_id} - {message}"}),g.jsxs("p",{className:"mt-1 text-xs text-gray-500",children:["Available variables: ","{agent_id}",", ","{rule_type}",", ","{message}",", ","{timestamp}"]})]})]}),g.jsxs("div",{className:"mt-5 flex gap-3",children:[g.jsx("button",{type:"submit",disabled:v,className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-700 disabled:opacity-50",children:v?"Saving...":"Save"}),g.jsx("button",{type:"button",onClick:r,className:"rounded-md bg-gray-700 px-4 py-2 text-sm font-medium text-gray-300 transition-colors hover:bg-gray-600 hover:text-white",children:"Cancel"})]})]})}function aF(){const[e,t]=P.useState("rules"),[n,r]=P.useState(!1),[o,l]=P.useState(null),[s,f]=P.useState(1),[d,h]=P.useState(""),[v,m]=P.useState(1),[b,S]=P.useState(""),w=P.useCallback(()=>{const F=new URLSearchParams;return F.set("limit",String(s0)),F.set("offset",String((s-1)*s0)),d&&F.set("rule_type",d),Ne.get(`/api/alerts?${F.toString()}`)},[s,d]),{data:_,error:x,loading:j,refresh:E}=Ea(w,5e3),T=P.useCallback(()=>{const F=new URLSearchParams;return F.set("limit",String(c0)),F.set("offset",String((v-1)*c0)),b&&F.set("rule_type",b),Ne.get(`/api/alert-history?${F.toString()}`)},[v,b]),{data:N,error:A,loading:C}=Ea(T,5e3),M=(_==null?void 0:_.total)!=null?Math.ceil(_.total/s0):1,D=(N==null?void 0:N.total)!=null?Math.ceil(N.total/c0):1,[$,B]=P.useState(null);async function I(F){B(null);try{await Ne.patch(`/api/alerts/${F.id}/toggle`,{enabled:!F.enabled}),E()}catch(oe){B(oe instanceof Error?oe.message:"Failed to toggle rule")}}async function q(F){if(confirm(`Delete alert rule for "${F.agent_id}"?`)){B(null);try{await Ne.del(`/api/alerts/${F.id}`),E()}catch(oe){B(oe instanceof Error?oe.message:"Failed to delete rule")}}}function Y(F){l(F),r(!0)}function K(){r(!1),l(null),E()}function W(){r(!1),l(null)}function k(F){h(F),f(1)}function X(F){S(F),m(1)}return g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-white",children:"Alerts"}),g.jsxs("div",{className:"mt-6 flex border-b border-gray-700",children:[g.jsx("button",{onClick:()=>t("rules"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="rules"?"border-b-2 border-blue-500 text-white":"text-gray-400 hover:text-gray-200"}`,children:"Rules"}),g.jsx("button",{onClick:()=>t("history"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="history"?"border-b-2 border-blue-500 text-white":"text-gray-400 hover:text-gray-200"}`,children:"History"})]}),e==="rules"&&g.jsxs("div",{className:"mt-6",children:[x&&g.jsx($r,{message:x}),$&&g.jsx($r,{message:$}),g.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-3",children:[!n&&g.jsx("button",{onClick:()=>{l(null),r(!0)},className:"rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-700",children:"New Alert Rule"}),g.jsx(Pb,{value:d,onChange:k,options:aC,label:"Types"})]}),n&&g.jsx("div",{className:"mb-6",children:g.jsx(rF,{initial:o??void 0,editId:o==null?void 0:o.id,onSave:K,onCancel:W})}),j&&!_&&g.jsx(hi,{}),_&&_.alerts.length===0&&!n&&g.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:g.jsx("p",{className:"text-gray-400",children:"No alert rules configured. Create one to get started."})}),_&&_.alerts.length>0&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"space-y-3",children:_.alerts.map(F=>g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 rounded-lg border border-gray-700 bg-gray-800 px-5 py-4",children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[g.jsx("span",{className:"text-sm font-medium text-white",children:F.agent_id}),g.jsx(rC,{type:F.rule_type}),g.jsx("span",{className:"text-xs text-gray-400",children:QV(F.rule_type,F.config)}),g.jsx(eF,{type:F.notification_type})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("button",{onClick:()=>I(F),className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors focus:outline-none ${F.enabled?"bg-blue-600":"bg-gray-600"}`,role:"switch","aria-checked":F.enabled,children:g.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition-transform ${F.enabled?"translate-x-5":"translate-x-0"}`})}),g.jsx("button",{onClick:()=>Y(F),className:"rounded-md bg-gray-700 px-3 py-1.5 text-xs font-medium text-gray-300 transition-colors hover:bg-gray-600 hover:text-white",children:"Edit"}),g.jsx("button",{onClick:()=>q(F),className:"rounded-md bg-red-900/50 px-3 py-1.5 text-xs font-medium text-red-400 transition-colors hover:bg-red-800 hover:text-red-200",children:"Delete"})]})]},F.id))}),g.jsx(Vc,{currentPage:s,totalPages:M,onPageChange:f})]})]}),e==="history"&&g.jsxs("div",{className:"mt-6",children:[A&&g.jsx($r,{message:A}),g.jsx("div",{className:"mb-4",children:g.jsx(Pb,{value:b,onChange:X,options:aC,label:"Types"})}),C&&!N&&g.jsx(hi,{}),N&&N.history.length===0&&g.jsx("div",{className:"rounded-lg border border-gray-700 bg-gray-800 px-6 py-12 text-center",children:g.jsx("p",{className:"text-gray-400",children:"No alert history yet."})}),N&&N.history.length>0&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-700",children:g.jsxs("table",{className:"w-full text-left text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"bg-gray-800 text-xs uppercase text-gray-400",children:[g.jsx("th",{className:"px-4 py-3 font-medium",children:"Timestamp"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Agent"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Type"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Message"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Delivered Via"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-700",children:N.history.map(F=>g.jsxs("tr",{className:"bg-gray-900 transition-colors hover:bg-gray-800",children:[g.jsx("td",{className:"whitespace-nowrap px-4 py-3 text-gray-300",children:Qf(F.timestamp)}),g.jsx("td",{className:"px-4 py-3 font-medium text-white",children:F.agent_id}),g.jsx("td",{className:"px-4 py-3",children:g.jsx(rC,{type:F.rule_type})}),g.jsx("td",{className:"max-w-xs truncate px-4 py-3 text-gray-300",children:F.message}),g.jsx("td",{className:"px-4 py-3 text-gray-400",children:F.delivered_via})]},F.id))})]})}),g.jsx(Vc,{currentPage:v,totalPages:D,onPageChange:m})]})]})]})}function iF(){return g.jsx(VD,{children:g.jsx(GV,{children:g.jsxs(OD,{children:[g.jsx(nr,{path:"/login",element:g.jsx(o6,{})}),g.jsxs(nr,{element:g.jsx(i6,{children:g.jsx(c6,{})}),children:[g.jsx(nr,{path:"/",element:g.jsx(f6,{})}),g.jsx(nr,{path:"/agents",element:g.jsx(h6,{})}),g.jsx(nr,{path:"/agents/:agentId",element:g.jsx(HV,{})}),g.jsx(nr,{path:"/providers",element:g.jsx(XV,{})}),g.jsx(nr,{path:"/providers/:name",element:g.jsx(FV,{})}),g.jsx(nr,{path:"/costs",element:g.jsx(ZV,{})}),g.jsx(nr,{path:"/alerts",element:g.jsx(aF,{})})]})]})})})}w5.createRoot(document.getElementById("root")).render(g.jsx(P.StrictMode,{children:g.jsx(iF,{})}));
|