@tsiky/components-r19 1.6.3 → 1.6.4
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-BkF02VRB.cjs +134 -0
- package/dist/CartesianChart-CMG3acC4.js +18584 -0
- package/dist/chart.cjs.js +31 -31
- package/dist/chart.d.ts +1 -0
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +6543 -5667
- package/dist/components-r19.css +1 -1
- package/dist/index.cjs.js +1644 -1644
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15782 -15412
- package/dist/src/components/AreaChartV2/AreaChartV2.d.ts +1 -0
- package/dist/src/components/AreaChartV2/AreaChartV2.d.ts.map +1 -1
- package/dist/src/components/ChartV2/ChartV2.d.ts +21 -0
- package/dist/src/components/ChartV2/ChartV2.d.ts.map +1 -1
- package/dist/src/components/DatePicker/DatePicker.d.ts +5 -1
- package/dist/src/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/src/components/IndicatorItemV2/IndicatorItemV2.d.ts +12 -2
- package/dist/src/components/IndicatorItemV2/IndicatorItemV2.d.ts.map +1 -1
- package/dist/src/components/InfoBanner/InfoBanner.d.ts +35 -0
- package/dist/src/components/InfoBanner/InfoBanner.d.ts.map +1 -0
- package/dist/src/components/InfoBanner/index.d.ts +2 -0
- package/dist/src/components/InfoBanner/index.d.ts.map +1 -0
- package/dist/src/components/NavBarV2/NavBarV2.d.ts +3 -1
- package/dist/src/components/NavBarV2/NavBarV2.d.ts.map +1 -1
- package/dist/src/components/NavItemV2/NavItemV2.d.ts.map +1 -1
- package/dist/src/components/PieChartV2/PieChartV2.d.ts +19 -0
- package/dist/src/components/PieChartV2/PieChartV2.d.ts.map +1 -0
- package/dist/src/components/PieChartV2/index.d.ts +2 -0
- package/dist/src/components/PieChartV2/index.d.ts.map +1 -0
- package/dist/src/components/Select/Select.d.ts +1 -0
- package/dist/src/components/Select/Select.d.ts.map +1 -1
- package/dist/src/components/SubHeaderTitle/SubHeaderTitle.d.ts +1 -2
- package/dist/src/components/SubHeaderTitle/SubHeaderTitle.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/Pagination.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableBody.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableHeader.d.ts +2 -2
- package/dist/src/components/TableauxComponent/TableHeader.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableLayout.d.ts +1 -1
- package/dist/src/components/TableauxComponent/TableLayout.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/index.d.ts +2 -0
- package/dist/src/components/TableauxComponent/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";const S=require("react"),ue=require("react/jsx-runtime"),Qp=require("react-dom");function vw(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=vw(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 hw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),af=e=>{const t=pw(e);return t.charAt(0).toUpperCase()+t.slice(1)},Jp=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),mw=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 yw={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 em=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,...yw,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Jp("lucide",i),...!a&&!mw(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 tm=(e,t)=>{const r=S.forwardRef(({className:n,...i},a)=>S.createElement(em,{ref:a,iconNode:t,className:Jp(`lucide-${hw(af(e))}`,`lucide-${e}`,n),...i}));return r.displayName=af(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 gw=[["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"}]],bw=tm("move",gw);var ww=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 xw(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 Ow="_wrapper_1ogd3_1",Pw="_label_1ogd3_14",Sw="_labelText_1ogd3_22",Ew="_calendarIcon_1ogd3_26",_w="_rangeRow_1ogd3_31",Aw="_dateWrap_1ogd3_39",Cw="_innerLabel_1ogd3_47",Iw="_dateInput_1ogd3_52",Tw="_sepWrap_1ogd3_65",jw="_separator_1ogd3_72",kw="_samplingWrap_1ogd3_77",Mw="_samplingLabel_1ogd3_86",Dw="_samplingSelect_1ogd3_90",Ie={wrapper:Ow,label:Pw,labelText:Sw,calendarIcon:Ew,rangeRow:_w,dateWrap:Aw,innerLabel:Cw,dateInput:Iw,sepWrap:Tw,separator:jw,samplingWrap:kw,samplingLabel:Mw,samplingSelect:Dw};function Nw({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:`${Ie.wrapper} ${u}`,ref:p,children:[ue.jsxs("label",{className:Ie.label,"aria-hidden":!0,children:[ue.jsxs("svg",{className:Ie.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:Ie.labelText,children:s.period})]}),ue.jsxs("div",{className:Ie.rangeRow,children:[ue.jsxs("div",{className:Ie.dateWrap,children:[ue.jsx("label",{className:Ie.innerLabel,htmlFor:"period-from",children:s.start}),ue.jsx("input",{id:"period-from",className:Ie.dateInput,type:"date",value:l,onChange:g=>f(g.target.value),"aria-label":s.start})]}),ue.jsx("div",{className:Ie.sepWrap,"aria-hidden":!0,children:ue.jsx("span",{className:Ie.separator,children:"—"})}),ue.jsxs("div",{className:Ie.dateWrap,children:[ue.jsx("label",{className:Ie.innerLabel,htmlFor:"period-to",children:s.end}),ue.jsx("div",{className:Ie.inputWithIcon,children:ue.jsx("input",{id:"period-to",className:Ie.dateInput,type:"date",value:d,onChange:g=>v(g.target.value),"aria-label":s.end})})]}),ue.jsxs("div",{className:Ie.samplingWrap,children:[ue.jsx("label",{className:Ie.samplingLabel,htmlFor:"period-sampling",children:s.sampling}),ue.jsxs("select",{id:"period-sampling",className:Ie.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 rm(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=rm(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=rm(e))&&(n&&(n+=" "),n+=t);return n}var $w=["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 Xs(e){if(typeof e!="string")return!1;var t=$w;return t.includes(e)}var Rw=["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"],Lw=new Set(Rw);function nm(e){return typeof e!="string"?!1:Lw.has(e)}function im(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)&&(nm(r)||im(r))&&(t[r]=e[r]);return t}function Aa(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 qe(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(nm(r)||im(r)||Xs(r))&&(t[r]=e[r]);return t}function zw(e){return e==null?null:S.isValidElement(e)?qe(e.props):typeof e=="object"&&!Array.isArray(e)?qe(e):null}var Bw=["children","width","height","viewBox","className","style","title","desc"];function Zu(){return Zu=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},Zu.apply(null,arguments)}function Fw(e,t){if(e==null)return{};var r,n,i=qw(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 qw(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 Zs=S.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:s,desc:c}=e,l=Fw(e,Bw),f=a||{width:n,height:i,x:0,y:0},d=re("recharts-surface",o);return w.createElement("svg",Zu({},qe(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)}),Ww=["children","className"];function Qu(){return Qu=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},Qu.apply(null,arguments)}function Uw(e,t){if(e==null)return{};var r,n,i=Vw(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 Vw(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=Uw(e,Ww),a=re("recharts-layer",n);return w.createElement("g",Qu({className:a},qe(i),{ref:t}),r)}),am=S.createContext(null),Kw=()=>S.useContext(am);function te(e){return function(){return e}}const om=Math.cos,Ni=Math.sin,pt=Math.sqrt,$i=Math.PI,Ca=2*$i,Ju=Math.PI,es=2*Ju,cr=1e-6,Hw=es-cr;function um(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Gw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return um;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 Yw{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?um:Gw(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((Ju-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%es+es),d>Hw?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>=Ju)},${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 Qs(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 Yw(t)}function Js(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function sm(e){this._context=e}sm.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 Ia(e){return new sm(e)}function cm(e){return e[0]}function lm(e){return e[1]}function fm(e,t){var r=te(!0),n=null,i=Ia,a=null,o=Qs(u);e=typeof e=="function"?e:e===void 0?cm:te(e),t=typeof t=="function"?t:t===void 0?lm:te(t);function u(s){var c,l=(s=Js(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 ui(e,t,r){var n=null,i=te(!0),a=null,o=Ia,u=null,s=Qs(c);e=typeof e=="function"?e:e===void 0?cm:te(+e),t=typeof t=="function"?t:te(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?lm:te(+r);function c(f){var d,v,h,m=(f=Js(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 fm().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 dm{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 Xw(e){return new dm(e,!0)}function Zw(e){return new dm(e,!1)}const ec={draw(e,t){const r=pt(t/$i);e.moveTo(r,0),e.arc(0,0,r,0,Ca)}},Qw={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()}},vm=pt(1/3),Jw=vm*2,ex={draw(e,t){const r=pt(t/Jw),n=r*vm;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},tx={draw(e,t){const r=pt(t),n=-r/2;e.rect(n,n,r,r)}},rx=.8908130915292852,hm=Ni($i/10)/Ni(7*$i/10),nx=Ni(Ca/10)*hm,ix=-om(Ca/10)*hm,ax={draw(e,t){const r=pt(t*rx),n=nx*r,i=ix*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ca*a/5,u=om(o),s=Ni(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},yo=pt(3),ox={draw(e,t){const r=-pt(t/(yo*3));e.moveTo(0,r*2),e.lineTo(-yo*r,-r),e.lineTo(yo*r,-r),e.closePath()}},rt=-.5,nt=pt(3)/2,ts=1/pt(12),ux=(ts/2+1)*3,sx={draw(e,t){const r=pt(t/ux),n=r/2,i=r*ts,a=n,o=r*ts+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 cx(e,t){let r=null,n=Qs(i);e=typeof e=="function"?e:te(e||ec),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 Ri(){}function Li(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 pm(e){this._context=e}pm.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:Li(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:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lx(e){return new pm(e)}function mm(e){this._context=e}mm.prototype={areaStart:Ri,areaEnd:Ri,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:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fx(e){return new mm(e)}function ym(e){this._context=e}ym.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:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dx(e){return new ym(e)}function gm(e){this._context=e}gm.prototype={areaStart:Ri,areaEnd:Ri,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 vx(e){return new gm(e)}function of(e){return e<0?-1:1}function uf(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(of(a)+of(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function sf(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function go(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 zi(e){this._context=e}zi.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:go(this,this._t0,sf(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,go(this,sf(this,r=uf(this,e,t)),r);break;default:go(this,this._t0,r=uf(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function bm(e){this._context=new wm(e)}(bm.prototype=Object.create(zi.prototype)).point=function(e,t){zi.prototype.point.call(this,t,e)};function wm(e){this._context=e}wm.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 hx(e){return new zi(e)}function px(e){return new bm(e)}function xm(e){this._context=e}xm.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=cf(e),i=cf(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 cf(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 mx(e){return new xm(e)}function Ta(e,t){this._context=e,this._t=t}Ta.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 yx(e){return new Ta(e,.5)}function gx(e){return new Ta(e,0)}function bx(e){return new Ta(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 rs(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function wx(e,t){return e[t]}function xx(e){const t=[];return t.key=e,t}function Ox(){var e=te([]),t=rs,r=xr,n=wx;function i(a){var o=Array.from(e.apply(this,arguments),xx),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=Js(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?rs:typeof a=="function"?a:te(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??xr,i):r},i}function Px(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 Sx(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 Ex(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 bo={},wo={},lf;function _x(){return lf||(lf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t}(wo)),wo}var xo={},ff;function Om(){return ff||(ff=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}(xo)),xo}var Oo={},df;function tc(){return df||(df=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}(Oo)),Oo}var Po={},So={},vf;function Ax(){return vf||(vf=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}(So)),So}var hf;function rc(){return hf||(hf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ax(),r=tc();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}(Po)),Po}var pf;function nc(){return pf||(pf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_x(),r=Om(),n=tc(),i=rc();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}(bo)),bo}var Eo,mf;function Cx(){return mf||(mf=1,Eo=nc().get),Eo}var Ix=Cx();const Or=zt(Ix);var Tx=4;function Jt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tx,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 ze=e=>e===0?0:e>0?1:-1,dt=e=>typeof e=="number"&&e!=+e,Pr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,R=e=>(typeof e=="number"||e instanceof Number)&&!dt(e),St=e=>R(e)||typeof e=="string",jx=0,En=e=>{var t=++jx;return"".concat(e||"").concat(t)},ot=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 dt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},Pm=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 Se(e,t,r){return R(e)&&R(t)?Jt(e+r*(t-e)):t}function Sm(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Or(n,t))===r)}var kx=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",Fn=e=>le(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Be(e){return e!=null}function Dr(){}var Mx=["type","size","sizeType"];function ns(){return ns=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},ns.apply(null,arguments)}function yf(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 gf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yf(Object(r),!0).forEach(function(n){Dx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dx(e,t,r){return(t=Nx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nx(e){var t=$x(e,"string");return typeof t=="symbol"?t:t+""}function $x(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 Rx(e,t){if(e==null)return{};var r,n,i=Lx(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 Lx(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 Em={symbolCircle:ec,symbolCross:Qw,symbolDiamond:ex,symbolSquare:tx,symbolStar:ax,symbolTriangle:ox,symbolWye:sx},zx=Math.PI/180,Bx=e=>{var t="symbol".concat(Fn(e));return Em[t]||ec},Fx=(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*zx;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}},qx=(e,t)=>{Em["symbol".concat(Fn(e))]=t},ic=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Rx(e,Mx),a=gf(gf({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=Bx(o),v=cx().type(d).size(Fx(r,n,o)),h=v();if(h!==null)return h},{className:s,cx:c,cy:l}=a,f=qe(a);return R(c)&&R(l)&&R(r)?w.createElement("path",ns({},f,{className:re("recharts-symbols",s),transform:"translate(".concat(c,", ").concat(l,")"),d:u()})):null};ic.registerSymbol=qx;var _m=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Am=(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=>{Xs(i)&&(n[i]=a=>r[i](r,a))}),n},Wx=(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];Xs(i)&&typeof a=="function"&&(n||(n={}),n[i]=Wx(a,t,r))}),n},Ux=e=>Array.isArray(e)&&e.length>0;function bf(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 Vx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bf(Object(r),!0).forEach(function(n){Kx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kx(e,t,r){return(t=Hx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hx(e){var t=Gx(e,"string");return typeof t=="symbol"?t:t+""}function Gx(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=Vx({},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 _o={},Ao={},wf;function Yx(){return wf||(wf=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}(Ao)),Ao}var Co={},xf;function Xx(){return xf||(xf=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}(Co)),Co}var Io={},Of;function ac(){return Of||(Of=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t}(Io)),Io}var To={},jo={},ko={},Pf;function Zx(){return Pf||(Pf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t}(ko)),ko}var Sf;function oc(){return Sf||(Sf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zx();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r}(jo)),jo}var Mo={},Ef;function Qx(){return Ef||(Ef=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t}(Mo)),Mo}var _f;function Jx(){return _f||(_f=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oc(),r=Qx();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n}(To)),To}var Do={},No={},Af;function eO(){return Af||(Af=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nc();function r(n){return function(i){return t.get(i,n)}}e.property=r}(No)),No}var $o={},Ro={},Lo={},zo={},Cf;function Cm(){return Cf||(Cf=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}(zo)),zo}var Bo={},If;function Im(){return If||(If=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}(Bo)),Bo}var Fo={},Tf;function Tm(){return Tf||(Tf=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}(Fo)),Fo}var jf;function tO(){return jf||(jf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cm(),r=Im(),n=Tm();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}(Lo)),Lo}var kf;function jm(){return kf||(kf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tO();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r}(Ro)),Ro}var qo={},Wo={},Uo={},Mf;function rO(){return Mf||(Mf=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}(Uo)),Uo}var Vo={},Df;function uc(){return Df||(Df=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}(Vo)),Vo}var Ko={},Nf;function km(){return Nf||(Nf=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}(Ko)),Ko}var Ho={},$f;function nO(){return $f||($f=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t}(Ho)),Ho}var Rf;function Mm(){return Rf||(Rf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rO(),r=uc(),n=km(),i=Im(),a=nO();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}(Wo)),Wo}var Lf;function iO(){return Lf||(Lf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Mm();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r}(qo)),qo}var zf;function aO(){return zf||(zf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jm(),r=iO();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n}($o)),$o}var Go={},Yo={},Xo={},Bf;function oO(){return Bf||(Bf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Mm(),r=uc(),n=km();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}(Xo)),Xo}var Ff;function uO(){return Ff||(Ff=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oO();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r}(Yo)),Yo}var Zo={},Qo={},qf;function Dm(){return qf||(qf=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}(Qo)),Qo}var Jo={},Wf;function sO(){return Wf||(Wf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uc();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r}(Jo)),Jo}var Uf;function cO(){return Uf||(Uf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Om(),r=Dm(),n=sO(),i=rc();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}(Zo)),Zo}var Vf;function lO(){return Vf||(Vf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jm(),r=tc(),n=uO(),i=nc(),a=cO();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}(Go)),Go}var Kf;function Nm(){return Kf||(Kf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ac(),r=eO(),n=aO(),i=lO();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}(Do)),Do}var Hf;function fO(){return Hf||(Hf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yx(),r=Xx(),n=ac(),i=Jx(),a=Nm();function o(u,s=n.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),r.ary(a.iteratee(s),1)):[]}e.uniqBy=o}(_o)),_o}var eu,Gf;function dO(){return Gf||(Gf=1,eu=fO().uniqBy),eu}var vO=dO();const Yf=zt(vO);function $m(e,t,r){return t===!0?Yf(e,r):typeof t=="function"?Yf(e,t):e}var si={exports:{}},tu={},ci={exports:{}},ru={};/**
|
|
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 Xf;function hO(){if(Xf)return ru;Xf=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 ru.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,ru}var nu={};/**
|
|
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 Zf;function pO(){return Zf||(Zf=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;nu.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())}()),nu}var Qf;function Rm(){return Qf||(Qf=1,process.env.NODE_ENV==="production"?ci.exports=hO():ci.exports=pO()),ci.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 Jf;function mO(){if(Jf)return tu;Jf=1;var e=S,t=Rm();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 tu.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},tu}var iu={};/**
|
|
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 ed;function yO(){return ed||(ed=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=Rm(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,a=t.useRef,o=t.useEffect,u=t.useMemo,s=t.useDebugValue;iu.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())}()),iu}var td;function gO(){return td||(td=1,process.env.NODE_ENV==="production"?si.exports=mO():si.exports=yO()),si.exports}var bO=gO(),sc=S.createContext(null),wO=e=>e,ne=()=>{var e=S.useContext(sc);return e?e.store.dispatch:wO},Ii=()=>{},xO=()=>Ii,OO=(e,t)=>e===t;function L(e){var t=S.useContext(sc),r=S.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ii,[t,e]);return bO.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:xO,t?t.store.getState:Ii,t?t.store.getState:Ii,r,OO)}var PO=(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})}}},SO=(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})}},EO={inputStabilityCheck:"once",identityFunctionCheck:"once"};function _O(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function AO(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function CO(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 rd=e=>Array.isArray(e)?e:[e];function IO(e){const t=Array.isArray(e[0])?e[0]:e;return CO(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function nd(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var TO=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...EO,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:PO},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:SO}}},jO=class{constructor(e){this.value=e}deref(){return this.value}},kO=typeof WeakRef<"u"?WeakRef:jO,MO=0,id=1;function li(){return{s:MO,v:void 0,o:null,p:null}}function Lm(e,t={}){let r=li();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=li(),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=li(),h.set(v,u)):u=m}}const c=u;let l;if(u.s===id)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 kO(l):l}return c.s=id,c.v=l,l}return o.clearCache=()=>{r=li(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function DO(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()),_O(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...s},{memoize:f,memoizeOptions:d=[],argsMemoize:v=Lm,argsMemoizeOptions:h=[],devModeChecks:m={}}=l,p=rd(d),y=rd(h),g=IO(i),b=f(function(){return a++,c.apply(null,arguments)},...p);let x=!0;const P=v(function(){o++;const E=nd(g,arguments);if(u=b.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:k}=TO(x,m);if(A.shouldRun&&A.run(c,E,u),k.shouldRun){const N=nd(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 _=DO(Lm),NO=Object.assign((e,t=_)=>{AO(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:()=>NO}),au={},ou={},uu={},ad;function $O(){return ad||(ad=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}(uu)),uu}var su={},cu={},od;function zm(){return od||(od=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t}(cu)),cu}var ud;function RO(){return ud||(ud=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zm(),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}(su)),su}var sd;function LO(){return sd||(sd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$O(),r=RO(),n=rc();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}(ou)),ou}var lu={},cd;function zO(){return cd||(cd=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}(lu)),lu}var fu={},ld;function Bm(){return ld||(ld=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dm(),r=oc(),n=Cm(),i=Tm();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}(fu)),fu}var fd;function BO(){return fd||(fd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LO(),r=zO(),n=Bm();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}(au)),au}var du,dd;function FO(){return dd||(dd=1,du=BO().sortBy),du}var qO=FO();const ka=zt(qO);var Fm=e=>e.legend.settings,WO=e=>e.legend.size,UO=e=>e.legend.payload,VO=_([UO,Fm],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?ka(n,r):n}),fi=1;function qm(){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)>fi||Math.abs(o.left-t.left)>fi||Math.abs(o.top-t.top)>fi||Math.abs(o.width-t.width)>fi)&&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 Te(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 KO=typeof Symbol=="function"&&Symbol.observable||"@@observable",vd=KO,vu=()=>Math.random().toString(36).substring(7).split("").join("."),HO={INIT:`@@redux/INIT${vu()}`,REPLACE:`@@redux/REPLACE${vu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vu()}`},yr=HO;function qn(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 GO(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(ZO(e))return"date";if(XO(e))return"error";const r=YO(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 YO(e){return typeof e.constructor=="function"?e.constructor.name:null}function XO(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function ZO(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Yt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=GO(e)),t}function Wm(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Te(2):`Expected the root reducer to be a function. Instead, received: '${Yt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Te(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"?Te(1):`Expected the enhancer to be a function. Instead, received: '${Yt(r)}'`);return r(Wm)(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"?Te(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"?Te(4):`Expected the listener to be a function. Instead, received: '${Yt(p)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?Te(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"?Te(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(!qn(p))throw new Error(process.env.NODE_ENV==="production"?Te(7):`Actions must be plain objects. Instead, the actual type was: '${Yt(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"?Te(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"?Te(17):`Action "type" property must be a string. Instead, the actual type was: '${Yt(p.type)}'. Value was: '${p.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?Te(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"?Te(10):`Expected the nextReducer to be a function. Instead, received: '${Yt(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"?Te(11):`Expected the observer to be an object. Instead, received: '${Yt(y)}'`);function g(){const x=y;x.next&&x.next(l())}return g(),{unsubscribe:p(g)}},[vd](){return this}}}return d({type:yr.INIT}),{dispatch:d,subscribe:f,getState:l,replaceReducer:v,[vd]:h}}function hd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function QO(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(!qn(e))return`The ${a} has unexpected type of "${Yt(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 JO(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"?Te(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"?Te(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 Um(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"&&hd(`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{JO(r)}catch(o){a=o}return function(u={},s){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=QO(u,r,s,i);f&&hd(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"?Te(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 Bi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function e1(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?Te(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=Bi(...u)(i.dispatch),{...i,dispatch:a}}}function cc(e){return qn(e)&&"type"in e&&typeof e.type=="string"}var Vm=Symbol.for("immer-nothing"),pd=Symbol.for("immer-draftable"),We=Symbol.for("immer-state"),t1=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=t1[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,Fi="constructor",Ma="prototype",is="configurable",qi="enumerable",Ti="writable",_n="value",Dt=e=>!!e&&!!e[We];function vt(e){return e?Km(e)||Na(e)||!!e[pd]||!!e[Fi]?.[pd]||$a(e)||Ra(e):!1}var r1=et[Ma][Fi].toString(),md=new WeakMap;function Km(e){if(!e||!lc(e))return!1;const t=Yr(e);if(t===null||t===et[Ma])return!0;const r=et.hasOwnProperty.call(t,Fi)&&t[Fi];if(r===Object)return!0;if(!dr(r))return!1;let n=md.get(r);return n===void 0&&(n=Function.toString.call(r),md.set(r,n)),n===r1}function Da(e,t,r=!0){Wn(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 Wn(e){const t=e[We];return t?t.type_:Na(e)?1:$a(e)?2:Ra(e)?3:0}var yd=(e,t,r=Wn(e))=>r===2?e.has(t):et[Ma].hasOwnProperty.call(e,t),as=(e,t,r=Wn(e))=>r===2?e.get(t):e[t],Wi=(e,t,r,n=Wn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function n1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Na=Array.isArray,$a=e=>e instanceof Map,Ra=e=>e instanceof Set,lc=e=>typeof e=="object",dr=e=>typeof e=="function",hu=e=>typeof e=="boolean";function i1(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Ct=e=>e.copy_||e.base_,fc=e=>e.modified_?e.copy_:e.base_;function os(e,t){if($a(e))return new Map(e);if(Ra(e))return new Set(e);if(Na(e))return Array[Ma].slice.call(e);const r=Km(e);if(t===!0||t==="class_only"&&!r){const n=et.getOwnPropertyDescriptors(e);delete n[We];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Ti]===!1&&(u[Ti]=!0,u[is]=!0),(u.get||u.set)&&(n[o]={[is]:!0,[Ti]:!0,[qi]:u[qi],[_n]: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 dc(e,t=!1){return La(e)||Dt(e)||!vt(e)||(Wn(e)>1&&et.defineProperties(e,{set:di,add:di,clear:di,delete:di}),et.freeze(e),t&&Da(e,(r,n)=>{dc(n,!0)},!1)),e}function a1(){Qe(2)}var di={[_n]:a1};function La(e){return e===null||!lc(e)?!0:et.isFrozen(e)}var Ui="MapSet",us="Patches",gd="ArrayMethods",Hm={};function Sr(e){const t=Hm[e];return t||Qe(0,e),t}var bd=e=>!!Hm[e],An,Gm=()=>An,o1=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:bd(Ui)?Sr(Ui):void 0,arrayMethodsPlugin_:bd(gd)?Sr(gd):void 0});function wd(e,t){t&&(e.patchPlugin_=Sr(us),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ss(e){cs(e),e.drafts_.forEach(u1),e.drafts_=null}function cs(e){e===An&&(An=e.parent_)}var xd=e=>An=o1(An,e);function u1(e){const t=e[We];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Od(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[We].modified_&&(ss(t),Qe(4)),vt(e)&&(e=Pd(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[We].base_,e,t)}else e=Pd(t,r);return s1(t,e,!0),ss(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Vm?e:void 0}function Pd(e,t){if(La(t))return t;const r=t[We];if(!r)return Vi(t,e.handledSet_,e);if(!za(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);Zm(r,e)}return r.copy_}function s1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&dc(t,r)}function Ym(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var za=(e,t)=>e.scope_===t,c1=[];function Xm(e,t,r,n){const i=Ct(e),a=e.type_;if(n!==void 0&&as(i,n,a)===t){Wi(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Da(i,(s,c)=>{if(Dt(c)){const l=u.get(c)||[];l.push(s),u.set(c,l)}})}const o=e.draftLocations_.get(t)??c1;for(const u of o)Wi(i,u,r,a)}function l1(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!za(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=fc(a);Xm(e,a.draft_??a,o,r),Zm(a,i)})}function Zm(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)}Ym(e)}}function f1(e,t,r){const{scope_:n}=e;if(Dt(r)){const i=r[We];za(i,n)&&i.callbacks_.push(function(){ji(e);const o=fc(i);Xm(e,r,o,t)})}else vt(r)&&e.callbacks_.push(function(){const a=Ct(e);e.type_===3?a.has(r)&&Vi(r,n.handledSet_,n):as(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Vi(as(e.copy_,t,e.type_),n.handledSet_,n)})}function Vi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Dt(e)||t.has(e)||!vt(e)||La(e)||(t.add(e),Da(e,(n,i)=>{if(Dt(i)){const a=i[We];if(za(a,r)){const o=fc(a);Wi(e,n,o,e.type_),Ym(a)}}else vt(i)&&Vi(i,t,r)})),e}function d1(e,t){const r=Na(e),n={type_:r?1:0,scope_:t?t.scope_:Gm(),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=Ki;r&&(i=[n],a=Cn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var Ki={get(e,t){if(t===We)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(!yd(i,t,e.type_))return v1(e,i,t);const a=i[t];if(e.finalized_||!vt(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&i1(t))return a;if(a===pu(e.base_,t)){ji(e);const o=e.type_===1?+t:t,u=fs(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=Qm(Ct(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=pu(Ct(e),t),a=i?.[We];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(n1(r,i)&&(r!==void 0||yd(e.base_,t,e.type_)))return!0;ji(e),ls(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),f1(e,t,r)),!0},deleteProperty(e,t){return ji(e),pu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ls(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&&{[Ti]:!0,[is]:e.type_!==1||t!=="length",[qi]:n[qi],[_n]:r[t]}},defineProperty(){Qe(11)},getPrototypeOf(e){return Yr(e.base_)},setPrototypeOf(){Qe(12)}},Cn={};for(let e in Ki){let t=Ki[e];Cn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Cn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Qe(13),Cn.set.call(this,e,t,void 0)};Cn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Qe(14),Ki.set.call(this,e[0],t,r,e[0])};function pu(e,t){const r=e[We];return(r?Ct(r):e)[t]}function v1(e,t,r){const n=Qm(t,r);return n?_n in n?n[_n]:n.get?.call(e.draft_):void 0}function Qm(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 ls(e){e.modified_||(e.modified_=!0,e.parent_&&ls(e.parent_))}function ji(e){e.copy_||(e.assigned_=new Map,e.copy_=os(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var h1=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=xd(this),u=fs(o,r,void 0);let s=!0;try{a=n(u),s=!1}finally{s?ss(o):cs(o)}return wd(o,i),Od(a,o)}else if(!r||!lc(r)){if(a=n(r),a===void 0&&(a=r),a===Vm&&(a=void 0),this.autoFreeze_&&dc(a,!0),i){const o=[],u=[];Sr(us).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]},hu(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),hu(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),hu(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){vt(t)||Qe(8),Dt(t)&&(t=ft(t));const r=xd(this),n=fs(r,t,void 0);return n[We].isManual_=!0,cs(r),n}finishDraft(t,r){const n=t&&t[We];(!n||!n.isManual_)&&Qe(9);const{scope_:i}=n;return wd(i,r),Od(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(us).applyPatches_;return Dt(t)?i(t,r):this.produce(t,a=>i(a,r))}};function fs(e,t,r,n){const[i,a]=$a(t)?Sr(Ui).proxyMap_(t,r):Ra(t)?Sr(Ui).proxySet_(t,r):d1(t,r);return(r?.scope_??Gm()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?l1(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 ft(e){return Dt(e)||Qe(10,e),Jm(e)}function Jm(e){if(!vt(e)||La(e))return e;const t=e[We];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=os(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=os(e,!0);return Da(r,(i,a)=>{Wi(r,i,Jm(a))},n),t&&(t.finalized_=!1),r}var p1=new h1,ey=p1.produce;function ty(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var m1=ty(),y1=ty,g1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bi:Bi.apply(null,arguments)},b1=e=>e&&typeof e.match=="function";function ut(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=>cc(n)&&n.type===e,r}function w1(e){return typeof e=="function"&&"type"in e&&b1(e)}function x1(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 O1(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=w1}=e;return()=>r=>n=>(t(n)&&console.warn(x1(n.type)),r(n))}function ry(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 ny=class xn extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,xn.prototype)}static get[Symbol.species](){return xn}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new xn(...t[0].concat(this)):new xn(...t.concat(this))}};function Sd(e){return vt(e)?ey(e,()=>{}):e}function vi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function P1(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function S1(e,t,r){const n=iy(e,t,r);return{detectMutations(){return ay(e,t,n,r)}}}function iy(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]=iy(e,t,r[u],s))}}return a}function ay(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=ay(e,t,r.children[l],n[l],u,f);if(d.wasMutated)return d}return{wasMutated:!1}}function E1(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=P1,ignoredPaths:i,warnAfter:a=32}=e;const o=S1.bind(null,n,i);return({getState:u})=>{let s=u(),c=o(s),l;return f=>d=>{const v=ry(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 oy(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||qn(e)}function ds(e,t="",r=oy,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=ds(l,f,r,n,i,a),o))return o}}return a&&uy(e)&&a.add(e),!1}function uy(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!uy(t))return!1;return!0}function _1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=oy,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(!cc(v))return d(v);const h=d(v),m=ry(o,"SerializableStateInvariantMiddleware");return!s&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const p=ds(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=ds(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 hi(e){return typeof e=="boolean"}var A1=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new ny;if(r&&(hi(r)?o.push(m1):o.push(y1(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let u={};hi(n)||(u=n),o.unshift(E1(u))}if(i){let u={};hi(i)||(u=i),o.push(_1(u))}if(a){let u={};hi(a)||(u=a),o.unshift(O1(u))}}return o},sy="RTK_autoBatch",ae=()=>e=>({payload:e,meta:{[sy]:!0}}),Ed=e=>t=>{setTimeout(t,e)},cy=(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:Ed(10):e.type==="callback"?e.queueNotification:Ed(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?.[sy],a=!i,a&&(o||(o=!0,s(c))),n.dispatch(l)}finally{i=!0}}})},C1=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new ny(e);return n&&i.push(cy(typeof n=="object"?n:void 0)),i};function I1(e){const t=A1(),{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(qn(r))s=Um(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=Bi;i&&(l=g1({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=e1(...c),d=C1(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 Wm(s,o,h)}function ly(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 T1(e){return typeof e=="function"}function j1(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]=ly(t),a;if(T1(e))a=()=>Sd(e());else{const u=Sd(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 ey(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 k1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",M1=(e=21)=>{let t="",r=e;for(;r--;)t+=k1[Math.random()*64|0];return t},D1=Symbol.for("rtk-slice-createasyncthunk");function N1(e,t){return`${e}/${t}`}function $1({creators:e}={}){const t=e?.asyncThunk?.[D1];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(L1()):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:N1(i,b),createNotation:typeof n.reducers=="function"};B1(x)?q1(P,x,c,t):z1(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"?ly(n.extraReducers):[n.extraReducers],O={...b,...s.sliceCaseReducersByType};return j1(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=vi(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=vi(d,x,()=>new WeakMap);return vi(A,E,()=>{const k={};for(const[N,I]of Object.entries(n.selectors??{}))k[N]=R1(I,E,()=>vi(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 R1(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 Ge=$1();function L1(){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 z1({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!F1(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?ut(e,o):ut(e))}function B1(e){return e._reducerDefinitionType==="asyncThunk"}function F1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function q1({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||pi,pending:u||pi,rejected:s||pi,settled:c||pi})}function pi(){}var W1="task",fy="listener",dy="completed",vc="cancelled",U1=`task-${vc}`,V1=`task-${dy}`,vs=`${fy}-${vc}`,K1=`${fy}-${dy}`,Ba=class{constructor(e){this.code=e,this.message=`${W1} ${vc} (reason: ${e})`}name="TaskAbortError";message},hc=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?H(32):`${t} is not a function`)},Hi=()=>{},vy=(e,t=Hi)=>(e.catch(t),e),hy=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),gr=e=>{if(e.aborted)throw new Ba(e.reason)};function py(e,t){let r=Hi;return new Promise((n,i)=>{const a=()=>i(new Ba(e.reason));if(e.aborted){a();return}r=hy(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Hi})}var H1=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ba?"cancelled":"rejected",error:r}}finally{t?.()}},Gi=e=>t=>vy(py(e,t).then(r=>(gr(e),r))),my=e=>{const t=Gi(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Hr}=Object,_d={},Un="listenerMiddleware",G1=(e,t)=>{const r=n=>hy(e,()=>n.abort(e.reason));return(n,i)=>{hc(n,"taskExecutor");const a=new AbortController;r(a);const o=H1(async()=>{gr(e),gr(a.signal);const u=await n({pause:Gi(a.signal),delay:my(a.signal),signal:a.signal});return gr(a.signal),u},()=>a.abort(V1));return i?.autoJoin&&t.push(o.catch(Hi)),{result:Gi(e)(o),cancel(){a.abort(U1)}}}},Y1=(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 py(t,Promise.race(u));return gr(t),s}finally{a()}};return(n,i)=>vy(r(n,i))},yy=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=ut(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 hc(a,"options.listener"),{predicate:i,type:t,effect:a}},gy=Hr(e=>{const{type:t,predicate:r,effect:n}=yy(e);return{id:M1(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?H(22):"Unsubscribe not initialized")}}},{withTypes:()=>gy}),Ad=(e,t)=>{const{type:r,effect:n,predicate:i}=yy(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},hs=e=>{e.pending.forEach(t=>{t.abort(vs)})},X1=(e,t)=>()=>{for(const r of t.keys())hs(r);e.clear()},Cd=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},by=Hr(ut(`${Un}/add`),{withTypes:()=>by}),Z1=ut(`${Un}/removeAll`),wy=Hr(ut(`${Un}/remove`),{withTypes:()=>wy}),Q1=(...e)=>{console.error(`${Un}/error`,...e)},Vn=(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=Q1}=e;hc(o,"onError");const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),h=>{v.unsubscribe(),h?.cancelActive&&hs(v)}),s=v=>{const h=Ad(t,v)??gy(v);return u(h)};Hr(s,{withTypes:()=>s});const c=v=>{const h=Ad(t,v);return h&&(h.unsubscribe(),v.cancelActive&&hs(h)),!!h};Hr(c,{withTypes:()=>c});const l=async(v,h,m,p)=>{const y=new AbortController,g=Y1(s,y.signal),b=[];try{v.pending.add(y),n(v),await Promise.resolve(v.effect(h,Hr({},m,{getOriginalState:p,condition:(x,P)=>g(x,P).then(Boolean),take:g,delay:my(y.signal),pause:Gi(y.signal),extra:a,signal:y.signal,fork:G1(y.signal,b),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((x,P,O)=>{x!==y&&(x.abort(vs),O.delete(x))})},cancel:()=>{y.abort(vs),v.pending.delete(y)},throwIfCancelled:()=>{gr(y.signal)}})))}catch(x){x instanceof Ba||Cd(o,x,{raisedBy:"effect"})}finally{await Promise.all(b),y.abort(K1),i(v),v.pending.delete(y)}},f=X1(t,r);return{middleware:v=>h=>m=>{if(!cc(m))return h(m);if(by.match(m))return s(m.payload);if(Z1.match(m)){f();return}if(wy.match(m))return c(m.payload);let p=v.getState();const y=()=>{if(p===_d)throw new Error(process.env.NODE_ENV==="production"?H(23):`${Un}: 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,Cd(o,E,{raisedBy:"predicate"})}O&&l(P,m,v,y)}}}finally{p=_d}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 J1={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},xy=Ge({name:"chartLayout",initialState:J1,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:Oy,setLayout:eP,setChartSize:tP,setScale:rP}=xy.actions,nP=xy.reducer;function Py(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 Id(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 Vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Id(Object(r),!0).forEach(function(n){iP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Id(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iP(e,t,r){return(t=aP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aP(e){var t=oP(e,"string");return typeof t=="symbol"?t:t+""}function oP(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 uP=(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 Vr(Vr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&R(e[o]))return Vr(Vr({},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",Sy=(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},Ey=(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?ze(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(Be);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(Be):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(Be):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(Be)},sP=(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},cP=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=dt(l)?f:l;d>=0?(c[0]=a,a+=d,c[1]=a):(c[0]=o,o+=d,c[1]=o)}}}},lP=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=dt(s[1])?s[0]:s[1];c>=0?(s[0]=a,a+=c,s[1]=a):(s[0]=0,s[1]=0)}}}},fP={sign:cP,expand:Px,none:xr,silhouette:Sx,wiggle:Ex,positive:lP},dP=(e,t,r)=>{var n,i=(n=fP[r])!==null&&n!==void 0?n:xr,a=Ox().keys(t).value((u,s)=>Number(me(u,s,0))).order(rs).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 _y(e){return e==null?void 0:String(e)}function vP(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=Sm(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 Td=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},hP=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]},pP=e=>{var t=e.flat(2).filter(R);return[Math.min(...t),Math.max(...t)]},mP=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],yP=(e,t,r)=>{if(e!=null)return mP(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=Py(c,t,r),f=pP(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]))},jd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,In=(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=ka(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 Md(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Vr(Vr({},t),{},{dataKey:r,payload:n,value:i,name:a})}function pc(e,t){if(e)return String(e);if(typeof t=="string")return t}var gP=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},bP=(e,t)=>t==="centric"?e.angle:e.radius,Ft=e=>e.layout.width,qt=e=>e.layout.height,wP=e=>e.layout.scale,Ay=e=>e.layout.margin,Fa=_(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),qa=_(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Cy="data-recharts-item-index",Iy="data-recharts-item-id",Kn=60;function Dd(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?Dd(Object(r),!0).forEach(function(n){xP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xP(e,t,r){return(t=OP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OP(e){var t=PP(e,"string");return typeof t=="symbol"?t:t+""}function PP(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 SP=e=>e.brush.height;function EP(e){var t=qa(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 _P(e){var t=qa(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 AP(e){var t=Fa(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function CP(e){var t=Fa(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ye=_([Ft,qt,Ay,SP,EP,_P,AP,CP,Fm,WO],(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=mi(mi({},f),l),v=d.bottom;d.bottom+=n,d=uP(d,s,c);var h=e-d.left-d.right,m=t-d.top-d.bottom;return mi(mi({brushBottom:v},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),IP=_(ye,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),mc=_(Ft,qt,(e,t)=>({x:0,y:0,width:e,height:t})),TP=S.createContext(null),Ue=()=>S.useContext(TP)!=null,Wa=e=>e.brush,Ua=_([Wa,ye,Ay],(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})),mu={},yu={},gu={},Nd;function jP(){return Nd||(Nd=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}(gu)),gu}var $d;function kP(){return $d||($d=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jP();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}(yu)),yu}var Rd;function MP(){return Rd||(Rd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kP();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}(mu)),mu}var bu,Ld;function DP(){return Ld||(Ld=1,bu=MP().throttle),bu}var NP=DP();const $P=zt(NP);var Yi=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}},Ty=(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}},RP={width:0,height:0,overflow:"visible"},LP={width:0,overflowX:"visible"},zP={height:0,overflowY:"visible"},BP={},FP=e=>{var{width:t,height:r}=e,n=Pr(t),i=Pr(r);return n&&i?RP:n?LP:i?zP:BP};function qP(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 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 zd(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 Bd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zd(Object(r),!0).forEach(function(n){WP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WP(e,t,r){return(t=UP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UP(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 jy=S.createContext(bt.initialDimension);function KP(e){return ht(e.width)&&ht(e.height)}function ky(e){var{children:t,width:r,height:n}=e,i=S.useMemo(()=>({width:r,height:n}),[r,n]);return KP(i)?w.createElement(jy.Provider,{value:i},t):null}var yc=()=>S.useContext(jy),HP=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 I=Math.round(A),M=Math.round(k);return N.containerWidth===I&&N.containerHeight===M?N:{containerWidth:I,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:K,height:U}=z.contentRect;b(K,U),(C=p.current)===null||C===void 0||C.call(p,K,U)}};l>0&&(A=$P(A,l,{trailing:!0,leading:!1}));var k=new ResizeObserver(A),{width:N,height:I}=m.current.getBoundingClientRect();return b(N,I),k.observe(m.current),()=>{k.disconnect()}},[b,l]);var{containerWidth:x,containerHeight:P}=y;Yi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:E}=Ty(x,P,{width:i,height:a,aspect:r,maxHeight:s});return Yi(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:Bd(Bd({},h),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:s}),ref:m},w.createElement("div",{style:FP({width:i,height:a})},w.createElement(ky,{width:O,height:E},c)))}),GP=S.forwardRef((e,t)=>{var r=yc();if(ht(r.width)&&ht(r.height))return e.children;var{width:n,height:i}=qP({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=Ty(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return R(a)&&R(o)?w.createElement(ky,{width:a,height:o},e.children):w.createElement(HP,ps({},e,{width:n,height:i,ref:t}))});function gc(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 Hn=()=>{var e,t=Ue(),r=L(IP),n=L(Ua),i=(e=L(Wa))===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}},YP={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},My=()=>{var e;return(e=L(ye))!==null&&e!==void 0?e:YP},bc=()=>L(Ft),wc=()=>L(qt),XP=()=>L(e=>e.layout.margin),Z=e=>e.layout.layoutType,Nr=()=>L(Z),xc=()=>{var e=Nr();if(e==="horizontal"||e==="vertical")return e},Dy=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},ZP=()=>{var e=Nr();return e!==void 0},en=e=>{var t=ne(),r=Ue(),{width:n,height:i}=e,a=yc(),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(tP({width:o,height:u}))},[t,r,o,u]),null},QP=e=>{var{margin:t}=e,r=ne();return S.useEffect(()=>{r(Oy(t))},[r,t]),null},Ny=Symbol.for("immer-nothing"),Fd=Symbol.for("immer-draftable"),tt=Symbol.for("immer-state"),JP=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 Ve(e,...t){if(process.env.NODE_ENV!=="production"){const r=JP[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 Tn=Object.getPrototypeOf;function Xr(e){return!!e&&!!e[tt]}function Er(e){return e?$y(e)||Array.isArray(e)||!!e[Fd]||!!e.constructor?.[Fd]||Gn(e)||Ka(e):!1}var eS=Object.prototype.constructor.toString(),qd=new WeakMap;function $y(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=qd.get(r);return n===void 0&&(n=Function.toString.call(r),qd.set(r,n)),n===eS}function Xi(e,t,r=!0){Va(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 Va(e){const t=e[tt];return t?t.type_:Array.isArray(e)?1:Gn(e)?2:Ka(e)?3:0}function ms(e,t){return Va(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ry(e,t,r){const n=Va(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function tS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Gn(e){return e instanceof Map}function Ka(e){return e instanceof Set}function lr(e){return e.copy_||e.base_}function ys(e,t){if(Gn(e))return new Map(e);if(Ka(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=$y(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(Tn(e),n)}else{const n=Tn(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Oc(e,t=!1){return Ha(e)||Xr(e)||!Er(e)||(Va(e)>1&&Object.defineProperties(e,{set:yi,add:yi,clear:yi,delete:yi}),Object.freeze(e),t&&Object.values(e).forEach(r=>Oc(r,!0))),e}function rS(){Ve(2)}var yi={value:rS};function Ha(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var nS={};function _r(e){const t=nS[e];return t||Ve(0,e),t}var jn;function Ly(){return jn}function iS(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Wd(e,t){t&&(_r("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function gs(e){bs(e),e.drafts_.forEach(aS),e.drafts_=null}function bs(e){e===jn&&(jn=e.parent_)}function Ud(e){return jn=iS(jn,e)}function aS(e){const t=e[tt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[tt].modified_&&(gs(t),Ve(4)),Er(e)&&(e=Zi(t,e),t.parent_||Qi(t,e)),t.patches_&&_r("Patches").generateReplacementPatches_(r[tt].base_,e,t.patches_,t.inversePatches_)):e=Zi(t,r,[]),gs(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ny?e:void 0}function Zi(e,t,r){if(Ha(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[tt];if(!i)return Xi(t,(a,o)=>Kd(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Qi(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),Xi(o,(s,c)=>Kd(e,i,a,s,c,r,u),n),Qi(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=Ha(i);if(!(u&&!o)){if(process.env.NODE_ENV!=="production"&&i===r&&Ve(5),Xr(i)){const s=a&&t&&t.type_!==3&&!ms(t.assigned_,n)?a.concat(n):void 0,c=Zi(e,i,s);if(Ry(r,n,c),Xr(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;Zi(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Gn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Qi(e,i)}}}function Qi(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Oc(t,r)}function oS(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Ly(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Pc;r&&(i=[n],a=kn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var Pc={get(e,t){if(t===tt)return e;const r=lr(e);if(!ms(r,t))return uS(e,r,t);const n=r[t];return e.finalized_||!Er(n)?n:n===wu(e.base_,t)?(xu(e),e.copy_[t]=xs(n,e)):n},has(e,t){return t in lr(e)},ownKeys(e){return Reflect.ownKeys(lr(e))},set(e,t,r){const n=zy(lr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=wu(lr(e),t),a=i?.[tt];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(tS(r,i)&&(r!==void 0||ms(e.base_,t)))return!0;xu(e),ws(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 wu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xu(e),ws(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(){Ve(11)},getPrototypeOf(e){return Tn(e.base_)},setPrototypeOf(){Ve(12)}},kn={};Xi(Pc,(e,t)=>{kn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});kn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ve(13),kn.set.call(this,e,t,void 0)};kn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ve(14),Pc.set.call(this,e[0],t,r,e[0])};function wu(e,t){const r=e[tt];return(r?lr(r):e)[t]}function uS(e,t,r){const n=zy(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function zy(e,t){if(!(t in e))return;let r=Tn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Tn(r)}}function ws(e){e.modified_||(e.modified_=!0,e.parent_&&ws(e.parent_))}function xu(e){e.copy_||(e.copy_=ys(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var sS=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"&&Ve(6),n!==void 0&&typeof n!="function"&&Ve(7);let i;if(Er(t)){const a=Ud(this),o=xs(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?gs(a):bs(a)}return Wd(a,n),Vd(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Ny&&(i=void 0),this.autoFreeze_&&Oc(i,!0),n){const a=[],o=[];_r("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Ve(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)||Ve(8),Xr(e)&&(e=cS(e));const t=Ud(this),r=xs(e,void 0);return r[tt].isManual_=!0,bs(t),r}finishDraft(e,t){const r=e&&e[tt];(!r||!r.isManual_)&&Ve(9);const{scope_:n}=r;return Wd(n,t),Vd(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 Xr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function xs(e,t){const r=Gn(e)?_r("MapSet").proxyMap_(e,t):Ka(e)?_r("MapSet").proxySet_(e,t):oS(e,t);return(t?t.scope_:Ly()).drafts_.push(r),r}function cS(e){return Xr(e)||Ve(10,e),By(e)}function By(e){if(!Er(e)||Ha(e))return e;const t=e[tt];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ys(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=ys(e,!0);return Xi(r,(i,a)=>{Ry(r,i,By(a))},n),t&&(t.finalized_=!1),r}var lS=new sS;lS.produce;var fS={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Fy=Ge({name:"legend",initialState:fS,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:ae()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:ae()},removeLegendPayload:{reducer(e,t){var r=ft(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ae()}}}),{setLegendSize:dS,setLegendSettings:vS,addLegendPayload:qy,replaceLegendPayload:Wy,removeLegendPayload:Uy}=Fy.actions,hS=Fy.reducer;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 Hd(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 dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hd(Object(r),!0).forEach(function(n){pS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pS(e,t,r){return(t=mS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mS(e){var t=yS(e,"string");return typeof t=="symbol"?t:t+""}function yS(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 gS(e){return Array.isArray(e)&&St(e[0])&&St(e[1])?e.join(" ~ "):e}var Fr={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},bS=e=>{var{separator:t=Fr.separator,contentStyle:r,itemStyle:n,labelStyle:i=Fr.labelStyle,payload:a,formatter:o,itemSorter:u,wrapperClassName:s,labelClassName:c,label:l,labelFormatter:f,accessibilityLayer:d=Fr.accessibilityLayer}=e,v=()=>{if(a&&a.length){var P={padding:0,margin:0},O=(u?ka(a,u):a).map((E,A)=>{if(E.type==="none")return null;var k=E.formatter||o||gS,{value:N,name:I}=E,M=N,C=I;if(k){var z=k(N,I,E,A,a);if(Array.isArray(z))[M,C]=z;else if(z!=null)M=z;else return null}var K=dn(dn({},Fr.itemStyle),{},{color:E.color||Fr.itemStyle.color},n);return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(A),style:K},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=dn(dn({},Fr.contentStyle),r),m=dn({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",Os({className:g,style:h},x),w.createElement("p",{className:b,style:m},w.isValidElement(y)?y:"".concat(y)),v())},vn="recharts-tooltip-wrapper",wS={visibility:"hidden"};function xS(e){var{coordinate:t,translateX:r,translateY:n}=e;return re(vn,{["".concat(vn,"-right")]:R(r)&&t&&R(t.x)&&r>=t.x,["".concat(vn,"-left")]:R(r)&&t&&R(t.x)&&r<t.x,["".concat(vn,"-bottom")]:R(n)&&t&&R(t.y)&&n>=t.y,["".concat(vn,"-top")]:R(n)&&t&&R(t.y)&&n<t.y})}function Gd(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 OS(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 PS(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=Gd({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:o,tooltipDimension:u.width,viewBox:c,viewBoxDimension:c.width}),d=Gd({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:o,tooltipDimension:u.height,viewBox:c,viewBoxDimension:c.height}),l=OS({translateX:f,translateY:d,useTranslate3d:s})):l=wS,{cssProperties:l,cssClasses:xS({translateX:f,translateY:d,coordinate:r})}}function Yd(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 gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yd(Object(r),!0).forEach(function(n){Ps(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ps(e,t,r){return(t=SS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SS(e){var t=ES(e,"string");return typeof t=="symbol"?t:t+""}function ES(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 _S extends S.PureComponent{constructor(){super(...arguments),Ps(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Ps(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}=PS({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?{}:gi(gi({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=gi(gi({},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 Vy=()=>{var e;return(e=L(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Ss(){return Ss=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},Ss.apply(null,arguments)}function Xd(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 Zd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(r),!0).forEach(function(n){AS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xd(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=IS(e,"string");return typeof t=="symbol"?t:t+""}function IS(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 Qd={curveBasisClosed:fx,curveBasisOpen:dx,curveBasis:lx,curveBumpX:Xw,curveBumpY:Zw,curveLinearClosed:vx,curveLinear:Ia,curveMonotoneX:hx,curveMonotoneY:px,curveNatural:mx,curveStep:yx,curveStepAfter:bx,curveStepBefore:gx},Ji=e=>W(e.x)&&W(e.y),Jd=e=>e.base!=null&&Ji(e.base)&&Ji(e),hn=e=>e.x,pn=e=>e.y,TS=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Fn(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=Qd["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return Qd[r]||Ia},ev={connectNulls:!1,type:"linear"},jS=e=>{var{type:t=ev.type,points:r=[],baseLine:n,layout:i,connectNulls:a=ev.connectNulls}=e,o=TS(t,i),u=a?r.filter(Ji):r;if(Array.isArray(n)){var s,c=r.map((h,m)=>Zd(Zd({},h),{},{base:n[m]}));i==="vertical"?s=ui().y(pn).x1(hn).x0(h=>h.base.x):s=ui().x(hn).y1(pn).y0(h=>h.base.y);var l=s.defined(Jd).curve(o),f=a?c.filter(Jd):c;return l(f)}var d;i==="vertical"&&R(n)?d=ui().y(pn).x1(hn).x0(n):R(n)?d=ui().x(hn).y1(pn).y0(n):d=fm().x(hn).y(pn);var v=d.defined(Ji).curve(o);return v(u)},Sc=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?jS(o):n;return w.createElement("path",Ss({},Ot(e),Am(e),{className:re("recharts-curve",t),d:u===null?void 0:u,ref:i}))},kS=["x","y","top","left","width","height","className"];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 tv(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 MS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tv(Object(r),!0).forEach(function(n){DS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DS(e,t,r){return(t=NS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NS(e){var t=$S(e,"string");return typeof t=="symbol"?t:t+""}function $S(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 RS(e,t){if(e==null)return{};var r,n,i=LS(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 LS(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 zS=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),BS=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,s=RS(e,kS),c=MS({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",Es({},qe(c),{className:re("recharts-cross",u),d:zS(t,r,a,o,n,i)}))};function FS(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 rv(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 nv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rv(Object(r),!0).forEach(function(n){qS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qS(e,t,r){return(t=WS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WS(e){var t=US(e,"string");return typeof t=="symbol"?t:t+""}function US(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 VS=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Ky=(e,t,r)=>e.map(n=>"".concat(VS(n)," ").concat(t,"ms ").concat(r)).join(","),KS=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Mn=(e,t)=>Object.keys(t).reduce((r,n)=>nv(nv({},r),{},{[n]:e(n,t[n])}),{});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 pe(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){HS(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 HS(e,t,r){return(t=GS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GS(e){var t=YS(e,"string");return typeof t=="symbol"?t:t+""}function YS(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 ea=(e,t,r)=>e+(t-e)*r,_s=e=>{var{from:t,to:r}=e;return t!==r},Hy=(e,t,r)=>{var n=Mn((i,a)=>{if(_s(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?Mn((i,a)=>_s(a)&&n[i]!=null?pe(pe({},a),{},{velocity:ea(a.velocity,n[i].velocity,r),from:ea(a.from,n[i].from,r)}):a,t):Hy(e,n,r-1)};function XS(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=()=>Mn((d,v)=>v.from,u),c=()=>!Object.values(u).filter(_s).length,l=null,f=d=>{o||(o=d);var v=d-o,h=v/r.dt;u=Hy(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 ZS(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=Mn((m,p)=>ea(...p,r(d)),s);if(a(pe(pe(pe({},e),t),v)),d<1)u=o.setTimeout(l);else{var h=Mn((m,p)=>ea(...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 QS=(e,t,r,n,i,a)=>{var o=KS(e,t);return r==null?()=>(i(pe(pe({},e),t)),()=>{}):r.isStepper===!0?XS(e,t,r,o,i,a):ZS(e,t,r,n,o,i,a)};var ta=1e-4,Gy=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Yy=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),av=(e,t)=>r=>{var n=Gy(e,t);return Yy(n,r)},JS=(e,t)=>r=>{var n=Gy(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return Yy(i,r)},eE=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]]},tE=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=eE(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},rE=(e,t,r,n)=>{var i=av(e,r),a=av(t,n),o=JS(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)<ta||h<ta)return a(f);f=u(f-v/h)}return a(f)};return s.isStepper=!1,s},ov=function(){return rE(...tE(...arguments))},nE=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)<ta&&Math.abs(f)<ta?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},iE=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ov(e);case"spring":return nE();default:if(e.split("(")[0]==="cubic-bezier")return ov(e)}return typeof e=="function"?e:null};function aE(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 oE{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 uE(){return aE(new oE)}var sE=S.createContext(uE);function cE(e,t){var r=S.useContext(sE);return S.useMemo(()=>t??r(e),[e,t,r])}var lE=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Yn={isSsr:lE()},fE={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},uv={t:0},Ou={t:1};function Ga(e){var t=He(e,fE),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:s,children:c}=t,l=r==="auto"?!Yn.isSsr:r,f=cE(t.animationId,t.animationManager),[d,v]=S.useState(l?uv:Ou),h=S.useRef(null);return S.useEffect(()=>{l||v(Ou)},[l]),S.useEffect(()=>{if(!l||!n)return Dr;var m=QS(uv,Ou,iE(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 Ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=S.useRef(En(t)),n=S.useRef(e);return n.current!==e&&(r.current=En(t),n.current=e),r.current}var dE=["radius"],vE=["radius"],sv,cv,lv,fv,dv,vv,hv,pv,mv,yv;function gv(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 bv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gv(Object(r),!0).forEach(function(n){hE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hE(e,t,r){return(t=pE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pE(e){var t=mE(e,"string");return typeof t=="symbol"?t:t+""}function mE(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 ra(){return ra=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},ra.apply(null,arguments)}function wv(e,t){if(e==null)return{};var r,n,i=yE(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 yE(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 xv=(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(sv||(sv=mt(["M",",",""])),e,t+s*d[0]),d[0]>0&&(f+=ce(cv||(cv=mt(["A ",",",",0,0,",",",",",""])),d[0],d[0],l,e+c*d[0],t)),f+=ce(lv||(lv=mt(["L ",",",""])),e+r-c*d[1],t),d[1]>0&&(f+=ce(fv||(fv=mt(["A ",",",",0,0,",`,
|
|
76
|
+
`,",",""])),d[1],d[1],l,e+r,t+s*d[1])),f+=ce(dv||(dv=mt(["L ",",",""])),e+r,t+n-s*d[2]),d[2]>0&&(f+=ce(vv||(vv=mt(["A ",",",",0,0,",`,
|
|
77
|
+
`,",",""])),d[2],d[2],l,e+r-c*d[2],t+n)),f+=ce(hv||(hv=mt(["L ",",",""])),e+c*d[3],t+n),d[3]>0&&(f+=ce(pv||(pv=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(mv||(mv=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(yv||(yv=mt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},Ov={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ec=e=>{var t=He(e,Ov),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=Ya(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=qe(t),{radius:A}=E,k=wv(E,dE);return w.createElement("path",ra({},k,{x:Jt(a),y:Jt(o),width:Jt(u),height:Jt(s),radius:typeof c=="number"?c:void 0,className:O,d:xv(a,o,u,s,c)}))}var N=p.current,I=y.current,M=g.current,C=b.current,z="0px ".concat(n===-1?1:n,"px"),K="".concat(n,"px 0px"),U=Ky(["strokeDasharray"],d,typeof f=="string"?f:Ov.animationEasing);return w.createElement(Ga,{animationId:P,key:P,canBegin:n>0,duration:d,easing:f,isActive:m,begin:v},B=>{var G=Se(N,u,B),F=Se(I,s,B),ve=Se(M,a,B),fe=Se(C,o,B);r.current&&(p.current=G,y.current=F,g.current=ve,b.current=fe);var Ce;h?B>0?Ce={transition:U,strokeDasharray:K}:Ce={strokeDasharray:z}:Ce={strokeDasharray:K};var Ye=qe(t),{radius:ke}=Ye,At=wv(Ye,vE);return w.createElement("path",ra({},At,{radius:typeof c=="number"?c:void 0,className:O,d:xv(ve,fe,G,F,c),ref:r,style:bv(bv({},Ce),t.style)}))})};function Pv(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 Sv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pv(Object(r),!0).forEach(function(n){gE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gE(e,t,r){return(t=bE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bE(e){var t=wE(e,"string");return typeof t=="symbol"?t:t+""}function wE(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 na=Math.PI/180,xE=e=>e*180/Math.PI,Ee=(e,t,r,n)=>({x:e+Math.cos(-na*n)*r,y:t+Math.sin(-na*n)*r}),Xy=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},OE=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},PE=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=OE({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:xE(s),angleInRadian:s}},SE=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}},EE=(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},_E=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=PE({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:s,endAngle:c}=SE(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?Sv(Sv({},t),{},{radius:i,angle:EE(l,t)}):null};function Zy(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=Ee(t,r,n,i),u=Ee(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}var Ev,_v,Av,Cv,Iv,Tv,jv;function As(){return As=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},As.apply(null,arguments)}function vr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var AE=(e,t)=>{var r=ze(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},bi=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)/na,f=s?i:i+a*l,d=Ee(t,r,c,f),v=Ee(t,r,n,f),h=s?i-a*l:i,m=Ee(t,r,c*Math.cos(l*na),h);return{center:d,circleTangency:v,lineTangency:m,theta:l}},Qy=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,u=AE(a,o),s=a+u,c=Ee(t,r,i,a),l=Ee(t,r,i,s),f=ce(Ev||(Ev=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=Ee(t,r,n,a),v=Ee(t,r,n,s);f+=ce(_v||(_v=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(Av||(Av=vr(["L ",","," Z"])),t,r);return f},CE=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:u,startAngle:s,endAngle:c}=e,l=ze(c-s),{circleTangency:f,lineTangency:d,theta:v}=bi({cx:t,cy:r,radius:i,angle:s,sign:l,cornerRadius:a,cornerIsExternal:u}),{circleTangency:h,lineTangency:m,theta:p}=bi({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(Cv||(Cv=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):Qy({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:c});var g=ce(Iv||(Iv=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}=bi({cx:t,cy:r,radius:n,angle:s,sign:l,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:E,theta:A}=bi({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(Tv||(Tv=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(jv||(jv=vr(["L",",","Z"])),t,r);return g},IE={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Jy=e=>{var t=He(e,IE),{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=ot(o,v,0,!0),m;return h>0&&Math.abs(c-l)<360?m=CE({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(h,v/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:c,endAngle:l}):m=Qy({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l}),w.createElement("path",As({},qe(t),{className:d,d:m}))};function TE(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(_m(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:u}=t,s=Ee(n,i,a,u),c=Ee(n,i,o,u);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return Zy(t)}}var Pu={},Su={},Eu={},kv;function jE(){return kv||(kv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zm();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r}(Eu)),Eu}var Mv;function kE(){return Mv||(Mv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jE();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}(Su)),Su}var Dv;function ME(){return Dv||(Dv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bm(),r=kE();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}(Pu)),Pu}var _u,Nv;function DE(){return Nv||(Nv=1,_u=ME().range),_u}var NE=DE();const eg=zt(NE);function er(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function $E(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function _c(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===$E?e:RE,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 RE(){return 0}function tg(e){return e===null?NaN:+e}function*LE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const zE=_c(er),Xn=zE.right;_c(tg).center;class $v extends Map{constructor(t,r=qE){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(Rv(this,t))}has(t){return super.has(Rv(this,t))}set(t,r){return super.set(BE(this,t),r)}delete(t){return super.delete(FE(this,t))}}function Rv({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function BE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function FE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function qE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function WE(e=er){if(e===er)return rg;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 rg(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const UE=Math.sqrt(50),VE=Math.sqrt(10),KE=Math.sqrt(2);function ia(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>=UE?10:a>=VE?5:a>=KE?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?ia(e,t,r*2):[u,s,c]}function Cs(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?ia(t,e,r):ia(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 Is(e,t,r){return t=+t,e=+e,r=+r,ia(e,t,r)[2]}function Ts(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Is(t,e,r):Is(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Lv(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function zv(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function ng(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?rg:WE(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));ng(e,t,v,h,i)}const a=e[t];let o=r,u=n;for(mn(e,r,t),i(e[n],a)>0&&mn(e,r,n);o<u;){for(mn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?mn(e,r,u):(++u,mn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function mn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function HE(e,t,r){if(e=Float64Array.from(LE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return zv(e);if(t>=1)return Lv(e);var n,i=(n-1)*t,a=Math.floor(i),o=Lv(ng(e,a).subarray(0,a+1)),u=zv(e.subarray(a+1));return o+(u-o)*(i-a)}}function GE(e,t,r=tg){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 YE(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 ct(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 Ac(){var e=new $v,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 $v;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 Ac(t,r).unknown(n)},ct.apply(i,arguments),i}function Cc(){var e=Ac().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=YE(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 Cc(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(l)},ct.apply(f(),arguments)}function ig(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ig(t())},e}function XE(){return ig(Cc.apply(null,arguments).paddingInner(1))}function Ic(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ag(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Zn(){}var Dn=.7,aa=1/Dn,Gr="\\s*([+-]?\\d+)\\s*",Nn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ZE=/^#([0-9a-f]{3,8})$/,QE=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),JE=new RegExp(`^rgb\\(${xt},${xt},${xt}\\)$`),e_=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${Nn}\\)$`),t_=new RegExp(`^rgba\\(${xt},${xt},${xt},${Nn}\\)$`),r_=new RegExp(`^hsl\\(${Nn},${xt},${xt}\\)$`),n_=new RegExp(`^hsla\\(${Nn},${xt},${xt},${Nn}\\)$`),Bv={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};Ic(Zn,$n,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fv,formatHex:Fv,formatHex8:i_,formatHsl:a_,formatRgb:qv,toString:qv});function Fv(){return this.rgb().formatHex()}function i_(){return this.rgb().formatHex8()}function a_(){return og(this).formatHsl()}function qv(){return this.rgb().formatRgb()}function $n(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ZE.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Wv(t):r===3?new Ke(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wi(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=QE.exec(e))?new Ke(t[1],t[2],t[3],1):(t=JE.exec(e))?new Ke(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=e_.exec(e))?wi(t[1],t[2],t[3],t[4]):(t=t_.exec(e))?wi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=r_.exec(e))?Kv(t[1],t[2]/100,t[3]/100,1):(t=n_.exec(e))?Kv(t[1],t[2]/100,t[3]/100,t[4]):Bv.hasOwnProperty(e)?Wv(Bv[e]):e==="transparent"?new Ke(NaN,NaN,NaN,0):null}function Wv(e){return new Ke(e>>16&255,e>>8&255,e&255,1)}function wi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ke(e,t,r,n)}function o_(e){return e instanceof Zn||(e=$n(e)),e?(e=e.rgb(),new Ke(e.r,e.g,e.b,e.opacity)):new Ke}function ks(e,t,r,n){return arguments.length===1?o_(e):new Ke(e,t,r,n??1)}function Ke(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ic(Ke,ks,ag(Zn,{brighter(e){return e=e==null?aa:Math.pow(aa,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dn:Math.pow(Dn,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ke(br(this.r),br(this.g),br(this.b),oa(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:Uv,formatHex:Uv,formatHex8:u_,formatRgb:Vv,toString:Vv}));function Uv(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}`}function u_(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}${hr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Vv(){const e=oa(this.opacity);return`${e===1?"rgb(":"rgba("}${br(this.r)}, ${br(this.g)}, ${br(this.b)}${e===1?")":`, ${e})`}`}function oa(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 lt(e,t,r,n)}function og(e){if(e instanceof lt)return new lt(e.h,e.s,e.l,e.opacity);if(e instanceof Zn||(e=$n(e)),!e)return new lt;if(e instanceof lt)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 lt(o,u,s,e.opacity)}function s_(e,t,r,n){return arguments.length===1?og(e):new lt(e,t,r,n??1)}function lt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ic(lt,s_,ag(Zn,{brighter(e){return e=e==null?aa:Math.pow(aa,e),new lt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dn:Math.pow(Dn,e),new lt(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 Ke(Au(e>=240?e-240:e+120,i,n),Au(e,i,n),Au(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new lt(Hv(this.h),xi(this.s),xi(this.l),oa(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=oa(this.opacity);return`${e===1?"hsl(":"hsla("}${Hv(this.h)}, ${xi(this.s)*100}%, ${xi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Hv(e){return e=(e||0)%360,e<0?e+360:e}function xi(e){return Math.max(0,Math.min(1,e||0))}function Au(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 Tc=e=>()=>e;function c_(e,t){return function(r){return e+r*t}}function l_(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 f_(e){return(e=+e)==1?ug:function(t,r){return r-t?l_(t,r,e):Tc(isNaN(t)?r:t)}}function ug(e,t){var r=t-e;return r?c_(e,r):Tc(isNaN(e)?t:e)}const Gv=function e(t){var r=f_(t);function n(i,a){var o=r((i=ks(i)).r,(a=ks(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=ug(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 d_(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 v_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function h_(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]=tn(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 p_(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ua(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function m_(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]=tn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ms=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cu=new RegExp(Ms.source,"g");function y_(e){return function(){return e}}function g_(e){return function(t){return e(t)+""}}function b_(e,t){var r=Ms.lastIndex=Cu.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Ms.exec(e))&&(i=Cu.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:ua(n,i)})),r=Cu.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?g_(s[0].x):y_(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 tn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Tc(t):(r==="number"?ua:r==="string"?(n=$n(t))?(t=n,Gv):b_:t instanceof $n?Gv:t instanceof Date?p_:v_(t)?d_:Array.isArray(t)?h_:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?m_:ua)(e,t)}function jc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function w_(e,t){t===void 0&&(t=e,e=tn);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 x_(e){return function(){return e}}function sa(e){return+e}var Yv=[0,1];function Fe(e){return e}function Ds(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:x_(isNaN(t)?NaN:.5)}function O_(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function P_(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Ds(i,n),a=r(o,a)):(n=Ds(n,i),a=r(a,o)),function(u){return a(n(u))}}function S_(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]=Ds(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Xn(e,u,1,n)-1;return a[s](i[s](u))}}function Qn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xa(){var e=Yv,t=Yv,r=tn,n,i,a,o=Fe,u,s,c;function l(){var d=Math.min(e.length,t.length);return o!==Fe&&(o=O_(e[0],e[d-1])),u=d>2?S_:P_,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),ua)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,sa),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:Fe,l()):o!==Fe},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 kc(){return Xa()(Fe,Fe)}function E_(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ca(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 Zr(e){return e=ca(Math.abs(e)),e?e[1]:NaN}function __(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 A_(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var C_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rn(e){if(!(t=C_.exec(e)))throw new Error("invalid format: "+e);var t;return new Mc({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]})}Rn.prototype=Mc.prototype;function Mc(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+""}Mc.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 I_(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 sg;function T_(e,t){var r=ca(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(sg=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")+ca(e,Math.max(0,t+a-1))[0]}function Xv(e,t){var r=ca(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 Zv={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:E_,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 Xv(e*100,t)},r:Xv,s:T_,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Qv(e){return e}var Jv=Array.prototype.map,eh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function j_(e){var t=e.grouping===void 0||e.thousands===void 0?Qv:__(Jv.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?Qv:A_(Jv.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=Rn(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"):Zv[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=Zv[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(I){var M=O,C=E,z,K,U;if(P==="c")C=A(I)+C,I="";else{I=+I;var B=I<0||1/I<0;if(I=isNaN(I)?s:A(Math.abs(I),b),x&&(I=I_(I)),B&&+I==0&&h!=="+"&&(B=!1),M=(B?h==="("?h:u:h==="-"||h==="("?"":h)+M,C=(P==="s"?eh[8+sg/3]:"")+C+(B&&h==="("?")":""),k){for(z=-1,K=I.length;++z<K;)if(U=I.charCodeAt(z),48>U||U>57){C=(U===46?i+I.slice(z+1):I.slice(z))+C,I=I.slice(0,z);break}}}g&&!p&&(I=t(I,1/0));var G=M.length+I.length+C.length,F=G<y?new Array(y-G+1).join(d):"";switch(g&&p&&(I=t(F+I,F.length?y-C.length:1/0),F=""),v){case"<":I=M+I+C+F;break;case"=":I=M+F+I+C;break;case"^":I=F.slice(0,G=F.length>>1)+M+I+C+F.slice(G);break;default:I=F+M+I+C;break}return a(I)}return N.toString=function(){return f+""},N}function l(f,d){var v=c((f=Rn(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(Zr(d)/3)))*3,m=Math.pow(10,-h),p=eh[8+h/3];return function(y){return v(m*y)+p}}return{format:c,formatPrefix:l}}var Oi,Dc,cg;k_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function k_(e){return Oi=j_(e),Dc=Oi.format,cg=Oi.formatPrefix,Oi}function M_(e){return Math.max(0,-Zr(Math.abs(e)))}function D_(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Zr(t)/3)))*3-Zr(Math.abs(e)))}function N_(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Zr(t)-Zr(e))+1}function lg(e,t,r,n){var i=Ts(e,t,r),a;switch(n=Rn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=D_(i,o))&&(n.precision=a),cg(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=N_(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=M_(i))&&(n.precision=a-(n.type==="%")*2);break}}return Dc(n)}function rr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Cs(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return lg(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=Is(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 fg(){var e=kc();return e.copy=function(){return Qn(e,fg())},ct.apply(e,arguments),rr(e)}function dg(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,sa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return dg(e).unknown(t)},e=arguments.length?Array.from(e,sa):[0,1],rr(r)}function vg(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 th(e){return Math.log(e)}function rh(e){return Math.exp(e)}function $_(e){return-Math.log(-e)}function R_(e){return-Math.exp(-e)}function L_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function z_(e){return e===10?L_:e===Math.E?Math.exp:t=>Math.pow(e,t)}function B_(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 nh(e){return(t,r)=>-e(-t,r)}function Nc(e){const t=e(th,rh),r=t.domain;let n=10,i,a;function o(){return i=B_(n),a=z_(n),r()[0]<0?(i=nh(i),a=nh(a),e($_,R_)):e(th,rh),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=Cs(c,l,p))}else y=Cs(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=Rn(s)).precision==null&&(s.trim=!0),s=Dc(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(vg(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function hg(){const e=Nc(Xa()).domain([1,10]);return e.copy=()=>Qn(e,hg()).base(e.base()),ct.apply(e,arguments),e}function ih(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ah(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function $c(e){var t=1,r=e(ih(t),ah(t));return r.constant=function(n){return arguments.length?e(ih(t=+n),ah(t)):t},rr(r)}function pg(){var e=$c(Xa());return e.copy=function(){return Qn(e,pg()).constant(e.constant())},ct.apply(e,arguments)}function oh(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function F_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function q_(e){return e<0?-e*e:e*e}function Rc(e){var t=e(Fe,Fe),r=1;function n(){return r===1?e(Fe,Fe):r===.5?e(F_,q_):e(oh(r),oh(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},rr(t)}function Lc(){var e=Rc(Xa());return e.copy=function(){return Qn(e,Lc()).exponent(e.exponent())},ct.apply(e,arguments),e}function W_(){return Lc.apply(null,arguments).exponent(.5)}function uh(e){return Math.sign(e)*e*e}function U_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function mg(){var e=kc(),t=[0,1],r=!1,n;function i(a){var o=U_(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(uh(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,sa)).map(uh)),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 mg(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ct.apply(i,arguments),rr(i)}function yg(){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]=GE(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Xn(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 yg().domain(e).range(t).unknown(n)},ct.apply(a,arguments)}function gg(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Xn(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 gg().domain([e,t]).range(i).unknown(a)},ct.apply(rr(o),arguments)}function bg(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Xn(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 bg().domain(e).range(t).unknown(r)},ct.apply(i,arguments)}const Iu=new Date,Tu=new Date;function ge(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=>ge(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)=>(Iu.setTime(+a),Tu.setTime(+o),e(Iu),e(Tu),Math.floor(r(Iu,Tu))),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 la=ge(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);la.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ge(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):la);la.range;const Tt=1e3,at=Tt*60,jt=at*60,Nt=jt*24,zc=Nt*7,sh=Nt*30,ju=Nt*365,pr=ge(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCSeconds());pr.range;const Bc=ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tt)},(e,t)=>{e.setTime(+e+t*at)},(e,t)=>(t-e)/at,e=>e.getMinutes());Bc.range;const Fc=ge(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*at)},(e,t)=>(t-e)/at,e=>e.getUTCMinutes());Fc.range;const qc=ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tt-e.getMinutes()*at)},(e,t)=>{e.setTime(+e+t*jt)},(e,t)=>(t-e)/jt,e=>e.getHours());qc.range;const Wc=ge(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*jt)},(e,t)=>(t-e)/jt,e=>e.getUTCHours());Wc.range;const Uc=ge(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);Uc.range;const wg=ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nt,e=>e.getUTCDate()-1);wg.range;const xg=ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nt,e=>Math.floor(e/Nt));xg.range;function $r(e){return ge(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)/zc)}const Vc=$r(0),V_=$r(1),K_=$r(2),H_=$r(3),G_=$r(4),Y_=$r(5),X_=$r(6);Vc.range;V_.range;K_.range;H_.range;G_.range;Y_.range;X_.range;function Rr(e){return ge(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)/zc)}const Kc=Rr(0),Z_=Rr(1),Q_=Rr(2),J_=Rr(3),eA=Rr(4),tA=Rr(5),rA=Rr(6);Kc.range;Z_.range;Q_.range;J_.range;eA.range;tA.range;rA.range;const Hc=ge(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());Hc.range;const Gc=ge(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());Gc.range;const Za=ge(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());Za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ge(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)});Za.range;const Qa=ge(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());Qa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ge(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)});Qa.range;function Og(e,t,r,n,i,a){const o=[[pr,1,Tt],[pr,5,5*Tt],[pr,15,15*Tt],[pr,30,30*Tt],[a,1,at],[a,5,5*at],[a,15,15*at],[a,30,30*at],[i,1,jt],[i,3,3*jt],[i,6,6*jt],[i,12,12*jt],[n,1,Nt],[n,2,2*Nt],[r,1,zc],[t,1,sh],[t,3,3*sh],[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=_c(([,,p])=>p).right(o,d);if(v===o.length)return e.every(Ts(c/ju,l/ju,f));if(v===0)return la.every(Math.max(Ts(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[nA,iA]=Og(Qa,Gc,Kc,xg,Wc,Fc),[aA,oA]=Og(Za,Hc,Vc,Uc,qc,Bc);var ku=new Date,Mu=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 ku.setTime(+a),Mu.setTime(+o),e(ku),e(Mu),Math.floor(r(ku,Mu))},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 uA=1e3,Yc=uA*60,sA=Yc*60,Xc=sA*24,Pg=Xc*7;var Zc=Ut(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yc)/Xc,e=>e.getDate()-1);Zc.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())*Yc)/Pg})}var Sg=Lr(0),fa=Lr(1),cA=Lr(2),lA=Lr(3),Qr=Lr(4),fA=Lr(5),dA=Lr(6);Sg.range;fa.range;cA.range;lA.range;Qr.range;fA.range;dA.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 Qc=Ut(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Xc},function(e){return e.getUTCDate()-1});Qc.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)/Pg})}var Eg=zr(0),da=zr(1),vA=zr(2),hA=zr(3),Jr=zr(4),pA=zr(5),mA=zr(6);Eg.range;da.range;vA.range;hA.range;Jr.range;pA.range;mA.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 Du(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 Nu(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 yn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function yA(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=gn(i),l=bn(i),f=gn(a),d=bn(a),v=gn(o),h=bn(o),m=gn(u),p=bn(u),y=gn(s),g=bn(s),b={a:B,A:G,b:F,B:ve,c:null,d:hh,e:hh,f:BA,g:XA,G:QA,H:RA,I:LA,j:zA,L:_g,m:FA,M:qA,p:fe,q:Ce,Q:yh,s:gh,S:WA,u:UA,U:VA,V:KA,w:HA,W:GA,x:null,X:null,y:YA,Y:ZA,Z:JA,"%":mh},x={a:Ye,A:ke,b:At,B:or,c:null,d:ph,e:ph,f:nC,g:vC,G:pC,H:eC,I:tC,j:rC,L:Cg,m:iC,M:aC,p:Me,q:fn,Q:yh,s:gh,S:oC,u:uC,U:sC,V:cC,w:lC,W:fC,x:null,X:null,y:dC,Y:hC,Z:mC,"%":mh},P={a:N,A:I,b:M,B:C,c:z,d:dh,e:dh,f:MA,g:fh,G:lh,H:vh,I:vh,j:IA,L:kA,m:CA,M:TA,p:k,q:AA,Q:NA,s:$A,S:jA,u:OA,U:PA,V:SA,w:xA,W:EA,x:K,X:U,y:fh,Y:lh,Z:_A,"%":DA};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(T,q){return function(D){var j=[],he=-1,Y=0,Xe=T.length,Ze,ur,nf;for(D instanceof Date||(D=new Date(+D));++he<Xe;)T.charCodeAt(he)===37&&(j.push(T.slice(Y,he)),(ur=ch[Ze=T.charAt(++he)])!=null?Ze=T.charAt(++he):ur=Ze==="e"?" ":"0",(nf=q[Ze])&&(Ze=nf(D,ur)),j.push(Ze),Y=he+1);return j.push(T.slice(Y,he)),j.join("")}}function E(T,q){return function(D){var j=yn(1900,void 0,1),he=A(j,T,D+="",0),Y,Xe;if(he!=D.length)return null;if("Q"in j)return new Date(j.Q);if("s"in j)return new Date(j.s*1e3+("L"in j?j.L:0));if(q&&!("Z"in j)&&(j.Z=0),"p"in j&&(j.H=j.H%12+j.p*12),j.m===void 0&&(j.m="q"in j?j.q:0),"V"in j){if(j.V<1||j.V>53)return null;"w"in j||(j.w=1),"Z"in j?(Y=Nu(yn(j.y,0,1)),Xe=Y.getUTCDay(),Y=Xe>4||Xe===0?da.ceil(Y):da(Y),Y=Qc.offset(Y,(j.V-1)*7),j.y=Y.getUTCFullYear(),j.m=Y.getUTCMonth(),j.d=Y.getUTCDate()+(j.w+6)%7):(Y=Du(yn(j.y,0,1)),Xe=Y.getDay(),Y=Xe>4||Xe===0?fa.ceil(Y):fa(Y),Y=Zc.offset(Y,(j.V-1)*7),j.y=Y.getFullYear(),j.m=Y.getMonth(),j.d=Y.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),Xe="Z"in j?Nu(yn(j.y,0,1)).getUTCDay():Du(yn(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-(Xe+5)%7:j.w+j.U*7-(Xe+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,Nu(j)):Du(j)}}function A(T,q,D,j){for(var he=0,Y=q.length,Xe=D.length,Ze,ur;he<Y;){if(j>=Xe)return-1;if(Ze=q.charCodeAt(he++),Ze===37){if(Ze=q.charAt(he++),ur=P[Ze in ch?q.charAt(he++):Ze],!ur||(j=ur(T,D,j))<0)return-1}else if(Ze!=D.charCodeAt(j++))return-1}return j}function k(T,q,D){var j=c.exec(q.slice(D));return j?(T.p=l.get(j[0].toLowerCase()),D+j[0].length):-1}function N(T,q,D){var j=v.exec(q.slice(D));return j?(T.w=h.get(j[0].toLowerCase()),D+j[0].length):-1}function I(T,q,D){var j=f.exec(q.slice(D));return j?(T.w=d.get(j[0].toLowerCase()),D+j[0].length):-1}function M(T,q,D){var j=y.exec(q.slice(D));return j?(T.m=g.get(j[0].toLowerCase()),D+j[0].length):-1}function C(T,q,D){var j=m.exec(q.slice(D));return j?(T.m=p.get(j[0].toLowerCase()),D+j[0].length):-1}function z(T,q,D){return A(T,t,q,D)}function K(T,q,D){return A(T,r,q,D)}function U(T,q,D){return A(T,n,q,D)}function B(T){return o[T.getDay()]}function G(T){return a[T.getDay()]}function F(T){return s[T.getMonth()]}function ve(T){return u[T.getMonth()]}function fe(T){return i[+(T.getHours()>=12)]}function Ce(T){return 1+~~(T.getMonth()/3)}function Ye(T){return o[T.getUTCDay()]}function ke(T){return a[T.getUTCDay()]}function At(T){return s[T.getUTCMonth()]}function or(T){return u[T.getUTCMonth()]}function Me(T){return i[+(T.getUTCHours()>=12)]}function fn(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var q=O(T+="",b);return q.toString=function(){return T},q},parse:function(T){var q=E(T+="",!1);return q.toString=function(){return T},q},utcFormat:function(T){var q=O(T+="",x);return q.toString=function(){return T},q},utcParse:function(T){var q=E(T+="",!0);return q.toString=function(){return T},q}}}var ch={"-":"",_:" ",0:"0"},_e=/^\s*\d+/,gA=/^%/,bA=/[\\^$*+?|[\]().{}]/g;function V(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 wA(e){return e.replace(bA,"\\$&")}function gn(e){return new RegExp("^(?:"+e.map(wA).join("|")+")","i")}function bn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function xA(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function OA(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function PA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function SA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function EA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function lh(e,t,r){var n=_e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function fh(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _A(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 AA(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function CA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function dh(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function IA(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function vh(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function TA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function jA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function kA(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function MA(e,t,r){var n=_e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function DA(e,t,r){var n=gA.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function NA(e,t,r){var n=_e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function $A(e,t,r){var n=_e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function hh(e,t){return V(e.getDate(),t,2)}function RA(e,t){return V(e.getHours(),t,2)}function LA(e,t){return V(e.getHours()%12||12,t,2)}function zA(e,t){return V(1+Zc.count(Ar(e),e),t,3)}function _g(e,t){return V(e.getMilliseconds(),t,3)}function BA(e,t){return _g(e,t)+"000"}function FA(e,t){return V(e.getMonth()+1,t,2)}function qA(e,t){return V(e.getMinutes(),t,2)}function WA(e,t){return V(e.getSeconds(),t,2)}function UA(e){var t=e.getDay();return t===0?7:t}function VA(e,t){return V(Sg.count(Ar(e)-1,e),t,2)}function Ag(e){var t=e.getDay();return t>=4||t===0?Qr(e):Qr.ceil(e)}function KA(e,t){return e=Ag(e),V(Qr.count(Ar(e),e)+(Ar(e).getDay()===4),t,2)}function HA(e){return e.getDay()}function GA(e,t){return V(fa.count(Ar(e)-1,e),t,2)}function YA(e,t){return V(e.getFullYear()%100,t,2)}function XA(e,t){return e=Ag(e),V(e.getFullYear()%100,t,2)}function ZA(e,t){return V(e.getFullYear()%1e4,t,4)}function QA(e,t){var r=e.getDay();return e=r>=4||r===0?Qr(e):Qr.ceil(e),V(e.getFullYear()%1e4,t,4)}function JA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+V(t/60|0,"0",2)+V(t%60,"0",2)}function ph(e,t){return V(e.getUTCDate(),t,2)}function eC(e,t){return V(e.getUTCHours(),t,2)}function tC(e,t){return V(e.getUTCHours()%12||12,t,2)}function rC(e,t){return V(1+Qc.count(Cr(e),e),t,3)}function Cg(e,t){return V(e.getUTCMilliseconds(),t,3)}function nC(e,t){return Cg(e,t)+"000"}function iC(e,t){return V(e.getUTCMonth()+1,t,2)}function aC(e,t){return V(e.getUTCMinutes(),t,2)}function oC(e,t){return V(e.getUTCSeconds(),t,2)}function uC(e){var t=e.getUTCDay();return t===0?7:t}function sC(e,t){return V(Eg.count(Cr(e)-1,e),t,2)}function Ig(e){var t=e.getUTCDay();return t>=4||t===0?Jr(e):Jr.ceil(e)}function cC(e,t){return e=Ig(e),V(Jr.count(Cr(e),e)+(Cr(e).getUTCDay()===4),t,2)}function lC(e){return e.getUTCDay()}function fC(e,t){return V(da.count(Cr(e)-1,e),t,2)}function dC(e,t){return V(e.getUTCFullYear()%100,t,2)}function vC(e,t){return e=Ig(e),V(e.getUTCFullYear()%100,t,2)}function hC(e,t){return V(e.getUTCFullYear()%1e4,t,4)}function pC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Jr(e):Jr.ceil(e),V(e.getUTCFullYear()%1e4,t,4)}function mC(){return"+0000"}function mh(){return"%"}function yh(e){return+e}function gh(e){return Math.floor(+e/1e3)}var qr,Tg,jg;yC({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 yC(e){return qr=yA(e),Tg=qr.format,qr.parse,jg=qr.utcFormat,qr.utcParse,qr}function gC(e){return new Date(e)}function bC(e){return e instanceof Date?+e:+new Date(+e)}function Jc(e,t,r,n,i,a,o,u,s,c){var l=kc(),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,bC)):d().map(gC)},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(vg(E,O)):l},l.copy=function(){return Qn(l,Jc(e,t,r,n,i,a,o,u,s,c))},l}function wC(){return ct.apply(Jc(aA,oA,Za,Hc,Vc,Uc,qc,Bc,pr,Tg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xC(){return ct.apply(Jc(nA,iA,Qa,Gc,Kc,wg,Wc,Fc,pr,jg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ja(){var e=0,t=1,r,n,i,a,o=Fe,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(tn),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 kg(){var e=rr(Ja()(Fe));return e.copy=function(){return nr(e,kg())},Wt.apply(e,arguments)}function Mg(){var e=Nc(Ja()).domain([1,10]);return e.copy=function(){return nr(e,Mg()).base(e.base())},Wt.apply(e,arguments)}function Dg(){var e=$c(Ja());return e.copy=function(){return nr(e,Dg()).constant(e.constant())},Wt.apply(e,arguments)}function el(){var e=Rc(Ja());return e.copy=function(){return nr(e,el()).exponent(e.exponent())},Wt.apply(e,arguments)}function OC(){return el.apply(null,arguments).exponent(.5)}function Ng(){var e=[],t=Fe;function r(n){if(n!=null&&!isNaN(n=+n))return t((Xn(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)=>HE(e,a/n))},r.copy=function(){return Ng(t).domain(e)},Wt.apply(r,arguments)}function eo(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Fe,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=w_(m,[y,g,b]),v):[c(0),c(.5),c(1)]}}return v.range=h(tn),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 $g(){var e=rr(eo()(Fe));return e.copy=function(){return nr(e,$g())},Wt.apply(e,arguments)}function Rg(){var e=Nc(eo()).domain([.1,1,10]);return e.copy=function(){return nr(e,Rg()).base(e.base())},Wt.apply(e,arguments)}function Lg(){var e=$c(eo());return e.copy=function(){return nr(e,Lg()).constant(e.constant())},Wt.apply(e,arguments)}function tl(){var e=Rc(eo());return e.copy=function(){return nr(e,tl()).exponent(e.exponent())},Wt.apply(e,arguments)}function PC(){return tl.apply(null,arguments).exponent(.5)}const On=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Cc,scaleDiverging:$g,scaleDivergingLog:Rg,scaleDivergingPow:tl,scaleDivergingSqrt:PC,scaleDivergingSymlog:Lg,scaleIdentity:dg,scaleImplicit:js,scaleLinear:fg,scaleLog:hg,scaleOrdinal:Ac,scalePoint:XE,scalePow:Lc,scaleQuantile:yg,scaleQuantize:gg,scaleRadial:mg,scaleSequential:kg,scaleSequentialLog:Mg,scaleSequentialPow:el,scaleSequentialQuantile:Ng,scaleSequentialSqrt:OC,scaleSequentialSymlog:Dg,scaleSqrt:W_,scaleSymlog:pg,scaleThreshold:bg,scaleTime:wC,scaleUtc:xC,tickFormat:lg},Symbol.toStringTag,{value:"Module"}));var Vt=e=>e.chartData,rl=_([Vt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),nl=(e,t,r,n)=>n?rl(e):Vt(e),zg=(e,t,r)=>r?rl(e):Vt(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 bh(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Bg(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 SC(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if($t(n))return bh(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"&&jd.test(i)){var s=jd.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"&&kd.test(a)){var l=kd.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:bh(d,t,r)}}}var rn=1e9,EC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},al,oe=!0,st="[DecimalError] ",wr=st+"Invalid argument: ",il=st+"Exponent out of range: ",nn=Math.floor,fr=Math.pow,_C=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Je,Pe=1e7,ie=7,Fg=9007199254740991,va=nn(Fg/ie),$={};$.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)*ie;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(st+"NaN");if(r.s<1)throw Error(st+(r.s?"NaN":"-Infinity"));return r.eq(Je)?new n(0):(oe=!1,t=kt(Ln(r,a),Ln(e,a),a),oe=!0,ee(t,i))};$.minus=$.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ug(t,e):qg(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(st+"NaN");return r.s?(oe=!1,t=kt(r,e,0,1).times(e),oe=!0,r.minus(t)):ee(new n(r),i)};$.naturalExponential=$.exp=function(){return Wg(this)};$.naturalLogarithm=$.ln=function(){return Ln(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?qg(t,e):Ug(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*ie+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(st+"NaN")}for(e=de(u),oe=!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=nn((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 oe=!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%Pe|0,t=u/Pe|0;a[i]=(a[i]+t)%Pe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,oe?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,rn),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=Ir(n,!0):(Et(e,0,rn),t===void 0?t=i.rounding:Et(t,0,8),n=ee(new i(n),e+1,t),r=Ir(n,!0,e+1)),r};$.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Ir(i):(Et(e,0,rn),t===void 0?t=a.rounding:Et(t,0,8),n=ee(new a(i),e+de(i)+1,t),r=Ir(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(st+"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)<=Fg){for(i=new s(Je),t=Math.ceil(n/ie+4),oe=!1;r%2&&(i=i.times(u),xh(i.d,t)),r=nn(r/2),r!==0;)u=u.times(u),xh(u.d,t);return oe=!0,e.s<0?new s(Je).div(i):ee(i,n)}}else if(a<0)throw Error(st+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,oe=!1,i=e.times(Ln(u,n+c)),oe=!0,i=Wg(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=Ir(i,r<=a.toExpNeg||r>=a.toExpPos)):(Et(e,1,rn),t===void 0?t=a.rounding:Et(t,0,8),i=ee(new a(i),e,t),r=de(i),n=Ir(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,rn),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 Ir(e,t<=r.toExpNeg||t>=r.toExpPos)};function qg(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)),oe?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/ie),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)/Pe|0,s[a]%=Pe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,oe?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=ie-n.length,r&&(a+=Xt(r)),a+=n;o=e[t],n=o+"",r=ie-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%Pe|0,o=a/Pe|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*Pe+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,I=n.d,M=i.d;if(!n.s)return new k(n);if(!i.s)throw Error(st+"Division by zero");for(s=n.e-i.e,E=M.length,P=I.length,v=new k(N),h=v.d=[],c=0;M[c]==(I[c]||0);)++c;if(M[c]>(I[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/ie+2|0,c=0,E==1)for(l=0,M=M[0],g++;(c<P||l)&&g--;c++)b=l*Pe+(I[c]||0),h[c]=b/M|0,l=b%M|0;else{for(l=Pe/(M[0]+1)|0,l>1&&(M=e(M,l),I=e(I,l),E=M.length,P=I.length),x=E,m=I.slice(0,E),p=m.length;p<E;)m[p++]=0;A=M.slice(),A.unshift(0),O=M[0],M[1]>=Pe/2&&++O;do l=0,u=t(M,m,E,p),u<0?(y=m[0],E!=p&&(y=y*Pe+(m[1]||0)),l=y/O|0,l>1?(l>=Pe&&(l=Pe-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++]=I[x]||0:(m=[I[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 Wg(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(il+de(e));if(!e.s)return new l(Je);for(oe=!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?(oe=!0,ee(a,f)):a}a=o}}function de(e){for(var t=e.e*ie,r=e.d[0];r>=10;r/=10)t++;return t}function $u(e,t,r){if(t>e.LN10.sd())throw oe=!0,r&&(e.precision=r),Error(st+"LN10 precision limit exceeded");return ee(new e(e.LN10),t)}function Xt(e){for(var t="";e--;)t+="0";return t}function Ln(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(st+(v.s?"NaN":"-Infinity"));if(v.eq(Je))return new m(0);if(t==null?(oe=!1,c=p):c=t,v.eq(10))return t==null&&(oe=!0),$u(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=$u(m,c+2,p).times(a+""),v=Ln(new m(n+"."+r.slice(1)),c-d).plus(s),m.precision=p,t==null?(oe=!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($u(m,c+2,p).times(a+""))),u=kt(u,new m(f),c),m.precision=p,t==null?(oe=!0,ee(u,p)):u;u=s,i+=2}}function wh(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=nn(r/ie),e.d=[],n=(r+1)%ie,r<0&&(n+=ie),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ie;n<i;)e.d.push(+t.slice(n,n+=ie));t=t.slice(n),n=ie-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),oe&&(e.e>va||e.e<-va))throw Error(il+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+=ie,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/ie),a=f.length,l>=a)return e;for(c=a=f[l],o=1;a>=10;a/=10)o++;n%=ie,i=n-ie+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,(ie-t%ie)%ie),e.e=nn(-t/ie)||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,ie-n),f[l]=i>0?(c/fr(10,o-i)%fr(10,i)|0)*a:0),s)for(;;)if(l==0){(f[0]+=a)==Pe&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=Pe)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(oe&&(e.e>va||e.e<-va))throw Error(il+de(e));return e}function Ug(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),oe?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/ie),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]=Pe-1;--s[a],s[i]+=Pe}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,oe?ee(t,v):t):new d(0)}function Ir(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 xh(e,t){if(e.length>t)return e.length=t,!0}function Vg(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 wh(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,_C.test(a))wh(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=Vg,i.config=i.set=AC,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 AC(e){if(!e||typeof e!="object")throw Error(st+"Object expected");var t,r,n,i=["precision",1,rn,"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(nn(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 al=Vg(EC);Je=new al(1);const X=al;function Kg(e){var t;return e===0?t=1:t=Math.floor(new X(e).abs().log(10).toNumber())+1,t}function Hg(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 Gg=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},Yg=(e,t,r)=>{if(e.lte(0))return new X(0);var n=Kg(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()))},CC=(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(Kg(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},Xg=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=Yg(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?Xg(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))})},IC=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]=Gg([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 CC(u,i,a);var{step:l,tickMin:f,tickMax:d}=Xg(u,s,o,a,0),v=Hg(f,d.add(new X(.1).mul(l)),l);return r>n?v.reverse():v},TC=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,u]=Gg([n,i]);if(o===-1/0||u===1/0)return[n,i];if(o===u)return[o];var s=Math.max(r,2),c=Yg(new X(u).sub(o).div(s-1),a,0),l=[...Hg(new X(o),new X(u),c),u];return a===!1&&(l=l.map(f=>Math.round(f))),n>i?l.reverse():l},Zg=e=>e.rootProps.maxBarSize,jC=e=>e.rootProps.barGap,Qg=e=>e.rootProps.barCategoryGap,kC=e=>e.rootProps.barSize,Jn=e=>e.rootProps.stackOffset,Jg=e=>e.rootProps.reverseStackOrder,ol=e=>e.options.chartName,ul=e=>e.rootProps.syncId,e0=e=>e.rootProps.syncMethod,sl=e=>e.options.eventEmitter,MC=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"},to=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function ro(e,t,r){if(r!=="auto")return r;if(e!=null)return Bt(e,t)?"category":"number"}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 ha(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){DC(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 DC(e,t,r){return(t=NC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NC(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)}var Ph={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},Sh={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},RC=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},cl=_([RC,Dy],(e,t)=>{var r;if(e!=null)return e;var n=(r=ro(t,"angleAxis",Ph.type))!==null&&r!==void 0?r:"category";return ha(ha({},Ph),{},{type:n})}),LC=(e,t)=>e.polarAxis.radiusAxis[t],ll=_([LC,Dy],(e,t)=>{var r;if(e!=null)return e;var n=(r=ro(t,"radiusAxis",Sh.type))!==null&&r!==void 0?r:"category";return ha(ha({},Sh),{},{type:n})}),no=e=>e.polarOptions,fl=_([Ft,qt,ye],Xy),t0=_([no,fl],(e,t)=>{if(e!=null)return ot(e.innerRadius,t,0)}),r0=_([no,fl],(e,t)=>{if(e!=null)return ot(e.outerRadius,t,t*.8)}),zC=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},n0=_([no],zC);_([cl,n0],to);var i0=_([fl,t0,r0],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});_([ll,i0],to);var a0=_([Z,no,t0,r0,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:ot(o,i,i/2),cy:ot(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:c,clockWise:!1}}}),be=(e,t)=>t,ei=(e,t,r)=>r;function io(e){return e?.id}function o0(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 BC(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 Ae=e=>{var t=Z(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},an=e=>e.tooltip.settings.axisId;function FC(e){if(e in On)return On[e]();var t="scale".concat(Fn(e));if(t in On)return On[t]()}function Eh(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 _h(e,t,r){if(typeof e=="function")return Eh(e.copy().domain(t).range(r));if(e!=null){var n=FC(e);if(n!=null)return n.domain(t).range(r),Eh(n)}}var u0=(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 Ah(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 pa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ah(Object(r),!0).forEach(function(n){qC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ah(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qC(e,t,r){return(t=WC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WC(e){var t=UC(e,"string");return typeof t=="symbol"?t:t+""}function UC(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 Ns=[0,"auto"],xe={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},s0=(e,t)=>e.cartesianAxis.xAxis[t],Kt=(e,t)=>{var r=s0(e,t);return r??xe},Oe={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Ns,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},c0=(e,t)=>e.cartesianAxis.yAxis[t],Ht=(e,t)=>{var r=c0(e,t);return r??Oe},l0={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:""},dl=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??l0},Re=(e,t,r)=>{switch(t){case"xAxis":return Kt(e,r);case"yAxis":return Ht(e,r);case"zAxis":return dl(e,r);case"angleAxis":return cl(e,r);case"radiusAxis":return ll(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},VC=(e,t,r)=>{switch(t){case"xAxis":return Kt(e,r);case"yAxis":return Ht(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},on=(e,t,r)=>{switch(t){case"xAxis":return Kt(e,r);case"yAxis":return Ht(e,r);case"angleAxis":return cl(e,r);case"radiusAxis":return ll(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},f0=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function vl(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,KC=_([be,ei],vl),hl=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),ti=_([so,Re,KC],hl,{memoizeOptions:{resultEqualityCheck:uo}}),d0=_([ti],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(ao)),v0=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),HC=_([ti],v0),pl=e=>e.map(t=>t.data).filter(Boolean).flat(1),GC=_([ti],pl,{memoizeOptions:{resultEqualityCheck:uo}}),ml=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},yl=_([GC,nl],ml),gl=(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=_([yl,Re,ti],gl);function h0(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function ki(e){if(St(e)||e instanceof Date){var t=Number(e);if(W(t))return t}}function Ch(e){if(Array.isArray(e)){var t=[ki(e[0]),ki(e[1])];return $t(t)?t:void 0}var r=ki(e);if(r!=null)return[r,r]}function Rt(e){return e.map(ki).filter(Be)}function YC(e,t,r){return!r||typeof t!="number"||dt(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 we=e=>{var t=Ae(e),r=an(e);return on(e,t,r)},ri=_([we],e=>e?.dataKey),XC=_([d0,nl,we],o0),p0=(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:dP(e,l,r),graphicalItems:c}]}))},ma=_([XC,d0,Jn,Jg],p0),m0=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=yP(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},ZC=_([Re],e=>e.allowDataOverflow),bl=e=>{var t;if(e==null||!("domain"in e))return Ns;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:Ns},wl=_([Re],bl),xl=_([wl,ZC],Bg),QC=_([ma,Vt,be,xl],m0,{memoizeOptions:{resultEqualityCheck:oo}}),lo=e=>e.errorBars,JC=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>h0(r,n)),ya=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]}},Ol=(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=>h0(i,y)),d=me(u,(l=t.dataKey)!==null&&l!==void 0?l:s.dataKey),v=YC(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=Ch(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=Ch(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]},eI=_([yl,Re,HC,lo,be],Ol,{memoizeOptions:{resultEqualityCheck:oo}});function tI(e){var{value:t}=e;if(St(t)||t instanceof Date)return t}var rI=(e,t,r)=>{var n=e.map(tI).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&Pm(n))?eg(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},y0=e=>e.referenceElements.dots,un=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),nI=_([y0,be,ei],un),g0=e=>e.referenceElements.areas,iI=_([g0,be,ei],un),b0=e=>e.referenceElements.lines,aI=_([b0,be,ei],un),w0=(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)]}},oI=_(nI,be,w0),x0=(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)]}},uI=_([iI,be],x0);function sI(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 cI(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 O0=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?sI(n):cI(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},lI=_([aI,be],O0),fI=_(oI,lI,uI,(e,t,r)=>ya(e,r,t)),Pl=(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?ya(n,a,i):ya(a,i);return SC(t,c,e.allowDataOverflow)},dI=_([Re,wl,xl,QC,eI,fI,Z,be],Pl,{memoizeOptions:{resultEqualityCheck:oo}}),vI=[0,1],Sl=(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 eg(0,(l=r?.length)!==null&&l!==void 0?l:0)}return s==="category"?rI(n,e,c):i==="expand"?vI:o}},El=_([Re,Z,yl,co,Jn,be,dI],Sl);function hI(e){return e in On}var P0=(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(Fn(n));return hI(a)?a:"point"}}},Br=_([Re,f0,ol],P0);function _l(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?_h(e.scale,r,n):_h(t,r,n)}var Al=(e,t,r)=>{var n=bl(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&$t(e))return IC(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&$t(e))return TC(e,t.tickCount,t.allowDecimals)}},Cl=_([El,on,Br],Al),Il=(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},pI=_([Re,El,Cl,be],Il),mI=_(co,Re,(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}}),S0=_(mI,Z,Qg,ye,(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=ot(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),yI=(e,t,r)=>{var n=Kt(e,t);return n==null||typeof n.padding!="string"?0:S0(e,"xAxis",t,r,n.padding)},gI=(e,t,r)=>{var n=Ht(e,t);return n==null||typeof n.padding!="string"?0:S0(e,"yAxis",t,r,n.padding)},bI=_(Kt,yI,(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}}),wI=_(Ht,gI,(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}}),xI=_([ye,bI,Ua,Wa,(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]}),OI=_([ye,Z,wI,Ua,Wa,(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]}),ni=(e,t,r,n)=>{var i;switch(t){case"xAxis":return xI(e,r,n);case"yAxis":return OI(e,r,n);case"zAxis":return(i=dl(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return n0(e);case"radiusAxis":return i0(e,r);default:return}},E0=_([Re,ni],to),PI=_([Br,pI],u0),fo=_([Re,Br,PI,E0],_l);_([ti,lo,be],JC);function _0(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var vo=(e,t)=>t,ho=(e,t,r)=>r,SI=_(Fa,vo,ho,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(_0)),EI=_(qa,vo,ho,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(_0)),A0=(e,t)=>({width:e.width,height:t.height}),_I=(e,t)=>{var r=typeof t.width=="number"?t.width:Kn;return{width:r,height:e.height}},C0=_(ye,Kt,A0),AI=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},CI=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},II=_(qt,ye,SI,vo,ho,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var s=A0(t,u);o==null&&(o=AI(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}),TI=_(Ft,ye,EI,vo,ho,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var s=_I(t,u);o==null&&(o=CI(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}),jI=(e,t)=>{var r=Kt(e,t);if(r!=null)return II(e,r.orientation,r.mirror)},kI=_([ye,Kt,jI,(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}}}),MI=(e,t)=>{var r=Ht(e,t);if(r!=null)return TI(e,r.orientation,r.mirror)},DI=_([ye,Ht,MI,(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}}}),I0=_(ye,Ht,(e,t)=>{var r=typeof t.width=="number"?t.width:Kn;return{width:r,height:e.height}}),Ih=(e,t,r)=>{switch(t){case"xAxis":return C0(e,r).width;case"yAxis":return I0(e,r).height;default:return}},T0=(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&&Pm(s))return s}},Tl=_([Z,co,Re,be],T0),j0=(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)}},jl=_([Z,co,on,be],j0),Th=_([Z,VC,Br,fo,Tl,jl,ni,Cl,be],(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}}}),NI=(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?ze(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(Be):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(Be):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(Be):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(Be)}},k0=_([Z,on,Br,fo,Cl,ni,Tl,jl,be],NI),$I=(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?ze(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(Be):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(Be):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(Be)}},Tr=_([Z,on,fo,ni,Tl,jl,be],$I),jr=_(Re,fo,(e,t)=>{if(!(e==null||t==null))return pa(pa({},e),{},{scale:t})}),RI=_([Re,Br,El,E0],_l),LI=_((e,t,r)=>dl(e,r),RI,(e,t)=>{if(!(e==null||t==null))return pa(pa({},e),{},{scale:t})}),zI=_([Z,Fa,qa],(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}}),M0=e=>e.options.defaultTooltipEventType,D0=e=>e.options.validateTooltipEventTypes;function N0(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function kl(e,t){var r=M0(e),n=D0(e);return N0(t,r,n)}function BI(e){return L(t=>kl(t,e))}var $0=(e,t)=>{var r,n=Number(t);if(!(dt(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},FI=e=>e.tooltip.settings,Qt={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},qI={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}},R0=Ge({name:"tooltip",initialState:qI,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ae()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:ae()},removeTooltipEntrySettings:{reducer(e,t){var r=ft(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ae()},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:WI,replaceTooltipEntrySettings:UI,removeTooltipEntrySettings:VI,setTooltipSettingsState:KI,setActiveMouseOverItemIndex:Ml,mouseLeaveItem:L0,mouseLeaveChart:z0,setActiveClickItemIndex:B0,setMouseOverAxisIndex:F0,setMouseClickAxisIndex:HI,setSyncInteraction:$s,setKeyboardInteraction:Rs}=R0.actions,GI=R0.reducer;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 Pi(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){YI(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 YI(e,t,r){return(t=XI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XI(e){var t=ZI(e,"string");return typeof t=="symbol"?t:t+""}function ZI(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 QI(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function JI(e){return e.index!=null}var q0=(e,t,r,n)=>{if(t==null)return Qt;var i=QI(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(JI(i)){if(a)return Pi(Pi({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Pi(Pi({},Qt),{},{coordinate:i.coordinate})};function eT(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 tT(e,t){var r=eT(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 rT(e,t,r){if(r==null||t==null)return!0;var n=me(e,t);return n==null||!$t(r)?!0:tT(n,r)}var Dl=(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||rT(c,r,n)?String(s):null},W0=(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}}}},U0=(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})},V0=e=>e.options.tooltipPayloadSearcher,sn=e=>e.tooltip;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 Mh(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){nT(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 nT(e,t,r){return(t=iT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iT(e){var t=aT(e,"string");return typeof t=="symbol"?t:t+""}function aT(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 oT(e,t){return e??t}var K0=(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=oT(m,u),g=Array.isArray(y)?Py(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=Sm(g,n,i):P=a(g,t,s,x),Array.isArray(P))P.forEach(E=>{var A=Mh(Mh({},p),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});d.push(Md({tooltipEntrySettings:A,dataKey:E.dataKey,payload:E.payload,value:me(E.payload,E.dataKey),name:E.name}))});else{var O;d.push(Md({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)}},Nl=_([we,f0,ol],P0),uT=_([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),sT=_([Ae,an],vl),cn=_([uT,we,sT],hl,{memoizeOptions:{resultEqualityCheck:uo}}),cT=_([cn],e=>e.filter(ao)),lT=_([cn],pl,{memoizeOptions:{resultEqualityCheck:uo}}),ln=_([lT,Vt],ml),fT=_([cT,Vt,we],o0),$l=_([ln,we,cn],gl),H0=_([we],bl),dT=_([we],e=>e.allowDataOverflow),G0=_([H0,dT],Bg),vT=_([cn],e=>e.filter(ao)),hT=_([fT,vT,Jn,Jg],p0),pT=_([hT,Vt,Ae,G0],m0),mT=_([cn],v0),yT=_([ln,we,mT,lo,Ae],Ol,{memoizeOptions:{resultEqualityCheck:oo}}),gT=_([y0,Ae,an],un),bT=_([gT,Ae],w0),wT=_([g0,Ae,an],un),xT=_([wT,Ae],x0),OT=_([b0,Ae,an],un),PT=_([OT,Ae],O0),ST=_([bT,PT,xT],ya),ET=_([we,H0,G0,pT,yT,ST,Z,Ae],Pl),ii=_([we,Z,ln,$l,Jn,Ae,ET],Sl),_T=_([ii,we,Nl],Al),AT=_([we,ii,_T,Ae],Il),Y0=e=>{var t=Ae(e),r=an(e),n=!1;return ni(e,t,r,n)},X0=_([we,Y0],to),Z0=_([we,Nl,AT,X0],_l),CT=_([Z,$l,we,Ae],T0),IT=_([Z,$l,we,Ae],j0),TT=(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?ze(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(Be):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(Be)}}},Gt=_([Z,we,Nl,Z0,Y0,CT,IT,Ae],TT),Rl=_([M0,D0,FI],(e,t,r)=>N0(r.shared,e,t)),Q0=e=>e.tooltip.settings.trigger,Ll=e=>e.tooltip.settings.defaultIndex,ai=_([sn,Rl,Q0,Ll],q0),kr=_([ai,ln,ri,ii],Dl),J0=_([Gt,kr],$0),zl=_([ai],e=>{if(e)return e.dataKey}),jT=_([ai],e=>{if(e)return e.graphicalItemId}),eb=_([sn,Rl,Q0,Ll],U0),kT=_([Ft,qt,Z,ye,Gt,Ll,eb],W0),MT=_([ai,kT],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),DT=_([ai],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),NT=_([eb,kr,Vt,ri,J0,V0,Rl],K0),$T=_([NT],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Dh(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 Nh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dh(Object(r),!0).forEach(function(n){RT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RT(e,t,r){return(t=LT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LT(e){var t=zT(e,"string");return typeof t=="symbol"?t:t+""}function zT(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 BT=()=>L(we),FT=()=>{var e=BT(),t=L(Gt),r=L(Z0);return In(!e||!r?void 0:Nh(Nh({},e),{},{scale:r}),t)};function $h(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?$h(Object(r),!0).forEach(function(n){qT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qT(e,t,r){return(t=WT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WT(e){var t=UT(e,"string");return typeof t=="symbol"?t:t+""}function UT(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 VT=(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}},KT=(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 Wr(Wr(Wr({},n),Ee(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:s}=n;return Wr(Wr(Wr({},n),Ee(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 HT(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 tb=(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(ze(h-v)!==ze(m-h)){var y=[];if(ze(m-h)===ze(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 I=t[k+1],M=t[k-1];if(k===0&&I!=null&&e<=(N.coordinate+I.coordinate)/2||k===o-1&&M!=null&&e>(N.coordinate+M.coordinate)/2||k>0&&k<o-1&&M!=null&&I!=null&&e>(N.coordinate+M.coordinate)/2&&e<=(N.coordinate+I.coordinate)/2)return N.index}}return-1},rb=()=>L(ol),Bl=(e,t)=>t,nb=(e,t,r)=>r,Fl=(e,t,r,n)=>n,GT=_(Gt,e=>ka(e,t=>t.coordinate)),ql=_([sn,Bl,nb,Fl],q0),Wl=_([ql,ln,ri,ii],Dl),YT=(e,t,r)=>{if(t!=null){var n=sn(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},ib=_([sn,Bl,nb,Fl],U0),ga=_([Ft,qt,Z,ye,Gt,Fl,ib],W0),XT=_([ql,ga],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),ab=_([Gt,Wl],$0),ZT=_([ib,Wl,Vt,ri,ab,V0,Bl],K0),QT=_([ql,Wl],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),JT=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&HT(e,o)){var u=gP(e,t),s=tb(u,a,i,r,n),c=VT(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},ej=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var u=_E(e,r);if(u){var s=bP(u,t),c=tb(s,o,a,n,i),l=KT(t,a,c,u);return{activeIndex:String(c),activeCoordinate:l}}}},tj=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?JT(e,t,n,i,a,o,u):ej(e,t,r,n,i,a,o)},rj=_(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}}),nj=_(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:BC}});function Rh(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 Lh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(r),!0).forEach(function(n){ij(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ij(e,t,r){return(t=aj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aj(e){var t=oj(e,"string");return typeof t=="symbol"?t:t+""}function oj(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 uj={},sj={zIndexMap:Object.values($e).reduce((e,t)=>Lh(Lh({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),uj)},cj=new Set(Object.values($e));function lj(e){return cj.has(e)}var ob=Ge({name:"zIndex",initialState:sj,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:ae()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!lj(r)&&delete e.zIndexMap[r])},prepare:ae()},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:ae()},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:ae()}}}),{registerZIndexPortal:fj,unregisterZIndexPortal:dj,registerZIndexPortalElement:vj,unregisterZIndexPortalElement:hj}=ob.actions,pj=ob.reducer;function _t(e){var{zIndex:t,children:r}=e,n=ZP(),i=n&&t!==void 0&&t!==0,a=Ue(),o=ne();S.useLayoutEffect(()=>i?(o(fj({zIndex:t})),()=>{o(dj({zIndex:t}))}):Dr,[o,t,i]);var u=L(s=>rj(s,t,a));return i?u?Qp.createPortal(r,u):null:r}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ls.apply(null,arguments)}function zh(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?zh(Object(r),!0).forEach(function(n){mj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mj(e,t,r){return(t=yj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yj(e){var t=gj(e,"string");return typeof t=="symbol"?t:t+""}function gj(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 bj(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return S.isValidElement(t)?S.cloneElement(t,n):S.createElement(r,n)}function wj(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=BS,p=$e.cursorLine;else if(l==="BarChart")h=FS(u,f,a,o),m=Ec,p=$e.cursorRectangle;else if(u==="radial"&&_m(f)){var{cx:y,cy:g,radius:b,startAngle:x,endAngle:P}=Zy(f);h={cx:y,cy:g,startAngle:x,endAngle:P,innerRadius:b,outerRadius:b},m=Jy,p=$e.cursorLine}else h={points:TE(u,f,a)},m=Sc,p=$e.cursorLine;var O=typeof s=="object"&&"className"in s?s.className:void 0,E=Si(Si(Si(Si({stroke:"#ccc",pointerEvents:"none"},a),h),Aa(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(bj,{cursor:s,cursorComp:m,cursorProps:E}))}function xj(e){var t=FT(),r=My(),n=Nr(),i=rb();return t==null||r==null||n==null||i==null?null:w.createElement(wj,Ls({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var Ul=S.createContext(null),Oj=()=>S.useContext(Ul),Ru={exports:{}},Bh;function Pj(){return Bh||(Bh=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}(Ru)),Ru.exports}var Sj=Pj();const Ej=zt(Sj);var zn=new Ej,zs="recharts.syncEvent.tooltip",Fh="recharts.syncEvent.brush",_j=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!dt(r))return e[r]}},Aj={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},ub=Ge({name:"options",initialState:Aj,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Cj=ub.reducer,{createEventEmitter:Ij}=ub.actions;function Tj(e){return e.tooltip.syncInteraction}var jj={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},sb=Ge({name:"chartData",initialState:jj,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:Bs,setDataStartEndIndexes:kj,setComputedData:Mj}=sb.actions,Dj=sb.reducer,Nj=["x","y"];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 Ur(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){$j(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 $j(e,t,r){return(t=Rj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rj(e){var t=Lj(e,"string");return typeof t=="symbol"?t:t+""}function Lj(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 zj(e,t){if(e==null)return{};var r,n,i=Bj(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 Bj(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 Fj(){var e=L(ul),t=L(sl),r=ne(),n=L(e0),i=L(Gt),a=Nr(),o=Hn(),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=zj(v,Nj),{x:y,y:g,width:b,height:x}=l.payload.sourceViewBox,P=Ur(Ur({},p),{},{x:o.x+(b?(h-y)/b:0)*o.width,y:o.y+(x?(m-g)/x:0)*o.height});r(Ur(Ur({},l),{},{payload:Ur(Ur({},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($s({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:N,y:I}=k,M=Math.min(N,o.x+o.width),C=Math.min(I,o.y+o.height),z={x:a==="horizontal"?O.coordinate:M,y:a==="horizontal"?C:O.coordinate},K=$s({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(K)}}};return zn.on(zs,s),()=>{zn.off(zs,s)}},[u,r,t,e,n,i,a,o])}function qj(){var e=L(ul),t=L(sl),r=ne();S.useEffect(()=>{if(e==null)return Dr;var n=(i,a,o)=>{t!==o&&e===i&&r(kj(a))};return zn.on(Fh,n),()=>{zn.off(Fh,n)}},[r,t,e])}function Wj(){var e=ne();S.useEffect(()=>{e(Ij())},[e]),Fj(),qj()}function Uj(e,t,r,n,i,a){var o=L(v=>YT(v,e,t)),u=L(sl),s=L(ul),c=L(e0),l=L(Tj),f=l?.active,d=Hn();S.useEffect(()=>{if(!f&&s!=null&&u!=null){var v=$s({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:d,graphicalItemId:void 0});zn.emit(zs,s,v,u)}},[f,r,o,i,n,u,s,c,a,d])}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 Uh(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){Vj(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 Vj(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=Hj(e,"string");return typeof t=="symbol"?t:t+""}function Hj(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 Gj(e){return e.dataKey}function Yj(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(bS,t)}var Vh=[],Xj={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 Zj(e){var t,r,n=He(e,Xj),{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=ne(),A=typeof x=="number"?String(x):x;S.useEffect(()=>{E(KI({shared:g,trigger:b,axisId:O,active:i,defaultIndex:A}))},[E,g,b,O,i,A]);var k=Hn(),N=Vy(),I=BI(g),{activeIndex:M,isActive:C}=(t=L(Me=>QT(Me,I,b,A)))!==null&&t!==void 0?t:{},z=L(Me=>ZT(Me,I,b,A)),K=L(Me=>ab(Me,I,b,A)),U=L(Me=>XT(Me,I,b,A)),B=z,G=Oj(),F=(r=i??C)!==null&&r!==void 0?r:!1,[ve,fe]=qm([B,F]),Ce=I==="axis"?K:void 0;Uj(I,b,U,Ce,M,F);var Ye=P??G;if(Ye==null||k==null||I==null)return null;var ke=B??Vh;F||(ke=Vh),c&&ke.length&&(ke=$m(ke.filter(Me=>Me.value!=null&&(Me.hide!==!0||n.includeHidden)),d,Gj));var At=ke.length>0,or=w.createElement(_S,{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},Yj(s,Uh(Uh({},n),{},{payload:ke,label:Ce,active:F,activeIndex:M,coordinate:U,accessibilityLayer:N})));return w.createElement(w.Fragment,null,Qp.createPortal(or,Ye),F&&w.createElement(xj,{cursor:y,tooltipEventType:I,coordinate:U,payload:ke,index:M}))}var Vl=e=>null;Vl.displayName="Cell";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=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)}class tk{constructor(t){Qj(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 rk(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){nk(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 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 ok={cacheSize:2e3,enableCache:!0},cb=rk({},ok),Hh=new tk(cb.cacheSize),uk={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gh="recharts_measurement_span";function sk(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 Yh=(e,t)=>{try{var r=document.getElementById(Gh);r||(r=document.createElement("span"),r.setAttribute("id",Gh),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,uk,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Sn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Yn.isSsr)return{width:0,height:0};if(!cb.enableCache)return Yh(t,r);var n=sk(t,r),i=Hh.get(n);if(i)return i;var a=Yh(t,r);return Hh.set(n,a),a},lb;function ck(e,t,r){return(t=lk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lk(e){var t=fk(e,"string");return typeof t=="symbol"?t:t+""}function fk(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 Xh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dk=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vk=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,hk={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},pk=["cm","mm","pt","pc","in","Q","px"];function mk(e){return pk.includes(e)}var Kr="NaN";function yk(e,t){return e*hk[t]}class je{static parse(t){var r,[,n,i]=(r=vk.exec(t))!==null&&r!==void 0?r:[];return n==null?je.NaN:new je(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,dt(t)&&(this.unit=""),r!==""&&!dk.test(r)&&(this.num=NaN,this.unit=""),mk(r)&&(this.num=yk(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new je(NaN,""):new je(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new je(NaN,""):new je(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new je(NaN,""):new je(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new je(NaN,""):new je(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return dt(this.num)}}lb=je;ck(je,"NaN",new lb(NaN,""));function fb(e){if(e==null||e.includes(Kr))return Kr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=Xh.exec(t))!==null&&r!==void 0?r:[],o=je.parse(n??""),u=je.parse(a??""),s=i==="*"?o.multiply(u):o.divide(u);if(s.isNaN())return Kr;t=t.replace(Xh,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,l,f,d]=(c=Zh.exec(t))!==null&&c!==void 0?c:[],v=je.parse(l??""),h=je.parse(d??""),m=f==="+"?v.add(h):v.subtract(h);if(m.isNaN())return Kr;t=t.replace(Zh,m.toString())}return t}var Qh=/\(([^()]*)\)/;function gk(e){for(var t=e,r;(r=Qh.exec(t))!=null;){var[,n]=r;t=t.replace(Qh,fb(n))}return t}function bk(e){var t=e.replace(/\s+/g,"");return t=gk(t),t=fb(t),t}function wk(e){try{return bk(e)}catch{return Kr}}function Lu(e){var t=wk(e.slice(5,-1));return t===Kr?"":t}var xk=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],Ok=["dx","dy","angle","className","breakAll"];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 Jh(e,t){if(e==null)return{};var r,n,i=Pk(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 Pk(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 db=/[ \f\n\r\t\v\u2028\u2029]+/,vb=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];le(t)||(r?i=t.toString().split(""):i=t.toString().split(db));var a=i.map(u=>({word:u,width:Sn(u,n).width})),o=r?0:Sn(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function Sk(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var hb=(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},[]),pb=e=>e.reduce((t,r)=>t.width>r.width?t:r),Ek="…",ep=(e,t,r,n,i,a,o,u)=>{var s=e.slice(0,t),c=vb({breakAll:r,style:n,children:s+Ek});if(!c)return[!1,[]];var l=hb(c.wordsWithComputedWidth,a,o,u),f=l.length>i||pb(l).width>Number(a);return[f,l]},_k=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:s}=e,c=R(a),l=String(o),f=hb(t,n,r,i);if(!c||i)return f;var d=f.length>a||pb(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]=ep(l,g,s,u,a,n,r,i),[P]=ep(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},tp=e=>{var t=le(e)?[]:e.toString().split(db);return[{words:t,width:void 0}]},Ak=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Yn.isSsr){var u,s,c=vb({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:l,spaceWidth:f}=c;u=l,s=f}else return tp(n);return _k({breakAll:a,children:n,maxLines:o,style:i},u,s,t,!!r)}return tp(n)},mb="#808080",Ck={angle:0,breakAll:!1,capHeight:"0.71em",fill:mb,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},po=S.forwardRef((e,t)=>{var r=He(e,Ck),{x:n,y:i,lineHeight:a,capHeight:o,fill:u,scaleToFit:s,textAnchor:c,verticalAnchor:l}=r,f=Jh(r,xk),d=S.useMemo(()=>Ak({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=Jh(f,Ok);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=Lu("calc(".concat(o,")"));break;case"middle":P=Lu("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:P=Lu("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",Fs({},qe(g),{ref:t,x:b,y:x,className:re("recharts-text",p),textAnchor:c,fill:u.includes("url")?mb:u}),d.map((N,I)=>{var M=N.words.join(y?"":" ");return w.createElement("tspan",{x:b,dy:I===0?P:a,key:"".concat(M,"-").concat(I)},M)}))});po.displayName="Text";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 gt(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){Ik(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 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=jk(e,"string");return typeof t=="symbol"?t:t+""}function jk(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 kk=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:u,upperWidth:s,lowerWidth:c}=gc(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 I={x:d+v+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(I.width=Math.max(E.x+E.width-I.x,0),I.height=u),I}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+ot(r.x,v),y:o+ot(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},M):gt({x:h,y:o+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},M)},Mk=["labelRef"],Dk=["content"];function np(e,t){if(e==null)return{};var r,n,i=Nk(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 Nk(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 ip(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 Pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(r),!0).forEach(function(n){$k(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $k(e,t,r){return(t=Rk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rk(e){var t=Lk(e,"string");return typeof t=="symbol"?t:t+""}function Lk(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 It(){return It=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},It.apply(null,arguments)}var yb=S.createContext(null),zk=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(yb.Provider,{value:s},u)},gb=()=>{var e=S.useContext(yb),t=Hn();return e||(t?gc(t):void 0)},Bk=S.createContext(null),Fk=()=>{var e=S.useContext(Bk),t=L(a0);return e||t},qk=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",Wk=(e,t)=>{var r=ze(t-e),n=Math.min(Math.abs(t-e),360);return r*n},Uk=(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=Wk(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=Ee(u,s,h,y),x=Ee(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)?En("recharts-radial-line-"):e.id;return w.createElement("text",It({},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))},Vk=(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}=Ee(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}=Ee(n,i,d,c);return{x:v,y:h,textAnchor:"middle",verticalAnchor:"middle"}},Mi=e=>e!=null&&"cx"in e&&R(e.cx),Kk={angle:0,offset:5,zIndex:$e.label,position:"middle",textBreakAll:!1};function Hk(e){if(!Mi(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,Kk),{viewBox:r,parentViewBox:n,position:i,value:a,children:o,content:u,className:s="",textBreakAll:c,labelRef:l}=t,f=Fk(),d=gb(),v=i==="center"?d:f??d,h,m,p;r==null?h=v:Mi(r)?h=r:h=gc(r);var y=Hk(h);if(!h||le(a)&&le(o)&&!S.isValidElement(u)&&typeof u!="function")return null;var g=Pn(Pn({},t),{},{viewBox:h});if(S.isValidElement(u)){var{labelRef:b}=g,x=np(g,Mk);return S.cloneElement(u,x)}if(typeof u=="function"){var{content:P}=g,O=np(g,Dk);if(m=S.createElement(u,O),S.isValidElement(m))return m}else m=qk(t);var E=qe(t);if(Mi(h)){if(i==="insideStart"||i==="insideEnd"||i==="end")return Uk(t,i,m,E,h);p=Vk(h,t.offset,t.position)}else{if(!y)return null;var A=kk({viewBox:y,position:i,offset:t.offset,parentViewBox:Mi(n)?void 0:n});p=Pn(Pn({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(po,It({ref:l,className:re("recharts-label",s)},E,p,{textAnchor:Sk(E.textAnchor)?E.textAnchor:p.textAnchor,breakAll:c}),m))}Zt.displayName="Label";var Gk=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?w.createElement(Zt,It({key:"label-implicit"},n)):St(e)?w.createElement(Zt,It({key:"label-implicit",value:e},n)):S.isValidElement(e)?e.type===Zt?S.cloneElement(e,Pn({key:"label-implicit"},n)):w.createElement(Zt,It({key:"label-implicit",content:e},n)):Kl(e)?w.createElement(Zt,It({key:"label-implicit",content:e},n)):e&&typeof e=="object"?w.createElement(Zt,It({},e,{key:"label-implicit"},n)):null};function Yk(e){var{label:t,labelRef:r}=e,n=gb();return Gk(t,n,r)||null}var zu={},Bu={},ap;function Xk(){return ap||(ap=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t}(Bu)),Bu}var Fu={},op;function Zk(){return op||(op=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t}(Fu)),Fu}var up;function Qk(){return up||(up=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xk(),r=Zk(),n=oc();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i}(zu)),zu}var qu,sp;function Jk(){return sp||(sp=1,qu=Qk().last),qu}var eM=Jk();const tM=zt(eM);var rM=["valueAccessor"],nM=["dataKey","clockWise","id","textBreakAll","zIndex"];function ba(){return ba=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},ba.apply(null,arguments)}function cp(e,t){if(e==null)return{};var r,n,i=iM(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 iM(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 aM=e=>Array.isArray(e.value)?tM(e.value):e.value,bb=S.createContext(void 0),wb=bb.Provider,xb=S.createContext(void 0),oM=xb.Provider;function uM(){return S.useContext(bb)}function sM(){return S.useContext(xb)}function Di(e){var{valueAccessor:t=aM}=e,r=cp(e,rM),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:u}=r,s=cp(r,nM),c=uM(),l=sM(),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,ba({key:"label-".concat(v)},qe(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}))})))}Di.displayName="LabelList";function Ob(e){var{label:t}=e;return t?t===!0?w.createElement(Di,{key:"labelList-implicit"}):w.isValidElement(t)||Kl(t)?w.createElement(Di,{key:"labelList-implicit",content:t}):typeof t=="object"?w.createElement(Di,ba({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var cM={radiusAxis:{},angleAxis:{}},Pb=Ge({name:"polarAxis",initialState:cM,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:W2,removeRadiusAxis:U2,addAngleAxis:V2,removeAngleAxis:K2}=Pb.actions,lM=Pb.reducer;function Sb(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var Ei={exports:{}},Q={};/** @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 lp;function fM(){if(lp)return Q;lp=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,I=n,M=s;return Q.ContextConsumer=o,Q.ContextProvider=b,Q.Element=x,Q.ForwardRef=P,Q.Fragment=O,Q.Lazy=E,Q.Memo=A,Q.Portal=k,Q.Profiler=N,Q.StrictMode=I,Q.Suspense=M,Q.isAsyncMode=function(){return!1},Q.isConcurrentMode=function(){return!1},Q.isContextConsumer=function(C){return g(C)===o},Q.isContextProvider=function(C){return g(C)===a},Q.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},Q.isForwardRef=function(C){return g(C)===u},Q.isFragment=function(C){return g(C)===r},Q.isLazy=function(C){return g(C)===f},Q.isMemo=function(C){return g(C)===l},Q.isPortal=function(C){return g(C)===t},Q.isProfiler=function(C){return g(C)===i},Q.isStrictMode=function(C){return g(C)===n},Q.isSuspense=function(C){return g(C)===s},Q.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)},Q.typeOf=g,Q}var J={};/** @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 fp;function dM(){return fp||(fp=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 j=D.$$typeof;switch(j){case e:var he=D.type;switch(he){case r:case i:case n:case s:case c:return he;default:var Y=he&&he.$$typeof;switch(Y){case o:case u:case f:case l:case a:return Y;default:return j}}case t:return j}}}var P=o,O=a,E=e,A=u,k=r,N=f,I=l,M=t,C=i,z=n,K=s,U=!1,B=!1;function G(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 Ce(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Ye(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 fn(D){return x(D)===i}function T(D){return x(D)===n}function q(D){return x(D)===s}J.ContextConsumer=P,J.ContextProvider=O,J.Element=E,J.ForwardRef=A,J.Fragment=k,J.Lazy=N,J.Memo=I,J.Portal=M,J.Profiler=C,J.StrictMode=z,J.Suspense=K,J.isAsyncMode=G,J.isConcurrentMode=F,J.isContextConsumer=ve,J.isContextProvider=fe,J.isElement=Ce,J.isForwardRef=Ye,J.isFragment=ke,J.isLazy=At,J.isMemo=or,J.isPortal=Me,J.isProfiler=fn,J.isStrictMode=T,J.isSuspense=q,J.isValidElementType=b,J.typeOf=x}()),J}var dp;function vM(){return dp||(dp=1,process.env.NODE_ENV==="production"?Ei.exports=fM():Ei.exports=dM()),Ei.exports}var hM=vM(),vp=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",hp=null,Wu=null,Eb=e=>{if(e===hp&&Array.isArray(Wu))return Wu;var t=[];return S.Children.forEach(e,r=>{le(r)||(hM.isFragment(r)?t=t.concat(Eb(r.props.children)):t.push(r))}),Wu=t,hp=e,t};function _b(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>vp(i)):n=[vp(t)],Eb(e).forEach(i=>{var a=Or(i,"type.displayName")||Or(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var pM=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,Uu={},pp;function mM(){return pp||(pp=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}(Uu)),Uu}var Vu,mp;function yM(){return mp||(mp=1,Vu=mM().isPlainObject),Vu}var gM=yM();const bM=zt(gM);var yp,gp,bp,wp,xp;function Op(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 Pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Op(Object(r),!0).forEach(function(n){wM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Op(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wM(e,t,r){return(t=xM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e){var t=OM(e,"string");return typeof t=="symbol"?t:t+""}function OM(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 wa(){return wa=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},wa.apply(null,arguments)}function wn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Sp=(e,t,r,n,i)=>{var a=r-n,o;return o=ce(yp||(yp=wn(["M ",",",""])),e,t),o+=ce(gp||(gp=wn(["L ",",",""])),e+r,t),o+=ce(bp||(bp=wn(["L ",",",""])),e+r-a/2,t+i),o+=ce(wp||(wp=wn(["L ",",",""])),e+r-a/2-n,t+i),o+=ce(xp||(xp=wn(["L ",","," Z"])),e,t),o},PM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},SM=e=>{var t=He(e,PM),{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=Ya(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",wa({},qe(t),{className:P,d:Sp(r,n,i,a,o)})));var O=m.current,E=p.current,A=y.current,k=g.current,N=b.current,I="0px ".concat(v===-1?1:v,"px"),M="".concat(v,"px 0px"),C=Ky(["strokeDasharray"],c,s);return w.createElement(Ga,{animationId:x,key:x,canBegin:v>0,duration:c,easing:s,isActive:f,begin:l},z=>{var K=Se(O,i,z),U=Se(E,a,z),B=Se(A,o,z),G=Se(k,r,z),F=Se(N,n,z);d.current&&(m.current=K,p.current=U,y.current=B,g.current=G,b.current=F);var ve=z>0?{transition:C,strokeDasharray:M}:{strokeDasharray:I};return w.createElement("path",wa({},qe(t),{className:P,d:Sp(G,F,K,U,B),ref:d,style:Pp(Pp({},ve),t.style)}))})},EM=["option","shapeType","activeClassName"];function _M(e,t){if(e==null)return{};var r,n,i=AM(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 AM(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 Ep(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 xa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ep(Object(r),!0).forEach(function(n){CM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ep(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CM(e,t,r){return(t=IM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IM(e){var t=TM(e,"string");return typeof t=="symbol"?t:t+""}function TM(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 jM(e,t){return xa(xa({},t),e)}function kM(e,t){return e==="symbols"}function _p(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return w.createElement(Ec,r);case"trapezoid":return w.createElement(SM,r);case"sector":return w.createElement(Jy,r);case"symbols":if(kM(t))return w.createElement(ic,r);break;case"curve":return w.createElement(Sc,r);default:return null}}function MM(e){return S.isValidElement(e)?e.props:e}function Ab(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,i=_M(e,EM),a;if(S.isValidElement(t))a=S.cloneElement(t,xa(xa({},i),MM(t)));else if(typeof t=="function")a=t(i,i.index);else if(bM(t)&&typeof t!="boolean"){var o=jM(t,i);a=w.createElement(_p,{shapeType:r,elementProps:o})}else{var u=i;a=w.createElement(_p,{shapeType:r,elementProps:u})}return i.isActive?w.createElement(Pt,{className:n},a):a}var Hl=(e,t,r)=>{var n=ne();return(i,a)=>o=>{e?.(i,a,o),n(Ml({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},Gl=e=>{var t=ne();return(r,n)=>i=>{e?.(r,n,i),t(L0())}},Yl=(e,t,r)=>{var n=ne();return(i,a)=>o=>{e?.(i,a,o),n(B0({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function Cb(e){var{tooltipEntrySettings:t}=e,r=ne(),n=Ue(),i=S.useRef(null);return S.useLayoutEffect(()=>{n||(i.current===null?r(WI(t)):i.current!==t&&r(UI({prev:i.current,next:t})),i.current=t)},[t,r,n]),S.useLayoutEffect(()=>()=>{i.current&&(r(VI(i.current)),i.current=null)},[r]),null}function Ib(e){var{legendPayload:t}=e,r=ne(),n=Ue(),i=S.useRef(null);return S.useLayoutEffect(()=>{n||(i.current===null?r(qy(t)):i.current!==t&&r(Wy({prev:i.current,next:t})),i.current=t)},[r,n,t]),S.useLayoutEffect(()=>()=>{i.current&&(r(Uy(i.current)),i.current=null)},[r]),null}function DM(e){var{legendPayload:t}=e,r=ne(),n=L(Z),i=S.useRef(null);return S.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(i.current===null?r(qy(t)):i.current!==t&&r(Wy({prev:i.current,next:t})),i.current=t)},[r,n,t]),S.useLayoutEffect(()=>()=>{i.current&&(r(Uy(i.current)),i.current=null)},[r]),null}var Ku,NM=()=>{var[e]=w.useState(()=>En("uid-"));return e},$M=(Ku=w.useId)!==null&&Ku!==void 0?Ku:NM;function RM(e,t){var r=$M();return t||(e?"".concat(e,"-").concat(r):r)}var LM=S.createContext(void 0),Tb=e=>{var{id:t,type:r,children:n}=e,i=RM("recharts-".concat(r),t);return w.createElement(LM.Provider,{value:i},n(i))},zM={cartesianItems:[],polarItems:[]},jb=Ge({name:"graphicalItems",initialState:zM,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ae()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:ae()},removeCartesianGraphicalItem:{reducer(e,t){var r=ft(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ae()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ae()},removePolarGraphicalItem:{reducer(e,t){var r=ft(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ae()}}}),{addCartesianGraphicalItem:BM,replaceCartesianGraphicalItem:FM,removeCartesianGraphicalItem:qM,addPolarGraphicalItem:WM,removePolarGraphicalItem:UM}=jb.actions,VM=jb.reducer,KM=e=>{var t=ne(),r=S.useRef(null);return S.useLayoutEffect(()=>{r.current===null?t(BM(e)):r.current!==e&&t(FM({prev:r.current,next:e})),r.current=e},[t,e]),S.useLayoutEffect(()=>()=>{r.current&&(t(qM(r.current)),r.current=null)},[t]),null},kb=S.memo(KM);function HM(e){var t=ne();return S.useLayoutEffect(()=>(t(WM(e)),()=>{t(UM(e))}),[t,e]),null}function Ap(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?Ap(Object(r),!0).forEach(function(n){GM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ap(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GM(e,t,r){return(t=YM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YM(e){var t=XM(e,"string");return typeof t=="symbol"?t:t+""}function XM(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 Mb=0,ZM={xAxis:{},yAxis:{},zAxis:{}},Db=Ge({name:"cartesianAxis",initialState:ZM,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:ae()},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:ae()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:ae()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:ae()},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:ae()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:ae()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:ae()},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:ae()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:ae()},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]=Cp(Cp({},i),{},{width:n,widthHistory:u})}}}}),{addXAxis:QM,replaceXAxis:JM,removeXAxis:eD,addYAxis:tD,replaceYAxis:rD,removeYAxis:nD,addZAxis:H2,replaceZAxis:G2,removeZAxis:Y2,updateYAxisWidth:iD}=Db.actions,aD=Db.reducer,oD=_([ye],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),uD=_([oD,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)}}),Xl=()=>L(uD),sD=()=>L($T),Ip=(e,t,r)=>{var n=r??e;if(!le(n))return ot(n,t,0)},cD=(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=Ip(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=Ip(t,r,c.barSize);return{stackId:void 0,dataKeys:l,barSize:f}});return[...u,...s]};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 _i(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){lD(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 lD(e,t,r){return(t=fD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fD(e){var t=dD(e,"string");return typeof t=="symbol"?t:t+""}function dD(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 vD(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var u=ot(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=ot(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 hD=(e,t,r,n,i,a,o)=>{var u=le(o)?t:o,s=vD(r,n,i!==a?i:a,e,u);return i!==a&&s!=null&&(s=s.map(c=>_i(_i({},c),{},{position:_i(_i({},c.position),{},{offset:c.position.offset-i/2})}))),s},pD=(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)}}}},mD=(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 yD(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&W(e.zIndex)?e.zIndex:t}var Nb=e=>{var{chartData:t}=e,r=ne(),n=Ue();return S.useEffect(()=>n?()=>{}:(r(Bs(t)),()=>{r(Bs(void 0))}),[t,r,n]),null},gD=e=>{var{computedData:t}=e,r=ne();return S.useEffect(()=>(r(Mj(t)),()=>{r(Bs(void 0))}),[t,r]),null},jp={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},$b=Ge({name:"brush",initialState:jp,reducers:{setBrushSettings(e,t){return t.payload==null?jp:t.payload}}}),{setBrushSettings:X2}=$b.actions,bD=$b.reducer;function wD(e){return(e%180+180)%180}var xD=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=wD(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)},OD={dots:[],areas:[],lines:[]},Rb=Ge({name:"referenceElements",initialState:OD,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ft(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=ft(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=ft(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:Z2,removeDot:Q2,addArea:J2,removeArea:eR,addLine:tR,removeLine:rR}=Rb.actions,PD=Rb.reducer,SD=S.createContext(void 0),ED=e=>{var{children:t}=e,[r]=S.useState("".concat(En("recharts"),"-clip")),n=Xl();if(n==null)return null;var{x:i,y:a,width:o,height:u}=n;return w.createElement(SD.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 Lb(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 _D(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return xD(n,r)}function AD(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 Bn(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 CD(e,t){return Lb(e,t+1)}function ID(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:Lb(n,c)};var m=s,p,y=()=>(p===void 0&&(p=r(h,m)),p),g=h.coordinate,b=s===0||Bn(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 TD(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||Bn(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 kp(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?kp(Object(r),!0).forEach(function(n){jD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jD(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)}function DD(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=Bn(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 ND(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=Bn(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=Bn(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 Zl(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=CD(i,R(s)?s:0))!==null&&d!==void 0?d:[]}var v=[],h=u==="top"||u==="bottom"?"width":"height",m=l&&h==="width"?Sn(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"?_D(Sn(E,{fontSize:t,letterSpacing:r}),m,f):Sn(E,{fontSize:t,letterSpacing:r})[h]},y=i[0],g=i[1],b=i.length>=2&&y!=null&&g!=null?ze(g.coordinate-y.coordinate):1,x=AD(a,b,h);return s==="equidistantPreserveStart"?ID(b,x,p,i,o):s==="equidistantPreserveEnd"?TD(b,x,p,i,o):(s==="preserveStart"||s==="preserveStartEnd"?v=ND(b,x,p,i,o,s==="preserveStartEnd"):v=DD(b,x,p,i,o),v.filter(P=>P.isShow))}var $D=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},RD=["axisLine","width","height","className","hide","ticks","axisType"];function LD(e,t){if(e==null)return{};var r,n,i=zD(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 zD(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 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 se(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){BD(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 BD(e,t,r){return(t=FD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FD(e){var t=qD(e,"string");return typeof t=="symbol"?t:t+""}function qD(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 WD(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 UD(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 VD(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function KD(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function HD(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,Sb(t))),i=w.createElement(po,Mr({},r,{className:o}),n)}return i}var GD=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=Zl(se(se({},x),{},{ticks:r}),g,b),A=VD(l,f),k=KD(l,f),N=Ot(x),I=Aa(n),M={};typeof i=="object"&&(M=i);var C=se(se({},N),{},{fill:"none"},M),z=E.map(B=>se({entry:B},UD(B,d,v,h,m,l,p,f,y))),K=z.map(B=>{var{entry:G,line:F}=B;return w.createElement(Pt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(G.value,"-").concat(G.coordinate,"-").concat(G.tickCoord)},i&&w.createElement("line",Mr({},C,F,{className:re("recharts-cartesian-axis-tick-line",Or(i,"className"))})))}),U=z.map((B,G)=>{var F,ve,{entry:fe,tick:Ce}=B,Ye=se(se(se(se({verticalAnchor:k},N),{},{textAnchor:A,stroke:"none",fill:a},Ce),{},{index:G,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({},Ye),I);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,G)),n&&w.createElement(HD,{option:n,tickProps:ke,value:"".concat(typeof o=="function"?o(fe.value,G):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)),K.length>0&&w.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},K))}),YD=S.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:u,axisType:s}=e,c=LD(e,RD),[l,f]=S.useState(""),[d,v]=S.useState(""),h=S.useRef(null);S.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var p;return $D({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(WD,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Ot(e)}),w.createElement(GD,{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(zk,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},w.createElement(Yk,{label:e.label,labelRef:e.labelRef}),e.children)))}),Ql=w.forwardRef((e,t)=>{var r=He(e,Mt);return w.createElement(YD,Mr({},r,{ref:t}))});Ql.displayName="CartesianAxis";var XD=["x1","y1","x2","y2","key"],ZD=["offset"],QD=["xAxisId","yAxisId"],JD=["xAxisId","yAxisId"];function Dp(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?Dp(Object(r),!0).forEach(function(n){eN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eN(e,t,r){return(t=tN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tN(e){var t=rN(e,"string");return typeof t=="symbol"?t:t+""}function rN(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 Oa(e,t){if(e==null)return{};var r,n,i=nN(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 nN(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 iN=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 zb(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=Oa(r,XD),f=(i=Ot(l))!==null&&i!==void 0?i:{},{offset:d}=f,v=Oa(f,ZD);n=w.createElement("line",mr({},v,{x1:a,y1:o,x2:u,y2:s,fill:"none",key:c}))}return n}function aN(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=Oa(e,QD),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(zb,{key:"line-".concat(l),option:n,lineItemProps:f})});return w.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function oN(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=Oa(e,JD),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(zb,{option:n,lineItemProps:f,key:"line-".concat(l)})});return w.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function uN(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 sN(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 cN=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return Sy(Zl(Ne(Ne(Ne({},Mt),r),{},{ticks:Ey(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},lN=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return Sy(Zl(Ne(Ne(Ne({},Mt),r),{},{ticks:Ey(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},fN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:$e.grid};function Bb(e){var t=bc(),r=wc(),n=My(),i=Ne(Ne({},He(e,fN)),{},{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=Ue(),m=L(k=>Th(k,"xAxis",a,h)),p=L(k=>Th(k,"yAxis",o,h));if(!ht(c)||!ht(l)||!R(u)||!R(s))return null;var y=i.verticalCoordinatesGenerator||cN,g=i.horizontalCoordinatesGenerator||lN,{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);Yi(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);Yi(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(iN,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),w.createElement(uN,mr({},i,{horizontalPoints:b})),w.createElement(sN,mr({},i,{verticalPoints:x})),w.createElement(aN,mr({},i,{offset:n,horizontalPoints:b,xAxis:m,yAxis:p})),w.createElement(oN,mr({},i,{offset:n,verticalPoints:x,xAxis:m,yAxis:p}))))}Bb.displayName="CartesianGrid";var dN={},Fb=Ge({name:"errorBars",initialState:dN,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:nR,replaceErrorBar:iR,removeErrorBar:aR}=Fb.actions,vN=Fb.reducer,hN=["children"];function pN(e,t){if(e==null)return{};var r,n,i=mN(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 mN(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 yN={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},gN=S.createContext(yN);function qb(e){var{children:t}=e,r=pN(e,hN);return w.createElement(gN.Provider,{value:r},t)}function Jl(e,t){var r,n,i=L(c=>Kt(c,e)),a=L(c=>Ht(c,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:xe.allowDataOverflow,u=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Oe.allowDataOverflow,s=o||u;return{needClip:s,needClipX:o,needClipY:u}}function Wb(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=Xl(),{needClipX:a,needClipY:o,needClip:u}=Jl(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 Ai={exports:{}},Hu={};/**
|
|
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 Np;function bN(){if(Np)return Hu;Np=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 Hu.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},Hu}var Gu={};/**
|
|
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 $p;function wN(){return $p||($p=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;Gu.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())}()),Gu}var Rp;function xN(){return Rp||(Rp=1,process.env.NODE_ENV==="production"?Ai.exports=bN():Ai.exports=wN()),Ai.exports}xN();function ON(e){e()}function PN(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ON(()=>{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 Lp={notify(){},get:()=>[]};function SN(e,t){let r,n=Lp,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=PN())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Lp)}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 EN=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_N=EN(),AN=()=>typeof navigator<"u"&&navigator.product==="ReactNative",CN=AN(),IN=()=>_N||CN?w.useLayoutEffect:w.useEffect,TN=IN();function zp(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function jN(e,t){if(zp(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])||!zp(e[r[i]],t[r[i]]))return!1;return!0}var kN=Symbol.for("react-redux-context"),MN=typeof globalThis<"u"?globalThis:{};function DN(){if(!w.createContext)return{};const e=MN[kN]??=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 NN=DN();function $N(e){const{children:t,context:r,serverState:n,store:i}=e,a=w.useMemo(()=>{const s=SN(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]);TN(()=>{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||NN;return w.createElement(u.Provider,{value:a},t)}var RN=$N,LN=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function zN(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function mo(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(LN.has(n)){if(e[n]==null&&t[n]==null)continue;if(!jN(e[n],t[n]))return!1}else if(!zN(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:Mb}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:Mb}var BN=process.env.NODE_ENV==="production",Yu="Invariant failed";function FN(e,t){if(BN)throw new Error(Yu);var r=typeof t=="function"?t():t,n=r?"".concat(Yu,": ").concat(r):Yu;throw new Error(n)}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 Pa(e){return w.createElement(Ab,qs({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var qN=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||FN(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},WN=(e,t,r)=>r,UN=(e,t)=>t,oi=_([so,UN],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),VN=_([oi],e=>e?.maxBarSize),KN=(e,t,r,n)=>n,HN=_([Z,so,ir,ar,WN],(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")),GN=(e,t,r)=>{var n=Z(e),i=ir(e,t),a=ar(e,t);if(!(i==null||a==null))return n==="horizontal"?ma(e,"yAxis",a,r):ma(e,"xAxis",i,r)},YN=(e,t)=>{var r=Z(e),n=ir(e,t),i=ar(e,t);if(!(n==null||i==null))return r==="horizontal"?Ih(e,"xAxis",n):Ih(e,"yAxis",i)},XN=_([HN,kC,YN],cD),ZN=(e,t,r)=>{var n,i,a=oi(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=Z(e),c=Zg(e),{maxBarSize:l}=a,f=le(l)?c:l,d,v;return s==="horizontal"?(d=jr(e,"xAxis",o,r),v=Tr(e,"xAxis",o,r)):(d=jr(e,"yAxis",u,r),v=Tr(e,"yAxis",u,r)),(n=(i=In(d,v,!0))!==null&&i!==void 0?i:f)!==null&&n!==void 0?n:0},Ub=(e,t,r)=>{var n=Z(e),i=ir(e,t),a=ar(e,t);if(!(i==null||a==null)){var o,u;return n==="horizontal"?(o=jr(e,"xAxis",i,r),u=Tr(e,"xAxis",i,r)):(o=jr(e,"yAxis",a,r),u=Tr(e,"yAxis",a,r)),In(o,u)}},QN=_([XN,Zg,jC,Qg,ZN,Ub,VN],hD),JN=(e,t,r)=>{var n=ir(e,t);if(n!=null)return jr(e,"xAxis",n,r)},e$=(e,t,r)=>{var n=ar(e,t);if(n!=null)return jr(e,"yAxis",n,r)},t$=(e,t,r)=>{var n=ir(e,t);if(n!=null)return Tr(e,"xAxis",n,r)},r$=(e,t,r)=>{var n=ar(e,t);if(n!=null)return Tr(e,"yAxis",n,r)},n$=_([QN,oi],mD),i$=_([GN,oi],pD),a$=_([ye,mc,JN,e$,t$,r$,n$,Z,zg,Ub,i$,oi,KN],(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 M$({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})}}),o$=["index"];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 u$(e,t){if(e==null)return{};var r,n,i=s$(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 s$(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 Vb=S.createContext(void 0),c$=e=>{var t=S.useContext(Vb);if(t!=null)return t.stackId;if(e!=null)return _y(e)},l$=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),f$=e=>{var t=S.useContext(Vb);if(t!=null){var{stackId:r}=t;return"url(#".concat(l$(r,e),")")}},Kb=e=>{var{index:t}=e,r=u$(e,o$),n=f$(t);return w.createElement(Pt,Ws({className:"recharts-bar-stack-layer",clipPath:n},r))},d$=["onMouseEnter","onMouseLeave","onClick"],v$=["value","background","tooltipPosition"],h$=["id"],p$=["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 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 Le(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){m$(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 m$(e,t,r){return(t=y$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y$(e){var t=g$(e,"string");return typeof t=="symbol"?t:t+""}function g$(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 Sa(e,t){if(e==null)return{};var r,n,i=b$(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 b$(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 w$=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:pc(r,t),payload:e}]},x$=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:pc(a,t),hide:o,type:s,color:i,unit:u,graphicalItemId:c}};return w.createElement(Cb,{tooltipEntrySettings:l})});function O$(e){var t=L(kr),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:u,onClick:s}=a,c=Sa(a,d$),l=Hl(o,n,a.id),f=Gl(u),d=Yl(s,n,a.id);if(!i||r==null)return null;var v=Aa(i);return w.createElement(_t,{zIndex:yD(i,$e.barBackground)},r.map((h,m)=>{var{value:p,background:y,tooltipPosition:g}=h,b=Sa(h,v$);if(!y)return null;var x=l(h,m),P=f(h,m),O=d(h,m),E=Le(Le(Le(Le(Le({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(Pa,Lt({key:"background-bar-".concat(m)},E))}))}function P$(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 Le(Le({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return w.createElement(wb,{value:t?i:void 0},r)}function S$(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,u=L(kr),s=L(zl),c=r&&String(a)===u&&(s==null||o===s),l=c?r:t;return c?w.createElement(_t,{zIndex:$e.activeBar},w.createElement(Kb,{index:a},w.createElement(Pa,Lt({},n,{name:String(n.name)},i,{isActive:c,option:l,index:a,dataKey:o})))):w.createElement(Pa,Lt({},n,{name:String(n.name)},i,{isActive:c,option:l,index:a,dataKey:o}))}function E$(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return w.createElement(Pa,Lt({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function _$(e){var t,{data:r,props:n}=e,i=(t=Ot(n))!==null&&t!==void 0?t:{},{id:a}=i,o=Sa(i,h$),{shape:u,dataKey:s,activeBar:c}=n,{onMouseEnter:l,onClick:f,onMouseLeave:d}=n,v=Sa(n,p$),h=Hl(l,s,a),m=Gl(d),p=Yl(f,s,a);return r?w.createElement(w.Fragment,null,r.map((y,g)=>w.createElement(Kb,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(S$,{shape:u,activeBar:c,baseProps:o,entry:y,index:g,dataKey:s}):w.createElement(E$,{shape:u,baseProps:o,entry:y,index:g,dataKey:s})))):null}function A$(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=Ya(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(P$,{showLabels:m,rects:n},w.createElement(Ga,{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 Le(Le({},x),{},{x:Se(O.x,x.x,g),y:Se(O.y,x.y,g),width:Se(O.width,x.width,g),height:Se(O.height,x.height,g)});if(i==="horizontal"){var E=Se(0,x.height,g),A=Se(x.stackedBarStart,x.y,g);return Le(Le({},x),{},{y:A,height:E})}var k=Se(0,x.width,g),N=Se(x.stackedBarStart,x.x,g);return Le(Le({},x),{},{width:k,x:N})});return g>0&&(r.current=b??null),b==null?null:w.createElement(Pt,null,w.createElement(_$,{props:t,data:b}))}),w.createElement(Ob,{label:t.label}),t.children)}function C$(e){var t=S.useRef(null);return w.createElement(A$,{previousRectanglesRef:t,props:e})}var Hb=0,I$=(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 T$ 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(Wb,{clipPathId:f,xAxisId:a,yAxisId:o})),w.createElement(Pt,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(f,")"):void 0},w.createElement(O$,{data:r,dataKey:n,background:s,allOtherBarProps:this.props}),w.createElement(C$,this.props)))}}var j$={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:Hb,xAxisId:0,yAxisId:0,zIndex:$e.bar};function k$(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}=Jl(t,r),d=Nr(),v=Ue(),h=_b(e.children,Vl),m=L(g=>a$(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(qb,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:I$,errorBarOffset:p},w.createElement(T$,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 M$(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=hP({numericAxis:p}),b=p.scale.map(g);return f.map((x,P)=>{var O,E,A,k,N,I;if(l){var M=l[P+m];if(M==null)return null;O=sP(M,y)}else O=me(x,r),Array.isArray(O)||(O=[g,O]);var C=qN(n,Hb)(O[1],P);if(t==="horizontal"){var z,K=u.scale.map(O[0]),U=u.scale.map(O[1]);if(K==null||U==null)return null;E=Td({axis:o,ticks:s,bandSize:a,offset:i.offset,entry:x,index:P}),A=(z=U??K)!==null&&z!==void 0?z:void 0,k=i.size;var B=K-U;if(N=dt(B)?0:B,I={x:E,y:d.top,width:k,height:d.height},Math.abs(C)>0&&Math.abs(N)<Math.abs(C)){var G=ze(N||C)*(Math.abs(C)-Math.abs(N));A-=G,N+=G}}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=Td({axis:u,ticks:c,bandSize:a,offset:i.offset,entry:x,index:P}),k=ve-F,N=i.size,I={x:d.left,y:A,width:d.width,height:N},Math.abs(C)>0&&Math.abs(k)<Math.abs(C)){var fe=ze(k||C)*(Math.abs(C)-Math.abs(k));k+=fe}}if(E==null||A==null||k==null||N==null)return null;var Ce=Le(Le({},x),{},{stackedBarStart:b,x:E,y:A,width:k,height:N,value:l?O:O[1],payload:x,background:I,tooltipPosition:{x:E+k/2,y:A+N/2},parentViewBox:h},v&&v[P]&&v[P].props);return Ce}).filter(Boolean)}function D$(e){var t=He(e,j$),r=c$(t.stackId),n=Ue();return w.createElement(Tb,{id:t.id,type:"bar"},i=>w.createElement(w.Fragment,null,w.createElement(Ib,{legendPayload:w$(t)}),w.createElement(x$,{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(kb,{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(k$,Lt({},t,{id:i})))))}var Gb=w.memo(D$,mo);Gb.displayName="Bar";var N$=["domain","range"],$$=["domain","range"];function Fp(e,t){if(e==null)return{};var r,n,i=R$(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 R$(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 qp(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 Yb(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=Fp(e,N$),{domain:a,range:o}=t,u=Fp(t,$$);return!qp(r,a)||!qp(n,o)?!1:mo(i,u)}var L$=["type"],z$=["dangerouslySetInnerHTML","ticks","scale"],B$=["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 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 Up(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){F$(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 F$(e,t,r){return(t=q$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q$(e){var t=W$(e,"string");return typeof t=="symbol"?t:t+""}function W$(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 Vs(e,t){if(e==null)return{};var r,n,i=U$(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 U$(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 V$(e){var t=ne(),r=S.useRef(null),n=xc(),{type:i}=e,a=Vs(e,L$),o=ro(n,"xAxis",i),u=S.useMemo(()=>{if(o!=null)return Up(Up({},a),{},{type:o})},[a,o]);return S.useLayoutEffect(()=>{u!=null&&(r.current===null?t(QM(u)):r.current!==u&&t(JM({prev:r.current,next:u})),r.current=u)},[u,t]),S.useLayoutEffect(()=>()=>{r.current&&(t(eD(r.current)),r.current=null)},[t]),null}var K$=e=>{var{xAxisId:t,className:r}=e,n=L(mc),i=Ue(),a="xAxis",o=L(y=>k0(y,a,t,i)),u=L(y=>C0(y,t)),s=L(y=>kI(y,t)),c=L(y=>s0(y,t));if(u==null||s==null||c==null)return null;var{dangerouslySetInnerHTML:l,ticks:f,scale:d}=e,v=Vs(e,z$),{id:h,scale:m}=c,p=Vs(c,B$);return w.createElement(Ql,Us({},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}))},H$={allowDataOverflow:xe.allowDataOverflow,allowDecimals:xe.allowDecimals,allowDuplicatedCategory:xe.allowDuplicatedCategory,angle:xe.angle,axisLine:Mt.axisLine,height:xe.height,hide:!1,includeHidden:xe.includeHidden,interval:xe.interval,label:!1,minTickGap:xe.minTickGap,mirror:xe.mirror,orientation:xe.orientation,padding:xe.padding,reversed:xe.reversed,scale:xe.scale,tick:xe.tick,tickCount:xe.tickCount,tickLine:Mt.tickLine,tickSize:Mt.tickSize,type:xe.type,xAxisId:0},G$=e=>{var t=He(e,H$);return w.createElement(w.Fragment,null,w.createElement(V$,{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(K$,t))},Xb=w.memo(G$,Yb);Xb.displayName="XAxis";var Y$=["type"],X$=["dangerouslySetInnerHTML","ticks","scale"],Z$=["id","scale"];function Ks(){return Ks=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},Ks.apply(null,arguments)}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 Kp(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){Q$(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 Q$(e,t,r){return(t=J$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J$(e){var t=e2(e,"string");return typeof t=="symbol"?t:t+""}function e2(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 Hs(e,t){if(e==null)return{};var r,n,i=t2(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 t2(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 r2(e){var t=ne(),r=S.useRef(null),n=xc(),{type:i}=e,a=Hs(e,Y$),o=ro(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(tD(u)):r.current!==u&&t(rD({prev:r.current,next:u})),r.current=u)},[u,t]),S.useLayoutEffect(()=>()=>{r.current&&(t(nD(r.current)),r.current=null)},[t]),null}function n2(e){var{yAxisId:t,className:r,width:n,label:i}=e,a=S.useRef(null),o=S.useRef(null),u=L(mc),s=Ue(),c=ne(),l="yAxis",f=L(O=>I0(O,t)),d=L(O=>DI(O,t)),v=L(O=>k0(O,l,t,s)),h=L(O=>c0(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(iD({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=Hs(e,X$),{id:b,scale:x}=h,P=Hs(h,Z$);return w.createElement(Ql,Ks({},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 i2={allowDataOverflow:Oe.allowDataOverflow,allowDecimals:Oe.allowDecimals,allowDuplicatedCategory:Oe.allowDuplicatedCategory,angle:Oe.angle,axisLine:Mt.axisLine,hide:!1,includeHidden:Oe.includeHidden,interval:Oe.interval,label:!1,minTickGap:Oe.minTickGap,mirror:Oe.mirror,orientation:Oe.orientation,padding:Oe.padding,reversed:Oe.reversed,scale:Oe.scale,tick:Oe.tick,tickCount:Oe.tickCount,tickLine:Mt.tickLine,tickSize:Mt.tickSize,type:Oe.type,width:Oe.width,yAxisId:0},a2=e=>{var t=He(e,i2);return w.createElement(w.Fragment,null,w.createElement(r2,{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(n2,t))},Zb=w.memo(a2,Yb);Zb.displayName="YAxis";var o2=(e,t)=>t,ef=_([o2,Z,a0,Ae,X0,Gt,GT,ye],tj),tf=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)}},Qb=ut("mouseClick"),Jb=Vn();Jb.startListening({actionCreator:Qb,effect:(e,t)=>{var r=e.payload,n=ef(t.getState(),tf(r));n?.activeIndex!=null&&t.dispatch(HI({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Gs=ut("mouseMove"),ew=Vn(),Ci=null;ew.startListening({actionCreator:Gs,effect:(e,t)=>{var r=e.payload;Ci!==null&&cancelAnimationFrame(Ci);var n=tf(r);Ci=requestAnimationFrame(()=>{var i=t.getState(),a=kl(i,i.tooltip.settings.shared);if(a==="axis"){var o=ef(i,n);o?.activeIndex!=null?t.dispatch(F0({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(z0())}Ci=null})}});function u2(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 Hp={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},tw=Ge({name:"rootProps",initialState:Hp,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:Hp.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}}}),s2=tw.reducer,{updateOptions:c2}=tw.actions,l2=null,f2={updatePolarOptions:(e,t)=>t.payload},rw=Ge({name:"polarOptions",initialState:l2,reducers:f2}),{updatePolarOptions:d2}=rw.actions,v2=rw.reducer,nw=ut("keyDown"),iw=ut("focus"),rf=Vn();rf.startListening({actionCreator:nw,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=Dl(i,ln(r),ri(r),ii(r)),u=o==null?-1:Number(o);if(!(!Number.isFinite(u)||u<0)){var s=Gt(r);if(a==="Enter"){var c=ga(r,"axis","hover",String(i.index));t.dispatch(Rs({active:!i.active,activeIndex:i.index,activeCoordinate:c}));return}var l=zI(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=ga(r,"axis","hover",String(v));t.dispatch(Rs({active:!0,activeIndex:v.toString(),activeCoordinate:h}))}}}}}});rf.startListening({actionCreator:iw,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=ga(r,"axis","hover",String(a));t.dispatch(Rs({active:!0,activeIndex:a,activeCoordinate:o}))}}}});var it=ut("externalEvent"),aw=Vn(),Xu=new Map;aw.startListening({actionCreator:it,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,a=Xu.get(i);a!==void 0&&cancelAnimationFrame(a);var o=requestAnimationFrame(()=>{try{var u=t.getState(),s={activeCoordinate:MT(u),activeDataKey:zl(u),activeIndex:kr(u),activeLabel:J0(u),activeTooltipIndex:kr(u),isTooltipActive:DT(u)};r(s,n)}finally{Xu.delete(i)}});Xu.set(i,o)}}});var h2=_([sn],e=>e.tooltipItemPayloads),p2=_([h2,(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)}}}),ow=ut("touchMove"),uw=Vn();uw.startListening({actionCreator:ow,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=kl(n,n.tooltip.settings.shared);if(i==="axis"){var a=r.touches[0];if(a==null)return;var o=ef(n,tf({clientX:a.clientX,clientY:a.clientY,currentTarget:r.currentTarget}));o?.activeIndex!=null&&t.dispatch(F0({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(Cy),f=(u=c.getAttribute(Iy))!==null&&u!==void 0?u:void 0,d=cn(n).find(m=>m.id===f);if(l==null||d==null||f==null)return;var{dataKey:v}=d,h=p2(n,l,f);t.dispatch(Ml({activeDataKey:v,activeIndex:l,activeCoordinate:h,activeGraphicalItemId:f}))}}}});var m2=Um({brush:bD,cartesianAxis:aD,chartData:Dj,errorBars:vN,graphicalItems:VM,layout:nP,legend:hS,options:Cj,polarAxis:lM,polarOptions:v2,referenceElements:PD,rootProps:s2,tooltip:GI,zIndex:pj}),y2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return I1({reducer:m2,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([Jb.middleware,ew.middleware,rf.middleware,aw.middleware,uw.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(cy({type:"raf"}))},devTools:{serialize:{replacer:u2},name:"recharts-".concat(r)}})};function sw(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Ue(),a=S.useRef(null);if(i)return r;a.current==null&&(a.current=y2(t,n));var o=sc;return w.createElement(RN,{context:o,store:a.current},r)}function g2(e){var{layout:t,margin:r}=e,n=ne(),i=Ue();return S.useEffect(()=>{i||(n(eP(t)),n(Oy(r)))},[n,i,t,r]),null}var cw=S.memo(g2,mo);function lw(e){var t=ne();return S.useEffect(()=>{t(c2(e))},[t,e]),null}function Gp(e){var{zIndex:t,isPanorama:r}=e,n=S.useRef(null),i=ne();return S.useLayoutEffect(()=>(n.current&&i(vj({zIndex:t,element:n.current,isPanorama:r})),()=>{i(hj({zIndex:t,isPanorama:r}))}),[i,t,r]),w.createElement("g",{tabIndex:-1,ref:n})}function Yp(e){var{children:t,isPanorama:r}=e,n=L(nj);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(Gp,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>w.createElement(Gp,{key:o,zIndex:o,isPanorama:r})))}var b2=["children"];function w2(e,t){if(e==null)return{};var r,n,i=x2(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 x2(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 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)}var O2={width:"100%",height:"100%",display:"block"},P2=S.forwardRef((e,t)=>{var r=bc(),n=wc(),i=Vy();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(Zs,Ea({},o,{title:u,desc:s,role:l,tabIndex:c,width:r,height:n,style:O2,ref:t}),a)}),S2=e=>{var{children:t}=e,r=L(Ua);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return w.createElement(Zs,{width:n,height:i,x:o,y:a},t)},Xp=S.forwardRef((e,t)=>{var{children:r}=e,n=w2(e,b2),i=Ue();return i?w.createElement(S2,null,w.createElement(Yp,{isPanorama:!0},r)):w.createElement(P2,Ea({ref:t},n),w.createElement(Yp,{isPanorama:!1},r))});function E2(){var e=ne(),[t,r]=S.useState(null),n=L(wP);return S.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;W(a)&&a!==n&&e(rP(a))}},[t,e,n]),r}function Zp(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 _2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zp(Object(r),!0).forEach(function(n){A2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A2(e,t,r){return(t=C2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C2(e){var t=I2(e,"string");return typeof t=="symbol"?t:t+""}function I2(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 T2=()=>(Wj(),null);function _a(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var j2=S.forwardRef((e,t)=>{var r,n,i=S.useRef(null),[a,o]=S.useState({containerWidth:_a((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:_a((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(en,{width:a.containerWidth,height:a.containerHeight}),w.createElement("div",tr({ref:s},e)))}),k2=S.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=S.useState({containerWidth:_a(r),containerHeight:_a(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(en,{width:i.containerWidth,height:i.containerHeight}),w.createElement("div",tr({ref:u},e)))}),M2=S.forwardRef((e,t)=>{var{width:r,height:n}=e;return w.createElement(w.Fragment,null,w.createElement(en,{width:r,height:n}),w.createElement("div",tr({ref:t},e)))}),D2=S.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?w.createElement(k2,tr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?w.createElement(M2,tr({},e,{width:r,height:n,ref:t})):w.createElement(w.Fragment,null,w.createElement(en,{width:r,height:n}),w.createElement("div",tr({ref:t},e)))});function N2(e){return e?j2:D2}var fw=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=ne(),[O,E]=S.useState(null),[A,k]=S.useState(null),N=E2(),I=yc(),M=I?.width>0?I.width:y,C=I?.height>0?I.height:i,z=S.useCallback(T=>{N(T),typeof t=="function"&&t(T),E(T),k(T),T!=null&&(x.current=T)},[N,t,E,k]),K=S.useCallback(T=>{P(Qb(T)),P(it({handler:a,reactEvent:T}))},[P,a]),U=S.useCallback(T=>{P(Gs(T)),P(it({handler:c,reactEvent:T}))},[P,c]),B=S.useCallback(T=>{P(z0()),P(it({handler:l,reactEvent:T}))},[P,l]),G=S.useCallback(T=>{P(Gs(T)),P(it({handler:f,reactEvent:T}))},[P,f]),F=S.useCallback(()=>{P(iw())},[P]),ve=S.useCallback(T=>{P(nw(T.key))},[P]),fe=S.useCallback(T=>{P(it({handler:o,reactEvent:T}))},[P,o]),Ce=S.useCallback(T=>{P(it({handler:u,reactEvent:T}))},[P,u]),Ye=S.useCallback(T=>{P(it({handler:s,reactEvent:T}))},[P,s]),ke=S.useCallback(T=>{P(it({handler:d,reactEvent:T}))},[P,d]),At=S.useCallback(T=>{P(it({handler:m,reactEvent:T}))},[P,m]),or=S.useCallback(T=>{b&&P(ow(T)),P(it({handler:h,reactEvent:T}))},[P,b,h]),Me=S.useCallback(T=>{P(it({handler:v,reactEvent:T}))},[P,v]),fn=N2(g);return w.createElement(Ul.Provider,{value:O},w.createElement(am.Provider,{value:A},w.createElement(fn,{width:M??p?.width,height:C??p?.height,className:re("recharts-wrapper",n),style:_2({position:"relative",cursor:"default",width:M,height:C},p),onClick:K,onContextMenu:fe,onDoubleClick:Ce,onFocus:F,onKeyDown:ve,onMouseDown:Ye,onMouseEnter:U,onMouseLeave:B,onMouseMove:G,onMouseUp:ke,onTouchEnd:Me,onTouchMove:or,onTouchStart:At,ref:z},w.createElement(T2,null),r)))}),$2=["width","height","responsive","children","className","style","compact","title","desc"];function R2(e,t){if(e==null)return{};var r,n,i=L2(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 L2(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 dw=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=R2(e,$2),d=Ot(f);return s?w.createElement(w.Fragment,null,w.createElement(en,{width:r,height:n}),w.createElement(Xp,{otherAttributes:d,title:c,desc:l},a)):w.createElement(fw,{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(Xp,{otherAttributes:d,title:c,desc:l,ref:t},w.createElement(ED,null,a)))});function Ys(){return Ys=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},Ys.apply(null,arguments)}var z2={top:5,right:5,bottom:5,left:5},B2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:z2,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},F2=S.forwardRef(function(t,r){var n,i=He(t.categoricalChartProps,B2),{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(sw,{preloadedState:{options:l},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:a},w.createElement(Nb,{chartData:c.data}),w.createElement(cw,{layout:i.layout,margin:i.margin}),w.createElement(lw,{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(dw,Ys({},i,{ref:r})))});exports.Bar=Gb;exports.CartesianChart=F2;exports.CartesianGrid=Bb;exports.CartesianLabelListContextProvider=wb;exports.CategoricalChart=dw;exports.Cell=Vl;exports.ChartDataContextProvider=Nb;exports.Curve=Sc;exports.DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME=Iy;exports.DATA_ITEM_INDEX_ATTRIBUTE_NAME=Cy;exports.DefaultZIndexes=$e;exports.Global=Yn;exports.GraphicalItemClipPath=Wb;exports.Icon=em;exports.JavascriptAnimate=Ga;exports.LabelListFromLabelProp=Ob;exports.Layer=Pt;exports.Move=bw;exports.PeriodRange=Nw;exports.PolarLabelListContextProvider=oM;exports.RechartsStoreProvider=sw;exports.RechartsWrapper=fw;exports.Rectangle=Ec;exports.RegisterGraphicalItemId=Tb;exports.ReportChartMargin=QP;exports.ReportChartProps=lw;exports.ReportChartSize=en;exports.ReportMainChartProps=cw;exports.ResponsiveContainer=GP;exports.SetCartesianGraphicalItem=kb;exports.SetComputedData=gD;exports.SetErrorBarContext=qb;exports.SetLegendPayload=Ib;exports.SetPolarGraphicalItem=HM;exports.SetPolarLegendPayload=DM;exports.SetTooltipEntrySettings=Cb;exports.Shape=Ab;exports.Surface=Zs;exports.Symbols=ic;exports.Text=po;exports.Tooltip=Zj;exports.TooltipPortalContext=Ul;exports.XAxis=Xb;exports.YAxis=Zb;exports.ZIndexLayer=_t;exports.adaptEventHandlers=Am;exports.adaptEventsOfChild=ja;exports.arrayTooltipSearcher=_j;exports.clsx=re;exports.combineAppliedValues=gl;exports.combineAxisDomain=Sl;exports.combineAxisDomainWithNiceTicks=Il;exports.combineCheckedDomain=u0;exports.combineDisplayedData=ml;exports.combineDomainOfAllAppliedNumericalValuesIncludingErrorValues=Ol;exports.combineGraphicalItemsData=pl;exports.combineGraphicalItemsSettings=hl;exports.combineNiceTicks=Al;exports.combineNumericalDomain=Pl;exports.commonjsGlobal=ww;exports.createLucideIcon=tm;exports.createSelector=_;exports.findAllByType=_b;exports.get=Or;exports.getAugmentedNamespace=xw;exports.getBandSizeOfAxis=In;exports.getCateCoordinateOfLine=vP;exports.getClassNameFromUnknown=Sb;exports.getDefaultExportFromCjs=zt;exports.getLinearRegression=kx;exports.getMaxRadius=Xy;exports.getNormalizedStackId=_y;exports.getPercentValue=ot;exports.getStackSeriesIdentifier=io;exports.getTooltipNameProp=pc;exports.getUniqPayload=$m;exports.getValueByDataKey=me;exports.implicitZAxis=l0;exports.interpolate=Se;exports.isCategoricalAxis=Bt;exports.isClipDot=pM;exports.isNan=dt;exports.isNonEmptyArray=Ux;exports.isNotNil=Be;exports.isNullish=le;exports.isNumber=R;exports.isPositiveNumber=ht;exports.isWellBehavedNumber=W;exports.itemAxisPredicate=vl;exports.mathSign=ze;exports.mouseLeaveItem=L0;exports.noop=Dr;exports.pickAxisId=ei;exports.pickAxisType=be;exports.polarToCartesian=Ee;exports.propsAreEqual=mo;exports.requireIdentity=ac;exports.requireIteratee=Nm;exports.resolveDefaultProps=He;exports.selectActiveTooltipDataKey=zl;exports.selectActiveTooltipGraphicalItemId=jT;exports.selectActiveTooltipIndex=kr;exports.selectAllErrorBarSettings=lo;exports.selectAxisWithScale=jr;exports.selectBaseAxis=Re;exports.selectChartBaseValue=MC;exports.selectChartDataAndAlwaysIgnoreIndexes=rl;exports.selectChartDataWithIndexesIfNotInPanoramaPosition3=zg;exports.selectChartDataWithIndexesIfNotInPanoramaPosition4=nl;exports.selectChartLayout=Z;exports.selectChartOffsetInternal=ye;exports.selectDomainDefinition=wl;exports.selectDomainFromUserPreference=xl;exports.selectLegendPayload=VO;exports.selectRealScaleType=Br;exports.selectRenderableAxisSettings=on;exports.selectStackGroups=ma;exports.selectStackOffsetType=Jn;exports.selectTicksOfGraphicalItem=Tr;exports.selectUnfilteredCartesianItems=so;exports.selectXAxisIdFromGraphicalItemId=ir;exports.selectYAxisIdFromGraphicalItemId=ar;exports.selectZAxisWithScale=LI;exports.setActiveClickItemIndex=B0;exports.setActiveMouseOverItemIndex=Ml;exports.setLegendSettings=vS;exports.setLegendSize=dS;exports.svgPropertiesAndEvents=qe;exports.svgPropertiesAndEventsFromUnknown=zw;exports.svgPropertiesNoEvents=Ot;exports.svgPropertiesNoEventsFromUnknown=Aa;exports.updatePolarOptions=d2;exports.useActiveTooltipDataPoints=sD;exports.useAnimationId=Ya;exports.useAppDispatch=ne;exports.useAppSelector=L;exports.useCartesianChartLayout=xc;exports.useChartHeight=wc;exports.useChartLayout=Nr;exports.useChartName=rb;exports.useChartWidth=bc;exports.useElementOffset=qm;exports.useIsPanorama=Ue;exports.useLegendPortal=Kw;exports.useMargin=XP;exports.useMouseClickItemDispatch=Yl;exports.useMouseEnterItemDispatch=Hl;exports.useMouseLeaveItemDispatch=Gl;exports.useNeedsClip=Jl;exports.usePlotArea=Xl;exports.useViewBox=Hn;
|