@tsiky/components-r19 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CartesianChart-BGkSJT6t.js +18529 -0
- package/dist/CartesianChart-KB_nIUsI.cjs +134 -0
- package/dist/chart.cjs.js +58 -47
- package/dist/chart.d.ts +3 -2
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +9276 -5711
- package/dist/components-r19.css +1 -1
- package/dist/index.cjs.js +1644 -1633
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17660 -15332
- package/dist/mockServiceWorker.js +336 -0
- package/dist/move-8i2rW7Z0.cjs +26 -0
- package/dist/move-DFwOHmr2.js +110 -0
- package/dist/src/components/AddItemModal/AddItemModal.d.ts.map +1 -1
- package/dist/src/components/AreaChartV2/AreaChartV2.d.ts +23 -0
- package/dist/src/components/AreaChartV2/AreaChartV2.d.ts.map +1 -0
- package/dist/src/components/AreaChartV2/index.d.ts +2 -0
- package/dist/src/components/AreaChartV2/index.d.ts.map +1 -0
- package/dist/src/components/ChartV2/ChartV2.d.ts +74 -0
- package/dist/src/components/ChartV2/ChartV2.d.ts.map +1 -0
- package/dist/src/components/ChartV2/index.d.ts +3 -0
- package/dist/src/components/ChartV2/index.d.ts.map +1 -0
- package/dist/src/components/Charts/boxplot-chart/BoxPlotChart.d.ts +3 -0
- package/dist/src/components/Charts/boxplot-chart/BoxPlotChart.d.ts.map +1 -1
- package/dist/src/components/Charts/mixed-chart/MixedChart.d.ts +1 -0
- package/dist/src/components/Charts/mixed-chart/MixedChart.d.ts.map +1 -1
- package/dist/src/components/ComponentVisibilityManager/ComponentVisibilityManager.d.ts.map +1 -1
- package/dist/src/components/DataBoard/DataBoard.d.ts +24 -0
- package/dist/src/components/DataBoard/DataBoard.d.ts.map +1 -0
- package/dist/src/components/DataBoard/index.d.ts +2 -0
- package/dist/src/components/DataBoard/index.d.ts.map +1 -0
- package/dist/src/components/DataFourBoards/DataFourBoards.d.ts +23 -0
- package/dist/src/components/DataFourBoards/DataFourBoards.d.ts.map +1 -0
- package/dist/src/components/DataFourBoards/index.d.ts +2 -0
- package/dist/src/components/DataFourBoards/index.d.ts.map +1 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +58 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/src/components/DatePicker/index.d.ts +2 -0
- package/dist/src/components/DatePicker/index.d.ts.map +1 -0
- package/dist/src/components/DayStatCardV2/DayStatCardV2.d.ts +28 -0
- package/dist/src/components/DayStatCardV2/DayStatCardV2.d.ts.map +1 -0
- package/dist/src/components/DayStatCardV2/index.d.ts +2 -0
- package/dist/src/components/DayStatCardV2/index.d.ts.map +1 -0
- package/dist/src/components/DynamicTable/TableauDynamiqueSafePagination/TableauDynamiqueSafePagination.d.ts.map +1 -1
- package/dist/src/components/FilterBar/FilterBar.d.ts +32 -0
- package/dist/src/components/FilterBar/FilterBar.d.ts.map +1 -0
- package/dist/src/components/FilterBar/index.d.ts +2 -0
- package/dist/src/components/FilterBar/index.d.ts.map +1 -0
- package/dist/src/components/HorizontalBarChart/HorizontalBarChart.d.ts +19 -0
- package/dist/src/components/HorizontalBarChart/HorizontalBarChart.d.ts.map +1 -0
- package/dist/src/components/HorizontalBarChart/index.d.ts +2 -0
- package/dist/src/components/HorizontalBarChart/index.d.ts.map +1 -0
- package/dist/src/components/IndicatorItemV2/IndicatorItemV2.d.ts +20 -0
- package/dist/src/components/IndicatorItemV2/IndicatorItemV2.d.ts.map +1 -0
- package/dist/src/components/IndicatorItemV2/index.d.ts +2 -0
- package/dist/src/components/IndicatorItemV2/index.d.ts.map +1 -0
- package/dist/src/components/Logo/Logo.d.ts.map +1 -1
- package/dist/src/components/NavBar/NavContext.d.ts +11 -0
- package/dist/src/components/NavBar/NavContext.d.ts.map +1 -1
- package/dist/src/components/NavBarV2/NavBarV2.d.ts +42 -0
- package/dist/src/components/NavBarV2/NavBarV2.d.ts.map +1 -0
- package/dist/src/components/NavBarV2/index.d.ts +2 -0
- package/dist/src/components/NavBarV2/index.d.ts.map +1 -0
- package/dist/src/components/NavItemV2/NavItemV2.d.ts +25 -0
- package/dist/src/components/NavItemV2/NavItemV2.d.ts.map +1 -0
- package/dist/src/components/NavItemV2/index.d.ts +2 -0
- package/dist/src/components/NavItemV2/index.d.ts.map +1 -0
- package/dist/src/components/SankeyChartV2/SankeyChartV2.d.ts +26 -0
- package/dist/src/components/SankeyChartV2/SankeyChartV2.d.ts.map +1 -0
- package/dist/src/components/SankeyChartV2/index.d.ts +2 -0
- package/dist/src/components/SankeyChartV2/index.d.ts.map +1 -0
- package/dist/src/components/Select/Select.d.ts +52 -0
- package/dist/src/components/Select/Select.d.ts.map +1 -0
- package/dist/src/components/Select/index.d.ts +3 -0
- package/dist/src/components/Select/index.d.ts.map +1 -0
- package/dist/src/components/ShowDataSwitcher/ShowDataSwitcherButton.d.ts +9 -1
- package/dist/src/components/ShowDataSwitcher/ShowDataSwitcherButton.d.ts.map +1 -1
- package/dist/src/components/SubHeader/SubHeader.d.ts +77 -0
- package/dist/src/components/SubHeader/SubHeader.d.ts.map +1 -0
- package/dist/src/components/SubHeader/SubHeaderContent.d.ts +32 -0
- package/dist/src/components/SubHeader/SubHeaderContent.d.ts.map +1 -0
- package/dist/src/components/SubHeader/SubHeaderNavItem.d.ts +25 -0
- package/dist/src/components/SubHeader/SubHeaderNavItem.d.ts.map +1 -0
- package/dist/src/components/SubHeader/SubHeaderTitle.d.ts +15 -0
- package/dist/src/components/SubHeader/SubHeaderTitle.d.ts.map +1 -0
- package/dist/src/components/SubHeaderContent/SubHeaderContent.d.ts +47 -0
- package/dist/src/components/SubHeaderContent/SubHeaderContent.d.ts.map +1 -0
- package/dist/src/components/SubHeaderContent/SubHeaderNavItem.d.ts +25 -0
- package/dist/src/components/SubHeaderContent/SubHeaderNavItem.d.ts.map +1 -0
- package/dist/src/components/SubHeaderContent/index.d.ts +2 -0
- package/dist/src/components/SubHeaderContent/index.d.ts.map +1 -0
- package/dist/src/components/SubHeaderNavItem/SubHeaderNavItem.d.ts +30 -0
- package/dist/src/components/SubHeaderNavItem/SubHeaderNavItem.d.ts.map +1 -0
- package/dist/src/components/SubHeaderNavItem/index.d.ts +2 -0
- package/dist/src/components/SubHeaderNavItem/index.d.ts.map +1 -0
- package/dist/src/components/SubHeaderTitle/SubHeaderTitle.d.ts +22 -0
- package/dist/src/components/SubHeaderTitle/SubHeaderTitle.d.ts.map +1 -0
- package/dist/src/components/SubHeaderTitle/index.d.ts +2 -0
- package/dist/src/components/SubHeaderTitle/index.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/Filters.d.ts +12 -0
- package/dist/src/components/TableauxComponent/Filters.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/Pagination.d.ts +18 -0
- package/dist/src/components/TableauxComponent/Pagination.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/TableBody.d.ts +12 -0
- package/dist/src/components/TableauxComponent/TableBody.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/TableHeader.d.ts +10 -0
- package/dist/src/components/TableauxComponent/TableHeader.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/TableLayout.d.ts +4 -0
- package/dist/src/components/TableauxComponent/TableLayout.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/TimelineRenderer.d.ts +8 -0
- package/dist/src/components/TableauxComponent/TimelineRenderer.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/index.d.ts +5 -0
- package/dist/src/components/TableauxComponent/index.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/types.d.ts +102 -0
- package/dist/src/components/TableauxComponent/types.d.ts.map +1 -0
- package/dist/src/components/TableauxComponent/useTableLogic.d.ts +19 -0
- package/dist/src/components/TableauxComponent/useTableLogic.d.ts.map +1 -0
- package/dist/src/components/ThemeSwitcher/ThemeSwitcher.d.ts +14 -0
- package/dist/src/components/ThemeSwitcher/ThemeSwitcher.d.ts.map +1 -0
- package/dist/src/components/ThemeSwitcher/index.d.ts +2 -0
- package/dist/src/components/ThemeSwitcher/index.d.ts.map +1 -0
- package/dist/src/components/TranslationKey/TranslationKey.d.ts.map +1 -1
- package/dist/src/components/UserInfo/UserInfo.d.ts +34 -0
- package/dist/src/components/UserInfo/UserInfo.d.ts.map +1 -0
- package/dist/src/components/UserInfo/index.d.ts +2 -0
- package/dist/src/components/UserInfo/index.d.ts.map +1 -0
- package/package.json +14 -3
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";const S=require("react"),ue=require("react/jsx-runtime"),Lp=require("react-dom");function rw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const w=rw(S);/**
|
|
2
|
+
* @license lucide-react v0.540.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const nw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),iw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Ul=e=>{const t=iw(e);return t.charAt(0).toUpperCase()+t.slice(1)},zp=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),aw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
7
|
+
* @license lucide-react v0.540.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var ow={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.540.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const Bp=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...u},s)=>S.createElement("svg",{ref:s,...ow,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:zp("lucide",i),...!a&&!aw(u)&&{"aria-hidden":"true"},...u},[...o.map(([c,l])=>S.createElement(c,l)),...Array.isArray(a)?a:[a]]));/**
|
|
17
|
+
* @license lucide-react v0.540.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const Fp=(e,t)=>{const r=S.forwardRef(({className:n,...i},a)=>S.createElement(Bp,{ref:a,iconNode:t,className:zp(`lucide-${nw(Ul(e))}`,`lucide-${e}`,n),...i}));return r.displayName=Ul(e),r};/**
|
|
22
|
+
* @license lucide-react v0.540.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const uw=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],sw=Fp("move",uw);var cw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lw(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}const fw="_wrapper_1ogd3_1",dw="_label_1ogd3_14",vw="_labelText_1ogd3_22",hw="_calendarIcon_1ogd3_26",pw="_rangeRow_1ogd3_31",mw="_dateWrap_1ogd3_39",yw="_innerLabel_1ogd3_47",gw="_dateInput_1ogd3_52",bw="_sepWrap_1ogd3_65",ww="_separator_1ogd3_72",xw="_samplingWrap_1ogd3_77",Ow="_samplingLabel_1ogd3_86",Pw="_samplingSelect_1ogd3_90",Ce={wrapper:fw,label:dw,labelText:vw,calendarIcon:hw,rangeRow:pw,dateWrap:mw,innerLabel:yw,dateInput:gw,sepWrap:bw,separator:ww,samplingWrap:xw,samplingLabel:Ow,samplingSelect:Pw};function Sw({start:e="",end:t="",onChange:r,sampling:n="day",onSamplingChange:i,labels:a={},samplingOptions:o={},className:u=""}){const s={period:"Période",start:"Début",end:"Fin",sampling:"Échantillonnage",...a},c={hour:"Par heure",day:"Par jour",week:"Par semaine",month:"Par mois",...o},[l,f]=S.useState(e),[d,v]=S.useState(t),[h,m]=S.useState(n),p=S.useRef(null);S.useEffect(()=>f(e),[e]),S.useEffect(()=>v(t),[t]),S.useEffect(()=>m(n),[n]),S.useEffect(()=>{function g(b){const x=b.target;p.current&&x&&p.current.contains(x)}return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]),S.useEffect(()=>{r?.({start:l,end:d})},[l,d,r]);const y=g=>{m(g),i?.(g)};return ue.jsxs("div",{className:`${Ce.wrapper} ${u}`,ref:p,children:[ue.jsxs("label",{className:Ce.label,"aria-hidden":!0,children:[ue.jsxs("svg",{className:Ce.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[ue.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),ue.jsx("path",{fill:"currentColor",d:"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zM5 20V9h14l.002 11H5z"})]}),ue.jsx("span",{className:Ce.labelText,children:s.period})]}),ue.jsxs("div",{className:Ce.rangeRow,children:[ue.jsxs("div",{className:Ce.dateWrap,children:[ue.jsx("label",{className:Ce.innerLabel,htmlFor:"period-from",children:s.start}),ue.jsx("input",{id:"period-from",className:Ce.dateInput,type:"date",value:l,onChange:g=>f(g.target.value),"aria-label":s.start})]}),ue.jsx("div",{className:Ce.sepWrap,"aria-hidden":!0,children:ue.jsx("span",{className:Ce.separator,children:"—"})}),ue.jsxs("div",{className:Ce.dateWrap,children:[ue.jsx("label",{className:Ce.innerLabel,htmlFor:"period-to",children:s.end}),ue.jsx("div",{className:Ce.inputWithIcon,children:ue.jsx("input",{id:"period-to",className:Ce.dateInput,type:"date",value:d,onChange:g=>v(g.target.value),"aria-label":s.end})})]}),ue.jsxs("div",{className:Ce.samplingWrap,children:[ue.jsx("label",{className:Ce.samplingLabel,htmlFor:"period-sampling",children:s.sampling}),ue.jsxs("select",{id:"period-sampling",className:Ce.samplingSelect,value:h,onChange:g=>y(g.target.value),"aria-label":s.sampling,children:[ue.jsx("option",{value:"hour",children:c.hour}),ue.jsx("option",{value:"day",children:c.day}),ue.jsx("option",{value:"week",children:c.week}),ue.jsx("option",{value:"month",children:c.month})]})]})]})]})}function qp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=qp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function re(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=qp(e))&&(n&&(n+=" "),n+=t);return n}var Ew=["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"];function Ys(e){if(typeof e!="string")return!1;var t=Ew;return t.includes(e)}var _w=["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"],Aw=new Set(_w);function Wp(e){return typeof e!="string"?!1:Aw.has(e)}function Up(e){return typeof e=="string"&&e.startsWith("data-")}function Ot(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Wp(r)||Up(r))&&(t[r]=e[r]);return t}function Ea(e){if(e==null)return null;if(S.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ot(t)}return typeof e=="object"&&!Array.isArray(e)?Ot(e):null}function Be(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Wp(r)||Up(r)||Ys(r))&&(t[r]=e[r]);return t}function Cw(e){return e==null?null:S.isValidElement(e)?Be(e.props):typeof e=="object"&&!Array.isArray(e)?Be(e):null}var jw=["children","width","height","viewBox","className","style","title","desc"];function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gu.apply(null,arguments)}function Iw(e,t){if(e==null)return{};var r,n,i=Tw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Tw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Gs=S.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:s,desc:c}=e,l=Iw(e,jw),f=a||{width:n,height:i,x:0,y:0},d=re("recharts-surface",o);return w.createElement("svg",Gu({},Be(l),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),w.createElement("title",null,s),w.createElement("desc",null,c),r)}),kw=["children","className"];function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xu.apply(null,arguments)}function Mw(e,t){if(e==null)return{};var r,n,i=Dw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Dw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Pt=w.forwardRef((e,t)=>{var{children:r,className:n}=e,i=Mw(e,kw),a=re("recharts-layer",n);return w.createElement("g",Xu({className:a},Be(i),{ref:t}),r)}),Kp=S.createContext(null),Nw=()=>S.useContext(Kp);function te(e){return function(){return e}}const Vp=Math.cos,Mi=Math.sin,pt=Math.sqrt,Di=Math.PI,_a=2*Di,Zu=Math.PI,Qu=2*Zu,cr=1e-6,$w=Qu-cr;function Hp(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Rw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Hp;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Lw{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Hp:Rw(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,l=o-t,f=u-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>cr)if(!(Math.abs(f*s-c*l)>cr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,h=i-u,m=s*s+c*c,p=v*v+h*h,y=Math.sqrt(m),g=Math.sqrt(d),b=a*Math.tan((Zu-Math.acos((m+d-p)/(2*y*g)))/2),x=b/g,P=b/y;Math.abs(x-1)>cr&&this._append`L${t+x*l},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*v>l*h)},${this._x1=t+P*s},${this._y1=r+P*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,l=r+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>cr||Math.abs(this._y1-l)>cr)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Qu+Qu),d>$w?this._append`A${n},${n},0,1,${f},${t-u},${r-s}A${n},${n},0,1,${f},${this._x1=c},${this._y1=l}`:d>cr&&this._append`A${n},${n},0,${+(d>=Zu)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Xs(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Lw(t)}function Zs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Yp(e){this._context=e}Yp.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 Aa(e){return new Yp(e)}function Gp(e){return e[0]}function Xp(e){return e[1]}function Zp(e,t){var r=te(!0),n=null,i=Aa,a=null,o=Xs(u);e=typeof e=="function"?e:e===void 0?Gp:te(e),t=typeof t=="function"?t:t===void 0?Xp:te(t);function u(s){var c,l=(s=Zs(s)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),c=0;c<=l;++c)!(c<l&&r(f=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,s),+t(f,c,s));if(v)return a=null,v+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:te(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:te(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:te(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function ai(e,t,r){var n=null,i=te(!0),a=null,o=Aa,u=null,s=Xs(c);e=typeof e=="function"?e:e===void 0?Gp:te(+e),t=typeof t=="function"?t:te(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Xp:te(+r);function c(f){var d,v,h,m=(f=Zs(f)).length,p,y=!1,g,b=new Array(m),x=new Array(m);for(a==null&&(u=o(g=s())),d=0;d<=m;++d){if(!(d<m&&i(p=f[d],d,f))===y)if(y=!y)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(b[h],x[h]);u.lineEnd(),u.areaEnd()}y&&(b[d]=+e(p,d,f),x[d]=+t(p,d,f),u.point(n?+n(p,d,f):b[d],r?+r(p,d,f):x[d]))}if(g)return u=null,g+""||null}function l(){return Zp().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:te(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:te(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:te(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:te(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:te(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:te(+f),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(t)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:te(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),c):a},c}class Qp{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function zw(e){return new Qp(e,!0)}function Bw(e){return new Qp(e,!1)}const Qs={draw(e,t){const r=pt(t/Di);e.moveTo(r,0),e.arc(0,0,r,0,_a)}},Fw={draw(e,t){const r=pt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Jp=pt(1/3),qw=Jp*2,Ww={draw(e,t){const r=pt(t/qw),n=r*Jp;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Uw={draw(e,t){const r=pt(t),n=-r/2;e.rect(n,n,r,r)}},Kw=.8908130915292852,em=Mi(Di/10)/Mi(7*Di/10),Vw=Mi(_a/10)*em,Hw=-Vp(_a/10)*em,Yw={draw(e,t){const r=pt(t*Kw),n=Vw*r,i=Hw*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=_a*a/5,u=Vp(o),s=Mi(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},po=pt(3),Gw={draw(e,t){const r=-pt(t/(po*3));e.moveTo(0,r*2),e.lineTo(-po*r,-r),e.lineTo(po*r,-r),e.closePath()}},rt=-.5,nt=pt(3)/2,Ju=1/pt(12),Xw=(Ju/2+1)*3,Zw={draw(e,t){const r=pt(t/Xw),n=r/2,i=r*Ju,a=n,o=r*Ju+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(rt*n-nt*i,nt*n+rt*i),e.lineTo(rt*a-nt*o,nt*a+rt*o),e.lineTo(rt*u-nt*s,nt*u+rt*s),e.lineTo(rt*n+nt*i,rt*i-nt*n),e.lineTo(rt*a+nt*o,rt*o-nt*a),e.lineTo(rt*u+nt*s,rt*s-nt*u),e.closePath()}};function Qw(e,t){let r=null,n=Xs(i);e=typeof e=="function"?e:te(e||Qs),t=typeof t=="function"?t:te(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:te(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:te(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ni(){}function $i(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function tm(e){this._context=e}tm.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:$i(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:$i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jw(e){return new tm(e)}function rm(e){this._context=e}rm.prototype={areaStart:Ni,areaEnd:Ni,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:$i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ex(e){return new rm(e)}function nm(e){this._context=e}nm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:$i(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tx(e){return new nm(e)}function im(e){this._context=e}im.prototype={areaStart:Ni,areaEnd:Ni,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 rx(e){return new im(e)}function Kl(e){return e<0?-1:1}function Vl(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Kl(a)+Kl(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Hl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function mo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Ri(e){this._context=e}Ri.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:mo(this,this._t0,Hl(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,mo(this,Hl(this,r=Vl(this,e,t)),r);break;default:mo(this,this._t0,r=Vl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function am(e){this._context=new om(e)}(am.prototype=Object.create(Ri.prototype)).point=function(e,t){Ri.prototype.point.call(this,t,e)};function om(e){this._context=e}om.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function nx(e){return new Ri(e)}function ix(e){return new am(e)}function um(e){this._context=e}um.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Yl(e),i=Yl(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Yl(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function ax(e){return new um(e)}function Ca(e,t){this._context=e,this._t=t}Ca.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function ox(e){return new Ca(e,.5)}function ux(e){return new Ca(e,0)}function sx(e){return new Ca(e,1)}function xr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function es(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function cx(e,t){return e[t]}function lx(e){const t=[];return t.key=e,t}function fx(){var e=te([]),t=es,r=xr,n=cx;function i(a){var o=Array.from(e.apply(this,arguments),lx),u,s=o.length,c=-1,l;for(const f of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(f,o[u].key,c,a)]).data=f;for(u=0,l=Zs(t(o));u<s;++u)o[l[u]].index=u;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:te(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:te(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?es:typeof a=="function"?a:te(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??xr,i):r},i}function dx(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}xr(e,t)}}function vx(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}xr(e,t)}}function hx(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var l=e[t[u]],f=l[n][1]||0,d=l[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var m=e[t[h]],p=m[n][1]||0,y=m[n-1][1]||0;v+=p-y}s+=f,c+=v*f}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,xr(e,t)}}var yo={},go={},Gl;function px(){return Gl||(Gl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t}(go)),go}var bo={},Xl;function sm(){return Xl||(Xl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t}(bo)),bo}var wo={},Zl;function Js(){return Zl||(Zl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t}(wo)),wo}var xo={},Oo={},Ql;function mx(){return Ql||(Ql=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t}(Oo)),Oo}var Jl;function ec(){return Jl||(Jl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mx(),r=Js();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],o=i.length;if(o===0)return a;let u=0,s="",c="",l=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<o;){const f=i[u];c?f==="\\"&&u+1<o?(u++,s+=i[u]):f===c?c="":s+=f:l?f==='"'||f==="'"?c=f:f==="]"?(l=!1,a.push(s),s=""):s+=f:f==="["?(l=!0,s&&(a.push(s),s="")):f==="."?s&&(a.push(s),s=""):s+=f,u++}return s&&a.push(s),a}e.toPath=n}(xo)),xo}var ef;function tc(){return ef||(ef=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=px(),r=sm(),n=Js(),i=ec();function a(u,s,c){if(u==null)return c;switch(typeof s){case"string":{if(t.isUnsafeProperty(s))return c;const l=u[s];return l===void 0?r.isDeepKey(s)?a(u,i.toPath(s),c):c:l}case"number":case"symbol":{typeof s=="number"&&(s=n.toKey(s));const l=u[s];return l===void 0?c:l}default:{if(Array.isArray(s))return o(u,s,c);if(Object.is(s?.valueOf(),-0)?s="-0":s=String(s),t.isUnsafeProperty(s))return c;const l=u[s];return l===void 0?c:l}}}function o(u,s,c){if(s.length===0)return c;let l=u;for(let f=0;f<s.length;f++){if(l==null||t.isUnsafeProperty(s[f]))return c;l=l[s[f]]}return l===void 0?c:l}e.get=a}(yo)),yo}var Po,tf;function yx(){return tf||(tf=1,Po=tc().get),Po}var gx=yx();const Or=zt(gx);var bx=4;function Jt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bx,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ce(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var u=r[o-1];return typeof u=="string"?i+u+a:u!==void 0?i+Jt(u)+a:i+a},"")}var Ke=e=>e===0?0:e>0?1:-1,ft=e=>typeof e=="number"&&e!=+e,Pr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,R=e=>(typeof e=="number"||e instanceof Number)&&!ft(e),St=e=>R(e)||typeof e=="string",wx=0,Sn=e=>{var t=++wx;return"".concat(e||"").concat(t)},dt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!R(t)&&typeof t!="string")return n;var a;if(Pr(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return ft(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},cm=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Oe(e,t,r){return R(e)&&R(t)?Jt(e+r*(t-e)):t}function lm(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Or(n,t))===r)}var xx=e=>{for(var t=e.length,r=0,n=0,i=0,a=0,o=1/0,u=-1/0,s=0,c=0,l=0;l<t;l++){var f,d;s=((f=e[l])===null||f===void 0?void 0:f.cx)||0,c=((d=e[l])===null||d===void 0?void 0:d.cy)||0,r+=s,n+=c,i+=s*c,a+=s*s,o=Math.min(o,s),u=Math.max(u,s)}var v=t*a!==r*r?(t*i-r*n)/(t*a-r*r):0;return{xmin:o,xmax:u,a:v,b:(n-v*r)/t}},le=e=>e===null||typeof e>"u",Bn=e=>le(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Le(e){return e!=null}function Dr(){}var Ox=["type","size","sizeType"];function ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ts.apply(null,arguments)}function rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rf(Object(r),!0).forEach(function(n){Px(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Px(e,t,r){return(t=Sx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sx(e){var t=Ex(e,"string");return typeof t=="symbol"?t:t+""}function Ex(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _x(e,t){if(e==null)return{};var r,n,i=Ax(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ax(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var fm={symbolCircle:Qs,symbolCross:Fw,symbolDiamond:Ww,symbolSquare:Uw,symbolStar:Yw,symbolTriangle:Gw,symbolWye:Zw},Cx=Math.PI/180,jx=e=>{var t="symbol".concat(Bn(e));return fm[t]||Qs},Ix=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*Cx;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Tx=(e,t)=>{fm["symbol".concat(Bn(e))]=t},rc=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=_x(e,Ox),a=nf(nf({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=jx(o),v=Qw().type(d).size(Ix(r,n,o)),h=v();if(h!==null)return h},{className:s,cx:c,cy:l}=a,f=Be(a);return R(c)&&R(l)&&R(r)?w.createElement("path",ts({},f,{className:re("recharts-symbols",s),transform:"translate(".concat(c,", ").concat(l,")"),d:u()})):null};rc.registerSymbol=Tx;var dm=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,vm=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(S.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Ys(i)&&(n[i]=a=>r[i](r,a))}),n},kx=(e,t,r)=>n=>(e(t,r,n),null),ja=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];Ys(i)&&typeof a=="function"&&(n||(n={}),n[i]=kx(a,t,r))}),n},Mx=e=>Array.isArray(e)&&e.length>0;function af(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?af(Object(r),!0).forEach(function(n){Nx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):af(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nx(e,t,r){return(t=$x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $x(e){var t=Rx(e,"string");return typeof t=="symbol"?t:t+""}function Rx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function He(e,t){var r=Dx({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}var So={},Eo={},of;function Lx(){return of||(of=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const o=r[a],u=n(o,a,r);i.has(u)||i.set(u,o)}return Array.from(i.values())}e.uniqBy=t}(Eo)),Eo}var _o={},uf;function zx(){return uf||(uf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...i){return r.apply(this,i.slice(0,n))}}e.ary=t}(_o)),_o}var Ao={},sf;function nc(){return sf||(sf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t}(Ao)),Ao}var Co={},jo={},Io={},cf;function Bx(){return cf||(cf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t}(Io)),Io}var lf;function ic(){return lf||(lf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bx();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r}(jo)),jo}var To={},ff;function Fx(){return ff||(ff=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t}(To)),To}var df;function qx(){return df||(df=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ic(),r=Fx();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n}(Co)),Co}var ko={},Mo={},vf;function Wx(){return vf||(vf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tc();function r(n){return function(i){return t.get(i,n)}}e.property=r}(Mo)),Mo}var Do={},No={},$o={},Ro={},hf;function hm(){return hf||(hf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t}(Ro)),Ro}var Lo={},pf;function pm(){return pf||(pf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t}(Lo)),Lo}var zo={},mf;function mm(){return mf||(mf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t}(zo)),zo}var yf;function Ux(){return yf||(yf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hm(),r=pm(),n=mm();function i(l,f,d){return typeof d!="function"?i(l,f,()=>{}):a(l,f,function v(h,m,p,y,g,b){const x=d(h,m,p,y,g,b);return x!==void 0?!!x:a(h,m,v,b)},new Map)}function a(l,f,d,v){if(f===l)return!0;switch(typeof f){case"object":return o(l,f,d,v);case"function":return Object.keys(f).length>0?a(l,{...f},d,v):n.isEqualsSameValueZero(l,f);default:return t.isObject(l)?typeof f=="string"?f==="":!0:n.isEqualsSameValueZero(l,f)}}function o(l,f,d,v){if(f==null)return!0;if(Array.isArray(f))return s(l,f,d,v);if(f instanceof Map)return u(l,f,d,v);if(f instanceof Set)return c(l,f,d,v);const h=Object.keys(f);if(l==null||r.isPrimitive(l))return h.length===0;if(h.length===0)return!0;if(v?.has(f))return v.get(f)===l;v?.set(f,l);try{for(let m=0;m<h.length;m++){const p=h[m];if(!r.isPrimitive(l)&&!(p in l)||f[p]===void 0&&l[p]!==void 0||f[p]===null&&l[p]!==null||!d(l[p],f[p],p,l,f,v))return!1}return!0}finally{v?.delete(f)}}function u(l,f,d,v){if(f.size===0)return!0;if(!(l instanceof Map))return!1;for(const[h,m]of f.entries()){const p=l.get(h);if(d(p,m,h,l,f,v)===!1)return!1}return!0}function s(l,f,d,v){if(f.length===0)return!0;if(!Array.isArray(l))return!1;const h=new Set;for(let m=0;m<f.length;m++){const p=f[m];let y=!1;for(let g=0;g<l.length;g++){if(h.has(g))continue;const b=l[g];let x=!1;if(d(b,p,m,l,f,v)&&(x=!0),x){h.add(g),y=!0;break}}if(!y)return!1}return!0}function c(l,f,d,v){return f.size===0?!0:l instanceof Set?s([...l],[...f],d,v):!1}e.isMatchWith=i,e.isSetMatch=c}($o)),$o}var gf;function ym(){return gf||(gf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ux();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r}(No)),No}var Bo={},Fo={},qo={},bf;function Kx(){return bf||(bf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t}(qo)),qo}var Wo={},wf;function ac(){return wf||(wf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t}(Wo)),Wo}var Uo={},xf;function gm(){return xf||(xf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",u="[object Date]",s="[object Map]",c="[object Set]",l="[object Array]",f="[object Function]",d="[object ArrayBuffer]",v="[object Object]",h="[object Error]",m="[object DataView]",p="[object Uint8Array]",y="[object Uint8ClampedArray]",g="[object Uint16Array]",b="[object Uint32Array]",x="[object BigUint64Array]",P="[object Int8Array]",O="[object Int16Array]",E="[object Int32Array]",A="[object BigInt64Array]",k="[object Float32Array]",N="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=l,e.bigInt64ArrayTag=A,e.bigUint64ArrayTag=x,e.booleanTag=i,e.dataViewTag=m,e.dateTag=u,e.errorTag=h,e.float32ArrayTag=k,e.float64ArrayTag=N,e.functionTag=f,e.int16ArrayTag=O,e.int32ArrayTag=E,e.int8ArrayTag=P,e.mapTag=s,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=g,e.uint32ArrayTag=b,e.uint8ArrayTag=p,e.uint8ClampedArrayTag=y}(Uo)),Uo}var Ko={},Of;function Vx(){return Of||(Of=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t}(Ko)),Ko}var Pf;function bm(){return Pf||(Pf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kx(),r=ac(),n=gm(),i=pm(),a=Vx();function o(l,f){return u(l,void 0,l,new Map,f)}function u(l,f,d,v=new Map,h=void 0){const m=h?.(l,f,d,v);if(m!==void 0)return m;if(i.isPrimitive(l))return l;if(v.has(l))return v.get(l);if(Array.isArray(l)){const p=new Array(l.length);v.set(l,p);for(let y=0;y<l.length;y++)p[y]=u(l[y],y,d,v,h);return Object.hasOwn(l,"index")&&(p.index=l.index),Object.hasOwn(l,"input")&&(p.input=l.input),p}if(l instanceof Date)return new Date(l.getTime());if(l instanceof RegExp){const p=new RegExp(l.source,l.flags);return p.lastIndex=l.lastIndex,p}if(l instanceof Map){const p=new Map;v.set(l,p);for(const[y,g]of l)p.set(y,u(g,y,d,v,h));return p}if(l instanceof Set){const p=new Set;v.set(l,p);for(const y of l)p.add(u(y,void 0,d,v,h));return p}if(typeof Buffer<"u"&&Buffer.isBuffer(l))return l.subarray();if(a.isTypedArray(l)){const p=new(Object.getPrototypeOf(l)).constructor(l.length);v.set(l,p);for(let y=0;y<l.length;y++)p[y]=u(l[y],y,d,v,h);return p}if(l instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&l instanceof SharedArrayBuffer)return l.slice(0);if(l instanceof DataView){const p=new DataView(l.buffer.slice(0),l.byteOffset,l.byteLength);return v.set(l,p),s(p,l,d,v,h),p}if(typeof File<"u"&&l instanceof File){const p=new File([l],l.name,{type:l.type});return v.set(l,p),s(p,l,d,v,h),p}if(typeof Blob<"u"&&l instanceof Blob){const p=new Blob([l],{type:l.type});return v.set(l,p),s(p,l,d,v,h),p}if(l instanceof Error){const p=new l.constructor;return v.set(l,p),p.message=l.message,p.name=l.name,p.stack=l.stack,p.cause=l.cause,s(p,l,d,v,h),p}if(l instanceof Boolean){const p=new Boolean(l.valueOf());return v.set(l,p),s(p,l,d,v,h),p}if(l instanceof Number){const p=new Number(l.valueOf());return v.set(l,p),s(p,l,d,v,h),p}if(l instanceof String){const p=new String(l.valueOf());return v.set(l,p),s(p,l,d,v,h),p}if(typeof l=="object"&&c(l)){const p=Object.create(Object.getPrototypeOf(l));return v.set(l,p),s(p,l,d,v,h),p}return l}function s(l,f,d=l,v,h){const m=[...Object.keys(f),...t.getSymbols(f)];for(let p=0;p<m.length;p++){const y=m[p],g=Object.getOwnPropertyDescriptor(l,y);(g==null||g.writable)&&(l[y]=u(f[y],y,d,v,h))}}function c(l){switch(r.getTag(l)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=u,e.copyProperties=s}(Fo)),Fo}var Sf;function Hx(){return Sf||(Sf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bm();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r}(Bo)),Bo}var Ef;function Yx(){return Ef||(Ef=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ym(),r=Hx();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n}(Do)),Do}var Vo={},Ho={},Yo={},_f;function Gx(){return _f||(_f=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bm(),r=ac(),n=gm();function i(a,o){return t.cloneDeepWith(a,(u,s,c,l)=>{const f=o?.(u,s,c,l);if(f!==void 0)return f;if(typeof a=="object"){if(r.getTag(a)===n.objectTag&&typeof a.constructor!="function"){const d={};return l.set(a,d),t.copyProperties(d,a,c,l),d}switch(Object.prototype.toString.call(a)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new a.constructor(a?.valueOf());return t.copyProperties(d,a),d}case n.argumentsTag:{const d={};return t.copyProperties(d,a),d.length=a.length,d[Symbol.iterator]=a[Symbol.iterator],d}default:return}}})}e.cloneDeepWith=i}(Yo)),Yo}var Af;function Xx(){return Af||(Af=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gx();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r}(Ho)),Ho}var Go={},Xo={},Cf;function wm(){return Cf||(Cf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r}(Xo)),Xo}var Zo={},jf;function Zx(){return jf||(jf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ac();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r}(Zo)),Zo}var If;function Qx(){return If||(If=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sm(),r=wm(),n=Zx(),i=ec();function a(o,u){let s;if(Array.isArray(u)?s=u:typeof u=="string"&&t.isDeepKey(u)&&o?.[u]==null?s=i.toPath(u):s=[u],s.length===0)return!1;let c=o;for(let l=0;l<s.length;l++){const f=s[l];if((c==null||!Object.hasOwn(c,f))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(f)&&f<c.length))return!1;c=c[f]}return!0}e.has=a}(Go)),Go}var Tf;function Jx(){return Tf||(Tf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ym(),r=Js(),n=Xx(),i=tc(),a=Qx();function o(u,s){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return s=n.cloneDeep(s),function(c){const l=i.get(c,u);return l===void 0?a.has(c,u):s===void 0?l===void 0:t.isMatch(l,s)}}e.matchesProperty=o}(Vo)),Vo}var kf;function xm(){return kf||(kf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nc(),r=Wx(),n=Yx(),i=Jx();function a(o){if(o==null)return t.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?i.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}e.iteratee=a}(ko)),ko}var Mf;function eO(){return Mf||(Mf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lx(),r=zx(),n=nc(),i=qx(),a=xm();function o(u,s=n.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),r.ary(a.iteratee(s),1)):[]}e.uniqBy=o}(So)),So}var Qo,Df;function tO(){return Df||(Df=1,Qo=eO().uniqBy),Qo}var rO=tO();const Nf=zt(rO);function Om(e,t,r){return t===!0?Nf(e,r):typeof t=="function"?Nf(e,t):e}var oi={exports:{}},Jo={},ui={exports:{}},eu={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* use-sync-external-store-shim.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var $f;function nO(){if($f)return eu;$f=1;var e=S;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function u(f,d){var v=d(),h=n({inst:{value:v,getSnapshot:d}}),m=h[0].inst,p=h[1];return a(function(){m.value=v,m.getSnapshot=d,s(m)&&p({inst:m})},[f,v,d]),i(function(){return s(m)&&p({inst:m}),f(function(){s(m)&&p({inst:m})})},[f]),o(v),v}function s(f){var d=f.getSnapshot;f=f.value;try{var v=d();return!r(f,v)}catch{return!0}}function c(f,d){return d()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:u;return eu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,eu}var tu={};/**
|
|
35
|
+
* @license React
|
|
36
|
+
* use-sync-external-store-shim.development.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var Rf;function iO(){return Rf||(Rf=1,process.env.NODE_ENV!=="production"&&function(){function e(v,h){return v===h&&(v!==0||1/v===1/h)||v!==v&&h!==h}function t(v,h){l||i.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!f){var p=h();a(m,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}p=o({inst:{value:m,getSnapshot:h}});var y=p[0].inst,g=p[1];return s(function(){y.value=m,y.getSnapshot=h,r(y)&&g({inst:y})},[v,m,h]),u(function(){return r(y)&&g({inst:y}),v(function(){r(y)&&g({inst:y})})},[v]),c(m),m}function r(v){var h=v.getSnapshot;v=v.value;try{var m=h();return!a(v,m)}catch{return!0}}function n(v,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=S,a=typeof Object.is=="function"?Object.is:e,o=i.useState,u=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue,l=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;tu.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),tu}var Lf;function Pm(){return Lf||(Lf=1,process.env.NODE_ENV==="production"?ui.exports=nO():ui.exports=iO()),ui.exports}/**
|
|
43
|
+
* @license React
|
|
44
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var zf;function aO(){if(zf)return Jo;zf=1;var e=S,t=Pm();function r(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,u=e.useMemo,s=e.useDebugValue;return Jo.useSyncExternalStoreWithSelector=function(c,l,f,d,v){var h=a(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=u(function(){function y(O){if(!g){if(g=!0,b=O,O=d(O),v!==void 0&&m.hasValue){var E=m.value;if(v(E,O))return x=E}return x=O}if(E=x,n(b,O))return E;var A=d(O);return v!==void 0&&v(E,A)?(b=O,E):(b=O,x=A)}var g=!1,b,x,P=f===void 0?null:f;return[function(){return y(l())},P===null?void 0:function(){return y(P())}]},[l,f,d,v]);var p=i(c,h[0],h[1]);return o(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},Jo}var ru={};/**
|
|
51
|
+
* @license React
|
|
52
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var Bf;function oO(){return Bf||(Bf=1,process.env.NODE_ENV!=="production"&&function(){function e(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=S,r=Pm(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,a=t.useRef,o=t.useEffect,u=t.useMemo,s=t.useDebugValue;ru.useSyncExternalStoreWithSelector=function(c,l,f,d,v){var h=a(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=u(function(){function y(O){if(!g){if(g=!0,b=O,O=d(O),v!==void 0&&m.hasValue){var E=m.value;if(v(E,O))return x=E}return x=O}if(E=x,n(b,O))return E;var A=d(O);return v!==void 0&&v(E,A)?(b=O,E):(b=O,x=A)}var g=!1,b,x,P=f===void 0?null:f;return[function(){return y(l())},P===null?void 0:function(){return y(P())}]},[l,f,d,v]);var p=i(c,h[0],h[1]);return o(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ru}var Ff;function uO(){return Ff||(Ff=1,process.env.NODE_ENV==="production"?oi.exports=aO():oi.exports=oO()),oi.exports}var sO=uO(),oc=S.createContext(null),cO=e=>e,oe=()=>{var e=S.useContext(oc);return e?e.store.dispatch:cO},Ai=()=>{},lO=()=>Ai,fO=(e,t)=>e===t;function L(e){var t=S.useContext(oc),r=S.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ai,[t,e]);return sO.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:lO,t?t.store.getState:Ai,t?t.store.getState:Ai,r,fO)}var dO=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
59
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
60
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
61
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},vO=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,u=n(()=>({}),...i);if(!(u.apply(null,a)===u.apply(null,o))){let c;try{throw new Error}catch(l){({stack:c}=l)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
62
|
+
This means your output selector will likely run more frequently than intended.
|
|
63
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
64
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:a,secondInputs:o,stack:c})}},hO={inputStabilityCheck:"once",identityFunctionCheck:"once"};function pO(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function mO(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function yO(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var qf=e=>Array.isArray(e)?e:[e];function gO(e){const t=Array.isArray(e[0])?e[0]:e;return yO(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Wf(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var bO=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...hO,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:dO},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:vO}}},wO=class{constructor(e){this.value=e}deref(){return this.value}},xO=typeof WeakRef<"u"?WeakRef:wO,OO=0,Uf=1;function si(){return{s:OO,v:void 0,o:null,p:null}}function Sm(e,t={}){let r=si();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:s}=arguments;for(let f=0,d=s;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let h=u.o;h===null&&(u.o=h=new WeakMap);const m=h.get(v);m===void 0?(u=si(),h.set(v,u)):u=m}else{let h=u.p;h===null&&(u.p=h=new Map);const m=h.get(v);m===void 0?(u=si(),h.set(v,u)):u=m}}const c=u;let l;if(u.s===Uf)l=u.v;else if(l=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,l)&&(l=f,a!==0&&a--),i=typeof l=="object"&&l!==null||typeof l=="function"?new xO(l):l}return c.s=Uf,c.v=l,l}return o.clearCache=()=>{r=si(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function PO(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),pO(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...s},{memoize:f,memoizeOptions:d=[],argsMemoize:v=Sm,argsMemoizeOptions:h=[],devModeChecks:m={}}=l,p=qf(d),y=qf(h),g=gO(i),b=f(function(){return a++,c.apply(null,arguments)},...p);let x=!0;const P=v(function(){o++;const E=Wf(g,arguments);if(u=b.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:k}=bO(x,m);if(A.shouldRun&&A.run(c,E,u),k.shouldRun){const N=Wf(g,arguments);k.run({inputSelectorResults:E,inputSelectorResultsCopy:N},{memoize:f,memoizeOptions:p},arguments)}x&&(x=!1)}return u},...y);return Object.assign(P,{resultFunc:c,memoizedResultFunc:b,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var _=PO(Sm),SO=Object.assign((e,t=_)=>{mO(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,s)=>(o[r[s]]=u,o),{}))},{withTypes:()=>SO}),nu={},iu={},au={},Kf;function EO(){return Kf||(Kf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r}(au)),au}var ou={},uu={},Vf;function Em(){return Vf||(Vf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t}(uu)),uu}var Hf;function _O(){return Hf||(Hf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Em(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i}(ou)),ou}var Yf;function AO(){return Yf||(Yf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EO(),r=_O(),n=ec();function i(a,o,u,s){if(a==null)return[];u=s?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const c=(v,h)=>{let m=v;for(let p=0;p<h.length&&m!=null;++p)m=m[h[p]];return m},l=(v,h)=>h==null||v==null?h:typeof v=="object"&&"key"in v?Object.hasOwn(h,v.key)?h[v.key]:c(h,v.path):typeof v=="function"?v(h):Array.isArray(v)?c(h,v):typeof h=="object"?h[v]:h,f=o.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return a.map(v=>({original:v,criteria:f.map(h=>l(h,v))})).slice().sort((v,h)=>{for(let m=0;m<f.length;m++){const p=t.compareValues(v.criteria[m],h.criteria[m],u[m]);if(p!==0)return p}return 0}).map(v=>v.original)}e.orderBy=i}(iu)),iu}var su={},Gf;function CO(){return Gf||(Gf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,s)=>{for(let c=0;c<u.length;c++){const l=u[c];Array.isArray(l)&&s<a?o(l,s+1):i.push(l)}};return o(r,0),i}e.flatten=t}(su)),su}var cu={},Xf;function _m(){return Xf||(Xf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wm(),r=ic(),n=hm(),i=mm();function a(o,u,s){return n.isObject(s)&&(typeof u=="number"&&r.isArrayLike(s)&&t.isIndex(u)&&u<s.length||typeof u=="string"&&u in s)?i.isEqualsSameValueZero(s[u],o):!1}e.isIterateeCall=a}(cu)),cu}var Zf;function jO(){return Zf||(Zf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AO(),r=CO(),n=_m();function i(a,...o){const u=o.length;return u>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i}(nu)),nu}var lu,Qf;function IO(){return Qf||(Qf=1,lu=jO().sortBy),lu}var TO=IO();const Ia=zt(TO);var Am=e=>e.legend.settings,kO=e=>e.legend.size,MO=e=>e.legend.payload,DO=_([MO,Am],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Ia(n,r):n}),ci=1;function Cm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=S.useState({height:0,left:0,top:0,width:0}),n=S.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>ci||Math.abs(o.left-t.left)>ci||Math.abs(o.top-t.top)>ci||Math.abs(o.width-t.width)>ci)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function je(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var NO=typeof Symbol=="function"&&Symbol.observable||"@@observable",Jf=NO,fu=()=>Math.random().toString(36).substring(7).split("").join("."),$O={INIT:`@@redux/INIT${fu()}`,REPLACE:`@@redux/REPLACE${fu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fu()}`},yr=$O;function Fn(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function RO(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(BO(e))return"date";if(zO(e))return"error";const r=LO(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function LO(e){return typeof e.constructor=="function"?e.constructor.name:null}function zO(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function BO(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Gt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=RO(e)),t}function jm(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?je(2):`Expected the root reducer to be a function. Instead, received: '${Gt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?je(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?je(1):`Expected the enhancer to be a function. Instead, received: '${Gt(r)}'`);return r(jm)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,s=!1;function c(){o===a&&(o=new Map,a.forEach((p,y)=>{o.set(y,p)}))}function l(){if(s)throw new Error(process.env.NODE_ENV==="production"?je(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?je(4):`Expected the listener to be a function. Instead, received: '${Gt(p)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?je(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;c();const g=u++;return o.set(g,p),function(){if(y){if(s)throw new Error(process.env.NODE_ENV==="production"?je(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c(),o.delete(g),a=null}}}function d(p){if(!Fn(p))throw new Error(process.env.NODE_ENV==="production"?je(7):`Actions must be plain objects. Instead, the actual type was: '${Gt(p)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?je(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof p.type!="string")throw new Error(process.env.NODE_ENV==="production"?je(17):`Action "type" property must be a string. Instead, the actual type was: '${Gt(p.type)}'. Value was: '${p.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?je(9):"Reducers may not dispatch actions.");try{s=!0,i=n(i,p)}finally{s=!1}return(a=o).forEach(g=>{g()}),p}function v(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?je(10):`Expected the nextReducer to be a function. Instead, received: '${Gt(p)}`);n=p,d({type:yr.REPLACE})}function h(){const p=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?je(11):`Expected the observer to be an object. Instead, received: '${Gt(y)}'`);function g(){const x=y;x.next&&x.next(l())}return g(),{unsubscribe:p(g)}},[Jf](){return this}}}return d({type:yr.INIT}),{dispatch:d,subscribe:f,getState:l,replaceReducer:v,[Jf]:h}}function ed(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function FO(e,t,r,n){const i=Object.keys(t),a=r&&r.type===yr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Fn(e))return`The ${a} has unexpected type of "${Gt(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(u=>!t.hasOwnProperty(u)&&!n[u]);if(o.forEach(u=>{n[u]=!0}),!(r&&r.type===yr.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function qO(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:yr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?je(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:yr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?je(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${yr.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Im(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const u=t[o];process.env.NODE_ENV!=="production"&&typeof e[u]>"u"&&ed(`No reducer provided for key "${u}"`),typeof e[u]=="function"&&(r[u]=e[u])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{qO(r)}catch(o){a=o}return function(u={},s){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=FO(u,r,s,i);f&&ed(f)}let c=!1;const l={};for(let f=0;f<n.length;f++){const d=n[f],v=r[d],h=u[d],m=v(h,s);if(typeof m>"u"){const p=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?je(14):`When called with an action of type ${p?`"${String(p)}"`:"(unknown type)"}, the slice reducer for key "${d}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}l[d]=m,c=c||m!==h}return c=c||n.length!==Object.keys(u).length,c?l:u}}function Li(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function WO(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?je(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(s,...c)=>a(s,...c)},u=e.map(s=>s(o));return a=Li(...u)(i.dispatch),{...i,dispatch:a}}}function uc(e){return Fn(e)&&"type"in e&&typeof e.type=="string"}var Tm=Symbol.for("immer-nothing"),td=Symbol.for("immer-draftable"),Fe=Symbol.for("immer-state"),UO=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Qe(e,...t){if(process.env.NODE_ENV!=="production"){const r=UO[e],n=dr(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,Yr=et.getPrototypeOf,zi="constructor",Ta="prototype",rs="configurable",Bi="enumerable",Ci="writable",En="value",Dt=e=>!!e&&!!e[Fe];function vt(e){return e?km(e)||Ma(e)||!!e[td]||!!e[zi]?.[td]||Da(e)||Na(e):!1}var KO=et[Ta][zi].toString(),rd=new WeakMap;function km(e){if(!e||!sc(e))return!1;const t=Yr(e);if(t===null||t===et[Ta])return!0;const r=et.hasOwnProperty.call(t,zi)&&t[zi];if(r===Object)return!0;if(!dr(r))return!1;let n=rd.get(r);return n===void 0&&(n=Function.toString.call(r),rd.set(r,n)),n===KO}function ka(e,t,r=!0){qn(e)===0?(r?Reflect.ownKeys(e):et.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function qn(e){const t=e[Fe];return t?t.type_:Ma(e)?1:Da(e)?2:Na(e)?3:0}var nd=(e,t,r=qn(e))=>r===2?e.has(t):et[Ta].hasOwnProperty.call(e,t),ns=(e,t,r=qn(e))=>r===2?e.get(t):e[t],Fi=(e,t,r,n=qn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function VO(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ma=Array.isArray,Da=e=>e instanceof Map,Na=e=>e instanceof Set,sc=e=>typeof e=="object",dr=e=>typeof e=="function",du=e=>typeof e=="boolean";function HO(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Ct=e=>e.copy_||e.base_,cc=e=>e.modified_?e.copy_:e.base_;function is(e,t){if(Da(e))return new Map(e);if(Na(e))return new Set(e);if(Ma(e))return Array[Ta].slice.call(e);const r=km(e);if(t===!0||t==="class_only"&&!r){const n=et.getOwnPropertyDescriptors(e);delete n[Fe];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Ci]===!1&&(u[Ci]=!0,u[rs]=!0),(u.get||u.set)&&(n[o]={[rs]:!0,[Ci]:!0,[Bi]:u[Bi],[En]:e[o]})}return et.create(Yr(e),n)}else{const n=Yr(e);if(n!==null&&r)return{...e};const i=et.create(n);return et.assign(i,e)}}function lc(e,t=!1){return $a(e)||Dt(e)||!vt(e)||(qn(e)>1&&et.defineProperties(e,{set:li,add:li,clear:li,delete:li}),et.freeze(e),t&&ka(e,(r,n)=>{lc(n,!0)},!1)),e}function YO(){Qe(2)}var li={[En]:YO};function $a(e){return e===null||!sc(e)?!0:et.isFrozen(e)}var qi="MapSet",as="Patches",id="ArrayMethods",Mm={};function Sr(e){const t=Mm[e];return t||Qe(0,e),t}var ad=e=>!!Mm[e],_n,Dm=()=>_n,GO=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ad(qi)?Sr(qi):void 0,arrayMethodsPlugin_:ad(id)?Sr(id):void 0});function od(e,t){t&&(e.patchPlugin_=Sr(as),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function os(e){us(e),e.drafts_.forEach(XO),e.drafts_=null}function us(e){e===_n&&(_n=e.parent_)}var ud=e=>_n=GO(_n,e);function XO(e){const t=e[Fe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function sd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Fe].modified_&&(os(t),Qe(4)),vt(e)&&(e=cd(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[Fe].base_,e,t)}else e=cd(t,r);return ZO(t,e,!0),os(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Tm?e:void 0}function cd(e,t){if($a(t))return t;const r=t[Fe];if(!r)return Wi(t,e.handledSet_,e);if(!Ra(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Rm(r,e)}return r.copy_}function ZO(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&lc(t,r)}function Nm(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ra=(e,t)=>e.scope_===t,QO=[];function $m(e,t,r,n){const i=Ct(e),a=e.type_;if(n!==void 0&&ns(i,n,a)===t){Fi(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;ka(i,(s,c)=>{if(Dt(c)){const l=u.get(c)||[];l.push(s),u.set(c,l)}})}const o=e.draftLocations_.get(t)??QO;for(const u of o)Fi(i,u,r,a)}function JO(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!Ra(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=cc(a);$m(e,a.draft_??a,o,r),Rm(a,i)})}function Rm(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}Nm(e)}}function e1(e,t,r){const{scope_:n}=e;if(Dt(r)){const i=r[Fe];Ra(i,n)&&i.callbacks_.push(function(){ji(e);const o=cc(i);$m(e,r,o,t)})}else vt(r)&&e.callbacks_.push(function(){const a=Ct(e);e.type_===3?a.has(r)&&Wi(r,n.handledSet_,n):ns(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Wi(ns(e.copy_,t,e.type_),n.handledSet_,n)})}function Wi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Dt(e)||t.has(e)||!vt(e)||$a(e)||(t.add(e),ka(e,(n,i)=>{if(Dt(i)){const a=i[Fe];if(Ra(a,r)){const o=cc(a);Fi(e,n,o,e.type_),Nm(a)}}else vt(i)&&Wi(i,t,r)})),e}function t1(e,t){const r=Ma(e),n={type_:r?1:0,scope_:t?t.scope_:Dm(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=Ui;r&&(i=[n],a=An);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var Ui={get(e,t){if(t===Fe)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=Ct(e);if(!nd(i,t,e.type_))return r1(e,i,t);const a=i[t];if(e.finalized_||!vt(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&HO(t))return a;if(a===vu(e.base_,t)){ji(e);const o=e.type_===1?+t:t,u=cs(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in Ct(e)},ownKeys(e){return Reflect.ownKeys(Ct(e))},set(e,t,r){const n=Lm(Ct(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=vu(Ct(e),t),a=i?.[Fe];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(VO(r,i)&&(r!==void 0||nd(e.base_,t,e.type_)))return!0;ji(e),ss(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),e1(e,t,r)),!0},deleteProperty(e,t){return ji(e),vu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ss(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ct(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Ci]:!0,[rs]:e.type_!==1||t!=="length",[Bi]:n[Bi],[En]:r[t]}},defineProperty(){Qe(11)},getPrototypeOf(e){return Yr(e.base_)},setPrototypeOf(){Qe(12)}},An={};for(let e in Ui){let t=Ui[e];An[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}An.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Qe(13),An.set.call(this,e,t,void 0)};An.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Qe(14),Ui.set.call(this,e[0],t,r,e[0])};function vu(e,t){const r=e[Fe];return(r?Ct(r):e)[t]}function r1(e,t,r){const n=Lm(t,r);return n?En in n?n[En]:n.get?.call(e.draft_):void 0}function Lm(e,t){if(!(t in e))return;let r=Yr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Yr(r)}}function ss(e){e.modified_||(e.modified_=!0,e.parent_&&ss(e.parent_))}function ji(e){e.copy_||(e.assigned_=new Map,e.copy_=is(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var n1=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(dr(r)&&!dr(n)){const o=n;n=r;const u=this;return function(c=o,...l){return u.produce(c,f=>n.call(this,f,...l))}}dr(n)||Qe(6),i!==void 0&&!dr(i)&&Qe(7);let a;if(vt(r)){const o=ud(this),u=cs(o,r,void 0);let s=!0;try{a=n(u),s=!1}finally{s?os(o):us(o)}return od(o,i),sd(a,o)}else if(!r||!sc(r)){if(a=n(r),a===void 0&&(a=r),a===Tm&&(a=void 0),this.autoFreeze_&&lc(a,!0),i){const o=[],u=[];Sr(as).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else Qe(1,r)},this.produceWithPatches=(r,n)=>{if(dr(r))return(u,...s)=>this.produceWithPatches(u,c=>r(c,...s));let i,a;return[this.produce(r,n,(u,s)=>{i=u,a=s}),i,a]},du(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),du(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),du(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){vt(t)||Qe(8),Dt(t)&&(t=lt(t));const r=ud(this),n=cs(r,t,void 0);return n[Fe].isManual_=!0,us(r),n}finishDraft(t,r){const n=t&&t[Fe];(!n||!n.isManual_)&&Qe(9);const{scope_:i}=n;return od(i,r),sd(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Sr(as).applyPatches_;return Dt(t)?i(t,r):this.produce(t,a=>i(a,r))}};function cs(e,t,r,n){const[i,a]=Da(t)?Sr(qi).proxyMap_(t,r):Na(t)?Sr(qi).proxySet_(t,r):t1(t,r);return(r?.scope_??Dm()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?JO(r,a,n):a.callbacks_.push(function(s){s.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:c}=s;a.modified_&&c&&c.generatePatches_(a,[],s)}),i}function lt(e){return Dt(e)||Qe(10,e),zm(e)}function zm(e){if(!vt(e)||$a(e))return e;const t=e[Fe];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=is(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=is(e,!0);return ka(r,(i,a)=>{Fi(r,i,zm(a))},n),t&&(t.finalized_=!1),r}var i1=new n1,Bm=i1.produce;function Fm(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var a1=Fm(),o1=Fm,u1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Li:Li.apply(null,arguments)},s1=e=>e&&typeof e.match=="function";function ot(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?H(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>uc(n)&&n.type===e,r}function c1(e){return typeof e=="function"&&"type"in e&&s1(e)}function l1(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
65
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function f1(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=c1}=e;return()=>r=>n=>(t(n)&&console.warn(l1(n.type)),r(n))}function qm(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const a=Date.now();r+=a-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
|
|
66
|
+
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
67
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Wm=class wn extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,wn.prototype)}static get[Symbol.species](){return wn}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new wn(...t[0].concat(this)):new wn(...t.concat(this))}};function ld(e){return vt(e)?Bm(e,()=>{}):e}function fi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function d1(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function v1(e,t,r){const n=Um(e,t,r);return{detectMutations(){return Km(e,t,n,r)}}}function Um(e,t=[],r,n="",i=new Set){const a={value:r};if(!e(r)&&!i.has(r)){i.add(r),a.children={};const o=t.length>0;for(const u in r){const s=n?n+"."+u:u;o&&t.some(l=>l instanceof RegExp?l.test(s):s===l)||(a.children[u]=Um(e,t,r[u],s))}}return a}function Km(e,t=[],r,n,i=!1,a=""){const o=r?r.value:void 0,u=o===n;if(i&&!u&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};const s={};for(let l in r.children)s[l]=!0;for(let l in n)s[l]=!0;const c=t.length>0;for(let l in s){const f=a?a+"."+l:l;if(c&&t.some(h=>h instanceof RegExp?h.test(f):f===h))continue;const d=Km(e,t,r.children[l],n[l],u,f);if(d.wasMutated)return d}return{wasMutated:!1}}function h1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(u,s,c,l){return JSON.stringify(u,r(s,l),c)},r=function(u,s){let c=[],l=[];return s||(s=function(f,d){return c[0]===d?"[Circular ~]":"[Circular ~."+l.slice(0,c.indexOf(d)).join(".")+"]"}),function(f,d){if(c.length>0){var v=c.indexOf(this);~v?c.splice(v+1):c.push(this),~v?l.splice(v,1/0,f):l.push(f),~c.indexOf(d)&&(d=s.call(this,f,d))}else c.push(d);return u==null?d:u.call(this,f,d)}},{isImmutable:n=d1,ignoredPaths:i,warnAfter:a=32}=e;const o=v1.bind(null,n,i);return({getState:u})=>{let s=u(),c=o(s),l;return f=>d=>{const v=qm(a,"ImmutableStateInvariantMiddleware");v.measureTime(()=>{if(s=u(),l=c.detectMutations(),c=o(s),l.wasMutated)throw new Error(process.env.NODE_ENV==="production"?H(19):`A state mutation was detected between dispatches, in the path '${l.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const h=f(d);return v.measureTime(()=>{if(s=u(),l=c.detectMutations(),c=o(s),l.wasMutated)throw new Error(process.env.NODE_ENV==="production"?H(20):`A state mutation was detected inside a dispatch, in the path: ${l.path||""}. Take a look at the reducer(s) handling the action ${t(d)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),v.warnIfExceeded(),h}}}}function Vm(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Fn(e)}function ls(e,t="",r=Vm,n,i=[],a){let o;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a?.has(e))return!1;const u=n!=null?n(e):Object.entries(e),s=i.length>0;for(const[c,l]of u){const f=t?t+"."+c:c;if(!(s&&i.some(v=>v instanceof RegExp?v.test(f):f===v))){if(!r(l))return{keyPath:f,value:l};if(typeof l=="object"&&(o=ls(l,f,r,n,i,a),o))return o}}return a&&Hm(e)&&a.add(e),!1}function Hm(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Hm(t))return!1;return!0}function p1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=Vm,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:u=!1,ignoreActions:s=!1,disableCache:c=!1}=e,l=!c&&WeakSet?new WeakSet:void 0;return f=>d=>v=>{if(!uc(v))return d(v);const h=d(v),m=qm(o,"SerializableStateInvariantMiddleware");return!s&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const p=ls(v,"",t,r,i,l);if(p){const{keyPath:y,value:g}=p;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,g,`
|
|
68
|
+
Take a look at the logic that dispatched this action: `,v,`
|
|
69
|
+
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
70
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),u||(m.measureTime(()=>{const p=f.getState(),y=ls(p,"",t,r,a,l);if(y){const{keyPath:g,value:b}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${g}\`. Value:`,b,`
|
|
71
|
+
Take a look at the reducer(s) handling this action type: ${v.type}.
|
|
72
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),h}}}function di(e){return typeof e=="boolean"}var m1=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Wm;if(r&&(di(r)?o.push(a1):o.push(o1(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let u={};di(n)||(u=n),o.unshift(h1(u))}if(i){let u={};di(i)||(u=i),o.push(p1(u))}if(a){let u={};di(a)||(u=a),o.unshift(f1(u))}}return o},Ym="RTK_autoBatch",ie=()=>e=>({payload:e,meta:{[Ym]:!0}}),fd=e=>t=>{setTimeout(t,e)},Gm=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fd(10):e.type==="callback"?e.queueNotification:fd(e.timeout),c=()=>{o=!1,a&&(a=!1,u.forEach(l=>l()))};return Object.assign({},n,{subscribe(l){const f=()=>i&&l(),d=n.subscribe(f);return u.add(l),()=>{d(),u.delete(l)}},dispatch(l){try{return i=!l?.meta?.[Ym],a=!i,a&&(o||(o=!0,s(c))),n.dispatch(l)}finally{i=!0}}})},y1=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Wm(e);return n&&i.push(Gm(typeof n=="object"?n:void 0)),i};function g1(e){const t=m1(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:u=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(Fn(r))s=Im(r);else throw new Error(process.env.NODE_ENV==="production"?H(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?H(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?H(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?H(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let m=new Set;c.forEach(p=>{if(m.has(p))throw new Error(process.env.NODE_ENV==="production"?H(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(p)})}let l=Li;i&&(l=u1({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=WO(...c),d=y1(f);if(process.env.NODE_ENV!=="production"&&u&&typeof u!="function")throw new Error(process.env.NODE_ENV==="production"?H(5):"`enhancers` field must be a callback");let v=typeof u=="function"?u(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(v))throw new Error(process.env.NODE_ENV==="production"?H(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&v.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?H(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!v.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const h=l(...v);return jm(s,o,h)}function Xm(e){const t={},r=[];let n;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?H(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?H(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const u=typeof a=="string"?a:a.type;if(!u)throw new Error(process.env.NODE_ENV==="production"?H(28):"`builder.addCase` cannot be called with an empty action type");if(u in t)throw new Error(process.env.NODE_ENV==="production"?H(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${u}'`);return t[u]=o,i},addAsyncThunk(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?H(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?H(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?H(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function b1(e){return typeof e=="function"}function w1(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?H(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=Xm(t),a;if(b1(e))a=()=>ld(e());else{const u=ld(e);a=()=>u}function o(u=a(),s){let c=[r[s.type],...n.filter(({matcher:l})=>l(s)).map(({reducer:l})=>l)];return c.filter(l=>!!l).length===0&&(c=[i]),c.reduce((l,f)=>{if(f)if(Dt(l)){const v=f(l,s);return v===void 0?l:v}else{if(vt(l))return Bm(l,d=>f(d,s));{const d=f(l,s);if(d===void 0){if(l===null)return l;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return l},u)}return o.getInitialState=a,o}var x1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",O1=(e=21)=>{let t="",r=e;for(;r--;)t+=x1[Math.random()*64|0];return t},P1=Symbol.for("rtk-slice-createasyncthunk");function S1(e,t){return`${e}/${t}`}function E1({creators:e}={}){const t=e?.asyncThunk?.[P1];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?H(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=(typeof n.reducers=="function"?n.reducers(A1()):n.reducers)||{},u=Object.keys(o),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,x){const P=typeof b=="string"?b:b.type;if(!P)throw new Error(process.env.NODE_ENV==="production"?H(12):"`context.addCase` cannot be called with an empty action type");if(P in s.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?H(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return s.sliceCaseReducersByType[P]=x,c},addMatcher(b,x){return s.sliceMatchers.push({matcher:b,reducer:x}),c},exposeAction(b,x){return s.actionCreators[b]=x,c},exposeCaseReducer(b,x){return s.sliceCaseReducersByName[b]=x,c}};u.forEach(b=>{const x=o[b],P={reducerName:b,type:S1(i,b),createNotation:typeof n.reducers=="function"};j1(x)?T1(P,x,c,t):C1(P,x,c)});function l(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?H(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[b={},x=[],P=void 0]=typeof n.extraReducers=="function"?Xm(n.extraReducers):[n.extraReducers],O={...b,...s.sliceCaseReducersByType};return w1(n.initialState,E=>{for(let A in O)E.addCase(A,O[A]);for(let A of s.sliceMatchers)E.addMatcher(A.matcher,A.reducer);for(let A of x)E.addMatcher(A.matcher,A.reducer);P&&E.addDefaultCase(P)})}const f=b=>b,d=new Map,v=new WeakMap;let h;function m(b,x){return h||(h=l()),h(b,x)}function p(){return h||(h=l()),h.getInitialState()}function y(b,x=!1){function P(E){let A=E[b];if(typeof A>"u"){if(x)A=fi(v,P,p);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?H(15):"selectSlice returned undefined for an uninjected slice reducer")}return A}function O(E=f){const A=fi(d,x,()=>new WeakMap);return fi(A,E,()=>{const k={};for(const[N,j]of Object.entries(n.selectors??{}))k[N]=_1(j,E,()=>fi(v,E,p),x);return k})}return{reducerPath:b,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const g={name:i,reducer:m,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:p,...y(a),injectInto(b,{reducerPath:x,...P}={}){const O=x??a;return b.inject({reducerPath:O,reducer:m},P),{...g,...y(O,!0)}}};return g}}function _1(e,t,r,n){function i(a,...o){let u=t(a);if(typeof u>"u"){if(n)u=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?H(16):"selectState returned undefined for an uninjected slice reducer")}return e(u,...o)}return i.unwrapped=e,i}var Ye=E1();function A1(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function C1({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!I1(n))throw new Error(process.env.NODE_ENV==="production"?H(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?ot(e,o):ot(e))}function j1(e){return e._reducerDefinitionType==="asyncThunk"}function I1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function T1({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?H(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:u,rejected:s,settled:c,options:l}=r,f=i(e,a,l);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),s&&n.addCase(f.rejected,s),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||vi,pending:u||vi,rejected:s||vi,settled:c||vi})}function vi(){}var k1="task",Zm="listener",Qm="completed",fc="cancelled",M1=`task-${fc}`,D1=`task-${Qm}`,fs=`${Zm}-${fc}`,N1=`${Zm}-${Qm}`,La=class{constructor(e){this.code=e,this.message=`${k1} ${fc} (reason: ${e})`}name="TaskAbortError";message},dc=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?H(32):`${t} is not a function`)},Ki=()=>{},Jm=(e,t=Ki)=>(e.catch(t),e),ey=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),gr=e=>{if(e.aborted)throw new La(e.reason)};function ty(e,t){let r=Ki;return new Promise((n,i)=>{const a=()=>i(new La(e.reason));if(e.aborted){a();return}r=ey(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Ki})}var $1=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof La?"cancelled":"rejected",error:r}}finally{t?.()}},Vi=e=>t=>Jm(ty(e,t).then(r=>(gr(e),r))),ry=e=>{const t=Vi(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Vr}=Object,dd={},Wn="listenerMiddleware",R1=(e,t)=>{const r=n=>ey(e,()=>n.abort(e.reason));return(n,i)=>{dc(n,"taskExecutor");const a=new AbortController;r(a);const o=$1(async()=>{gr(e),gr(a.signal);const u=await n({pause:Vi(a.signal),delay:ry(a.signal),signal:a.signal});return gr(a.signal),u},()=>a.abort(D1));return i?.autoJoin&&t.push(o.catch(Ki)),{result:Vi(e)(o),cancel(){a.abort(M1)}}}},L1=(e,t)=>{const r=async(n,i)=>{gr(t);let a=()=>{};const u=[new Promise((s,c)=>{let l=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),s([f,d.getState(),d.getOriginalState()])}});a=()=>{l(),c()}})];i!=null&&u.push(new Promise(s=>setTimeout(s,i,null)));try{const s=await ty(t,Promise.race(u));return gr(t),s}finally{a()}};return(n,i)=>Jm(r(n,i))},ny=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=ot(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(process.env.NODE_ENV==="production"?H(21):"Creating or removing a listener requires one of the known fields for matching an action");return dc(a,"options.listener"),{predicate:i,type:t,effect:a}},iy=Vr(e=>{const{type:t,predicate:r,effect:n}=ny(e);return{id:O1(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?H(22):"Unsubscribe not initialized")}}},{withTypes:()=>iy}),vd=(e,t)=>{const{type:r,effect:n,predicate:i}=ny(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},ds=e=>{e.pending.forEach(t=>{t.abort(fs)})},z1=(e,t)=>()=>{for(const r of t.keys())ds(r);e.clear()},hd=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},ay=Vr(ot(`${Wn}/add`),{withTypes:()=>ay}),B1=ot(`${Wn}/removeAll`),oy=Vr(ot(`${Wn}/remove`),{withTypes:()=>oy}),F1=(...e)=>{console.error(`${Wn}/error`,...e)},Un=(e={})=>{const t=new Map,r=new Map,n=v=>{const h=r.get(v)??0;r.set(v,h+1)},i=v=>{const h=r.get(v)??1;h===1?r.delete(v):r.set(v,h-1)},{extra:a,onError:o=F1}=e;dc(o,"onError");const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),h=>{v.unsubscribe(),h?.cancelActive&&ds(v)}),s=v=>{const h=vd(t,v)??iy(v);return u(h)};Vr(s,{withTypes:()=>s});const c=v=>{const h=vd(t,v);return h&&(h.unsubscribe(),v.cancelActive&&ds(h)),!!h};Vr(c,{withTypes:()=>c});const l=async(v,h,m,p)=>{const y=new AbortController,g=L1(s,y.signal),b=[];try{v.pending.add(y),n(v),await Promise.resolve(v.effect(h,Vr({},m,{getOriginalState:p,condition:(x,P)=>g(x,P).then(Boolean),take:g,delay:ry(y.signal),pause:Vi(y.signal),extra:a,signal:y.signal,fork:R1(y.signal,b),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((x,P,O)=>{x!==y&&(x.abort(fs),O.delete(x))})},cancel:()=>{y.abort(fs),v.pending.delete(y)},throwIfCancelled:()=>{gr(y.signal)}})))}catch(x){x instanceof La||hd(o,x,{raisedBy:"effect"})}finally{await Promise.all(b),y.abort(N1),i(v),v.pending.delete(y)}},f=z1(t,r);return{middleware:v=>h=>m=>{if(!uc(m))return h(m);if(ay.match(m))return s(m.payload);if(B1.match(m)){f();return}if(oy.match(m))return c(m.payload);let p=v.getState();const y=()=>{if(p===dd)throw new Error(process.env.NODE_ENV==="production"?H(23):`${Wn}: getOriginalState can only be called synchronously`);return p};let g;try{if(g=h(m),t.size>0){const b=v.getState(),x=Array.from(t.values());for(const P of x){let O=!1;try{O=P.predicate(m,b,p)}catch(E){O=!1,hd(o,E,{raisedBy:"predicate"})}O&&l(P,m,v,y)}}}finally{p=dd}return g},startListening:s,stopListening:c,clearListeners:f}};function H(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var q1={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},uy=Ye({name:"chartLayout",initialState:q1,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:sy,setLayout:W1,setChartSize:U1,setScale:K1}=uy.actions,V1=uy.reducer;function cy(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function W(e){return Number.isFinite(e)}function ht(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function pd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pd(Object(r),!0).forEach(function(n){H1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H1(e,t,r){return(t=Y1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y1(e){var t=G1(e,"string");return typeof t=="symbol"?t:t+""}function G1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function me(e,t,r){return le(e)||le(t)?r:St(t)?Or(e,t,r):typeof t=="function"?t(e):r}var X1=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&R(e[a]))return Ur(Ur({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&R(e[o]))return Ur(Ur({},e),{},{[o]:e[o]+(i||0)})}return e},Bt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",ly=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},fy=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:s,categoricalDomain:c,tickCount:l,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var h=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/h:0;if(m=v==="angleAxis"&&a&&a.length>=2?Ke(a[0]-a[1])*2*m:m,f||d){var p=(f||d||[]).map((y,g)=>{var b=n?n.indexOf(y):y,x=o.map(b);return W(x)?{coordinate:x+m,value:y,offset:m,index:g}:null}).filter(Le);return p}return s&&c?c.map((y,g)=>{var b=o.map(y);return W(b)?{coordinate:b+m,value:y,index:g,offset:m}:null}).filter(Le):o.ticks&&l!=null?o.ticks(l).map((y,g)=>{var b=o.map(y);return W(b)?{coordinate:b+m,value:y,index:g,offset:m}:null}).filter(Le):o.domain().map((y,g)=>{var b=o.map(y);return W(b)?{coordinate:b+m,value:n?n[y]:y,index:g,offset:m}:null}).filter(Le)},Z1=(e,t)=>{if(!t||t.length!==2||!R(t[0])||!R(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!R(e[0])||e[0]<r)&&(i[0]=r),(!R(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},Q1=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,u=0;u<r;++u){var s=e[u],c=s?.[i];if(c!=null){var l=c[1],f=c[0],d=ft(l)?f:l;d>=0?(c[0]=a,a+=d,c[1]=a):(c[0]=o,o+=d,c[1]=o)}}}},J1=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var u=e[o],s=u?.[i];if(s!=null){var c=ft(s[1])?s[0]:s[1];c>=0?(s[0]=a,a+=c,s[1]=a):(s[0]=0,s[1]=0)}}}},eP={sign:Q1,expand:dx,none:xr,silhouette:vx,wiggle:hx,positive:J1},tP=(e,t,r)=>{var n,i=(n=eP[r])!==null&&n!==void 0?n:xr,a=fx().keys(t).value((u,s)=>Number(me(u,s,0))).order(es).offset(i),o=a(e);return o.forEach((u,s)=>{u.forEach((c,l)=>{var f=me(e[l],t[s],0);Array.isArray(f)&&f.length===2&&R(f[0])&&R(f[1])&&(c[0]=f[0],c[1]=f[1])})}),o};function dy(e){return e==null?void 0:String(e)}function rP(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!le(i[t.dataKey])){var u=lm(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var s=me(i,le(o)?t.dataKey:o),c=t.scale.map(s);return R(c)?c:null}var md=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=me(a,t.dataKey,t.scale.domain()[o]);if(le(u))return null;var s=t.scale.map(u);return R(s)?s-i/2+n:null},nP=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},iP=e=>{var t=e.flat(2).filter(R);return[Math.min(...t),Math.max(...t)]},aP=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],oP=(e,t,r)=>{if(e!=null)return aP(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((s,c)=>{var l=cy(c,t,r),f=iP(l);return!W(f[0])||!W(f[1])?s:[Math.min(s[0],f[0]),Math.max(s[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},yd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Cn=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Ia(t,l=>l.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var s=i[o],c=i[o-1];a=Math.min((s?.coordinate||0)-(c?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function bd(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Ur(Ur({},t),{},{dataKey:r,payload:n,value:i,name:a})}function vc(e,t){if(e)return String(e);if(typeof t=="string")return t}var uP=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},sP=(e,t)=>t==="centric"?e.angle:e.radius,Ft=e=>e.layout.width,qt=e=>e.layout.height,cP=e=>e.layout.scale,vy=e=>e.layout.margin,za=_(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ba=_(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),lP="data-recharts-item-index",hy="data-recharts-item-id",Kn=60;function wd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wd(Object(r),!0).forEach(function(n){fP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fP(e,t,r){return(t=dP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dP(e){var t=vP(e,"string");return typeof t=="symbol"?t:t+""}function vP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hP=e=>e.brush.height;function pP(e){var t=Ba(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Kn;return r+i}return r},0)}function mP(e){var t=Ba(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Kn;return r+i}return r},0)}function yP(e){var t=za(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function gP(e){var t=za(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Pe=_([Ft,qt,vy,hP,pP,mP,yP,gP,Am,kO],(e,t,r,n,i,a,o,u,s,c)=>{var l={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=hi(hi({},f),l),v=d.bottom;d.bottom+=n,d=X1(d,s,c);var h=e-d.left-d.right,m=t-d.top-d.bottom;return hi(hi({brushBottom:v},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),bP=_(Pe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),hc=_(Ft,qt,(e,t)=>({x:0,y:0,width:e,height:t})),wP=S.createContext(null),qe=()=>S.useContext(wP)!=null,Fa=e=>e.brush,qa=_([Fa,Pe,vy],(e,t,r)=>({height:e.height,x:R(e.x)?e.x:t.left,y:R(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:R(e.width)?e.width:t.width})),hu={},pu={},mu={},xd;function xP(){return xd||(xd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const s=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),l=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{c&&l(),m()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},h=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{h(),o=void 0,u=null},p=()=>{l()},y=function(...g){if(i?.aborted)return;o=this,u=g;const b=d==null;v(),s&&b&&l()};return y.schedule=v,y.cancel=m,y.flush=p,i?.addEventListener("abort",m,{once:!0}),y}e.debounce=t}(mu)),mu}var Od;function OP(){return Od||(Od=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xP();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:s}=a,c=Array(2);o&&(c[0]="leading"),u&&(c[1]="trailing");let l,f=null;const d=t.debounce(function(...m){l=n.apply(this,m),f=null},i,{edges:c}),v=function(...m){return s!=null&&(f===null&&(f=Date.now()),Date.now()-f>=s)?(l=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),l):(d.apply(this,m),l)},h=()=>(d.flush(),l);return v.cancel=d.cancel,v.flush=h,v}e.debounce=r}(pu)),pu}var Pd;function PP(){return Pd||(Pd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OP();function r(n,i=0,a={}){const{leading:o=!0,trailing:u=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:u})}e.throttle=r}(hu)),hu}var yu,Sd;function SP(){return Sd||(Sd=1,yu=PP().throttle),yu}var EP=SP();const _P=zt(EP);var Hi=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},bt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},py=(e,t,r)=>{var{width:n=bt.width,height:i=bt.height,aspect:a,maxHeight:o}=r,u=Pr(n)?e:Number(n),s=Pr(i)?t:Number(i);return a&&a>0&&(u?s=u/a:s&&(u=s*a),o&&s!=null&&s>o&&(s=o)),{calculatedWidth:u,calculatedHeight:s}},AP={width:0,height:0,overflow:"visible"},CP={width:0,overflowX:"visible"},jP={height:0,overflowY:"visible"},IP={},TP=e=>{var{width:t,height:r}=e,n=Pr(t),i=Pr(r);return n&&i?AP:n?CP:i?jP:IP};function kP(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=bt.width,a=bt.height):i===void 0?i=n&&n>0?void 0:bt.width:a===void 0&&(a=n&&n>0?void 0:bt.height),{width:i,height:a}}function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vs.apply(null,arguments)}function Ed(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _d(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ed(Object(r),!0).forEach(function(n){MP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ed(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MP(e,t,r){return(t=DP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DP(e){var t=NP(e,"string");return typeof t=="symbol"?t:t+""}function NP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var my=S.createContext(bt.initialDimension);function $P(e){return ht(e.width)&&ht(e.height)}function yy(e){var{children:t,width:r,height:n}=e,i=S.useMemo(()=>({width:r,height:n}),[r,n]);return $P(i)?w.createElement(my.Provider,{value:i},t):null}var pc=()=>S.useContext(my),RP=S.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=bt.initialDimension,width:i,height:a,minWidth:o=bt.minWidth,minHeight:u,maxHeight:s,children:c,debounce:l=bt.debounce,id:f,className:d,onResize:v,style:h={}}=e,m=S.useRef(null),p=S.useRef();p.current=v,S.useImperativeHandle(t,()=>m.current);var[y,g]=S.useState({containerWidth:n.width,containerHeight:n.height}),b=S.useCallback((A,k)=>{g(N=>{var j=Math.round(A),M=Math.round(k);return N.containerWidth===j&&N.containerHeight===M?N:{containerWidth:j,containerHeight:M}})},[]);S.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Dr;var A=M=>{var C,z=M[0];if(z!=null){var{width:V,height:U}=z.contentRect;b(V,U),(C=p.current)===null||C===void 0||C.call(p,V,U)}};l>0&&(A=_P(A,l,{trailing:!0,leading:!1}));var k=new ResizeObserver(A),{width:N,height:j}=m.current.getBoundingClientRect();return b(N,j),k.observe(m.current),()=>{k.disconnect()}},[b,l]);var{containerWidth:x,containerHeight:P}=y;Hi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:E}=py(x,P,{width:i,height:a,aspect:r,maxHeight:s});return Hi(O!=null&&O>0||E!=null&&E>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
73
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
74
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
75
|
+
height and width.`,O,E,i,a,o,u,r),w.createElement("div",{id:f?"".concat(f):void 0,className:re("recharts-responsive-container",d),style:_d(_d({},h),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:s}),ref:m},w.createElement("div",{style:TP({width:i,height:a})},w.createElement(yy,{width:O,height:E},c)))}),LP=S.forwardRef((e,t)=>{var r=pc();if(ht(r.width)&&ht(r.height))return e.children;var{width:n,height:i}=kP({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=py(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return R(a)&&R(o)?w.createElement(yy,{width:a,height:o},e.children):w.createElement(RP,vs({},e,{width:n,height:i,ref:t}))});function mc(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Vn=()=>{var e,t=qe(),r=L(bP),n=L(qa),i=(e=L(Fa))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},zP={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},gy=()=>{var e;return(e=L(Pe))!==null&&e!==void 0?e:zP},yc=()=>L(Ft),gc=()=>L(qt),BP=()=>L(e=>e.layout.margin),J=e=>e.layout.layoutType,Nr=()=>L(J),bc=()=>{var e=Nr();if(e==="horizontal"||e==="vertical")return e},by=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},FP=()=>{var e=Nr();return e!==void 0},Jr=e=>{var t=oe(),r=qe(),{width:n,height:i}=e,a=pc(),o=n,u=i;return a&&(o=a.width>0?a.width:n,u=a.height>0?a.height:i),S.useEffect(()=>{!r&&ht(o)&&ht(u)&&t(U1({width:o,height:u}))},[t,r,o,u]),null},qP=e=>{var{margin:t}=e,r=oe();return S.useEffect(()=>{r(sy(t))},[r,t]),null},wy=Symbol.for("immer-nothing"),Ad=Symbol.for("immer-draftable"),tt=Symbol.for("immer-state"),WP=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Ue(e,...t){if(process.env.NODE_ENV!=="production"){const r=WP[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var jn=Object.getPrototypeOf;function Gr(e){return!!e&&!!e[tt]}function Er(e){return e?xy(e)||Array.isArray(e)||!!e[Ad]||!!e.constructor?.[Ad]||Hn(e)||Ua(e):!1}var UP=Object.prototype.constructor.toString(),Cd=new WeakMap;function xy(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=Cd.get(r);return n===void 0&&(n=Function.toString.call(r),Cd.set(r,n)),n===UP}function Yi(e,t,r=!0){Wa(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Wa(e){const t=e[tt];return t?t.type_:Array.isArray(e)?1:Hn(e)?2:Ua(e)?3:0}function hs(e,t){return Wa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Oy(e,t,r){const n=Wa(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function KP(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Hn(e){return e instanceof Map}function Ua(e){return e instanceof Set}function lr(e){return e.copy_||e.base_}function ps(e,t){if(Hn(e))return new Map(e);if(Ua(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=xy(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[tt];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(jn(e),n)}else{const n=jn(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function wc(e,t=!1){return Ka(e)||Gr(e)||!Er(e)||(Wa(e)>1&&Object.defineProperties(e,{set:pi,add:pi,clear:pi,delete:pi}),Object.freeze(e),t&&Object.values(e).forEach(r=>wc(r,!0))),e}function VP(){Ue(2)}var pi={value:VP};function Ka(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var HP={};function _r(e){const t=HP[e];return t||Ue(0,e),t}var In;function Py(){return In}function YP(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jd(e,t){t&&(_r("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ms(e){ys(e),e.drafts_.forEach(GP),e.drafts_=null}function ys(e){e===In&&(In=e.parent_)}function Id(e){return In=YP(In,e)}function GP(e){const t=e[tt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Td(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[tt].modified_&&(ms(t),Ue(4)),Er(e)&&(e=Gi(t,e),t.parent_||Xi(t,e)),t.patches_&&_r("Patches").generateReplacementPatches_(r[tt].base_,e,t.patches_,t.inversePatches_)):e=Gi(t,r,[]),ms(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==wy?e:void 0}function Gi(e,t,r){if(Ka(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[tt];if(!i)return Yi(t,(a,o)=>kd(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Xi(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,u=!1;i.type_===3&&(o=new Set(a),a.clear(),u=!0),Yi(o,(s,c)=>kd(e,i,a,s,c,r,u),n),Xi(e,a,!1),r&&e.patches_&&_r("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function kd(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const u=Ka(i);if(!(u&&!o)){if(process.env.NODE_ENV!=="production"&&i===r&&Ue(5),Gr(i)){const s=a&&t&&t.type_!==3&&!hs(t.assigned_,n)?a.concat(n):void 0,c=Gi(e,i,s);if(Oy(r,n,c),Gr(c))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Er(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;Gi(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Hn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Xi(e,i)}}}function Xi(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wc(t,r)}function XP(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Py(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=xc;r&&(i=[n],a=Tn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var xc={get(e,t){if(t===tt)return e;const r=lr(e);if(!hs(r,t))return ZP(e,r,t);const n=r[t];return e.finalized_||!Er(n)?n:n===gu(e.base_,t)?(bu(e),e.copy_[t]=bs(n,e)):n},has(e,t){return t in lr(e)},ownKeys(e){return Reflect.ownKeys(lr(e))},set(e,t,r){const n=Sy(lr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=gu(lr(e),t),a=i?.[tt];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(KP(r,i)&&(r!==void 0||hs(e.base_,t)))return!0;bu(e),gs(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return gu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,bu(e),gs(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=lr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Ue(11)},getPrototypeOf(e){return jn(e.base_)},setPrototypeOf(){Ue(12)}},Tn={};Yi(xc,(e,t)=>{Tn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Tn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ue(13),Tn.set.call(this,e,t,void 0)};Tn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ue(14),xc.set.call(this,e[0],t,r,e[0])};function gu(e,t){const r=e[tt];return(r?lr(r):e)[t]}function ZP(e,t,r){const n=Sy(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Sy(e,t){if(!(t in e))return;let r=jn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=jn(r)}}function gs(e){e.modified_||(e.modified_=!0,e.parent_&&gs(e.parent_))}function bu(e){e.copy_||(e.copy_=ps(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var QP=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(s=a,...c){return o.produce(s,l=>r.call(this,l,...c))}}typeof r!="function"&&Ue(6),n!==void 0&&typeof n!="function"&&Ue(7);let i;if(Er(t)){const a=Id(this),o=bs(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?ms(a):ys(a)}return jd(a,n),Td(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===wy&&(i=void 0),this.autoFreeze_&&wc(i,!0),n){const a=[],o=[];_r("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Ue(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,s=>t(s,...u));let n,i;return[this.produce(t,r,(o,u)=>{n=o,i=u}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Er(e)||Ue(8),Gr(e)&&(e=JP(e));const t=Id(this),r=bs(e,void 0);return r[tt].isManual_=!0,ys(t),r}finishDraft(e,t){const r=e&&e[tt];(!r||!r.isManual_)&&Ue(9);const{scope_:n}=r;return jd(n,t),Td(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=_r("Patches").applyPatches_;return Gr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function bs(e,t){const r=Hn(e)?_r("MapSet").proxyMap_(e,t):Ua(e)?_r("MapSet").proxySet_(e,t):XP(e,t);return(t?t.scope_:Py()).drafts_.push(r),r}function JP(e){return Gr(e)||Ue(10,e),Ey(e)}function Ey(e){if(!Er(e)||Ka(e))return e;const t=e[tt];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ps(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=ps(e,!0);return Yi(r,(i,a)=>{Oy(r,i,Ey(a))},n),t&&(t.finalized_=!1),r}var eS=new QP;eS.produce;var tS={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},_y=Ye({name:"legend",initialState:tS,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ie()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=lt(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:ie()},removeLegendPayload:{reducer(e,t){var r=lt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ie()}}}),{setLegendSize:rS,setLegendSettings:nS,addLegendPayload:iS,replaceLegendPayload:aS,removeLegendPayload:oS}=_y.actions,uS=_y.reducer;function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ws.apply(null,arguments)}function Md(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Md(Object(r),!0).forEach(function(n){sS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Md(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sS(e,t,r){return(t=cS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cS(e){var t=lS(e,"string");return typeof t=="symbol"?t:t+""}function lS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fS(e){return Array.isArray(e)&&St(e[0])&&St(e[1])?e.join(" ~ "):e}var Br={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},dS=e=>{var{separator:t=Br.separator,contentStyle:r,itemStyle:n,labelStyle:i=Br.labelStyle,payload:a,formatter:o,itemSorter:u,wrapperClassName:s,labelClassName:c,label:l,labelFormatter:f,accessibilityLayer:d=Br.accessibilityLayer}=e,v=()=>{if(a&&a.length){var P={padding:0,margin:0},O=(u?Ia(a,u):a).map((E,A)=>{if(E.type==="none")return null;var k=E.formatter||o||fS,{value:N,name:j}=E,M=N,C=j;if(k){var z=k(N,j,E,A,a);if(Array.isArray(z))[M,C]=z;else if(z!=null)M=z;else return null}var V=fn(fn({},Br.itemStyle),{},{color:E.color||Br.itemStyle.color},n);return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(A),style:V},St(C)?w.createElement("span",{className:"recharts-tooltip-item-name"},C):null,St(C)?w.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,w.createElement("span",{className:"recharts-tooltip-item-value"},M),w.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return w.createElement("ul",{className:"recharts-tooltip-item-list",style:P},O)}return null},h=fn(fn({},Br.contentStyle),r),m=fn({margin:0},i),p=!le(l),y=p?l:"",g=re("recharts-default-tooltip",s),b=re("recharts-tooltip-label",c);p&&f&&a!==void 0&&a!==null&&(y=f(l,a));var x=d?{role:"status","aria-live":"assertive"}:{};return w.createElement("div",ws({className:g,style:h},x),w.createElement("p",{className:b,style:m},w.isValidElement(y)?y:"".concat(y)),v())},dn="recharts-tooltip-wrapper",vS={visibility:"hidden"};function hS(e){var{coordinate:t,translateX:r,translateY:n}=e;return re(dn,{["".concat(dn,"-right")]:R(r)&&t&&R(t.x)&&r>=t.x,["".concat(dn,"-left")]:R(r)&&t&&R(t.x)&&r<t.x,["".concat(dn,"-bottom")]:R(n)&&t&&R(t.y)&&n>=t.y,["".concat(dn,"-top")]:R(n)&&t&&R(t.y)&&n<t.y})}function Dd(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:u,viewBox:s,viewBoxDimension:c}=e;if(a&&R(a[n]))return a[n];var l=r[n]-u-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?l:f;var d=s[n];if(d==null)return 0;if(o[n]){var v=l,h=d;return v<h?Math.max(f,d):Math.max(l,d)}if(c==null)return 0;var m=f+u,p=d+c;return m>p?Math.max(l,d):Math.max(f,d)}function pS(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function mS(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:u,useTranslate3d:s,viewBox:c}=e,l,f,d;return u.height>0&&u.width>0&&r?(f=Dd({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:o,tooltipDimension:u.width,viewBox:c,viewBoxDimension:c.width}),d=Dd({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:o,tooltipDimension:u.height,viewBox:c,viewBoxDimension:c.height}),l=pS({translateX:f,translateY:d,useTranslate3d:s})):l=vS,{cssProperties:l,cssClasses:hS({translateX:f,translateY:d,coordinate:r})}}function Nd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nd(Object(r),!0).forEach(function(n){xs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xs(e,t,r){return(t=yS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yS(e){var t=gS(e,"string");return typeof t=="symbol"?t:t+""}function gS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class bS extends S.PureComponent{constructor(){super(...arguments),xs(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),xs(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:u,isAnimationActive:s,offset:c,position:l,reverseDirection:f,useTranslate3d:d,viewBox:v,wrapperStyle:h,lastBoundingBox:m,innerRef:p,hasPortalFromProps:y}=this.props,g=typeof c=="number"?c:c.x,b=typeof c=="number"?c:c.y,{cssClasses:x,cssProperties:P}=mS({allowEscapeViewBox:r,coordinate:o,offsetLeft:g,offsetTop:b,position:l,reverseDirection:f,tooltipBox:{height:m.height,width:m.width},useTranslate3d:d,viewBox:v}),O=y?{}:mi(mi({transition:s&&t?"transform ".concat(n,"ms ").concat(i):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),E=mi(mi({},O),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},h);return w.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:x,style:E,ref:p},a)}}var Ay=()=>{var e;return(e=L(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Os.apply(null,arguments)}function $d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$d(Object(r),!0).forEach(function(n){wS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$d(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wS(e,t,r){return(t=xS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xS(e){var t=OS(e,"string");return typeof t=="symbol"?t:t+""}function OS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ld={curveBasisClosed:ex,curveBasisOpen:tx,curveBasis:Jw,curveBumpX:zw,curveBumpY:Bw,curveLinearClosed:rx,curveLinear:Aa,curveMonotoneX:nx,curveMonotoneY:ix,curveNatural:ax,curveStep:ox,curveStepAfter:sx,curveStepBefore:ux},Zi=e=>W(e.x)&&W(e.y),zd=e=>e.base!=null&&Zi(e.base)&&Zi(e),vn=e=>e.x,hn=e=>e.y,PS=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Bn(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=Ld["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return Ld[r]||Aa},Bd={connectNulls:!1,type:"linear"},SS=e=>{var{type:t=Bd.type,points:r=[],baseLine:n,layout:i,connectNulls:a=Bd.connectNulls}=e,o=PS(t,i),u=a?r.filter(Zi):r;if(Array.isArray(n)){var s,c=r.map((h,m)=>Rd(Rd({},h),{},{base:n[m]}));i==="vertical"?s=ai().y(hn).x1(vn).x0(h=>h.base.x):s=ai().x(vn).y1(hn).y0(h=>h.base.y);var l=s.defined(zd).curve(o),f=a?c.filter(zd):c;return l(f)}var d;i==="vertical"&&R(n)?d=ai().y(hn).x1(vn).x0(n):R(n)?d=ai().x(vn).y1(hn).y0(n):d=Zp().x(vn).y(hn);var v=d.defined(Zi).curve(o);return v(u)},Oc=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=Nr();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},u=r&&r.length?SS(o):n;return w.createElement("path",Os({},Ot(e),vm(e),{className:re("recharts-curve",t),d:u===null?void 0:u,ref:i}))},ES=["x","y","top","left","width","height","className"];function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ps.apply(null,arguments)}function Fd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _S(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fd(Object(r),!0).forEach(function(n){AS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AS(e,t,r){return(t=CS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CS(e){var t=jS(e,"string");return typeof t=="symbol"?t:t+""}function jS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IS(e,t){if(e==null)return{};var r,n,i=TS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function TS(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var kS=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),MS=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,s=IS(e,ES),c=_S({x:t,y:r,top:n,left:i,width:a,height:o},s);return!R(t)||!R(r)||!R(a)||!R(o)||!R(n)||!R(i)?null:w.createElement("path",Ps({},Be(c),{className:re("recharts-cross",u),d:kS(t,r,a,o,n,i)}))};function DS(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qd(Object(r),!0).forEach(function(n){NS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NS(e,t,r){return(t=$S(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $S(e){var t=RS(e,"string");return typeof t=="symbol"?t:t+""}function RS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LS=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Cy=(e,t,r)=>e.map(n=>"".concat(LS(n)," ").concat(t,"ms ").concat(r)).join(","),zS=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),kn=(e,t)=>Object.keys(t).reduce((r,n)=>Wd(Wd({},r),{},{[n]:e(n,t[n])}),{});function Ud(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ud(Object(r),!0).forEach(function(n){BS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ud(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BS(e,t,r){return(t=FS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FS(e){var t=qS(e,"string");return typeof t=="symbol"?t:t+""}function qS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qi=(e,t,r)=>e+(t-e)*r,Ss=e=>{var{from:t,to:r}=e;return t!==r},jy=(e,t,r)=>{var n=kn((i,a)=>{if(Ss(a)){var[o,u]=e(a.from,a.to,a.velocity);return pe(pe({},a),{},{from:o,velocity:u})}return a},t);return r<1?kn((i,a)=>Ss(a)&&n[i]!=null?pe(pe({},a),{},{velocity:Qi(a.velocity,n[i].velocity,r),from:Qi(a.from,n[i].from,r)}):a,t):jy(e,n,r-1)};function WS(e,t,r,n,i,a){var o,u=n.reduce((d,v)=>pe(pe({},d),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),s=()=>kn((d,v)=>v.from,u),c=()=>!Object.values(u).filter(Ss).length,l=null,f=d=>{o||(o=d);var v=d-o,h=v/r.dt;u=jy(r,u,h),i(pe(pe(pe({},e),t),s())),o=d,c()||(l=a.setTimeout(f))};return()=>(l=a.setTimeout(f),()=>{var d;(d=l)===null||d===void 0||d()})}function US(e,t,r,n,i,a,o){var u=null,s=i.reduce((f,d)=>{var v=e[d],h=t[d];return v==null||h==null?f:pe(pe({},f),{},{[d]:[v,h]})},{}),c,l=f=>{c||(c=f);var d=(f-c)/n,v=kn((m,p)=>Qi(...p,r(d)),s);if(a(pe(pe(pe({},e),t),v)),d<1)u=o.setTimeout(l);else{var h=kn((m,p)=>Qi(...p,r(1)),s);a(pe(pe(pe({},e),t),h))}};return()=>(u=o.setTimeout(l),()=>{var f;(f=u)===null||f===void 0||f()})}const KS=(e,t,r,n,i,a)=>{var o=zS(e,t);return r==null?()=>(i(pe(pe({},e),t)),()=>{}):r.isStepper===!0?WS(e,t,r,o,i,a):US(e,t,r,n,o,i,a)};var Ji=1e-4,Iy=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Ty=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Kd=(e,t)=>r=>{var n=Iy(e,t);return Ty(n,r)},VS=(e,t)=>r=>{var n=Iy(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return Ty(i,r)},HS=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},YS=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=HS(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},GS=(e,t,r,n)=>{var i=Kd(e,r),a=Kd(t,n),o=VS(e,r),u=c=>c>1?1:c<0?0:c,s=c=>{for(var l=c>1?1:c,f=l,d=0;d<8;++d){var v=i(f)-l,h=o(f);if(Math.abs(v-l)<Ji||h<Ji)return a(f);f=u(f-v/h)}return a(f)};return s.isStepper=!1,s},Vd=function(){return GS(...YS(...arguments))},XS=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,u,s)=>{var c=-(o-u)*r,l=s*n,f=s+(c-l)*i/1e3,d=s*i/1e3+o;return Math.abs(d-u)<Ji&&Math.abs(f)<Ji?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},ZS=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Vd(e);case"spring":return XS();default:if(e.split("(")[0]==="cubic-bezier")return Vd(e)}return typeof e=="function"?e:null};function QS(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[s,...c]=u;if(typeof s=="number"){i=e.setTimeout(a.bind(null,c),s);return}a(s),i=e.setTimeout(a.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class JS{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function eE(){return QS(new JS)}var tE=S.createContext(eE);function rE(e,t){var r=S.useContext(tE);return S.useMemo(()=>t??r(e),[e,t,r])}var nE=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Yn={isSsr:nE()},iE={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Hd={t:0},wu={t:1};function Va(e){var t=He(e,iE),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:s,children:c}=t,l=r==="auto"?!Yn.isSsr:r,f=rE(t.animationId,t.animationManager),[d,v]=S.useState(l?Hd:wu),h=S.useRef(null);return S.useEffect(()=>{l||v(wu)},[l]),S.useEffect(()=>{if(!l||!n)return Dr;var m=KS(Hd,wu,ZS(a),i,v,f.getTimeoutController()),p=()=>{h.current=m()};return f.start([s,o,p,i,u]),()=>{f.stop(),h.current&&h.current(),u()}},[l,n,i,a,o,s,u,f]),c(d.t)}function Ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=S.useRef(Sn(t)),n=S.useRef(e);return n.current!==e&&(r.current=Sn(t),n.current=e),r.current}var aE=["radius"],oE=["radius"],Yd,Gd,Xd,Zd,Qd,Jd,ev,tv,rv,nv;function iv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function av(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iv(Object(r),!0).forEach(function(n){uE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uE(e,t,r){return(t=sE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sE(e){var t=cE(e,"string");return typeof t=="symbol"?t:t+""}function cE(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ea(){return ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ea.apply(null,arguments)}function ov(e,t){if(e==null)return{};var r,n,i=lE(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function lE(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function mt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var uv=(e,t,r,n,i)=>{var a=Jt(r),o=Jt(n),u=Math.min(Math.abs(a)/2,Math.abs(o)/2),s=o>=0?1:-1,c=a>=0?1:-1,l=o>=0&&a>=0||o<0&&a<0?1:0,f;if(u>0&&Array.isArray(i)){for(var d=[0,0,0,0],v=0,h=4;v<h;v++){var m,p=(m=i[v])!==null&&m!==void 0?m:0;d[v]=p>u?u:p}f=ce(Yd||(Yd=mt(["M",",",""])),e,t+s*d[0]),d[0]>0&&(f+=ce(Gd||(Gd=mt(["A ",",",",0,0,",",",",",""])),d[0],d[0],l,e+c*d[0],t)),f+=ce(Xd||(Xd=mt(["L ",",",""])),e+r-c*d[1],t),d[1]>0&&(f+=ce(Zd||(Zd=mt(["A ",",",",0,0,",`,
|
|
76
|
+
`,",",""])),d[1],d[1],l,e+r,t+s*d[1])),f+=ce(Qd||(Qd=mt(["L ",",",""])),e+r,t+n-s*d[2]),d[2]>0&&(f+=ce(Jd||(Jd=mt(["A ",",",",0,0,",`,
|
|
77
|
+
`,",",""])),d[2],d[2],l,e+r-c*d[2],t+n)),f+=ce(ev||(ev=mt(["L ",",",""])),e+c*d[3],t+n),d[3]>0&&(f+=ce(tv||(tv=mt(["A ",",",",0,0,",`,
|
|
78
|
+
`,",",""])),d[3],d[3],l,e,t+n-s*d[3])),f+="Z"}else if(u>0&&i===+i&&i>0){var y=Math.min(u,i);f=ce(rv||(rv=mt(["M ",",",`
|
|
79
|
+
A `,",",",0,0,",",",",",`
|
|
80
|
+
L `,",",`
|
|
81
|
+
A `,",",",0,0,",",",",",`
|
|
82
|
+
L `,",",`
|
|
83
|
+
A `,",",",0,0,",",",",",`
|
|
84
|
+
L `,",",`
|
|
85
|
+
A `,",",",0,0,",",",","," Z"])),e,t+s*y,y,y,l,e+c*y,t,e+r-c*y,t,y,y,l,e+r,t+s*y,e+r,t+n-s*y,y,y,l,e+r-c*y,t+n,e+c*y,t+n,y,y,l,e,t+n-s*y)}else f=ce(nv||(nv=mt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},sv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Pc=e=>{var t=He(e,sv),r=S.useRef(null),[n,i]=S.useState(-1);S.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var B=r.current.getTotalLength();B&&i(B)}catch{}},[]);var{x:a,y:o,width:u,height:s,radius:c,className:l}=t,{animationEasing:f,animationDuration:d,animationBegin:v,isAnimationActive:h,isUpdateAnimationActive:m}=t,p=S.useRef(u),y=S.useRef(s),g=S.useRef(a),b=S.useRef(o),x=S.useMemo(()=>({x:a,y:o,width:u,height:s,radius:c}),[a,o,u,s,c]),P=Ha(x,"rectangle-");if(a!==+a||o!==+o||u!==+u||s!==+s||u===0||s===0)return null;var O=re("recharts-rectangle",l);if(!m){var E=Be(t),{radius:A}=E,k=ov(E,aE);return w.createElement("path",ea({},k,{x:Jt(a),y:Jt(o),width:Jt(u),height:Jt(s),radius:typeof c=="number"?c:void 0,className:O,d:uv(a,o,u,s,c)}))}var N=p.current,j=y.current,M=g.current,C=b.current,z="0px ".concat(n===-1?1:n,"px"),V="".concat(n,"px 0px"),U=Cy(["strokeDasharray"],d,typeof f=="string"?f:sv.animationEasing);return w.createElement(Va,{animationId:P,key:P,canBegin:n>0,duration:d,easing:f,isActive:m,begin:v},B=>{var Y=Oe(N,u,B),F=Oe(j,s,B),ve=Oe(M,a,B),fe=Oe(C,o,B);r.current&&(p.current=Y,y.current=F,g.current=ve,b.current=fe);var Ae;h?B>0?Ae={transition:U,strokeDasharray:V}:Ae={strokeDasharray:z}:Ae={strokeDasharray:V};var Ge=Be(t),{radius:ke}=Ge,At=ov(Ge,oE);return w.createElement("path",ea({},At,{radius:typeof c=="number"?c:void 0,className:O,d:uv(ve,fe,Y,F,c),ref:r,style:av(av({},Ae),t.style)}))})};function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(r),!0).forEach(function(n){fE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fE(e,t,r){return(t=dE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dE(e){var t=vE(e,"string");return typeof t=="symbol"?t:t+""}function vE(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ta=Math.PI/180,hE=e=>e*180/Math.PI,Te=(e,t,r,n)=>({x:e+Math.cos(-ta*n)*r,y:t+Math.sin(-ta*n)*r}),pE=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},mE=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},yE=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=mE({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,s=Math.acos(u);return n>a&&(s=2*Math.PI-s),{radius:o,angle:hE(s),angleInRadian:s}},gE=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},bE=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},wE=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=yE({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:s,endAngle:c}=gE(t),l=a,f;if(s<=c){for(;l>c;)l-=360;for(;l<s;)l+=360;f=l>=s&&l<=c}else{for(;l>s;)l-=360;for(;l<c;)l+=360;f=l>=c&&l<=s}return f?lv(lv({},t),{},{radius:i,angle:bE(l,t)}):null};function ky(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=Te(t,r,n,i),u=Te(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}var fv,dv,vv,hv,pv,mv,yv;function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Es.apply(null,arguments)}function vr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var xE=(e,t)=>{var r=Ke(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},yi=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:u,cornerIsExternal:s}=e,c=u*(o?1:-1)+n,l=Math.asin(u/c)/ta,f=s?i:i+a*l,d=Te(t,r,c,f),v=Te(t,r,n,f),h=s?i-a*l:i,m=Te(t,r,c*Math.cos(l*ta),h);return{center:d,circleTangency:v,lineTangency:m,theta:l}},My=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,u=xE(a,o),s=a+u,c=Te(t,r,i,a),l=Te(t,r,i,s),f=ce(fv||(fv=vr(["M ",",",`
|
|
86
|
+
A `,",",`,0,
|
|
87
|
+
`,",",`,
|
|
88
|
+
`,",",`
|
|
89
|
+
`])),c.x,c.y,i,i,+(Math.abs(u)>180),+(a>s),l.x,l.y);if(n>0){var d=Te(t,r,n,a),v=Te(t,r,n,s);f+=ce(dv||(dv=vr(["L ",",",`
|
|
90
|
+
A `,",",`,0,
|
|
91
|
+
`,",",`,
|
|
92
|
+
`,","," Z"])),v.x,v.y,n,n,+(Math.abs(u)>180),+(a<=s),d.x,d.y)}else f+=ce(vv||(vv=vr(["L ",","," Z"])),t,r);return f},OE=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:u,startAngle:s,endAngle:c}=e,l=Ke(c-s),{circleTangency:f,lineTangency:d,theta:v}=yi({cx:t,cy:r,radius:i,angle:s,sign:l,cornerRadius:a,cornerIsExternal:u}),{circleTangency:h,lineTangency:m,theta:p}=yi({cx:t,cy:r,radius:i,angle:c,sign:-l,cornerRadius:a,cornerIsExternal:u}),y=u?Math.abs(s-c):Math.abs(s-c)-v-p;if(y<0)return o?ce(hv||(hv=vr(["M ",",",`
|
|
93
|
+
a`,",",",0,0,1,",`,0
|
|
94
|
+
a`,",",",0,0,1,",`,0
|
|
95
|
+
`])),d.x,d.y,a,a,a*2,a,a,-a*2):My({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:c});var g=ce(pv||(pv=vr(["M ",",",`
|
|
96
|
+
A`,",",",0,0,",",",",",`
|
|
97
|
+
A`,",",",0,",",",",",",",`
|
|
98
|
+
A`,",",",0,0,",",",",",`
|
|
99
|
+
`])),d.x,d.y,a,a,+(l<0),f.x,f.y,i,i,+(y>180),+(l<0),h.x,h.y,a,a,+(l<0),m.x,m.y);if(n>0){var{circleTangency:b,lineTangency:x,theta:P}=yi({cx:t,cy:r,radius:n,angle:s,sign:l,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:E,theta:A}=yi({cx:t,cy:r,radius:n,angle:c,sign:-l,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),k=u?Math.abs(s-c):Math.abs(s-c)-P-A;if(k<0&&a===0)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=ce(mv||(mv=vr(["L",",",`
|
|
100
|
+
A`,",",",0,0,",",",",",`
|
|
101
|
+
A`,",",",0,",",",",",",",`
|
|
102
|
+
A`,",",",0,0,",",",",","Z"])),E.x,E.y,a,a,+(l<0),O.x,O.y,n,n,+(k>180),+(l>0),b.x,b.y,a,a,+(l<0),x.x,x.y)}else g+=ce(yv||(yv=vr(["L",",","Z"])),t,r);return g},PE={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Dy=e=>{var t=He(e,PE),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:s,startAngle:c,endAngle:l,className:f}=t;if(a<i||c===l)return null;var d=re("recharts-sector",f),v=a-i,h=dt(o,v,0,!0),m;return h>0&&Math.abs(c-l)<360?m=OE({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(h,v/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:c,endAngle:l}):m=My({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l}),w.createElement("path",Es({},Be(t),{className:d,d:m}))};function SE(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(dm(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:u}=t,s=Te(n,i,a,u),c=Te(n,i,o,u);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return ky(t)}}var xu={},Ou={},Pu={},gv;function EE(){return gv||(gv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Em();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r}(Pu)),Pu}var bv;function _E(){return bv||(bv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EE();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r}(Ou)),Ou}var wv;function AE(){return wv||(wv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_m(),r=_E();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const u=Math.max(Math.ceil((a-i)/(o||1)),0),s=new Array(u);for(let c=0;c<u;c++)s[c]=i,i+=o;return s}e.range=n}(xu)),xu}var Su,xv;function CE(){return xv||(xv=1,Su=AE().range),Su}var jE=CE();const Ny=zt(jE);function er(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function IE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Sc(e){let t,r,n;e.length!==2?(t=er,r=(u,s)=>er(e(u),s),n=(u,s)=>e(u)-s):(t=e===er||e===IE?e:TE,r=e,n=e);function i(u,s,c=0,l=u.length){if(c<l){if(t(s,s)!==0)return l;do{const f=c+l>>>1;r(u[f],s)<0?c=f+1:l=f}while(c<l)}return c}function a(u,s,c=0,l=u.length){if(c<l){if(t(s,s)!==0)return l;do{const f=c+l>>>1;r(u[f],s)<=0?c=f+1:l=f}while(c<l)}return c}function o(u,s,c=0,l=u.length){const f=i(u,s,c,l-1);return f>c&&n(u[f-1],s)>-n(u[f],s)?f-1:f}return{left:i,center:o,right:a}}function TE(){return 0}function $y(e){return e===null?NaN:+e}function*kE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const ME=Sc(er),Gn=ME.right;Sc($y).center;class Ov extends Map{constructor(t,r=$E){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Pv(this,t))}has(t){return super.has(Pv(this,t))}set(t,r){return super.set(DE(this,t),r)}delete(t){return super.delete(NE(this,t))}}function Pv({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function DE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function NE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function $E(e){return e!==null&&typeof e=="object"?e.valueOf():e}function RE(e=er){if(e===er)return Ry;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Ry(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const LE=Math.sqrt(50),zE=Math.sqrt(10),BE=Math.sqrt(2);function ra(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=LE?10:a>=zE?5:a>=BE?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?ra(e,t,r*2):[u,s,c]}function _s(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?ra(t,e,r):ra(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function As(e,t,r){return t=+t,e=+e,r=+r,ra(e,t,r)[2]}function Cs(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?As(t,e,r):As(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Sv(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Ev(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Ly(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Ry:RE(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,l=Math.log(s),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(s-f)/s)*(c-s/2<0?-1:1),v=Math.max(r,Math.floor(t-c*f/s+d)),h=Math.min(n,Math.floor(t+(s-c)*f/s+d));Ly(e,t,v,h,i)}const a=e[t];let o=r,u=n;for(pn(e,r,t),i(e[n],a)>0&&pn(e,r,n);o<u;){for(pn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?pn(e,r,u):(++u,pn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function pn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function FE(e,t,r){if(e=Float64Array.from(kE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Ev(e);if(t>=1)return Sv(e);var n,i=(n-1)*t,a=Math.floor(i),o=Sv(Ly(e,a).subarray(0,a+1)),u=Ev(e.subarray(a+1));return o+(u-o)*(i-a)}}function qE(e,t,r=$y){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function WE(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function st(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Wt(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 js=Symbol("implicit");function Ec(){var e=new Ov,t=[],r=[],n=js;function i(a){let o=e.get(a);if(o===void 0){if(n!==js)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ov;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Ec(t,r).unknown(n)},st.apply(i,arguments),i}function _c(){var e=Ec().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,l=.5;delete e.unknown;function f(){var d=t().length,v=i<n,h=v?i:n,m=v?n:i;a=(m-h)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),h+=(m-h-a*(d-s))*l,o=a*(1-s),u&&(h=Math.round(h),o=Math.round(o));var p=WE(d).map(function(y){return h+a*y});return r(v?p.reverse():p)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,f()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return _c(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(l)},st.apply(f(),arguments)}function zy(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zy(t())},e}function UE(){return zy(_c.apply(null,arguments).paddingInner(1))}function Ac(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function By(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Xn(){}var Mn=.7,na=1/Mn,Hr="\\s*([+-]?\\d+)\\s*",Dn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",KE=/^#([0-9a-f]{3,8})$/,VE=new RegExp(`^rgb\\(${Hr},${Hr},${Hr}\\)$`),HE=new RegExp(`^rgb\\(${xt},${xt},${xt}\\)$`),YE=new RegExp(`^rgba\\(${Hr},${Hr},${Hr},${Dn}\\)$`),GE=new RegExp(`^rgba\\(${xt},${xt},${xt},${Dn}\\)$`),XE=new RegExp(`^hsl\\(${Dn},${xt},${xt}\\)$`),ZE=new RegExp(`^hsla\\(${Dn},${xt},${xt},${Dn}\\)$`),_v={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};Ac(Xn,Nn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Av,formatHex:Av,formatHex8:QE,formatHsl:JE,formatRgb:Cv,toString:Cv});function Av(){return this.rgb().formatHex()}function QE(){return this.rgb().formatHex8()}function JE(){return Fy(this).formatHsl()}function Cv(){return this.rgb().formatRgb()}function Nn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=KE.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?jv(t):r===3?new Ve(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?gi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?gi(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=VE.exec(e))?new Ve(t[1],t[2],t[3],1):(t=HE.exec(e))?new Ve(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=YE.exec(e))?gi(t[1],t[2],t[3],t[4]):(t=GE.exec(e))?gi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XE.exec(e))?kv(t[1],t[2]/100,t[3]/100,1):(t=ZE.exec(e))?kv(t[1],t[2]/100,t[3]/100,t[4]):_v.hasOwnProperty(e)?jv(_v[e]):e==="transparent"?new Ve(NaN,NaN,NaN,0):null}function jv(e){return new Ve(e>>16&255,e>>8&255,e&255,1)}function gi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ve(e,t,r,n)}function e_(e){return e instanceof Xn||(e=Nn(e)),e?(e=e.rgb(),new Ve(e.r,e.g,e.b,e.opacity)):new Ve}function Is(e,t,r,n){return arguments.length===1?e_(e):new Ve(e,t,r,n??1)}function Ve(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ac(Ve,Is,By(Xn,{brighter(e){return e=e==null?na:Math.pow(na,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mn:Math.pow(Mn,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ve(br(this.r),br(this.g),br(this.b),ia(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:Iv,formatHex:Iv,formatHex8:t_,formatRgb:Tv,toString:Tv}));function Iv(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}`}function t_(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}${hr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Tv(){const e=ia(this.opacity);return`${e===1?"rgb(":"rgba("}${br(this.r)}, ${br(this.g)}, ${br(this.b)}${e===1?")":`, ${e})`}`}function ia(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function br(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hr(e){return e=br(e),(e<16?"0":"")+e.toString(16)}function kv(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ct(e,t,r,n)}function Fy(e){if(e instanceof ct)return new ct(e.h,e.s,e.l,e.opacity);if(e instanceof Xn||(e=Nn(e)),!e)return new ct;if(e instanceof ct)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new ct(o,u,s,e.opacity)}function r_(e,t,r,n){return arguments.length===1?Fy(e):new ct(e,t,r,n??1)}function ct(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ac(ct,r_,By(Xn,{brighter(e){return e=e==null?na:Math.pow(na,e),new ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mn:Math.pow(Mn,e),new ct(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ve(Eu(e>=240?e-240:e+120,i,n),Eu(e,i,n),Eu(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ct(Mv(this.h),bi(this.s),bi(this.l),ia(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=ia(this.opacity);return`${e===1?"hsl(":"hsla("}${Mv(this.h)}, ${bi(this.s)*100}%, ${bi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Mv(e){return e=(e||0)%360,e<0?e+360:e}function bi(e){return Math.max(0,Math.min(1,e||0))}function Eu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Cc=e=>()=>e;function n_(e,t){return function(r){return e+r*t}}function i_(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function a_(e){return(e=+e)==1?qy:function(t,r){return r-t?i_(t,r,e):Cc(isNaN(t)?r:t)}}function qy(e,t){var r=t-e;return r?n_(e,r):Cc(isNaN(e)?t:e)}const Dv=function e(t){var r=a_(t);function n(i,a){var o=r((i=Is(i)).r,(a=Is(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=qy(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=u(l),i.b=s(l),i.opacity=c(l),i+""}}return n.gamma=e,n}(1);function o_(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function u_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function s_(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=en(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function c_(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function aa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function l_(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=en(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ts=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_u=new RegExp(Ts.source,"g");function f_(e){return function(){return e}}function d_(e){return function(t){return e(t)+""}}function v_(e,t){var r=Ts.lastIndex=_u.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Ts.exec(e))&&(i=_u.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:aa(n,i)})),r=_u.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?d_(s[0].x):f_(t):(t=s.length,function(c){for(var l=0,f;l<t;++l)u[(f=s[l]).i]=f.x(c);return u.join("")})}function en(e,t){var r=typeof t,n;return t==null||r==="boolean"?Cc(t):(r==="number"?aa:r==="string"?(n=Nn(t))?(t=n,Dv):v_:t instanceof Nn?Dv:t instanceof Date?c_:u_(t)?o_:Array.isArray(t)?s_:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?l_:aa)(e,t)}function jc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function h_(e,t){t===void 0&&(t=e,e=en);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function p_(e){return function(){return e}}function oa(e){return+e}var Nv=[0,1];function ze(e){return e}function ks(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:p_(isNaN(t)?NaN:.5)}function m_(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function y_(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=ks(i,n),a=r(o,a)):(n=ks(n,i),a=r(a,o)),function(u){return a(n(u))}}function g_(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=ks(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Gn(e,u,1,n)-1;return a[s](i[s](u))}}function Zn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ya(){var e=Nv,t=Nv,r=en,n,i,a,o=ze,u,s,c;function l(){var d=Math.min(e.length,t.length);return o!==ze&&(o=m_(e[0],e[d-1])),u=d>2?g_:y_,s=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=u(t,e.map(n),aa)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,oa),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=jc,l()},f.clamp=function(d){return arguments.length?(o=d?!0:ze,l()):o!==ze},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,v){return n=d,i=v,l()}}function Ic(){return Ya()(ze,ze)}function b_(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ua(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Xr(e){return e=ua(Math.abs(e)),e?e[1]:NaN}function w_(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function x_(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var O_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $n(e){if(!(t=O_.exec(e)))throw new Error("invalid format: "+e);var t;return new Tc({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]})}$n.prototype=Tc.prototype;function Tc(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+""}Tc.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 P_(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Wy;function S_(e,t){var r=ua(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Wy=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ua(e,Math.max(0,t+a-1))[0]}function $v(e,t){var r=ua(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Rv={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:b_,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return $v(e*100,t)},r:$v,s:S_,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Lv(e){return e}var zv=Array.prototype.map,Bv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function E_(e){var t=e.grouping===void 0||e.thousands===void 0?Lv:w_(zv.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal+"",a=e.numerals===void 0?Lv:x_(zv.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(f){f=$n(f);var d=f.fill,v=f.align,h=f.sign,m=f.symbol,p=f.zero,y=f.width,g=f.comma,b=f.precision,x=f.trim,P=f.type;P==="n"?(g=!0,P="g"):Rv[P]||(b===void 0&&(b=12),x=!0,P="g"),(p||d==="0"&&v==="=")&&(p=!0,d="0",v="=");var O=m==="$"?r:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",E=m==="$"?n:/[%p]/.test(P)?o:"",A=Rv[P],k=/[defgprs%]/.test(P);b=b===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function N(j){var M=O,C=E,z,V,U;if(P==="c")C=A(j)+C,j="";else{j=+j;var B=j<0||1/j<0;if(j=isNaN(j)?s:A(Math.abs(j),b),x&&(j=P_(j)),B&&+j==0&&h!=="+"&&(B=!1),M=(B?h==="("?h:u:h==="-"||h==="("?"":h)+M,C=(P==="s"?Bv[8+Wy/3]:"")+C+(B&&h==="("?")":""),k){for(z=-1,V=j.length;++z<V;)if(U=j.charCodeAt(z),48>U||U>57){C=(U===46?i+j.slice(z+1):j.slice(z))+C,j=j.slice(0,z);break}}}g&&!p&&(j=t(j,1/0));var Y=M.length+j.length+C.length,F=Y<y?new Array(y-Y+1).join(d):"";switch(g&&p&&(j=t(F+j,F.length?y-C.length:1/0),F=""),v){case"<":j=M+j+C+F;break;case"=":j=M+F+j+C;break;case"^":j=F.slice(0,Y=F.length>>1)+M+j+C+F.slice(Y);break;default:j=F+M+j+C;break}return a(j)}return N.toString=function(){return f+""},N}function l(f,d){var v=c((f=$n(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(Xr(d)/3)))*3,m=Math.pow(10,-h),p=Bv[8+h/3];return function(y){return v(m*y)+p}}return{format:c,formatPrefix:l}}var wi,kc,Uy;__({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function __(e){return wi=E_(e),kc=wi.format,Uy=wi.formatPrefix,wi}function A_(e){return Math.max(0,-Xr(Math.abs(e)))}function C_(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xr(t)/3)))*3-Xr(Math.abs(e)))}function j_(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xr(t)-Xr(e))+1}function Ky(e,t,r,n){var i=Cs(e,t,r),a;switch(n=$n(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=C_(i,o))&&(n.precision=a),Uy(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=j_(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=A_(i))&&(n.precision=a-(n.type==="%")*2);break}}return kc(n)}function rr(e){var t=e.domain;return e.ticks=function(r){var n=t();return _s(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Ky(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,l=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);l-- >0;){if(c=As(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function Vy(){var e=Ic();return e.copy=function(){return Zn(e,Vy())},st.apply(e,arguments),rr(e)}function Hy(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,oa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Hy(e).unknown(t)},e=arguments.length?Array.from(e,oa):[0,1],rr(r)}function Yy(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Fv(e){return Math.log(e)}function qv(e){return Math.exp(e)}function I_(e){return-Math.log(-e)}function T_(e){return-Math.exp(-e)}function k_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function M_(e){return e===10?k_:e===Math.E?Math.exp:t=>Math.pow(e,t)}function D_(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 Wv(e){return(t,r)=>-e(-t,r)}function Mc(e){const t=e(Fv,qv),r=t.domain;let n=10,i,a;function o(){return i=D_(n),a=M_(n),r()[0]<0?(i=Wv(i),a=Wv(a),e(I_,T_)):e(Fv,qv),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],l=s[s.length-1];const f=l<c;f&&([c,l]=[l,c]);let d=i(c),v=i(l),h,m;const p=u==null?10:+u;let y=[];if(!(n%1)&&v-d<p){if(d=Math.floor(d),v=Math.ceil(v),c>0){for(;d<=v;++d)for(h=1;h<n;++h)if(m=d<0?h/a(-d):h*a(d),!(m<c)){if(m>l)break;y.push(m)}}else for(;d<=v;++d)for(h=n-1;h>=1;--h)if(m=d>0?h/a(-d):h*a(d),!(m<c)){if(m>l)break;y.push(m)}y.length*2<p&&(y=_s(c,l,p))}else y=_s(d,v,Math.min(v-d,p)).map(a);return f?y.reverse():y},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=$n(s)).precision==null&&(s.trim=!0),s=kc(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=c?s(l):""}},t.nice=()=>r(Yy(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Gy(){const e=Mc(Ya()).domain([1,10]);return e.copy=()=>Zn(e,Gy()).base(e.base()),st.apply(e,arguments),e}function Uv(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Kv(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Dc(e){var t=1,r=e(Uv(t),Kv(t));return r.constant=function(n){return arguments.length?e(Uv(t=+n),Kv(t)):t},rr(r)}function Xy(){var e=Dc(Ya());return e.copy=function(){return Zn(e,Xy()).constant(e.constant())},st.apply(e,arguments)}function Vv(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function N_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function $_(e){return e<0?-e*e:e*e}function Nc(e){var t=e(ze,ze),r=1;function n(){return r===1?e(ze,ze):r===.5?e(N_,$_):e(Vv(r),Vv(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},rr(t)}function $c(){var e=Nc(Ya());return e.copy=function(){return Zn(e,$c()).exponent(e.exponent())},st.apply(e,arguments),e}function R_(){return $c.apply(null,arguments).exponent(.5)}function Hv(e){return Math.sign(e)*e*e}function L_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Zy(){var e=Ic(),t=[0,1],r=!1,n;function i(a){var o=L_(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Hv(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,oa)).map(Hv)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Zy(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},st.apply(i,arguments),rr(i)}function Qy(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=qE(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Gn(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(er),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Qy().domain(e).range(t).unknown(n)},st.apply(a,arguments)}function Jy(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Gn(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Jy().domain([e,t]).range(i).unknown(a)},st.apply(rr(o),arguments)}function eg(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Gn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return eg().domain(e).range(t).unknown(r)},st.apply(i,arguments)}const Au=new Date,Cu=new Date;function ye(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>ye(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Au.setTime(+a),Cu.setTime(+o),e(Au),e(Cu),Math.floor(r(Au,Cu))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const sa=ye(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sa.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ye(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):sa);sa.range;const It=1e3,at=It*60,Tt=at*60,Nt=Tt*24,Rc=Nt*7,Yv=Nt*30,ju=Nt*365,pr=ye(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCSeconds());pr.range;const Lc=ye(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*It)},(e,t)=>{e.setTime(+e+t*at)},(e,t)=>(t-e)/at,e=>e.getMinutes());Lc.range;const zc=ye(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*at)},(e,t)=>(t-e)/at,e=>e.getUTCMinutes());zc.range;const Bc=ye(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*It-e.getMinutes()*at)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getHours());Bc.range;const Fc=ye(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCHours());Fc.range;const qc=ye(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*at)/Nt,e=>e.getDate()-1);qc.range;const tg=ye(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nt,e=>e.getUTCDate()-1);tg.range;const rg=ye(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nt,e=>Math.floor(e/Nt));rg.range;function $r(e){return ye(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*at)/Rc)}const Wc=$r(0),z_=$r(1),B_=$r(2),F_=$r(3),q_=$r(4),W_=$r(5),U_=$r(6);Wc.range;z_.range;B_.range;F_.range;q_.range;W_.range;U_.range;function Rr(e){return ye(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Rc)}const Uc=Rr(0),K_=Rr(1),V_=Rr(2),H_=Rr(3),Y_=Rr(4),G_=Rr(5),X_=Rr(6);Uc.range;K_.range;V_.range;H_.range;Y_.range;G_.range;X_.range;const Kc=ye(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());Kc.range;const Vc=ye(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());Vc.range;const Ga=ye(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());Ga.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ye(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ga.range;const Xa=ye(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());Xa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ye(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Xa.range;function ng(e,t,r,n,i,a){const o=[[pr,1,It],[pr,5,5*It],[pr,15,15*It],[pr,30,30*It],[a,1,at],[a,5,5*at],[a,15,15*at],[a,30,30*at],[i,1,Tt],[i,3,3*Tt],[i,6,6*Tt],[i,12,12*Tt],[n,1,Nt],[n,2,2*Nt],[r,1,Rc],[t,1,Yv],[t,3,3*Yv],[e,1,ju]];function u(c,l,f){const d=l<c;d&&([c,l]=[l,c]);const v=f&&typeof f.range=="function"?f:s(c,l,f),h=v?v.range(c,+l+1):[];return d?h.reverse():h}function s(c,l,f){const d=Math.abs(l-c)/f,v=Sc(([,,p])=>p).right(o,d);if(v===o.length)return e.every(Cs(c/ju,l/ju,f));if(v===0)return sa.every(Math.max(Cs(c,l,f),1));const[h,m]=o[d/o[v-1][2]<o[v][2]/d?v-1:v];return h.every(m)}return[u,s]}const[Z_,Q_]=ng(Xa,Vc,Uc,rg,Fc,zc),[J_,eA]=ng(Ga,Kc,Wc,qc,Bc,Lc);var Iu=new Date,Tu=new Date;function Ut(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,u){var s=[],c;if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=function(a){return Ut(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,u){if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return Iu.setTime(+a),Tu.setTime(+o),e(Iu),e(Tu),Math.floor(r(Iu,Tu))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}const tA=1e3,Hc=tA*60,rA=Hc*60,Yc=rA*24,ig=Yc*7;var Gc=Ut(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hc)/Yc,e=>e.getDate()-1);Gc.range;function Lr(e){return Ut(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Hc)/ig})}var ag=Lr(0),ca=Lr(1),nA=Lr(2),iA=Lr(3),Zr=Lr(4),aA=Lr(5),oA=Lr(6);ag.range;ca.range;nA.range;iA.range;Zr.range;aA.range;oA.range;var Ar=Ut(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Ar.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ut(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};Ar.range;var Xc=Ut(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Yc},function(e){return e.getUTCDate()-1});Xc.range;function zr(e){return Ut(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/ig})}var og=zr(0),la=zr(1),uA=zr(2),sA=zr(3),Qr=zr(4),cA=zr(5),lA=zr(6);og.range;la.range;uA.range;sA.range;Qr.range;cA.range;lA.range;var Cr=Ut(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Cr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ut(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};Cr.range;function ku(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 Mu(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 mn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function fA(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=yn(i),l=gn(i),f=yn(a),d=gn(a),v=yn(o),h=gn(o),m=yn(u),p=gn(u),y=yn(s),g=gn(s),b={a:B,A:Y,b:F,B:ve,c:null,d:eh,e:eh,f:DA,g:UA,G:VA,H:TA,I:kA,j:MA,L:ug,m:NA,M:$A,p:fe,q:Ae,Q:nh,s:ih,S:RA,u:LA,U:zA,V:BA,w:FA,W:qA,x:null,X:null,y:WA,Y:KA,Z:HA,"%":rh},x={a:Ge,A:ke,b:At,B:or,c:null,d:th,e:th,f:ZA,g:uC,G:cC,H:YA,I:GA,j:XA,L:cg,m:QA,M:JA,p:Me,q:ln,Q:nh,s:ih,S:eC,u:tC,U:rC,V:nC,w:iC,W:aC,x:null,X:null,y:oC,Y:sC,Z:lC,"%":rh},P={a:N,A:j,b:M,B:C,c:z,d:Qv,e:Qv,f:AA,g:Zv,G:Xv,H:Jv,I:Jv,j:PA,L:_A,m:OA,M:SA,p:k,q:xA,Q:jA,s:IA,S:EA,u:mA,U:yA,V:gA,w:pA,W:bA,x:V,X:U,y:Zv,Y:Xv,Z:wA,"%":CA};b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),x.x=O(r,x),x.X=O(n,x),x.c=O(t,x);function O(I,q){return function(D){var T=[],he=-1,G=0,Xe=I.length,Ze,ur,Wl;for(D instanceof Date||(D=new Date(+D));++he<Xe;)I.charCodeAt(he)===37&&(T.push(I.slice(G,he)),(ur=Gv[Ze=I.charAt(++he)])!=null?Ze=I.charAt(++he):ur=Ze==="e"?" ":"0",(Wl=q[Ze])&&(Ze=Wl(D,ur)),T.push(Ze),G=he+1);return T.push(I.slice(G,he)),T.join("")}}function E(I,q){return function(D){var T=mn(1900,void 0,1),he=A(T,I,D+="",0),G,Xe;if(he!=D.length)return null;if("Q"in T)return new Date(T.Q);if("s"in T)return new Date(T.s*1e3+("L"in T?T.L:0));if(q&&!("Z"in T)&&(T.Z=0),"p"in T&&(T.H=T.H%12+T.p*12),T.m===void 0&&(T.m="q"in T?T.q:0),"V"in T){if(T.V<1||T.V>53)return null;"w"in T||(T.w=1),"Z"in T?(G=Mu(mn(T.y,0,1)),Xe=G.getUTCDay(),G=Xe>4||Xe===0?la.ceil(G):la(G),G=Xc.offset(G,(T.V-1)*7),T.y=G.getUTCFullYear(),T.m=G.getUTCMonth(),T.d=G.getUTCDate()+(T.w+6)%7):(G=ku(mn(T.y,0,1)),Xe=G.getDay(),G=Xe>4||Xe===0?ca.ceil(G):ca(G),G=Gc.offset(G,(T.V-1)*7),T.y=G.getFullYear(),T.m=G.getMonth(),T.d=G.getDate()+(T.w+6)%7)}else("W"in T||"U"in T)&&("w"in T||(T.w="u"in T?T.u%7:"W"in T?1:0),Xe="Z"in T?Mu(mn(T.y,0,1)).getUTCDay():ku(mn(T.y,0,1)).getDay(),T.m=0,T.d="W"in T?(T.w+6)%7+T.W*7-(Xe+5)%7:T.w+T.U*7-(Xe+6)%7);return"Z"in T?(T.H+=T.Z/100|0,T.M+=T.Z%100,Mu(T)):ku(T)}}function A(I,q,D,T){for(var he=0,G=q.length,Xe=D.length,Ze,ur;he<G;){if(T>=Xe)return-1;if(Ze=q.charCodeAt(he++),Ze===37){if(Ze=q.charAt(he++),ur=P[Ze in Gv?q.charAt(he++):Ze],!ur||(T=ur(I,D,T))<0)return-1}else if(Ze!=D.charCodeAt(T++))return-1}return T}function k(I,q,D){var T=c.exec(q.slice(D));return T?(I.p=l.get(T[0].toLowerCase()),D+T[0].length):-1}function N(I,q,D){var T=v.exec(q.slice(D));return T?(I.w=h.get(T[0].toLowerCase()),D+T[0].length):-1}function j(I,q,D){var T=f.exec(q.slice(D));return T?(I.w=d.get(T[0].toLowerCase()),D+T[0].length):-1}function M(I,q,D){var T=y.exec(q.slice(D));return T?(I.m=g.get(T[0].toLowerCase()),D+T[0].length):-1}function C(I,q,D){var T=m.exec(q.slice(D));return T?(I.m=p.get(T[0].toLowerCase()),D+T[0].length):-1}function z(I,q,D){return A(I,t,q,D)}function V(I,q,D){return A(I,r,q,D)}function U(I,q,D){return A(I,n,q,D)}function B(I){return o[I.getDay()]}function Y(I){return a[I.getDay()]}function F(I){return s[I.getMonth()]}function ve(I){return u[I.getMonth()]}function fe(I){return i[+(I.getHours()>=12)]}function Ae(I){return 1+~~(I.getMonth()/3)}function Ge(I){return o[I.getUTCDay()]}function ke(I){return a[I.getUTCDay()]}function At(I){return s[I.getUTCMonth()]}function or(I){return u[I.getUTCMonth()]}function Me(I){return i[+(I.getUTCHours()>=12)]}function ln(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var q=O(I+="",b);return q.toString=function(){return I},q},parse:function(I){var q=E(I+="",!1);return q.toString=function(){return I},q},utcFormat:function(I){var q=O(I+="",x);return q.toString=function(){return I},q},utcParse:function(I){var q=E(I+="",!0);return q.toString=function(){return I},q}}}var Gv={"-":"",_:" ",0:"0"},Se=/^\s*\d+/,dA=/^%/,vA=/[\\^$*+?|[\]().{}]/g;function K(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function hA(e){return e.replace(vA,"\\$&")}function yn(e){return new RegExp("^(?:"+e.map(hA).join("|")+")","i")}function gn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function pA(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function mA(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function yA(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function gA(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function bA(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Xv(e,t,r){var n=Se.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Zv(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function wA(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function xA(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function OA(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Qv(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function PA(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Jv(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function SA(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function EA(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function _A(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function AA(e,t,r){var n=Se.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function CA(e,t,r){var n=dA.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function jA(e,t,r){var n=Se.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function IA(e,t,r){var n=Se.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function eh(e,t){return K(e.getDate(),t,2)}function TA(e,t){return K(e.getHours(),t,2)}function kA(e,t){return K(e.getHours()%12||12,t,2)}function MA(e,t){return K(1+Gc.count(Ar(e),e),t,3)}function ug(e,t){return K(e.getMilliseconds(),t,3)}function DA(e,t){return ug(e,t)+"000"}function NA(e,t){return K(e.getMonth()+1,t,2)}function $A(e,t){return K(e.getMinutes(),t,2)}function RA(e,t){return K(e.getSeconds(),t,2)}function LA(e){var t=e.getDay();return t===0?7:t}function zA(e,t){return K(ag.count(Ar(e)-1,e),t,2)}function sg(e){var t=e.getDay();return t>=4||t===0?Zr(e):Zr.ceil(e)}function BA(e,t){return e=sg(e),K(Zr.count(Ar(e),e)+(Ar(e).getDay()===4),t,2)}function FA(e){return e.getDay()}function qA(e,t){return K(ca.count(Ar(e)-1,e),t,2)}function WA(e,t){return K(e.getFullYear()%100,t,2)}function UA(e,t){return e=sg(e),K(e.getFullYear()%100,t,2)}function KA(e,t){return K(e.getFullYear()%1e4,t,4)}function VA(e,t){var r=e.getDay();return e=r>=4||r===0?Zr(e):Zr.ceil(e),K(e.getFullYear()%1e4,t,4)}function HA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+K(t/60|0,"0",2)+K(t%60,"0",2)}function th(e,t){return K(e.getUTCDate(),t,2)}function YA(e,t){return K(e.getUTCHours(),t,2)}function GA(e,t){return K(e.getUTCHours()%12||12,t,2)}function XA(e,t){return K(1+Xc.count(Cr(e),e),t,3)}function cg(e,t){return K(e.getUTCMilliseconds(),t,3)}function ZA(e,t){return cg(e,t)+"000"}function QA(e,t){return K(e.getUTCMonth()+1,t,2)}function JA(e,t){return K(e.getUTCMinutes(),t,2)}function eC(e,t){return K(e.getUTCSeconds(),t,2)}function tC(e){var t=e.getUTCDay();return t===0?7:t}function rC(e,t){return K(og.count(Cr(e)-1,e),t,2)}function lg(e){var t=e.getUTCDay();return t>=4||t===0?Qr(e):Qr.ceil(e)}function nC(e,t){return e=lg(e),K(Qr.count(Cr(e),e)+(Cr(e).getUTCDay()===4),t,2)}function iC(e){return e.getUTCDay()}function aC(e,t){return K(la.count(Cr(e)-1,e),t,2)}function oC(e,t){return K(e.getUTCFullYear()%100,t,2)}function uC(e,t){return e=lg(e),K(e.getUTCFullYear()%100,t,2)}function sC(e,t){return K(e.getUTCFullYear()%1e4,t,4)}function cC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Qr(e):Qr.ceil(e),K(e.getUTCFullYear()%1e4,t,4)}function lC(){return"+0000"}function rh(){return"%"}function nh(e){return+e}function ih(e){return Math.floor(+e/1e3)}var Fr,fg,dg;fC({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 fC(e){return Fr=fA(e),fg=Fr.format,Fr.parse,dg=Fr.utcFormat,Fr.utcParse,Fr}function dC(e){return new Date(e)}function vC(e){return e instanceof Date?+e:+new Date(+e)}function Zc(e,t,r,n,i,a,o,u,s,c){var l=Ic(),f=l.invert,d=l.domain,v=c(".%L"),h=c(":%S"),m=c("%I:%M"),p=c("%I %p"),y=c("%a %d"),g=c("%b %d"),b=c("%B"),x=c("%Y");function P(O){return(s(O)<O?v:u(O)<O?h:o(O)<O?m:a(O)<O?p:n(O)<O?i(O)<O?y:g:r(O)<O?b:x)(O)}return l.invert=function(O){return new Date(f(O))},l.domain=function(O){return arguments.length?d(Array.from(O,vC)):d().map(dC)},l.ticks=function(O){var E=d();return e(E[0],E[E.length-1],O??10)},l.tickFormat=function(O,E){return E==null?P:c(E)},l.nice=function(O){var E=d();return(!O||typeof O.range!="function")&&(O=t(E[0],E[E.length-1],O??10)),O?d(Yy(E,O)):l},l.copy=function(){return Zn(l,Zc(e,t,r,n,i,a,o,u,s,c))},l}function hC(){return st.apply(Zc(J_,eA,Ga,Kc,Wc,qc,Bc,Lc,pr,fg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function pC(){return st.apply(Zc(Z_,Q_,Xa,Vc,Uc,tg,Fc,zc,pr,dg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Za(){var e=0,t=1,r,n,i,a,o=ze,u=!1,s;function c(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-r)*i,u?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(u=!!f,c):u},c.interpolator=function(f){return arguments.length?(o=f,c):o};function l(f){return function(d){var v,h;return arguments.length?([v,h]=d,o=f(v,h),c):[o(0),o(1)]}}return c.range=l(en),c.rangeRound=l(jc),c.unknown=function(f){return arguments.length?(s=f,c):s},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function nr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function vg(){var e=rr(Za()(ze));return e.copy=function(){return nr(e,vg())},Wt.apply(e,arguments)}function hg(){var e=Mc(Za()).domain([1,10]);return e.copy=function(){return nr(e,hg()).base(e.base())},Wt.apply(e,arguments)}function pg(){var e=Dc(Za());return e.copy=function(){return nr(e,pg()).constant(e.constant())},Wt.apply(e,arguments)}function Qc(){var e=Nc(Za());return e.copy=function(){return nr(e,Qc()).exponent(e.exponent())},Wt.apply(e,arguments)}function mC(){return Qc.apply(null,arguments).exponent(.5)}function mg(){var e=[],t=ze;function r(n){if(n!=null&&!isNaN(n=+n))return t((Gn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(er),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>FE(e,a/n))},r.copy=function(){return mg(t).domain(e)},Wt.apply(r,arguments)}function Qa(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=ze,l,f=!1,d;function v(m){return isNaN(m=+m)?d:(m=.5+((m=+l(m))-a)*(n*m<n*a?u:s),c(f?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,i=l(e=+e),a=l(t=+t),o=l(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,v):[e,t,r]},v.clamp=function(m){return arguments.length?(f=!!m,v):f},v.interpolator=function(m){return arguments.length?(c=m,v):c};function h(m){return function(p){var y,g,b;return arguments.length?([y,g,b]=p,c=h_(m,[y,g,b]),v):[c(0),c(.5),c(1)]}}return v.range=h(en),v.rangeRound=h(jc),v.unknown=function(m){return arguments.length?(d=m,v):d},function(m){return l=m,i=m(e),a=m(t),o=m(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function yg(){var e=rr(Qa()(ze));return e.copy=function(){return nr(e,yg())},Wt.apply(e,arguments)}function gg(){var e=Mc(Qa()).domain([.1,1,10]);return e.copy=function(){return nr(e,gg()).base(e.base())},Wt.apply(e,arguments)}function bg(){var e=Dc(Qa());return e.copy=function(){return nr(e,bg()).constant(e.constant())},Wt.apply(e,arguments)}function Jc(){var e=Nc(Qa());return e.copy=function(){return nr(e,Jc()).exponent(e.exponent())},Wt.apply(e,arguments)}function yC(){return Jc.apply(null,arguments).exponent(.5)}const xn=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:_c,scaleDiverging:yg,scaleDivergingLog:gg,scaleDivergingPow:Jc,scaleDivergingSqrt:yC,scaleDivergingSymlog:bg,scaleIdentity:Hy,scaleImplicit:js,scaleLinear:Vy,scaleLog:Gy,scaleOrdinal:Ec,scalePoint:UE,scalePow:$c,scaleQuantile:Qy,scaleQuantize:Jy,scaleRadial:Zy,scaleSequential:vg,scaleSequentialLog:hg,scaleSequentialPow:Qc,scaleSequentialQuantile:mg,scaleSequentialSqrt:mC,scaleSequentialSymlog:pg,scaleSqrt:R_,scaleSymlog:Xy,scaleThreshold:eg,scaleTime:hC,scaleUtc:pC,tickFormat:Ky},Symbol.toStringTag,{value:"Module"}));var Kt=e=>e.chartData,wg=_([Kt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),el=(e,t,r,n)=>n?wg(e):Kt(e),xg=(e,t,r)=>r?wg(e):Kt(e);function $t(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(W(t)&&W(r))return!0}return!1}function ah(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Og(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(W(r))i=r;else if(typeof r=="function")return;if(W(n))a=n;else if(typeof n=="function")return;var o=[i,a];if($t(o))return o}}function gC(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if($t(n))return ah(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,u;if(i==="auto")t!=null&&(o=Math.min(...t));else if(R(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&yd.test(i)){var s=yd.exec(i);if(s==null||s[1]==null||t==null)o=void 0;else{var c=+s[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(R(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t?.[1]))}catch{}else if(typeof a=="string"&&gd.test(a)){var l=gd.exec(a);if(l==null||l[1]==null||t==null)u=void 0;else{var f=+l[1];u=t[1]+f}}else u=t?.[1];var d=[o,u];if($t(d))return t==null?d:ah(d,t,r)}}}var tn=1e9,bC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},rl,ae=!0,ut="[DecimalError] ",wr=ut+"Invalid argument: ",tl=ut+"Exponent out of range: ",rn=Math.floor,fr=Math.pow,wC=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Je,xe=1e7,ne=7,Pg=9007199254740991,fa=rn(Pg/ne),$={};$.absoluteValue=$.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};$.comparedTo=$.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};$.decimalPlaces=$.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ne;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};$.dividedBy=$.div=function(e){return kt(this,new this.constructor(e))};$.dividedToIntegerBy=$.idiv=function(e){var t=this,r=t.constructor;return ee(kt(t,new r(e),0,1),r.precision)};$.equals=$.eq=function(e){return!this.cmp(e)};$.exponent=function(){return de(this)};$.greaterThan=$.gt=function(e){return this.cmp(e)>0};$.greaterThanOrEqualTo=$.gte=function(e){return this.cmp(e)>=0};$.isInteger=$.isint=function(){return this.e>this.d.length-2};$.isNegative=$.isneg=function(){return this.s<0};$.isPositive=$.ispos=function(){return this.s>0};$.isZero=function(){return this.s===0};$.lessThan=$.lt=function(e){return this.cmp(e)<0};$.lessThanOrEqualTo=$.lte=function(e){return this.cmp(e)<1};$.logarithm=$.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Je))throw Error(ut+"NaN");if(r.s<1)throw Error(ut+(r.s?"NaN":"-Infinity"));return r.eq(Je)?new n(0):(ae=!1,t=kt(Rn(r,a),Rn(e,a),a),ae=!0,ee(t,i))};$.minus=$.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_g(t,e):Sg(t,(e.s=-e.s,e))};$.modulo=$.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ut+"NaN");return r.s?(ae=!1,t=kt(r,e,0,1).times(e),ae=!0,r.minus(t)):ee(new n(r),i)};$.naturalExponential=$.exp=function(){return Eg(this)};$.naturalLogarithm=$.ln=function(){return Rn(this)};$.negated=$.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};$.plus=$.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sg(t,e):_g(t,(e.s=-e.s,e))};$.precision=$.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(wr+e);if(t=de(i)+1,n=i.d.length-1,r=n*ne+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};$.squareRoot=$.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(ut+"NaN")}for(e=de(u),ae=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=wt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=rn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(kt(u,a,o+2)).times(.5),wt(a.d).slice(0,o)===(t=wt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ee(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ae=!0,ee(n,r)};$.times=$.mul=function(e){var t,r,n,i,a,o,u,s,c,l=this,f=l.constructor,d=l.d,v=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,s=d.length,c=v.length,s<c&&(a=d,d=v,v=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+v[n]*d[i-n-1]+t,a[i--]=u%xe|0,t=u/xe|0;a[i]=(a[i]+t)%xe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ae?ee(e,f.precision):e};$.toDecimalPlaces=$.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Et(e,0,tn),t===void 0?t=n.rounding:Et(t,0,8),ee(r,e+de(r)+1,t))};$.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=jr(n,!0):(Et(e,0,tn),t===void 0?t=i.rounding:Et(t,0,8),n=ee(new i(n),e+1,t),r=jr(n,!0,e+1)),r};$.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?jr(i):(Et(e,0,tn),t===void 0?t=a.rounding:Et(t,0,8),n=ee(new a(i),e+de(i)+1,t),r=jr(n.abs(),!1,e+de(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};$.toInteger=$.toint=function(){var e=this,t=e.constructor;return ee(new t(e),de(e)+1,t.rounding)};$.toNumber=function(){return+this};$.toPower=$.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,l=+(e=new s(e));if(!e.s)return new s(Je);if(u=new s(u),!u.s){if(e.s<1)throw Error(ut+"Infinity");return u}if(u.eq(Je))return u;if(n=s.precision,e.eq(Je))return ee(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=l<0?-l:l)<=Pg){for(i=new s(Je),t=Math.ceil(n/ne+4),ae=!1;r%2&&(i=i.times(u),uh(i.d,t)),r=rn(r/2),r!==0;)u=u.times(u),uh(u.d,t);return ae=!0,e.s<0?new s(Je).div(i):ee(i,n)}}else if(a<0)throw Error(ut+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ae=!1,i=e.times(Rn(u,n+c)),ae=!0,i=Eg(i),i.s=a,i};$.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=de(i),n=jr(i,r<=a.toExpNeg||r>=a.toExpPos)):(Et(e,1,tn),t===void 0?t=a.rounding:Et(t,0,8),i=ee(new a(i),e,t),r=de(i),n=jr(i,e<=r||r<=a.toExpNeg,e)),n};$.toSignificantDigits=$.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Et(e,1,tn),t===void 0?t=n.rounding:Et(t,0,8)),ee(new n(r),e,t)};$.toString=$.valueOf=$.val=$.toJSON=$[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=de(e),r=e.constructor;return jr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Sg(e,t){var r,n,i,a,o,u,s,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ae?ee(t,f):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(f/ne),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/xe|0,s[a]%=xe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,ae?ee(t,f):t}function Et(e,t,r){if(e!==~~e||e<t||e>r)throw Error(wr+e)}function wt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ne-n.length,r&&(a+=Xt(r)),a+=n;o=e[t],n=o+"",r=ne-n.length,r&&(a+=Xt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var kt=function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%xe|0,o=a/xe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*xe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,l,f,d,v,h,m,p,y,g,b,x,P,O,E,A,k=n.constructor,N=n.s==i.s?1:-1,j=n.d,M=i.d;if(!n.s)return new k(n);if(!i.s)throw Error(ut+"Division by zero");for(s=n.e-i.e,E=M.length,P=j.length,v=new k(N),h=v.d=[],c=0;M[c]==(j[c]||0);)++c;if(M[c]>(j[c]||0)&&--s,a==null?g=a=k.precision:o?g=a+(de(n)-de(i))+1:g=a,g<0)return new k(0);if(g=g/ne+2|0,c=0,E==1)for(l=0,M=M[0],g++;(c<P||l)&&g--;c++)b=l*xe+(j[c]||0),h[c]=b/M|0,l=b%M|0;else{for(l=xe/(M[0]+1)|0,l>1&&(M=e(M,l),j=e(j,l),E=M.length,P=j.length),x=E,m=j.slice(0,E),p=m.length;p<E;)m[p++]=0;A=M.slice(),A.unshift(0),O=M[0],M[1]>=xe/2&&++O;do l=0,u=t(M,m,E,p),u<0?(y=m[0],E!=p&&(y=y*xe+(m[1]||0)),l=y/O|0,l>1?(l>=xe&&(l=xe-1),f=e(M,l),d=f.length,p=m.length,u=t(f,m,d,p),u==1&&(l--,r(f,E<d?A:M,d))):(l==0&&(u=l=1),f=M.slice()),d=f.length,d<p&&f.unshift(0),r(m,f,p),u==-1&&(p=m.length,u=t(M,m,E,p),u<1&&(l++,r(m,E<p?A:M,p))),p=m.length):u===0&&(l++,m=[0]),h[c++]=l,u&&m[0]?m[p++]=j[x]||0:(m=[j[x]],p=1);while((x++<P||m[0]!==void 0)&&g--)}return h[0]||h.shift(),v.e=s,ee(v,o?a+de(v)+1:a)}}();function Eg(e,t){var r,n,i,a,o,u,s=0,c=0,l=e.constructor,f=l.precision;if(de(e)>16)throw Error(tl+de(e));if(!e.s)return new l(Je);for(ae=!1,u=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(fr(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new l(Je),l.precision=u;;){if(i=ee(i.times(e),u),r=r.times(++s),o=a.plus(kt(i,r,u)),wt(o.d).slice(0,u)===wt(a.d).slice(0,u)){for(;c--;)a=ee(a.times(a),u);return l.precision=f,t==null?(ae=!0,ee(a,f)):a}a=o}}function de(e){for(var t=e.e*ne,r=e.d[0];r>=10;r/=10)t++;return t}function Du(e,t,r){if(t>e.LN10.sd())throw ae=!0,r&&(e.precision=r),Error(ut+"LN10 precision limit exceeded");return ee(new e(e.LN10),t)}function Xt(e){for(var t="";e--;)t+="0";return t}function Rn(e,t){var r,n,i,a,o,u,s,c,l,f=1,d=10,v=e,h=v.d,m=v.constructor,p=m.precision;if(v.s<1)throw Error(ut+(v.s?"NaN":"-Infinity"));if(v.eq(Je))return new m(0);if(t==null?(ae=!1,c=p):c=t,v.eq(10))return t==null&&(ae=!0),Du(m,c);if(c+=d,m.precision=c,r=wt(h),n=r.charAt(0),a=de(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=wt(v.d),n=r.charAt(0),f++;a=de(v),n>1?(v=new m("0."+r),a++):v=new m(n+"."+r.slice(1))}else return s=Du(m,c+2,p).times(a+""),v=Rn(new m(n+"."+r.slice(1)),c-d).plus(s),m.precision=p,t==null?(ae=!0,ee(v,p)):v;for(u=o=v=kt(v.minus(Je),v.plus(Je),c),l=ee(v.times(v),c),i=3;;){if(o=ee(o.times(l),c),s=u.plus(kt(o,new m(i),c)),wt(s.d).slice(0,c)===wt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(Du(m,c+2,p).times(a+""))),u=kt(u,new m(f),c),m.precision=p,t==null?(ae=!0,ee(u,p)):u;u=s,i+=2}}function oh(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=rn(r/ne),e.d=[],n=(r+1)%ne,r<0&&(n+=ne),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ne;n<i;)e.d.push(+t.slice(n,n+=ne));t=t.slice(n),n=ne-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ae&&(e.e>fa||e.e<-fa))throw Error(tl+r)}else e.s=0,e.e=0,e.d=[0];return e}function ee(e,t,r){var n,i,a,o,u,s,c,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ne,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/ne),a=f.length,l>=a)return e;for(c=a=f[l],o=1;a>=10;a/=10)o++;n%=ne,i=n-ne+o}if(r!==void 0&&(a=fr(10,o-i-1),u=c/a%10|0,s=t<0||f[l+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/fr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return s?(a=de(e),f.length=1,t=t-a-1,f[0]=fr(10,(ne-t%ne)%ne),e.e=rn(-t/ne)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=fr(10,ne-n),f[l]=i>0?(c/fr(10,o-i)%fr(10,i)|0)*a:0),s)for(;;)if(l==0){(f[0]+=a)==xe&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=xe)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ae&&(e.e>fa||e.e<-fa))throw Error(tl+de(e));return e}function _g(e,t){var r,n,i,a,o,u,s,c,l,f,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ae?ee(t,v):t;if(s=e.d,f=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(l=o<0,l?(r=s,o=-o,u=f.length):(r=f,n=c,u=s.length),i=Math.max(Math.ceil(v/ne),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=f.length,l=i<u,l&&(u=i),i=0;i<u;i++)if(s[i]!=f[i]){l=s[i]<f[i];break}o=0}for(l&&(r=s,s=f,f=r,t.s=-t.s),u=s.length,i=f.length-u;i>0;--i)s[u++]=0;for(i=f.length;i>o;){if(s[--i]<f[i]){for(a=i;a&&s[--a]===0;)s[a]=xe-1;--s[a],s[i]+=xe}s[i]-=f[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,ae?ee(t,v):t):new d(0)}function jr(e,t,r){var n,i=de(e),a=wt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Xt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Xt(-i-1)+a,r&&(n=r-o)>0&&(a+=Xt(n))):i>=o?(a+=Xt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Xt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Xt(n))),e.s<0?"-"+a:a}function uh(e,t){if(e.length>t)return e.length=t,!0}function Ag(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(wr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return oh(o,a.toString())}else if(typeof a!="string")throw Error(wr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,wC.test(a))oh(o,a);else throw Error(wr+a)}if(i.prototype=$,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Ag,i.config=i.set=xC,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function xC(e){if(!e||typeof e!="object")throw Error(ut+"Object expected");var t,r,n,i=["precision",1,tn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(rn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(wr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(wr+r+": "+n);return this}var rl=Ag(bC);Je=new rl(1);const X=rl;function Cg(e){var t;return e===0?t=1:t=Math.floor(new X(e).abs().log(10).toNumber())+1,t}function jg(e,t,r){for(var n=new X(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Ig=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},Tg=(e,t,r)=>{if(e.lte(0))return new X(0);var n=Cg(e.toNumber()),i=new X(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new X(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?new X(s.toNumber()):new X(Math.ceil(s.toNumber()))},OC=(e,t,r)=>{var n=new X(1),i=new X(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new X(10).pow(Cg(e)-1),i=new X(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new X(Math.floor(e)))}else e===0?i=new X(Math.floor((t-1)/2)):r||(i=new X(Math.floor(e)));for(var o=Math.floor((t-1)/2),u=[],s=0;s<t;s++)u.push(i.add(new X(s-o).mul(n)).toNumber());return u},kg=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new X(0),tickMin:new X(0),tickMax:new X(0)};var o=Tg(new X(r).sub(t).div(n-1),i,a),u;t<=0&&r>=0?u=new X(0):(u=new X(t).add(r).div(2),u=u.sub(new X(u).mod(o)));var s=Math.ceil(u.sub(t).div(o).toNumber()),c=Math.ceil(new X(r).sub(u).div(o).toNumber()),l=s+c+1;return l>n?kg(t,r,n,i,a+1):(l<n&&(c=r>0?c+(n-l):c,s=r>0?s:s+(n-l)),{step:o,tickMin:u.sub(new X(s).mul(o)),tickMax:u.add(new X(c).mul(o))})},PC=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),[u,s]=Ig([r,n]);if(u===-1/0||s===1/0){var c=s===1/0?[u,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),s];return r>n?c.reverse():c}if(u===s)return OC(u,i,a);var{step:l,tickMin:f,tickMax:d}=kg(u,s,o,a,0),v=jg(f,d.add(new X(.1).mul(l)),l);return r>n?v.reverse():v},SC=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,u]=Ig([n,i]);if(o===-1/0||u===1/0)return[n,i];if(o===u)return[o];var s=Math.max(r,2),c=Tg(new X(u).sub(o).div(s-1),a,0),l=[...jg(new X(o),new X(u),c),u];return a===!1&&(l=l.map(f=>Math.round(f))),n>i?l.reverse():l},Mg=e=>e.rootProps.maxBarSize,EC=e=>e.rootProps.barGap,Dg=e=>e.rootProps.barCategoryGap,_C=e=>e.rootProps.barSize,Ja=e=>e.rootProps.stackOffset,Ng=e=>e.rootProps.reverseStackOrder,nl=e=>e.options.chartName,il=e=>e.rootProps.syncId,$g=e=>e.rootProps.syncMethod,al=e=>e.options.eventEmitter,AC=e=>e.rootProps.baseValue,$e={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},sr={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},yt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},eo=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function to(e,t,r){if(r!=="auto")return r;if(e!=null)return Bt(e,t)?"category":"number"}function sh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function da(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sh(Object(r),!0).forEach(function(n){CC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CC(e,t,r){return(t=jC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jC(e){var t=IC(e,"string");return typeof t=="symbol"?t:t+""}function IC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ch={allowDataOverflow:sr.allowDataOverflow,allowDecimals:sr.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:sr.angleAxisId,includeHidden:!1,name:void 0,reversed:sr.reversed,scale:sr.scale,tick:sr.tick,tickCount:void 0,ticks:void 0,type:sr.type,unit:void 0},lh={allowDataOverflow:yt.allowDataOverflow,allowDecimals:yt.allowDecimals,allowDuplicatedCategory:yt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:yt.radiusAxisId,includeHidden:yt.includeHidden,name:void 0,reversed:yt.reversed,scale:yt.scale,tick:yt.tick,tickCount:yt.tickCount,ticks:void 0,type:yt.type,unit:void 0},TC=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},ol=_([TC,by],(e,t)=>{var r;if(e!=null)return e;var n=(r=to(t,"angleAxis",ch.type))!==null&&r!==void 0?r:"category";return da(da({},ch),{},{type:n})}),kC=(e,t)=>e.polarAxis.radiusAxis[t],ul=_([kC,by],(e,t)=>{var r;if(e!=null)return e;var n=(r=to(t,"radiusAxis",lh.type))!==null&&r!==void 0?r:"category";return da(da({},lh),{},{type:n})}),ro=e=>e.polarOptions,sl=_([Ft,qt,Pe],pE),Rg=_([ro,sl],(e,t)=>{if(e!=null)return dt(e.innerRadius,t,0)}),Lg=_([ro,sl],(e,t)=>{if(e!=null)return dt(e.outerRadius,t,t*.8)}),MC=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},zg=_([ro],MC);_([ol,zg],eo);var Bg=_([sl,Rg,Lg],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});_([ul,Bg],eo);var Fg=_([J,ro,Rg,Lg,Ft,qt],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:u,startAngle:s,endAngle:c}=t;return{cx:dt(o,i,i/2),cy:dt(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:c,clockWise:!1}}}),Ee=(e,t)=>t,no=(e,t,r)=>r;function io(e){return e?.id}function qg(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(u=>{var s,c=(s=u.data)!==null&&s!==void 0?s:n;if(!(c==null||c.length===0)){var l=io(u);c.forEach((f,d)=>{var v=a==null||i?d:String(me(f,a,null)),h=me(f,u.dataKey,0),m;o.has(v)?m=o.get(v):m={},Object.assign(m,{[l]:h}),o.set(v,m)})}}),Array.from(o.values())}function ao(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var oo=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function uo(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function DC(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var _e=e=>{var t=J(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},nn=e=>e.tooltip.settings.axisId;function NC(e){if(e in xn)return xn[e]();var t="scale".concat(Bn(e));if(t in xn)return xn[t]()}function fh(e){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(a){function o(){return a.apply(this,arguments)}return o.toString=function(){return a.toString()},o}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var o=i[0],u=i[1];return o<=u?a>=o&&a<=u:a>=u&&a<=o},bandwidth:r?()=>r.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,o)=>{var u=e(a);if(u!=null){if(e.bandwidth&&o!==null&&o!==void 0&&o.position){var s=e.bandwidth();switch(o.position){case"middle":u+=s/2;break;case"end":u+=s;break}}return u}}}}function dh(e,t,r){if(typeof e=="function")return fh(e.copy().domain(t).range(r));if(e!=null){var n=NC(e);if(n!=null)return n.domain(t).range(r),fh(n)}}var $C=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!$t(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];W(a)&&((r===void 0||a<r)&&(r=a),(n===void 0||a>n)&&(n=a))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function vh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function va(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(r),!0).forEach(function(n){RC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RC(e,t,r){return(t=LC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LC(e){var t=zC(e,"string");return typeof t=="symbol"?t:t+""}function zC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ms=[0,"auto"],be={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},Wg=(e,t)=>e.cartesianAxis.xAxis[t],Vt=(e,t)=>{var r=Wg(e,t);return r??be},we={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Ms,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Kn},Ug=(e,t)=>e.cartesianAxis.yAxis[t],Ht=(e,t)=>{var r=Ug(e,t);return r??we},Kg={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},cl=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??Kg},We=(e,t,r)=>{switch(t){case"xAxis":return Vt(e,r);case"yAxis":return Ht(e,r);case"zAxis":return cl(e,r);case"angleAxis":return ol(e,r);case"radiusAxis":return ul(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},BC=(e,t,r)=>{switch(t){case"xAxis":return Vt(e,r);case"yAxis":return Ht(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Qn=(e,t,r)=>{switch(t){case"xAxis":return Vt(e,r);case"yAxis":return Ht(e,r);case"angleAxis":return ol(e,r);case"radiusAxis":return ul(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Vg=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Hg(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var so=e=>e.graphicalItems.cartesianItems,FC=_([Ee,no],Hg),Yg=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Jn=_([so,We,FC],Yg,{memoizeOptions:{resultEqualityCheck:uo}}),Gg=_([Jn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(ao)),Xg=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),qC=_([Jn],Xg),Zg=e=>e.map(t=>t.data).filter(Boolean).flat(1),WC=_([Jn],Zg,{memoizeOptions:{resultEqualityCheck:uo}}),Qg=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},ll=_([WC,el],Qg),Jg=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:me(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:me(i,n)}))):e.map(n=>({value:n})),co=_([ll,We,Jn],Jg);function e0(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Ii(e){if(St(e)||e instanceof Date){var t=Number(e);if(W(t))return t}}function hh(e){if(Array.isArray(e)){var t=[Ii(e[0]),Ii(e[1])];return $t(t)?t:void 0}var r=Ii(e);if(r!=null)return[r,r]}function Rt(e){return e.map(Ii).filter(Le)}function UC(e,t,r){return!r||typeof t!="number"||ft(t)?[]:r.length?Rt(r.flatMap(n=>{var i=me(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!W(a)||!W(o)))return[t-a,t+o]})):[]}var ge=e=>{var t=_e(e),r=nn(e);return Qn(e,t,r)},ei=_([ge],e=>e?.dataKey),KC=_([Gg,el,ge],qg),t0=(e,t,r,n)=>{var i={},a=t.reduce((o,u)=>{if(u.stackId==null)return o;var s=o[u.stackId];return s==null&&(s=[]),s.push(u),o[u.stackId]=s,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[u,s]=o,c=n?[...s].reverse():s,l=c.map(io);return[u,{stackedData:tP(e,l,r),graphicalItems:c}]}))},ha=_([KC,Gg,Ja,Ng],t0),r0=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=oP(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},VC=_([We],e=>e.allowDataOverflow),fl=e=>{var t;if(e==null||!("domain"in e))return Ms;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Rt(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Ms},n0=_([We],fl),i0=_([n0,VC],Og),HC=_([ha,Kt,Ee,i0],r0,{memoizeOptions:{resultEqualityCheck:oo}}),dl=e=>e.errorBars,YC=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>e0(r,n)),pa=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),u=Math.max(...a);return[o,u]}},a0=(e,t,r,n,i)=>{var a,o;if(r.length>0&&e.forEach(u=>{r.forEach(s=>{var c,l,f=(c=n[s.id])===null||c===void 0?void 0:c.filter(y=>e0(i,y)),d=me(u,(l=t.dataKey)!==null&&l!==void 0?l:s.dataKey),v=UC(u,d,f);if(v.length>=2){var h=Math.min(...v),m=Math.max(...v);(a==null||h<a)&&(a=h),(o==null||m>o)&&(o=m)}var p=hh(d);p!=null&&(a=a==null?p[0]:Math.min(a,p[0]),o=o==null?p[1]:Math.max(o,p[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var s=hh(me(u,t.dataKey));s!=null&&(a=a==null?s[0]:Math.min(a,s[0]),o=o==null?s[1]:Math.max(o,s[1]))}),W(a)&&W(o))return[a,o]},GC=_([ll,We,qC,dl,Ee],a0,{memoizeOptions:{resultEqualityCheck:oo}});function XC(e){var{value:t}=e;if(St(t)||t instanceof Date)return t}var ZC=(e,t,r)=>{var n=e.map(XC).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&cm(n))?Ny(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},o0=e=>e.referenceElements.dots,an=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),QC=_([o0,Ee,no],an),u0=e=>e.referenceElements.areas,JC=_([u0,Ee,no],an),s0=e=>e.referenceElements.lines,ej=_([s0,Ee,no],an),c0=(e,t)=>{if(e!=null){var r=Rt(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},tj=_(QC,Ee,c0),l0=(e,t)=>{if(e!=null){var r=Rt(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},rj=_([JC,Ee],l0);function nj(e){var t;if(e.x!=null)return Rt([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Rt(r)}function ij(e){var t;if(e.y!=null)return Rt([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Rt(r)}var f0=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?nj(n):ij(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},aj=_([ej,Ee],f0),oj=_(tj,aj,rj,(e,t,r)=>pa(e,r,t)),d0=(e,t,r,n,i,a,o,u)=>{if(r!=null)return r;var s=o==="vertical"&&u==="xAxis"||o==="horizontal"&&u==="yAxis",c=s?pa(n,a,i):pa(a,i);return gC(t,c,e.allowDataOverflow)},uj=_([We,n0,i0,HC,GC,oj,J,Ee],d0,{memoizeOptions:{resultEqualityCheck:oo}}),sj=[0,1],v0=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:u,type:s}=e,c=Bt(t,a);if(c&&u==null){var l;return Ny(0,(l=r?.length)!==null&&l!==void 0?l:0)}return s==="category"?ZC(n,e,c):i==="expand"?sj:o}},vl=_([We,J,ll,co,Ja,Ee,uj],v0);function cj(e){return e in xn}var h0=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string"){var a="scale".concat(Bn(n));return cj(a)?a:"point"}}},on=_([We,Vg,nl],h0);function hl(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?dh(e.scale,r,n):dh(t,r,n)}var p0=(e,t,r)=>{var n=fl(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&$t(e))return PC(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&$t(e))return SC(e,t.tickCount,t.allowDecimals)}},pl=_([vl,Qn,on],p0),m0=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&$t(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],u=(i=r[0])!==null&&i!==void 0?i:0,s=t[1],c=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,u),Math.max(s,c)]}return t},lj=_([We,vl,pl,Ee],m0),fj=_(co,We,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Rt(e.map(f=>f.value))).sort((f,d)=>f-d),i=n[0],a=n[n.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var u=0;u<n.length-1;u++){var s=n[u],c=n[u+1];if(!(s==null||c==null)){var l=c-s;r=Math.min(r,l)}}return r/o}}),y0=_(fj,J,Dg,Pe,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!W(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=dt(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),dj=(e,t,r)=>{var n=Vt(e,t);return n==null||typeof n.padding!="string"?0:y0(e,"xAxis",t,r,n.padding)},vj=(e,t,r)=>{var n=Ht(e,t);return n==null||typeof n.padding!="string"?0:y0(e,"yAxis",t,r,n.padding)},hj=_(Vt,dj,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),pj=_(Ht,vj,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),mj=_([Pe,hj,qa,Fa,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),yj=_([Pe,J,pj,qa,Fa,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),ti=(e,t,r,n)=>{var i;switch(t){case"xAxis":return mj(e,r,n);case"yAxis":return yj(e,r,n);case"zAxis":return(i=cl(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return zg(e);case"radiusAxis":return Bg(e,r);default:return}},g0=_([We,ti],eo),gj=_([on,lj],$C),lo=_([We,on,gj,g0],hl);_([Jn,dl,Ee],YC);function b0(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var fo=(e,t)=>t,vo=(e,t,r)=>r,bj=_(za,fo,vo,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(b0)),wj=_(Ba,fo,vo,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(b0)),w0=(e,t)=>({width:e.width,height:t.height}),xj=(e,t)=>{var r=typeof t.width=="number"?t.width:Kn;return{width:r,height:e.height}},x0=_(Pe,Vt,w0),Oj=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},Pj=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},Sj=_(qt,Pe,bj,fo,vo,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var s=w0(t,u);o==null&&(o=Oj(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[u.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),Ej=_(Ft,Pe,wj,fo,vo,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var s=xj(t,u);o==null&&(o=Pj(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[u.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),_j=(e,t)=>{var r=Vt(e,t);if(r!=null)return Sj(e,r.orientation,r.mirror)},Aj=_([Pe,Vt,_j,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),Cj=(e,t)=>{var r=Ht(e,t);if(r!=null)return Ej(e,r.orientation,r.mirror)},jj=_([Pe,Ht,Cj,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),O0=_(Pe,Ht,(e,t)=>{var r=typeof t.width=="number"?t.width:Kn;return{width:r,height:e.height}}),ph=(e,t,r)=>{switch(t){case"xAxis":return x0(e,r).width;case"yAxis":return O0(e,r).height;default:return}},P0=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,u=Bt(e,n),s=t.map(c=>c.value);if(o&&u&&a==="category"&&i&&cm(s))return s}},ml=_([J,co,We,Ee],P0),S0=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=Bt(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},yl=_([J,co,Qn,Ee],S0),mh=_([J,BC,on,lo,ml,yl,ti,pl,Ee],(e,t,r,n,i,a,o,u,s)=>{if(t!=null){var c=Bt(e,s);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:s,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:u,range:o,realScaleType:r,scale:n}}}),Ij=(e,t,r,n,i,a,o,u,s)=>{if(!(t==null||n==null)){var c=Bt(e,s),{type:l,ticks:f,tickCount:d}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,h=l==="category"&&n.bandwidth?n.bandwidth()/v:0;h=s==="angleAxis"&&a!=null&&a.length>=2?Ke(a[0]-a[1])*2*h:h;var m=f||i;return m?m.map((p,y)=>{var g=o?o.indexOf(p):p,b=n.map(g);return W(b)?{index:y,coordinate:b+h,value:p,offset:h}:null}).filter(Le):c&&u?u.map((p,y)=>{var g=n.map(p);return W(g)?{coordinate:g+h,value:p,index:y,offset:h}:null}).filter(Le):n.ticks?n.ticks(d).map((p,y)=>{var g=n.map(p);return W(g)?{coordinate:g+h,value:p,index:y,offset:h}:null}).filter(Le):n.domain().map((p,y)=>{var g=n.map(p);return W(g)?{coordinate:g+h,value:o?o[p]:p,index:y,offset:h}:null}).filter(Le)}},E0=_([J,Qn,on,lo,pl,ti,ml,yl,Ee],Ij),Tj=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=Bt(e,o),{tickCount:s}=t,c=0;return c=o==="angleAxis"&&n?.length>=2?Ke(n[0]-n[1])*2*c:c,u&&a?a.map((l,f)=>{var d=r.map(l);return W(d)?{coordinate:d+c,value:l,index:f,offset:c}:null}).filter(Le):r.ticks?r.ticks(s).map((l,f)=>{var d=r.map(l);return W(d)?{coordinate:d+c,value:l,index:f,offset:c}:null}).filter(Le):r.domain().map((l,f)=>{var d=r.map(l);return W(d)?{coordinate:d+c,value:i?i[l]:l,index:f,offset:c}:null}).filter(Le)}},Ir=_([J,Qn,lo,ti,ml,yl,Ee],Tj),Tr=_(We,lo,(e,t)=>{if(!(e==null||t==null))return va(va({},e),{},{scale:t})}),kj=_([We,on,vl,g0],hl),Mj=_((e,t,r)=>cl(e,r),kj,(e,t)=>{if(!(e==null||t==null))return va(va({},e),{},{scale:t})}),Dj=_([J,za,Ba],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),_0=e=>e.options.defaultTooltipEventType,A0=e=>e.options.validateTooltipEventTypes;function C0(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function gl(e,t){var r=_0(e),n=A0(e);return C0(t,r,n)}function Nj(e){return L(t=>gl(t,e))}var j0=(e,t)=>{var r,n=Number(t);if(!(ft(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},$j=e=>e.tooltip.settings,Qt={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Rj={itemInteraction:{click:Qt,hover:Qt},axisInteraction:{click:Qt,hover:Qt},keyboardInteraction:Qt,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},I0=Ye({name:"tooltip",initialState:Rj,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ie()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=lt(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:ie()},removeTooltipEntrySettings:{reducer(e,t){var r=lt(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ie()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Lj,replaceTooltipEntrySettings:zj,removeTooltipEntrySettings:Bj,setTooltipSettingsState:Fj,setActiveMouseOverItemIndex:bl,mouseLeaveItem:T0,mouseLeaveChart:k0,setActiveClickItemIndex:M0,setMouseOverAxisIndex:D0,setMouseClickAxisIndex:qj,setSyncInteraction:Ds,setKeyboardInteraction:Ns}=I0.actions,Wj=I0.reducer;function yh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yh(Object(r),!0).forEach(function(n){Uj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uj(e,t,r){return(t=Kj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kj(e){var t=Vj(e,"string");return typeof t=="symbol"?t:t+""}function Vj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hj(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Yj(e){return e.index!=null}var N0=(e,t,r,n)=>{if(t==null)return Qt;var i=Hj(e,t,r);if(i==null)return Qt;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(Yj(i)){if(a)return xi(xi({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return xi(xi({},Qt),{},{coordinate:i.coordinate})};function Gj(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function Xj(e,t){var r=Gj(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}function Zj(e,t,r){if(r==null||t==null)return!0;var n=me(e,t);return n==null||!$t(r)?!0:Xj(n,r)}var wl=(e,t,r,n)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!W(a))return i;var o=0,u=1/0;t.length>0&&(u=t.length-1);var s=Math.max(o,Math.min(a,u)),c=t[s];return c==null||Zj(c,r,n)?String(s):null},$0=(e,t,r,n,i,a,o)=>{if(a!=null){var u=o[0],s=u?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(r){case"horizontal":return{x:c.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:c.coordinate}}}},R0=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,i==null&&n!=null){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(o=>{var u;return((u=o.settings)===null||u===void 0?void 0:u.graphicalItemId)===i})},L0=e=>e.options.tooltipPayloadSearcher,un=e=>e.tooltip;function gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(r),!0).forEach(function(n){Qj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qj(e,t,r){return(t=Jj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jj(e){var t=eI(e,"string");return typeof t=="symbol"?t:t+""}function eI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tI(e,t){return e??t}var z0=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:u,computedData:s,dataStartIndex:c,dataEndIndex:l}=r,f=[];return e.reduce((d,v)=>{var h,{dataDefinedOnItem:m,settings:p}=v,y=tI(m,u),g=Array.isArray(y)?cy(y,c,l):y,b=(h=p?.dataKey)!==null&&h!==void 0?h:n,x=p?.nameKey,P;if(n&&Array.isArray(g)&&!Array.isArray(g[0])&&o==="axis"?P=lm(g,n,i):P=a(g,t,s,x),Array.isArray(P))P.forEach(E=>{var A=bh(bh({},p),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});d.push(bd({tooltipEntrySettings:A,dataKey:E.dataKey,payload:E.payload,value:me(E.payload,E.dataKey),name:E.name}))});else{var O;d.push(bd({tooltipEntrySettings:p,dataKey:b,payload:P,value:me(P,b),name:(O=me(P,x))!==null&&O!==void 0?O:p?.name}))}return d},f)}},xl=_([ge,Vg,nl],h0),rI=_([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),nI=_([_e,nn],Hg),sn=_([rI,ge,nI],Yg,{memoizeOptions:{resultEqualityCheck:uo}}),iI=_([sn],e=>e.filter(ao)),aI=_([sn],Zg,{memoizeOptions:{resultEqualityCheck:uo}}),cn=_([aI,Kt],Qg),oI=_([iI,Kt,ge],qg),Ol=_([cn,ge,sn],Jg),B0=_([ge],fl),uI=_([ge],e=>e.allowDataOverflow),F0=_([B0,uI],Og),sI=_([sn],e=>e.filter(ao)),cI=_([oI,sI,Ja,Ng],t0),lI=_([cI,Kt,_e,F0],r0),fI=_([sn],Xg),dI=_([cn,ge,fI,dl,_e],a0,{memoizeOptions:{resultEqualityCheck:oo}}),vI=_([o0,_e,nn],an),hI=_([vI,_e],c0),pI=_([u0,_e,nn],an),mI=_([pI,_e],l0),yI=_([s0,_e,nn],an),gI=_([yI,_e],f0),bI=_([hI,gI,mI],pa),wI=_([ge,B0,F0,lI,dI,bI,J,_e],d0),ri=_([ge,J,cn,Ol,Ja,_e,wI],v0),xI=_([ri,ge,xl],p0),OI=_([ge,ri,xI,_e],m0),q0=e=>{var t=_e(e),r=nn(e),n=!1;return ti(e,t,r,n)},W0=_([ge,q0],eo),U0=_([ge,xl,OI,W0],hl),PI=_([J,Ol,ge,_e],P0),SI=_([J,Ol,ge,_e],S0),EI=(e,t,r,n,i,a,o,u)=>{if(t){var{type:s}=t,c=Bt(e,u);if(n){var l=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=s==="category"&&n.bandwidth?n.bandwidth()/l:0;return f=u==="angleAxis"&&i!=null&&i?.length>=2?Ke(i[0]-i[1])*2*f:f,c&&o?o.map((d,v)=>{var h=n.map(d);return W(h)?{coordinate:h+f,value:d,index:v,offset:f}:null}).filter(Le):n.domain().map((d,v)=>{var h=n.map(d);return W(h)?{coordinate:h+f,value:a?a[d]:d,index:v,offset:f}:null}).filter(Le)}}},Yt=_([J,ge,xl,U0,q0,PI,SI,_e],EI),Pl=_([_0,A0,$j],(e,t,r)=>C0(r.shared,e,t)),K0=e=>e.tooltip.settings.trigger,Sl=e=>e.tooltip.settings.defaultIndex,ni=_([un,Pl,K0,Sl],N0),kr=_([ni,cn,ei,ri],wl),V0=_([Yt,kr],j0),H0=_([ni],e=>{if(e)return e.dataKey});_([ni],e=>{if(e)return e.graphicalItemId});var Y0=_([un,Pl,K0,Sl],R0),_I=_([Ft,qt,J,Pe,Yt,Sl,Y0],$0),AI=_([ni,_I],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),CI=_([ni],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),jI=_([Y0,kr,Kt,ei,V0,L0,Pl],z0),II=_([jI],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function wh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wh(Object(r),!0).forEach(function(n){TI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TI(e,t,r){return(t=kI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kI(e){var t=MI(e,"string");return typeof t=="symbol"?t:t+""}function MI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DI=()=>L(ge),NI=()=>{var e=DI(),t=L(Yt),r=L(U0);return Cn(!e||!r?void 0:xh(xh({},e),{},{scale:r}),t)};function Oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oh(Object(r),!0).forEach(function(n){$I(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $I(e,t,r){return(t=RI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RI(e){var t=LI(e,"string");return typeof t=="symbol"?t:t+""}function LI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zI=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:i.coordinate}}return{x:0,y:0}},BI=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return qr(qr(qr({},n),Te(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:s}=n;return qr(qr(qr({},n),Te(n.cx,n.cy,u,s)),{},{angle:s,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function FI(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var G0=(e,t,r,n,i)=>{var a,o=(a=t?.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<o;u++){var s,c,l,f,d,v=u>0?(s=r[u-1])===null||s===void 0?void 0:s.coordinate:(c=r[o-1])===null||c===void 0?void 0:c.coordinate,h=(l=r[u])===null||l===void 0?void 0:l.coordinate,m=u>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[u+1])===null||d===void 0?void 0:d.coordinate,p=void 0;if(!(v==null||h==null||m==null))if(Ke(h-v)!==Ke(m-h)){var y=[];if(Ke(m-h)===Ke(i[1]-i[0])){p=m;var g=h+i[1]-i[0];y[0]=Math.min(g,(g+v)/2),y[1]=Math.max(g,(g+v)/2)}else{p=v;var b=m+i[1]-i[0];y[0]=Math.min(h,(b+h)/2),y[1]=Math.max(h,(b+h)/2)}var x=[Math.min(h,(p+h)/2),Math.max(h,(p+h)/2)];if(e>x[0]&&e<=x[1]||e>=y[0]&&e<=y[1]){var P;return(P=r[u])===null||P===void 0?void 0:P.index}}else{var O=Math.min(v,m),E=Math.max(v,m);if(e>(O+h)/2&&e<=(E+h)/2){var A;return(A=r[u])===null||A===void 0?void 0:A.index}}}else if(t)for(var k=0;k<o;k++){var N=t[k];if(N!=null){var j=t[k+1],M=t[k-1];if(k===0&&j!=null&&e<=(N.coordinate+j.coordinate)/2||k===o-1&&M!=null&&e>(N.coordinate+M.coordinate)/2||k>0&&k<o-1&&M!=null&&j!=null&&e>(N.coordinate+M.coordinate)/2&&e<=(N.coordinate+j.coordinate)/2)return N.index}}return-1},X0=()=>L(nl),El=(e,t)=>t,Z0=(e,t,r)=>r,_l=(e,t,r,n)=>n,qI=_(Yt,e=>Ia(e,t=>t.coordinate)),Al=_([un,El,Z0,_l],N0),Cl=_([Al,cn,ei,ri],wl),WI=(e,t,r)=>{if(t!=null){var n=un(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},Q0=_([un,El,Z0,_l],R0),ma=_([Ft,qt,J,Pe,Yt,_l,Q0],$0),UI=_([Al,ma],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),J0=_([Yt,Cl],j0),KI=_([Q0,Cl,Kt,ei,J0,L0,El],z0),VI=_([Al,Cl],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),HI=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&FI(e,o)){var u=uP(e,t),s=G0(u,a,i,r,n),c=zI(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},YI=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var u=wE(e,r);if(u){var s=sP(u,t),c=G0(s,o,a,n,i),l=BI(t,a,c,u);return{activeIndex:String(c),activeCoordinate:l}}}},GI=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?HI(e,t,n,i,a,o,u):YI(e,t,r,n,i,a,o)},XI=_(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),ZI=_(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values($e)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:DC}});function Ph(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ph(Object(r),!0).forEach(function(n){QI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ph(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QI(e,t,r){return(t=JI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JI(e){var t=eT(e,"string");return typeof t=="symbol"?t:t+""}function eT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tT={},rT={zIndexMap:Object.values($e).reduce((e,t)=>Sh(Sh({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),tT)},nT=new Set(Object.values($e));function iT(e){return nT.has(e)}var eb=Ye({name:"zIndex",initialState:rT,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ie()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!iT(r)&&delete e.zIndexMap[r])},prepare:ie()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:ie()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:ie()}}}),{registerZIndexPortal:aT,unregisterZIndexPortal:oT,registerZIndexPortalElement:uT,unregisterZIndexPortalElement:sT}=eb.actions,cT=eb.reducer;function _t(e){var{zIndex:t,children:r}=e,n=FP(),i=n&&t!==void 0&&t!==0,a=qe(),o=oe();S.useLayoutEffect(()=>i?(o(aT({zIndex:t})),()=>{o(oT({zIndex:t}))}):Dr,[o,t,i]);var u=L(s=>XI(s,t,a));return i?u?Lp.createPortal(r,u):null:r}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(null,arguments)}function Eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){lT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lT(e,t,r){return(t=fT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fT(e){var t=dT(e,"string");return typeof t=="symbol"?t:t+""}function dT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vT(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return S.isValidElement(t)?S.cloneElement(t,n):S.createElement(r,n)}function hT(e){var t,{coordinate:r,payload:n,index:i,offset:a,tooltipAxisBandSize:o,layout:u,cursor:s,tooltipEventType:c,chartName:l}=e,f=r,d=n,v=i;if(!s||!f||l!=="ScatterChart"&&c!=="axis")return null;var h,m,p;if(l==="ScatterChart")h=f,m=MS,p=$e.cursorLine;else if(l==="BarChart")h=DS(u,f,a,o),m=Pc,p=$e.cursorRectangle;else if(u==="radial"&&dm(f)){var{cx:y,cy:g,radius:b,startAngle:x,endAngle:P}=ky(f);h={cx:y,cy:g,startAngle:x,endAngle:P,innerRadius:b,outerRadius:b},m=Dy,p=$e.cursorLine}else h={points:SE(u,f,a)},m=Oc,p=$e.cursorLine;var O=typeof s=="object"&&"className"in s?s.className:void 0,E=Oi(Oi(Oi(Oi({stroke:"#ccc",pointerEvents:"none"},a),h),Ea(s)),{},{payload:d,payloadIndex:v,className:re("recharts-tooltip-cursor",O)});return w.createElement(_t,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:p},w.createElement(vT,{cursor:s,cursorComp:m,cursorProps:E}))}function pT(e){var t=NI(),r=gy(),n=Nr(),i=X0();return t==null||r==null||n==null||i==null?null:w.createElement(hT,$s({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var jl=S.createContext(null),mT=()=>S.useContext(jl),Nu={exports:{}},_h;function yT(){return _h||(_h=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,l){this.fn=s,this.context=c,this.once=l||!1}function a(s,c,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var v=new i(l,f||s,d),h=r?r+c:c;return s._events[h]?s._events[h].fn?s._events[h]=[s._events[h],v]:s._events[h].push(v):(s._events[h]=v,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],l,f;if(this._eventsCount===0)return c;for(f in l=this._events)t.call(l,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},u.prototype.listeners=function(c){var l=r?r+c:c,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,v=f.length,h=new Array(v);d<v;d++)h[d]=f[d].fn;return h},u.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},u.prototype.emit=function(c,l,f,d,v,h){var m=r?r+c:c;if(!this._events[m])return!1;var p=this._events[m],y=arguments.length,g,b;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),y){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,l),!0;case 3:return p.fn.call(p.context,l,f),!0;case 4:return p.fn.call(p.context,l,f,d),!0;case 5:return p.fn.call(p.context,l,f,d,v),!0;case 6:return p.fn.call(p.context,l,f,d,v,h),!0}for(b=1,g=new Array(y-1);b<y;b++)g[b-1]=arguments[b];p.fn.apply(p.context,g)}else{var x=p.length,P;for(b=0;b<x;b++)switch(p[b].once&&this.removeListener(c,p[b].fn,void 0,!0),y){case 1:p[b].fn.call(p[b].context);break;case 2:p[b].fn.call(p[b].context,l);break;case 3:p[b].fn.call(p[b].context,l,f);break;case 4:p[b].fn.call(p[b].context,l,f,d);break;default:if(!g)for(P=1,g=new Array(y-1);P<y;P++)g[P-1]=arguments[P];p[b].fn.apply(p[b].context,g)}}return!0},u.prototype.on=function(c,l,f){return a(this,c,l,f,!1)},u.prototype.once=function(c,l,f){return a(this,c,l,f,!0)},u.prototype.removeListener=function(c,l,f,d){var v=r?r+c:c;if(!this._events[v])return this;if(!l)return o(this,v),this;var h=this._events[v];if(h.fn)h.fn===l&&(!d||h.once)&&(!f||h.context===f)&&o(this,v);else{for(var m=0,p=[],y=h.length;m<y;m++)(h[m].fn!==l||d&&!h[m].once||f&&h[m].context!==f)&&p.push(h[m]);p.length?this._events[v]=p.length===1?p[0]:p:o(this,v)}return this},u.prototype.removeAllListeners=function(c){var l;return c?(l=r?r+c:c,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(Nu)),Nu.exports}var gT=yT();const bT=zt(gT);var Ln=new bT,Rs="recharts.syncEvent.tooltip",Ah="recharts.syncEvent.brush",wT=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!ft(r))return e[r]}},xT={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},tb=Ye({name:"options",initialState:xT,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),OT=tb.reducer,{createEventEmitter:PT}=tb.actions;function ST(e){return e.tooltip.syncInteraction}var ET={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},rb=Ye({name:"chartData",initialState:ET,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:Ls,setDataStartEndIndexes:_T,setComputedData:AT}=rb.actions,CT=rb.reducer,jT=["x","y"];function Ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ch(Object(r),!0).forEach(function(n){IT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ch(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IT(e,t,r){return(t=TT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TT(e){var t=kT(e,"string");return typeof t=="symbol"?t:t+""}function kT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MT(e,t){if(e==null)return{};var r,n,i=DT(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function DT(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function NT(){var e=L(il),t=L(al),r=oe(),n=L($g),i=L(Yt),a=Nr(),o=Vn(),u=L(s=>s.rootProps.className);S.useEffect(()=>{if(e==null)return Dr;var s=(c,l,f)=>{if(t!==f&&e===c){if(n==="index"){var d;if(o&&l!==null&&l!==void 0&&(d=l.payload)!==null&&d!==void 0&&d.coordinate&&l.payload.sourceViewBox){var v=l.payload.coordinate,{x:h,y:m}=v,p=MT(v,jT),{x:y,y:g,width:b,height:x}=l.payload.sourceViewBox,P=Wr(Wr({},p),{},{x:o.x+(b?(h-y)/b:0)*o.width,y:o.y+(x?(m-g)/x:0)*o.height});r(Wr(Wr({},l),{},{payload:Wr(Wr({},l.payload),{},{coordinate:P})}))}else r(l);return}if(i!=null){var O;if(typeof n=="function"){var E={activeTooltipIndex:l.payload.index==null?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:l.payload.index==null?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},A=n(i,E);O=i[A]}else n==="value"&&(O=i.find(U=>String(U.value)===l.payload.label));var{coordinate:k}=l.payload;if(O==null||l.payload.active===!1||k==null||o==null){r(Ds({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:N,y:j}=k,M=Math.min(N,o.x+o.width),C=Math.min(j,o.y+o.height),z={x:a==="horizontal"?O.coordinate:M,y:a==="horizontal"?C:O.coordinate},V=Ds({active:l.payload.active,coordinate:z,dataKey:l.payload.dataKey,index:String(O.index),label:l.payload.label,sourceViewBox:l.payload.sourceViewBox,graphicalItemId:l.payload.graphicalItemId});r(V)}}};return Ln.on(Rs,s),()=>{Ln.off(Rs,s)}},[u,r,t,e,n,i,a,o])}function $T(){var e=L(il),t=L(al),r=oe();S.useEffect(()=>{if(e==null)return Dr;var n=(i,a,o)=>{t!==o&&e===i&&r(_T(a))};return Ln.on(Ah,n),()=>{Ln.off(Ah,n)}},[r,t,e])}function RT(){var e=oe();S.useEffect(()=>{e(PT())},[e]),NT(),$T()}function LT(e,t,r,n,i,a){var o=L(v=>WI(v,e,t)),u=L(al),s=L(il),c=L($g),l=L(ST),f=l?.active,d=Vn();S.useEffect(()=>{if(!f&&s!=null&&u!=null){var v=Ds({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:d,graphicalItemId:void 0});Ln.emit(Rs,s,v,u)}},[f,r,o,i,n,u,s,c,a,d])}function jh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ih(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jh(Object(r),!0).forEach(function(n){zT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zT(e,t,r){return(t=BT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BT(e){var t=FT(e,"string");return typeof t=="symbol"?t:t+""}function FT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qT(e){return e.dataKey}function WT(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(dS,t)}var Th=[],UT={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function KT(e){var t,r,n=He(e,UT),{active:i,allowEscapeViewBox:a,animationDuration:o,animationEasing:u,content:s,filterNull:c,isAnimationActive:l,offset:f,payloadUniqBy:d,position:v,reverseDirection:h,useTranslate3d:m,wrapperStyle:p,cursor:y,shared:g,trigger:b,defaultIndex:x,portal:P,axisId:O}=n,E=oe(),A=typeof x=="number"?String(x):x;S.useEffect(()=>{E(Fj({shared:g,trigger:b,axisId:O,active:i,defaultIndex:A}))},[E,g,b,O,i,A]);var k=Vn(),N=Ay(),j=Nj(g),{activeIndex:M,isActive:C}=(t=L(Me=>VI(Me,j,b,A)))!==null&&t!==void 0?t:{},z=L(Me=>KI(Me,j,b,A)),V=L(Me=>J0(Me,j,b,A)),U=L(Me=>UI(Me,j,b,A)),B=z,Y=mT(),F=(r=i??C)!==null&&r!==void 0?r:!1,[ve,fe]=Cm([B,F]),Ae=j==="axis"?V:void 0;LT(j,b,U,Ae,M,F);var Ge=P??Y;if(Ge==null||k==null||j==null)return null;var ke=B??Th;F||(ke=Th),c&&ke.length&&(ke=Om(ke.filter(Me=>Me.value!=null&&(Me.hide!==!0||n.includeHidden)),d,qT));var At=ke.length>0,or=w.createElement(bS,{allowEscapeViewBox:a,animationDuration:o,animationEasing:u,isAnimationActive:l,active:F,coordinate:U,hasPayload:At,offset:f,position:v,reverseDirection:h,useTranslate3d:m,viewBox:k,wrapperStyle:p,lastBoundingBox:ve,innerRef:fe,hasPortalFromProps:!!P},WT(s,Ih(Ih({},n),{},{payload:ke,label:Ae,active:F,activeIndex:M,coordinate:U,accessibilityLayer:N})));return w.createElement(w.Fragment,null,Lp.createPortal(or,Ge),F&&w.createElement(pT,{cursor:y,tooltipEventType:j,coordinate:U,payload:ke,index:M}))}var Il=e=>null;Il.displayName="Cell";function VT(e,t,r){return(t=HT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HT(e){var t=YT(e,"string");return typeof t=="symbol"?t:t+""}function YT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class GT{constructor(t){VT(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function kh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kh(Object(r),!0).forEach(function(n){ZT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZT(e,t,r){return(t=QT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QT(e){var t=JT(e,"string");return typeof t=="symbol"?t:t+""}function JT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ek={cacheSize:2e3,enableCache:!0},nb=XT({},ek),Mh=new GT(nb.cacheSize),tk={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Dh="recharts_measurement_span";function rk(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(u)}var Nh=(e,t)=>{try{var r=document.getElementById(Dh);r||(r=document.createElement("span"),r.setAttribute("id",Dh),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,tk,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Pn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Yn.isSsr)return{width:0,height:0};if(!nb.enableCache)return Nh(t,r);var n=rk(t,r),i=Mh.get(n);if(i)return i;var a=Nh(t,r);return Mh.set(n,a),a},ib;function nk(e,t,r){return(t=ik(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(e){var t=ak(e,"string");return typeof t=="symbol"?t:t+""}function ak(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $h=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Rh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ok=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,uk=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,sk={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ck=["cm","mm","pt","pc","in","Q","px"];function lk(e){return ck.includes(e)}var Kr="NaN";function fk(e,t){return e*sk[t]}class Ie{static parse(t){var r,[,n,i]=(r=uk.exec(t))!==null&&r!==void 0?r:[];return n==null?Ie.NaN:new Ie(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,ft(t)&&(this.unit=""),r!==""&&!ok.test(r)&&(this.num=NaN,this.unit=""),lk(r)&&(this.num=fk(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Ie(NaN,""):new Ie(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Ie(NaN,""):new Ie(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ie(NaN,""):new Ie(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ie(NaN,""):new Ie(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return ft(this.num)}}ib=Ie;nk(Ie,"NaN",new ib(NaN,""));function ab(e){if(e==null||e.includes(Kr))return Kr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=$h.exec(t))!==null&&r!==void 0?r:[],o=Ie.parse(n??""),u=Ie.parse(a??""),s=i==="*"?o.multiply(u):o.divide(u);if(s.isNaN())return Kr;t=t.replace($h,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,l,f,d]=(c=Rh.exec(t))!==null&&c!==void 0?c:[],v=Ie.parse(l??""),h=Ie.parse(d??""),m=f==="+"?v.add(h):v.subtract(h);if(m.isNaN())return Kr;t=t.replace(Rh,m.toString())}return t}var Lh=/\(([^()]*)\)/;function dk(e){for(var t=e,r;(r=Lh.exec(t))!=null;){var[,n]=r;t=t.replace(Lh,ab(n))}return t}function vk(e){var t=e.replace(/\s+/g,"");return t=dk(t),t=ab(t),t}function hk(e){try{return vk(e)}catch{return Kr}}function $u(e){var t=hk(e.slice(5,-1));return t===Kr?"":t}var pk=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],mk=["dx","dy","angle","className","breakAll"];function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zs.apply(null,arguments)}function zh(e,t){if(e==null)return{};var r,n,i=yk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ob=/[ \f\n\r\t\v\u2028\u2029]+/,ub=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];le(t)||(r?i=t.toString().split(""):i=t.toString().split(ob));var a=i.map(u=>({word:u,width:Pn(u,n).width})),o=r?0:Pn(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function gk(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var sb=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:u}=a,s=i[i.length-1];if(s&&u!=null&&(t==null||n||s.width+u+r<Number(t)))s.words.push(o),s.width+=u+r;else{var c={words:[o],width:u};i.push(c)}return i},[]),cb=e=>e.reduce((t,r)=>t.width>r.width?t:r),bk="…",Bh=(e,t,r,n,i,a,o,u)=>{var s=e.slice(0,t),c=ub({breakAll:r,style:n,children:s+bk});if(!c)return[!1,[]];var l=sb(c.wordsWithComputedWidth,a,o,u),f=l.length>i||cb(l).width>Number(a);return[f,l]},wk=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:s}=e,c=R(a),l=String(o),f=sb(t,n,r,i);if(!c||i)return f;var d=f.length>a||cb(f).width>Number(n);if(!d)return f;for(var v=0,h=l.length-1,m=0,p;v<=h&&m<=l.length-1;){var y=Math.floor((v+h)/2),g=y-1,[b,x]=Bh(l,g,s,u,a,n,r,i),[P]=Bh(l,y,s,u,a,n,r,i);if(!b&&!P&&(v=y+1),b&&P&&(h=y-1),!b&&P){p=x;break}m++}return p||f},Fh=e=>{var t=le(e)?[]:e.toString().split(ob);return[{words:t,width:void 0}]},xk=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Yn.isSsr){var u,s,c=ub({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:l,spaceWidth:f}=c;u=l,s=f}else return Fh(n);return wk({breakAll:a,children:n,maxLines:o,style:i},u,s,t,!!r)}return Fh(n)},lb="#808080",Ok={angle:0,breakAll:!1,capHeight:"0.71em",fill:lb,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Tl=S.forwardRef((e,t)=>{var r=He(e,Ok),{x:n,y:i,lineHeight:a,capHeight:o,fill:u,scaleToFit:s,textAnchor:c,verticalAnchor:l}=r,f=zh(r,pk),d=S.useMemo(()=>xk({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:s,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,s,f.style,f.width]),{dx:v,dy:h,angle:m,className:p,breakAll:y}=f,g=zh(f,mk);if(!St(n)||!St(i)||d.length===0)return null;var b=Number(n)+(R(v)?v:0),x=Number(i)+(R(h)?h:0);if(!W(b)||!W(x))return null;var P;switch(l){case"start":P=$u("calc(".concat(o,")"));break;case"middle":P=$u("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:P=$u("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[],E=d[0];if(s&&E!=null){var A=E.width,{width:k}=f;O.push("scale(".concat(R(k)&&R(A)?k/A:1,")"))}return m&&O.push("rotate(".concat(m,", ").concat(b,", ").concat(x,")")),O.length&&(g.transform=O.join(" ")),w.createElement("text",zs({},Be(g),{ref:t,x:b,y:x,className:re("recharts-text",p),textAnchor:c,fill:u.includes("url")?lb:u}),d.map((N,j)=>{var M=N.words.join(y?"":" ");return w.createElement("tspan",{x:b,dy:j===0?P:a,key:"".concat(M,"-").concat(j)},M)}))});Tl.displayName="Text";function qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qh(Object(r),!0).forEach(function(n){Pk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pk(e,t,r){return(t=Sk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=Ek(e,"string");return typeof t=="symbol"?t:t+""}function Ek(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _k=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:u,upperWidth:s,lowerWidth:c}=mc(t),l=a,f=a+(s-c)/2,d=(l+f)/2,v=(s+c)/2,h=l+s/2,m=u>=0?1:-1,p=m*n,y=m>0?"end":"start",g=m>0?"start":"end",b=s>=0?1:-1,x=b*n,P=b>0?"end":"start",O=b>0?"start":"end",E=i;if(r==="top"){var A={x:l+s/2,y:o-p,horizontalAnchor:"middle",verticalAnchor:y};return E&&(A.height=Math.max(o-E.y,0),A.width=s),A}if(r==="bottom"){var k={x:f+c/2,y:o+u+p,horizontalAnchor:"middle",verticalAnchor:g};return E&&(k.height=Math.max(E.y+E.height-(o+u),0),k.width=c),k}if(r==="left"){var N={x:d-x,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"};return E&&(N.width=Math.max(N.x-E.x,0),N.height=u),N}if(r==="right"){var j={x:d+v+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(j.width=Math.max(E.x+E.width-j.x,0),j.height=u),j}var M=E?{width:v,height:u}:{};return r==="insideLeft"?gt({x:d+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"},M):r==="insideRight"?gt({x:d+v-x,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"},M):r==="insideTop"?gt({x:l+s/2,y:o+p,horizontalAnchor:"middle",verticalAnchor:g},M):r==="insideBottom"?gt({x:f+c/2,y:o+u-p,horizontalAnchor:"middle",verticalAnchor:y},M):r==="insideTopLeft"?gt({x:l+x,y:o+p,horizontalAnchor:O,verticalAnchor:g},M):r==="insideTopRight"?gt({x:l+s-x,y:o+p,horizontalAnchor:P,verticalAnchor:g},M):r==="insideBottomLeft"?gt({x:f+x,y:o+u-p,horizontalAnchor:O,verticalAnchor:y},M):r==="insideBottomRight"?gt({x:f+c-x,y:o+u-p,horizontalAnchor:P,verticalAnchor:y},M):r&&typeof r=="object"&&(R(r.x)||Pr(r.x))&&(R(r.y)||Pr(r.y))?gt({x:a+dt(r.x,v),y:o+dt(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},M):gt({x:h,y:o+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},M)},Ak=["labelRef"],Ck=["content"];function Wh(e,t){if(e==null)return{};var r,n,i=jk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Uh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(r),!0).forEach(function(n){Ik(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ik(e,t,r){return(t=Tk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tk(e){var t=kk(e,"string");return typeof t=="symbol"?t:t+""}function kk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jt.apply(null,arguments)}var fb=S.createContext(null),Mk=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:u}=e,s=S.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return w.createElement(fb.Provider,{value:s},u)},db=()=>{var e=S.useContext(fb),t=Vn();return e||(t?mc(t):void 0)},Dk=S.createContext(null),Nk=()=>{var e=S.useContext(Dk),t=L(Fg);return e||t},$k=e=>{var{value:t,formatter:r}=e,n=le(e.children)?t:e.children;return typeof r=="function"?r(n):n},kl=e=>e!=null&&typeof e=="function",Rk=(e,t)=>{var r=Ke(t-e),n=Math.min(Math.abs(t-e),360);return r*n},Lk=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:u,cy:s,innerRadius:c,outerRadius:l,startAngle:f,endAngle:d,clockWise:v}=i,h=(c+l)/2,m=Rk(f,d),p=m>=0?1:-1,y,g;switch(t){case"insideStart":y=f+p*a,g=v;break;case"insideEnd":y=d-p*a,g=!v;break;case"end":y=d+p*a,g=v;break;default:throw new Error("Unsupported position ".concat(t))}g=m<=0?g:!g;var b=Te(u,s,h,y),x=Te(u,s,h,y+(g?1:-1)*359),P="M".concat(b.x,",").concat(b.y,`
|
|
103
|
+
A`).concat(h,",").concat(h,",0,1,").concat(g?0:1,`,
|
|
104
|
+
`).concat(x.x,",").concat(x.y),O=le(e.id)?Sn("recharts-radial-line-"):e.id;return w.createElement("text",jt({},n,{dominantBaseline:"central",className:re("recharts-radial-bar-label",o)}),w.createElement("defs",null,w.createElement("path",{id:O,d:P})),w.createElement("textPath",{xlinkHref:"#".concat(O)},r))},zk=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:s}=e,c=(u+s)/2;if(r==="outside"){var{x:l,y:f}=Te(n,i,o+t,c);return{x:l,y:f,textAnchor:l>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:v,y:h}=Te(n,i,d,c);return{x:v,y:h,textAnchor:"middle",verticalAnchor:"middle"}},Ti=e=>e!=null&&"cx"in e&&R(e.cx),Bk={angle:0,offset:5,zIndex:$e.label,position:"middle",textBreakAll:!1};function Fk(e){if(!Ti(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=n*2;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}function Zt(e){var t=He(e,Bk),{viewBox:r,parentViewBox:n,position:i,value:a,children:o,content:u,className:s="",textBreakAll:c,labelRef:l}=t,f=Nk(),d=db(),v=i==="center"?d:f??d,h,m,p;r==null?h=v:Ti(r)?h=r:h=mc(r);var y=Fk(h);if(!h||le(a)&&le(o)&&!S.isValidElement(u)&&typeof u!="function")return null;var g=On(On({},t),{},{viewBox:h});if(S.isValidElement(u)){var{labelRef:b}=g,x=Wh(g,Ak);return S.cloneElement(u,x)}if(typeof u=="function"){var{content:P}=g,O=Wh(g,Ck);if(m=S.createElement(u,O),S.isValidElement(m))return m}else m=$k(t);var E=Be(t);if(Ti(h)){if(i==="insideStart"||i==="insideEnd"||i==="end")return Lk(t,i,m,E,h);p=zk(h,t.offset,t.position)}else{if(!y)return null;var A=_k({viewBox:y,position:i,offset:t.offset,parentViewBox:Ti(n)?void 0:n});p=On(On({x:A.x,y:A.y,textAnchor:A.horizontalAnchor,verticalAnchor:A.verticalAnchor},A.width!==void 0?{width:A.width}:{}),A.height!==void 0?{height:A.height}:{})}return w.createElement(_t,{zIndex:t.zIndex},w.createElement(Tl,jt({ref:l,className:re("recharts-label",s)},E,p,{textAnchor:gk(E.textAnchor)?E.textAnchor:p.textAnchor,breakAll:c}),m))}Zt.displayName="Label";var qk=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?w.createElement(Zt,jt({key:"label-implicit"},n)):St(e)?w.createElement(Zt,jt({key:"label-implicit",value:e},n)):S.isValidElement(e)?e.type===Zt?S.cloneElement(e,On({key:"label-implicit"},n)):w.createElement(Zt,jt({key:"label-implicit",content:e},n)):kl(e)?w.createElement(Zt,jt({key:"label-implicit",content:e},n)):e&&typeof e=="object"?w.createElement(Zt,jt({},e,{key:"label-implicit"},n)):null};function Wk(e){var{label:t,labelRef:r}=e,n=db();return qk(t,n,r)||null}var Ru={},Lu={},Kh;function Uk(){return Kh||(Kh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t}(Lu)),Lu}var zu={},Vh;function Kk(){return Vh||(Vh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t}(zu)),zu}var Hh;function Vk(){return Hh||(Hh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Uk(),r=Kk(),n=ic();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i}(Ru)),Ru}var Bu,Yh;function Hk(){return Yh||(Yh=1,Bu=Vk().last),Bu}var Yk=Hk();const Gk=zt(Yk);var Xk=["valueAccessor"],Zk=["dataKey","clockWise","id","textBreakAll","zIndex"];function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ya.apply(null,arguments)}function Gh(e,t){if(e==null)return{};var r,n,i=Qk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Qk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Jk=e=>Array.isArray(e.value)?Gk(e.value):e.value,vb=S.createContext(void 0),hb=vb.Provider,pb=S.createContext(void 0);pb.Provider;function eM(){return S.useContext(vb)}function tM(){return S.useContext(pb)}function ki(e){var{valueAccessor:t=Jk}=e,r=Gh(e,Xk),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:u}=r,s=Gh(r,Zk),c=eM(),l=tM(),f=c||l;return!f||!f.length?null:w.createElement(_t,{zIndex:u??$e.label},w.createElement(Pt,{className:"recharts-label-list"},f.map((d,v)=>{var h,m=le(n)?t(d,v):me(d.payload,n),p=le(a)?{}:{id:"".concat(a,"-").concat(v)};return w.createElement(Zt,ya({key:"label-".concat(v)},Be(d),s,p,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:o,viewBox:d.viewBox,index:v,zIndex:0}))})))}ki.displayName="LabelList";function mb(e){var{label:t}=e;return t?t===!0?w.createElement(ki,{key:"labelList-implicit"}):w.isValidElement(t)||kl(t)?w.createElement(ki,{key:"labelList-implicit",content:t}):typeof t=="object"?w.createElement(ki,ya({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var rM={radiusAxis:{},angleAxis:{}},yb=Ye({name:"polarAxis",initialState:rM,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:$2,removeRadiusAxis:R2,addAngleAxis:L2,removeAngleAxis:z2}=yb.actions,nM=yb.reducer;function iM(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var Pi={exports:{}},Z={};/** @license React v17.0.2
|
|
105
|
+
* react-is.production.min.js
|
|
106
|
+
*
|
|
107
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the MIT license found in the
|
|
110
|
+
* LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/var Xh;function aM(){if(Xh)return Z;Xh=1;var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,s=60113,c=60120,l=60115,f=60116,d=60121,v=60122,h=60117,m=60129,p=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),i=y("react.profiler"),a=y("react.provider"),o=y("react.context"),u=y("react.forward_ref"),s=y("react.suspense"),c=y("react.suspense_list"),l=y("react.memo"),f=y("react.lazy"),d=y("react.block"),v=y("react.server.block"),h=y("react.fundamental"),m=y("react.debug_trace_mode"),p=y("react.legacy_hidden")}function g(C){if(typeof C=="object"&&C!==null){var z=C.$$typeof;switch(z){case e:switch(C=C.type,C){case r:case i:case n:case s:case c:return C;default:switch(C=C&&C.$$typeof,C){case o:case u:case f:case l:case a:return C;default:return z}}case t:return z}}}var b=a,x=e,P=u,O=r,E=f,A=l,k=t,N=i,j=n,M=s;return Z.ContextConsumer=o,Z.ContextProvider=b,Z.Element=x,Z.ForwardRef=P,Z.Fragment=O,Z.Lazy=E,Z.Memo=A,Z.Portal=k,Z.Profiler=N,Z.StrictMode=j,Z.Suspense=M,Z.isAsyncMode=function(){return!1},Z.isConcurrentMode=function(){return!1},Z.isContextConsumer=function(C){return g(C)===o},Z.isContextProvider=function(C){return g(C)===a},Z.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},Z.isForwardRef=function(C){return g(C)===u},Z.isFragment=function(C){return g(C)===r},Z.isLazy=function(C){return g(C)===f},Z.isMemo=function(C){return g(C)===l},Z.isPortal=function(C){return g(C)===t},Z.isProfiler=function(C){return g(C)===i},Z.isStrictMode=function(C){return g(C)===n},Z.isSuspense=function(C){return g(C)===s},Z.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===i||C===m||C===n||C===s||C===c||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===f||C.$$typeof===l||C.$$typeof===a||C.$$typeof===o||C.$$typeof===u||C.$$typeof===h||C.$$typeof===d||C[0]===v)},Z.typeOf=g,Z}var Q={};/** @license React v17.0.2
|
|
112
|
+
* react-is.development.js
|
|
113
|
+
*
|
|
114
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the MIT license found in the
|
|
117
|
+
* LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/var Zh;function oM(){return Zh||(Zh=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,s=60113,c=60120,l=60115,f=60116,d=60121,v=60122,h=60117,m=60129,p=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),i=y("react.profiler"),a=y("react.provider"),o=y("react.context"),u=y("react.forward_ref"),s=y("react.suspense"),c=y("react.suspense_list"),l=y("react.memo"),f=y("react.lazy"),d=y("react.block"),v=y("react.server.block"),h=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),m=y("react.debug_trace_mode"),y("react.offscreen"),p=y("react.legacy_hidden")}var g=!1;function b(D){return!!(typeof D=="string"||typeof D=="function"||D===r||D===i||D===m||D===n||D===s||D===c||D===p||g||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===l||D.$$typeof===a||D.$$typeof===o||D.$$typeof===u||D.$$typeof===h||D.$$typeof===d||D[0]===v))}function x(D){if(typeof D=="object"&&D!==null){var T=D.$$typeof;switch(T){case e:var he=D.type;switch(he){case r:case i:case n:case s:case c:return he;default:var G=he&&he.$$typeof;switch(G){case o:case u:case f:case l:case a:return G;default:return T}}case t:return T}}}var P=o,O=a,E=e,A=u,k=r,N=f,j=l,M=t,C=i,z=n,V=s,U=!1,B=!1;function Y(D){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(D){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ve(D){return x(D)===o}function fe(D){return x(D)===a}function Ae(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Ge(D){return x(D)===u}function ke(D){return x(D)===r}function At(D){return x(D)===f}function or(D){return x(D)===l}function Me(D){return x(D)===t}function ln(D){return x(D)===i}function I(D){return x(D)===n}function q(D){return x(D)===s}Q.ContextConsumer=P,Q.ContextProvider=O,Q.Element=E,Q.ForwardRef=A,Q.Fragment=k,Q.Lazy=N,Q.Memo=j,Q.Portal=M,Q.Profiler=C,Q.StrictMode=z,Q.Suspense=V,Q.isAsyncMode=Y,Q.isConcurrentMode=F,Q.isContextConsumer=ve,Q.isContextProvider=fe,Q.isElement=Ae,Q.isForwardRef=Ge,Q.isFragment=ke,Q.isLazy=At,Q.isMemo=or,Q.isPortal=Me,Q.isProfiler=ln,Q.isStrictMode=I,Q.isSuspense=q,Q.isValidElementType=b,Q.typeOf=x}()),Q}var Qh;function uM(){return Qh||(Qh=1,process.env.NODE_ENV==="production"?Pi.exports=aM():Pi.exports=oM()),Pi.exports}var sM=uM(),Jh=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",ep=null,Fu=null,gb=e=>{if(e===ep&&Array.isArray(Fu))return Fu;var t=[];return S.Children.forEach(e,r=>{le(r)||(sM.isFragment(r)?t=t.concat(gb(r.props.children)):t.push(r))}),Fu=t,ep=e,t};function bb(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>Jh(i)):n=[Jh(t)],gb(e).forEach(i=>{var a=Or(i,"type.displayName")||Or(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var cM=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,qu={},tp;function lM(){return tp||(tp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t}(qu)),qu}var Wu,rp;function fM(){return rp||(rp=1,Wu=lM().isPlainObject),Wu}var dM=fM();const vM=zt(dM);var np,ip,ap,op,up;function sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(r),!0).forEach(function(n){hM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hM(e,t,r){return(t=pM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pM(e){var t=mM(e,"string");return typeof t=="symbol"?t:t+""}function mM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ga.apply(null,arguments)}function bn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var lp=(e,t,r,n,i)=>{var a=r-n,o;return o=ce(np||(np=bn(["M ",",",""])),e,t),o+=ce(ip||(ip=bn(["L ",",",""])),e+r,t),o+=ce(ap||(ap=bn(["L ",",",""])),e+r-a/2,t+i),o+=ce(op||(op=bn(["L ",",",""])),e+r-a/2-n,t+i),o+=ce(up||(up=bn(["L ",","," Z"])),e,t),o},yM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gM=e=>{var t=He(e,yM),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:u}=t,{animationEasing:s,animationDuration:c,animationBegin:l,isUpdateAnimationActive:f}=t,d=S.useRef(null),[v,h]=S.useState(-1),m=S.useRef(i),p=S.useRef(a),y=S.useRef(o),g=S.useRef(r),b=S.useRef(n),x=Ha(e,"trapezoid-");if(S.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var z=d.current.getTotalLength();z&&h(z)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var P=re("recharts-trapezoid",u);if(!f)return w.createElement("g",null,w.createElement("path",ga({},Be(t),{className:P,d:lp(r,n,i,a,o)})));var O=m.current,E=p.current,A=y.current,k=g.current,N=b.current,j="0px ".concat(v===-1?1:v,"px"),M="".concat(v,"px 0px"),C=Cy(["strokeDasharray"],c,s);return w.createElement(Va,{animationId:x,key:x,canBegin:v>0,duration:c,easing:s,isActive:f,begin:l},z=>{var V=Oe(O,i,z),U=Oe(E,a,z),B=Oe(A,o,z),Y=Oe(k,r,z),F=Oe(N,n,z);d.current&&(m.current=V,p.current=U,y.current=B,g.current=Y,b.current=F);var ve=z>0?{transition:C,strokeDasharray:M}:{strokeDasharray:j};return w.createElement("path",ga({},Be(t),{className:P,d:lp(Y,F,V,U,B),ref:d,style:cp(cp({},ve),t.style)}))})},bM=["option","shapeType","activeClassName"];function wM(e,t){if(e==null)return{};var r,n,i=xM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function xM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function fp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ba(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fp(Object(r),!0).forEach(function(n){OM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OM(e,t,r){return(t=PM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PM(e){var t=SM(e,"string");return typeof t=="symbol"?t:t+""}function SM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EM(e,t){return ba(ba({},t),e)}function _M(e,t){return e==="symbols"}function dp(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return w.createElement(Pc,r);case"trapezoid":return w.createElement(gM,r);case"sector":return w.createElement(Dy,r);case"symbols":if(_M(t))return w.createElement(rc,r);break;case"curve":return w.createElement(Oc,r);default:return null}}function AM(e){return S.isValidElement(e)?e.props:e}function wb(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,i=wM(e,bM),a;if(S.isValidElement(t))a=S.cloneElement(t,ba(ba({},i),AM(t)));else if(typeof t=="function")a=t(i,i.index);else if(vM(t)&&typeof t!="boolean"){var o=EM(t,i);a=w.createElement(dp,{shapeType:r,elementProps:o})}else{var u=i;a=w.createElement(dp,{shapeType:r,elementProps:u})}return i.isActive?w.createElement(Pt,{className:n},a):a}var Ml=(e,t,r)=>{var n=oe();return(i,a)=>o=>{e?.(i,a,o),n(bl({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},Dl=e=>{var t=oe();return(r,n)=>i=>{e?.(r,n,i),t(T0())}},Nl=(e,t,r)=>{var n=oe();return(i,a)=>o=>{e?.(i,a,o),n(M0({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function xb(e){var{tooltipEntrySettings:t}=e,r=oe(),n=qe(),i=S.useRef(null);return S.useLayoutEffect(()=>{n||(i.current===null?r(Lj(t)):i.current!==t&&r(zj({prev:i.current,next:t})),i.current=t)},[t,r,n]),S.useLayoutEffect(()=>()=>{i.current&&(r(Bj(i.current)),i.current=null)},[r]),null}function Ob(e){var{legendPayload:t}=e,r=oe(),n=qe(),i=S.useRef(null);return S.useLayoutEffect(()=>{n||(i.current===null?r(iS(t)):i.current!==t&&r(aS({prev:i.current,next:t})),i.current=t)},[r,n,t]),S.useLayoutEffect(()=>()=>{i.current&&(r(oS(i.current)),i.current=null)},[r]),null}var Uu,CM=()=>{var[e]=w.useState(()=>Sn("uid-"));return e},jM=(Uu=w.useId)!==null&&Uu!==void 0?Uu:CM;function IM(e,t){var r=jM();return t||(e?"".concat(e,"-").concat(r):r)}var TM=S.createContext(void 0),Pb=e=>{var{id:t,type:r,children:n}=e,i=IM("recharts-".concat(r),t);return w.createElement(TM.Provider,{value:i},n(i))},kM={cartesianItems:[],polarItems:[]},Sb=Ye({name:"graphicalItems",initialState:kM,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ie()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=lt(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:ie()},removeCartesianGraphicalItem:{reducer(e,t){var r=lt(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ie()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ie()},removePolarGraphicalItem:{reducer(e,t){var r=lt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ie()}}}),{addCartesianGraphicalItem:MM,replaceCartesianGraphicalItem:DM,removeCartesianGraphicalItem:NM,addPolarGraphicalItem:B2,removePolarGraphicalItem:F2}=Sb.actions,$M=Sb.reducer,RM=e=>{var t=oe(),r=S.useRef(null);return S.useLayoutEffect(()=>{r.current===null?t(MM(e)):r.current!==e&&t(DM({prev:r.current,next:e})),r.current=e},[t,e]),S.useLayoutEffect(()=>()=>{r.current&&(t(NM(r.current)),r.current=null)},[t]),null},Eb=S.memo(RM);function vp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(r),!0).forEach(function(n){LM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LM(e,t,r){return(t=zM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zM(e){var t=BM(e,"string");return typeof t=="symbol"?t:t+""}function BM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _b=0,FM={xAxis:{},yAxis:{},zAxis:{}},Ab=Ye({name:"cartesianAxis",initialState:FM,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:ie()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:ie()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:ie()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:ie()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:ie()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:ie()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:ie()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:ie()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:ie()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a,o=i.widthHistory||[];if(o.length===3&&o[0]===o[2]&&n===o[1]&&n!==i.width&&Math.abs(n-((a=o[0])!==null&&a!==void 0?a:0))<=1)return;var u=[...o,n].slice(-3);e.yAxis[r]=hp(hp({},i),{},{width:n,widthHistory:u})}}}}),{addXAxis:qM,replaceXAxis:WM,removeXAxis:UM,addYAxis:KM,replaceYAxis:VM,removeYAxis:HM,addZAxis:q2,replaceZAxis:W2,removeZAxis:U2,updateYAxisWidth:YM}=Ab.actions,GM=Ab.reducer,XM=_([Pe],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),ZM=_([XM,Ft,qt],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),$l=()=>L(ZM),QM=()=>L(II),pp=(e,t,r)=>{var n=r??e;if(!le(n))return dt(n,t,0)},JM=(e,t,r)=>{var n={},i=e.filter(ao),a=e.filter(c=>c.stackId==null),o=i.reduce((c,l)=>{var f=c[l.stackId];return f==null&&(f=[]),f.push(l),c[l.stackId]=f,c},n),u=Object.entries(o).map(c=>{var l,[f,d]=c,v=d.map(m=>m.dataKey),h=pp(t,r,(l=d[0])===null||l===void 0?void 0:l.barSize);return{stackId:f,dataKeys:v,barSize:h}}),s=a.map(c=>{var l=[c.dataKey].filter(d=>d!=null),f=pp(t,r,c.barSize);return{stackId:void 0,dataKeys:l,barSize:f}});return[...u,...s]};function mp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mp(Object(r),!0).forEach(function(n){eD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eD(e,t,r){return(t=tD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tD(e){var t=rD(e,"string");return typeof t=="symbol"?t:t+""}function rD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nD(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var u=dt(e,r,0,!0),s,c=[];if(W((a=n[0])===null||a===void 0?void 0:a.barSize)){var l=!1,f=r/o,d=n.reduce((g,b)=>g+(b.barSize||0),0);d+=(o-1)*u,d>=r&&(d-=(o-1)*u,u=0),d>=r&&f>0&&(l=!0,f*=.9,d=o*f);var v=(r-d)/2>>0,h={offset:v-u,size:0};s=n.reduce((g,b)=>{var x,P={stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:h.offset+h.size+u,size:l?f:(x=b.barSize)!==null&&x!==void 0?x:0}},O=[...g,P];return h=P.position,O},c)}else{var m=dt(t,r,0,!0);r-2*m-(o-1)*u<=0&&(u=0);var p=(r-2*m-(o-1)*u)/o;p>1&&(p>>=0);var y=W(i)?Math.min(p,i):p;s=n.reduce((g,b,x)=>[...g,{stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:m+(p+u)*x+(p-y)/2,size:y}}],c)}return s}}var iD=(e,t,r,n,i,a,o)=>{var u=le(o)?t:o,s=nD(r,n,i!==a?i:a,e,u);return i!==a&&s!=null&&(s=s.map(c=>Si(Si({},c),{},{position:Si(Si({},c.position),{},{offset:c.position.offset-i/2})}))),s},aD=(e,t)=>{var r=io(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(o=>o.key===r)}}}},oD=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function uD(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&W(e.zIndex)?e.zIndex:t}var sD=e=>{var{chartData:t}=e,r=oe(),n=qe();return S.useEffect(()=>n?()=>{}:(r(Ls(t)),()=>{r(Ls(void 0))}),[t,r,n]),null},cD=e=>{var{computedData:t}=e,r=oe();return S.useEffect(()=>(r(AT(t)),()=>{r(Ls(void 0))}),[t,r]),null},yp={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},Cb=Ye({name:"brush",initialState:yp,reducers:{setBrushSettings(e,t){return t.payload==null?yp:t.payload}}}),{setBrushSettings:K2}=Cb.actions,lD=Cb.reducer;function fD(e){return(e%180+180)%180}var dD=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=fD(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},vD={dots:[],areas:[],lines:[]},jb=Ye({name:"referenceElements",initialState:vD,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=lt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=lt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=lt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:V2,removeDot:H2,addArea:Y2,removeArea:G2,addLine:X2,removeLine:Z2}=jb.actions,hD=jb.reducer,pD=S.createContext(void 0),mD=e=>{var{children:t}=e,[r]=S.useState("".concat(Sn("recharts"),"-clip")),n=$l();if(n==null)return null;var{x:i,y:a,width:o,height:u}=n;return w.createElement(pD.Provider,{value:r},w.createElement("defs",null,w.createElement("clipPath",{id:r},w.createElement("rect",{x:i,y:a,height:u,width:o}))),t)};function Ib(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];i!==void 0&&r.push(i)}return r}function yD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return dD(n,r)}function gD(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:u}=e;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function zn(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function bD(e,t){return Ib(e,t+1)}function wD(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:u}=t,s=0,c=1,l=o,f=function(){var h=n?.[s];if(h===void 0)return{v:Ib(n,c)};var m=s,p,y=()=>(p===void 0&&(p=r(h,m)),p),g=h.coordinate,b=s===0||zn(e,g,y,l,u);b||(s=0,l=o,c+=1),b&&(l=g+e*(y()/2+i),s+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function xD(e,t,r,n,i){var a=(n||[]).slice(),o=a.length;if(o===0)return[];for(var{start:u,end:s}=t,c=1;c<=o;c++){for(var l=(o-1)%c,f=u,d=!0,v=function(){var x=n[m];if(x==null)return 0;var P=m,O,E=()=>(O===void 0&&(O=r(x,P)),O),A=x.coordinate,k=m===l||zn(e,A,E,f,s);if(!k)return d=!1,1;k&&(f=A+e*(E()/2+i))},h,m=l;m<o&&(h=v(),!(h!==0&&h===1));m+=c);if(d){for(var p=[],y=l;y<o;y+=c){var g=n[y];g!=null&&p.push(g)}return p}}return[]}function gp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gp(Object(r),!0).forEach(function(n){OD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OD(e,t,r){return(t=PD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PD(e){var t=SD(e,"string");return typeof t=="symbol"?t:t+""}function SD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ED(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:u}=t,{end:s}=t,c=function(d){var v=a[d];if(v==null)return 1;var h=v,m,p=()=>(m===void 0&&(m=r(v,d)),m);if(d===o-1){var y=e*(h.coordinate+e*p()/2-s);a[d]=h=De(De({},h),{},{tickCoord:y>0?h.coordinate-y*e:h.coordinate})}else a[d]=h=De(De({},h),{},{tickCoord:h.coordinate});if(h.tickCoord!=null){var g=zn(e,h.tickCoord,p,u,s);g&&(s=h.tickCoord-e*(p()/2+i),a[d]=De(De({},h),{},{isShow:!0}))}},l=o-1;l>=0;l--)c(l);return a}function _D(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,{start:s,end:c}=t;if(a){var l=n[u-1];if(l!=null){var f=r(l,u-1),d=e*(l.coordinate+e*f/2-c);if(o[u-1]=l=De(De({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate}),l.tickCoord!=null){var v=zn(e,l.tickCoord,()=>f,s,c);v&&(c=l.tickCoord-e*(f/2+i),o[u-1]=De(De({},l),{},{isShow:!0}))}}}for(var h=a?u-1:u,m=function(g){var b=o[g];if(b==null)return 1;var x=b,P,O=()=>(P===void 0&&(P=r(b,g)),P);if(g===0){var E=e*(x.coordinate-e*O()/2-s);o[g]=x=De(De({},x),{},{tickCoord:E<0?x.coordinate-E*e:x.coordinate})}else o[g]=x=De(De({},x),{},{tickCoord:x.coordinate});if(x.tickCoord!=null){var A=zn(e,x.tickCoord,O,s,c);A&&(s=x.tickCoord+e*(O()/2+i),o[g]=De(De({},x),{},{isShow:!0}))}},p=0;p<h;p++)m(p);return o}function Rl(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:u,interval:s,tickFormatter:c,unit:l,angle:f}=e;if(!i||!i.length||!n)return[];if(R(s)||Yn.isSsr){var d;return(d=bD(i,R(s)?s:0))!==null&&d!==void 0?d:[]}var v=[],h=u==="top"||u==="bottom"?"width":"height",m=l&&h==="width"?Pn(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=(P,O)=>{var E=typeof c=="function"?c(P.value,O):P.value;return h==="width"?yD(Pn(E,{fontSize:t,letterSpacing:r}),m,f):Pn(E,{fontSize:t,letterSpacing:r})[h]},y=i[0],g=i[1],b=i.length>=2&&y!=null&&g!=null?Ke(g.coordinate-y.coordinate):1,x=gD(a,b,h);return s==="equidistantPreserveStart"?wD(b,x,p,i,o):s==="equidistantPreserveEnd"?xD(b,x,p,i,o):(s==="preserveStart"||s==="preserveStartEnd"?v=_D(b,x,p,i,o,s==="preserveStartEnd"):v=ED(b,x,p,i,o),v.filter(P=>P.isShow))}var AD=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(l=>{if(l){var f=l.getBoundingClientRect();f.width>o&&(o=f.width)}});var u=r?r.getBoundingClientRect().width:0,s=i+a,c=o+s+u+(r?n:0);return Math.round(c)}return 0},CD=["axisLine","width","height","className","hide","ticks","axisType"];function jD(e,t){if(e==null)return{};var r,n,i=ID(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ID(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mr.apply(null,arguments)}function bp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bp(Object(r),!0).forEach(function(n){TD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TD(e,t,r){return(t=kD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kD(e){var t=MD(e,"string");return typeof t=="symbol"?t:t+""}function MD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mt={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",zIndex:$e.axis};function DD(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:u,otherSvgProps:s}=e;if(!u)return null;var c=se(se(se({},s),Ot(u)),{},{fill:"none"});if(a==="top"||a==="bottom"){var l=+(a==="top"&&!o||a==="bottom"&&o);c=se(se({},c),{},{x1:t,y1:r+l*i,x2:t+n,y2:r+l*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);c=se(se({},c),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return w.createElement("line",Mr({},c,{className:re("recharts-cartesian-axis-line",Or(u,"className"))}))}function ND(e,t,r,n,i,a,o,u,s){var c,l,f,d,v,h,m=u?-1:1,p=e.tickSize||o,y=R(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=l=e.coordinate,d=r+ +!u*i,f=d-m*p,h=f-m*s,v=y;break;case"left":f=d=e.coordinate,l=t+ +!u*n,c=l-m*p,v=c-m*s,h=y;break;case"right":f=d=e.coordinate,l=t+ +u*n,c=l+m*p,v=c+m*s,h=y;break;default:c=l=e.coordinate,d=r+ +u*i,f=d+m*p,h=f+m*s,v=y;break}return{line:{x1:c,y1:f,x2:l,y2:d},tick:{x:v,y:h}}}function $D(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function RD(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function LD(e){var{option:t,tickProps:r,value:n}=e,i,a=re(r.className,"recharts-cartesian-axis-tick-value");if(w.isValidElement(t))i=w.cloneElement(t,se(se({},r),{},{className:a}));else if(typeof t=="function")i=t(se(se({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=re(o,iM(t))),i=w.createElement(Tl,Mr({},r,{className:o}),n)}return i}var zD=S.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:o,unit:u,padding:s,tickTextProps:c,orientation:l,mirror:f,x:d,y:v,width:h,height:m,tickSize:p,tickMargin:y,fontSize:g,letterSpacing:b,getTicksConfig:x,events:P,axisType:O}=e,E=Rl(se(se({},x),{},{ticks:r}),g,b),A=$D(l,f),k=RD(l,f),N=Ot(x),j=Ea(n),M={};typeof i=="object"&&(M=i);var C=se(se({},N),{},{fill:"none"},M),z=E.map(B=>se({entry:B},ND(B,d,v,h,m,l,p,f,y))),V=z.map(B=>{var{entry:Y,line:F}=B;return w.createElement(Pt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(Y.value,"-").concat(Y.coordinate,"-").concat(Y.tickCoord)},i&&w.createElement("line",Mr({},C,F,{className:re("recharts-cartesian-axis-tick-line",Or(i,"className"))})))}),U=z.map((B,Y)=>{var F,ve,{entry:fe,tick:Ae}=B,Ge=se(se(se(se({verticalAnchor:k},N),{},{textAnchor:A,stroke:"none",fill:a},Ae),{},{index:Y,payload:fe,visibleTicksCount:E.length,tickFormatter:o,padding:s},c),{},{angle:(F=(ve=c?.angle)!==null&&ve!==void 0?ve:N.angle)!==null&&F!==void 0?F:0}),ke=se(se({},Ge),j);return w.createElement(Pt,Mr({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(fe.value,"-").concat(fe.coordinate,"-").concat(fe.tickCoord)},ja(P,fe,Y)),n&&w.createElement(LD,{option:n,tickProps:ke,value:"".concat(typeof o=="function"?o(fe.value,Y):fe.value).concat(u||"")}))});return w.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},U.length>0&&w.createElement(_t,{zIndex:$e.label},w.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},U)),V.length>0&&w.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},V))}),BD=S.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:u,axisType:s}=e,c=jD(e,CD),[l,f]=S.useState(""),[d,v]=S.useState(""),h=S.useRef(null);S.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var p;return AD({ticks:h.current,label:(p=e.labelRef)===null||p===void 0?void 0:p.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=S.useCallback(p=>{if(p){var y=p.getElementsByClassName("recharts-cartesian-axis-tick-value");h.current=y;var g=y[0];if(g){var b=window.getComputedStyle(g),x=b.fontSize,P=b.letterSpacing;(x!==l||P!==d)&&(f(x),v(P))}}},[l,d]);return o||n!=null&&n<=0||i!=null&&i<=0?null:w.createElement(_t,{zIndex:e.zIndex},w.createElement(Pt,{className:re("recharts-cartesian-axis",a)},w.createElement(DD,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Ot(e)}),w.createElement(zD,{ref:m,axisType:s,events:c,fontSize:l,getTicksConfig:e,height:e.height,letterSpacing:d,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y}),w.createElement(Mk,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},w.createElement(Wk,{label:e.label,labelRef:e.labelRef}),e.children)))}),Ll=w.forwardRef((e,t)=>{var r=He(e,Mt);return w.createElement(BD,Mr({},r,{ref:t}))});Ll.displayName="CartesianAxis";var FD=["x1","y1","x2","y2","key"],qD=["offset"],WD=["xAxisId","yAxisId"],UD=["xAxisId","yAxisId"];function wp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wp(Object(r),!0).forEach(function(n){KD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KD(e,t,r){return(t=VD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VD(e){var t=HD(e,"string");return typeof t=="symbol"?t:t+""}function HD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mr.apply(null,arguments)}function wa(e,t){if(e==null)return{};var r,n,i=YD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function YD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var GD=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:u}=e;return w.createElement("rect",{x:n,y:i,ry:u,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Tb(e){var{option:t,lineItemProps:r}=e,n;if(w.isValidElement(t))n=w.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:o,x2:u,y2:s,key:c}=r,l=wa(r,FD),f=(i=Ot(l))!==null&&i!==void 0?i:{},{offset:d}=f,v=wa(f,qD);n=w.createElement("line",mr({},v,{x1:a,y1:o,x2:u,y2:s,fill:"none",key:c}))}return n}function XD(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,u=wa(e,WD),s=i.map((c,l)=>{var f=Ne(Ne({},u),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(l),index:l});return w.createElement(Tb,{key:"line-".concat(l),option:n,lineItemProps:f})});return w.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function ZD(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,u=wa(e,UD),s=i.map((c,l)=>{var f=Ne(Ne({},u),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(l),index:l});return w.createElement(Tb,{option:n,lineItemProps:f,key:"line-".concat(l)})});return w.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function QD(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:u,horizontal:s=!0}=e;if(!s||!t||!t.length||u==null)return null;var c=u.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var l=c.map((f,d)=>{var v=c[d+1],h=v==null,m=h?i+o-f:v-f;if(m<=0)return null;var p=d%t.length;return w.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:m,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function JD(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:u,verticalPoints:s}=e;if(!t||!r||!r.length)return null;var c=s.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var l=c.map((f,d)=>{var v=c[d+1],h=v==null,m=h?i+o-f:v-f;if(m<=0)return null;var p=d%r.length;return w.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:m,height:u,stroke:"none",fill:r[p],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var eN=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return ly(Rl(Ne(Ne(Ne({},Mt),r),{},{ticks:fy(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},tN=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return ly(Rl(Ne(Ne(Ne({},Mt),r),{},{ticks:fy(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},rN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:$e.grid};function kb(e){var t=yc(),r=gc(),n=gy(),i=Ne(Ne({},He(e,rN)),{},{x:R(e.x)?e.x:n.left,y:R(e.y)?e.y:n.top,width:R(e.width)?e.width:n.width,height:R(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:u,y:s,width:c,height:l,syncWithTicks:f,horizontalValues:d,verticalValues:v}=i,h=qe(),m=L(k=>mh(k,"xAxis",a,h)),p=L(k=>mh(k,"yAxis",o,h));if(!ht(c)||!ht(l)||!R(u)||!R(s))return null;var y=i.verticalCoordinatesGenerator||eN,g=i.horizontalCoordinatesGenerator||tN,{horizontalPoints:b,verticalPoints:x}=i;if((!b||!b.length)&&typeof g=="function"){var P=d&&d.length,O=g({yAxis:p?Ne(Ne({},p),{},{ticks:P?d:p.ticks}):void 0,width:t??c,height:r??l,offset:n},P?!0:f);Hi(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(b=O)}if((!x||!x.length)&&typeof y=="function"){var E=v&&v.length,A=y({xAxis:m?Ne(Ne({},m),{},{ticks:E?v:m.ticks}):void 0,width:t??c,height:r??l,offset:n},E?!0:f);Hi(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof A,"]")),Array.isArray(A)&&(x=A)}return w.createElement(_t,{zIndex:i.zIndex},w.createElement("g",{className:"recharts-cartesian-grid"},w.createElement(GD,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),w.createElement(QD,mr({},i,{horizontalPoints:b})),w.createElement(JD,mr({},i,{verticalPoints:x})),w.createElement(XD,mr({},i,{offset:n,horizontalPoints:b,xAxis:m,yAxis:p})),w.createElement(ZD,mr({},i,{offset:n,verticalPoints:x,xAxis:m,yAxis:p}))))}kb.displayName="CartesianGrid";var nN={},Mb=Ye({name:"errorBars",initialState:nN,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:Q2,replaceErrorBar:J2,removeErrorBar:eR}=Mb.actions,iN=Mb.reducer,aN=["children"];function oN(e,t){if(e==null)return{};var r,n,i=uN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var sN={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},cN=S.createContext(sN);function Db(e){var{children:t}=e,r=oN(e,aN);return w.createElement(cN.Provider,{value:r},t)}function zl(e,t){var r,n,i=L(c=>Vt(c,e)),a=L(c=>Ht(c,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:be.allowDataOverflow,u=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:we.allowDataOverflow,s=o||u;return{needClip:s,needClipX:o,needClipY:u}}function Nb(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=$l(),{needClipX:a,needClipY:o,needClip:u}=zl(t,r);if(!u||!i)return null;var{x:s,y:c,width:l,height:f}=i;return w.createElement("clipPath",{id:"clipPath-".concat(n)},w.createElement("rect",{x:a?s:s-l/2,y:o?c:c-f/2,width:a?l:l*2,height:o?f:f*2}))}var Ei={exports:{}},Ku={};/**
|
|
119
|
+
* @license React
|
|
120
|
+
* use-sync-external-store-with-selector.production.js
|
|
121
|
+
*
|
|
122
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the MIT license found in the
|
|
125
|
+
* LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/var xp;function lN(){if(xp)return Ku;xp=1;var e=S;function t(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,u=e.useDebugValue;return Ku.useSyncExternalStoreWithSelector=function(s,c,l,f,d){var v=i(null);if(v.current===null){var h={hasValue:!1,value:null};v.current=h}else h=v.current;v=o(function(){function p(P){if(!y){if(y=!0,g=P,P=f(P),d!==void 0&&h.hasValue){var O=h.value;if(d(O,P))return b=O}return b=P}if(O=b,r(g,P))return O;var E=f(P);return d!==void 0&&d(O,E)?(g=P,O):(g=P,b=E)}var y=!1,g,b,x=l===void 0?null:l;return[function(){return p(c())},x===null?void 0:function(){return p(x())}]},[c,l,f,d]);var m=n(s,v[0],v[1]);return a(function(){h.hasValue=!0,h.value=m},[m]),u(m),m},Ku}var Vu={};/**
|
|
127
|
+
* @license React
|
|
128
|
+
* use-sync-external-store-with-selector.development.js
|
|
129
|
+
*
|
|
130
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the MIT license found in the
|
|
133
|
+
* LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/var Op;function fN(){return Op||(Op=1,process.env.NODE_ENV!=="production"&&function(){function e(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=S,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,u=t.useDebugValue;Vu.useSyncExternalStoreWithSelector=function(s,c,l,f,d){var v=i(null);if(v.current===null){var h={hasValue:!1,value:null};v.current=h}else h=v.current;v=o(function(){function p(P){if(!y){if(y=!0,g=P,P=f(P),d!==void 0&&h.hasValue){var O=h.value;if(d(O,P))return b=O}return b=P}if(O=b,r(g,P))return O;var E=f(P);return d!==void 0&&d(O,E)?(g=P,O):(g=P,b=E)}var y=!1,g,b,x=l===void 0?null:l;return[function(){return p(c())},x===null?void 0:function(){return p(x())}]},[c,l,f,d]);var m=n(s,v[0],v[1]);return a(function(){h.hasValue=!0,h.value=m},[m]),u(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Vu}var Pp;function dN(){return Pp||(Pp=1,process.env.NODE_ENV==="production"?Ei.exports=lN():Ei.exports=fN()),Ei.exports}dN();function vN(e){e()}function hN(){let e=null,t=null;return{clear(){e=null,t=null},notify(){vN(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Sp={notify(){},get:()=>[]};function pN(e,t){let r,n=Sp,i=0,a=!1;function o(m){l();const p=n.subscribe(m);let y=!1;return()=>{y||(y=!0,p(),f())}}function u(){n.notify()}function s(){h.onStateChange&&h.onStateChange()}function c(){return a}function l(){i++,r||(r=e.subscribe(s),n=hN())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Sp)}function d(){a||(a=!0,l())}function v(){a&&(a=!1,f())}const h={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:s,isSubscribed:c,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>n};return h}var mN=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yN=mN(),gN=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bN=gN(),wN=()=>yN||bN?w.useLayoutEffect:w.useEffect,xN=wN();function Ep(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function ON(e,t){if(Ep(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!Ep(e[r[i]],t[r[i]]))return!1;return!0}var PN=Symbol.for("react-redux-context"),SN=typeof globalThis<"u"?globalThis:{};function EN(){if(!w.createContext)return{};const e=SN[PN]??=new Map;let t=e.get(w.createContext);return t||(t=w.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(w.createContext,t)),t}var _N=EN();function AN(e){const{children:t,context:r,serverState:n,store:i}=e,a=w.useMemo(()=>{const s=pN(i),c={store:i,subscription:s,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:l})}},[i,n]),o=w.useMemo(()=>i.getState(),[i]);xN(()=>{const{subscription:s}=a;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==i.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[a,o]);const u=r||_N;return w.createElement(u.Provider,{value:a},t)}var CN=AN,jN=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function IN(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function ho(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(jN.has(n)){if(e[n]==null&&t[n]==null)continue;if(!ON(e[n],t[n]))return!1}else if(!IN(e[n],t[n]))return!1;return!0}function ir(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:_b}function ar(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:_b}var TN=process.env.NODE_ENV==="production",Hu="Invariant failed";function kN(e,t){if(TN)throw new Error(Hu);var r=typeof t=="function"?t():t,n=r?"".concat(Hu,": ").concat(r):Hu;throw new Error(n)}function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(null,arguments)}function xa(e){return w.createElement(wb,Bs({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var MN=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(R(t))return t;var a=R(n)||le(n);return a?t(n,i):(a||kN(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},DN=(e,t,r)=>r,NN=(e,t)=>t,ii=_([so,NN],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),$N=_([ii],e=>e?.maxBarSize),RN=(e,t,r,n)=>n,LN=_([J,so,ir,ar,DN],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),zN=(e,t,r)=>{var n=J(e),i=ir(e,t),a=ar(e,t);if(!(i==null||a==null))return n==="horizontal"?ha(e,"yAxis",a,r):ha(e,"xAxis",i,r)},BN=(e,t)=>{var r=J(e),n=ir(e,t),i=ar(e,t);if(!(n==null||i==null))return r==="horizontal"?ph(e,"xAxis",n):ph(e,"yAxis",i)},FN=_([LN,_C,BN],JM),qN=(e,t,r)=>{var n,i,a=ii(e,t);if(a==null)return 0;var o=ir(e,t),u=ar(e,t);if(o==null||u==null)return 0;var s=J(e),c=Mg(e),{maxBarSize:l}=a,f=le(l)?c:l,d,v;return s==="horizontal"?(d=Tr(e,"xAxis",o,r),v=Ir(e,"xAxis",o,r)):(d=Tr(e,"yAxis",u,r),v=Ir(e,"yAxis",u,r)),(n=(i=Cn(d,v,!0))!==null&&i!==void 0?i:f)!==null&&n!==void 0?n:0},$b=(e,t,r)=>{var n=J(e),i=ir(e,t),a=ar(e,t);if(!(i==null||a==null)){var o,u;return n==="horizontal"?(o=Tr(e,"xAxis",i,r),u=Ir(e,"xAxis",i,r)):(o=Tr(e,"yAxis",a,r),u=Ir(e,"yAxis",a,r)),Cn(o,u)}},WN=_([FN,Mg,EC,Dg,qN,$b,$N],iD),UN=(e,t,r)=>{var n=ir(e,t);if(n!=null)return Tr(e,"xAxis",n,r)},KN=(e,t,r)=>{var n=ar(e,t);if(n!=null)return Tr(e,"yAxis",n,r)},VN=(e,t,r)=>{var n=ir(e,t);if(n!=null)return Ir(e,"xAxis",n,r)},HN=(e,t,r)=>{var n=ar(e,t);if(n!=null)return Ir(e,"yAxis",n,r)},YN=_([WN,ii],oD),GN=_([zN,ii],aD),XN=_([Pe,hc,UN,KN,VN,HN,YN,J,xg,$b,GN,ii,RN],(e,t,r,n,i,a,o,u,s,c,l,f,d)=>{var{chartData:v,dataStartIndex:h,dataEndIndex:m}=s;if(!(f==null||o==null||t==null||u!=="horizontal"&&u!=="vertical"||r==null||n==null||i==null||a==null||c==null)){var{data:p}=f,y;if(p!=null&&p.length>0?y=p:y=v?.slice(h,m+1),y!=null)return S$({layout:u,barSettings:f,pos:o,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:l,displayedData:y,offset:e,cells:d,dataStartIndex:h})}}),ZN=["index"];function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fs.apply(null,arguments)}function QN(e,t){if(e==null)return{};var r,n,i=JN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function JN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Rb=S.createContext(void 0),e$=e=>{var t=S.useContext(Rb);if(t!=null)return t.stackId;if(e!=null)return dy(e)},t$=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),r$=e=>{var t=S.useContext(Rb);if(t!=null){var{stackId:r}=t;return"url(#".concat(t$(r,e),")")}},Lb=e=>{var{index:t}=e,r=QN(e,ZN),n=r$(t);return w.createElement(Pt,Fs({className:"recharts-bar-stack-layer",clipPath:n},r))},n$=["onMouseEnter","onMouseLeave","onClick"],i$=["value","background","tooltipPosition"],a$=["id"],o$=["onMouseEnter","onClick","onMouseLeave"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lt.apply(null,arguments)}function _p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_p(Object(r),!0).forEach(function(n){u$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u$(e,t,r){return(t=s$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s$(e){var t=c$(e,"string");return typeof t=="symbol"?t:t+""}function c$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oa(e,t){if(e==null)return{};var r,n,i=l$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var f$=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:vc(r,t),payload:e}]},d$=w.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:u,tooltipType:s,id:c}=e,l={dataDefinedOnItem:void 0,getPosition:Dr,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:vc(a,t),hide:o,type:s,color:i,unit:u,graphicalItemId:c}};return w.createElement(xb,{tooltipEntrySettings:l})});function v$(e){var t=L(kr),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:u,onClick:s}=a,c=Oa(a,n$),l=Ml(o,n,a.id),f=Dl(u),d=Nl(s,n,a.id);if(!i||r==null)return null;var v=Ea(i);return w.createElement(_t,{zIndex:uD(i,$e.barBackground)},r.map((h,m)=>{var{value:p,background:y,tooltipPosition:g}=h,b=Oa(h,i$);if(!y)return null;var x=l(h,m),P=f(h,m),O=d(h,m),E=Re(Re(Re(Re(Re({option:i,isActive:String(m)===t},b),{},{fill:"#eee"},y),v),ja(c,h,m)),{},{onMouseEnter:x,onMouseLeave:P,onClick:O,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return w.createElement(xa,Lt({key:"background-bar-".concat(m)},E))}))}function h$(e){var{showLabels:t,children:r,rects:n}=e,i=n?.map(a=>{var o={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return Re(Re({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return w.createElement(hb,{value:t?i:void 0},r)}function p$(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,u=L(kr),s=L(H0),c=r&&String(a)===u&&(s==null||o===s),l=c?r:t;return c?w.createElement(_t,{zIndex:$e.activeBar},w.createElement(Lb,{index:a},w.createElement(xa,Lt({},n,{name:String(n.name)},i,{isActive:c,option:l,index:a,dataKey:o})))):w.createElement(xa,Lt({},n,{name:String(n.name)},i,{isActive:c,option:l,index:a,dataKey:o}))}function m$(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return w.createElement(xa,Lt({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function y$(e){var t,{data:r,props:n}=e,i=(t=Ot(n))!==null&&t!==void 0?t:{},{id:a}=i,o=Oa(i,a$),{shape:u,dataKey:s,activeBar:c}=n,{onMouseEnter:l,onClick:f,onMouseLeave:d}=n,v=Oa(n,o$),h=Ml(l,s,a),m=Dl(d),p=Nl(f,s,a);return r?w.createElement(w.Fragment,null,r.map((y,g)=>w.createElement(Lb,Lt({index:g,key:"rectangle-".concat(y?.x,"-").concat(y?.y,"-").concat(y?.value,"-").concat(g),className:"recharts-bar-rectangle"},ja(v,y,g),{onMouseEnter:h(y,g),onMouseLeave:m(y,g),onClick:p(y,g)}),c?w.createElement(p$,{shape:u,activeBar:c,baseProps:o,entry:y,index:g,dataKey:s}):w.createElement(m$,{shape:u,baseProps:o,entry:y,index:g,dataKey:s})))):null}function g$(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:s,onAnimationEnd:c,onAnimationStart:l}=t,f=r.current,d=Ha(t,"recharts-bar-"),[v,h]=S.useState(!1),m=!v,p=S.useCallback(()=>{typeof c=="function"&&c(),h(!1)},[c]),y=S.useCallback(()=>{typeof l=="function"&&l(),h(!0)},[l]);return w.createElement(h$,{showLabels:m,rects:n},w.createElement(Va,{animationId:d,begin:o,duration:u,isActive:a,easing:s,onAnimationEnd:p,onAnimationStart:y,key:d},g=>{var b=g===1?n:n?.map((x,P)=>{var O=f&&f[P];if(O)return Re(Re({},x),{},{x:Oe(O.x,x.x,g),y:Oe(O.y,x.y,g),width:Oe(O.width,x.width,g),height:Oe(O.height,x.height,g)});if(i==="horizontal"){var E=Oe(0,x.height,g),A=Oe(x.stackedBarStart,x.y,g);return Re(Re({},x),{},{y:A,height:E})}var k=Oe(0,x.width,g),N=Oe(x.stackedBarStart,x.x,g);return Re(Re({},x),{},{width:k,x:N})});return g>0&&(r.current=b??null),b==null?null:w.createElement(Pt,null,w.createElement(y$,{props:t,data:b}))}),w.createElement(mb,{label:t.label}),t.children)}function b$(e){var t=S.useRef(null);return w.createElement(g$,{previousRectanglesRef:t,props:e})}var zb=0,w$=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:me(e,t)}};class x$ extends S.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:u,background:s,id:c}=this.props;if(t||r==null)return null;var l=re("recharts-bar",i),f=c;return w.createElement(Pt,{className:l,id:c},u&&w.createElement("defs",null,w.createElement(Nb,{clipPathId:f,xAxisId:a,yAxisId:o})),w.createElement(Pt,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(f,")"):void 0},w.createElement(v$,{data:r,dataKey:n,background:s,allOtherBarProps:this.props}),w.createElement(b$,this.props)))}}var O$={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:zb,xAxisId:0,yAxisId:0,zIndex:$e.bar};function P$(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:s,animationEasing:c,isAnimationActive:l}=e,{needClip:f}=zl(t,r),d=Nr(),v=qe(),h=bb(e.children,Il),m=L(g=>XN(g,e.id,v,h));if(d!=="vertical"&&d!=="horizontal")return null;var p,y=m?.[0];return y==null||y.height==null||y.width==null?p=0:p=d==="vertical"?y.height/2:y.width/2,w.createElement(Db,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:w$,errorBarOffset:p},w.createElement(x$,Lt({},e,{layout:d,needClip:f,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:s,animationEasing:c,isAnimationActive:l})))}function S$(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:u,xAxisTicks:s,yAxisTicks:c,stackedData:l,displayedData:f,offset:d,cells:v,parentViewBox:h,dataStartIndex:m}=e,p=t==="horizontal"?u:o,y=l?p.scale.domain():null,g=nP({numericAxis:p}),b=p.scale.map(g);return f.map((x,P)=>{var O,E,A,k,N,j;if(l){var M=l[P+m];if(M==null)return null;O=Z1(M,y)}else O=me(x,r),Array.isArray(O)||(O=[g,O]);var C=MN(n,zb)(O[1],P);if(t==="horizontal"){var z,V=u.scale.map(O[0]),U=u.scale.map(O[1]);if(V==null||U==null)return null;E=md({axis:o,ticks:s,bandSize:a,offset:i.offset,entry:x,index:P}),A=(z=U??V)!==null&&z!==void 0?z:void 0,k=i.size;var B=V-U;if(N=ft(B)?0:B,j={x:E,y:d.top,width:k,height:d.height},Math.abs(C)>0&&Math.abs(N)<Math.abs(C)){var Y=Ke(N||C)*(Math.abs(C)-Math.abs(N));A-=Y,N+=Y}}else{var F=o.scale.map(O[0]),ve=o.scale.map(O[1]);if(F==null||ve==null)return null;if(E=F,A=md({axis:u,ticks:c,bandSize:a,offset:i.offset,entry:x,index:P}),k=ve-F,N=i.size,j={x:d.left,y:A,width:d.width,height:N},Math.abs(C)>0&&Math.abs(k)<Math.abs(C)){var fe=Ke(k||C)*(Math.abs(C)-Math.abs(k));k+=fe}}if(E==null||A==null||k==null||N==null)return null;var Ae=Re(Re({},x),{},{stackedBarStart:b,x:E,y:A,width:k,height:N,value:l?O:O[1],payload:x,background:j,tooltipPosition:{x:E+k/2,y:A+N/2},parentViewBox:h},v&&v[P]&&v[P].props);return Ae}).filter(Boolean)}function E$(e){var t=He(e,O$),r=e$(t.stackId),n=qe();return w.createElement(Pb,{id:t.id,type:"bar"},i=>w.createElement(w.Fragment,null,w.createElement(Ob,{legendPayload:f$(t)}),w.createElement(d$,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),w.createElement(Eb,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),w.createElement(_t,{zIndex:t.zIndex},w.createElement(P$,Lt({},t,{id:i})))))}var Bb=w.memo(E$,ho);Bb.displayName="Bar";var _$=["domain","range"],A$=["domain","range"];function Ap(e,t){if(e==null)return{};var r,n,i=C$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function C$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Cp(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function Fb(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=Ap(e,_$),{domain:a,range:o}=t,u=Ap(t,A$);return!Cp(r,a)||!Cp(n,o)?!1:ho(i,u)}var j$=["type"],I$=["dangerouslySetInnerHTML","ticks","scale"],T$=["id","scale"];function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qs.apply(null,arguments)}function jp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ip(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jp(Object(r),!0).forEach(function(n){k$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k$(e,t,r){return(t=M$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M$(e){var t=D$(e,"string");return typeof t=="symbol"?t:t+""}function D$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ws(e,t){if(e==null)return{};var r,n,i=N$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function N$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function $$(e){var t=oe(),r=S.useRef(null),n=bc(),{type:i}=e,a=Ws(e,j$),o=to(n,"xAxis",i),u=S.useMemo(()=>{if(o!=null)return Ip(Ip({},a),{},{type:o})},[a,o]);return S.useLayoutEffect(()=>{u!=null&&(r.current===null?t(qM(u)):r.current!==u&&t(WM({prev:r.current,next:u})),r.current=u)},[u,t]),S.useLayoutEffect(()=>()=>{r.current&&(t(UM(r.current)),r.current=null)},[t]),null}var R$=e=>{var{xAxisId:t,className:r}=e,n=L(hc),i=qe(),a="xAxis",o=L(y=>E0(y,a,t,i)),u=L(y=>x0(y,t)),s=L(y=>Aj(y,t)),c=L(y=>Wg(y,t));if(u==null||s==null||c==null)return null;var{dangerouslySetInnerHTML:l,ticks:f,scale:d}=e,v=Ws(e,I$),{id:h,scale:m}=c,p=Ws(c,T$);return w.createElement(Ll,qs({},v,p,{x:s.x,y:s.y,width:u.width,height:u.height,className:re("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:o,axisType:a}))},L$={allowDataOverflow:be.allowDataOverflow,allowDecimals:be.allowDecimals,allowDuplicatedCategory:be.allowDuplicatedCategory,angle:be.angle,axisLine:Mt.axisLine,height:be.height,hide:!1,includeHidden:be.includeHidden,interval:be.interval,label:!1,minTickGap:be.minTickGap,mirror:be.mirror,orientation:be.orientation,padding:be.padding,reversed:be.reversed,scale:be.scale,tick:be.tick,tickCount:be.tickCount,tickLine:Mt.tickLine,tickSize:Mt.tickSize,type:be.type,xAxisId:0},z$=e=>{var t=He(e,L$);return w.createElement(w.Fragment,null,w.createElement($$,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),w.createElement(R$,t))},qb=w.memo(z$,Fb);qb.displayName="XAxis";var B$=["type"],F$=["dangerouslySetInnerHTML","ticks","scale"],q$=["id","scale"];function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Us.apply(null,arguments)}function Tp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tp(Object(r),!0).forEach(function(n){W$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W$(e,t,r){return(t=U$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U$(e){var t=K$(e,"string");return typeof t=="symbol"?t:t+""}function K$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ks(e,t){if(e==null)return{};var r,n,i=V$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function V$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function H$(e){var t=oe(),r=S.useRef(null),n=bc(),{type:i}=e,a=Ks(e,B$),o=to(n,"yAxis",i),u=S.useMemo(()=>{if(o!=null)return kp(kp({},a),{},{type:o})},[o,a]);return S.useLayoutEffect(()=>{u!=null&&(r.current===null?t(KM(u)):r.current!==u&&t(VM({prev:r.current,next:u})),r.current=u)},[u,t]),S.useLayoutEffect(()=>()=>{r.current&&(t(HM(r.current)),r.current=null)},[t]),null}function Y$(e){var{yAxisId:t,className:r,width:n,label:i}=e,a=S.useRef(null),o=S.useRef(null),u=L(hc),s=qe(),c=oe(),l="yAxis",f=L(O=>O0(O,t)),d=L(O=>jj(O,t)),v=L(O=>E0(O,l,t,s)),h=L(O=>Ug(O,t));if(S.useLayoutEffect(()=>{if(!(n!=="auto"||!f||kl(i)||S.isValidElement(i)||h==null)){var O=a.current;if(O){var E=O.getCalculatedWidth();Math.round(f.width)!==Math.round(E)&&c(YM({id:t,width:E}))}}},[v,f,c,i,t,n,h]),f==null||d==null||h==null)return null;var{dangerouslySetInnerHTML:m,ticks:p,scale:y}=e,g=Ks(e,F$),{id:b,scale:x}=h,P=Ks(h,q$);return w.createElement(Ll,Us({},g,P,{ref:a,labelRef:o,x:d.x,y:d.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:f.width,height:f.height,className:re("recharts-".concat(l," ").concat(l),r),viewBox:u,ticks:v,axisType:l}))}var G$={allowDataOverflow:we.allowDataOverflow,allowDecimals:we.allowDecimals,allowDuplicatedCategory:we.allowDuplicatedCategory,angle:we.angle,axisLine:Mt.axisLine,hide:!1,includeHidden:we.includeHidden,interval:we.interval,label:!1,minTickGap:we.minTickGap,mirror:we.mirror,orientation:we.orientation,padding:we.padding,reversed:we.reversed,scale:we.scale,tick:we.tick,tickCount:we.tickCount,tickLine:Mt.tickLine,tickSize:Mt.tickSize,type:we.type,width:we.width,yAxisId:0},X$=e=>{var t=He(e,G$);return w.createElement(w.Fragment,null,w.createElement(H$,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),w.createElement(Y$,t))},Wb=w.memo(X$,Fb);Wb.displayName="YAxis";var Z$=(e,t)=>t,Bl=_([Z$,J,Fg,_e,W0,Yt,qI,Pe],GI),Fl=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},Ub=ot("mouseClick"),Kb=Un();Kb.startListening({actionCreator:Ub,effect:(e,t)=>{var r=e.payload,n=Bl(t.getState(),Fl(r));n?.activeIndex!=null&&t.dispatch(qj({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Vs=ot("mouseMove"),Vb=Un(),_i=null;Vb.startListening({actionCreator:Vs,effect:(e,t)=>{var r=e.payload;_i!==null&&cancelAnimationFrame(_i);var n=Fl(r);_i=requestAnimationFrame(()=>{var i=t.getState(),a=gl(i,i.tooltip.settings.shared);if(a==="axis"){var o=Bl(i,n);o?.activeIndex!=null?t.dispatch(D0({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(k0())}_i=null})}});function Q$(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var Mp={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},Hb=Ye({name:"rootProps",initialState:Mp,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:Mp.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),J$=Hb.reducer,{updateOptions:e2}=Hb.actions,t2=null,r2={updatePolarOptions:(e,t)=>t.payload},Yb=Ye({name:"polarOptions",initialState:t2,reducers:r2}),{updatePolarOptions:tR}=Yb.actions,n2=Yb.reducer,Gb=ot("keyDown"),Xb=ot("focus"),ql=Un();ql.startListening({actionCreator:Gb,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=wl(i,cn(r),ei(r),ri(r)),u=o==null?-1:Number(o);if(!(!Number.isFinite(u)||u<0)){var s=Yt(r);if(a==="Enter"){var c=ma(r,"axis","hover",String(i.index));t.dispatch(Ns({active:!i.active,activeIndex:i.index,activeCoordinate:c}));return}var l=Dj(r),f=l==="left-to-right"?1:-1,d=a==="ArrowRight"?1:-1,v=u+d*f;if(!(s==null||v>=s.length||v<0)){var h=ma(r,"axis","hover",String(v));t.dispatch(Ns({active:!0,activeIndex:v.toString(),activeCoordinate:h}))}}}}}});ql.startListening({actionCreator:Xb,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=ma(r,"axis","hover",String(a));t.dispatch(Ns({active:!0,activeIndex:a,activeCoordinate:o}))}}}});var it=ot("externalEvent"),Zb=Un(),Yu=new Map;Zb.startListening({actionCreator:it,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,a=Yu.get(i);a!==void 0&&cancelAnimationFrame(a);var o=requestAnimationFrame(()=>{try{var u=t.getState(),s={activeCoordinate:AI(u),activeDataKey:H0(u),activeIndex:kr(u),activeLabel:V0(u),activeTooltipIndex:kr(u),isTooltipActive:CI(u)};r(s,n)}finally{Yu.delete(i)}});Yu.set(i,o)}}});var i2=_([un],e=>e.tooltipItemPayloads),a2=_([i2,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(a=>a.settings.graphicalItemId===r);if(n!=null){var{getPosition:i}=n;if(i!=null)return i(t)}}}),Qb=ot("touchMove"),Jb=Un();Jb.startListening({actionCreator:Qb,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=gl(n,n.tooltip.settings.shared);if(i==="axis"){var a=r.touches[0];if(a==null)return;var o=Bl(n,Fl({clientX:a.clientX,clientY:a.clientY,currentTarget:r.currentTarget}));o?.activeIndex!=null&&t.dispatch(D0({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var u,s=r.touches[0];if(document.elementFromPoint==null||s==null)return;var c=document.elementFromPoint(s.clientX,s.clientY);if(!c||!c.getAttribute)return;var l=c.getAttribute(lP),f=(u=c.getAttribute(hy))!==null&&u!==void 0?u:void 0,d=sn(n).find(m=>m.id===f);if(l==null||d==null||f==null)return;var{dataKey:v}=d,h=a2(n,l,f);t.dispatch(bl({activeDataKey:v,activeIndex:l,activeCoordinate:h,activeGraphicalItemId:f}))}}}});var o2=Im({brush:lD,cartesianAxis:GM,chartData:CT,errorBars:iN,graphicalItems:$M,layout:V1,legend:uS,options:OT,polarAxis:nM,polarOptions:n2,referenceElements:hD,rootProps:J$,tooltip:Wj,zIndex:cT}),u2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return g1({reducer:o2,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([Kb.middleware,Vb.middleware,ql.middleware,Zb.middleware,Jb.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(Gm({type:"raf"}))},devTools:{serialize:{replacer:Q$},name:"recharts-".concat(r)}})};function ew(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=qe(),a=S.useRef(null);if(i)return r;a.current==null&&(a.current=u2(t,n));var o=oc;return w.createElement(CN,{context:o,store:a.current},r)}function s2(e){var{layout:t,margin:r}=e,n=oe(),i=qe();return S.useEffect(()=>{i||(n(W1(t)),n(sy(r)))},[n,i,t,r]),null}var c2=S.memo(s2,ho);function l2(e){var t=oe();return S.useEffect(()=>{t(e2(e))},[t,e]),null}function Dp(e){var{zIndex:t,isPanorama:r}=e,n=S.useRef(null),i=oe();return S.useLayoutEffect(()=>(n.current&&i(uT({zIndex:t,element:n.current,isPanorama:r})),()=>{i(sT({zIndex:t,isPanorama:r}))}),[i,t,r]),w.createElement("g",{tabIndex:-1,ref:n})}function Np(e){var{children:t,isPanorama:r}=e,n=L(ZI);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return w.createElement(w.Fragment,null,i.map(o=>w.createElement(Dp,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>w.createElement(Dp,{key:o,zIndex:o,isPanorama:r})))}var f2=["children"];function d2(e,t){if(e==null)return{};var r,n,i=v2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function v2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pa.apply(null,arguments)}var h2={width:"100%",height:"100%",display:"block"},p2=S.forwardRef((e,t)=>{var r=yc(),n=gc(),i=Ay();if(!ht(r)||!ht(n))return null;var{children:a,otherAttributes:o,title:u,desc:s}=e,c,l;return o!=null&&(typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?l=o.role:l=i?"application":void 0),w.createElement(Gs,Pa({},o,{title:u,desc:s,role:l,tabIndex:c,width:r,height:n,style:h2,ref:t}),a)}),m2=e=>{var{children:t}=e,r=L(qa);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return w.createElement(Gs,{width:n,height:i,x:o,y:a},t)},$p=S.forwardRef((e,t)=>{var{children:r}=e,n=d2(e,f2),i=qe();return i?w.createElement(m2,null,w.createElement(Np,{isPanorama:!0},r)):w.createElement(p2,Pa({ref:t},n),w.createElement(Np,{isPanorama:!1},r))});function y2(){var e=oe(),[t,r]=S.useState(null),n=L(cP);return S.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;W(a)&&a!==n&&e(K1(a))}},[t,e,n]),r}function Rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rp(Object(r),!0).forEach(function(n){b2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b2(e,t,r){return(t=w2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w2(e){var t=x2(e,"string");return typeof t=="symbol"?t:t+""}function x2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tr.apply(null,arguments)}var O2=()=>(RT(),null);function Sa(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var P2=S.forwardRef((e,t)=>{var r,n,i=S.useRef(null),[a,o]=S.useState({containerWidth:Sa((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Sa((n=e.style)===null||n===void 0?void 0:n.height)}),u=S.useCallback((c,l)=>{o(f=>{var d=Math.round(c),v=Math.round(l);return f.containerWidth===d&&f.containerHeight===v?f:{containerWidth:d,containerHeight:v}})},[]),s=S.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:l,height:f}=c.getBoundingClientRect();u(l,f);var d=h=>{var m=h[0];if(m!=null){var{width:p,height:y}=m.contentRect;u(p,y)}},v=new ResizeObserver(d);v.observe(c),i.current=v}},[t,u]);return S.useEffect(()=>()=>{var c=i.current;c?.disconnect()},[u]),w.createElement(w.Fragment,null,w.createElement(Jr,{width:a.containerWidth,height:a.containerHeight}),w.createElement("div",tr({ref:s},e)))}),S2=S.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=S.useState({containerWidth:Sa(r),containerHeight:Sa(n)}),o=S.useCallback((s,c)=>{a(l=>{var f=Math.round(s),d=Math.round(c);return l.containerWidth===f&&l.containerHeight===d?l:{containerWidth:f,containerHeight:d}})},[]),u=S.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null){var{width:c,height:l}=s.getBoundingClientRect();o(c,l)}},[t,o]);return w.createElement(w.Fragment,null,w.createElement(Jr,{width:i.containerWidth,height:i.containerHeight}),w.createElement("div",tr({ref:u},e)))}),E2=S.forwardRef((e,t)=>{var{width:r,height:n}=e;return w.createElement(w.Fragment,null,w.createElement(Jr,{width:r,height:n}),w.createElement("div",tr({ref:t},e)))}),_2=S.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?w.createElement(S2,tr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?w.createElement(E2,tr({},e,{width:r,height:n,ref:t})):w.createElement(w.Fragment,null,w.createElement(Jr,{width:r,height:n}),w.createElement("div",tr({ref:t},e)))});function A2(e){return e?P2:_2}var tw=S.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:u,onMouseDown:s,onMouseEnter:c,onMouseLeave:l,onMouseMove:f,onMouseUp:d,onTouchEnd:v,onTouchMove:h,onTouchStart:m,style:p,width:y,responsive:g,dispatchTouchEvents:b=!0}=e,x=S.useRef(null),P=oe(),[O,E]=S.useState(null),[A,k]=S.useState(null),N=y2(),j=pc(),M=j?.width>0?j.width:y,C=j?.height>0?j.height:i,z=S.useCallback(I=>{N(I),typeof t=="function"&&t(I),E(I),k(I),I!=null&&(x.current=I)},[N,t,E,k]),V=S.useCallback(I=>{P(Ub(I)),P(it({handler:a,reactEvent:I}))},[P,a]),U=S.useCallback(I=>{P(Vs(I)),P(it({handler:c,reactEvent:I}))},[P,c]),B=S.useCallback(I=>{P(k0()),P(it({handler:l,reactEvent:I}))},[P,l]),Y=S.useCallback(I=>{P(Vs(I)),P(it({handler:f,reactEvent:I}))},[P,f]),F=S.useCallback(()=>{P(Xb())},[P]),ve=S.useCallback(I=>{P(Gb(I.key))},[P]),fe=S.useCallback(I=>{P(it({handler:o,reactEvent:I}))},[P,o]),Ae=S.useCallback(I=>{P(it({handler:u,reactEvent:I}))},[P,u]),Ge=S.useCallback(I=>{P(it({handler:s,reactEvent:I}))},[P,s]),ke=S.useCallback(I=>{P(it({handler:d,reactEvent:I}))},[P,d]),At=S.useCallback(I=>{P(it({handler:m,reactEvent:I}))},[P,m]),or=S.useCallback(I=>{b&&P(Qb(I)),P(it({handler:h,reactEvent:I}))},[P,b,h]),Me=S.useCallback(I=>{P(it({handler:v,reactEvent:I}))},[P,v]),ln=A2(g);return w.createElement(jl.Provider,{value:O},w.createElement(Kp.Provider,{value:A},w.createElement(ln,{width:M??p?.width,height:C??p?.height,className:re("recharts-wrapper",n),style:g2({position:"relative",cursor:"default",width:M,height:C},p),onClick:V,onContextMenu:fe,onDoubleClick:Ae,onFocus:F,onKeyDown:ve,onMouseDown:Ge,onMouseEnter:U,onMouseLeave:B,onMouseMove:Y,onMouseUp:ke,onTouchEnd:Me,onTouchMove:or,onTouchStart:At,ref:z},w.createElement(O2,null),r)))}),C2=["width","height","responsive","children","className","style","compact","title","desc"];function j2(e,t){if(e==null)return{};var r,n,i=I2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function I2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var T2=S.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:u,compact:s,title:c,desc:l}=e,f=j2(e,C2),d=Ot(f);return s?w.createElement(w.Fragment,null,w.createElement(Jr,{width:r,height:n}),w.createElement($p,{otherAttributes:d,title:c,desc:l},a)):w.createElement(tw,{className:o,style:u,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},w.createElement($p,{otherAttributes:d,title:c,desc:l,ref:t},w.createElement(mD,null,a)))});function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hs.apply(null,arguments)}var k2={top:5,right:5,bottom:5,left:5},M2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:k2,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},D2=S.forwardRef(function(t,r){var n,i=He(t.categoricalChartProps,M2),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:u,tooltipPayloadSearcher:s,categoricalChartProps:c}=t,l={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:u,tooltipPayloadSearcher:s,eventEmitter:void 0};return w.createElement(ew,{preloadedState:{options:l},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:a},w.createElement(sD,{chartData:c.data}),w.createElement(c2,{layout:i.layout,margin:i.margin}),w.createElement(l2,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),w.createElement(T2,Hs({},i,{ref:r})))});exports.Bar=Bb;exports.CartesianChart=D2;exports.CartesianGrid=kb;exports.CartesianLabelListContextProvider=hb;exports.Cell=Il;exports.Curve=Oc;exports.DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME=hy;exports.DefaultZIndexes=$e;exports.Global=Yn;exports.GraphicalItemClipPath=Nb;exports.Icon=Bp;exports.JavascriptAnimate=Va;exports.LabelListFromLabelProp=mb;exports.Layer=Pt;exports.Move=sw;exports.PeriodRange=Sw;exports.RechartsStoreProvider=ew;exports.RechartsWrapper=tw;exports.Rectangle=Pc;exports.RegisterGraphicalItemId=Pb;exports.ReportChartMargin=qP;exports.ReportChartSize=Jr;exports.ResponsiveContainer=LP;exports.SetCartesianGraphicalItem=Eb;exports.SetComputedData=cD;exports.SetErrorBarContext=Db;exports.SetLegendPayload=Ob;exports.SetTooltipEntrySettings=xb;exports.Shape=wb;exports.Surface=Gs;exports.Symbols=rc;exports.Tooltip=KT;exports.TooltipPortalContext=jl;exports.XAxis=qb;exports.YAxis=Wb;exports.ZIndexLayer=_t;exports.adaptEventHandlers=vm;exports.adaptEventsOfChild=ja;exports.arrayTooltipSearcher=wT;exports.clsx=re;exports.commonjsGlobal=cw;exports.createLucideIcon=Fp;exports.createSelector=_;exports.findAllByType=bb;exports.get=Or;exports.getAugmentedNamespace=lw;exports.getBandSizeOfAxis=Cn;exports.getCateCoordinateOfLine=rP;exports.getDefaultExportFromCjs=zt;exports.getLinearRegression=xx;exports.getNormalizedStackId=dy;exports.getStackSeriesIdentifier=io;exports.getTooltipNameProp=vc;exports.getUniqPayload=Om;exports.getValueByDataKey=me;exports.implicitZAxis=Kg;exports.interpolate=Oe;exports.isCategoricalAxis=Bt;exports.isClipDot=cM;exports.isNan=ft;exports.isNonEmptyArray=Mx;exports.isNotNil=Le;exports.isNullish=le;exports.isNumber=R;exports.isPositiveNumber=ht;exports.isWellBehavedNumber=W;exports.mouseLeaveItem=T0;exports.noop=Dr;exports.propsAreEqual=ho;exports.requireIdentity=nc;exports.requireIteratee=xm;exports.resolveDefaultProps=He;exports.selectActiveTooltipIndex=kr;exports.selectAxisWithScale=Tr;exports.selectChartBaseValue=AC;exports.selectChartDataWithIndexesIfNotInPanoramaPosition3=xg;exports.selectChartDataWithIndexesIfNotInPanoramaPosition4=el;exports.selectChartLayout=J;exports.selectLegendPayload=DO;exports.selectStackGroups=ha;exports.selectTicksOfGraphicalItem=Ir;exports.selectUnfilteredCartesianItems=so;exports.selectXAxisIdFromGraphicalItemId=ir;exports.selectYAxisIdFromGraphicalItemId=ar;exports.selectZAxisWithScale=Mj;exports.setActiveClickItemIndex=M0;exports.setActiveMouseOverItemIndex=bl;exports.setLegendSettings=nS;exports.setLegendSize=rS;exports.svgPropertiesAndEvents=Be;exports.svgPropertiesAndEventsFromUnknown=Cw;exports.svgPropertiesNoEvents=Ot;exports.svgPropertiesNoEventsFromUnknown=Ea;exports.useActiveTooltipDataPoints=QM;exports.useAnimationId=Ha;exports.useAppDispatch=oe;exports.useAppSelector=L;exports.useCartesianChartLayout=bc;exports.useChartHeight=gc;exports.useChartLayout=Nr;exports.useChartName=X0;exports.useChartWidth=yc;exports.useElementOffset=Cm;exports.useIsPanorama=qe;exports.useLegendPortal=Nw;exports.useMargin=BP;exports.useMouseClickItemDispatch=Nl;exports.useMouseEnterItemDispatch=Ml;exports.useMouseLeaveItemDispatch=Dl;exports.useNeedsClip=zl;exports.usePlotArea=$l;exports.useViewBox=Vn;
|