@tsiky/components-r19 1.6.19 → 1.6.21
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/SimpleBarChart-BzHNNwd6.cjs +134 -0
- package/dist/SimpleBarChart-CCePRx-C.js +18730 -0
- package/dist/SimpleBarChart-CLQwp0ud.js +19412 -0
- package/dist/SimpleBarChart-CW9fOEAU.cjs +134 -0
- package/dist/chart.cjs.js +13 -13
- package/dist/chart.js +304 -303
- package/dist/components-r19.css +1 -1
- package/dist/index.cjs.js +114 -114
- package/dist/index.js +170 -161
- package/dist/src/components/AreaChartV2/AreaChartV2.d.ts.map +1 -1
- package/dist/src/components/ChartV2/ChartV2.d.ts.map +1 -1
- package/dist/src/components/DonutChartRatio/DonutChartRatio.d.ts +30 -0
- package/dist/src/components/DonutChartRatio/DonutChartRatio.d.ts.map +1 -0
- package/dist/src/components/DonutChartRatio/index.d.ts +2 -0
- package/dist/src/components/DonutChartRatio/index.d.ts.map +1 -0
- package/dist/src/components/SelectFilter/SelectFilter.d.ts.map +1 -1
- package/dist/src/components/SimpleBarChart/SimpleBarChart.d.ts +1 -0
- package/dist/src/components/SimpleBarChart/SimpleBarChart.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableHeader.d.ts +2 -1
- 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/types.d.ts +1 -0
- package/dist/src/components/TableauxComponent/types.d.ts.map +1 -1
- package/package.json +99 -99
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";const E=require("react"),F=require("react/jsx-runtime"),Em=require("react-dom");function Rw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const b=Rw(E);/**
|
|
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 Lw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Sf=e=>{const t=zw(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sm=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Bw=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 Fw={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 Am=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...u},l)=>E.createElement("svg",{ref:l,...Fw,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Sm("lucide",i),...!a&&!Bw(u)&&{"aria-hidden":"true"},...u},[...o.map(([s,c])=>E.createElement(s,c)),...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 _m=(e,t)=>{const r=E.forwardRef(({className:n,...i},a)=>E.createElement(Am,{ref:a,iconNode:t,className:Sm(`lucide-${Lw(Sf(e))}`,`lucide-${e}`,n),...i}));return r.displayName=Sf(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 Ww=[["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"}]],qw=_m("move",Ww);var Kw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uw(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 Vw="_wrapper_1ogd3_1",Hw="_label_1ogd3_14",Gw="_labelText_1ogd3_22",Yw="_calendarIcon_1ogd3_26",Xw="_rangeRow_1ogd3_31",Zw="_dateWrap_1ogd3_39",Qw="_innerLabel_1ogd3_47",Jw="_dateInput_1ogd3_52",ex="_sepWrap_1ogd3_65",tx="_separator_1ogd3_72",rx="_samplingWrap_1ogd3_77",nx="_samplingLabel_1ogd3_86",ix="_samplingSelect_1ogd3_90",Me={wrapper:Vw,label:Hw,labelText:Gw,calendarIcon:Yw,rangeRow:Xw,dateWrap:Zw,innerLabel:Qw,dateInput:Jw,sepWrap:ex,separator:tx,samplingWrap:rx,samplingLabel:nx,samplingSelect:ix};function ax({start:e="",end:t="",onChange:r,sampling:n="day",onSamplingChange:i,labels:a={},samplingOptions:o={},className:u=""}){const l={period:"Période",start:"Début",end:"Fin",sampling:"Échantillonnage",...a},s={hour:"Par heure",day:"Par jour",week:"Par semaine",month:"Par mois",...o},[c,f]=E.useState(e),[d,v]=E.useState(t),[p,m]=E.useState(n),h=E.useRef(null);E.useEffect(()=>f(e),[e]),E.useEffect(()=>v(t),[t]),E.useEffect(()=>m(n),[n]),E.useEffect(()=>{function g(w){const x=w.target;h.current&&x&&h.current.contains(x)}return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]),E.useEffect(()=>{r?.({start:c,end:d})},[c,d,r]);const y=g=>{m(g),i?.(g)};return F.jsxs("div",{className:`${Me.wrapper} ${u}`,ref:h,children:[F.jsxs("label",{className:Me.label,"aria-hidden":!0,children:[F.jsxs("svg",{className:Me.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[F.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),F.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"})]}),F.jsx("span",{className:Me.labelText,children:l.period})]}),F.jsxs("div",{className:Me.rangeRow,children:[F.jsxs("div",{className:Me.dateWrap,children:[F.jsx("label",{className:Me.innerLabel,htmlFor:"period-from",children:l.start}),F.jsx("input",{id:"period-from",className:Me.dateInput,type:"date",value:c,onChange:g=>f(g.target.value),"aria-label":l.start})]}),F.jsx("div",{className:Me.sepWrap,"aria-hidden":!0,children:F.jsx("span",{className:Me.separator,children:"—"})}),F.jsxs("div",{className:Me.dateWrap,children:[F.jsx("label",{className:Me.innerLabel,htmlFor:"period-to",children:l.end}),F.jsx("div",{className:Me.inputWithIcon,children:F.jsx("input",{id:"period-to",className:Me.dateInput,type:"date",value:d,onChange:g=>v(g.target.value),"aria-label":l.end})})]}),F.jsxs("div",{className:Me.samplingWrap,children:[F.jsx("label",{className:Me.samplingLabel,htmlFor:"period-sampling",children:l.sampling}),F.jsxs("select",{id:"period-sampling",className:Me.samplingSelect,value:p,onChange:g=>y(g.target.value),"aria-label":l.sampling,children:[F.jsx("option",{value:"hour",children:s.hour}),F.jsx("option",{value:"day",children:s.day}),F.jsx("option",{value:"week",children:s.week}),F.jsx("option",{value:"month",children:s.month})]})]})]})]})}function Cm(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=Cm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function J(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Cm(e))&&(n&&(n+=" "),n+=t);return n}var ox=["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 cs(e){if(typeof e!="string")return!1;var t=ox;return t.includes(e)}var ux=["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"],lx=new Set(ux);function jm(e){return typeof e!="string"?!1:lx.has(e)}function Im(e){return typeof e=="string"&&e.startsWith("data-")}function st(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(jm(r)||Im(r))&&(t[r]=e[r]);return t}function Zr(e){if(e==null)return null;if(E.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return st(t)}return typeof e=="object"&&!Array.isArray(e)?st(e):null}function Ve(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(jm(r)||Im(r)||cs(r))&&(t[r]=e[r]);return t}function sx(e){return e==null?null:E.isValidElement(e)?Ve(e.props):typeof e=="object"&&!Array.isArray(e)?Ve(e):null}var cx=["children","width","height","viewBox","className","style","title","desc"];function cl(){return cl=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},cl.apply(null,arguments)}function fx(e,t){if(e==null)return{};var r,n,i=dx(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 dx(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 fs=E.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=fx(e,cx),f=a||{width:n,height:i,x:0,y:0},d=J("recharts-surface",o);return b.createElement("svg",cl({},Ve(c),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),b.createElement("title",null,l),b.createElement("desc",null,s),r)}),vx=["children","className"];function fl(){return fl=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},fl.apply(null,arguments)}function px(e,t){if(e==null)return{};var r,n,i=hx(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 hx(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 We=b.forwardRef((e,t)=>{var{children:r,className:n}=e,i=px(e,vx),a=J("recharts-layer",n);return b.createElement("g",fl({className:a},Ve(i),{ref:t}),r)}),Tm=E.createContext(null),mx=()=>E.useContext(Tm);function ae(e){return function(){return e}}const km=Math.cos,Ki=Math.sin,bt=Math.sqrt,Ui=Math.PI,$a=2*Ui,dl=Math.PI,vl=2*dl,pr=1e-6,yx=vl-pr;function Mm(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function gx(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Mm;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 bx{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Mm:gx(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,l=n-t,s=i-r,c=o-t,f=u-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>pr)if(!(Math.abs(f*l-s*c)>pr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,p=i-u,m=l*l+s*s,h=v*v+p*p,y=Math.sqrt(m),g=Math.sqrt(d),w=a*Math.tan((dl-Math.acos((m+d-h)/(2*y*g)))/2),x=w/g,P=w/y;Math.abs(x-1)>pr&&this._append`L${t+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*v>c*p)},${this._x1=t+P*l},${this._y1=r+P*s}`}}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),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>pr||Math.abs(this._y1-c)>pr)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%vl+vl),d>yx?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>pr&&this._append`A${n},${n},0,${+(d>=dl)},${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 ds(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 bx(t)}function vs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Dm(e){this._context=e}Dm.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 Ra(e){return new Dm(e)}function Nm(e){return e[0]}function $m(e){return e[1]}function Rm(e,t){var r=ae(!0),n=null,i=Ra,a=null,o=ds(u);e=typeof e=="function"?e:e===void 0?Nm:ae(e),t=typeof t=="function"?t:t===void 0?$m:ae(t);function u(l){var s,c=(l=vs(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),s=0;s<=c;++s)!(s<c&&r(f=l[s],s,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,l),+t(f,s,l));if(v)return a=null,v+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:ae(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:ae(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:ae(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function mi(e,t,r){var n=null,i=ae(!0),a=null,o=Ra,u=null,l=ds(s);e=typeof e=="function"?e:e===void 0?Nm:ae(+e),t=typeof t=="function"?t:ae(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?$m:ae(+r);function s(f){var d,v,p,m=(f=vs(f)).length,h,y=!1,g,w=new Array(m),x=new Array(m);for(a==null&&(u=o(g=l())),d=0;d<=m;++d){if(!(d<m&&i(h=f[d],d,f))===y)if(y=!y)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=d-1;p>=v;--p)u.point(w[p],x[p]);u.lineEnd(),u.areaEnd()}y&&(w[d]=+e(h,d,f),x[d]=+t(h,d,f),u.point(n?+n(h,d,f):w[d],r?+r(h,d,f):x[d]))}if(g)return u=null,g+""||null}function c(){return Rm().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:ae(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ae(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ae(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:ae(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ae(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ae(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ae(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class Lm{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 wx(e){return new Lm(e,!0)}function xx(e){return new Lm(e,!1)}const ps={draw(e,t){const r=bt(t/Ui);e.moveTo(r,0),e.arc(0,0,r,0,$a)}},Ox={draw(e,t){const r=bt(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()}},zm=bt(1/3),Px=zm*2,Ex={draw(e,t){const r=bt(t/Px),n=r*zm;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Sx={draw(e,t){const r=bt(t),n=-r/2;e.rect(n,n,r,r)}},Ax=.8908130915292852,Bm=Ki(Ui/10)/Ki(7*Ui/10),_x=Ki($a/10)*Bm,Cx=-km($a/10)*Bm,jx={draw(e,t){const r=bt(t*Ax),n=_x*r,i=Cx*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=$a*a/5,u=km(o),l=Ki(o);e.lineTo(l*r,-u*r),e.lineTo(u*n-l*i,l*n+u*i)}e.closePath()}},Io=bt(3),Ix={draw(e,t){const r=-bt(t/(Io*3));e.moveTo(0,r*2),e.lineTo(-Io*r,-r),e.lineTo(Io*r,-r),e.closePath()}},at=-.5,ot=bt(3)/2,pl=1/bt(12),Tx=(pl/2+1)*3,kx={draw(e,t){const r=bt(t/Tx),n=r/2,i=r*pl,a=n,o=r*pl+r,u=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(at*n-ot*i,ot*n+at*i),e.lineTo(at*a-ot*o,ot*a+at*o),e.lineTo(at*u-ot*l,ot*u+at*l),e.lineTo(at*n+ot*i,at*i-ot*n),e.lineTo(at*a+ot*o,at*o-ot*a),e.lineTo(at*u+ot*l,at*l-ot*u),e.closePath()}};function Mx(e,t){let r=null,n=ds(i);e=typeof e=="function"?e:ae(e||ps),t=typeof t=="function"?t:ae(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:ae(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ae(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Vi(){}function Hi(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 Fm(e){this._context=e}Fm.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:Hi(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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dx(e){return new Fm(e)}function Wm(e){this._context=e}Wm.prototype={areaStart:Vi,areaEnd:Vi,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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nx(e){return new Wm(e)}function qm(e){this._context=e}qm.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:Hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $x(e){return new qm(e)}function Km(e){this._context=e}Km.prototype={areaStart:Vi,areaEnd:Vi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Rx(e){return new Km(e)}function Af(e){return e<0?-1:1}function _f(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(Af(a)+Af(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Cf(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function To(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 Gi(e){this._context=e}Gi.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:To(this,this._t0,Cf(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,To(this,Cf(this,r=_f(this,e,t)),r);break;default:To(this,this._t0,r=_f(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Um(e){this._context=new Vm(e)}(Um.prototype=Object.create(Gi.prototype)).point=function(e,t){Gi.prototype.point.call(this,t,e)};function Vm(e){this._context=e}Vm.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 Lx(e){return new Gi(e)}function zx(e){return new Um(e)}function Hm(e){this._context=e}Hm.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=jf(e),i=jf(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 jf(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 Bx(e){return new Hm(e)}function La(e,t){this._context=e,this._t=t}La.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 Fx(e){return new La(e,.5)}function Wx(e){return new La(e,0)}function qx(e){return new La(e,1)}function Ar(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 hl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Kx(e,t){return e[t]}function Ux(e){const t=[];return t.key=e,t}function Vx(){var e=ae([]),t=hl,r=Ar,n=Kx;function i(a){var o=Array.from(e.apply(this,arguments),Ux),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u<l;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,c=vs(t(o));u<l;++u)o[c[u]].index=u;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ae(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ae(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?hl:typeof a=="function"?a:ae(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ar,i):r},i}function Hx(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}Ar(e,t)}}function Gx(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}Ar(e,t)}}function Yx(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,l=0,s=0;u<o;++u){for(var c=e[t[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,p=0;p<u;++p){var m=e[t[p]],h=m[n][1]||0,y=m[n-1][1]||0;v+=h-y}l+=f,s+=v*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=s/l)}i[n-1][1]+=i[n-1][0]=r,Ar(e,t)}}var ko={},Mo={},If;function Xx(){return If||(If=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t}(Mo)),Mo}var Do={},Tf;function Gm(){return Tf||(Tf=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}(Do)),Do}var No={},kf;function hs(){return kf||(kf=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}(No)),No}var $o={},Ro={},Mf;function Zx(){return Mf||(Mf=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}(Ro)),Ro}var Df;function ms(){return Df||(Df=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zx(),r=hs();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,l="",s="",c=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<o;){const f=i[u];s?f==="\\"&&u+1<o?(u++,l+=i[u]):f===s?s="":l+=f:c?f==='"'||f==="'"?s=f:f==="]"?(c=!1,a.push(l),l=""):l+=f:f==="["?(c=!0,l&&(a.push(l),l="")):f==="."?l&&(a.push(l),l=""):l+=f,u++}return l&&a.push(l),a}e.toPath=n}($o)),$o}var Nf;function ys(){return Nf||(Nf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xx(),r=Gm(),n=hs(),i=ms();function a(u,l,s){if(u==null)return s;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?r.isDeepKey(l)?a(u,i.toPath(l),s):s:c}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const c=u[l];return c===void 0?s:c}default:{if(Array.isArray(l))return o(u,l,s);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?s:c}}}function o(u,l,s){if(l.length===0)return s;let c=u;for(let f=0;f<l.length;f++){if(c==null||t.isUnsafeProperty(l[f]))return s;c=c[l[f]]}return c===void 0?s:c}e.get=a}(ko)),ko}var Lo,$f;function Qx(){return $f||($f=1,Lo=ys().get),Lo}var Jx=Qx();const nr=Bt(Jx);var eO=4;function er(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:eO,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function fe(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+er(u)+a:i+a},"")}var Ce=e=>e===0?0:e>0?1:-1,mt=e=>typeof e=="number"&&e!=+e,_r=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,R=e=>(typeof e=="number"||e instanceof Number)&&!mt(e),At=e=>R(e)||typeof e=="string",tO=0,Cn=e=>{var t=++tO;return"".concat(e||"").concat(t)},Fe=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(_r(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return mt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},Ym=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 me(e,t,r){return R(e)&&R(t)?er(e+r*(t-e)):t}function Xm(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):nr(n,t))===r)}var rO=e=>{for(var t=e.length,r=0,n=0,i=0,a=0,o=1/0,u=-1/0,l=0,s=0,c=0;c<t;c++){var f,d;l=((f=e[c])===null||f===void 0?void 0:f.cx)||0,s=((d=e[c])===null||d===void 0?void 0:d.cy)||0,r+=l,n+=s,i+=l*s,a+=l*l,o=Math.min(o,l),u=Math.max(u,l)}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}},pe=e=>e===null||typeof e>"u",Kn=e=>pe(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Ke(e){return e!=null}function Rr(){}var nO=["type","size","sizeType"];function ml(){return ml=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},ml.apply(null,arguments)}function Rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rf(Object(r),!0).forEach(function(n){iO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iO(e,t,r){return(t=aO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aO(e){var t=oO(e,"string");return typeof t=="symbol"?t:t+""}function oO(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 uO(e,t){if(e==null)return{};var r,n,i=lO(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 lO(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 Zm={symbolCircle:ps,symbolCross:Ox,symbolDiamond:Ex,symbolSquare:Sx,symbolStar:jx,symbolTriangle:Ix,symbolWye:kx},sO=Math.PI/180,cO=e=>{var t="symbol".concat(Kn(e));return Zm[t]||ps},fO=(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*sO;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}},dO=(e,t)=>{Zm["symbol".concat(Kn(e))]=t},gs=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=uO(e,nO),a=Lf(Lf({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=cO(o),v=Mx().type(d).size(fO(r,n,o)),p=v();if(p!==null)return p},{className:l,cx:s,cy:c}=a,f=Ve(a);return R(s)&&R(c)&&R(r)?b.createElement("path",ml({},f,{className:J("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};gs.registerSymbol=dO;var Qm=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Jm=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(E.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{cs(i)&&(n[i]=a=>r[i](r,a))}),n},vO=(e,t,r)=>n=>(e(t,r,n),null),Un=(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];cs(i)&&typeof a=="function"&&(n||(n={}),n[i]=vO(a,t,r))}),n},pO=e=>Array.isArray(e)&&e.length>0;function zf(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 hO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zf(Object(r),!0).forEach(function(n){mO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mO(e,t,r){return(t=yO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yO(e){var t=gO(e,"string");return typeof t=="symbol"?t:t+""}function gO(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 $e(e,t){var r=hO({},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 zo={},Bo={},Bf;function bO(){return Bf||(Bf=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}(Bo)),Bo}var Fo={},Ff;function wO(){return Ff||(Ff=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}(Fo)),Fo}var Wo={},Wf;function bs(){return Wf||(Wf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t}(Wo)),Wo}var qo={},Ko={},Uo={},qf;function xO(){return qf||(qf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t}(Uo)),Uo}var Kf;function ws(){return Kf||(Kf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xO();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r}(Ko)),Ko}var Vo={},Uf;function OO(){return Uf||(Uf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t}(Vo)),Vo}var Vf;function PO(){return Vf||(Vf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ws(),r=OO();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n}(qo)),qo}var Ho={},Go={},Hf;function EO(){return Hf||(Hf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ys();function r(n){return function(i){return t.get(i,n)}}e.property=r}(Go)),Go}var Yo={},Xo={},Zo={},Qo={},Gf;function ey(){return Gf||(Gf=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}(Qo)),Qo}var Jo={},Yf;function ty(){return Yf||(Yf=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}(Jo)),Jo}var eu={},Xf;function ry(){return Xf||(Xf=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}(eu)),eu}var Zf;function SO(){return Zf||(Zf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ey(),r=ty(),n=ry();function i(c,f,d){return typeof d!="function"?i(c,f,()=>{}):a(c,f,function v(p,m,h,y,g,w){const x=d(p,m,h,y,g,w);return x!==void 0?!!x:a(p,m,v,w)},new Map)}function a(c,f,d,v){if(f===c)return!0;switch(typeof f){case"object":return o(c,f,d,v);case"function":return Object.keys(f).length>0?a(c,{...f},d,v):n.isEqualsSameValueZero(c,f);default:return t.isObject(c)?typeof f=="string"?f==="":!0:n.isEqualsSameValueZero(c,f)}}function o(c,f,d,v){if(f==null)return!0;if(Array.isArray(f))return l(c,f,d,v);if(f instanceof Map)return u(c,f,d,v);if(f instanceof Set)return s(c,f,d,v);const p=Object.keys(f);if(c==null||r.isPrimitive(c))return p.length===0;if(p.length===0)return!0;if(v?.has(f))return v.get(f)===c;v?.set(f,c);try{for(let m=0;m<p.length;m++){const h=p[m];if(!r.isPrimitive(c)&&!(h in c)||f[h]===void 0&&c[h]!==void 0||f[h]===null&&c[h]!==null||!d(c[h],f[h],h,c,f,v))return!1}return!0}finally{v?.delete(f)}}function u(c,f,d,v){if(f.size===0)return!0;if(!(c instanceof Map))return!1;for(const[p,m]of f.entries()){const h=c.get(p);if(d(h,m,p,c,f,v)===!1)return!1}return!0}function l(c,f,d,v){if(f.length===0)return!0;if(!Array.isArray(c))return!1;const p=new Set;for(let m=0;m<f.length;m++){const h=f[m];let y=!1;for(let g=0;g<c.length;g++){if(p.has(g))continue;const w=c[g];let x=!1;if(d(w,h,m,c,f,v)&&(x=!0),x){p.add(g),y=!0;break}}if(!y)return!1}return!0}function s(c,f,d,v){return f.size===0?!0:c instanceof Set?l([...c],[...f],d,v):!1}e.isMatchWith=i,e.isSetMatch=s}(Zo)),Zo}var Qf;function ny(){return Qf||(Qf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SO();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r}(Xo)),Xo}var tu={},ru={},nu={},Jf;function AO(){return Jf||(Jf=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}(nu)),nu}var iu={},ed;function xs(){return ed||(ed=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}(iu)),iu}var au={},td;function iy(){return td||(td=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]",l="[object Map]",s="[object Set]",c="[object Array]",f="[object Function]",d="[object ArrayBuffer]",v="[object Object]",p="[object Error]",m="[object DataView]",h="[object Uint8Array]",y="[object Uint8ClampedArray]",g="[object Uint16Array]",w="[object Uint32Array]",x="[object BigUint64Array]",P="[object Int8Array]",O="[object Int16Array]",S="[object Int32Array]",_="[object BigInt64Array]",M="[object Float32Array]",N="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=c,e.bigInt64ArrayTag=_,e.bigUint64ArrayTag=x,e.booleanTag=i,e.dataViewTag=m,e.dateTag=u,e.errorTag=p,e.float32ArrayTag=M,e.float64ArrayTag=N,e.functionTag=f,e.int16ArrayTag=O,e.int32ArrayTag=S,e.int8ArrayTag=P,e.mapTag=l,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=s,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=g,e.uint32ArrayTag=w,e.uint8ArrayTag=h,e.uint8ClampedArrayTag=y}(au)),au}var ou={},rd;function _O(){return rd||(rd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t}(ou)),ou}var nd;function ay(){return nd||(nd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AO(),r=xs(),n=iy(),i=ty(),a=_O();function o(c,f){return u(c,void 0,c,new Map,f)}function u(c,f,d,v=new Map,p=void 0){const m=p?.(c,f,d,v);if(m!==void 0)return m;if(i.isPrimitive(c))return c;if(v.has(c))return v.get(c);if(Array.isArray(c)){const h=new Array(c.length);v.set(c,h);for(let y=0;y<c.length;y++)h[y]=u(c[y],y,d,v,p);return Object.hasOwn(c,"index")&&(h.index=c.index),Object.hasOwn(c,"input")&&(h.input=c.input),h}if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp){const h=new RegExp(c.source,c.flags);return h.lastIndex=c.lastIndex,h}if(c instanceof Map){const h=new Map;v.set(c,h);for(const[y,g]of c)h.set(y,u(g,y,d,v,p));return h}if(c instanceof Set){const h=new Set;v.set(c,h);for(const y of c)h.add(u(y,void 0,d,v,p));return h}if(typeof Buffer<"u"&&Buffer.isBuffer(c))return c.subarray();if(a.isTypedArray(c)){const h=new(Object.getPrototypeOf(c)).constructor(c.length);v.set(c,h);for(let y=0;y<c.length;y++)h[y]=u(c[y],y,d,v,p);return h}if(c instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&c instanceof SharedArrayBuffer)return c.slice(0);if(c instanceof DataView){const h=new DataView(c.buffer.slice(0),c.byteOffset,c.byteLength);return v.set(c,h),l(h,c,d,v,p),h}if(typeof File<"u"&&c instanceof File){const h=new File([c],c.name,{type:c.type});return v.set(c,h),l(h,c,d,v,p),h}if(typeof Blob<"u"&&c instanceof Blob){const h=new Blob([c],{type:c.type});return v.set(c,h),l(h,c,d,v,p),h}if(c instanceof Error){const h=new c.constructor;return v.set(c,h),h.message=c.message,h.name=c.name,h.stack=c.stack,h.cause=c.cause,l(h,c,d,v,p),h}if(c instanceof Boolean){const h=new Boolean(c.valueOf());return v.set(c,h),l(h,c,d,v,p),h}if(c instanceof Number){const h=new Number(c.valueOf());return v.set(c,h),l(h,c,d,v,p),h}if(c instanceof String){const h=new String(c.valueOf());return v.set(c,h),l(h,c,d,v,p),h}if(typeof c=="object"&&s(c)){const h=Object.create(Object.getPrototypeOf(c));return v.set(c,h),l(h,c,d,v,p),h}return c}function l(c,f,d=c,v,p){const m=[...Object.keys(f),...t.getSymbols(f)];for(let h=0;h<m.length;h++){const y=m[h],g=Object.getOwnPropertyDescriptor(c,y);(g==null||g.writable)&&(c[y]=u(f[y],y,d,v,p))}}function s(c){switch(r.getTag(c)){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=l}(ru)),ru}var id;function CO(){return id||(id=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ay();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r}(tu)),tu}var ad;function jO(){return ad||(ad=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ny(),r=CO();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n}(Yo)),Yo}var uu={},lu={},su={},od;function IO(){return od||(od=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ay(),r=xs(),n=iy();function i(a,o){return t.cloneDeepWith(a,(u,l,s,c)=>{const f=o?.(u,l,s,c);if(f!==void 0)return f;if(typeof a=="object"){if(r.getTag(a)===n.objectTag&&typeof a.constructor!="function"){const d={};return c.set(a,d),t.copyProperties(d,a,s,c),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}(su)),su}var ud;function TO(){return ud||(ud=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IO();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r}(lu)),lu}var cu={},fu={},ld;function oy(){return ld||(ld=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}(fu)),fu}var du={},sd;function kO(){return sd||(sd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xs();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r}(du)),du}var cd;function MO(){return cd||(cd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gm(),r=oy(),n=kO(),i=ms();function a(o,u){let l;if(Array.isArray(u)?l=u:typeof u=="string"&&t.isDeepKey(u)&&o?.[u]==null?l=i.toPath(u):l=[u],l.length===0)return!1;let s=o;for(let c=0;c<l.length;c++){const f=l[c];if((s==null||!Object.hasOwn(s,f))&&!((Array.isArray(s)||n.isArguments(s))&&r.isIndex(f)&&f<s.length))return!1;s=s[f]}return!0}e.has=a}(cu)),cu}var fd;function DO(){return fd||(fd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ny(),r=hs(),n=TO(),i=ys(),a=MO();function o(u,l){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return l=n.cloneDeep(l),function(s){const c=i.get(s,u);return c===void 0?a.has(s,u):l===void 0?c===void 0:t.isMatch(c,l)}}e.matchesProperty=o}(uu)),uu}var dd;function uy(){return dd||(dd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bs(),r=EO(),n=jO(),i=DO();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}(Ho)),Ho}var vd;function NO(){return vd||(vd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bO(),r=wO(),n=bs(),i=PO(),a=uy();function o(u,l=n.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),r.ary(a.iteratee(l),1)):[]}e.uniqBy=o}(zo)),zo}var vu,pd;function $O(){return pd||(pd=1,vu=NO().uniqBy),vu}var RO=$O();const hd=Bt(RO);function ly(e,t,r){return t===!0?hd(e,r):typeof t=="function"?hd(e,t):e}var yi={exports:{}},pu={},gi={exports:{}},hu={};/**
|
|
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 md;function LO(){if(md)return hu;md=1;var e=E;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(),p=n({inst:{value:v,getSnapshot:d}}),m=p[0].inst,h=p[1];return a(function(){m.value=v,m.getSnapshot=d,l(m)&&h({inst:m})},[f,v,d]),i(function(){return l(m)&&h({inst:m}),f(function(){l(m)&&h({inst:m})})},[f]),o(v),v}function l(f){var d=f.getSnapshot;f=f.value;try{var v=d();return!r(f,v)}catch{return!0}}function s(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:u;return hu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,hu}var mu={};/**
|
|
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 yd;function zO(){return yd||(yd=1,process.env.NODE_ENV!=="production"&&function(){function e(v,p){return v===p&&(v!==0||1/v===1/p)||v!==v&&p!==p}function t(v,p){c||i.startTransition===void 0||(c=!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=p();if(!f){var h=p();a(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}h=o({inst:{value:m,getSnapshot:p}});var y=h[0].inst,g=h[1];return l(function(){y.value=m,y.getSnapshot=p,r(y)&&g({inst:y})},[v,m,p]),u(function(){return r(y)&&g({inst:y}),v(function(){r(y)&&g({inst:y})})},[v]),s(m),m}function r(v){var p=v.getSnapshot;v=v.value;try{var m=p();return!a(v,m)}catch{return!0}}function n(v,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=E,a=typeof Object.is=="function"?Object.is:e,o=i.useState,u=i.useEffect,l=i.useLayoutEffect,s=i.useDebugValue,c=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;mu.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())}()),mu}var gd;function sy(){return gd||(gd=1,process.env.NODE_ENV==="production"?gi.exports=LO():gi.exports=zO()),gi.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 bd;function BO(){if(bd)return pu;bd=1;var e=E,t=sy();function r(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,u=e.useMemo,l=e.useDebugValue;return pu.useSyncExternalStoreWithSelector=function(s,c,f,d,v){var p=a(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=u(function(){function y(O){if(!g){if(g=!0,w=O,O=d(O),v!==void 0&&m.hasValue){var S=m.value;if(v(S,O))return x=S}return x=O}if(S=x,n(w,O))return S;var _=d(O);return v!==void 0&&v(S,_)?(w=O,S):(w=O,x=_)}var g=!1,w,x,P=f===void 0?null:f;return[function(){return y(c())},P===null?void 0:function(){return y(P())}]},[c,f,d,v]);var h=i(s,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},pu}var yu={};/**
|
|
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 wd;function FO(){return wd||(wd=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=E,r=sy(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,a=t.useRef,o=t.useEffect,u=t.useMemo,l=t.useDebugValue;yu.useSyncExternalStoreWithSelector=function(s,c,f,d,v){var p=a(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=u(function(){function y(O){if(!g){if(g=!0,w=O,O=d(O),v!==void 0&&m.hasValue){var S=m.value;if(v(S,O))return x=S}return x=O}if(S=x,n(w,O))return S;var _=d(O);return v!==void 0&&v(S,_)?(w=O,S):(w=O,x=_)}var g=!1,w,x,P=f===void 0?null:f;return[function(){return y(c())},P===null?void 0:function(){return y(P())}]},[c,f,d,v]);var h=i(s,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),yu}var xd;function WO(){return xd||(xd=1,process.env.NODE_ENV==="production"?yi.exports=BO():yi.exports=FO()),yi.exports}var qO=WO(),Os=E.createContext(null),KO=e=>e,ie=()=>{var e=E.useContext(Os);return e?e.store.dispatch:KO},Li=()=>{},UO=()=>Li,VO=(e,t)=>e===t;function L(e){var t=E.useContext(Os),r=E.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Li,[t,e]);return qO.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:UO,t?t.store.getState:Li,t?t.store.getState:Li,r,VO)}var HO=(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})}}},GO=(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 s;try{throw new Error}catch(c){({stack:s}=c)}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:s})}},YO={inputStabilityCheck:"once",identityFunctionCheck:"once"};function XO(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ZO(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function QO(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 Od=e=>Array.isArray(e)?e:[e];function JO(e){const t=Array.isArray(e[0])?e[0]:e;return QO(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Pd(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var e1=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...YO,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:HO},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:GO}}},t1=class{constructor(e){this.value=e}deref(){return this.value}},r1=typeof WeakRef<"u"?WeakRef:t1,n1=0,Ed=1;function bi(){return{s:n1,v:void 0,o:null,p:null}}function cy(e,t={}){let r=bi();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=u.o;p===null&&(u.o=p=new WeakMap);const m=p.get(v);m===void 0?(u=bi(),p.set(v,u)):u=m}else{let p=u.p;p===null&&(u.p=p=new Map);const m=p.get(v);m===void 0?(u=bi(),p.set(v,u)):u=m}}const s=u;let c;if(u.s===Ed)c=u.v;else if(c=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,c)&&(c=f,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new r1(c):c}return s.s=Ed,s.v=c,c}return o.clearCache=()=>{r=bi(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function i1(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},s=i.pop();typeof s=="object"&&(l=s,s=i.pop()),XO(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=cy,argsMemoizeOptions:p=[],devModeChecks:m={}}=c,h=Od(d),y=Od(p),g=JO(i),w=f(function(){return a++,s.apply(null,arguments)},...h);let x=!0;const P=v(function(){o++;const S=Pd(g,arguments);if(u=w.apply(null,S),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:_,inputStabilityCheck:M}=e1(x,m);if(_.shouldRun&&_.run(s,S,u),M.shouldRun){const N=Pd(g,arguments);M.run({inputSelectorResults:S,inputSelectorResultsCopy:N},{memoize:f,memoizeOptions:h},arguments)}x&&(x=!1)}return u},...y);return Object.assign(P,{resultFunc:s,memoizedResultFunc:w,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 A=i1(cy),a1=Object.assign((e,t=A)=>{ZO(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,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>a1}),gu={},bu={},wu={},Sd;function o1(){return Sd||(Sd=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}(wu)),wu}var xu={},Ou={},Ad;function fy(){return Ad||(Ad=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t}(Ou)),Ou}var _d;function u1(){return _d||(_d=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fy(),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}(xu)),xu}var Cd;function l1(){return Cd||(Cd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=o1(),r=u1(),n=ms();function i(a,o,u,l){if(a==null)return[];u=l?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 s=(v,p)=>{let m=v;for(let h=0;h<p.length&&m!=null;++h)m=m[p[h]];return m},c=(v,p)=>p==null||v==null?p:typeof v=="object"&&"key"in v?Object.hasOwn(p,v.key)?p[v.key]:s(p,v.path):typeof v=="function"?v(p):Array.isArray(v)?s(p,v):typeof p=="object"?p[v]:p,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(p=>c(p,v))})).slice().sort((v,p)=>{for(let m=0;m<f.length;m++){const h=t.compareValues(v.criteria[m],p.criteria[m],u[m]);if(h!==0)return h}return 0}).map(v=>v.original)}e.orderBy=i}(bu)),bu}var Pu={},jd;function s1(){return jd||(jd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,l)=>{for(let s=0;s<u.length;s++){const c=u[s];Array.isArray(c)&&l<a?o(c,l+1):i.push(c)}};return o(r,0),i}e.flatten=t}(Pu)),Pu}var Eu={},Id;function dy(){return Id||(Id=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oy(),r=ws(),n=ey(),i=ry();function a(o,u,l){return n.isObject(l)&&(typeof u=="number"&&r.isArrayLike(l)&&t.isIndex(u)&&u<l.length||typeof u=="string"&&u in l)?i.isEqualsSameValueZero(l[u],o):!1}e.isIterateeCall=a}(Eu)),Eu}var Td;function c1(){return Td||(Td=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=l1(),r=s1(),n=dy();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}(gu)),gu}var Su,kd;function f1(){return kd||(kd=1,Su=c1().sortBy),Su}var d1=f1();const za=Bt(d1);var vy=e=>e.legend.settings,v1=e=>e.legend.size,p1=e=>e.legend.payload,h1=A([p1,vy],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?za(n,r):n}),wi=1;function py(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=E.useState({height:0,left:0,top:0,width:0}),n=E.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)>wi||Math.abs(o.left-t.left)>wi||Math.abs(o.top-t.top)>wi||Math.abs(o.width-t.width)>wi)&&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 De(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 m1=typeof Symbol=="function"&&Symbol.observable||"@@observable",Md=m1,Au=()=>Math.random().toString(36).substring(7).split("").join("."),y1={INIT:`@@redux/INIT${Au()}`,REPLACE:`@@redux/REPLACE${Au()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Au()}`},Or=y1;function Vn(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 g1(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(x1(e))return"date";if(w1(e))return"error";const r=b1(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 b1(e){return typeof e.constructor=="function"?e.constructor.name:null}function w1(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function x1(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Xt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=g1(e)),t}function hy(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?De(2):`Expected the root reducer to be a function. Instead, received: '${Xt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?De(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"?De(1):`Expected the enhancer to be a function. Instead, received: '${Xt(r)}'`);return r(hy)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function s(){o===a&&(o=new Map,a.forEach((h,y)=>{o.set(y,h)}))}function c(){if(l)throw new Error(process.env.NODE_ENV==="production"?De(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(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?De(4):`Expected the listener to be a function. Instead, received: '${Xt(h)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?De(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;s();const g=u++;return o.set(g,h),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?De(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,s(),o.delete(g),a=null}}}function d(h){if(!Vn(h))throw new Error(process.env.NODE_ENV==="production"?De(7):`Actions must be plain objects. Instead, the actual type was: '${Xt(h)}'. 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 h.type>"u")throw new Error(process.env.NODE_ENV==="production"?De(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof h.type!="string")throw new Error(process.env.NODE_ENV==="production"?De(17):`Action "type" property must be a string. Instead, the actual type was: '${Xt(h.type)}'. Value was: '${h.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?De(9):"Reducers may not dispatch actions.");try{l=!0,i=n(i,h)}finally{l=!1}return(a=o).forEach(g=>{g()}),h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?De(10):`Expected the nextReducer to be a function. Instead, received: '${Xt(h)}`);n=h,d({type:Or.REPLACE})}function p(){const h=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?De(11):`Expected the observer to be an object. Instead, received: '${Xt(y)}'`);function g(){const x=y;x.next&&x.next(c())}return g(),{unsubscribe:h(g)}},[Md](){return this}}}return d({type:Or.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:v,[Md]:p}}function Dd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function O1(e,t,r,n){const i=Object.keys(t),a=r&&r.type===Or.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(!Vn(e))return`The ${a} has unexpected type of "${Xt(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===Or.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 P1(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Or.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?De(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:Or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?De(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Or.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 my(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"&&Dd(`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{P1(r)}catch(o){a=o}return function(u={},l){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=O1(u,r,l,i);f&&Dd(f)}let s=!1;const c={};for(let f=0;f<n.length;f++){const d=n[f],v=r[d],p=u[d],m=v(p,l);if(typeof m>"u"){const h=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?De(14):`When called with an action of type ${h?`"${String(h)}"`:"(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.`)}c[d]=m,s=s||m!==p}return s=s||n.length!==Object.keys(u).length,s?c:u}}function Yi(...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"?De(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(l,...s)=>a(l,...s)},u=e.map(l=>l(o));return a=Yi(...u)(i.dispatch),{...i,dispatch:a}}}function Ps(e){return Vn(e)&&"type"in e&&typeof e.type=="string"}var yy=Symbol.for("immer-nothing"),Nd=Symbol.for("immer-draftable"),He=Symbol.for("immer-state"),S1=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 tt(e,...t){if(process.env.NODE_ENV!=="production"){const r=S1[e],n=yr(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 nt=Object,Qr=nt.getPrototypeOf,Xi="constructor",Ba="prototype",yl="configurable",Zi="enumerable",zi="writable",jn="value",Nt=e=>!!e&&!!e[He];function yt(e){return e?gy(e)||Wa(e)||!!e[Nd]||!!e[Xi]?.[Nd]||qa(e)||Ka(e):!1}var A1=nt[Ba][Xi].toString(),$d=new WeakMap;function gy(e){if(!e||!Es(e))return!1;const t=Qr(e);if(t===null||t===nt[Ba])return!0;const r=nt.hasOwnProperty.call(t,Xi)&&t[Xi];if(r===Object)return!0;if(!yr(r))return!1;let n=$d.get(r);return n===void 0&&(n=Function.toString.call(r),$d.set(r,n)),n===A1}function Fa(e,t,r=!0){Hn(e)===0?(r?Reflect.ownKeys(e):nt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Hn(e){const t=e[He];return t?t.type_:Wa(e)?1:qa(e)?2:Ka(e)?3:0}var Rd=(e,t,r=Hn(e))=>r===2?e.has(t):nt[Ba].hasOwnProperty.call(e,t),gl=(e,t,r=Hn(e))=>r===2?e.get(t):e[t],Qi=(e,t,r,n=Hn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function _1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Wa=Array.isArray,qa=e=>e instanceof Map,Ka=e=>e instanceof Set,Es=e=>typeof e=="object",yr=e=>typeof e=="function",_u=e=>typeof e=="boolean";function C1(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var jt=e=>e.copy_||e.base_,Ss=e=>e.modified_?e.copy_:e.base_;function bl(e,t){if(qa(e))return new Map(e);if(Ka(e))return new Set(e);if(Wa(e))return Array[Ba].slice.call(e);const r=gy(e);if(t===!0||t==="class_only"&&!r){const n=nt.getOwnPropertyDescriptors(e);delete n[He];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[zi]===!1&&(u[zi]=!0,u[yl]=!0),(u.get||u.set)&&(n[o]={[yl]:!0,[zi]:!0,[Zi]:u[Zi],[jn]:e[o]})}return nt.create(Qr(e),n)}else{const n=Qr(e);if(n!==null&&r)return{...e};const i=nt.create(n);return nt.assign(i,e)}}function As(e,t=!1){return Ua(e)||Nt(e)||!yt(e)||(Hn(e)>1&&nt.defineProperties(e,{set:xi,add:xi,clear:xi,delete:xi}),nt.freeze(e),t&&Fa(e,(r,n)=>{As(n,!0)},!1)),e}function j1(){tt(2)}var xi={[jn]:j1};function Ua(e){return e===null||!Es(e)?!0:nt.isFrozen(e)}var Ji="MapSet",wl="Patches",Ld="ArrayMethods",by={};function Cr(e){const t=by[e];return t||tt(0,e),t}var zd=e=>!!by[e],In,wy=()=>In,I1=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:zd(Ji)?Cr(Ji):void 0,arrayMethodsPlugin_:zd(Ld)?Cr(Ld):void 0});function Bd(e,t){t&&(e.patchPlugin_=Cr(wl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function xl(e){Ol(e),e.drafts_.forEach(T1),e.drafts_=null}function Ol(e){e===In&&(In=e.parent_)}var Fd=e=>In=I1(In,e);function T1(e){const t=e[He];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Wd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[He].modified_&&(xl(t),tt(4)),yt(e)&&(e=qd(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[He].base_,e,t)}else e=qd(t,r);return k1(t,e,!0),xl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yy?e:void 0}function qd(e,t){if(Ua(t))return t;const r=t[He];if(!r)return ea(t,e.handledSet_,e);if(!Va(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);Py(r,e)}return r.copy_}function k1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&As(t,r)}function xy(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Va=(e,t)=>e.scope_===t,M1=[];function Oy(e,t,r,n){const i=jt(e),a=e.type_;if(n!==void 0&&gl(i,n,a)===t){Qi(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Fa(i,(l,s)=>{if(Nt(s)){const c=u.get(s)||[];c.push(l),u.set(s,c)}})}const o=e.draftLocations_.get(t)??M1;for(const u of o)Qi(i,u,r,a)}function D1(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!Va(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=Ss(a);Oy(e,a.draft_??a,o,r),Py(a,i)})}function Py(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)}xy(e)}}function N1(e,t,r){const{scope_:n}=e;if(Nt(r)){const i=r[He];Va(i,n)&&i.callbacks_.push(function(){Bi(e);const o=Ss(i);Oy(e,r,o,t)})}else yt(r)&&e.callbacks_.push(function(){const a=jt(e);e.type_===3?a.has(r)&&ea(r,n.handledSet_,n):gl(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ea(gl(e.copy_,t,e.type_),n.handledSet_,n)})}function ea(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Nt(e)||t.has(e)||!yt(e)||Ua(e)||(t.add(e),Fa(e,(n,i)=>{if(Nt(i)){const a=i[He];if(Va(a,r)){const o=Ss(a);Qi(e,n,o,e.type_),xy(a)}}else yt(i)&&ea(i,t,r)})),e}function $1(e,t){const r=Wa(e),n={type_:r?1:0,scope_:t?t.scope_:wy(),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=ta;r&&(i=[n],a=Tn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var ta={get(e,t){if(t===He)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=jt(e);if(!Rd(i,t,e.type_))return R1(e,i,t);const a=i[t];if(e.finalized_||!yt(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&C1(t))return a;if(a===Cu(e.base_,t)){Bi(e);const o=e.type_===1?+t:t,u=El(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in jt(e)},ownKeys(e){return Reflect.ownKeys(jt(e))},set(e,t,r){const n=Ey(jt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Cu(jt(e),t),a=i?.[He];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(_1(r,i)&&(r!==void 0||Rd(e.base_,t,e.type_)))return!0;Bi(e),Pl(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),N1(e,t,r)),!0},deleteProperty(e,t){return Bi(e),Cu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Pl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=jt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[zi]:!0,[yl]:e.type_!==1||t!=="length",[Zi]:n[Zi],[jn]:r[t]}},defineProperty(){tt(11)},getPrototypeOf(e){return Qr(e.base_)},setPrototypeOf(){tt(12)}},Tn={};for(let e in ta){let t=ta[e];Tn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Tn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&tt(13),Tn.set.call(this,e,t,void 0)};Tn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&tt(14),ta.set.call(this,e[0],t,r,e[0])};function Cu(e,t){const r=e[He];return(r?jt(r):e)[t]}function R1(e,t,r){const n=Ey(t,r);return n?jn in n?n[jn]:n.get?.call(e.draft_):void 0}function Ey(e,t){if(!(t in e))return;let r=Qr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Qr(r)}}function Pl(e){e.modified_||(e.modified_=!0,e.parent_&&Pl(e.parent_))}function Bi(e){e.copy_||(e.assigned_=new Map,e.copy_=bl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var L1=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(yr(r)&&!yr(n)){const o=n;n=r;const u=this;return function(s=o,...c){return u.produce(s,f=>n.call(this,f,...c))}}yr(n)||tt(6),i!==void 0&&!yr(i)&&tt(7);let a;if(yt(r)){const o=Fd(this),u=El(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?xl(o):Ol(o)}return Bd(o,i),Wd(a,o)}else if(!r||!Es(r)){if(a=n(r),a===void 0&&(a=r),a===yy&&(a=void 0),this.autoFreeze_&&As(a,!0),i){const o=[],u=[];Cr(wl).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else tt(1,r)},this.produceWithPatches=(r,n)=>{if(yr(r))return(u,...l)=>this.produceWithPatches(u,s=>r(s,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},_u(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),_u(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),_u(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){yt(t)||tt(8),Nt(t)&&(t=ht(t));const r=Fd(this),n=El(r,t,void 0);return n[He].isManual_=!0,Ol(r),n}finishDraft(t,r){const n=t&&t[He];(!n||!n.isManual_)&&tt(9);const{scope_:i}=n;return Bd(i,r),Wd(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=Cr(wl).applyPatches_;return Nt(t)?i(t,r):this.produce(t,a=>i(a,r))}};function El(e,t,r,n){const[i,a]=qa(t)?Cr(Ji).proxyMap_(t,r):Ka(t)?Cr(Ji).proxySet_(t,r):$1(t,r);return(r?.scope_??wy()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?D1(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:s}=l;a.modified_&&s&&s.generatePatches_(a,[],l)}),i}function ht(e){return Nt(e)||tt(10,e),Sy(e)}function Sy(e){if(!yt(e)||Ua(e))return e;const t=e[He];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=bl(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=bl(e,!0);return Fa(r,(i,a)=>{Qi(r,i,Sy(a))},n),t&&(t.finalized_=!1),r}var z1=new L1,Ay=z1.produce;function _y(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var B1=_y(),F1=_y,W1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Yi:Yi.apply(null,arguments)},q1=e=>e&&typeof e.match=="function";function ct(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?Y(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=>Ps(n)&&n.type===e,r}function K1(e){return typeof e=="function"&&"type"in e&&q1(e)}function U1(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 V1(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=K1}=e;return()=>r=>n=>(t(n)&&console.warn(U1(n.type)),r(n))}function Cy(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 jy=class En extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,En.prototype)}static get[Symbol.species](){return En}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new En(...t[0].concat(this)):new En(...t.concat(this))}};function Kd(e){return yt(e)?Ay(e,()=>{}):e}function Oi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function H1(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function G1(e,t,r){const n=Iy(e,t,r);return{detectMutations(){return Ty(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 l=n?n+"."+u:u;o&&t.some(c=>c instanceof RegExp?c.test(l):l===c)||(a.children[u]=Iy(e,t,r[u],l))}}return a}function Ty(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 l={};for(let c in r.children)l[c]=!0;for(let c in n)l[c]=!0;const s=t.length>0;for(let c in l){const f=a?a+"."+c:c;if(s&&t.some(p=>p instanceof RegExp?p.test(f):f===p))continue;const d=Ty(e,t,r.children[c],n[c],u,f);if(d.wasMutated)return d}return{wasMutated:!1}}function Y1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(u,l,s,c){return JSON.stringify(u,r(l,c),s)},r=function(u,l){let s=[],c=[];return l||(l=function(f,d){return s[0]===d?"[Circular ~]":"[Circular ~."+c.slice(0,s.indexOf(d)).join(".")+"]"}),function(f,d){if(s.length>0){var v=s.indexOf(this);~v?s.splice(v+1):s.push(this),~v?c.splice(v,1/0,f):c.push(f),~s.indexOf(d)&&(d=l.call(this,f,d))}else s.push(d);return u==null?d:u.call(this,f,d)}},{isImmutable:n=H1,ignoredPaths:i,warnAfter:a=32}=e;const o=G1.bind(null,n,i);return({getState:u})=>{let l=u(),s=o(l),c;return f=>d=>{const v=Cy(a,"ImmutableStateInvariantMiddleware");v.measureTime(()=>{if(l=u(),c=s.detectMutations(),s=o(l),c.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Y(19):`A state mutation was detected between dispatches, in the path '${c.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const p=f(d);return v.measureTime(()=>{if(l=u(),c=s.detectMutations(),s=o(l),c.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Y(20):`A state mutation was detected inside a dispatch, in the path: ${c.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(),p}}}}function ky(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Vn(e)}function Sl(e,t="",r=ky,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),l=i.length>0;for(const[s,c]of u){const f=t?t+"."+s:s;if(!(l&&i.some(v=>v instanceof RegExp?v.test(f):f===v))){if(!r(c))return{keyPath:f,value:c};if(typeof c=="object"&&(o=Sl(c,f,r,n,i,a),o))return o}}return a&&My(e)&&a.add(e),!1}function My(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!My(t))return!1;return!0}function X1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=ky,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:u=!1,ignoreActions:l=!1,disableCache:s=!1}=e,c=!s&&WeakSet?new WeakSet:void 0;return f=>d=>v=>{if(!Ps(v))return d(v);const p=d(v),m=Cy(o,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const h=Sl(v,"",t,r,i,c);if(h){const{keyPath:y,value:g}=h;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 h=f.getState(),y=Sl(h,"",t,r,a,c);if(y){const{keyPath:g,value:w}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${g}\`. Value:`,w,`
|
|
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()),p}}}function Pi(e){return typeof e=="boolean"}var Z1=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new jy;if(r&&(Pi(r)?o.push(B1):o.push(F1(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let u={};Pi(n)||(u=n),o.unshift(Y1(u))}if(i){let u={};Pi(i)||(u=i),o.push(X1(u))}if(a){let u={};Pi(a)||(u=a),o.unshift(V1(u))}}return o},Dy="RTK_autoBatch",ue=()=>e=>({payload:e,meta:{[Dy]:!0}}),Ud=e=>t=>{setTimeout(t,e)},Ny=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ud(10):e.type==="callback"?e.queueNotification:Ud(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return i=!c?.meta?.[Dy],a=!i,a&&(o||(o=!0,l(s))),n.dispatch(c)}finally{i=!0}}})},Q1=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new jy(e);return n&&i.push(Ny(typeof n=="object"?n:void 0)),i};function J1(e){const t=Z1(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:u=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Vn(r))l=my(r);else throw new Error(process.env.NODE_ENV==="production"?Y(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"?Y(2):"`middleware` field must be a callback");let s;if(typeof n=="function"){if(s=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(s))throw new Error(process.env.NODE_ENV==="production"?Y(3):"when using a middleware builder function, an array of middleware must be returned")}else s=t();if(process.env.NODE_ENV!=="production"&&s.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Y(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let m=new Set;s.forEach(h=>{if(m.has(h))throw new Error(process.env.NODE_ENV==="production"?Y(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(h)})}let c=Yi;i&&(c=W1({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=E1(...s),d=Q1(f);if(process.env.NODE_ENV!=="production"&&u&&typeof u!="function")throw new Error(process.env.NODE_ENV==="production"?Y(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"?Y(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"?Y(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&s.length&&!v.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const p=c(...v);return hy(l,o,p)}function $y(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"?Y(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Y(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"?Y(28):"`builder.addCase` cannot be called with an empty action type");if(u in t)throw new Error(process.env.NODE_ENV==="production"?Y(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"?Y(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"?Y(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"?Y(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function eP(e){return typeof e=="function"}function tP(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Y(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]=$y(t),a;if(eP(e))a=()=>Kd(e());else{const u=Kd(e);a=()=>u}function o(u=a(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[i]),s.reduce((c,f)=>{if(f)if(Nt(c)){const v=f(c,l);return v===void 0?c:v}else{if(yt(c))return Ay(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return o.getInitialState=a,o}var rP="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nP=(e=21)=>{let t="",r=e;for(;r--;)t+=rP[Math.random()*64|0];return t},iP=Symbol.for("rtk-slice-createasyncthunk");function aP(e,t){return`${e}/${t}`}function oP({creators:e}={}){const t=e?.asyncThunk?.[iP];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?Y(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(lP()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(w,x){const P=typeof w=="string"?w:w.type;if(!P)throw new Error(process.env.NODE_ENV==="production"?Y(12):"`context.addCase` cannot be called with an empty action type");if(P in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Y(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return l.sliceCaseReducersByType[P]=x,s},addMatcher(w,x){return l.sliceMatchers.push({matcher:w,reducer:x}),s},exposeAction(w,x){return l.actionCreators[w]=x,s},exposeCaseReducer(w,x){return l.sliceCaseReducersByName[w]=x,s}};u.forEach(w=>{const x=o[w],P={reducerName:w,type:aP(i,w),createNotation:typeof n.reducers=="function"};cP(x)?dP(P,x,s,t):sP(P,x,s)});function c(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Y(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[w={},x=[],P=void 0]=typeof n.extraReducers=="function"?$y(n.extraReducers):[n.extraReducers],O={...w,...l.sliceCaseReducersByType};return tP(n.initialState,S=>{for(let _ in O)S.addCase(_,O[_]);for(let _ of l.sliceMatchers)S.addMatcher(_.matcher,_.reducer);for(let _ of x)S.addMatcher(_.matcher,_.reducer);P&&S.addDefaultCase(P)})}const f=w=>w,d=new Map,v=new WeakMap;let p;function m(w,x){return p||(p=c()),p(w,x)}function h(){return p||(p=c()),p.getInitialState()}function y(w,x=!1){function P(S){let _=S[w];if(typeof _>"u"){if(x)_=Oi(v,P,h);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Y(15):"selectSlice returned undefined for an uninjected slice reducer")}return _}function O(S=f){const _=Oi(d,x,()=>new WeakMap);return Oi(_,S,()=>{const M={};for(const[N,j]of Object.entries(n.selectors??{}))M[N]=uP(j,S,()=>Oi(v,S,h),x);return M})}return{reducerPath:w,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const g={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:h,...y(a),injectInto(w,{reducerPath:x,...P}={}){const O=x??a;return w.inject({reducerPath:O,reducer:m},P),{...g,...y(O,!0)}}};return g}}function uP(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"?Y(16):"selectState returned undefined for an uninjected slice reducer")}return e(u,...o)}return i.unwrapped=e,i}var Ze=oP();function lP(){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 sP({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!fP(n))throw new Error(process.env.NODE_ENV==="production"?Y(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?ct(e,o):ct(e))}function cP(e){return e._reducerDefinitionType==="asyncThunk"}function fP(e){return e._reducerDefinitionType==="reducerWithPrepare"}function dP({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Y(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:l,settled:s,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||Ei,pending:u||Ei,rejected:l||Ei,settled:s||Ei})}function Ei(){}var vP="task",Ry="listener",Ly="completed",_s="cancelled",pP=`task-${_s}`,hP=`task-${Ly}`,Al=`${Ry}-${_s}`,mP=`${Ry}-${Ly}`,Ha=class{constructor(e){this.code=e,this.message=`${vP} ${_s} (reason: ${e})`}name="TaskAbortError";message},Cs=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?Y(32):`${t} is not a function`)},ra=()=>{},zy=(e,t=ra)=>(e.catch(t),e),By=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Pr=e=>{if(e.aborted)throw new Ha(e.reason)};function Fy(e,t){let r=ra;return new Promise((n,i)=>{const a=()=>i(new Ha(e.reason));if(e.aborted){a();return}r=By(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=ra})}var yP=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ha?"cancelled":"rejected",error:r}}finally{t?.()}},na=e=>t=>zy(Fy(e,t).then(r=>(Pr(e),r))),Wy=e=>{const t=na(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Yr}=Object,Vd={},Gn="listenerMiddleware",gP=(e,t)=>{const r=n=>By(e,()=>n.abort(e.reason));return(n,i)=>{Cs(n,"taskExecutor");const a=new AbortController;r(a);const o=yP(async()=>{Pr(e),Pr(a.signal);const u=await n({pause:na(a.signal),delay:Wy(a.signal),signal:a.signal});return Pr(a.signal),u},()=>a.abort(hP));return i?.autoJoin&&t.push(o.catch(ra)),{result:na(e)(o),cancel(){a.abort(pP)}}}},bP=(e,t)=>{const r=async(n,i)=>{Pr(t);let a=()=>{};const u=[new Promise((l,s)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),s()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Fy(t,Promise.race(u));return Pr(t),l}finally{a()}};return(n,i)=>zy(r(n,i))},qy=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=ct(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"?Y(21):"Creating or removing a listener requires one of the known fields for matching an action");return Cs(a,"options.listener"),{predicate:i,type:t,effect:a}},Ky=Yr(e=>{const{type:t,predicate:r,effect:n}=qy(e);return{id:nP(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?Y(22):"Unsubscribe not initialized")}}},{withTypes:()=>Ky}),Hd=(e,t)=>{const{type:r,effect:n,predicate:i}=qy(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},_l=e=>{e.pending.forEach(t=>{t.abort(Al)})},wP=(e,t)=>()=>{for(const r of t.keys())_l(r);e.clear()},Gd=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Uy=Yr(ct(`${Gn}/add`),{withTypes:()=>Uy}),xP=ct(`${Gn}/removeAll`),Vy=Yr(ct(`${Gn}/remove`),{withTypes:()=>Vy}),OP=(...e)=>{console.error(`${Gn}/error`,...e)},Yn=(e={})=>{const t=new Map,r=new Map,n=v=>{const p=r.get(v)??0;r.set(v,p+1)},i=v=>{const p=r.get(v)??1;p===1?r.delete(v):r.set(v,p-1)},{extra:a,onError:o=OP}=e;Cs(o,"onError");const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),p=>{v.unsubscribe(),p?.cancelActive&&_l(v)}),l=v=>{const p=Hd(t,v)??Ky(v);return u(p)};Yr(l,{withTypes:()=>l});const s=v=>{const p=Hd(t,v);return p&&(p.unsubscribe(),v.cancelActive&&_l(p)),!!p};Yr(s,{withTypes:()=>s});const c=async(v,p,m,h)=>{const y=new AbortController,g=bP(l,y.signal),w=[];try{v.pending.add(y),n(v),await Promise.resolve(v.effect(p,Yr({},m,{getOriginalState:h,condition:(x,P)=>g(x,P).then(Boolean),take:g,delay:Wy(y.signal),pause:na(y.signal),extra:a,signal:y.signal,fork:gP(y.signal,w),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((x,P,O)=>{x!==y&&(x.abort(Al),O.delete(x))})},cancel:()=>{y.abort(Al),v.pending.delete(y)},throwIfCancelled:()=>{Pr(y.signal)}})))}catch(x){x instanceof Ha||Gd(o,x,{raisedBy:"effect"})}finally{await Promise.all(w),y.abort(mP),i(v),v.pending.delete(y)}},f=wP(t,r);return{middleware:v=>p=>m=>{if(!Ps(m))return p(m);if(Uy.match(m))return l(m.payload);if(xP.match(m)){f();return}if(Vy.match(m))return s(m.payload);let h=v.getState();const y=()=>{if(h===Vd)throw new Error(process.env.NODE_ENV==="production"?Y(23):`${Gn}: getOriginalState can only be called synchronously`);return h};let g;try{if(g=p(m),t.size>0){const w=v.getState(),x=Array.from(t.values());for(const P of x){let O=!1;try{O=P.predicate(m,w,h)}catch(S){O=!1,Gd(o,S,{raisedBy:"predicate"})}O&&c(P,m,v,y)}}}finally{h=Vd}return g},startListening:l,stopListening:s,clearListeners:f}};function Y(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 PP={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Hy=Ze({name:"chartLayout",initialState:PP,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:Gy,setLayout:EP,setChartSize:SP,setScale:AP}=Hy.actions,_P=Hy.reducer;function Yy(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function V(e){return Number.isFinite(e)}function gt(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}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 Hr(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){CP(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 CP(e,t,r){return(t=jP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jP(e){var t=IP(e,"string");return typeof t=="symbol"?t:t+""}function IP(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 re(e,t,r){return pe(e)||pe(t)?r:At(t)?nr(e,t,r):typeof t=="function"?t(e):r}var TP=(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 Hr(Hr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&R(e[o]))return Hr(Hr({},e),{},{[o]:e[o]+(i||0)})}return e},Ft=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Xy=(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},Zy=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:s,tickCount:c,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var p=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(m=v==="angleAxis"&&a&&a.length>=2?Ce(a[0]-a[1])*2*m:m,f||d){var h=(f||d||[]).map((y,g)=>{var w=n?n.indexOf(y):y,x=o.map(w);return V(x)?{coordinate:x+m,value:y,offset:m,index:g}:null}).filter(Ke);return h}return l&&s?s.map((y,g)=>{var w=o.map(y);return V(w)?{coordinate:w+m,value:y,index:g,offset:m}:null}).filter(Ke):o.ticks&&c!=null?o.ticks(c).map((y,g)=>{var w=o.map(y);return V(w)?{coordinate:w+m,value:y,index:g,offset:m}:null}).filter(Ke):o.domain().map((y,g)=>{var w=o.map(y);return V(w)?{coordinate:w+m,value:n?n[y]:y,index:g,offset:m}:null}).filter(Ke)},kP=(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},MP=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 l=e[u],s=l?.[i];if(s!=null){var c=s[1],f=s[0],d=mt(c)?f:c;d>=0?(s[0]=a,a+=d,s[1]=a):(s[0]=o,o+=d,s[1]=o)}}}},DP=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],l=u?.[i];if(l!=null){var s=mt(l[1])?l[0]:l[1];s>=0?(l[0]=a,a+=s,l[1]=a):(l[0]=0,l[1]=0)}}}},NP={sign:MP,expand:Hx,none:Ar,silhouette:Gx,wiggle:Yx,positive:DP},$P=(e,t,r)=>{var n,i=(n=NP[r])!==null&&n!==void 0?n:Ar,a=Vx().keys(t).value((u,l)=>Number(re(u,l,0))).order(hl).offset(i),o=a(e);return o.forEach((u,l)=>{u.forEach((s,c)=>{var f=re(e[c],t[l],0);Array.isArray(f)&&f.length===2&&R(f[0])&&R(f[1])&&(s[0]=f[0],s[1]=f[1])})}),o};function Qy(e){return e==null?void 0:String(e)}function RP(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!pe(i[t.dataKey])){var u=Xm(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var l=re(i,pe(o)?t.dataKey:o),s=t.scale.map(l);return R(s)?s:null}var Xd=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=re(a,t.dataKey,t.scale.domain()[o]);if(pe(u))return null;var l=t.scale.map(u);return R(l)?l-i/2+n:null},LP=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]},zP=e=>{var t=e.flat(2).filter(R);return[Math.min(...t),Math.max(...t)]},BP=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],FP=(e,t,r)=>{if(e!=null)return BP(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((l,s)=>{var c=Yy(s,t,r),f=zP(c);return!V(f[0])||!V(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},Zd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Qd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kn=(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=za(t,c=>c.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],s=i[o-1];a=Math.min((l?.coordinate||0)-(s?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function Jd(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Hr(Hr({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Xn(e,t){if(e)return String(e);if(typeof t=="string")return t}var WP=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},qP=(e,t)=>t==="centric"?e.angle:e.radius,Wt=e=>e.layout.width,qt=e=>e.layout.height,KP=e=>e.layout.scale,Jy=e=>e.layout.margin,Ga=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ya=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),eg="data-recharts-item-index",js="data-recharts-item-id",Zn=60;function ev(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?ev(Object(r),!0).forEach(function(n){UP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ev(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UP(e,t,r){return(t=VP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VP(e){var t=HP(e,"string");return typeof t=="symbol"?t:t+""}function HP(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 GP=e=>e.brush.height;function YP(e){var t=Ya(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Zn;return r+i}return r},0)}function XP(e){var t=Ya(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Zn;return r+i}return r},0)}function ZP(e){var t=Ga(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function QP(e){var t=Ga(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Oe=A([Wt,qt,Jy,GP,YP,XP,ZP,QP,vy,v1],(e,t,r,n,i,a,o,u,l,s)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=Si(Si({},f),c),v=d.bottom;d.bottom+=n,d=TP(d,l,s);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Si(Si({brushBottom:v},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),JP=A(Oe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Is=A(Wt,qt,(e,t)=>({x:0,y:0,width:e,height:t})),eE=E.createContext(null),Ge=()=>E.useContext(eE)!=null,Xa=e=>e.brush,Za=A([Xa,Oe,Jy],(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})),ju={},Iu={},Tu={},tv;function tE(){return tv||(tv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const l=a!=null&&a.includes("leading"),s=a==null||a.includes("trailing"),c=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{s&&c(),m()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},p=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{p(),o=void 0,u=null},h=()=>{c()},y=function(...g){if(i?.aborted)return;o=this,u=g;const w=d==null;v(),l&&w&&c()};return y.schedule=v,y.cancel=m,y.flush=h,i?.addEventListener("abort",m,{once:!0}),y}e.debounce=t}(Tu)),Tu}var rv;function rE(){return rv||(rv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tE();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:l}=a,s=Array(2);o&&(s[0]="leading"),u&&(s[1]="trailing");let c,f=null;const d=t.debounce(function(...m){c=n.apply(this,m),f=null},i,{edges:s}),v=function(...m){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(c=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),c):(d.apply(this,m),c)},p=()=>(d.flush(),c);return v.cancel=d.cancel,v.flush=p,v}e.debounce=r}(Iu)),Iu}var nv;function nE(){return nv||(nv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rE();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}(ju)),ju}var ku,iv;function iE(){return iv||(iv=1,ku=nE().throttle),ku}var aE=iE();const oE=Bt(aE);var ia=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++]))}},Pt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},tg=(e,t,r)=>{var{width:n=Pt.width,height:i=Pt.height,aspect:a,maxHeight:o}=r,u=_r(n)?e:Number(n),l=_r(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},uE={width:0,height:0,overflow:"visible"},lE={width:0,overflowX:"visible"},sE={height:0,overflowY:"visible"},cE={},fE=e=>{var{width:t,height:r}=e,n=_r(t),i=_r(r);return n&&i?uE:n?lE:i?sE:cE};function dE(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=Pt.width,a=Pt.height):i===void 0?i=n&&n>0?void 0:Pt.width:a===void 0&&(a=n&&n>0?void 0:Pt.height),{width:i,height:a}}function Cl(){return Cl=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},Cl.apply(null,arguments)}function av(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 ov(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?av(Object(r),!0).forEach(function(n){vE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):av(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vE(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=hE(e,"string");return typeof t=="symbol"?t:t+""}function hE(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 rg=E.createContext(Pt.initialDimension);function mE(e){return gt(e.width)&>(e.height)}function ng(e){var{children:t,width:r,height:n}=e,i=E.useMemo(()=>({width:r,height:n}),[r,n]);return mE(i)?b.createElement(rg.Provider,{value:i},t):null}var Ts=()=>E.useContext(rg),yE=E.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Pt.initialDimension,width:i,height:a,minWidth:o=Pt.minWidth,minHeight:u,maxHeight:l,children:s,debounce:c=Pt.debounce,id:f,className:d,onResize:v,style:p={}}=e,m=E.useRef(null),h=E.useRef();h.current=v,E.useImperativeHandle(t,()=>m.current);var[y,g]=E.useState({containerWidth:n.width,containerHeight:n.height}),w=E.useCallback((_,M)=>{g(N=>{var j=Math.round(_),k=Math.round(M);return N.containerWidth===j&&N.containerHeight===k?N:{containerWidth:j,containerHeight:k}})},[]);E.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Rr;var _=k=>{var C,z=k[0];if(z!=null){var{width:U,height:W}=z.contentRect;w(U,W),(C=h.current)===null||C===void 0||C.call(h,U,W)}};c>0&&(_=oE(_,c,{trailing:!0,leading:!1}));var M=new ResizeObserver(_),{width:N,height:j}=m.current.getBoundingClientRect();return w(N,j),M.observe(m.current),()=>{M.disconnect()}},[w,c]);var{containerWidth:x,containerHeight:P}=y;ia(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=tg(x,P,{width:i,height:a,aspect:r,maxHeight:l});return ia(O!=null&&O>0||S!=null&&S>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,S,i,a,o,u,r),b.createElement("div",{id:f?"".concat(f):void 0,className:J("recharts-responsive-container",d),style:ov(ov({},p),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:l}),ref:m},b.createElement("div",{style:fE({width:i,height:a})},b.createElement(ng,{width:O,height:S},s)))}),ig=E.forwardRef((e,t)=>{var r=Ts();if(gt(r.width)&>(r.height))return e.children;var{width:n,height:i}=dE({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=tg(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return R(a)&&R(o)?b.createElement(ng,{width:a,height:o},e.children):b.createElement(yE,Cl({},e,{width:n,height:i,ref:t}))});function ks(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 Qn=()=>{var e,t=Ge(),r=L(JP),n=L(Za),i=(e=L(Xa))===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}},gE={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},ag=()=>{var e;return(e=L(Oe))!==null&&e!==void 0?e:gE},Ms=()=>L(Wt),Ds=()=>L(qt),bE=()=>L(e=>e.layout.margin),X=e=>e.layout.layoutType,Lr=()=>L(X),Ns=()=>{var e=Lr();if(e==="horizontal"||e==="vertical")return e},og=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},wE=()=>{var e=Lr();return e!==void 0},nn=e=>{var t=ie(),r=Ge(),{width:n,height:i}=e,a=Ts(),o=n,u=i;return a&&(o=a.width>0?a.width:n,u=a.height>0?a.height:i),E.useEffect(()=>{!r&>(o)&>(u)&&t(SP({width:o,height:u}))},[t,r,o,u]),null},xE=e=>{var{margin:t}=e,r=ie();return E.useEffect(()=>{r(Gy(t))},[r,t]),null},ug=Symbol.for("immer-nothing"),uv=Symbol.for("immer-draftable"),it=Symbol.for("immer-state"),OE=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 Ye(e,...t){if(process.env.NODE_ENV!=="production"){const r=OE[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 Mn=Object.getPrototypeOf;function Jr(e){return!!e&&!!e[it]}function jr(e){return e?lg(e)||Array.isArray(e)||!!e[uv]||!!e.constructor?.[uv]||Jn(e)||Ja(e):!1}var PE=Object.prototype.constructor.toString(),lv=new WeakMap;function lg(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=lv.get(r);return n===void 0&&(n=Function.toString.call(r),lv.set(r,n)),n===PE}function aa(e,t,r=!0){Qa(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 Qa(e){const t=e[it];return t?t.type_:Array.isArray(e)?1:Jn(e)?2:Ja(e)?3:0}function jl(e,t){return Qa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function sg(e,t,r){const n=Qa(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function EE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Jn(e){return e instanceof Map}function Ja(e){return e instanceof Set}function hr(e){return e.copy_||e.base_}function Il(e,t){if(Jn(e))return new Map(e);if(Ja(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=lg(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[it];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(Mn(e),n)}else{const n=Mn(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function $s(e,t=!1){return eo(e)||Jr(e)||!jr(e)||(Qa(e)>1&&Object.defineProperties(e,{set:Ai,add:Ai,clear:Ai,delete:Ai}),Object.freeze(e),t&&Object.values(e).forEach(r=>$s(r,!0))),e}function SE(){Ye(2)}var Ai={value:SE};function eo(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var AE={};function Ir(e){const t=AE[e];return t||Ye(0,e),t}var Dn;function cg(){return Dn}function _E(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sv(e,t){t&&(Ir("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Tl(e){kl(e),e.drafts_.forEach(CE),e.drafts_=null}function kl(e){e===Dn&&(Dn=e.parent_)}function cv(e){return Dn=_E(Dn,e)}function CE(e){const t=e[it];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[it].modified_&&(Tl(t),Ye(4)),jr(e)&&(e=oa(t,e),t.parent_||ua(t,e)),t.patches_&&Ir("Patches").generateReplacementPatches_(r[it].base_,e,t.patches_,t.inversePatches_)):e=oa(t,r,[]),Tl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ug?e:void 0}function oa(e,t,r){if(eo(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[it];if(!i)return aa(t,(a,o)=>dv(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return ua(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),aa(o,(l,s)=>dv(e,i,a,l,s,r,u),n),ua(e,a,!1),r&&e.patches_&&Ir("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function dv(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const u=eo(i);if(!(u&&!o)){if(process.env.NODE_ENV!=="production"&&i===r&&Ye(5),Jr(i)){const l=a&&t&&t.type_!==3&&!jl(t.assigned_,n)?a.concat(n):void 0,s=oa(e,i,l);if(sg(r,n,s),Jr(s))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(jr(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;oa(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Jn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&ua(e,i)}}}function ua(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$s(t,r)}function jE(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:cg(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Rs;r&&(i=[n],a=Nn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var Rs={get(e,t){if(t===it)return e;const r=hr(e);if(!jl(r,t))return IE(e,r,t);const n=r[t];return e.finalized_||!jr(n)?n:n===Mu(e.base_,t)?(Du(e),e.copy_[t]=Dl(n,e)):n},has(e,t){return t in hr(e)},ownKeys(e){return Reflect.ownKeys(hr(e))},set(e,t,r){const n=fg(hr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Mu(hr(e),t),a=i?.[it];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(EE(r,i)&&(r!==void 0||jl(e.base_,t)))return!0;Du(e),Ml(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 Mu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Du(e),Ml(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=hr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Ye(11)},getPrototypeOf(e){return Mn(e.base_)},setPrototypeOf(){Ye(12)}},Nn={};aa(Rs,(e,t)=>{Nn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Nn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ye(13),Nn.set.call(this,e,t,void 0)};Nn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ye(14),Rs.set.call(this,e[0],t,r,e[0])};function Mu(e,t){const r=e[it];return(r?hr(r):e)[t]}function IE(e,t,r){const n=fg(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function fg(e,t){if(!(t in e))return;let r=Mn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Mn(r)}}function Ml(e){e.modified_||(e.modified_=!0,e.parent_&&Ml(e.parent_))}function Du(e){e.copy_||(e.copy_=Il(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var TE=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(l=a,...s){return o.produce(l,c=>r.call(this,c,...s))}}typeof r!="function"&&Ye(6),n!==void 0&&typeof n!="function"&&Ye(7);let i;if(jr(t)){const a=cv(this),o=Dl(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?Tl(a):kl(a)}return sv(a,n),fv(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===ug&&(i=void 0),this.autoFreeze_&&$s(i,!0),n){const a=[],o=[];Ir("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Ye(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,l=>t(l,...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){jr(e)||Ye(8),Jr(e)&&(e=kE(e));const t=cv(this),r=Dl(e,void 0);return r[it].isManual_=!0,kl(t),r}finishDraft(e,t){const r=e&&e[it];(!r||!r.isManual_)&&Ye(9);const{scope_:n}=r;return sv(n,t),fv(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=Ir("Patches").applyPatches_;return Jr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Dl(e,t){const r=Jn(e)?Ir("MapSet").proxyMap_(e,t):Ja(e)?Ir("MapSet").proxySet_(e,t):jE(e,t);return(t?t.scope_:cg()).drafts_.push(r),r}function kE(e){return Jr(e)||Ye(10,e),dg(e)}function dg(e){if(!jr(e)||eo(e))return e;const t=e[it];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Il(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Il(e,!0);return aa(r,(i,a)=>{sg(r,i,dg(a))},n),t&&(t.finalized_=!1),r}var ME=new TE;ME.produce;var DE={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},vg=Ze({name:"legend",initialState:DE,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:ue()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ht(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:ue()},removeLegendPayload:{reducer(e,t){var r=ht(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ue()}}}),{setLegendSize:NE,setLegendSettings:$E,addLegendPayload:pg,replaceLegendPayload:hg,removeLegendPayload:mg}=vg.actions,RE=vg.reducer;function Nl(){return Nl=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},Nl.apply(null,arguments)}function vv(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 hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vv(Object(r),!0).forEach(function(n){LE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LE(e,t,r){return(t=zE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zE(e){var t=BE(e,"string");return typeof t=="symbol"?t:t+""}function BE(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 FE(e){return Array.isArray(e)&&At(e[0])&&At(e[1])?e.join(" ~ "):e}var qr={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},WE=e=>{var{separator:t=qr.separator,contentStyle:r,itemStyle:n,labelStyle:i=qr.labelStyle,payload:a,formatter:o,itemSorter:u,wrapperClassName:l,labelClassName:s,label:c,labelFormatter:f,accessibilityLayer:d=qr.accessibilityLayer}=e,v=()=>{if(a&&a.length){var P={padding:0,margin:0},O=(u?za(a,u):a).map((S,_)=>{if(S.type==="none")return null;var M=S.formatter||o||FE,{value:N,name:j}=S,k=N,C=j;if(M){var z=M(N,j,S,_,a);if(Array.isArray(z))[k,C]=z;else if(z!=null)k=z;else return null}var U=hn(hn({},qr.itemStyle),{},{color:S.color||qr.itemStyle.color},n);return b.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:U},At(C)?b.createElement("span",{className:"recharts-tooltip-item-name"},C):null,At(C)?b.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,b.createElement("span",{className:"recharts-tooltip-item-value"},k),b.createElement("span",{className:"recharts-tooltip-item-unit"},S.unit||""))});return b.createElement("ul",{className:"recharts-tooltip-item-list",style:P},O)}return null},p=hn(hn({},qr.contentStyle),r),m=hn({margin:0},i),h=!pe(c),y=h?c:"",g=J("recharts-default-tooltip",l),w=J("recharts-tooltip-label",s);h&&f&&a!==void 0&&a!==null&&(y=f(c,a));var x=d?{role:"status","aria-live":"assertive"}:{};return b.createElement("div",Nl({className:g,style:p},x),b.createElement("p",{className:w,style:m},b.isValidElement(y)?y:"".concat(y)),v())},mn="recharts-tooltip-wrapper",qE={visibility:"hidden"};function KE(e){var{coordinate:t,translateX:r,translateY:n}=e;return J(mn,{["".concat(mn,"-right")]:R(r)&&t&&R(t.x)&&r>=t.x,["".concat(mn,"-left")]:R(r)&&t&&R(t.x)&&r<t.x,["".concat(mn,"-bottom")]:R(n)&&t&&R(t.y)&&n>=t.y,["".concat(mn,"-top")]:R(n)&&t&&R(t.y)&&n<t.y})}function pv(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:u,viewBox:l,viewBoxDimension:s}=e;if(a&&R(a[n]))return a[n];var c=r[n]-u-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?c:f;var d=l[n];if(d==null)return 0;if(o[n]){var v=c,p=d;return v<p?Math.max(f,d):Math.max(c,d)}if(s==null)return 0;var m=f+u,h=d+s;return m>h?Math.max(c,d):Math.max(f,d)}function UE(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 VE(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:u,useTranslate3d:l,viewBox:s}=e,c,f,d;return u.height>0&&u.width>0&&r?(f=pv({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:o,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),d=pv({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:o,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),c=UE({translateX:f,translateY:d,useTranslate3d:l})):c=qE,{cssProperties:c,cssClasses:KE({translateX:f,translateY:d,coordinate:r})}}function hv(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?hv(Object(r),!0).forEach(function(n){$l(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $l(e,t,r){return(t=HE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HE(e){var t=GE(e,"string");return typeof t=="symbol"?t:t+""}function GE(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 YE extends E.PureComponent{constructor(){super(...arguments),$l(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),$l(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:l,offset:s,position:c,reverseDirection:f,useTranslate3d:d,viewBox:v,wrapperStyle:p,lastBoundingBox:m,innerRef:h,hasPortalFromProps:y}=this.props,g=typeof s=="number"?s:s.x,w=typeof s=="number"?s:s.y,{cssClasses:x,cssProperties:P}=VE({allowEscapeViewBox:r,coordinate:o,offsetLeft:g,offsetTop:w,position:c,reverseDirection:f,tooltipBox:{height:m.height,width:m.width},useTranslate3d:d,viewBox:v}),O=y?{}:_i(_i({transition:l&&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}),S=_i(_i({},O),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},p);return b.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:x,style:S,ref:h},a)}}var yg=()=>{var e;return(e=L(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Rl(){return Rl=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},Rl.apply(null,arguments)}function mv(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 yv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mv(Object(r),!0).forEach(function(n){XE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XE(e,t,r){return(t=ZE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZE(e){var t=QE(e,"string");return typeof t=="symbol"?t:t+""}function QE(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 gv={curveBasisClosed:Nx,curveBasisOpen:$x,curveBasis:Dx,curveBumpX:wx,curveBumpY:xx,curveLinearClosed:Rx,curveLinear:Ra,curveMonotoneX:Lx,curveMonotoneY:zx,curveNatural:Bx,curveStep:Fx,curveStepAfter:qx,curveStepBefore:Wx},la=e=>V(e.x)&&V(e.y),bv=e=>e.base!=null&&la(e.base)&&la(e),yn=e=>e.x,gn=e=>e.y,JE=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Kn(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=gv["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return gv[r]||Ra},wv={connectNulls:!1,type:"linear"},eS=e=>{var{type:t=wv.type,points:r=[],baseLine:n,layout:i,connectNulls:a=wv.connectNulls}=e,o=JE(t,i),u=a?r.filter(la):r;if(Array.isArray(n)){var l,s=r.map((p,m)=>yv(yv({},p),{},{base:n[m]}));i==="vertical"?l=mi().y(gn).x1(yn).x0(p=>p.base.x):l=mi().x(yn).y1(gn).y0(p=>p.base.y);var c=l.defined(bv).curve(o),f=a?s.filter(bv):s;return c(f)}var d;i==="vertical"&&R(n)?d=mi().y(gn).x1(yn).x0(n):R(n)?d=mi().x(yn).y1(gn).y0(n):d=Rm().x(yn).y(gn);var v=d.defined(la).curve(o);return v(u)},to=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=Lr();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?eS(o):n;return b.createElement("path",Rl({},st(e),Jm(e),{className:J("recharts-curve",t),d:u===null?void 0:u,ref:i}))},tS=["x","y","top","left","width","height","className"];function Ll(){return Ll=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},Ll.apply(null,arguments)}function xv(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 rS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xv(Object(r),!0).forEach(function(n){nS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nS(e,t,r){return(t=iS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iS(e){var t=aS(e,"string");return typeof t=="symbol"?t:t+""}function aS(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 oS(e,t){if(e==null)return{};var r,n,i=uS(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 uS(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 lS=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),sS=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,l=oS(e,tS),s=rS({x:t,y:r,top:n,left:i,width:a,height:o},l);return!R(t)||!R(r)||!R(a)||!R(o)||!R(n)||!R(i)?null:b.createElement("path",Ll({},Ve(s),{className:J("recharts-cross",u),d:lS(t,r,a,o,n,i)}))};function cS(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 Ov(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 Pv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ov(Object(r),!0).forEach(function(n){fS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ov(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fS(e,t,r){return(t=dS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dS(e){var t=vS(e,"string");return typeof t=="symbol"?t:t+""}function vS(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 pS=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),gg=(e,t,r)=>e.map(n=>"".concat(pS(n)," ").concat(t,"ms ").concat(r)).join(","),hS=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),$n=(e,t)=>Object.keys(t).reduce((r,n)=>Pv(Pv({},r),{},{[n]:e(n,t[n])}),{});function Ev(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 xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ev(Object(r),!0).forEach(function(n){mS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ev(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mS(e,t,r){return(t=yS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yS(e){var t=gS(e,"string");return typeof t=="symbol"?t:t+""}function gS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sa=(e,t,r)=>e+(t-e)*r,zl=e=>{var{from:t,to:r}=e;return t!==r},bg=(e,t,r)=>{var n=$n((i,a)=>{if(zl(a)){var[o,u]=e(a.from,a.to,a.velocity);return xe(xe({},a),{},{from:o,velocity:u})}return a},t);return r<1?$n((i,a)=>zl(a)&&n[i]!=null?xe(xe({},a),{},{velocity:sa(a.velocity,n[i].velocity,r),from:sa(a.from,n[i].from,r)}):a,t):bg(e,n,r-1)};function bS(e,t,r,n,i,a){var o,u=n.reduce((d,v)=>xe(xe({},d),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>$n((d,v)=>v.from,u),s=()=>!Object.values(u).filter(zl).length,c=null,f=d=>{o||(o=d);var v=d-o,p=v/r.dt;u=bg(r,u,p),i(xe(xe(xe({},e),t),l())),o=d,s()||(c=a.setTimeout(f))};return()=>(c=a.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function wS(e,t,r,n,i,a,o){var u=null,l=i.reduce((f,d)=>{var v=e[d],p=t[d];return v==null||p==null?f:xe(xe({},f),{},{[d]:[v,p]})},{}),s,c=f=>{s||(s=f);var d=(f-s)/n,v=$n((m,h)=>sa(...h,r(d)),l);if(a(xe(xe(xe({},e),t),v)),d<1)u=o.setTimeout(c);else{var p=$n((m,h)=>sa(...h,r(1)),l);a(xe(xe(xe({},e),t),p))}};return()=>(u=o.setTimeout(c),()=>{var f;(f=u)===null||f===void 0||f()})}const xS=(e,t,r,n,i,a)=>{var o=hS(e,t);return r==null?()=>(i(xe(xe({},e),t)),()=>{}):r.isStepper===!0?bS(e,t,r,o,i,a):wS(e,t,r,n,o,i,a)};var ca=1e-4,wg=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],xg=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Sv=(e,t)=>r=>{var n=wg(e,t);return xg(n,r)},OS=(e,t)=>r=>{var n=wg(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return xg(i,r)},PS=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]]},ES=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=PS(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},SS=(e,t,r,n)=>{var i=Sv(e,r),a=Sv(t,n),o=OS(e,r),u=s=>s>1?1:s<0?0:s,l=s=>{for(var c=s>1?1:s,f=c,d=0;d<8;++d){var v=i(f)-c,p=o(f);if(Math.abs(v-c)<ca||p<ca)return a(f);f=u(f-v/p)}return a(f)};return l.isStepper=!1,l},Av=function(){return SS(...ES(...arguments))},AS=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,l)=>{var s=-(o-u)*r,c=l*n,f=l+(s-c)*i/1e3,d=l*i/1e3+o;return Math.abs(d-u)<ca&&Math.abs(f)<ca?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},_S=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Av(e);case"spring":return AS();default:if(e.split("(")[0]==="cubic-bezier")return Av(e)}return typeof e=="function"?e:null};function CS(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[l,...s]=u;if(typeof l=="number"){i=e.setTimeout(a.bind(null,s),l);return}a(l),i=e.setTimeout(a.bind(null,s));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class jS{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function IS(){return CS(new jS)}var TS=E.createContext(IS);function kS(e,t){var r=E.useContext(TS);return E.useMemo(()=>t??r(e),[e,t,r])}var MS=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),ei={isSsr:MS()},DS={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},_v={t:0},Nu={t:1};function ti(e){var t=$e(e,DS),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:l,children:s}=t,c=r==="auto"?!ei.isSsr:r,f=kS(t.animationId,t.animationManager),[d,v]=E.useState(c?_v:Nu),p=E.useRef(null);return E.useEffect(()=>{c||v(Nu)},[c]),E.useEffect(()=>{if(!c||!n)return Rr;var m=xS(_v,Nu,_S(a),i,v,f.getTimeoutController()),h=()=>{p.current=m()};return f.start([l,o,h,i,u]),()=>{f.stop(),p.current&&p.current(),u()}},[c,n,i,a,o,l,u,f]),s(d.t)}function ri(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=E.useRef(Cn(t)),n=E.useRef(e);return n.current!==e&&(r.current=Cn(t),n.current=e),r.current}var NS=["radius"],$S=["radius"],Cv,jv,Iv,Tv,kv,Mv,Dv,Nv,$v,Rv;function Lv(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 zv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lv(Object(r),!0).forEach(function(n){RS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RS(e,t,r){return(t=LS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LS(e){var t=zS(e,"string");return typeof t=="symbol"?t:t+""}function zS(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 fa(){return fa=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},fa.apply(null,arguments)}function Bv(e,t){if(e==null)return{};var r,n,i=BS(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 BS(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 wt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Fv=(e,t,r,n,i)=>{var a=er(r),o=er(n),u=Math.min(Math.abs(a)/2,Math.abs(o)/2),l=o>=0?1:-1,s=a>=0?1:-1,c=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,p=4;v<p;v++){var m,h=(m=i[v])!==null&&m!==void 0?m:0;d[v]=h>u?u:h}f=fe(Cv||(Cv=wt(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=fe(jv||(jv=wt(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+s*d[0],t)),f+=fe(Iv||(Iv=wt(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(f+=fe(Tv||(Tv=wt(["A ",",",",0,0,",`,
|
|
76
|
+
`,",",""])),d[1],d[1],c,e+r,t+l*d[1])),f+=fe(kv||(kv=wt(["L ",",",""])),e+r,t+n-l*d[2]),d[2]>0&&(f+=fe(Mv||(Mv=wt(["A ",",",",0,0,",`,
|
|
77
|
+
`,",",""])),d[2],d[2],c,e+r-s*d[2],t+n)),f+=fe(Dv||(Dv=wt(["L ",",",""])),e+s*d[3],t+n),d[3]>0&&(f+=fe(Nv||(Nv=wt(["A ",",",",0,0,",`,
|
|
78
|
+
`,",",""])),d[3],d[3],c,e,t+n-l*d[3])),f+="Z"}else if(u>0&&i===+i&&i>0){var y=Math.min(u,i);f=fe($v||($v=wt(["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+l*y,y,y,c,e+s*y,t,e+r-s*y,t,y,y,c,e+r,t+l*y,e+r,t+n-l*y,y,y,c,e+r-s*y,t+n,e+s*y,t+n,y,y,c,e,t+n-l*y)}else f=fe(Rv||(Rv=wt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},Wv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ls=e=>{var t=$e(e,Wv),r=E.useRef(null),[n,i]=E.useState(-1);E.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:l,radius:s,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:v,isAnimationActive:p,isUpdateAnimationActive:m}=t,h=E.useRef(u),y=E.useRef(l),g=E.useRef(a),w=E.useRef(o),x=E.useMemo(()=>({x:a,y:o,width:u,height:l,radius:s}),[a,o,u,l,s]),P=ri(x,"rectangle-");if(a!==+a||o!==+o||u!==+u||l!==+l||u===0||l===0)return null;var O=J("recharts-rectangle",c);if(!m){var S=Ve(t),{radius:_}=S,M=Bv(S,NS);return b.createElement("path",fa({},M,{x:er(a),y:er(o),width:er(u),height:er(l),radius:typeof s=="number"?s:void 0,className:O,d:Fv(a,o,u,l,s)}))}var N=h.current,j=y.current,k=g.current,C=w.current,z="0px ".concat(n===-1?1:n,"px"),U="".concat(n,"px 0px"),W=gg(["strokeDasharray"],d,typeof f=="string"?f:Wv.animationEasing);return b.createElement(ti,{animationId:P,key:P,canBegin:n>0,duration:d,easing:f,isActive:m,begin:v},B=>{var H=me(N,u,B),q=me(j,l,B),be=me(k,a,B),he=me(C,o,B);r.current&&(h.current=H,y.current=q,g.current=be,w.current=he);var ke;p?B>0?ke={transition:W,strokeDasharray:U}:ke={strokeDasharray:z}:ke={strokeDasharray:U};var Qe=Ve(t),{radius:Re}=Qe,Ct=Bv(Qe,$S);return b.createElement("path",fa({},Ct,{radius:typeof s=="number"?s:void 0,className:O,d:Fv(be,he,H,q,s),ref:r,style:zv(zv({},ke),t.style)}))})};function qv(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 Kv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qv(Object(r),!0).forEach(function(n){FS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FS(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=qS(e,"string");return typeof t=="symbol"?t:t+""}function qS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var da=Math.PI/180,KS=e=>e*180/Math.PI,ye=(e,t,r,n)=>({x:e+Math.cos(-da*n)*r,y:t+Math.sin(-da*n)*r}),Og=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},US=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},VS=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=US({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,l=Math.acos(u);return n>a&&(l=2*Math.PI-l),{radius:o,angle:KS(l),angleInRadian:l}},HS=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}},GS=(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},YS=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=VS({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:l,endAngle:s}=HS(t),c=a,f;if(l<=s){for(;c>s;)c-=360;for(;c<l;)c+=360;f=c>=l&&c<=s}else{for(;c>l;)c-=360;for(;c<s;)c+=360;f=c>=s&&c<=l}return f?Kv(Kv({},t),{},{radius:i,angle:GS(c,t)}):null};function Pg(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=ye(t,r,n,i),u=ye(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}var Uv,Vv,Hv,Gv,Yv,Xv,Zv;function Bl(){return Bl=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},Bl.apply(null,arguments)}function gr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var XS=(e,t)=>{var r=Ce(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Ci=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:u,cornerIsExternal:l}=e,s=u*(o?1:-1)+n,c=Math.asin(u/s)/da,f=l?i:i+a*c,d=ye(t,r,s,f),v=ye(t,r,n,f),p=l?i-a*c:i,m=ye(t,r,s*Math.cos(c*da),p);return{center:d,circleTangency:v,lineTangency:m,theta:c}},Eg=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,u=XS(a,o),l=a+u,s=ye(t,r,i,a),c=ye(t,r,i,l),f=fe(Uv||(Uv=gr(["M ",",",`
|
|
86
|
+
A `,",",`,0,
|
|
87
|
+
`,",",`,
|
|
88
|
+
`,",",`
|
|
89
|
+
`])),s.x,s.y,i,i,+(Math.abs(u)>180),+(a>l),c.x,c.y);if(n>0){var d=ye(t,r,n,a),v=ye(t,r,n,l);f+=fe(Vv||(Vv=gr(["L ",",",`
|
|
90
|
+
A `,",",`,0,
|
|
91
|
+
`,",",`,
|
|
92
|
+
`,","," Z"])),v.x,v.y,n,n,+(Math.abs(u)>180),+(a<=l),d.x,d.y)}else f+=fe(Hv||(Hv=gr(["L ",","," Z"])),t,r);return f},ZS=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:u,startAngle:l,endAngle:s}=e,c=Ce(s-l),{circleTangency:f,lineTangency:d,theta:v}=Ci({cx:t,cy:r,radius:i,angle:l,sign:c,cornerRadius:a,cornerIsExternal:u}),{circleTangency:p,lineTangency:m,theta:h}=Ci({cx:t,cy:r,radius:i,angle:s,sign:-c,cornerRadius:a,cornerIsExternal:u}),y=u?Math.abs(l-s):Math.abs(l-s)-v-h;if(y<0)return o?fe(Gv||(Gv=gr(["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):Eg({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:s});var g=fe(Yv||(Yv=gr(["M ",",",`
|
|
96
|
+
A`,",",",0,0,",",",",",`
|
|
97
|
+
A`,",",",0,",",",",",",",`
|
|
98
|
+
A`,",",",0,0,",",",",",`
|
|
99
|
+
`])),d.x,d.y,a,a,+(c<0),f.x,f.y,i,i,+(y>180),+(c<0),p.x,p.y,a,a,+(c<0),m.x,m.y);if(n>0){var{circleTangency:w,lineTangency:x,theta:P}=Ci({cx:t,cy:r,radius:n,angle:l,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:S,theta:_}=Ci({cx:t,cy:r,radius:n,angle:s,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),M=u?Math.abs(l-s):Math.abs(l-s)-P-_;if(M<0&&a===0)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=fe(Xv||(Xv=gr(["L",",",`
|
|
100
|
+
A`,",",",0,0,",",",",",`
|
|
101
|
+
A`,",",",0,",",",",",",",`
|
|
102
|
+
A`,",",",0,0,",",",",","Z"])),S.x,S.y,a,a,+(c<0),O.x,O.y,n,n,+(M>180),+(c>0),w.x,w.y,a,a,+(c<0),x.x,x.y)}else g+=fe(Zv||(Zv=gr(["L",",","Z"])),t,r);return g},QS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Sg=e=>{var t=$e(e,QS),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c,className:f}=t;if(a<i||s===c)return null;var d=J("recharts-sector",f),v=a-i,p=Fe(o,v,0,!0),m;return p>0&&Math.abs(s-c)<360?m=ZS({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(p,v/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c}):m=Eg({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:c}),b.createElement("path",Bl({},Ve(t),{className:d,d:m}))};function JS(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(Qm(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:u}=t,l=ye(n,i,a,u),s=ye(n,i,o,u);return[{x:l.x,y:l.y},{x:s.x,y:s.y}]}return Pg(t)}}var $u={},Ru={},Lu={},Qv;function eA(){return Qv||(Qv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fy();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r}(Lu)),Lu}var Jv;function tA(){return Jv||(Jv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eA();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}(Ru)),Ru}var ep;function rA(){return ep||(ep=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dy(),r=tA();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),l=new Array(u);for(let s=0;s<u;s++)l[s]=i,i+=o;return l}e.range=n}($u)),$u}var zu,tp;function nA(){return tp||(tp=1,zu=rA().range),zu}var iA=nA();const Ag=Bt(iA);function tr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function aA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zs(e){let t,r,n;e.length!==2?(t=tr,r=(u,l)=>tr(e(u),l),n=(u,l)=>e(u)-l):(t=e===tr||e===aA?e:oA,r=e,n=e);function i(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;r(u[f],l)<0?s=f+1:c=f}while(s<c)}return s}function a(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;r(u[f],l)<=0?s=f+1:c=f}while(s<c)}return s}function o(u,l,s=0,c=u.length){const f=i(u,l,s,c-1);return f>s&&n(u[f-1],l)>-n(u[f],l)?f-1:f}return{left:i,center:o,right:a}}function oA(){return 0}function _g(e){return e===null?NaN:+e}function*uA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const lA=zs(tr),ni=lA.right;zs(_g).center;class rp extends Map{constructor(t,r=fA){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(np(this,t))}has(t){return super.has(np(this,t))}set(t,r){return super.set(sA(this,t),r)}delete(t){return super.delete(cA(this,t))}}function np({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function sA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function cA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function fA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function dA(e=tr){if(e===tr)return Cg;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 Cg(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const vA=Math.sqrt(50),pA=Math.sqrt(10),hA=Math.sqrt(2);function va(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>=vA?10:a>=pA?5:a>=hA?2:1;let u,l,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),l=Math.round(t*s),u/s<e&&++u,l/s>t&&--l,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),l=Math.round(t/s),u*s<e&&++u,l*s>t&&--l),l<u&&.5<=r&&r<2?va(e,t,r*2):[u,l,s]}function Fl(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?va(t,e,r):va(e,t,r);if(!(a>=i))return[];const u=a-i+1,l=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)l[s]=(a-s)/-o;else for(let s=0;s<u;++s)l[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)l[s]=(i+s)/-o;else for(let s=0;s<u;++s)l[s]=(i+s)*o;return l}function Wl(e,t,r){return t=+t,e=+e,r=+r,va(e,t,r)[2]}function ql(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Wl(t,e,r):Wl(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function ip(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ap(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function jg(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?Cg:dA(i);n>r;){if(n-r>600){const l=n-r+1,s=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),v=Math.max(r,Math.floor(t-s*f/l+d)),p=Math.min(n,Math.floor(t+(l-s)*f/l+d));jg(e,t,v,p,i)}const a=e[t];let o=r,u=n;for(bn(e,r,t),i(e[n],a)>0&&bn(e,r,n);o<u;){for(bn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?bn(e,r,u):(++u,bn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function bn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function mA(e,t,r){if(e=Float64Array.from(uA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ap(e);if(t>=1)return ip(e);var n,i=(n-1)*t,a=Math.floor(i),o=ip(jg(e,a).subarray(0,a+1)),u=ap(e.subarray(a+1));return o+(u-o)*(i-a)}}function yA(e,t,r=_g){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 gA(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 dt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Kt(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 Kl=Symbol("implicit");function Bs(){var e=new rp,t=[],r=[],n=Kl;function i(a){let o=e.get(a);if(o===void 0){if(n!==Kl)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 rp;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 Bs(t,r).unknown(n)},dt.apply(i,arguments),i}function Fs(){var e=Bs().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,l=0,s=0,c=.5;delete e.unknown;function f(){var d=t().length,v=i<n,p=v?i:n,m=v?n:i;a=(m-p)/Math.max(1,d-l+s*2),u&&(a=Math.floor(a)),p+=(m-p-a*(d-l))*c,o=a*(1-l),u&&(p=Math.round(p),o=Math.round(o));var h=gA(d).map(function(y){return p+a*y});return r(v?h.reverse():h)}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?(l=Math.min(1,s=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(s=+d,f()):s},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Fs(t(),[n,i]).round(u).paddingInner(l).paddingOuter(s).align(c)},dt.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 bA(){return Ig(Fs.apply(null,arguments).paddingInner(1))}function Ws(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Tg(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ii(){}var Rn=.7,pa=1/Rn,Xr="\\s*([+-]?\\d+)\\s*",Ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",St="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wA=/^#([0-9a-f]{3,8})$/,xA=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),OA=new RegExp(`^rgb\\(${St},${St},${St}\\)$`),PA=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${Ln}\\)$`),EA=new RegExp(`^rgba\\(${St},${St},${St},${Ln}\\)$`),SA=new RegExp(`^hsl\\(${Ln},${St},${St}\\)$`),AA=new RegExp(`^hsla\\(${Ln},${St},${St},${Ln}\\)$`),op={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};Ws(ii,zn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:up,formatHex:up,formatHex8:_A,formatHsl:CA,formatRgb:lp,toString:lp});function up(){return this.rgb().formatHex()}function _A(){return this.rgb().formatHex8()}function CA(){return kg(this).formatHsl()}function lp(){return this.rgb().formatRgb()}function zn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=wA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?sp(t):r===3?new Xe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ji(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ji(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=xA.exec(e))?new Xe(t[1],t[2],t[3],1):(t=OA.exec(e))?new Xe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=PA.exec(e))?ji(t[1],t[2],t[3],t[4]):(t=EA.exec(e))?ji(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=SA.exec(e))?dp(t[1],t[2]/100,t[3]/100,1):(t=AA.exec(e))?dp(t[1],t[2]/100,t[3]/100,t[4]):op.hasOwnProperty(e)?sp(op[e]):e==="transparent"?new Xe(NaN,NaN,NaN,0):null}function sp(e){return new Xe(e>>16&255,e>>8&255,e&255,1)}function ji(e,t,r,n){return n<=0&&(e=t=r=NaN),new Xe(e,t,r,n)}function jA(e){return e instanceof ii||(e=zn(e)),e?(e=e.rgb(),new Xe(e.r,e.g,e.b,e.opacity)):new Xe}function Ul(e,t,r,n){return arguments.length===1?jA(e):new Xe(e,t,r,n??1)}function Xe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ws(Xe,Ul,Tg(ii,{brighter(e){return e=e==null?pa:Math.pow(pa,e),new Xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rn:Math.pow(Rn,e),new Xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xe(Er(this.r),Er(this.g),Er(this.b),ha(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:cp,formatHex:cp,formatHex8:IA,formatRgb:fp,toString:fp}));function cp(){return`#${br(this.r)}${br(this.g)}${br(this.b)}`}function IA(){return`#${br(this.r)}${br(this.g)}${br(this.b)}${br((isNaN(this.opacity)?1:this.opacity)*255)}`}function fp(){const e=ha(this.opacity);return`${e===1?"rgb(":"rgba("}${Er(this.r)}, ${Er(this.g)}, ${Er(this.b)}${e===1?")":`, ${e})`}`}function ha(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Er(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function br(e){return e=Er(e),(e<16?"0":"")+e.toString(16)}function dp(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new pt(e,t,r,n)}function kg(e){if(e instanceof pt)return new pt(e.h,e.s,e.l,e.opacity);if(e instanceof ii||(e=zn(e)),!e)return new pt;if(e instanceof pt)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,l=(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/=l<.5?a+i:2-a-i,o*=60):u=l>0&&l<1?0:o,new pt(o,u,l,e.opacity)}function TA(e,t,r,n){return arguments.length===1?kg(e):new pt(e,t,r,n??1)}function pt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ws(pt,TA,Tg(ii,{brighter(e){return e=e==null?pa:Math.pow(pa,e),new pt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rn:Math.pow(Rn,e),new pt(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 Xe(Bu(e>=240?e-240:e+120,i,n),Bu(e,i,n),Bu(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new pt(vp(this.h),Ii(this.s),Ii(this.l),ha(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=ha(this.opacity);return`${e===1?"hsl(":"hsla("}${vp(this.h)}, ${Ii(this.s)*100}%, ${Ii(this.l)*100}%${e===1?")":`, ${e})`}`}}));function vp(e){return e=(e||0)%360,e<0?e+360:e}function Ii(e){return Math.max(0,Math.min(1,e||0))}function Bu(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 qs=e=>()=>e;function kA(e,t){return function(r){return e+r*t}}function MA(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 DA(e){return(e=+e)==1?Mg:function(t,r){return r-t?MA(t,r,e):qs(isNaN(t)?r:t)}}function Mg(e,t){var r=t-e;return r?kA(e,r):qs(isNaN(e)?t:e)}const pp=function e(t){var r=DA(t);function n(i,a){var o=r((i=Ul(i)).r,(a=Ul(a)).r),u=r(i.g,a.g),l=r(i.b,a.b),s=Mg(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=l(c),i.opacity=s(c),i+""}}return n.gamma=e,n}(1);function NA(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 $A(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function RA(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]=an(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 LA(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ma(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function zA(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]=an(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Vl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fu=new RegExp(Vl.source,"g");function BA(e){return function(){return e}}function FA(e){return function(t){return e(t)+""}}function WA(e,t){var r=Vl.lastIndex=Fu.lastIndex=0,n,i,a,o=-1,u=[],l=[];for(e=e+"",t=t+"";(n=Vl.exec(e))&&(i=Fu.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,l.push({i:o,x:ma(n,i)})),r=Fu.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?l[0]?FA(l[0].x):BA(t):(t=l.length,function(s){for(var c=0,f;c<t;++c)u[(f=l[c]).i]=f.x(s);return u.join("")})}function an(e,t){var r=typeof t,n;return t==null||r==="boolean"?qs(t):(r==="number"?ma:r==="string"?(n=zn(t))?(t=n,pp):WA:t instanceof zn?pp:t instanceof Date?LA:$A(t)?NA:Array.isArray(t)?RA:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?zA:ma)(e,t)}function Ks(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function qA(e,t){t===void 0&&(t=e,e=an);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 KA(e){return function(){return e}}function ya(e){return+e}var hp=[0,1];function Ue(e){return e}function Hl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:KA(isNaN(t)?NaN:.5)}function UA(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function VA(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Hl(i,n),a=r(o,a)):(n=Hl(n,i),a=r(a,o)),function(u){return a(n(u))}}function HA(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]=Hl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var l=ni(e,u,1,n)-1;return a[l](i[l](u))}}function ai(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ro(){var e=hp,t=hp,r=an,n,i,a,o=Ue,u,l,s;function c(){var d=Math.min(e.length,t.length);return o!==Ue&&(o=UA(e[0],e[d-1])),u=d>2?HA:VA,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((s||(s=u(t,e.map(n),ma)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,ya),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Ks,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ue,c()):o!==Ue},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,v){return n=d,i=v,c()}}function Us(){return ro()(Ue,Ue)}function GA(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ga(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 en(e){return e=ga(Math.abs(e)),e?e[1]:NaN}function YA(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),a.push(r.substring(i-=u,i+u)),!((l+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function XA(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var ZA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bn(e){if(!(t=ZA.exec(e)))throw new Error("invalid format: "+e);var t;return new Vs({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]})}Bn.prototype=Vs.prototype;function Vs(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+""}Vs.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 QA(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 Dg;function JA(e,t){var r=ga(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Dg=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")+ga(e,Math.max(0,t+a-1))[0]}function mp(e,t){var r=ga(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 yp={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:GA,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 mp(e*100,t)},r:mp,s:JA,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function gp(e){return e}var bp=Array.prototype.map,wp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function e_(e){var t=e.grouping===void 0||e.thousands===void 0?gp:YA(bp.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?gp:XA(bp.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f){f=Bn(f);var d=f.fill,v=f.align,p=f.sign,m=f.symbol,h=f.zero,y=f.width,g=f.comma,w=f.precision,x=f.trim,P=f.type;P==="n"?(g=!0,P="g"):yp[P]||(w===void 0&&(w=12),x=!0,P="g"),(h||d==="0"&&v==="=")&&(h=!0,d="0",v="=");var O=m==="$"?r:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",S=m==="$"?n:/[%p]/.test(P)?o:"",_=yp[P],M=/[defgprs%]/.test(P);w=w===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function N(j){var k=O,C=S,z,U,W;if(P==="c")C=_(j)+C,j="";else{j=+j;var B=j<0||1/j<0;if(j=isNaN(j)?l:_(Math.abs(j),w),x&&(j=QA(j)),B&&+j==0&&p!=="+"&&(B=!1),k=(B?p==="("?p:u:p==="-"||p==="("?"":p)+k,C=(P==="s"?wp[8+Dg/3]:"")+C+(B&&p==="("?")":""),M){for(z=-1,U=j.length;++z<U;)if(W=j.charCodeAt(z),48>W||W>57){C=(W===46?i+j.slice(z+1):j.slice(z))+C,j=j.slice(0,z);break}}}g&&!h&&(j=t(j,1/0));var H=k.length+j.length+C.length,q=H<y?new Array(y-H+1).join(d):"";switch(g&&h&&(j=t(q+j,q.length?y-C.length:1/0),q=""),v){case"<":j=k+j+C+q;break;case"=":j=k+q+j+C;break;case"^":j=q.slice(0,H=q.length>>1)+k+j+C+q.slice(H);break;default:j=q+k+j+C;break}return a(j)}return N.toString=function(){return f+""},N}function c(f,d){var v=s((f=Bn(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(en(d)/3)))*3,m=Math.pow(10,-p),h=wp[8+p/3];return function(y){return v(m*y)+h}}return{format:s,formatPrefix:c}}var Ti,Hs,Ng;t_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function t_(e){return Ti=e_(e),Hs=Ti.format,Ng=Ti.formatPrefix,Ti}function r_(e){return Math.max(0,-en(Math.abs(e)))}function n_(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(en(t)/3)))*3-en(Math.abs(e)))}function i_(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,en(t)-en(e))+1}function $g(e,t,r,n){var i=ql(e,t,r),a;switch(n=Bn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=n_(i,o))&&(n.precision=a),Ng(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=i_(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=r_(i))&&(n.precision=a-(n.type==="%")*2);break}}return Hs(n)}function or(e){var t=e.domain;return e.ticks=function(r){var n=t();return Fl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return $g(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],l,s,c=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);c-- >0;){if(s=Wl(o,u,r),s===l)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function Rg(){var e=Us();return e.copy=function(){return ai(e,Rg())},dt.apply(e,arguments),or(e)}function Lg(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,ya),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Lg(e).unknown(t)},e=arguments.length?Array.from(e,ya):[0,1],or(r)}function zg(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 xp(e){return Math.log(e)}function Op(e){return Math.exp(e)}function a_(e){return-Math.log(-e)}function o_(e){return-Math.exp(-e)}function u_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function l_(e){return e===10?u_:e===Math.E?Math.exp:t=>Math.pow(e,t)}function s_(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 Pp(e){return(t,r)=>-e(-t,r)}function Gs(e){const t=e(xp,Op),r=t.domain;let n=10,i,a;function o(){return i=s_(n),a=l_(n),r()[0]<0?(i=Pp(i),a=Pp(a),e(a_,o_)):e(xp,Op),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 l=r();let s=l[0],c=l[l.length-1];const f=c<s;f&&([s,c]=[c,s]);let d=i(s),v=i(c),p,m;const h=u==null?10:+u;let y=[];if(!(n%1)&&v-d<h){if(d=Math.floor(d),v=Math.ceil(v),s>0){for(;d<=v;++d)for(p=1;p<n;++p)if(m=d<0?p/a(-d):p*a(d),!(m<s)){if(m>c)break;y.push(m)}}else for(;d<=v;++d)for(p=n-1;p>=1;--p)if(m=d>0?p/a(-d):p*a(d),!(m<s)){if(m>c)break;y.push(m)}y.length*2<h&&(y=Fl(s,c,h))}else y=Fl(d,v,Math.min(v-d,h)).map(a);return f?y.reverse():y},t.tickFormat=(u,l)=>{if(u==null&&(u=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Bn(l)).precision==null&&(l.trim=!0),l=Hs(l)),u===1/0)return l;const s=Math.max(1,n*u/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=s?l(c):""}},t.nice=()=>r(zg(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Bg(){const e=Gs(ro()).domain([1,10]);return e.copy=()=>ai(e,Bg()).base(e.base()),dt.apply(e,arguments),e}function Ep(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Sp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ys(e){var t=1,r=e(Ep(t),Sp(t));return r.constant=function(n){return arguments.length?e(Ep(t=+n),Sp(t)):t},or(r)}function Fg(){var e=Ys(ro());return e.copy=function(){return ai(e,Fg()).constant(e.constant())},dt.apply(e,arguments)}function Ap(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function c_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function f_(e){return e<0?-e*e:e*e}function Xs(e){var t=e(Ue,Ue),r=1;function n(){return r===1?e(Ue,Ue):r===.5?e(c_,f_):e(Ap(r),Ap(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},or(t)}function Zs(){var e=Xs(ro());return e.copy=function(){return ai(e,Zs()).exponent(e.exponent())},dt.apply(e,arguments),e}function d_(){return Zs.apply(null,arguments).exponent(.5)}function _p(e){return Math.sign(e)*e*e}function v_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Wg(){var e=Us(),t=[0,1],r=!1,n;function i(a){var o=v_(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(_p(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,ya)).map(_p)),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 Wg(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},dt.apply(i,arguments),or(i)}function qg(){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]=yA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[ni(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(tr),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 qg().domain(e).range(t).unknown(n)},dt.apply(a,arguments)}function Kg(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[ni(n,l,0,r)]:a}function u(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,u()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,u()):i.slice()},o.invertExtent=function(l){var s=i.indexOf(l);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Kg().domain([e,t]).range(i).unknown(a)},dt.apply(or(o),arguments)}function Ug(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ni(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 Ug().domain(e).range(t).unknown(r)},dt.apply(i,arguments)}const Wu=new Date,qu=new Date;function Pe(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 l=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return l;let s;do l.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return l},i.filter=a=>Pe(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)=>(Wu.setTime(+a),qu.setTime(+o),e(Wu),e(qu),Math.floor(r(Wu,qu))),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 ba=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ba.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ba);ba.range;const Tt=1e3,lt=Tt*60,kt=lt*60,$t=kt*24,Qs=$t*7,Cp=$t*30,Ku=$t*365,wr=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCSeconds());wr.range;const Js=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tt)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getMinutes());Js.range;const ec=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lt)},(e,t)=>(t-e)/lt,e=>e.getUTCMinutes());ec.range;const tc=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tt-e.getMinutes()*lt)},(e,t)=>{e.setTime(+e+t*kt)},(e,t)=>(t-e)/kt,e=>e.getHours());tc.range;const rc=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*kt)},(e,t)=>(t-e)/kt,e=>e.getUTCHours());rc.range;const nc=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lt)/$t,e=>e.getDate()-1);nc.range;const Vg=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/$t,e=>e.getUTCDate()-1);Vg.range;const Hg=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/$t,e=>Math.floor(e/$t));Hg.range;function zr(e){return Pe(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())*lt)/Qs)}const ic=zr(0),p_=zr(1),h_=zr(2),m_=zr(3),y_=zr(4),g_=zr(5),b_=zr(6);ic.range;p_.range;h_.range;m_.range;y_.range;g_.range;b_.range;function Br(e){return Pe(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)/Qs)}const ac=Br(0),w_=Br(1),x_=Br(2),O_=Br(3),P_=Br(4),E_=Br(5),S_=Br(6);ac.range;w_.range;x_.range;O_.range;P_.range;E_.range;S_.range;const oc=Pe(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());oc.range;const uc=Pe(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());uc.range;const no=Pe(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());no.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(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)});no.range;const io=Pe(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());io.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(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)});io.range;function Gg(e,t,r,n,i,a){const o=[[wr,1,Tt],[wr,5,5*Tt],[wr,15,15*Tt],[wr,30,30*Tt],[a,1,lt],[a,5,5*lt],[a,15,15*lt],[a,30,30*lt],[i,1,kt],[i,3,3*kt],[i,6,6*kt],[i,12,12*kt],[n,1,$t],[n,2,2*$t],[r,1,Qs],[t,1,Cp],[t,3,3*Cp],[e,1,Ku]];function u(s,c,f){const d=c<s;d&&([s,c]=[c,s]);const v=f&&typeof f.range=="function"?f:l(s,c,f),p=v?v.range(s,+c+1):[];return d?p.reverse():p}function l(s,c,f){const d=Math.abs(c-s)/f,v=zs(([,,h])=>h).right(o,d);if(v===o.length)return e.every(ql(s/Ku,c/Ku,f));if(v===0)return ba.every(Math.max(ql(s,c,f),1));const[p,m]=o[d/o[v-1][2]<o[v][2]/d?v-1:v];return p.every(m)}return[u,l]}const[A_,__]=Gg(io,uc,ac,Hg,rc,ec),[C_,j_]=Gg(no,oc,ic,nc,tc,Js);var Uu=new Date,Vu=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 l=[],s;if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return l;do l.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return l},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 Uu.setTime(+a),Vu.setTime(+o),e(Uu),e(Vu),Math.floor(r(Uu,Vu))},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 I_=1e3,lc=I_*60,T_=lc*60,sc=T_*24,Yg=sc*7;var cc=Ut(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lc)/sc,e=>e.getDate()-1);cc.range;function Fr(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())*lc)/Yg})}var Xg=Fr(0),wa=Fr(1),k_=Fr(2),M_=Fr(3),tn=Fr(4),D_=Fr(5),N_=Fr(6);Xg.range;wa.range;k_.range;M_.range;tn.range;D_.range;N_.range;var Tr=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()});Tr.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)})};Tr.range;var fc=Ut(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/sc},function(e){return e.getUTCDate()-1});fc.range;function Wr(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)/Yg})}var Zg=Wr(0),xa=Wr(1),$_=Wr(2),R_=Wr(3),rn=Wr(4),L_=Wr(5),z_=Wr(6);Zg.range;xa.range;$_.range;R_.range;rn.range;L_.range;z_.range;var kr=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()});kr.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)})};kr.range;function Hu(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 Gu(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 wn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function B_(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,l=e.shortMonths,s=xn(i),c=On(i),f=xn(a),d=On(a),v=xn(o),p=On(o),m=xn(u),h=On(u),y=xn(l),g=On(l),w={a:B,A:H,b:q,B:be,c:null,d:Dp,e:Dp,f:sC,g:bC,G:xC,H:oC,I:uC,j:lC,L:Qg,m:cC,M:fC,p:he,q:ke,Q:Rp,s:Lp,S:dC,u:vC,U:pC,V:hC,w:mC,W:yC,x:null,X:null,y:gC,Y:wC,Z:OC,"%":$p},x={a:Qe,A:Re,b:Ct,B:fr,c:null,d:Np,e:Np,f:AC,g:$C,G:LC,H:PC,I:EC,j:SC,L:eb,m:_C,M:CC,p:Le,q:pn,Q:Rp,s:Lp,S:jC,u:IC,U:TC,V:kC,w:MC,W:DC,x:null,X:null,y:NC,Y:RC,Z:zC,"%":$p},P={a:N,A:j,b:k,B:C,c:z,d:kp,e:kp,f:rC,g:Tp,G:Ip,H:Mp,I:Mp,j:Q_,L:tC,m:Z_,M:J_,p:M,q:X_,Q:iC,s:aC,S:eC,u:U_,U:V_,V:H_,w:K_,W:G_,x:U,X:W,y:Tp,Y:Ip,Z:Y_,"%":nC};w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),x.x=O(r,x),x.X=O(n,x),x.c=O(t,x);function O(I,K){return function(D){var T=[],we=-1,Z=0,Je=I.length,et,dr,Ef;for(D instanceof Date||(D=new Date(+D));++we<Je;)I.charCodeAt(we)===37&&(T.push(I.slice(Z,we)),(dr=jp[et=I.charAt(++we)])!=null?et=I.charAt(++we):dr=et==="e"?" ":"0",(Ef=K[et])&&(et=Ef(D,dr)),T.push(et),Z=we+1);return T.push(I.slice(Z,we)),T.join("")}}function S(I,K){return function(D){var T=wn(1900,void 0,1),we=_(T,I,D+="",0),Z,Je;if(we!=D.length)return null;if("Q"in T)return new Date(T.Q);if("s"in T)return new Date(T.s*1e3+("L"in T?T.L:0));if(K&&!("Z"in T)&&(T.Z=0),"p"in T&&(T.H=T.H%12+T.p*12),T.m===void 0&&(T.m="q"in T?T.q:0),"V"in T){if(T.V<1||T.V>53)return null;"w"in T||(T.w=1),"Z"in T?(Z=Gu(wn(T.y,0,1)),Je=Z.getUTCDay(),Z=Je>4||Je===0?xa.ceil(Z):xa(Z),Z=fc.offset(Z,(T.V-1)*7),T.y=Z.getUTCFullYear(),T.m=Z.getUTCMonth(),T.d=Z.getUTCDate()+(T.w+6)%7):(Z=Hu(wn(T.y,0,1)),Je=Z.getDay(),Z=Je>4||Je===0?wa.ceil(Z):wa(Z),Z=cc.offset(Z,(T.V-1)*7),T.y=Z.getFullYear(),T.m=Z.getMonth(),T.d=Z.getDate()+(T.w+6)%7)}else("W"in T||"U"in T)&&("w"in T||(T.w="u"in T?T.u%7:"W"in T?1:0),Je="Z"in T?Gu(wn(T.y,0,1)).getUTCDay():Hu(wn(T.y,0,1)).getDay(),T.m=0,T.d="W"in T?(T.w+6)%7+T.W*7-(Je+5)%7:T.w+T.U*7-(Je+6)%7);return"Z"in T?(T.H+=T.Z/100|0,T.M+=T.Z%100,Gu(T)):Hu(T)}}function _(I,K,D,T){for(var we=0,Z=K.length,Je=D.length,et,dr;we<Z;){if(T>=Je)return-1;if(et=K.charCodeAt(we++),et===37){if(et=K.charAt(we++),dr=P[et in jp?K.charAt(we++):et],!dr||(T=dr(I,D,T))<0)return-1}else if(et!=D.charCodeAt(T++))return-1}return T}function M(I,K,D){var T=s.exec(K.slice(D));return T?(I.p=c.get(T[0].toLowerCase()),D+T[0].length):-1}function N(I,K,D){var T=v.exec(K.slice(D));return T?(I.w=p.get(T[0].toLowerCase()),D+T[0].length):-1}function j(I,K,D){var T=f.exec(K.slice(D));return T?(I.w=d.get(T[0].toLowerCase()),D+T[0].length):-1}function k(I,K,D){var T=y.exec(K.slice(D));return T?(I.m=g.get(T[0].toLowerCase()),D+T[0].length):-1}function C(I,K,D){var T=m.exec(K.slice(D));return T?(I.m=h.get(T[0].toLowerCase()),D+T[0].length):-1}function z(I,K,D){return _(I,t,K,D)}function U(I,K,D){return _(I,r,K,D)}function W(I,K,D){return _(I,n,K,D)}function B(I){return o[I.getDay()]}function H(I){return a[I.getDay()]}function q(I){return l[I.getMonth()]}function be(I){return u[I.getMonth()]}function he(I){return i[+(I.getHours()>=12)]}function ke(I){return 1+~~(I.getMonth()/3)}function Qe(I){return o[I.getUTCDay()]}function Re(I){return a[I.getUTCDay()]}function Ct(I){return l[I.getUTCMonth()]}function fr(I){return u[I.getUTCMonth()]}function Le(I){return i[+(I.getUTCHours()>=12)]}function pn(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var K=O(I+="",w);return K.toString=function(){return I},K},parse:function(I){var K=S(I+="",!1);return K.toString=function(){return I},K},utcFormat:function(I){var K=O(I+="",x);return K.toString=function(){return I},K},utcParse:function(I){var K=S(I+="",!0);return K.toString=function(){return I},K}}}var jp={"-":"",_:" ",0:"0"},Ie=/^\s*\d+/,F_=/^%/,W_=/[\\^$*+?|[\]().{}]/g;function G(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 q_(e){return e.replace(W_,"\\$&")}function xn(e){return new RegExp("^(?:"+e.map(q_).join("|")+")","i")}function On(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function K_(e,t,r){var n=Ie.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function U_(e,t,r){var n=Ie.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function V_(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function H_(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function G_(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ip(e,t,r){var n=Ie.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Tp(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Y_(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 X_(e,t,r){var n=Ie.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Z_(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function kp(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Q_(e,t,r){var n=Ie.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Mp(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function J_(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function eC(e,t,r){var n=Ie.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function tC(e,t,r){var n=Ie.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function rC(e,t,r){var n=Ie.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nC(e,t,r){var n=F_.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function iC(e,t,r){var n=Ie.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function aC(e,t,r){var n=Ie.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Dp(e,t){return G(e.getDate(),t,2)}function oC(e,t){return G(e.getHours(),t,2)}function uC(e,t){return G(e.getHours()%12||12,t,2)}function lC(e,t){return G(1+cc.count(Tr(e),e),t,3)}function Qg(e,t){return G(e.getMilliseconds(),t,3)}function sC(e,t){return Qg(e,t)+"000"}function cC(e,t){return G(e.getMonth()+1,t,2)}function fC(e,t){return G(e.getMinutes(),t,2)}function dC(e,t){return G(e.getSeconds(),t,2)}function vC(e){var t=e.getDay();return t===0?7:t}function pC(e,t){return G(Xg.count(Tr(e)-1,e),t,2)}function Jg(e){var t=e.getDay();return t>=4||t===0?tn(e):tn.ceil(e)}function hC(e,t){return e=Jg(e),G(tn.count(Tr(e),e)+(Tr(e).getDay()===4),t,2)}function mC(e){return e.getDay()}function yC(e,t){return G(wa.count(Tr(e)-1,e),t,2)}function gC(e,t){return G(e.getFullYear()%100,t,2)}function bC(e,t){return e=Jg(e),G(e.getFullYear()%100,t,2)}function wC(e,t){return G(e.getFullYear()%1e4,t,4)}function xC(e,t){var r=e.getDay();return e=r>=4||r===0?tn(e):tn.ceil(e),G(e.getFullYear()%1e4,t,4)}function OC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+G(t/60|0,"0",2)+G(t%60,"0",2)}function Np(e,t){return G(e.getUTCDate(),t,2)}function PC(e,t){return G(e.getUTCHours(),t,2)}function EC(e,t){return G(e.getUTCHours()%12||12,t,2)}function SC(e,t){return G(1+fc.count(kr(e),e),t,3)}function eb(e,t){return G(e.getUTCMilliseconds(),t,3)}function AC(e,t){return eb(e,t)+"000"}function _C(e,t){return G(e.getUTCMonth()+1,t,2)}function CC(e,t){return G(e.getUTCMinutes(),t,2)}function jC(e,t){return G(e.getUTCSeconds(),t,2)}function IC(e){var t=e.getUTCDay();return t===0?7:t}function TC(e,t){return G(Zg.count(kr(e)-1,e),t,2)}function tb(e){var t=e.getUTCDay();return t>=4||t===0?rn(e):rn.ceil(e)}function kC(e,t){return e=tb(e),G(rn.count(kr(e),e)+(kr(e).getUTCDay()===4),t,2)}function MC(e){return e.getUTCDay()}function DC(e,t){return G(xa.count(kr(e)-1,e),t,2)}function NC(e,t){return G(e.getUTCFullYear()%100,t,2)}function $C(e,t){return e=tb(e),G(e.getUTCFullYear()%100,t,2)}function RC(e,t){return G(e.getUTCFullYear()%1e4,t,4)}function LC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?rn(e):rn.ceil(e),G(e.getUTCFullYear()%1e4,t,4)}function zC(){return"+0000"}function $p(){return"%"}function Rp(e){return+e}function Lp(e){return Math.floor(+e/1e3)}var Kr,rb,nb;BC({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 BC(e){return Kr=B_(e),rb=Kr.format,Kr.parse,nb=Kr.utcFormat,Kr.utcParse,Kr}function FC(e){return new Date(e)}function WC(e){return e instanceof Date?+e:+new Date(+e)}function dc(e,t,r,n,i,a,o,u,l,s){var c=Us(),f=c.invert,d=c.domain,v=s(".%L"),p=s(":%S"),m=s("%I:%M"),h=s("%I %p"),y=s("%a %d"),g=s("%b %d"),w=s("%B"),x=s("%Y");function P(O){return(l(O)<O?v:u(O)<O?p:o(O)<O?m:a(O)<O?h:n(O)<O?i(O)<O?y:g:r(O)<O?w:x)(O)}return c.invert=function(O){return new Date(f(O))},c.domain=function(O){return arguments.length?d(Array.from(O,WC)):d().map(FC)},c.ticks=function(O){var S=d();return e(S[0],S[S.length-1],O??10)},c.tickFormat=function(O,S){return S==null?P:s(S)},c.nice=function(O){var S=d();return(!O||typeof O.range!="function")&&(O=t(S[0],S[S.length-1],O??10)),O?d(zg(S,O)):c},c.copy=function(){return ai(c,dc(e,t,r,n,i,a,o,u,l,s))},c}function qC(){return dt.apply(dc(C_,j_,no,oc,ic,nc,tc,Js,wr,rb).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function KC(){return dt.apply(dc(A_,__,io,uc,ac,Vg,rc,ec,wr,nb).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ao(){var e=0,t=1,r,n,i,a,o=Ue,u=!1,l;function s(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,u?Math.max(0,Math.min(1,f)):f))}s.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(f){return arguments.length?(u=!!f,s):u},s.interpolator=function(f){return arguments.length?(o=f,s):o};function c(f){return function(d){var v,p;return arguments.length?([v,p]=d,o=f(v,p),s):[o(0),o(1)]}}return s.range=c(an),s.rangeRound=c(Ks),s.unknown=function(f){return arguments.length?(l=f,s):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),s}}function ur(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ib(){var e=or(ao()(Ue));return e.copy=function(){return ur(e,ib())},Kt.apply(e,arguments)}function ab(){var e=Gs(ao()).domain([1,10]);return e.copy=function(){return ur(e,ab()).base(e.base())},Kt.apply(e,arguments)}function ob(){var e=Ys(ao());return e.copy=function(){return ur(e,ob()).constant(e.constant())},Kt.apply(e,arguments)}function vc(){var e=Xs(ao());return e.copy=function(){return ur(e,vc()).exponent(e.exponent())},Kt.apply(e,arguments)}function UC(){return vc.apply(null,arguments).exponent(.5)}function ub(){var e=[],t=Ue;function r(n){if(n!=null&&!isNaN(n=+n))return t((ni(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(tr),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)=>mA(e,a/n))},r.copy=function(){return ub(t).domain(e)},Kt.apply(r,arguments)}function oo(){var e=0,t=.5,r=1,n=1,i,a,o,u,l,s=Ue,c,f=!1,d;function v(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-a)*(n*m<n*a?u:l),s(f?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),u=i===a?0:.5/(a-i),l=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?(s=m,v):s};function p(m){return function(h){var y,g,w;return arguments.length?([y,g,w]=h,s=qA(m,[y,g,w]),v):[s(0),s(.5),s(1)]}}return v.range=p(an),v.rangeRound=p(Ks),v.unknown=function(m){return arguments.length?(d=m,v):d},function(m){return c=m,i=m(e),a=m(t),o=m(r),u=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function lb(){var e=or(oo()(Ue));return e.copy=function(){return ur(e,lb())},Kt.apply(e,arguments)}function sb(){var e=Gs(oo()).domain([.1,1,10]);return e.copy=function(){return ur(e,sb()).base(e.base())},Kt.apply(e,arguments)}function cb(){var e=Ys(oo());return e.copy=function(){return ur(e,cb()).constant(e.constant())},Kt.apply(e,arguments)}function pc(){var e=Xs(oo());return e.copy=function(){return ur(e,pc()).exponent(e.exponent())},Kt.apply(e,arguments)}function VC(){return pc.apply(null,arguments).exponent(.5)}const Sn=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Fs,scaleDiverging:lb,scaleDivergingLog:sb,scaleDivergingPow:pc,scaleDivergingSqrt:VC,scaleDivergingSymlog:cb,scaleIdentity:Lg,scaleImplicit:Kl,scaleLinear:Rg,scaleLog:Bg,scaleOrdinal:Bs,scalePoint:bA,scalePow:Zs,scaleQuantile:qg,scaleQuantize:Kg,scaleRadial:Wg,scaleSequential:ib,scaleSequentialLog:ab,scaleSequentialPow:vc,scaleSequentialQuantile:ub,scaleSequentialSqrt:UC,scaleSequentialSymlog:ob,scaleSqrt:d_,scaleSymlog:Fg,scaleThreshold:Ug,scaleTime:qC,scaleUtc:KC,tickFormat:$g},Symbol.toStringTag,{value:"Module"}));var Vt=e=>e.chartData,uo=A([Vt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),hc=(e,t,r,n)=>n?uo(e):Vt(e),fb=(e,t,r)=>r?uo(e):Vt(e);function Rt(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(V(t)&&V(r))return!0}return!1}function zp(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function db(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(V(r))i=r;else if(typeof r=="function")return;if(V(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Rt(o))return o}}function HC(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Rt(n))return zp(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"&&Zd.test(i)){var l=Zd.exec(i);if(l==null||l[1]==null||t==null)o=void 0;else{var s=+l[1];o=t[0]-s}}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"&&Qd.test(a)){var c=Qd.exec(a);if(c==null||c[1]==null||t==null)u=void 0;else{var f=+c[1];u=t[1]+f}}else u=t?.[1];var d=[o,u];if(Rt(d))return t==null?d:zp(d,t,r)}}}var on=1e9,GC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},yc,le=!0,ft="[DecimalError] ",Sr=ft+"Invalid argument: ",mc=ft+"Exponent out of range: ",un=Math.floor,mr=Math.pow,YC=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,rt,_e=1e7,oe=7,vb=9007199254740991,Oa=un(vb/oe),$={};$.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)*oe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};$.dividedBy=$.div=function(e){return Mt(this,new this.constructor(e))};$.dividedToIntegerBy=$.idiv=function(e){var t=this,r=t.constructor;return ne(Mt(t,new r(e),0,1),r.precision)};$.equals=$.eq=function(e){return!this.cmp(e)};$.exponent=function(){return ge(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(rt))throw Error(ft+"NaN");if(r.s<1)throw Error(ft+(r.s?"NaN":"-Infinity"));return r.eq(rt)?new n(0):(le=!1,t=Mt(Fn(r,a),Fn(e,a),a),le=!0,ne(t,i))};$.minus=$.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mb(t,e):pb(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(ft+"NaN");return r.s?(le=!1,t=Mt(r,e,0,1).times(e),le=!0,r.minus(t)):ne(new n(r),i)};$.naturalExponential=$.exp=function(){return hb(this)};$.naturalLogarithm=$.ln=function(){return Fn(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?pb(t,e):mb(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(Sr+e);if(t=ge(i)+1,n=i.d.length-1,r=n*oe+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,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(ft+"NaN")}for(e=ge(u),le=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Et(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=un((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Mt(u,a,o+2)).times(.5),Et(a.d).slice(0,o)===(t=Et(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ne(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return le=!0,ne(n,r)};$.times=$.mul=function(e){var t,r,n,i,a,o,u,l,s,c=this,f=c.constructor,d=c.d,v=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,s=v.length,l<s&&(a=d,d=v,v=a,o=l,l=s,s=o),a=[],o=l+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=l+n;i>n;)u=a[i]+v[n]*d[i-n-1]+t,a[i--]=u%_e|0,t=u/_e|0;a[i]=(a[i]+t)%_e|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,le?ne(e,f.precision):e};$.toDecimalPlaces=$.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(_t(e,0,on),t===void 0?t=n.rounding:_t(t,0,8),ne(r,e+ge(r)+1,t))};$.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Mr(n,!0):(_t(e,0,on),t===void 0?t=i.rounding:_t(t,0,8),n=ne(new i(n),e+1,t),r=Mr(n,!0,e+1)),r};$.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Mr(i):(_t(e,0,on),t===void 0?t=a.rounding:_t(t,0,8),n=ne(new a(i),e+ge(i)+1,t),r=Mr(n.abs(),!1,e+ge(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};$.toInteger=$.toint=function(){var e=this,t=e.constructor;return ne(new t(e),ge(e)+1,t.rounding)};$.toNumber=function(){return+this};$.toPower=$.pow=function(e){var t,r,n,i,a,o,u=this,l=u.constructor,s=12,c=+(e=new l(e));if(!e.s)return new l(rt);if(u=new l(u),!u.s){if(e.s<1)throw Error(ft+"Infinity");return u}if(u.eq(rt))return u;if(n=l.precision,e.eq(rt))return ne(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=c<0?-c:c)<=vb){for(i=new l(rt),t=Math.ceil(n/oe+4),le=!1;r%2&&(i=i.times(u),Fp(i.d,t)),r=un(r/2),r!==0;)u=u.times(u),Fp(u.d,t);return le=!0,e.s<0?new l(rt).div(i):ne(i,n)}}else if(a<0)throw Error(ft+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,le=!1,i=e.times(Fn(u,n+s)),le=!0,i=hb(i),i.s=a,i};$.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ge(i),n=Mr(i,r<=a.toExpNeg||r>=a.toExpPos)):(_t(e,1,on),t===void 0?t=a.rounding:_t(t,0,8),i=ne(new a(i),e,t),r=ge(i),n=Mr(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):(_t(e,1,on),t===void 0?t=n.rounding:_t(t,0,8)),ne(new n(r),e,t)};$.toString=$.valueOf=$.val=$.toJSON=$[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ge(e),r=e.constructor;return Mr(e,t<=r.toExpNeg||t>=r.toExpPos)};function pb(e,t){var r,n,i,a,o,u,l,s,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),le?ne(t,f):t;if(l=e.d,s=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,u=s.length):(n=s,i=o,u=l.length),o=Math.ceil(f/oe),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=l.length,a=s.length,u-a<0&&(a=u,n=s,s=l,l=n),r=0;a;)r=(l[--a]=l[a]+s[a]+r)/_e|0,l[a]%=_e;for(r&&(l.unshift(r),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,le?ne(t,f):t}function _t(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Sr+e)}function Et(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=oe-n.length,r&&(a+=Zt(r)),a+=n;o=e[t],n=o+"",r=oe-n.length,r&&(a+=Zt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Mt=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%_e|0,o=a/_e|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,l;if(a!=o)l=a>o?1:-1;else for(u=l=0;u<a;u++)if(n[u]!=i[u]){l=n[u]>i[u]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*_e+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,l,s,c,f,d,v,p,m,h,y,g,w,x,P,O,S,_,M=n.constructor,N=n.s==i.s?1:-1,j=n.d,k=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(ft+"Division by zero");for(l=n.e-i.e,S=k.length,P=j.length,v=new M(N),p=v.d=[],s=0;k[s]==(j[s]||0);)++s;if(k[s]>(j[s]||0)&&--l,a==null?g=a=M.precision:o?g=a+(ge(n)-ge(i))+1:g=a,g<0)return new M(0);if(g=g/oe+2|0,s=0,S==1)for(c=0,k=k[0],g++;(s<P||c)&&g--;s++)w=c*_e+(j[s]||0),p[s]=w/k|0,c=w%k|0;else{for(c=_e/(k[0]+1)|0,c>1&&(k=e(k,c),j=e(j,c),S=k.length,P=j.length),x=S,m=j.slice(0,S),h=m.length;h<S;)m[h++]=0;_=k.slice(),_.unshift(0),O=k[0],k[1]>=_e/2&&++O;do c=0,u=t(k,m,S,h),u<0?(y=m[0],S!=h&&(y=y*_e+(m[1]||0)),c=y/O|0,c>1?(c>=_e&&(c=_e-1),f=e(k,c),d=f.length,h=m.length,u=t(f,m,d,h),u==1&&(c--,r(f,S<d?_:k,d))):(c==0&&(u=c=1),f=k.slice()),d=f.length,d<h&&f.unshift(0),r(m,f,h),u==-1&&(h=m.length,u=t(k,m,S,h),u<1&&(c++,r(m,S<h?_:k,h))),h=m.length):u===0&&(c++,m=[0]),p[s++]=c,u&&m[0]?m[h++]=j[x]||0:(m=[j[x]],h=1);while((x++<P||m[0]!==void 0)&&g--)}return p[0]||p.shift(),v.e=l,ne(v,o?a+ge(v)+1:a)}}();function hb(e,t){var r,n,i,a,o,u,l=0,s=0,c=e.constructor,f=c.precision;if(ge(e)>16)throw Error(mc+ge(e));if(!e.s)return new c(rt);for(le=!1,u=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(mr(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new c(rt),c.precision=u;;){if(i=ne(i.times(e),u),r=r.times(++l),o=a.plus(Mt(i,r,u)),Et(o.d).slice(0,u)===Et(a.d).slice(0,u)){for(;s--;)a=ne(a.times(a),u);return c.precision=f,t==null?(le=!0,ne(a,f)):a}a=o}}function ge(e){for(var t=e.e*oe,r=e.d[0];r>=10;r/=10)t++;return t}function Yu(e,t,r){if(t>e.LN10.sd())throw le=!0,r&&(e.precision=r),Error(ft+"LN10 precision limit exceeded");return ne(new e(e.LN10),t)}function Zt(e){for(var t="";e--;)t+="0";return t}function Fn(e,t){var r,n,i,a,o,u,l,s,c,f=1,d=10,v=e,p=v.d,m=v.constructor,h=m.precision;if(v.s<1)throw Error(ft+(v.s?"NaN":"-Infinity"));if(v.eq(rt))return new m(0);if(t==null?(le=!1,s=h):s=t,v.eq(10))return t==null&&(le=!0),Yu(m,s);if(s+=d,m.precision=s,r=Et(p),n=r.charAt(0),a=ge(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=Et(v.d),n=r.charAt(0),f++;a=ge(v),n>1?(v=new m("0."+r),a++):v=new m(n+"."+r.slice(1))}else return l=Yu(m,s+2,h).times(a+""),v=Fn(new m(n+"."+r.slice(1)),s-d).plus(l),m.precision=h,t==null?(le=!0,ne(v,h)):v;for(u=o=v=Mt(v.minus(rt),v.plus(rt),s),c=ne(v.times(v),s),i=3;;){if(o=ne(o.times(c),s),l=u.plus(Mt(o,new m(i),s)),Et(l.d).slice(0,s)===Et(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Yu(m,s+2,h).times(a+""))),u=Mt(u,new m(f),s),m.precision=h,t==null?(le=!0,ne(u,h)):u;u=l,i+=2}}function Bp(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=un(r/oe),e.d=[],n=(r+1)%oe,r<0&&(n+=oe),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=oe;n<i;)e.d.push(+t.slice(n,n+=oe));t=t.slice(n),n=oe-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),le&&(e.e>Oa||e.e<-Oa))throw Error(mc+r)}else e.s=0,e.e=0,e.d=[0];return e}function ne(e,t,r){var n,i,a,o,u,l,s,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=oe,i=t,s=f[c=0];else{if(c=Math.ceil((n+1)/oe),a=f.length,c>=a)return e;for(s=a=f[c],o=1;a>=10;a/=10)o++;n%=oe,i=n-oe+o}if(r!==void 0&&(a=mr(10,o-i-1),u=s/a%10|0,l=t<0||f[c+1]!==void 0||s%a,l=r<4?(u||l)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||l||r==6&&(n>0?i>0?s/mr(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=ge(e),f.length=1,t=t-a-1,f[0]=mr(10,(oe-t%oe)%oe),e.e=un(-t/oe)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=mr(10,oe-n),f[c]=i>0?(s/mr(10,o-i)%mr(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==_e&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=_e)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(le&&(e.e>Oa||e.e<-Oa))throw Error(mc+ge(e));return e}function mb(e,t){var r,n,i,a,o,u,l,s,c,f,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),le?ne(t,v):t;if(l=e.d,f=t.d,n=t.e,s=e.e,l=l.slice(),o=s-n,o){for(c=o<0,c?(r=l,o=-o,u=f.length):(r=f,n=s,u=l.length),i=Math.max(Math.ceil(v/oe),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,u=f.length,c=i<u,c&&(u=i),i=0;i<u;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),u=l.length,i=f.length-u;i>0;--i)l[u++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=_e-1;--l[a],l[i]+=_e}l[i]-=f[i]}for(;l[--u]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,le?ne(t,v):t):new d(0)}function Mr(e,t,r){var n,i=ge(e),a=Et(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Zt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Zt(-i-1)+a,r&&(n=r-o)>0&&(a+=Zt(n))):i>=o?(a+=Zt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Zt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Zt(n))),e.s<0?"-"+a:a}function Fp(e,t){if(e.length>t)return e.length=t,!0}function yb(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(Sr+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 Bp(o,a.toString())}else if(typeof a!="string")throw Error(Sr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,YC.test(a))Bp(o,a);else throw Error(Sr+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=yb,i.config=i.set=XC,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function XC(e){if(!e||typeof e!="object")throw Error(ft+"Object expected");var t,r,n,i=["precision",1,on,"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(un(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Sr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Sr+r+": "+n);return this}var yc=yb(GC);rt=new yc(1);const Q=yc;function gb(e){var t;return e===0?t=1:t=Math.floor(new Q(e).abs().log(10).toNumber())+1,t}function bb(e,t,r){for(var n=new Q(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var wb=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},xb=(e,t,r)=>{if(e.lte(0))return new Q(0);var n=gb(e.toNumber()),i=new Q(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new Q(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=u.mul(i);return t?new Q(l.toNumber()):new Q(Math.ceil(l.toNumber()))},ZC=(e,t,r)=>{var n=new Q(1),i=new Q(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Q(10).pow(gb(e)-1),i=new Q(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Q(Math.floor(e)))}else e===0?i=new Q(Math.floor((t-1)/2)):r||(i=new Q(Math.floor(e)));for(var o=Math.floor((t-1)/2),u=[],l=0;l<t;l++)u.push(i.add(new Q(l-o).mul(n)).toNumber());return u},Ob=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 Q(0),tickMin:new Q(0),tickMax:new Q(0)};var o=xb(new Q(r).sub(t).div(n-1),i,a),u;t<=0&&r>=0?u=new Q(0):(u=new Q(t).add(r).div(2),u=u.sub(new Q(u).mod(o)));var l=Math.ceil(u.sub(t).div(o).toNumber()),s=Math.ceil(new Q(r).sub(u).div(o).toNumber()),c=l+s+1;return c>n?Ob(t,r,n,i,a+1):(c<n&&(s=r>0?s+(n-c):s,l=r>0?l:l+(n-c)),{step:o,tickMin:u.sub(new Q(l).mul(o)),tickMax:u.add(new Q(s).mul(o))})},QC=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,l]=wb([r,n]);if(u===-1/0||l===1/0){var s=l===1/0?[u,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),l];return r>n?s.reverse():s}if(u===l)return ZC(u,i,a);var{step:c,tickMin:f,tickMax:d}=Ob(u,l,o,a,0),v=bb(f,d.add(new Q(.1).mul(c)),c);return r>n?v.reverse():v},JC=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,u]=wb([n,i]);if(o===-1/0||u===1/0)return[n,i];if(o===u)return[o];var l=Math.max(r,2),s=xb(new Q(u).sub(o).div(l-1),a,0),c=[...bb(new Q(o),new Q(u),s),u];return a===!1&&(c=c.map(f=>Math.round(f))),n>i?c.reverse():c},Pb=e=>e.rootProps.maxBarSize,ej=e=>e.rootProps.barGap,Eb=e=>e.rootProps.barCategoryGap,tj=e=>e.rootProps.barSize,oi=e=>e.rootProps.stackOffset,Sb=e=>e.rootProps.reverseStackOrder,gc=e=>e.options.chartName,bc=e=>e.rootProps.syncId,Ab=e=>e.rootProps.syncMethod,wc=e=>e.options.eventEmitter,rj=e=>e.rootProps.baseValue,je={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},vr={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},xt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},lo=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function so(e,t,r){if(r!=="auto")return r;if(e!=null)return Ft(e,t)?"category":"number"}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 Pa(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){nj(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 nj(e,t,r){return(t=ij(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ij(e){var t=aj(e,"string");return typeof t=="symbol"?t:t+""}function aj(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 qp={allowDataOverflow:vr.allowDataOverflow,allowDecimals:vr.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:vr.angleAxisId,includeHidden:!1,name:void 0,reversed:vr.reversed,scale:vr.scale,tick:vr.tick,tickCount:void 0,ticks:void 0,type:vr.type,unit:void 0},Kp={allowDataOverflow:xt.allowDataOverflow,allowDecimals:xt.allowDecimals,allowDuplicatedCategory:xt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:xt.radiusAxisId,includeHidden:xt.includeHidden,name:void 0,reversed:xt.reversed,scale:xt.scale,tick:xt.tick,tickCount:xt.tickCount,ticks:void 0,type:xt.type,unit:void 0},oj=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},xc=A([oj,og],(e,t)=>{var r;if(e!=null)return e;var n=(r=so(t,"angleAxis",qp.type))!==null&&r!==void 0?r:"category";return Pa(Pa({},qp),{},{type:n})}),uj=(e,t)=>e.polarAxis.radiusAxis[t],Oc=A([uj,og],(e,t)=>{var r;if(e!=null)return e;var n=(r=so(t,"radiusAxis",Kp.type))!==null&&r!==void 0?r:"category";return Pa(Pa({},Kp),{},{type:n})}),co=e=>e.polarOptions,Pc=A([Wt,qt,Oe],Og),_b=A([co,Pc],(e,t)=>{if(e!=null)return Fe(e.innerRadius,t,0)}),Cb=A([co,Pc],(e,t)=>{if(e!=null)return Fe(e.outerRadius,t,t*.8)}),lj=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},jb=A([co],lj);A([xc,jb],lo);var Ib=A([Pc,_b,Cb],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});A([Oc,Ib],lo);var Tb=A([X,co,_b,Cb,Wt,qt],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:u,startAngle:l,endAngle:s}=t;return{cx:Fe(o,i,i/2),cy:Fe(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:s,clockWise:!1}}}),se=(e,t)=>t,ui=(e,t,r)=>r;function fo(e){return e?.id}function kb(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(u=>{var l,s=(l=u.data)!==null&&l!==void 0?l:n;if(!(s==null||s.length===0)){var c=fo(u);s.forEach((f,d)=>{var v=a==null||i?d:String(re(f,a,null)),p=re(f,u.dataKey,0),m;o.has(v)?m=o.get(v):m={},Object.assign(m,{[c]:p}),o.set(v,m)})}}),Array.from(o.values())}function vo(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var po=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function ho(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function sj(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 Te=e=>{var t=X(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},ln=e=>e.tooltip.settings.axisId;function cj(e){if(e in Sn)return Sn[e]();var t="scale".concat(Kn(e));if(t in Sn)return Sn[t]()}function Up(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 l=e.bandwidth();switch(o.position){case"middle":u+=l/2;break;case"end":u+=l;break}}return u}}}}function Vp(e,t,r){if(typeof e=="function")return Up(e.copy().domain(t).range(r));if(e!=null){var n=cj(e);if(n!=null)return n.domain(t).range(r),Up(n)}}var Mb=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Rt(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];V(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 Hp(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 Ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hp(Object(r),!0).forEach(function(n){fj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fj(e,t,r){return(t=dj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dj(e){var t=vj(e,"string");return typeof t=="symbol"?t:t+""}function vj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gl=[0,"auto"],Se={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},Db=(e,t)=>e.cartesianAxis.xAxis[t],Ht=(e,t)=>{var r=Db(e,t);return r??Se},Ae={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Gl,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:Zn},Nb=(e,t)=>e.cartesianAxis.yAxis[t],Gt=(e,t)=>{var r=Nb(e,t);return r??Ae},$b={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:""},Ec=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??$b},ve=(e,t,r)=>{switch(t){case"xAxis":return Ht(e,r);case"yAxis":return Gt(e,r);case"zAxis":return Ec(e,r);case"angleAxis":return xc(e,r);case"radiusAxis":return Oc(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},pj=(e,t,r)=>{switch(t){case"xAxis":return Ht(e,r);case"yAxis":return Gt(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},sn=(e,t,r)=>{switch(t){case"xAxis":return Ht(e,r);case"yAxis":return Gt(e,r);case"angleAxis":return xc(e,r);case"radiusAxis":return Oc(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Rb=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Sc(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 mo=e=>e.graphicalItems.cartesianItems,hj=A([se,ui],Sc),Ac=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),li=A([mo,ve,hj],Ac,{memoizeOptions:{resultEqualityCheck:ho}}),Lb=A([li],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(vo)),zb=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),mj=A([li],zb),_c=e=>e.map(t=>t.data).filter(Boolean).flat(1),yj=A([li],_c,{memoizeOptions:{resultEqualityCheck:ho}}),Cc=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},jc=A([yj,hc],Cc),Ic=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:re(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:re(i,n)}))):e.map(n=>({value:n})),yo=A([jc,ve,li],Ic);function Bb(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Fi(e){if(At(e)||e instanceof Date){var t=Number(e);if(V(t))return t}}function Gp(e){if(Array.isArray(e)){var t=[Fi(e[0]),Fi(e[1])];return Rt(t)?t:void 0}var r=Fi(e);if(r!=null)return[r,r]}function Lt(e){return e.map(Fi).filter(Ke)}function gj(e,t,r){return!r||typeof t!="number"||mt(t)?[]:r.length?Lt(r.flatMap(n=>{var i=re(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!V(a)||!V(o)))return[t-a,t+o]})):[]}var Ee=e=>{var t=Te(e),r=ln(e);return sn(e,t,r)},si=A([Ee],e=>e?.dataKey),bj=A([Lb,hc,Ee],kb),Fb=(e,t,r,n)=>{var i={},a=t.reduce((o,u)=>{if(u.stackId==null)return o;var l=o[u.stackId];return l==null&&(l=[]),l.push(u),o[u.stackId]=l,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[u,l]=o,s=n?[...l].reverse():l,c=s.map(fo);return[u,{stackedData:$P(e,c,r),graphicalItems:s}]}))},Sa=A([bj,Lb,oi,Sb],Fb),Wb=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=FP(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},wj=A([ve],e=>e.allowDataOverflow),Tc=e=>{var t;if(e==null||!("domain"in e))return Gl;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Lt(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:Gl},kc=A([ve],Tc),Mc=A([kc,wj],db),xj=A([Sa,Vt,se,Mc],Wb,{memoizeOptions:{resultEqualityCheck:po}}),go=e=>e.errorBars,Oj=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>Bb(r,n)),Aa=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]}},Dc=(e,t,r,n,i)=>{var a,o;if(r.length>0&&e.forEach(u=>{r.forEach(l=>{var s,c,f=(s=n[l.id])===null||s===void 0?void 0:s.filter(y=>Bb(i,y)),d=re(u,(c=t.dataKey)!==null&&c!==void 0?c:l.dataKey),v=gj(u,d,f);if(v.length>=2){var p=Math.min(...v),m=Math.max(...v);(a==null||p<a)&&(a=p),(o==null||m>o)&&(o=m)}var h=Gp(d);h!=null&&(a=a==null?h[0]:Math.min(a,h[0]),o=o==null?h[1]:Math.max(o,h[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var l=Gp(re(u,t.dataKey));l!=null&&(a=a==null?l[0]:Math.min(a,l[0]),o=o==null?l[1]:Math.max(o,l[1]))}),V(a)&&V(o))return[a,o]},Pj=A([jc,ve,mj,go,se],Dc,{memoizeOptions:{resultEqualityCheck:po}});function Ej(e){var{value:t}=e;if(At(t)||t instanceof Date)return t}var Sj=(e,t,r)=>{var n=e.map(Ej).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&Ym(n))?Ag(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},qb=e=>e.referenceElements.dots,cn=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Aj=A([qb,se,ui],cn),Kb=e=>e.referenceElements.areas,_j=A([Kb,se,ui],cn),Ub=e=>e.referenceElements.lines,Cj=A([Ub,se,ui],cn),Vb=(e,t)=>{if(e!=null){var r=Lt(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},jj=A(Aj,se,Vb),Hb=(e,t)=>{if(e!=null){var r=Lt(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)]}},Ij=A([_j,se],Hb);function Tj(e){var t;if(e.x!=null)return Lt([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Lt(r)}function kj(e){var t;if(e.y!=null)return Lt([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Lt(r)}var Gb=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?Tj(n):kj(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Mj=A([Cj,se],Gb),Dj=A(jj,Mj,Ij,(e,t,r)=>Aa(e,r,t)),Nc=(e,t,r,n,i,a,o,u)=>{if(r!=null)return r;var l=o==="vertical"&&u==="xAxis"||o==="horizontal"&&u==="yAxis",s=l?Aa(n,a,i):Aa(a,i);return HC(t,s,e.allowDataOverflow)},Nj=A([ve,kc,Mc,xj,Pj,Dj,X,se],Nc,{memoizeOptions:{resultEqualityCheck:po}}),$j=[0,1],$c=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:u,type:l}=e,s=Ft(t,a);if(s&&u==null){var c;return Ag(0,(c=r?.length)!==null&&c!==void 0?c:0)}return l==="category"?Sj(n,e,s):i==="expand"?$j:o}},Rc=A([ve,X,jc,yo,oi,se,Nj],$c);function Rj(e){return e in Sn}var Yb=(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(Kn(n));return Rj(a)?a:"point"}}},lr=A([ve,Rb,gc],Yb);function Lc(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Vp(e.scale,r,n):Vp(t,r,n)}var zc=(e,t,r)=>{var n=Tc(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Rt(e))return QC(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Rt(e))return JC(e,t.tickCount,t.allowDecimals)}},Bc=A([Rc,sn,lr],zc),Fc=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Rt(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],u=(i=r[0])!==null&&i!==void 0?i:0,l=t[1],s=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,u),Math.max(l,s)]}return t},Lj=A([ve,Rc,Bc,se],Fc),zj=A(yo,ve,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Lt(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 l=n[u],s=n[u+1];if(!(l==null||s==null)){var c=s-l;r=Math.min(r,c)}}return r/o}}),Xb=A(zj,X,Eb,Oe,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!V(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=Fe(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),Bj=(e,t,r)=>{var n=Ht(e,t);return n==null||typeof n.padding!="string"?0:Xb(e,"xAxis",t,r,n.padding)},Fj=(e,t,r)=>{var n=Gt(e,t);return n==null||typeof n.padding!="string"?0:Xb(e,"yAxis",t,r,n.padding)},Wj=A(Ht,Bj,(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}}),qj=A(Gt,Fj,(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}}),Kj=A([Oe,Wj,Za,Xa,(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]}),Uj=A([Oe,X,qj,Za,Xa,(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]}),ci=(e,t,r,n)=>{var i;switch(t){case"xAxis":return Kj(e,r,n);case"yAxis":return Uj(e,r,n);case"zAxis":return(i=Ec(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return jb(e);case"radiusAxis":return Ib(e,r);default:return}},Zb=A([ve,ci],lo),Vj=A([lr,Lj],Mb),bo=A([ve,lr,Vj,Zb],Lc);A([li,go,se],Oj);function Qb(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var wo=(e,t)=>t,xo=(e,t,r)=>r,Hj=A(Ga,wo,xo,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Qb)),Gj=A(Ya,wo,xo,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Qb)),Jb=(e,t)=>({width:e.width,height:t.height}),Yj=(e,t)=>{var r=typeof t.width=="number"?t.width:Zn;return{width:r,height:e.height}},e0=A(Oe,Ht,Jb),Xj=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},Zj=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},Qj=A(qt,Oe,Hj,wo,xo,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=Jb(t,u);o==null&&(o=Xj(t,n,e));var s=n==="top"&&!i||n==="bottom"&&i;a[u.id]=o-Number(s)*l.height,o+=(s?-1:1)*l.height}),a}),Jj=A(Wt,Oe,Gj,wo,xo,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=Yj(t,u);o==null&&(o=Zj(t,n,e));var s=n==="left"&&!i||n==="right"&&i;a[u.id]=o-Number(s)*l.width,o+=(s?-1:1)*l.width}),a}),eI=(e,t)=>{var r=Ht(e,t);if(r!=null)return Qj(e,r.orientation,r.mirror)},tI=A([Oe,Ht,eI,(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}}}),rI=(e,t)=>{var r=Gt(e,t);if(r!=null)return Jj(e,r.orientation,r.mirror)},nI=A([Oe,Gt,rI,(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}}}),t0=A(Oe,Gt,(e,t)=>{var r=typeof t.width=="number"?t.width:Zn;return{width:r,height:e.height}}),Yp=(e,t,r)=>{switch(t){case"xAxis":return e0(e,r).width;case"yAxis":return t0(e,r).height;default:return}},r0=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,u=Ft(e,n),l=t.map(s=>s.value);if(o&&u&&a==="category"&&i&&Ym(l))return l}},Wc=A([X,yo,ve,se],r0),n0=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=Ft(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},qc=A([X,yo,sn,se],n0),Xp=A([X,pj,lr,bo,Wc,qc,ci,Bc,se],(e,t,r,n,i,a,o,u,l)=>{if(t!=null){var s=Ft(e,l);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:l,categoricalDomain:a,duplicateDomain:i,isCategorical:s,niceTicks:u,range:o,realScaleType:r,scale:n}}}),iI=(e,t,r,n,i,a,o,u,l)=>{if(!(t==null||n==null)){var s=Ft(e,l),{type:c,ticks:f,tickCount:d}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,p=c==="category"&&n.bandwidth?n.bandwidth()/v:0;p=l==="angleAxis"&&a!=null&&a.length>=2?Ce(a[0]-a[1])*2*p:p;var m=f||i;return m?m.map((h,y)=>{var g=o?o.indexOf(h):h,w=n.map(g);return V(w)?{index:y,coordinate:w+p,value:h,offset:p}:null}).filter(Ke):s&&u?u.map((h,y)=>{var g=n.map(h);return V(g)?{coordinate:g+p,value:h,index:y,offset:p}:null}).filter(Ke):n.ticks?n.ticks(d).map((h,y)=>{var g=n.map(h);return V(g)?{coordinate:g+p,value:h,index:y,offset:p}:null}).filter(Ke):n.domain().map((h,y)=>{var g=n.map(h);return V(g)?{coordinate:g+p,value:o?o[h]:h,index:y,offset:p}:null}).filter(Ke)}},i0=A([X,sn,lr,bo,Bc,ci,Wc,qc,se],iI),aI=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=Ft(e,o),{tickCount:l}=t,s=0;return s=o==="angleAxis"&&n?.length>=2?Ce(n[0]-n[1])*2*s:s,u&&a?a.map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(Ke):r.ticks?r.ticks(l).map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(Ke):r.domain().map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+s,value:i?i[c]:c,index:f,offset:s}:null}).filter(Ke)}},Dr=A([X,sn,bo,ci,Wc,qc,se],aI),Nr=A(ve,bo,(e,t)=>{if(!(e==null||t==null))return Ea(Ea({},e),{},{scale:t})}),oI=A([ve,lr,Rc,Zb],Lc),uI=A((e,t,r)=>Ec(e,r),oI,(e,t)=>{if(!(e==null||t==null))return Ea(Ea({},e),{},{scale:t})}),lI=A([X,Ga,Ya],(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}}),a0=e=>e.options.defaultTooltipEventType,o0=e=>e.options.validateTooltipEventTypes;function u0(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Kc(e,t){var r=a0(e),n=o0(e);return u0(t,r,n)}function sI(e){return L(t=>Kc(t,e))}var l0=(e,t)=>{var r,n=Number(t);if(!(mt(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},cI=e=>e.tooltip.settings,Jt={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},fI={itemInteraction:{click:Jt,hover:Jt},axisInteraction:{click:Jt,hover:Jt},keyboardInteraction:Jt,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}},s0=Ze({name:"tooltip",initialState:fI,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ue()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ht(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:ue()},removeTooltipEntrySettings:{reducer(e,t){var r=ht(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ue()},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:dI,replaceTooltipEntrySettings:vI,removeTooltipEntrySettings:pI,setTooltipSettingsState:hI,setActiveMouseOverItemIndex:Uc,mouseLeaveItem:c0,mouseLeaveChart:f0,setActiveClickItemIndex:d0,setMouseOverAxisIndex:v0,setMouseClickAxisIndex:mI,setSyncInteraction:Yl,setKeyboardInteraction:Xl}=s0.actions,yI=s0.reducer;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 ki(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){gI(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 gI(e,t,r){return(t=bI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bI(e){var t=wI(e,"string");return typeof t=="symbol"?t:t+""}function wI(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 xI(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function OI(e){return e.index!=null}var p0=(e,t,r,n)=>{if(t==null)return Jt;var i=xI(e,t,r);if(i==null)return Jt;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(OI(i)){if(a)return ki(ki({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return ki(ki({},Jt),{},{coordinate:i.coordinate})};function PI(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 EI(e,t){var r=PI(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 SI(e,t,r){if(r==null||t==null)return!0;var n=re(e,t);return n==null||!Rt(r)?!0:EI(n,r)}var Vc=(e,t,r,n)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!V(a))return i;var o=0,u=1/0;t.length>0&&(u=t.length-1);var l=Math.max(o,Math.min(a,u)),s=t[l];return s==null||SI(s,r,n)?String(l):null},h0=(e,t,r,n,i,a,o)=>{if(a!=null){var u=o[0],l=u?.getPosition(a);if(l!=null)return l;var s=i?.[Number(a)];if(s)switch(r){case"horizontal":return{x:s.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:s.coordinate}}}},m0=(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})},y0=e=>e.options.tooltipPayloadSearcher,fn=e=>e.tooltip;function Qp(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 Jp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qp(Object(r),!0).forEach(function(n){AI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AI(e,t,r){return(t=_I(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _I(e){var t=CI(e,"string");return typeof t=="symbol"?t:t+""}function CI(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 jI(e,t){return e??t}var g0=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:u,computedData:l,dataStartIndex:s,dataEndIndex:c}=r,f=[];return e.reduce((d,v)=>{var p,{dataDefinedOnItem:m,settings:h}=v,y=jI(m,u),g=Array.isArray(y)?Yy(y,s,c):y,w=(p=h?.dataKey)!==null&&p!==void 0?p:n,x=h?.nameKey,P;if(n&&Array.isArray(g)&&!Array.isArray(g[0])&&o==="axis"?P=Xm(g,n,i):P=a(g,t,l,x),Array.isArray(P))P.forEach(S=>{var _=Jp(Jp({},h),{},{name:S.name,unit:S.unit,color:void 0,fill:void 0});d.push(Jd({tooltipEntrySettings:_,dataKey:S.dataKey,payload:S.payload,value:re(S.payload,S.dataKey),name:S.name}))});else{var O;d.push(Jd({tooltipEntrySettings:h,dataKey:w,payload:P,value:re(P,w),name:(O=re(P,x))!==null&&O!==void 0?O:h?.name}))}return d},f)}},Hc=A([Ee,Rb,gc],Yb),II=A([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),TI=A([Te,ln],Sc),dn=A([II,Ee,TI],Ac,{memoizeOptions:{resultEqualityCheck:ho}}),kI=A([dn],e=>e.filter(vo)),MI=A([dn],_c,{memoizeOptions:{resultEqualityCheck:ho}}),vn=A([MI,Vt],Cc),DI=A([kI,Vt,Ee],kb),Gc=A([vn,Ee,dn],Ic),b0=A([Ee],Tc),NI=A([Ee],e=>e.allowDataOverflow),w0=A([b0,NI],db),$I=A([dn],e=>e.filter(vo)),RI=A([DI,$I,oi,Sb],Fb),LI=A([RI,Vt,Te,w0],Wb),zI=A([dn],zb),BI=A([vn,Ee,zI,go,Te],Dc,{memoizeOptions:{resultEqualityCheck:po}}),FI=A([qb,Te,ln],cn),WI=A([FI,Te],Vb),qI=A([Kb,Te,ln],cn),KI=A([qI,Te],Hb),UI=A([Ub,Te,ln],cn),VI=A([UI,Te],Gb),HI=A([WI,VI,KI],Aa),GI=A([Ee,b0,w0,LI,BI,HI,X,Te],Nc),fi=A([Ee,X,vn,Gc,oi,Te,GI],$c),YI=A([fi,Ee,Hc],zc),XI=A([Ee,fi,YI,Te],Fc),x0=e=>{var t=Te(e),r=ln(e),n=!1;return ci(e,t,r,n)},O0=A([Ee,x0],lo),P0=A([Ee,Hc,XI,O0],Lc),ZI=A([X,Gc,Ee,Te],r0),QI=A([X,Gc,Ee,Te],n0),JI=(e,t,r,n,i,a,o,u)=>{if(t){var{type:l}=t,s=Ft(e,u);if(n){var c=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/c:0;return f=u==="angleAxis"&&i!=null&&i?.length>=2?Ce(i[0]-i[1])*2*f:f,s&&o?o.map((d,v)=>{var p=n.map(d);return V(p)?{coordinate:p+f,value:d,index:v,offset:f}:null}).filter(Ke):n.domain().map((d,v)=>{var p=n.map(d);return V(p)?{coordinate:p+f,value:a?a[d]:d,index:v,offset:f}:null}).filter(Ke)}}},Yt=A([X,Ee,Hc,P0,x0,ZI,QI,Te],JI),Yc=A([a0,o0,cI],(e,t,r)=>u0(r.shared,e,t)),E0=e=>e.tooltip.settings.trigger,Xc=e=>e.tooltip.settings.defaultIndex,di=A([fn,Yc,E0,Xc],p0),ir=A([di,vn,si,fi],Vc),S0=A([Yt,ir],l0),Zc=A([di],e=>{if(e)return e.dataKey}),eT=A([di],e=>{if(e)return e.graphicalItemId}),A0=A([fn,Yc,E0,Xc],m0),tT=A([Wt,qt,X,Oe,Yt,Xc,A0],h0),rT=A([di,tT],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),nT=A([di],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),iT=A([A0,ir,Vt,si,S0,y0,Yc],g0),aT=A([iT],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function th(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(r),!0).forEach(function(n){oT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oT(e,t,r){return(t=uT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uT(e){var t=lT(e,"string");return typeof t=="symbol"?t:t+""}function lT(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 sT=()=>L(Ee),cT=()=>{var e=sT(),t=L(Yt),r=L(P0);return kn(!e||!r?void 0:th(th({},e),{},{scale:r}),t)};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 Ur(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){fT(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 fT(e,t,r){return(t=dT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dT(e){var t=vT(e,"string");return typeof t=="symbol"?t:t+""}function vT(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 pT=(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}},hT=(e,t,r,n)=>{var i=t.find(s=>s&&s.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return Ur(Ur(Ur({},n),ye(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:l}=n;return Ur(Ur(Ur({},n),ye(n.cx,n.cy,u,l)),{},{angle:l,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 mT(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 _0=(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 l,s,c,f,d,v=u>0?(l=r[u-1])===null||l===void 0?void 0:l.coordinate:(s=r[o-1])===null||s===void 0?void 0:s.coordinate,p=(c=r[u])===null||c===void 0?void 0:c.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,h=void 0;if(!(v==null||p==null||m==null))if(Ce(p-v)!==Ce(m-p)){var y=[];if(Ce(m-p)===Ce(i[1]-i[0])){h=m;var g=p+i[1]-i[0];y[0]=Math.min(g,(g+v)/2),y[1]=Math.max(g,(g+v)/2)}else{h=v;var w=m+i[1]-i[0];y[0]=Math.min(p,(w+p)/2),y[1]=Math.max(p,(w+p)/2)}var x=[Math.min(p,(h+p)/2),Math.max(p,(h+p)/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),S=Math.max(v,m);if(e>(O+p)/2&&e<=(S+p)/2){var _;return(_=r[u])===null||_===void 0?void 0:_.index}}}else if(t)for(var M=0;M<o;M++){var N=t[M];if(N!=null){var j=t[M+1],k=t[M-1];if(M===0&&j!=null&&e<=(N.coordinate+j.coordinate)/2||M===o-1&&k!=null&&e>(N.coordinate+k.coordinate)/2||M>0&&M<o-1&&k!=null&&j!=null&&e>(N.coordinate+k.coordinate)/2&&e<=(N.coordinate+j.coordinate)/2)return N.index}}return-1},C0=()=>L(gc),Qc=(e,t)=>t,j0=(e,t,r)=>r,Jc=(e,t,r,n)=>n,yT=A(Yt,e=>za(e,t=>t.coordinate)),ef=A([fn,Qc,j0,Jc],p0),tf=A([ef,vn,si,fi],Vc),gT=(e,t,r)=>{if(t!=null){var n=fn(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},I0=A([fn,Qc,j0,Jc],m0),_a=A([Wt,qt,X,Oe,Yt,Jc,I0],h0),bT=A([ef,_a],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),T0=A([Yt,tf],l0),wT=A([I0,tf,Vt,si,T0,y0,Qc],g0),xT=A([ef,tf],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),OT=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&mT(e,o)){var u=WP(e,t),l=_0(u,a,i,r,n),s=pT(t,i,l,e);return{activeIndex:String(l),activeCoordinate:s}}},PT=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var u=YS(e,r);if(u){var l=qP(u,t),s=_0(l,o,a,n,i),c=hT(t,a,s,u);return{activeIndex:String(s),activeCoordinate:c}}}},ET=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?OT(e,t,n,i,a,o,u):PT(e,t,r,n,i,a,o)},ST=A(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}}),AT=A(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(je)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:sj}});function nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ih(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nh(Object(r),!0).forEach(function(n){_T(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _T(e,t,r){return(t=CT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CT(e){var t=jT(e,"string");return typeof t=="symbol"?t:t+""}function jT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IT={},TT={zIndexMap:Object.values(je).reduce((e,t)=>ih(ih({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),IT)},kT=new Set(Object.values(je));function MT(e){return kT.has(e)}var k0=Ze({name:"zIndex",initialState:TT,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:ue()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!MT(r)&&delete e.zIndexMap[r])},prepare:ue()},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:ue()},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:ue()}}}),{registerZIndexPortal:DT,unregisterZIndexPortal:NT,registerZIndexPortalElement:$T,unregisterZIndexPortalElement:RT}=k0.actions,LT=k0.reducer;function vt(e){var{zIndex:t,children:r}=e,n=wE(),i=n&&t!==void 0&&t!==0,a=Ge(),o=ie();E.useLayoutEffect(()=>i?(o(DT({zIndex:t})),()=>{o(NT({zIndex:t}))}):Rr,[o,t,i]);var u=L(l=>ST(l,t,a));return i?u?Em.createPortal(r,u):null:r}function Zl(){return Zl=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},Zl.apply(null,arguments)}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 Mi(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){zT(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 zT(e,t,r){return(t=BT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BT(e){var t=FT(e,"string");return typeof t=="symbol"?t:t+""}function FT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WT(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return E.isValidElement(t)?E.cloneElement(t,n):E.createElement(r,n)}function qT(e){var t,{coordinate:r,payload:n,index:i,offset:a,tooltipAxisBandSize:o,layout:u,cursor:l,tooltipEventType:s,chartName:c}=e,f=r,d=n,v=i;if(!l||!f||c!=="ScatterChart"&&s!=="axis")return null;var p,m,h;if(c==="ScatterChart")p=f,m=sS,h=je.cursorLine;else if(c==="BarChart")p=cS(u,f,a,o),m=Ls,h=je.cursorRectangle;else if(u==="radial"&&Qm(f)){var{cx:y,cy:g,radius:w,startAngle:x,endAngle:P}=Pg(f);p={cx:y,cy:g,startAngle:x,endAngle:P,innerRadius:w,outerRadius:w},m=Sg,h=je.cursorLine}else p={points:JS(u,f,a)},m=to,h=je.cursorLine;var O=typeof l=="object"&&"className"in l?l.className:void 0,S=Mi(Mi(Mi(Mi({stroke:"#ccc",pointerEvents:"none"},a),p),Zr(l)),{},{payload:d,payloadIndex:v,className:J("recharts-tooltip-cursor",O)});return b.createElement(vt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:h},b.createElement(WT,{cursor:l,cursorComp:m,cursorProps:S}))}function KT(e){var t=cT(),r=ag(),n=Lr(),i=C0();return t==null||r==null||n==null||i==null?null:b.createElement(qT,Zl({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var rf=E.createContext(null),UT=()=>E.useContext(rf),Xu={exports:{}},oh;function VT(){return oh||(oh=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(l,s,c){this.fn=l,this.context=s,this.once=c||!1}function a(l,s,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var v=new i(c,f||l,d),p=r?r+s:s;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],v]:l._events[p].push(v):(l._events[p]=v,l._eventsCount++),l}function o(l,s){--l._eventsCount===0?l._events=new n:delete l._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],c,f;if(this._eventsCount===0)return s;for(f in c=this._events)t.call(c,f)&&s.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(c)):s},u.prototype.listeners=function(s){var c=r?r+s:s,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,v=f.length,p=new Array(v);d<v;d++)p[d]=f[d].fn;return p},u.prototype.listenerCount=function(s){var c=r?r+s:s,f=this._events[c];return f?f.fn?1:f.length:0},u.prototype.emit=function(s,c,f,d,v,p){var m=r?r+s:s;if(!this._events[m])return!1;var h=this._events[m],y=arguments.length,g,w;if(h.fn){switch(h.once&&this.removeListener(s,h.fn,void 0,!0),y){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,c),!0;case 3:return h.fn.call(h.context,c,f),!0;case 4:return h.fn.call(h.context,c,f,d),!0;case 5:return h.fn.call(h.context,c,f,d,v),!0;case 6:return h.fn.call(h.context,c,f,d,v,p),!0}for(w=1,g=new Array(y-1);w<y;w++)g[w-1]=arguments[w];h.fn.apply(h.context,g)}else{var x=h.length,P;for(w=0;w<x;w++)switch(h[w].once&&this.removeListener(s,h[w].fn,void 0,!0),y){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,c);break;case 3:h[w].fn.call(h[w].context,c,f);break;case 4:h[w].fn.call(h[w].context,c,f,d);break;default:if(!g)for(P=1,g=new Array(y-1);P<y;P++)g[P-1]=arguments[P];h[w].fn.apply(h[w].context,g)}}return!0},u.prototype.on=function(s,c,f){return a(this,s,c,f,!1)},u.prototype.once=function(s,c,f){return a(this,s,c,f,!0)},u.prototype.removeListener=function(s,c,f,d){var v=r?r+s:s;if(!this._events[v])return this;if(!c)return o(this,v),this;var p=this._events[v];if(p.fn)p.fn===c&&(!d||p.once)&&(!f||p.context===f)&&o(this,v);else{for(var m=0,h=[],y=p.length;m<y;m++)(p[m].fn!==c||d&&!p[m].once||f&&p[m].context!==f)&&h.push(p[m]);h.length?this._events[v]=h.length===1?h[0]:h:o(this,v)}return this},u.prototype.removeAllListeners=function(s){var c;return s?(c=r?r+s:s,this._events[c]&&o(this,c)):(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}(Xu)),Xu.exports}var HT=VT();const GT=Bt(HT);var Wn=new GT,Ql="recharts.syncEvent.tooltip",uh="recharts.syncEvent.brush",nf=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!mt(r))return e[r]}},YT={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},M0=Ze({name:"options",initialState:YT,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),XT=M0.reducer,{createEventEmitter:ZT}=M0.actions;function QT(e){return e.tooltip.syncInteraction}var JT={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},D0=Ze({name:"chartData",initialState:JT,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:Jl,setDataStartEndIndexes:ek,setComputedData:tk}=D0.actions,rk=D0.reducer,nk=["x","y"];function lh(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?lh(Object(r),!0).forEach(function(n){ik(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ik(e,t,r){return(t=ak(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ak(e){var t=ok(e,"string");return typeof t=="symbol"?t:t+""}function ok(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 uk(e,t){if(e==null)return{};var r,n,i=lk(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 lk(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 sk(){var e=L(bc),t=L(wc),r=ie(),n=L(Ab),i=L(Yt),a=Lr(),o=Qn(),u=L(l=>l.rootProps.className);E.useEffect(()=>{if(e==null)return Rr;var l=(s,c,f)=>{if(t!==f&&e===s){if(n==="index"){var d;if(o&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var v=c.payload.coordinate,{x:p,y:m}=v,h=uk(v,nk),{x:y,y:g,width:w,height:x}=c.payload.sourceViewBox,P=Vr(Vr({},h),{},{x:o.x+(w?(p-y)/w:0)*o.width,y:o.y+(x?(m-g)/x:0)*o.height});r(Vr(Vr({},c),{},{payload:Vr(Vr({},c.payload),{},{coordinate:P})}))}else r(c);return}if(i!=null){var O;if(typeof n=="function"){var S={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},_=n(i,S);O=i[_]}else n==="value"&&(O=i.find(W=>String(W.value)===c.payload.label));var{coordinate:M}=c.payload;if(O==null||c.payload.active===!1||M==null||o==null){r(Yl({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:N,y:j}=M,k=Math.min(N,o.x+o.width),C=Math.min(j,o.y+o.height),z={x:a==="horizontal"?O.coordinate:k,y:a==="horizontal"?C:O.coordinate},U=Yl({active:c.payload.active,coordinate:z,dataKey:c.payload.dataKey,index:String(O.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(U)}}};return Wn.on(Ql,l),()=>{Wn.off(Ql,l)}},[u,r,t,e,n,i,a,o])}function ck(){var e=L(bc),t=L(wc),r=ie();E.useEffect(()=>{if(e==null)return Rr;var n=(i,a,o)=>{t!==o&&e===i&&r(ek(a))};return Wn.on(uh,n),()=>{Wn.off(uh,n)}},[r,t,e])}function fk(){var e=ie();E.useEffect(()=>{e(ZT())},[e]),sk(),ck()}function dk(e,t,r,n,i,a){var o=L(v=>gT(v,e,t)),u=L(wc),l=L(bc),s=L(Ab),c=L(QT),f=c?.active,d=Qn();E.useEffect(()=>{if(!f&&l!=null&&u!=null){var v=Yl({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:d,graphicalItemId:void 0});Wn.emit(Ql,l,v,u)}},[f,r,o,i,n,u,l,s,a,d])}function sh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ch(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sh(Object(r),!0).forEach(function(n){vk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vk(e,t,r){return(t=pk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pk(e){var t=hk(e,"string");return typeof t=="symbol"?t:t+""}function hk(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 mk(e){return e.dataKey}function yk(e,t){return b.isValidElement(e)?b.cloneElement(e,t):typeof e=="function"?b.createElement(e,t):b.createElement(WE,t)}var fh=[],gk={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 N0(e){var t,r,n=$e(e,gk),{active:i,allowEscapeViewBox:a,animationDuration:o,animationEasing:u,content:l,filterNull:s,isAnimationActive:c,offset:f,payloadUniqBy:d,position:v,reverseDirection:p,useTranslate3d:m,wrapperStyle:h,cursor:y,shared:g,trigger:w,defaultIndex:x,portal:P,axisId:O}=n,S=ie(),_=typeof x=="number"?String(x):x;E.useEffect(()=>{S(hI({shared:g,trigger:w,axisId:O,active:i,defaultIndex:_}))},[S,g,w,O,i,_]);var M=Qn(),N=yg(),j=sI(g),{activeIndex:k,isActive:C}=(t=L(Le=>xT(Le,j,w,_)))!==null&&t!==void 0?t:{},z=L(Le=>wT(Le,j,w,_)),U=L(Le=>T0(Le,j,w,_)),W=L(Le=>bT(Le,j,w,_)),B=z,H=UT(),q=(r=i??C)!==null&&r!==void 0?r:!1,[be,he]=py([B,q]),ke=j==="axis"?U:void 0;dk(j,w,W,ke,k,q);var Qe=P??H;if(Qe==null||M==null||j==null)return null;var Re=B??fh;q||(Re=fh),s&&Re.length&&(Re=ly(Re.filter(Le=>Le.value!=null&&(Le.hide!==!0||n.includeHidden)),d,mk));var Ct=Re.length>0,fr=b.createElement(YE,{allowEscapeViewBox:a,animationDuration:o,animationEasing:u,isAnimationActive:c,active:q,coordinate:W,hasPayload:Ct,offset:f,position:v,reverseDirection:p,useTranslate3d:m,viewBox:M,wrapperStyle:h,lastBoundingBox:be,innerRef:he,hasPortalFromProps:!!P},yk(l,ch(ch({},n),{},{payload:Re,label:ke,active:q,activeIndex:k,coordinate:W,accessibilityLayer:N})));return b.createElement(b.Fragment,null,Em.createPortal(fr,Qe),q&&b.createElement(KT,{cursor:y,tooltipEventType:j,coordinate:W,payload:Re,index:k}))}var vi=e=>null;vi.displayName="Cell";function bk(e,t,r){return(t=wk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wk(e){var t=xk(e,"string");return typeof t=="symbol"?t:t+""}function xk(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 Ok{constructor(t){bk(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 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 Pk(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){Ek(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 Ek(e,t,r){return(t=Sk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=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 _k={cacheSize:2e3,enableCache:!0},$0=Pk({},_k),vh=new Ok($0.cacheSize),Ck={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ph="recharts_measurement_span";function jk(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 hh=(e,t)=>{try{var r=document.getElementById(ph);r||(r=document.createElement("span"),r.setAttribute("id",ph),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,Ck,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},_n=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ei.isSsr)return{width:0,height:0};if(!$0.enableCache)return hh(t,r);var n=jk(t,r),i=vh.get(n);if(i)return i;var a=hh(t,r);return vh.set(n,a),a},R0;function Ik(e,t,r){return(t=Tk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tk(e){var t=kk(e,"string");return typeof t=="symbol"?t:t+""}function kk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Mk=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Dk=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Nk={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},$k=["cm","mm","pt","pc","in","Q","px"];function Rk(e){return $k.includes(e)}var Gr="NaN";function Lk(e,t){return e*Nk[t]}class Ne{static parse(t){var r,[,n,i]=(r=Dk.exec(t))!==null&&r!==void 0?r:[];return n==null?Ne.NaN:new Ne(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,mt(t)&&(this.unit=""),r!==""&&!Mk.test(r)&&(this.num=NaN,this.unit=""),Rk(r)&&(this.num=Lk(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Ne(NaN,""):new Ne(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Ne(NaN,""):new Ne(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ne(NaN,""):new Ne(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ne(NaN,""):new Ne(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return mt(this.num)}}R0=Ne;Ik(Ne,"NaN",new R0(NaN,""));function L0(e){if(e==null||e.includes(Gr))return Gr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=mh.exec(t))!==null&&r!==void 0?r:[],o=Ne.parse(n??""),u=Ne.parse(a??""),l=i==="*"?o.multiply(u):o.divide(u);if(l.isNaN())return Gr;t=t.replace(mh,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,c,f,d]=(s=yh.exec(t))!==null&&s!==void 0?s:[],v=Ne.parse(c??""),p=Ne.parse(d??""),m=f==="+"?v.add(p):v.subtract(p);if(m.isNaN())return Gr;t=t.replace(yh,m.toString())}return t}var gh=/\(([^()]*)\)/;function zk(e){for(var t=e,r;(r=gh.exec(t))!=null;){var[,n]=r;t=t.replace(gh,L0(n))}return t}function Bk(e){var t=e.replace(/\s+/g,"");return t=zk(t),t=L0(t),t}function Fk(e){try{return Bk(e)}catch{return Gr}}function Zu(e){var t=Fk(e.slice(5,-1));return t===Gr?"":t}var Wk=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],qk=["dx","dy","angle","className","breakAll"];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 bh(e,t){if(e==null)return{};var r,n,i=Kk(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 Kk(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 z0=/[ \f\n\r\t\v\u2028\u2029]+/,B0=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];pe(t)||(r?i=t.toString().split(""):i=t.toString().split(z0));var a=i.map(u=>({word:u,width:_n(u,n).width})),o=r?0:_n(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function Uk(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var F0=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:u}=a,l=i[i.length-1];if(l&&u!=null&&(t==null||n||l.width+u+r<Number(t)))l.words.push(o),l.width+=u+r;else{var s={words:[o],width:u};i.push(s)}return i},[]),W0=e=>e.reduce((t,r)=>t.width>r.width?t:r),Vk="…",wh=(e,t,r,n,i,a,o,u)=>{var l=e.slice(0,t),s=B0({breakAll:r,style:n,children:l+Vk});if(!s)return[!1,[]];var c=F0(s.wordsWithComputedWidth,a,o,u),f=c.length>i||W0(c).width>Number(a);return[f,c]},Hk=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:l}=e,s=R(a),c=String(o),f=F0(t,n,r,i);if(!s||i)return f;var d=f.length>a||W0(f).width>Number(n);if(!d)return f;for(var v=0,p=c.length-1,m=0,h;v<=p&&m<=c.length-1;){var y=Math.floor((v+p)/2),g=y-1,[w,x]=wh(c,g,l,u,a,n,r,i),[P]=wh(c,y,l,u,a,n,r,i);if(!w&&!P&&(v=y+1),w&&P&&(p=y-1),!w&&P){h=x;break}m++}return h||f},xh=e=>{var t=pe(e)?[]:e.toString().split(z0);return[{words:t,width:void 0}]},Gk=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!ei.isSsr){var u,l,s=B0({breakAll:a,children:n,style:i});if(s){var{wordsWithComputedWidth:c,spaceWidth:f}=s;u=c,l=f}else return xh(n);return Hk({breakAll:a,children:n,maxLines:o,style:i},u,l,t,!!r)}return xh(n)},q0="#808080",Yk={angle:0,breakAll:!1,capHeight:"0.71em",fill:q0,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},pi=E.forwardRef((e,t)=>{var r=$e(e,Yk),{x:n,y:i,lineHeight:a,capHeight:o,fill:u,scaleToFit:l,textAnchor:s,verticalAnchor:c}=r,f=bh(r,Wk),d=E.useMemo(()=>Gk({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:v,dy:p,angle:m,className:h,breakAll:y}=f,g=bh(f,qk);if(!At(n)||!At(i)||d.length===0)return null;var w=Number(n)+(R(v)?v:0),x=Number(i)+(R(p)?p:0);if(!V(w)||!V(x))return null;var P;switch(c){case"start":P=Zu("calc(".concat(o,")"));break;case"middle":P=Zu("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:P=Zu("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[],S=d[0];if(l&&S!=null){var _=S.width,{width:M}=f;O.push("scale(".concat(R(M)&&R(_)?M/_:1,")"))}return m&&O.push("rotate(".concat(m,", ").concat(w,", ").concat(x,")")),O.length&&(g.transform=O.join(" ")),b.createElement("text",es({},Ve(g),{ref:t,x:w,y:x,className:J("recharts-text",h),textAnchor:s,fill:u.includes("url")?q0:u}),d.map((N,j)=>{var k=N.words.join(y?"":" ");return b.createElement("tspan",{x:w,dy:j===0?P:a,key:"".concat(k,"-").concat(j)},k)}))});pi.displayName="Text";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 Ot(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){Xk(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 Xk(e,t,r){return(t=Zk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zk(e){var t=Qk(e,"string");return typeof t=="symbol"?t:t+""}function Qk(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 Jk=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:u,upperWidth:l,lowerWidth:s}=ks(t),c=a,f=a+(l-s)/2,d=(c+f)/2,v=(l+s)/2,p=c+l/2,m=u>=0?1:-1,h=m*n,y=m>0?"end":"start",g=m>0?"start":"end",w=l>=0?1:-1,x=w*n,P=w>0?"end":"start",O=w>0?"start":"end",S=i;if(r==="top"){var _={x:c+l/2,y:o-h,horizontalAnchor:"middle",verticalAnchor:y};return S&&(_.height=Math.max(o-S.y,0),_.width=l),_}if(r==="bottom"){var M={x:f+s/2,y:o+u+h,horizontalAnchor:"middle",verticalAnchor:g};return S&&(M.height=Math.max(S.y+S.height-(o+u),0),M.width=s),M}if(r==="left"){var N={x:d-x,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"};return S&&(N.width=Math.max(N.x-S.x,0),N.height=u),N}if(r==="right"){var j={x:d+v+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return S&&(j.width=Math.max(S.x+S.width-j.x,0),j.height=u),j}var k=S?{width:v,height:u}:{};return r==="insideLeft"?Ot({x:d+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"},k):r==="insideRight"?Ot({x:d+v-x,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"},k):r==="insideTop"?Ot({x:c+l/2,y:o+h,horizontalAnchor:"middle",verticalAnchor:g},k):r==="insideBottom"?Ot({x:f+s/2,y:o+u-h,horizontalAnchor:"middle",verticalAnchor:y},k):r==="insideTopLeft"?Ot({x:c+x,y:o+h,horizontalAnchor:O,verticalAnchor:g},k):r==="insideTopRight"?Ot({x:c+l-x,y:o+h,horizontalAnchor:P,verticalAnchor:g},k):r==="insideBottomLeft"?Ot({x:f+x,y:o+u-h,horizontalAnchor:O,verticalAnchor:y},k):r==="insideBottomRight"?Ot({x:f+s-x,y:o+u-h,horizontalAnchor:P,verticalAnchor:y},k):r&&typeof r=="object"&&(R(r.x)||_r(r.x))&&(R(r.y)||_r(r.y))?Ot({x:a+Fe(r.x,v),y:o+Fe(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},k):Ot({x:p,y:o+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},k)},eM=["labelRef"],tM=["content"];function Ph(e,t){if(e==null)return{};var r,n,i=rM(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 rM(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 Eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function An(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(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=aM(e,"string");return typeof t=="symbol"?t:t+""}function aM(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 K0=E.createContext(null),oM=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:u}=e,l=E.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return b.createElement(K0.Provider,{value:l},u)},U0=()=>{var e=E.useContext(K0),t=Qn();return e||(t?ks(t):void 0)},uM=E.createContext(null),lM=()=>{var e=E.useContext(uM),t=L(Tb);return e||t},sM=e=>{var{value:t,formatter:r}=e,n=pe(e.children)?t:e.children;return typeof r=="function"?r(n):n},af=e=>e!=null&&typeof e=="function",cM=(e,t)=>{var r=Ce(t-e),n=Math.min(Math.abs(t-e),360);return r*n},fM=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:u,cy:l,innerRadius:s,outerRadius:c,startAngle:f,endAngle:d,clockWise:v}=i,p=(s+c)/2,m=cM(f,d),h=m>=0?1:-1,y,g;switch(t){case"insideStart":y=f+h*a,g=v;break;case"insideEnd":y=d-h*a,g=!v;break;case"end":y=d+h*a,g=v;break;default:throw new Error("Unsupported position ".concat(t))}g=m<=0?g:!g;var w=ye(u,l,p,y),x=ye(u,l,p,y+(g?1:-1)*359),P="M".concat(w.x,",").concat(w.y,`
|
|
103
|
+
A`).concat(p,",").concat(p,",0,1,").concat(g?0:1,`,
|
|
104
|
+
`).concat(x.x,",").concat(x.y),O=pe(e.id)?Cn("recharts-radial-line-"):e.id;return b.createElement("text",It({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",o)}),b.createElement("defs",null,b.createElement("path",{id:O,d:P})),b.createElement("textPath",{xlinkHref:"#".concat(O)},r))},dM=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:l}=e,s=(u+l)/2;if(r==="outside"){var{x:c,y:f}=ye(n,i,o+t,s);return{x:c,y:f,textAnchor:c>=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:p}=ye(n,i,d,s);return{x:v,y:p,textAnchor:"middle",verticalAnchor:"middle"}},Wi=e=>e!=null&&"cx"in e&&R(e.cx),vM={angle:0,offset:5,zIndex:je.label,position:"middle",textBreakAll:!1};function pM(e){if(!Wi(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 Qt(e){var t=$e(e,vM),{viewBox:r,parentViewBox:n,position:i,value:a,children:o,content:u,className:l="",textBreakAll:s,labelRef:c}=t,f=lM(),d=U0(),v=i==="center"?d:f??d,p,m,h;r==null?p=v:Wi(r)?p=r:p=ks(r);var y=pM(p);if(!p||pe(a)&&pe(o)&&!E.isValidElement(u)&&typeof u!="function")return null;var g=An(An({},t),{},{viewBox:p});if(E.isValidElement(u)){var{labelRef:w}=g,x=Ph(g,eM);return E.cloneElement(u,x)}if(typeof u=="function"){var{content:P}=g,O=Ph(g,tM);if(m=E.createElement(u,O),E.isValidElement(m))return m}else m=sM(t);var S=Ve(t);if(Wi(p)){if(i==="insideStart"||i==="insideEnd"||i==="end")return fM(t,i,m,S,p);h=dM(p,t.offset,t.position)}else{if(!y)return null;var _=Jk({viewBox:y,position:i,offset:t.offset,parentViewBox:Wi(n)?void 0:n});h=An(An({x:_.x,y:_.y,textAnchor:_.horizontalAnchor,verticalAnchor:_.verticalAnchor},_.width!==void 0?{width:_.width}:{}),_.height!==void 0?{height:_.height}:{})}return b.createElement(vt,{zIndex:t.zIndex},b.createElement(pi,It({ref:c,className:J("recharts-label",l)},S,h,{textAnchor:Uk(S.textAnchor)?S.textAnchor:h.textAnchor,breakAll:s}),m))}Qt.displayName="Label";var hM=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?b.createElement(Qt,It({key:"label-implicit"},n)):At(e)?b.createElement(Qt,It({key:"label-implicit",value:e},n)):E.isValidElement(e)?e.type===Qt?E.cloneElement(e,An({key:"label-implicit"},n)):b.createElement(Qt,It({key:"label-implicit",content:e},n)):af(e)?b.createElement(Qt,It({key:"label-implicit",content:e},n)):e&&typeof e=="object"?b.createElement(Qt,It({},e,{key:"label-implicit"},n)):null};function mM(e){var{label:t,labelRef:r}=e,n=U0();return hM(t,n,r)||null}var Qu={},Ju={},Sh;function yM(){return Sh||(Sh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t}(Ju)),Ju}var el={},Ah;function gM(){return Ah||(Ah=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t}(el)),el}var _h;function bM(){return _h||(_h=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yM(),r=gM(),n=ws();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i}(Qu)),Qu}var tl,Ch;function wM(){return Ch||(Ch=1,tl=bM().last),tl}var xM=wM();const OM=Bt(xM);var PM=["valueAccessor"],EM=["dataKey","clockWise","id","textBreakAll","zIndex"];function Ca(){return Ca=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},Ca.apply(null,arguments)}function jh(e,t){if(e==null)return{};var r,n,i=SM(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 SM(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)?OM(e.value):e.value,V0=E.createContext(void 0),H0=V0.Provider,G0=E.createContext(void 0),_M=G0.Provider;function CM(){return E.useContext(V0)}function jM(){return E.useContext(G0)}function qi(e){var{valueAccessor:t=AM}=e,r=jh(e,PM),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:u}=r,l=jh(r,EM),s=CM(),c=jM(),f=s||c;return!f||!f.length?null:b.createElement(vt,{zIndex:u??je.label},b.createElement(We,{className:"recharts-label-list"},f.map((d,v)=>{var p,m=pe(n)?t(d,v):re(d.payload,n),h=pe(a)?{}:{id:"".concat(a,"-").concat(v)};return b.createElement(Qt,Ca({key:"label-".concat(v)},Ve(d),l,h,{fill:(p=r.fill)!==null&&p!==void 0?p:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:o,viewBox:d.viewBox,index:v,zIndex:0}))})))}qi.displayName="LabelList";function of(e){var{label:t}=e;return t?t===!0?b.createElement(qi,{key:"labelList-implicit"}):b.isValidElement(t)||af(t)?b.createElement(qi,{key:"labelList-implicit",content:t}):typeof t=="object"?b.createElement(qi,Ca({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var Y0=e=>e.graphicalItems.polarItems,IM=A([se,ui],Sc),Oo=A([Y0,ve,IM],Ac),TM=A([Oo],_c),Po=A([TM,uo],Cc),kM=A([Po,ve,Oo],Ic);A([Po,ve,Oo],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,o=re(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:re(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var Ih=()=>{},MM=A([Po,ve,Oo,go,se],Dc),DM=A([ve,kc,Mc,Ih,MM,Ih,X,se],Nc),X0=A([ve,X,Po,kM,oi,se,DM],$c),NM=A([X0,sn,lr],zc),$M=A([ve,X0,NM,se],Fc);A([lr,$M],Mb);var RM={radiusAxis:{},angleAxis:{}},Z0=Ze({name:"polarAxis",initialState:RM,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:sL,removeRadiusAxis:cL,addAngleAxis:fL,removeAngleAxis:dL}=Z0.actions,LM=Z0.reducer;function Q0(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function Th(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 kh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Th(Object(r),!0).forEach(function(n){zM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zM(e,t,r){return(t=BM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BM(e){var t=FM(e,"string");return typeof t=="symbol"?t:t+""}function FM(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 WM=(e,t)=>t,uf=A([Y0,WM],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),qM=[],lf=(e,t,r)=>r?.length===0?qM:r,J0=A([uo,uf,lf],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>kh(kh({},t.presentationProps),a.props))),i!=null)return i}}),KM=A([J0,uf,lf],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,o=re(n,t.nameKey,t.name),u;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?u=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?u=n.fill:u=t.fill,{value:Xn(o,t.dataKey),color:u,payload:n,type:t.legendType}})}),UM=A([J0,uf,lf,Oe],(e,t,r,n)=>{if(!(t==null||e==null))return GD({offset:n,pieSettings:t,displayedData:e,cells:r})}),Di={exports:{}},ee={};/** @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 Mh;function VM(){if(Mh)return ee;Mh=1;var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,l=60113,s=60120,c=60115,f=60116,d=60121,v=60122,p=60117,m=60129,h=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"),l=y("react.suspense"),s=y("react.suspense_list"),c=y("react.memo"),f=y("react.lazy"),d=y("react.block"),v=y("react.server.block"),p=y("react.fundamental"),m=y("react.debug_trace_mode"),h=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 l:case s:return C;default:switch(C=C&&C.$$typeof,C){case o:case u:case f:case c:case a:return C;default:return z}}case t:return z}}}var w=a,x=e,P=u,O=r,S=f,_=c,M=t,N=i,j=n,k=l;return ee.ContextConsumer=o,ee.ContextProvider=w,ee.Element=x,ee.ForwardRef=P,ee.Fragment=O,ee.Lazy=S,ee.Memo=_,ee.Portal=M,ee.Profiler=N,ee.StrictMode=j,ee.Suspense=k,ee.isAsyncMode=function(){return!1},ee.isConcurrentMode=function(){return!1},ee.isContextConsumer=function(C){return g(C)===o},ee.isContextProvider=function(C){return g(C)===a},ee.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},ee.isForwardRef=function(C){return g(C)===u},ee.isFragment=function(C){return g(C)===r},ee.isLazy=function(C){return g(C)===f},ee.isMemo=function(C){return g(C)===c},ee.isPortal=function(C){return g(C)===t},ee.isProfiler=function(C){return g(C)===i},ee.isStrictMode=function(C){return g(C)===n},ee.isSuspense=function(C){return g(C)===l},ee.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===i||C===m||C===n||C===l||C===s||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===f||C.$$typeof===c||C.$$typeof===a||C.$$typeof===o||C.$$typeof===u||C.$$typeof===p||C.$$typeof===d||C[0]===v)},ee.typeOf=g,ee}var te={};/** @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 Dh;function HM(){return Dh||(Dh=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,l=60113,s=60120,c=60115,f=60116,d=60121,v=60122,p=60117,m=60129,h=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"),l=y("react.suspense"),s=y("react.suspense_list"),c=y("react.memo"),f=y("react.lazy"),d=y("react.block"),v=y("react.server.block"),p=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),m=y("react.debug_trace_mode"),y("react.offscreen"),h=y("react.legacy_hidden")}var g=!1;function w(D){return!!(typeof D=="string"||typeof D=="function"||D===r||D===i||D===m||D===n||D===l||D===s||D===h||g||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===c||D.$$typeof===a||D.$$typeof===o||D.$$typeof===u||D.$$typeof===p||D.$$typeof===d||D[0]===v))}function x(D){if(typeof D=="object"&&D!==null){var T=D.$$typeof;switch(T){case e:var we=D.type;switch(we){case r:case i:case n:case l:case s:return we;default:var Z=we&&we.$$typeof;switch(Z){case o:case u:case f:case c:case a:return Z;default:return T}}case t:return T}}}var P=o,O=a,S=e,_=u,M=r,N=f,j=c,k=t,C=i,z=n,U=l,W=!1,B=!1;function H(D){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(D){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function be(D){return x(D)===o}function he(D){return x(D)===a}function ke(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Qe(D){return x(D)===u}function Re(D){return x(D)===r}function Ct(D){return x(D)===f}function fr(D){return x(D)===c}function Le(D){return x(D)===t}function pn(D){return x(D)===i}function I(D){return x(D)===n}function K(D){return x(D)===l}te.ContextConsumer=P,te.ContextProvider=O,te.Element=S,te.ForwardRef=_,te.Fragment=M,te.Lazy=N,te.Memo=j,te.Portal=k,te.Profiler=C,te.StrictMode=z,te.Suspense=U,te.isAsyncMode=H,te.isConcurrentMode=q,te.isContextConsumer=be,te.isContextProvider=he,te.isElement=ke,te.isForwardRef=Qe,te.isFragment=Re,te.isLazy=Ct,te.isMemo=fr,te.isPortal=Le,te.isProfiler=pn,te.isStrictMode=I,te.isSuspense=K,te.isValidElementType=w,te.typeOf=x}()),te}var Nh;function GM(){return Nh||(Nh=1,process.env.NODE_ENV==="production"?Di.exports=VM():Di.exports=HM()),Di.exports}var YM=GM(),$h=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",Rh=null,rl=null,ew=e=>{if(e===Rh&&Array.isArray(rl))return rl;var t=[];return E.Children.forEach(e,r=>{pe(r)||(YM.isFragment(r)?t=t.concat(ew(r.props.children)):t.push(r))}),rl=t,Rh=e,t};function Eo(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>$h(i)):n=[$h(t)],ew(e).forEach(i=>{var a=nr(i,"type.displayName")||nr(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var XM=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,nl={},Lh;function ZM(){return Lh||(Lh=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}(nl)),nl}var il,zh;function QM(){return zh||(zh=1,il=ZM().isPlainObject),il}var JM=QM();const eD=Bt(JM);var Bh,Fh,Wh,qh,Kh;function Uh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(r),!0).forEach(function(n){tD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tD(e,t,r){return(t=rD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rD(e){var t=nD(e,"string");return typeof t=="symbol"?t:t+""}function nD(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 ja(){return ja=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},ja.apply(null,arguments)}function Pn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Hh=(e,t,r,n,i)=>{var a=r-n,o;return o=fe(Bh||(Bh=Pn(["M ",",",""])),e,t),o+=fe(Fh||(Fh=Pn(["L ",",",""])),e+r,t),o+=fe(Wh||(Wh=Pn(["L ",",",""])),e+r-a/2,t+i),o+=fe(qh||(qh=Pn(["L ",",",""])),e+r-a/2-n,t+i),o+=fe(Kh||(Kh=Pn(["L ",","," Z"])),e,t),o},iD={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},aD=e=>{var t=$e(e,iD),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:u}=t,{animationEasing:l,animationDuration:s,animationBegin:c,isUpdateAnimationActive:f}=t,d=E.useRef(null),[v,p]=E.useState(-1),m=E.useRef(i),h=E.useRef(a),y=E.useRef(o),g=E.useRef(r),w=E.useRef(n),x=ri(e,"trapezoid-");if(E.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var z=d.current.getTotalLength();z&&p(z)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var P=J("recharts-trapezoid",u);if(!f)return b.createElement("g",null,b.createElement("path",ja({},Ve(t),{className:P,d:Hh(r,n,i,a,o)})));var O=m.current,S=h.current,_=y.current,M=g.current,N=w.current,j="0px ".concat(v===-1?1:v,"px"),k="".concat(v,"px 0px"),C=gg(["strokeDasharray"],s,l);return b.createElement(ti,{animationId:x,key:x,canBegin:v>0,duration:s,easing:l,isActive:f,begin:c},z=>{var U=me(O,i,z),W=me(S,a,z),B=me(_,o,z),H=me(M,r,z),q=me(N,n,z);d.current&&(m.current=U,h.current=W,y.current=B,g.current=H,w.current=q);var be=z>0?{transition:C,strokeDasharray:k}:{strokeDasharray:j};return b.createElement("path",ja({},Ve(t),{className:P,d:Hh(H,q,U,W,B),ref:d,style:Vh(Vh({},be),t.style)}))})},oD=["option","shapeType","activeClassName"];function uD(e,t){if(e==null)return{};var r,n,i=lD(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 lD(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 Gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gh(Object(r),!0).forEach(function(n){sD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sD(e,t,r){return(t=cD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cD(e){var t=fD(e,"string");return typeof t=="symbol"?t:t+""}function fD(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){return Ia(Ia({},t),e)}function vD(e,t){return e==="symbols"}function Yh(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return b.createElement(Ls,r);case"trapezoid":return b.createElement(aD,r);case"sector":return b.createElement(Sg,r);case"symbols":if(vD(t))return b.createElement(gs,r);break;case"curve":return b.createElement(to,r);default:return null}}function pD(e){return E.isValidElement(e)?e.props:e}function sf(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,i=uD(e,oD),a;if(E.isValidElement(t))a=E.cloneElement(t,Ia(Ia({},i),pD(t)));else if(typeof t=="function")a=t(i,i.index);else if(eD(t)&&typeof t!="boolean"){var o=dD(t,i);a=b.createElement(Yh,{shapeType:r,elementProps:o})}else{var u=i;a=b.createElement(Yh,{shapeType:r,elementProps:u})}return i.isActive?b.createElement(We,{className:n},a):a}var So=(e,t,r)=>{var n=ie();return(i,a)=>o=>{e?.(i,a,o),n(Uc({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},Ao=e=>{var t=ie();return(r,n)=>i=>{e?.(r,n,i),t(c0())}},_o=(e,t,r)=>{var n=ie();return(i,a)=>o=>{e?.(i,a,o),n(d0({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function cf(e){var{tooltipEntrySettings:t}=e,r=ie(),n=Ge(),i=E.useRef(null);return E.useLayoutEffect(()=>{n||(i.current===null?r(dI(t)):i.current!==t&&r(vI({prev:i.current,next:t})),i.current=t)},[t,r,n]),E.useLayoutEffect(()=>()=>{i.current&&(r(pI(i.current)),i.current=null)},[r]),null}function tw(e){var{legendPayload:t}=e,r=ie(),n=Ge(),i=E.useRef(null);return E.useLayoutEffect(()=>{n||(i.current===null?r(pg(t)):i.current!==t&&r(hg({prev:i.current,next:t})),i.current=t)},[r,n,t]),E.useLayoutEffect(()=>()=>{i.current&&(r(mg(i.current)),i.current=null)},[r]),null}function hD(e){var{legendPayload:t}=e,r=ie(),n=L(X),i=E.useRef(null);return E.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(i.current===null?r(pg(t)):i.current!==t&&r(hg({prev:i.current,next:t})),i.current=t)},[r,n,t]),E.useLayoutEffect(()=>()=>{i.current&&(r(mg(i.current)),i.current=null)},[r]),null}var al,mD=()=>{var[e]=b.useState(()=>Cn("uid-"));return e},yD=(al=b.useId)!==null&&al!==void 0?al:mD;function gD(e,t){var r=yD();return t||(e?"".concat(e,"-").concat(r):r)}var bD=E.createContext(void 0),ff=e=>{var{id:t,type:r,children:n}=e,i=gD("recharts-".concat(r),t);return b.createElement(bD.Provider,{value:i},n(i))},wD={cartesianItems:[],polarItems:[]},rw=Ze({name:"graphicalItems",initialState:wD,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ue()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ht(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:ue()},removeCartesianGraphicalItem:{reducer(e,t){var r=ht(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ue()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ue()},removePolarGraphicalItem:{reducer(e,t){var r=ht(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ue()}}}),{addCartesianGraphicalItem:xD,replaceCartesianGraphicalItem:OD,removeCartesianGraphicalItem:PD,addPolarGraphicalItem:ED,removePolarGraphicalItem:SD}=rw.actions,AD=rw.reducer,_D=e=>{var t=ie(),r=E.useRef(null);return E.useLayoutEffect(()=>{r.current===null?t(xD(e)):r.current!==e&&t(OD({prev:r.current,next:e})),r.current=e},[t,e]),E.useLayoutEffect(()=>()=>{r.current&&(t(PD(r.current)),r.current=null)},[t]),null},nw=E.memo(_D);function CD(e){var t=ie();return E.useLayoutEffect(()=>(t(ED(e)),()=>{t(SD(e))}),[t,e]),null}var jD=["key"],ID=["onMouseEnter","onClick","onMouseLeave"],TD=["id"],kD=["id"];function Xh(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?Xh(Object(r),!0).forEach(function(n){MD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MD(e,t,r){return(t=DD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DD(e){var t=ND(e,"string");return typeof t=="symbol"?t:t+""}function ND(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 ar(){return ar=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},ar.apply(null,arguments)}function Co(e,t){if(e==null)return{};var r,n,i=$D(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 $D(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 RD(e){var t=E.useMemo(()=>Eo(e.children,vi),[e.children]),r=L(n=>KM(n,e.id,t));return r==null?null:b.createElement(hD,{legendPayload:r})}var LD=b.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:o,name:u,hide:l,tooltipType:s,id:c}=e,f={dataDefinedOnItem:n.map(d=>d.tooltipPayload),getPosition:d=>{var v;return(v=n[Number(d)])===null||v===void 0?void 0:v.tooltipPosition},settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:r,name:Xn(u,t),hide:l,type:s,color:o,unit:"",graphicalItemId:c}};return b.createElement(cf,{tooltipEntrySettings:f})}),zD=(e,t)=>e>t?"start":e<t?"end":"middle",BD=(e,t,r)=>Fe(typeof t=="function"?t(e):t,r,r*.8),FD=(e,t,r)=>{var{top:n,left:i,width:a,height:o}=t,u=Og(a,o),l=i+Fe(e.cx,a,a/2),s=n+Fe(e.cy,o,o/2),c=Fe(e.innerRadius,u,0),f=BD(r,e.outerRadius,u),d=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:l,cy:s,innerRadius:c,outerRadius:f,maxRadius:d}},WD=(e,t)=>{var r=Ce(t-e),n=Math.min(Math.abs(t-e),360);return r*n},qD=(e,t)=>{if(b.isValidElement(e))return b.cloneElement(e,t);if(typeof e=="function")return e(t);var r=J("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,i=Co(t,jD);return b.createElement(to,ar({},i,{type:"linear",className:r}))},KD=(e,t,r)=>{if(b.isValidElement(e))return b.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),b.isValidElement(n)))return n;var i=J("recharts-pie-label-text",Q0(e));return b.createElement(pi,ar({},t,{alignmentBaseline:"middle",className:i}),n)};function UD(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:o}=r;if(!n||!i||!t)return null;var u=st(r),l=Zr(i),s=Zr(a),c=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((d,v)=>{var p=(d.startAngle+d.endAngle)/2,m=ye(d.cx,d.cy,d.outerRadius+c,p),h=de(de(de(de({},u),d),{},{stroke:"none"},l),{},{index:v,textAnchor:zD(m.x,d.cx)},m),y=de(de(de(de({},u),d),{},{fill:"none",stroke:d.fill},s),{},{index:v,points:[ye(d.cx,d.cy,d.outerRadius,p),m],key:"line"});return b.createElement(vt,{zIndex:je.label,key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(v)},b.createElement(We,null,a&&qD(a,y),KD(i,h,re(d,o))))});return b.createElement(We,{className:"recharts-pie-labels"},f)}function VD(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?b.createElement(of,{label:i}):b.createElement(UD,{sectors:t,props:r,showLabels:n})}function HD(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i,shape:a,id:o}=e,u=L(ir),l=L(Zc),s=L(eT),{onMouseEnter:c,onClick:f,onMouseLeave:d}=i,v=Co(i,ID),p=So(c,i.dataKey,o),m=Ao(d),h=_o(f,i.dataKey,o);return t==null||t.length===0?null:b.createElement(b.Fragment,null,t.map((y,g)=>{if(y?.startAngle===0&&y?.endAngle===0&&t.length!==1)return null;var w=s==null||s===o,x=String(g)===u&&(l==null||i.dataKey===l)&&w,P=u?n:null,O=r&&x?r:P,S=de(de({},y),{},{stroke:y.stroke,tabIndex:-1,[eg]:g,[js]:o});return b.createElement(We,ar({key:"sector-".concat(y?.startAngle,"-").concat(y?.endAngle,"-").concat(y.midAngle,"-").concat(g),tabIndex:-1,className:"recharts-pie-sector"},Un(v,y,g),{onMouseEnter:p(y,g),onMouseLeave:m(y,g),onClick:h(y,g)}),b.createElement(sf,ar({option:a??O,index:g,shapeType:"sector",isActive:x},S)))}))}function GD(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:o,startAngle:u,endAngle:l,dataKey:s,nameKey:c,tooltipType:f}=r,d=Math.abs(r.minAngle),v=WD(u,l),p=Math.abs(v),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,h=n.filter(O=>re(O,s,0)!==0).length,y=(p>=360?h:h-1)*m,g=p-h*d-y,w=n.reduce((O,S)=>{var _=re(S,s,0);return O+(R(_)?_:0)},0),x;if(w>0){var P;x=n.map((O,S)=>{var _=re(O,s,0),M=re(O,c,S),N=FD(r,a,O),j=(R(_)?_:0)/w,k,C=de(de({},O),i&&i[S]&&i[S].props);S?k=P.endAngle+Ce(v)*m*(_!==0?1:0):k=u;var z=k+Ce(v)*((_!==0?d:0)+j*g),U=(k+z)/2,W=(N.innerRadius+N.outerRadius)/2,B=[{name:M,value:_,payload:C,dataKey:s,type:f,graphicalItemId:r.id}],H=ye(N.cx,N.cy,W,U);return P=de(de(de(de({},r.presentationProps),{},{percent:j,cornerRadius:typeof o=="string"?parseFloat(o):o,name:M,tooltipPayload:B,midAngle:U,middleRadius:W,tooltipPosition:H},C),N),{},{value:_,dataKey:s,startAngle:k,endAngle:z,payload:C,paddingAngle:Ce(v)*m}),P})}return x}function YD(e){var{showLabels:t,sectors:r,children:n}=e,i=E.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return b.createElement(_M,{value:t?i:void 0},n)}function XD(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:l,activeShape:s,inactiveShape:c,onAnimationStart:f,onAnimationEnd:d}=t,v=ri(t,"recharts-pie-"),p=r.current,[m,h]=E.useState(!1),y=E.useCallback(()=>{typeof d=="function"&&d(),h(!1)},[d]),g=E.useCallback(()=>{typeof f=="function"&&f(),h(!0)},[f]);return b.createElement(YD,{showLabels:!m,sectors:i},b.createElement(ti,{animationId:v,begin:o,duration:u,isActive:a,easing:l,onAnimationStart:g,onAnimationEnd:y,key:v},w=>{var x,P=[],O=i&&i[0],S=(x=O?.startAngle)!==null&&x!==void 0?x:0;return i?.forEach((_,M)=>{var N=p&&p[M],j=M>0?nr(_,"paddingAngle",0):0;if(N){var k=me(N.endAngle-N.startAngle,_.endAngle-_.startAngle,w),C=de(de({},_),{},{startAngle:S+j,endAngle:S+k+j});P.push(C),S=C.endAngle}else{var{endAngle:z,startAngle:U}=_,W=me(0,z-U,w),B=de(de({},_),{},{startAngle:S+j,endAngle:S+W+j});P.push(B),S=B.endAngle}}),r.current=P,b.createElement(We,null,b.createElement(HD,{sectors:P,activeShape:s,inactiveShape:c,allOtherPieProps:t,shape:t.shape,id:n}))}),b.createElement(VD,{showLabels:!m,sectors:i,props:t}),t.children)}var ZD={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:je.area};function QD(e){var{id:t}=e,r=Co(e,TD),{hide:n,className:i,rootTabIndex:a}=e,o=E.useMemo(()=>Eo(e.children,vi),[e.children]),u=L(c=>UM(c,t,o)),l=E.useRef(null),s=J("recharts-pie",i);return n||u==null?(l.current=null,b.createElement(We,{tabIndex:a,className:s})):b.createElement(vt,{zIndex:e.zIndex},b.createElement(LD,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:u,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),b.createElement(We,{tabIndex:a,className:s},b.createElement(XD,{props:de(de({},r),{},{sectors:u}),previousSectorsRef:l,id:t})))}function iw(e){var t=$e(e,ZD),{id:r}=t,n=Co(t,kD),i=st(n);return b.createElement(ff,{id:r,type:"pie"},a=>b.createElement(b.Fragment,null,b.createElement(CD,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),b.createElement(RD,ar({},n,{id:a})),b.createElement(QD,ar({},n,{id:a}))))}iw.displayName="Pie";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 Qh(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){JD(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 JD(e,t,r){return(t=eN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eN(e){var t=tN(e,"string");return typeof t=="symbol"?t:t+""}function tN(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 aw=0,rN={xAxis:{},yAxis:{},zAxis:{}},ow=Ze({name:"cartesianAxis",initialState:rN,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:ue()},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:ue()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:ue()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:ue()},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:ue()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:ue()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:ue()},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:ue()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:ue()},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]=Qh(Qh({},i),{},{width:n,widthHistory:u})}}}}),{addXAxis:nN,replaceXAxis:iN,removeXAxis:aN,addYAxis:oN,replaceYAxis:uN,removeYAxis:lN,addZAxis:vL,replaceZAxis:pL,removeZAxis:hL,updateYAxisWidth:sN}=ow.actions,cN=ow.reducer,fN=A([Oe],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),dN=A([fN,Wt,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)}}),df=()=>L(dN),vN=()=>L(aT),Jh=(e,t,r)=>{var n=r??e;if(!pe(n))return Fe(n,t,0)},pN=(e,t,r)=>{var n={},i=e.filter(vo),a=e.filter(s=>s.stackId==null),o=i.reduce((s,c)=>{var f=s[c.stackId];return f==null&&(f=[]),f.push(c),s[c.stackId]=f,s},n),u=Object.entries(o).map(s=>{var c,[f,d]=s,v=d.map(m=>m.dataKey),p=Jh(t,r,(c=d[0])===null||c===void 0?void 0:c.barSize);return{stackId:f,dataKeys:v,barSize:p}}),l=a.map(s=>{var c=[s.dataKey].filter(d=>d!=null),f=Jh(t,r,s.barSize);return{stackId:void 0,dataKeys:c,barSize:f}});return[...u,...l]};function em(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 Ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(n){hN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hN(e,t,r){return(t=mN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mN(e){var t=yN(e,"string");return typeof t=="symbol"?t:t+""}function yN(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 gN(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var u=Fe(e,r,0,!0),l,s=[];if(V((a=n[0])===null||a===void 0?void 0:a.barSize)){var c=!1,f=r/o,d=n.reduce((g,w)=>g+(w.barSize||0),0);d+=(o-1)*u,d>=r&&(d-=(o-1)*u,u=0),d>=r&&f>0&&(c=!0,f*=.9,d=o*f);var v=(r-d)/2>>0,p={offset:v-u,size:0};l=n.reduce((g,w)=>{var x,P={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:p.offset+p.size+u,size:c?f:(x=w.barSize)!==null&&x!==void 0?x:0}},O=[...g,P];return p=P.position,O},s)}else{var m=Fe(t,r,0,!0);r-2*m-(o-1)*u<=0&&(u=0);var h=(r-2*m-(o-1)*u)/o;h>1&&(h>>=0);var y=V(i)?Math.min(h,i):h;l=n.reduce((g,w,x)=>[...g,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(h+u)*x+(h-y)/2,size:y}}],s)}return l}}var bN=(e,t,r,n,i,a,o)=>{var u=pe(o)?t:o,l=gN(r,n,i!==a?i:a,e,u);return i!==a&&l!=null&&(l=l.map(s=>Ni(Ni({},s),{},{position:Ni(Ni({},s.position),{},{offset:s.position.offset-i/2})}))),l},wN=(e,t)=>{var r=fo(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)}}}},xN=(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 ON(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&V(e.zIndex)?e.zIndex:t}var uw=e=>{var{chartData:t}=e,r=ie(),n=Ge();return E.useEffect(()=>n?()=>{}:(r(Jl(t)),()=>{r(Jl(void 0))}),[t,r,n]),null},PN=e=>{var{computedData:t}=e,r=ie();return E.useEffect(()=>(r(tk(t)),()=>{r(Jl(void 0))}),[t,r]),null},tm={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},lw=Ze({name:"brush",initialState:tm,reducers:{setBrushSettings(e,t){return t.payload==null?tm:t.payload}}}),{setBrushSettings:mL}=lw.actions,EN=lw.reducer;function SN(e){return(e%180+180)%180}var AN=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=SN(i),o=a*Math.PI/180,u=Math.atan(n/r),l=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},_N={dots:[],areas:[],lines:[]},sw=Ze({name:"referenceElements",initialState:_N,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ht(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=ht(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=ht(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:yL,removeDot:gL,addArea:bL,removeArea:wL,addLine:xL,removeLine:OL}=sw.actions,CN=sw.reducer,jN=E.createContext(void 0),IN=e=>{var{children:t}=e,[r]=E.useState("".concat(Cn("recharts"),"-clip")),n=df();if(n==null)return null;var{x:i,y:a,width:o,height:u}=n;return b.createElement(jN.Provider,{value:r},b.createElement("defs",null,b.createElement("clipPath",{id:r},b.createElement("rect",{x:i,y:a,height:u,width:o}))),t)};function cw(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 TN(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return AN(n,r)}function kN(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 qn(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 MN(e,t){return cw(e,t+1)}function DN(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:u}=t,l=0,s=1,c=o,f=function(){var p=n?.[l];if(p===void 0)return{v:cw(n,s)};var m=l,h,y=()=>(h===void 0&&(h=r(p,m)),h),g=p.coordinate,w=l===0||qn(e,g,y,c,u);w||(l=0,c=o,s+=1),w&&(c=g+e*(y()/2+i),l+=s)},d;s<=a.length;)if(d=f(),d)return d.v;return[]}function NN(e,t,r,n,i){var a=(n||[]).slice(),o=a.length;if(o===0)return[];for(var{start:u,end:l}=t,s=1;s<=o;s++){for(var c=(o-1)%s,f=u,d=!0,v=function(){var x=n[m];if(x==null)return 0;var P=m,O,S=()=>(O===void 0&&(O=r(x,P)),O),_=x.coordinate,M=m===c||qn(e,_,S,f,l);if(!M)return d=!1,1;M&&(f=_+e*(S()/2+i))},p,m=c;m<o&&(p=v(),!(p!==0&&p===1));m+=s);if(d){for(var h=[],y=c;y<o;y+=s){var g=n[y];g!=null&&h.push(g)}return h}}return[]}function rm(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 ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rm(Object(r),!0).forEach(function(n){$N(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $N(e,t,r){return(t=RN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RN(e){var t=LN(e,"string");return typeof t=="symbol"?t:t+""}function LN(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 zN(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:u}=t,{end:l}=t,s=function(d){var v=a[d];if(v==null)return 1;var p=v,m,h=()=>(m===void 0&&(m=r(v,d)),m);if(d===o-1){var y=e*(p.coordinate+e*h()/2-l);a[d]=p=ze(ze({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate})}else a[d]=p=ze(ze({},p),{},{tickCoord:p.coordinate});if(p.tickCoord!=null){var g=qn(e,p.tickCoord,h,u,l);g&&(l=p.tickCoord-e*(h()/2+i),a[d]=ze(ze({},p),{},{isShow:!0}))}},c=o-1;c>=0;c--)s(c);return a}function BN(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,{start:l,end:s}=t;if(a){var c=n[u-1];if(c!=null){var f=r(c,u-1),d=e*(c.coordinate+e*f/2-s);if(o[u-1]=c=ze(ze({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate}),c.tickCoord!=null){var v=qn(e,c.tickCoord,()=>f,l,s);v&&(s=c.tickCoord-e*(f/2+i),o[u-1]=ze(ze({},c),{},{isShow:!0}))}}}for(var p=a?u-1:u,m=function(g){var w=o[g];if(w==null)return 1;var x=w,P,O=()=>(P===void 0&&(P=r(w,g)),P);if(g===0){var S=e*(x.coordinate-e*O()/2-l);o[g]=x=ze(ze({},x),{},{tickCoord:S<0?x.coordinate-S*e:x.coordinate})}else o[g]=x=ze(ze({},x),{},{tickCoord:x.coordinate});if(x.tickCoord!=null){var _=qn(e,x.tickCoord,O,l,s);_&&(l=x.tickCoord+e*(O()/2+i),o[g]=ze(ze({},x),{},{isShow:!0}))}},h=0;h<p;h++)m(h);return o}function vf(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:u,interval:l,tickFormatter:s,unit:c,angle:f}=e;if(!i||!i.length||!n)return[];if(R(l)||ei.isSsr){var d;return(d=MN(i,R(l)?l:0))!==null&&d!==void 0?d:[]}var v=[],p=u==="top"||u==="bottom"?"width":"height",m=c&&p==="width"?_n(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=(P,O)=>{var S=typeof s=="function"?s(P.value,O):P.value;return p==="width"?TN(_n(S,{fontSize:t,letterSpacing:r}),m,f):_n(S,{fontSize:t,letterSpacing:r})[p]},y=i[0],g=i[1],w=i.length>=2&&y!=null&&g!=null?Ce(g.coordinate-y.coordinate):1,x=kN(a,w,p);return l==="equidistantPreserveStart"?DN(w,x,h,i,o):l==="equidistantPreserveEnd"?NN(w,x,h,i,o):(l==="preserveStart"||l==="preserveStartEnd"?v=BN(w,x,h,i,o,l==="preserveStartEnd"):v=zN(w,x,h,i,o),v.filter(P=>P.isShow))}var FN=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(c=>{if(c){var f=c.getBoundingClientRect();f.width>o&&(o=f.width)}});var u=r?r.getBoundingClientRect().width:0,l=i+a,s=o+l+u+(r?n:0);return Math.round(s)}return 0},WN=["axisLine","width","height","className","hide","ticks","axisType"];function qN(e,t){if(e==null)return{};var r,n,i=KN(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 KN(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 $r(){return $r=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},$r.apply(null,arguments)}function nm(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 ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(r),!0).forEach(function(n){UN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UN(e,t,r){return(t=VN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VN(e){var t=HN(e,"string");return typeof t=="symbol"?t:t+""}function HN(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 Dt={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:je.axis};function GN(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:u,otherSvgProps:l}=e;if(!u)return null;var s=ce(ce(ce({},l),st(u)),{},{fill:"none"});if(a==="top"||a==="bottom"){var c=+(a==="top"&&!o||a==="bottom"&&o);s=ce(ce({},s),{},{x1:t,y1:r+c*i,x2:t+n,y2:r+c*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);s=ce(ce({},s),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return b.createElement("line",$r({},s,{className:J("recharts-cartesian-axis-line",nr(u,"className"))}))}function YN(e,t,r,n,i,a,o,u,l){var s,c,f,d,v,p,m=u?-1:1,h=e.tickSize||o,y=R(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":s=c=e.coordinate,d=r+ +!u*i,f=d-m*h,p=f-m*l,v=y;break;case"left":f=d=e.coordinate,c=t+ +!u*n,s=c-m*h,v=s-m*l,p=y;break;case"right":f=d=e.coordinate,c=t+ +u*n,s=c+m*h,v=s+m*l,p=y;break;default:s=c=e.coordinate,d=r+ +u*i,f=d+m*h,p=f+m*l,v=y;break}return{line:{x1:s,y1:f,x2:c,y2:d},tick:{x:v,y:p}}}function XN(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function ZN(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function QN(e){var{option:t,tickProps:r,value:n}=e,i,a=J(r.className,"recharts-cartesian-axis-tick-value");if(b.isValidElement(t))i=b.cloneElement(t,ce(ce({},r),{},{className:a}));else if(typeof t=="function")i=t(ce(ce({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=J(o,Q0(t))),i=b.createElement(pi,$r({},r,{className:o}),n)}return i}var JN=E.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:o,unit:u,padding:l,tickTextProps:s,orientation:c,mirror:f,x:d,y:v,width:p,height:m,tickSize:h,tickMargin:y,fontSize:g,letterSpacing:w,getTicksConfig:x,events:P,axisType:O}=e,S=vf(ce(ce({},x),{},{ticks:r}),g,w),_=XN(c,f),M=ZN(c,f),N=st(x),j=Zr(n),k={};typeof i=="object"&&(k=i);var C=ce(ce({},N),{},{fill:"none"},k),z=S.map(B=>ce({entry:B},YN(B,d,v,p,m,c,h,f,y))),U=z.map(B=>{var{entry:H,line:q}=B;return b.createElement(We,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(H.value,"-").concat(H.coordinate,"-").concat(H.tickCoord)},i&&b.createElement("line",$r({},C,q,{className:J("recharts-cartesian-axis-tick-line",nr(i,"className"))})))}),W=z.map((B,H)=>{var q,be,{entry:he,tick:ke}=B,Qe=ce(ce(ce(ce({verticalAnchor:M},N),{},{textAnchor:_,stroke:"none",fill:a},ke),{},{index:H,payload:he,visibleTicksCount:S.length,tickFormatter:o,padding:l},s),{},{angle:(q=(be=s?.angle)!==null&&be!==void 0?be:N.angle)!==null&&q!==void 0?q:0}),Re=ce(ce({},Qe),j);return b.createElement(We,$r({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(he.value,"-").concat(he.coordinate,"-").concat(he.tickCoord)},Un(P,he,H)),n&&b.createElement(QN,{option:n,tickProps:Re,value:"".concat(typeof o=="function"?o(he.value,H):he.value).concat(u||"")}))});return b.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},W.length>0&&b.createElement(vt,{zIndex:je.label},b.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},W)),U.length>0&&b.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},U))}),e$=E.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:u,axisType:l}=e,s=qN(e,WN),[c,f]=E.useState(""),[d,v]=E.useState(""),p=E.useRef(null);E.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var h;return FN({ticks:p.current,label:(h=e.labelRef)===null||h===void 0?void 0:h.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=E.useCallback(h=>{if(h){var y=h.getElementsByClassName("recharts-cartesian-axis-tick-value");p.current=y;var g=y[0];if(g){var w=window.getComputedStyle(g),x=w.fontSize,P=w.letterSpacing;(x!==c||P!==d)&&(f(x),v(P))}}},[c,d]);return o||n!=null&&n<=0||i!=null&&i<=0?null:b.createElement(vt,{zIndex:e.zIndex},b.createElement(We,{className:J("recharts-cartesian-axis",a)},b.createElement(GN,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:st(e)}),b.createElement(JN,{ref:m,axisType:l,events:s,fontSize:c,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}),b.createElement(oM,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},b.createElement(mM,{label:e.label,labelRef:e.labelRef}),e.children)))}),pf=b.forwardRef((e,t)=>{var r=$e(e,Dt);return b.createElement(e$,$r({},r,{ref:t}))});pf.displayName="CartesianAxis";var t$=["x1","y1","x2","y2","key"],r$=["offset"],n$=["xAxisId","yAxisId"],i$=["xAxisId","yAxisId"];function im(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 Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?im(Object(r),!0).forEach(function(n){a$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):im(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a$(e,t,r){return(t=o$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=u$(e,"string");return typeof t=="symbol"?t:t+""}function u$(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 xr(){return xr=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},xr.apply(null,arguments)}function Ta(e,t){if(e==null)return{};var r,n,i=l$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var s$=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 b.createElement("rect",{x:n,y:i,ry:u,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function fw(e){var{option:t,lineItemProps:r}=e,n;if(b.isValidElement(t))n=b.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:o,x2:u,y2:l,key:s}=r,c=Ta(r,t$),f=(i=st(c))!==null&&i!==void 0?i:{},{offset:d}=f,v=Ta(f,r$);n=b.createElement("line",xr({},v,{x1:a,y1:o,x2:u,y2:l,fill:"none",key:s}))}return n}function c$(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=Ta(e,n$),l=i.map((s,c)=>{var f=Be(Be({},u),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return b.createElement(fw,{key:"line-".concat(c),option:n,lineItemProps:f})});return b.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function f$(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=Ta(e,i$),l=i.map((s,c)=>{var f=Be(Be({},u),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return b.createElement(fw,{option:n,lineItemProps:f,key:"line-".concat(c)})});return b.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function d$(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:u,horizontal:l=!0}=e;if(!l||!t||!t.length||u==null)return null;var s=u.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==s[0]&&s.unshift(0);var c=s.map((f,d)=>{var v=s[d+1],p=v==null,m=p?i+o-f:v-f;if(m<=0)return null;var h=d%t.length;return b.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:m,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return b.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function v$(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:u,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var s=l.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==s[0]&&s.unshift(0);var c=s.map((f,d)=>{var v=s[d+1],p=v==null,m=p?i+o-f:v-f;if(m<=0)return null;var h=d%r.length;return b.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:m,height:u,stroke:"none",fill:r[h],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return b.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var p$=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return Xy(vf(Be(Be(Be({},Dt),r),{},{ticks:Zy(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},h$=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return Xy(vf(Be(Be(Be({},Dt),r),{},{ticks:Zy(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},m$={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:je.grid};function hf(e){var t=Ms(),r=Ds(),n=ag(),i=Be(Be({},$e(e,m$)),{},{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:l,width:s,height:c,syncWithTicks:f,horizontalValues:d,verticalValues:v}=i,p=Ge(),m=L(M=>Xp(M,"xAxis",a,p)),h=L(M=>Xp(M,"yAxis",o,p));if(!gt(s)||!gt(c)||!R(u)||!R(l))return null;var y=i.verticalCoordinatesGenerator||p$,g=i.horizontalCoordinatesGenerator||h$,{horizontalPoints:w,verticalPoints:x}=i;if((!w||!w.length)&&typeof g=="function"){var P=d&&d.length,O=g({yAxis:h?Be(Be({},h),{},{ticks:P?d:h.ticks}):void 0,width:t??s,height:r??c,offset:n},P?!0:f);ia(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(w=O)}if((!x||!x.length)&&typeof y=="function"){var S=v&&v.length,_=y({xAxis:m?Be(Be({},m),{},{ticks:S?v:m.ticks}):void 0,width:t??s,height:r??c,offset:n},S?!0:f);ia(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(x=_)}return b.createElement(vt,{zIndex:i.zIndex},b.createElement("g",{className:"recharts-cartesian-grid"},b.createElement(s$,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),b.createElement(d$,xr({},i,{horizontalPoints:w})),b.createElement(v$,xr({},i,{verticalPoints:x})),b.createElement(c$,xr({},i,{offset:n,horizontalPoints:w,xAxis:m,yAxis:h})),b.createElement(f$,xr({},i,{offset:n,verticalPoints:x,xAxis:m,yAxis:h}))))}hf.displayName="CartesianGrid";var y$={},dw=Ze({name:"errorBars",initialState:y$,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:PL,replaceErrorBar:EL,removeErrorBar:SL}=dw.actions,g$=dw.reducer,b$=["children"];function w$(e,t){if(e==null)return{};var r,n,i=x$(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 x$(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 O$={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},P$=E.createContext(O$);function vw(e){var{children:t}=e,r=w$(e,b$);return b.createElement(P$.Provider,{value:r},t)}function mf(e,t){var r,n,i=L(s=>Ht(s,e)),a=L(s=>Gt(s,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:Se.allowDataOverflow,u=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Ae.allowDataOverflow,l=o||u;return{needClip:l,needClipX:o,needClipY:u}}function pw(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=df(),{needClipX:a,needClipY:o,needClip:u}=mf(t,r);if(!u||!i)return null;var{x:l,y:s,width:c,height:f}=i;return b.createElement("clipPath",{id:"clipPath-".concat(n)},b.createElement("rect",{x:a?l:l-c/2,y:o?s:s-f/2,width:a?c:c*2,height:o?f:f*2}))}var $i={exports:{}},ol={};/**
|
|
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 am;function E$(){if(am)return ol;am=1;var e=E;function t(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}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 ol.useSyncExternalStoreWithSelector=function(l,s,c,f,d){var v=i(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=o(function(){function h(P){if(!y){if(y=!0,g=P,P=f(P),d!==void 0&&p.hasValue){var O=p.value;if(d(O,P))return w=O}return w=P}if(O=w,r(g,P))return O;var S=f(P);return d!==void 0&&d(O,S)?(g=P,O):(g=P,w=S)}var y=!1,g,w,x=c===void 0?null:c;return[function(){return h(s())},x===null?void 0:function(){return h(x())}]},[s,c,f,d]);var m=n(l,v[0],v[1]);return a(function(){p.hasValue=!0,p.value=m},[m]),u(m),m},ol}var ul={};/**
|
|
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 om;function S$(){return om||(om=1,process.env.NODE_ENV!=="production"&&function(){function e(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=E,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,u=t.useDebugValue;ul.useSyncExternalStoreWithSelector=function(l,s,c,f,d){var v=i(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=o(function(){function h(P){if(!y){if(y=!0,g=P,P=f(P),d!==void 0&&p.hasValue){var O=p.value;if(d(O,P))return w=O}return w=P}if(O=w,r(g,P))return O;var S=f(P);return d!==void 0&&d(O,S)?(g=P,O):(g=P,w=S)}var y=!1,g,w,x=c===void 0?null:c;return[function(){return h(s())},x===null?void 0:function(){return h(x())}]},[s,c,f,d]);var m=n(l,v[0],v[1]);return a(function(){p.hasValue=!0,p.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())}()),ul}var um;function A$(){return um||(um=1,process.env.NODE_ENV==="production"?$i.exports=E$():$i.exports=S$()),$i.exports}A$();function _$(e){e()}function C$(){let e=null,t=null;return{clear(){e=null,t=null},notify(){_$(()=>{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 lm={notify(){},get:()=>[]};function j$(e,t){let r,n=lm,i=0,a=!1;function o(m){c();const h=n.subscribe(m);let y=!1;return()=>{y||(y=!0,h(),f())}}function u(){n.notify()}function l(){p.onStateChange&&p.onStateChange()}function s(){return a}function c(){i++,r||(r=e.subscribe(l),n=C$())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=lm)}function d(){a||(a=!0,c())}function v(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>n};return p}var I$=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",T$=I$(),k$=()=>typeof navigator<"u"&&navigator.product==="ReactNative",M$=k$(),D$=()=>T$||M$?b.useLayoutEffect:b.useEffect,N$=D$();function sm(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function $$(e,t){if(sm(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])||!sm(e[r[i]],t[r[i]]))return!1;return!0}var R$=Symbol.for("react-redux-context"),L$=typeof globalThis<"u"?globalThis:{};function z$(){if(!b.createContext)return{};const e=L$[R$]??=new Map;let t=e.get(b.createContext);return t||(t=b.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(b.createContext,t)),t}var B$=z$();function F$(e){const{children:t,context:r,serverState:n,store:i}=e,a=b.useMemo(()=>{const l=j$(i),s={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return s;{const{identityFunctionCheck:c="once",stabilityCheck:f="once"}=e;return Object.assign(s,{stabilityCheck:f,identityFunctionCheck:c})}},[i,n]),o=b.useMemo(()=>i.getState(),[i]);N$(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const u=r||B$;return b.createElement(u.Provider,{value:a},t)}var W$=F$,q$=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function K$(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function jo(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(q$.has(n)){if(e[n]==null&&t[n]==null)continue;if(!$$(e[n],t[n]))return!1}else if(!K$(e[n],t[n]))return!1;return!0}function sr(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:aw}function cr(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:aw}var U$=process.env.NODE_ENV==="production",ll="Invariant failed";function V$(e,t){if(U$)throw new Error(ll);var r=typeof t=="function"?t():t,n=r?"".concat(ll,": ").concat(r):ll;throw new Error(n)}function ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ts.apply(null,arguments)}function ka(e){return b.createElement(sf,ts({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var H$=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)||pe(n);return a?t(n,i):(a||V$(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},G$=(e,t,r)=>r,Y$=(e,t)=>t,hi=A([mo,Y$],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),X$=A([hi],e=>e?.maxBarSize),Z$=(e,t,r,n)=>n,Q$=A([X,mo,sr,cr,G$],(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")),J$=(e,t,r)=>{var n=X(e),i=sr(e,t),a=cr(e,t);if(!(i==null||a==null))return n==="horizontal"?Sa(e,"yAxis",a,r):Sa(e,"xAxis",i,r)},eR=(e,t)=>{var r=X(e),n=sr(e,t),i=cr(e,t);if(!(n==null||i==null))return r==="horizontal"?Yp(e,"xAxis",n):Yp(e,"yAxis",i)},tR=A([Q$,tj,eR],pN),rR=(e,t,r)=>{var n,i,a=hi(e,t);if(a==null)return 0;var o=sr(e,t),u=cr(e,t);if(o==null||u==null)return 0;var l=X(e),s=Pb(e),{maxBarSize:c}=a,f=pe(c)?s:c,d,v;return l==="horizontal"?(d=Nr(e,"xAxis",o,r),v=Dr(e,"xAxis",o,r)):(d=Nr(e,"yAxis",u,r),v=Dr(e,"yAxis",u,r)),(n=(i=kn(d,v,!0))!==null&&i!==void 0?i:f)!==null&&n!==void 0?n:0},hw=(e,t,r)=>{var n=X(e),i=sr(e,t),a=cr(e,t);if(!(i==null||a==null)){var o,u;return n==="horizontal"?(o=Nr(e,"xAxis",i,r),u=Dr(e,"xAxis",i,r)):(o=Nr(e,"yAxis",a,r),u=Dr(e,"yAxis",a,r)),kn(o,u)}},nR=A([tR,Pb,ej,Eb,rR,hw,X$],bN),iR=(e,t,r)=>{var n=sr(e,t);if(n!=null)return Nr(e,"xAxis",n,r)},aR=(e,t,r)=>{var n=cr(e,t);if(n!=null)return Nr(e,"yAxis",n,r)},oR=(e,t,r)=>{var n=sr(e,t);if(n!=null)return Dr(e,"xAxis",n,r)},uR=(e,t,r)=>{var n=cr(e,t);if(n!=null)return Dr(e,"yAxis",n,r)},lR=A([nR,hi],xN),sR=A([J$,hi],wN),cR=A([Oe,Is,iR,aR,oR,uR,lR,X,fb,hw,sR,hi,Z$],(e,t,r,n,i,a,o,u,l,s,c,f,d)=>{var{chartData:v,dataStartIndex:p,dataEndIndex:m}=l;if(!(f==null||o==null||t==null||u!=="horizontal"&&u!=="vertical"||r==null||n==null||i==null||a==null||s==null)){var{data:h}=f,y;if(h!=null&&h.length>0?y=h:y=v?.slice(p,m+1),y!=null)return LR({layout:u,barSettings:f,pos:o,parentViewBox:t,bandSize:s,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:c,displayedData:y,offset:e,cells:d,dataStartIndex:p})}}),fR=["index"];function rs(){return rs=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},rs.apply(null,arguments)}function dR(e,t){if(e==null)return{};var r,n,i=vR(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 vR(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 mw=E.createContext(void 0),pR=e=>{var t=E.useContext(mw);if(t!=null)return t.stackId;if(e!=null)return Qy(e)},hR=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),mR=e=>{var t=E.useContext(mw);if(t!=null){var{stackId:r}=t;return"url(#".concat(hR(r,e),")")}},yw=e=>{var{index:t}=e,r=dR(e,fR),n=mR(t);return b.createElement(We,rs({className:"recharts-bar-stack-layer",clipPath:n},r))},yR=["onMouseEnter","onMouseLeave","onClick"],gR=["value","background","tooltipPosition"],bR=["id"],wR=["onMouseEnter","onClick","onMouseLeave"];function zt(){return zt=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},zt.apply(null,arguments)}function cm(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 qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cm(Object(r),!0).forEach(function(n){xR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xR(e,t,r){return(t=OR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OR(e){var t=PR(e,"string");return typeof t=="symbol"?t:t+""}function PR(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 Ma(e,t){if(e==null)return{};var r,n,i=ER(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 ER(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 SR=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Xn(r,t),payload:e}]},AR=b.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:u,tooltipType:l,id:s}=e,c={dataDefinedOnItem:void 0,getPosition:Rr,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Xn(a,t),hide:o,type:l,color:i,unit:u,graphicalItemId:s}};return b.createElement(cf,{tooltipEntrySettings:c})});function _R(e){var t=L(ir),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:u,onClick:l}=a,s=Ma(a,yR),c=So(o,n,a.id),f=Ao(u),d=_o(l,n,a.id);if(!i||r==null)return null;var v=Zr(i);return b.createElement(vt,{zIndex:ON(i,je.barBackground)},r.map((p,m)=>{var{value:h,background:y,tooltipPosition:g}=p,w=Ma(p,gR);if(!y)return null;var x=c(p,m),P=f(p,m),O=d(p,m),S=qe(qe(qe(qe(qe({option:i,isActive:String(m)===t},w),{},{fill:"#eee"},y),v),Un(s,p,m)),{},{onMouseEnter:x,onMouseLeave:P,onClick:O,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return b.createElement(ka,zt({key:"background-bar-".concat(m)},S))}))}function CR(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 qe(qe({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return b.createElement(H0,{value:t?i:void 0},r)}function jR(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,u=L(ir),l=L(Zc),s=r&&String(a)===u&&(l==null||o===l),c=s?r:t;return s?b.createElement(vt,{zIndex:je.activeBar},b.createElement(yw,{index:a},b.createElement(ka,zt({},n,{name:String(n.name)},i,{isActive:s,option:c,index:a,dataKey:o})))):b.createElement(ka,zt({},n,{name:String(n.name)},i,{isActive:s,option:c,index:a,dataKey:o}))}function IR(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return b.createElement(ka,zt({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function TR(e){var t,{data:r,props:n}=e,i=(t=st(n))!==null&&t!==void 0?t:{},{id:a}=i,o=Ma(i,bR),{shape:u,dataKey:l,activeBar:s}=n,{onMouseEnter:c,onClick:f,onMouseLeave:d}=n,v=Ma(n,wR),p=So(c,l,a),m=Ao(d),h=_o(f,l,a);return r?b.createElement(b.Fragment,null,r.map((y,g)=>b.createElement(yw,zt({index:g,key:"rectangle-".concat(y?.x,"-").concat(y?.y,"-").concat(y?.value,"-").concat(g),className:"recharts-bar-rectangle"},Un(v,y,g),{onMouseEnter:p(y,g),onMouseLeave:m(y,g),onClick:h(y,g)}),s?b.createElement(jR,{shape:u,activeBar:s,baseProps:o,entry:y,index:g,dataKey:l}):b.createElement(IR,{shape:u,baseProps:o,entry:y,index:g,dataKey:l})))):null}function kR(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:l,onAnimationEnd:s,onAnimationStart:c}=t,f=r.current,d=ri(t,"recharts-bar-"),[v,p]=E.useState(!1),m=!v,h=E.useCallback(()=>{typeof s=="function"&&s(),p(!1)},[s]),y=E.useCallback(()=>{typeof c=="function"&&c(),p(!0)},[c]);return b.createElement(CR,{showLabels:m,rects:n},b.createElement(ti,{animationId:d,begin:o,duration:u,isActive:a,easing:l,onAnimationEnd:h,onAnimationStart:y,key:d},g=>{var w=g===1?n:n?.map((x,P)=>{var O=f&&f[P];if(O)return qe(qe({},x),{},{x:me(O.x,x.x,g),y:me(O.y,x.y,g),width:me(O.width,x.width,g),height:me(O.height,x.height,g)});if(i==="horizontal"){var S=me(0,x.height,g),_=me(x.stackedBarStart,x.y,g);return qe(qe({},x),{},{y:_,height:S})}var M=me(0,x.width,g),N=me(x.stackedBarStart,x.x,g);return qe(qe({},x),{},{width:M,x:N})});return g>0&&(r.current=w??null),w==null?null:b.createElement(We,null,b.createElement(TR,{props:t,data:w}))}),b.createElement(of,{label:t.label}),t.children)}function MR(e){var t=E.useRef(null);return b.createElement(kR,{previousRectanglesRef:t,props:e})}var gw=0,DR=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:re(e,t)}};class NR extends E.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:u,background:l,id:s}=this.props;if(t||r==null)return null;var c=J("recharts-bar",i),f=s;return b.createElement(We,{className:c,id:s},u&&b.createElement("defs",null,b.createElement(pw,{clipPathId:f,xAxisId:a,yAxisId:o})),b.createElement(We,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(f,")"):void 0},b.createElement(_R,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),b.createElement(MR,this.props)))}}var $R={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:gw,xAxisId:0,yAxisId:0,zIndex:je.bar};function RR(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:l,animationEasing:s,isAnimationActive:c}=e,{needClip:f}=mf(t,r),d=Lr(),v=Ge(),p=Eo(e.children,vi),m=L(g=>cR(g,e.id,v,p));if(d!=="vertical"&&d!=="horizontal")return null;var h,y=m?.[0];return y==null||y.height==null||y.width==null?h=0:h=d==="vertical"?y.height/2:y.width/2,b.createElement(vw,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:DR,errorBarOffset:h},b.createElement(NR,zt({},e,{layout:d,needClip:f,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:l,animationEasing:s,isAnimationActive:c})))}function LR(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:u,xAxisTicks:l,yAxisTicks:s,stackedData:c,displayedData:f,offset:d,cells:v,parentViewBox:p,dataStartIndex:m}=e,h=t==="horizontal"?u:o,y=c?h.scale.domain():null,g=LP({numericAxis:h}),w=h.scale.map(g);return f.map((x,P)=>{var O,S,_,M,N,j;if(c){var k=c[P+m];if(k==null)return null;O=kP(k,y)}else O=re(x,r),Array.isArray(O)||(O=[g,O]);var C=H$(n,gw)(O[1],P);if(t==="horizontal"){var z,U=u.scale.map(O[0]),W=u.scale.map(O[1]);if(U==null||W==null)return null;S=Xd({axis:o,ticks:l,bandSize:a,offset:i.offset,entry:x,index:P}),_=(z=W??U)!==null&&z!==void 0?z:void 0,M=i.size;var B=U-W;if(N=mt(B)?0:B,j={x:S,y:d.top,width:M,height:d.height},Math.abs(C)>0&&Math.abs(N)<Math.abs(C)){var H=Ce(N||C)*(Math.abs(C)-Math.abs(N));_-=H,N+=H}}else{var q=o.scale.map(O[0]),be=o.scale.map(O[1]);if(q==null||be==null)return null;if(S=q,_=Xd({axis:u,ticks:s,bandSize:a,offset:i.offset,entry:x,index:P}),M=be-q,N=i.size,j={x:d.left,y:_,width:d.width,height:N},Math.abs(C)>0&&Math.abs(M)<Math.abs(C)){var he=Ce(M||C)*(Math.abs(C)-Math.abs(M));M+=he}}if(S==null||_==null||M==null||N==null)return null;var ke=qe(qe({},x),{},{stackedBarStart:w,x:S,y:_,width:M,height:N,value:c?O:O[1],payload:x,background:j,tooltipPosition:{x:S+M/2,y:_+N/2},parentViewBox:p},v&&v[P]&&v[P].props);return ke}).filter(Boolean)}function zR(e){var t=$e(e,$R),r=pR(t.stackId),n=Ge();return b.createElement(ff,{id:t.id,type:"bar"},i=>b.createElement(b.Fragment,null,b.createElement(tw,{legendPayload:SR(t)}),b.createElement(AR,{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}),b.createElement(nw,{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}),b.createElement(vt,{zIndex:t.zIndex},b.createElement(RR,zt({},t,{id:i})))))}var yf=b.memo(zR,jo);yf.displayName="Bar";var BR=["domain","range"],FR=["domain","range"];function fm(e,t){if(e==null)return{};var r,n,i=WR(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 WR(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 dm(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 bw(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=fm(e,BR),{domain:a,range:o}=t,u=fm(t,FR);return!dm(r,a)||!dm(n,o)?!1:jo(i,u)}var qR=["type"],KR=["dangerouslySetInnerHTML","ticks","scale"],UR=["id","scale"];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 vm(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 pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(r),!0).forEach(function(n){VR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VR(e,t,r){return(t=HR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HR(e){var t=GR(e,"string");return typeof t=="symbol"?t:t+""}function GR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function is(e,t){if(e==null)return{};var r,n,i=YR(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 YR(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 XR(e){var t=ie(),r=E.useRef(null),n=Ns(),{type:i}=e,a=is(e,qR),o=so(n,"xAxis",i),u=E.useMemo(()=>{if(o!=null)return pm(pm({},a),{},{type:o})},[a,o]);return E.useLayoutEffect(()=>{u!=null&&(r.current===null?t(nN(u)):r.current!==u&&t(iN({prev:r.current,next:u})),r.current=u)},[u,t]),E.useLayoutEffect(()=>()=>{r.current&&(t(aN(r.current)),r.current=null)},[t]),null}var ZR=e=>{var{xAxisId:t,className:r}=e,n=L(Is),i=Ge(),a="xAxis",o=L(y=>i0(y,a,t,i)),u=L(y=>e0(y,t)),l=L(y=>tI(y,t)),s=L(y=>Db(y,t));if(u==null||l==null||s==null)return null;var{dangerouslySetInnerHTML:c,ticks:f,scale:d}=e,v=is(e,KR),{id:p,scale:m}=s,h=is(s,UR);return b.createElement(pf,ns({},v,h,{x:l.x,y:l.y,width:u.width,height:u.height,className:J("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:o,axisType:a}))},QR={allowDataOverflow:Se.allowDataOverflow,allowDecimals:Se.allowDecimals,allowDuplicatedCategory:Se.allowDuplicatedCategory,angle:Se.angle,axisLine:Dt.axisLine,height:Se.height,hide:!1,includeHidden:Se.includeHidden,interval:Se.interval,label:!1,minTickGap:Se.minTickGap,mirror:Se.mirror,orientation:Se.orientation,padding:Se.padding,reversed:Se.reversed,scale:Se.scale,tick:Se.tick,tickCount:Se.tickCount,tickLine:Dt.tickLine,tickSize:Dt.tickSize,type:Se.type,xAxisId:0},JR=e=>{var t=$e(e,QR);return b.createElement(b.Fragment,null,b.createElement(XR,{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}),b.createElement(ZR,t))},gf=b.memo(JR,bw);gf.displayName="XAxis";var e2=["type"],t2=["dangerouslySetInnerHTML","ticks","scale"],r2=["id","scale"];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 hm(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 mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){n2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n2(e,t,r){return(t=i2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i2(e){var t=a2(e,"string");return typeof t=="symbol"?t:t+""}function a2(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 os(e,t){if(e==null)return{};var r,n,i=o2(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 o2(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 u2(e){var t=ie(),r=E.useRef(null),n=Ns(),{type:i}=e,a=os(e,e2),o=so(n,"yAxis",i),u=E.useMemo(()=>{if(o!=null)return mm(mm({},a),{},{type:o})},[o,a]);return E.useLayoutEffect(()=>{u!=null&&(r.current===null?t(oN(u)):r.current!==u&&t(uN({prev:r.current,next:u})),r.current=u)},[u,t]),E.useLayoutEffect(()=>()=>{r.current&&(t(lN(r.current)),r.current=null)},[t]),null}function l2(e){var{yAxisId:t,className:r,width:n,label:i}=e,a=E.useRef(null),o=E.useRef(null),u=L(Is),l=Ge(),s=ie(),c="yAxis",f=L(O=>t0(O,t)),d=L(O=>nI(O,t)),v=L(O=>i0(O,c,t,l)),p=L(O=>Nb(O,t));if(E.useLayoutEffect(()=>{if(!(n!=="auto"||!f||af(i)||E.isValidElement(i)||p==null)){var O=a.current;if(O){var S=O.getCalculatedWidth();Math.round(f.width)!==Math.round(S)&&s(sN({id:t,width:S}))}}},[v,f,s,i,t,n,p]),f==null||d==null||p==null)return null;var{dangerouslySetInnerHTML:m,ticks:h,scale:y}=e,g=os(e,t2),{id:w,scale:x}=p,P=os(p,r2);return b.createElement(pf,as({},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:J("recharts-".concat(c," ").concat(c),r),viewBox:u,ticks:v,axisType:c}))}var s2={allowDataOverflow:Ae.allowDataOverflow,allowDecimals:Ae.allowDecimals,allowDuplicatedCategory:Ae.allowDuplicatedCategory,angle:Ae.angle,axisLine:Dt.axisLine,hide:!1,includeHidden:Ae.includeHidden,interval:Ae.interval,label:!1,minTickGap:Ae.minTickGap,mirror:Ae.mirror,orientation:Ae.orientation,padding:Ae.padding,reversed:Ae.reversed,scale:Ae.scale,tick:Ae.tick,tickCount:Ae.tickCount,tickLine:Dt.tickLine,tickSize:Dt.tickSize,type:Ae.type,width:Ae.width,yAxisId:0},c2=e=>{var t=$e(e,s2);return b.createElement(b.Fragment,null,b.createElement(u2,{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}),b.createElement(l2,t))},bf=b.memo(c2,bw);bf.displayName="YAxis";var f2=(e,t)=>t,wf=A([f2,X,Tb,Te,O0,Yt,yT,Oe],ET),xf=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)}},ww=ct("mouseClick"),xw=Yn();xw.startListening({actionCreator:ww,effect:(e,t)=>{var r=e.payload,n=wf(t.getState(),xf(r));n?.activeIndex!=null&&t.dispatch(mI({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var us=ct("mouseMove"),Ow=Yn(),Ri=null;Ow.startListening({actionCreator:us,effect:(e,t)=>{var r=e.payload;Ri!==null&&cancelAnimationFrame(Ri);var n=xf(r);Ri=requestAnimationFrame(()=>{var i=t.getState(),a=Kc(i,i.tooltip.settings.shared);if(a==="axis"){var o=wf(i,n);o?.activeIndex!=null?t.dispatch(v0({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(f0())}Ri=null})}});function d2(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 ym={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},Pw=Ze({name:"rootProps",initialState:ym,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:ym.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}}}),v2=Pw.reducer,{updateOptions:p2}=Pw.actions,h2=null,m2={updatePolarOptions:(e,t)=>t.payload},Ew=Ze({name:"polarOptions",initialState:h2,reducers:m2}),{updatePolarOptions:y2}=Ew.actions,g2=Ew.reducer,Sw=ct("keyDown"),Aw=ct("focus"),Of=Yn();Of.startListening({actionCreator:Sw,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=Vc(i,vn(r),si(r),fi(r)),u=o==null?-1:Number(o);if(!(!Number.isFinite(u)||u<0)){var l=Yt(r);if(a==="Enter"){var s=_a(r,"axis","hover",String(i.index));t.dispatch(Xl({active:!i.active,activeIndex:i.index,activeCoordinate:s}));return}var c=lI(r),f=c==="left-to-right"?1:-1,d=a==="ArrowRight"?1:-1,v=u+d*f;if(!(l==null||v>=l.length||v<0)){var p=_a(r,"axis","hover",String(v));t.dispatch(Xl({active:!0,activeIndex:v.toString(),activeCoordinate:p}))}}}}}});Of.startListening({actionCreator:Aw,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=_a(r,"axis","hover",String(a));t.dispatch(Xl({active:!0,activeIndex:a,activeCoordinate:o}))}}}});var ut=ct("externalEvent"),_w=Yn(),sl=new Map;_w.startListening({actionCreator:ut,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,a=sl.get(i);a!==void 0&&cancelAnimationFrame(a);var o=requestAnimationFrame(()=>{try{var u=t.getState(),l={activeCoordinate:rT(u),activeDataKey:Zc(u),activeIndex:ir(u),activeLabel:S0(u),activeTooltipIndex:ir(u),isTooltipActive:nT(u)};r(l,n)}finally{sl.delete(i)}});sl.set(i,o)}}});var b2=A([fn],e=>e.tooltipItemPayloads),w2=A([b2,(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)}}}),Cw=ct("touchMove"),jw=Yn();jw.startListening({actionCreator:Cw,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=Kc(n,n.tooltip.settings.shared);if(i==="axis"){var a=r.touches[0];if(a==null)return;var o=wf(n,xf({clientX:a.clientX,clientY:a.clientY,currentTarget:r.currentTarget}));o?.activeIndex!=null&&t.dispatch(v0({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var u,l=r.touches[0];if(document.elementFromPoint==null||l==null)return;var s=document.elementFromPoint(l.clientX,l.clientY);if(!s||!s.getAttribute)return;var c=s.getAttribute(eg),f=(u=s.getAttribute(js))!==null&&u!==void 0?u:void 0,d=dn(n).find(m=>m.id===f);if(c==null||d==null||f==null)return;var{dataKey:v}=d,p=w2(n,c,f);t.dispatch(Uc({activeDataKey:v,activeIndex:c,activeCoordinate:p,activeGraphicalItemId:f}))}}}});var x2=my({brush:EN,cartesianAxis:cN,chartData:rk,errorBars:g$,graphicalItems:AD,layout:_P,legend:RE,options:XT,polarAxis:LM,polarOptions:g2,referenceElements:CN,rootProps:v2,tooltip:yI,zIndex:LT}),O2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return J1({reducer:x2,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([xw.middleware,Ow.middleware,Of.middleware,_w.middleware,jw.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(Ny({type:"raf"}))},devTools:{serialize:{replacer:d2},name:"recharts-".concat(r)}})};function Pf(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Ge(),a=E.useRef(null);if(i)return r;a.current==null&&(a.current=O2(t,n));var o=Os;return b.createElement(W$,{context:o,store:a.current},r)}function P2(e){var{layout:t,margin:r}=e,n=ie(),i=Ge();return E.useEffect(()=>{i||(n(EP(t)),n(Gy(r)))},[n,i,t,r]),null}var Iw=E.memo(P2,jo);function Tw(e){var t=ie();return E.useEffect(()=>{t(p2(e))},[t,e]),null}function gm(e){var{zIndex:t,isPanorama:r}=e,n=E.useRef(null),i=ie();return E.useLayoutEffect(()=>(n.current&&i($T({zIndex:t,element:n.current,isPanorama:r})),()=>{i(RT({zIndex:t,isPanorama:r}))}),[i,t,r]),b.createElement("g",{tabIndex:-1,ref:n})}function bm(e){var{children:t,isPanorama:r}=e,n=L(AT);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return b.createElement(b.Fragment,null,i.map(o=>b.createElement(gm,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>b.createElement(gm,{key:o,zIndex:o,isPanorama:r})))}var E2=["children"];function S2(e,t){if(e==null)return{};var r,n,i=A2(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 A2(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 Da(){return Da=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},Da.apply(null,arguments)}var _2={width:"100%",height:"100%",display:"block"},C2=E.forwardRef((e,t)=>{var r=Ms(),n=Ds(),i=yg();if(!gt(r)||!gt(n))return null;var{children:a,otherAttributes:o,title:u,desc:l}=e,s,c;return o!=null&&(typeof o.tabIndex=="number"?s=o.tabIndex:s=i?0:void 0,typeof o.role=="string"?c=o.role:c=i?"application":void 0),b.createElement(fs,Da({},o,{title:u,desc:l,role:c,tabIndex:s,width:r,height:n,style:_2,ref:t}),a)}),j2=e=>{var{children:t}=e,r=L(Za);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return b.createElement(fs,{width:n,height:i,x:o,y:a},t)},wm=E.forwardRef((e,t)=>{var{children:r}=e,n=S2(e,E2),i=Ge();return i?b.createElement(j2,null,b.createElement(bm,{isPanorama:!0},r)):b.createElement(C2,Da({ref:t},n),b.createElement(bm,{isPanorama:!1},r))});function I2(){var e=ie(),[t,r]=E.useState(null),n=L(KP);return E.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;V(a)&&a!==n&&e(AP(a))}},[t,e,n]),r}function xm(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 T2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xm(Object(r),!0).forEach(function(n){k2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k2(e,t,r){return(t=M2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M2(e){var t=D2(e,"string");return typeof t=="symbol"?t:t+""}function D2(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 rr(){return rr=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},rr.apply(null,arguments)}var N2=()=>(fk(),null);function Na(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var $2=E.forwardRef((e,t)=>{var r,n,i=E.useRef(null),[a,o]=E.useState({containerWidth:Na((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Na((n=e.style)===null||n===void 0?void 0:n.height)}),u=E.useCallback((s,c)=>{o(f=>{var d=Math.round(s),v=Math.round(c);return f.containerWidth===d&&f.containerHeight===v?f:{containerWidth:d,containerHeight:v}})},[]),l=E.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null&&typeof ResizeObserver<"u"){var{width:c,height:f}=s.getBoundingClientRect();u(c,f);var d=p=>{var m=p[0];if(m!=null){var{width:h,height:y}=m.contentRect;u(h,y)}},v=new ResizeObserver(d);v.observe(s),i.current=v}},[t,u]);return E.useEffect(()=>()=>{var s=i.current;s?.disconnect()},[u]),b.createElement(b.Fragment,null,b.createElement(nn,{width:a.containerWidth,height:a.containerHeight}),b.createElement("div",rr({ref:l},e)))}),R2=E.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=E.useState({containerWidth:Na(r),containerHeight:Na(n)}),o=E.useCallback((l,s)=>{a(c=>{var f=Math.round(l),d=Math.round(s);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),u=E.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:s,height:c}=l.getBoundingClientRect();o(s,c)}},[t,o]);return b.createElement(b.Fragment,null,b.createElement(nn,{width:i.containerWidth,height:i.containerHeight}),b.createElement("div",rr({ref:u},e)))}),L2=E.forwardRef((e,t)=>{var{width:r,height:n}=e;return b.createElement(b.Fragment,null,b.createElement(nn,{width:r,height:n}),b.createElement("div",rr({ref:t},e)))}),z2=E.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?b.createElement(R2,rr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?b.createElement(L2,rr({},e,{width:r,height:n,ref:t})):b.createElement(b.Fragment,null,b.createElement(nn,{width:r,height:n}),b.createElement("div",rr({ref:t},e)))});function B2(e){return e?$2:z2}var kw=E.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:u,onMouseDown:l,onMouseEnter:s,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:v,onTouchMove:p,onTouchStart:m,style:h,width:y,responsive:g,dispatchTouchEvents:w=!0}=e,x=E.useRef(null),P=ie(),[O,S]=E.useState(null),[_,M]=E.useState(null),N=I2(),j=Ts(),k=j?.width>0?j.width:y,C=j?.height>0?j.height:i,z=E.useCallback(I=>{N(I),typeof t=="function"&&t(I),S(I),M(I),I!=null&&(x.current=I)},[N,t,S,M]),U=E.useCallback(I=>{P(ww(I)),P(ut({handler:a,reactEvent:I}))},[P,a]),W=E.useCallback(I=>{P(us(I)),P(ut({handler:s,reactEvent:I}))},[P,s]),B=E.useCallback(I=>{P(f0()),P(ut({handler:c,reactEvent:I}))},[P,c]),H=E.useCallback(I=>{P(us(I)),P(ut({handler:f,reactEvent:I}))},[P,f]),q=E.useCallback(()=>{P(Aw())},[P]),be=E.useCallback(I=>{P(Sw(I.key))},[P]),he=E.useCallback(I=>{P(ut({handler:o,reactEvent:I}))},[P,o]),ke=E.useCallback(I=>{P(ut({handler:u,reactEvent:I}))},[P,u]),Qe=E.useCallback(I=>{P(ut({handler:l,reactEvent:I}))},[P,l]),Re=E.useCallback(I=>{P(ut({handler:d,reactEvent:I}))},[P,d]),Ct=E.useCallback(I=>{P(ut({handler:m,reactEvent:I}))},[P,m]),fr=E.useCallback(I=>{w&&P(Cw(I)),P(ut({handler:p,reactEvent:I}))},[P,w,p]),Le=E.useCallback(I=>{P(ut({handler:v,reactEvent:I}))},[P,v]),pn=B2(g);return b.createElement(rf.Provider,{value:O},b.createElement(Tm.Provider,{value:_},b.createElement(pn,{width:k??h?.width,height:C??h?.height,className:J("recharts-wrapper",n),style:T2({position:"relative",cursor:"default",width:k,height:C},h),onClick:U,onContextMenu:he,onDoubleClick:ke,onFocus:q,onKeyDown:be,onMouseDown:Qe,onMouseEnter:W,onMouseLeave:B,onMouseMove:H,onMouseUp:Re,onTouchEnd:Le,onTouchMove:fr,onTouchStart:Ct,ref:z},b.createElement(N2,null),r)))}),F2=["width","height","responsive","children","className","style","compact","title","desc"];function W2(e,t){if(e==null)return{};var r,n,i=q2(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 q2(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 Mw=E.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:u,compact:l,title:s,desc:c}=e,f=W2(e,F2),d=st(f);return l?b.createElement(b.Fragment,null,b.createElement(nn,{width:r,height:n}),b.createElement(wm,{otherAttributes:d,title:s,desc:c},a)):b.createElement(kw,{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},b.createElement(wm,{otherAttributes:d,title:s,desc:c,ref:t},b.createElement(IN,null,a)))});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)}var K2={top:5,right:5,bottom:5,left:5},U2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:K2,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},Dw=E.forwardRef(function(t,r){var n,i=$e(t.categoricalChartProps,U2),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:u,tooltipPayloadSearcher:l,categoricalChartProps:s}=t,c={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:u,tooltipPayloadSearcher:l,eventEmitter:void 0};return b.createElement(Pf,{preloadedState:{options:c},reduxStoreName:(n=s.id)!==null&&n!==void 0?n:a},b.createElement(uw,{chartData:s.data}),b.createElement(Iw,{layout:i.layout,margin:i.margin}),b.createElement(Tw,{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}),b.createElement(Mw,ls({},i,{ref:r})))}),V2=["axis","item"],Nw=E.forwardRef((e,t)=>b.createElement(Dw,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:V2,tooltipPayloadSearcher:nf,categoricalChartProps:e,ref:t}));function H2(e){var t=ie();return E.useEffect(()=>{t(y2(e))},[t,e]),null}var G2=["layout"];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 Y2(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}var Z2={top:5,right:5,bottom:5,left:5},$w={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Z2,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},Q2=E.forwardRef(function(t,r){var n,i=$e(t.categoricalChartProps,$w),{layout:a}=i,o=Y2(i,G2),{chartName:u,defaultTooltipEventType:l,validateTooltipEventTypes:s,tooltipPayloadSearcher:c}=t,f={chartName:u,defaultTooltipEventType:l,validateTooltipEventTypes:s,tooltipPayloadSearcher:c,eventEmitter:void 0};return b.createElement(Pf,{preloadedState:{options:f},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:u},b.createElement(uw,{chartData:i.data}),b.createElement(Iw,{layout:a,margin:i.margin}),b.createElement(Tw,{baseValue:void 0,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}),b.createElement(H2,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),b.createElement(Mw,ss({},o,{ref:r})))});function Om(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 Pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Om(Object(r),!0).forEach(function(n){J2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J2(e,t,r){return(t=eL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eL(e){var t=tL(e,"string");return typeof t=="symbol"?t:t+""}function tL(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 rL=["item"],nL=Pm(Pm({},$w),{},{layout:"centric",startAngle:0,endAngle:360}),iL=E.forwardRef((e,t)=>{var r=$e(e,nL);return b.createElement(Q2,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:rL,tooltipPayloadSearcher:nf,categoricalChartProps:r,ref:t})});const aL=({active:e,payload:t,label:r,color:n,valueName:i})=>!e||!t||!t.length?null:F.jsxs("div",{style:{backgroundColor:"#0B1220",color:"#FFFFFF",padding:"10px 12px",borderRadius:8,fontSize:12,lineHeight:1.4,minWidth:150,boxShadow:"0 4px 12px rgba(0,0,0,0.4)"},children:[F.jsx("div",{style:{fontWeight:600,marginBottom:6},children:r}),F.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[F.jsx("span",{style:{width:10,height:10,backgroundColor:n,marginRight:6,display:"inline-block"}}),F.jsxs("span",{children:[i||"Valeur"," : ",t[0].value]})]})]}),oL=({color:e,text:t,textColor:r,fontSize:n,fontWeight:i})=>F.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"15px",color:r,fontSize:n,fontWeight:i},children:F.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[F.jsx("span",{style:{width:15,height:10,backgroundColor:e,marginRight:"5px",display:"inline-block"}}),t]})}),uL=({data:e,height:t=220,barColor:r="#94a3b8",textColor:n="#9CA3AF",fontSize:i="10px",fontWeight:a="400",lineColor:o="#F4F4F4",yAxisWidth:u=30,tickCount:l=6,padding:s="0",legendText:c="Valeur",valueName:f="Valeur",showLegend:d=!0})=>{const v=E.useRef(null),[p,m]=E.useState(50);E.useLayoutEffect(()=>{const y=()=>{if(v.current){const g=v.current.getBoundingClientRect().width,w=e.labels?.length||1,S=(g-u-30-w*8)/w;m(Math.max(S,20))}};return y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[e.labels,u]);const h=e.labels.map((y,g)=>({name:y,value:e.values[g]}));return F.jsxs("div",{ref:v,style:{width:"100%",padding:s,borderRadius:"12px"},children:[F.jsx(ig,{width:"100%",height:t,children:F.jsxs(Nw,{data:h,margin:{top:20,right:30,left:0,bottom:0},children:[F.jsx(hf,{strokeDasharray:"0",vertical:!1,stroke:o}),F.jsx(gf,{dataKey:"name",stroke:n,axisLine:!1,tickLine:!1,tick:{fontSize:i,fontWeight:a}}),F.jsx(bf,{stroke:n,axisLine:!1,tickLine:!1,tickCount:l,tick:{fontSize:i,fontWeight:a},width:u}),F.jsx(N0,{content:F.jsx(aL,{color:r,valueName:f}),cursor:{fill:"#f1f5f9",opacity:.4}}),F.jsx(yf,{dataKey:"value",fill:r,barSize:p,radius:[2,2,0,0]})]})}),d&&F.jsx(oL,{color:r,text:c,textColor:n,fontSize:i,fontWeight:a})]})};exports.Bar=yf;exports.BarChart=Nw;exports.CartesianChart=Dw;exports.CartesianGrid=hf;exports.CartesianLabelListContextProvider=H0;exports.Cell=vi;exports.Curve=to;exports.DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME=js;exports.DefaultZIndexes=je;exports.Global=ei;exports.GraphicalItemClipPath=pw;exports.Icon=Am;exports.JavascriptAnimate=ti;exports.LabelListFromLabelProp=of;exports.Layer=We;exports.Move=qw;exports.PeriodRange=ax;exports.Pie=iw;exports.PieChart=iL;exports.RechartsStoreProvider=Pf;exports.RechartsWrapper=kw;exports.Rectangle=Ls;exports.RegisterGraphicalItemId=ff;exports.ReportChartMargin=xE;exports.ReportChartSize=nn;exports.ResponsiveContainer=ig;exports.SetCartesianGraphicalItem=nw;exports.SetComputedData=PN;exports.SetErrorBarContext=vw;exports.SetLegendPayload=tw;exports.SetTooltipEntrySettings=cf;exports.Shape=sf;exports.SimpleBarChart=uL;exports.Surface=fs;exports.Symbols=gs;exports.Text=pi;exports.Tooltip=N0;exports.TooltipPortalContext=rf;exports.XAxis=gf;exports.YAxis=bf;exports.ZIndexLayer=vt;exports.adaptEventHandlers=Jm;exports.adaptEventsOfChild=Un;exports.arrayTooltipSearcher=nf;exports.clsx=J;exports.commonjsGlobal=Kw;exports.createLucideIcon=_m;exports.createSelector=A;exports.findAllByType=Eo;exports.get=nr;exports.getAugmentedNamespace=Uw;exports.getBandSizeOfAxis=kn;exports.getCateCoordinateOfLine=RP;exports.getDefaultExportFromCjs=Bt;exports.getLinearRegression=rO;exports.getNormalizedStackId=Qy;exports.getStackSeriesIdentifier=fo;exports.getTooltipNameProp=Xn;exports.getUniqPayload=ly;exports.getValueByDataKey=re;exports.implicitZAxis=$b;exports.interpolate=me;exports.isCategoricalAxis=Ft;exports.isClipDot=XM;exports.isNan=mt;exports.isNonEmptyArray=pO;exports.isNotNil=Ke;exports.isNullish=pe;exports.isNumber=R;exports.isPositiveNumber=gt;exports.isWellBehavedNumber=V;exports.mouseLeaveItem=c0;exports.noop=Rr;exports.propsAreEqual=jo;exports.requireIdentity=bs;exports.requireIteratee=uy;exports.resolveDefaultProps=$e;exports.selectActiveTooltipIndex=ir;exports.selectAxisWithScale=Nr;exports.selectChartBaseValue=rj;exports.selectChartDataWithIndexesIfNotInPanoramaPosition3=fb;exports.selectChartDataWithIndexesIfNotInPanoramaPosition4=hc;exports.selectChartLayout=X;exports.selectLegendPayload=h1;exports.selectStackGroups=Sa;exports.selectTicksOfGraphicalItem=Dr;exports.selectUnfilteredCartesianItems=mo;exports.selectXAxisIdFromGraphicalItemId=sr;exports.selectYAxisIdFromGraphicalItemId=cr;exports.selectZAxisWithScale=uI;exports.setActiveClickItemIndex=d0;exports.setActiveMouseOverItemIndex=Uc;exports.setLegendSettings=$E;exports.setLegendSize=NE;exports.svgPropertiesAndEvents=Ve;exports.svgPropertiesAndEventsFromUnknown=sx;exports.svgPropertiesNoEvents=st;exports.svgPropertiesNoEventsFromUnknown=Zr;exports.useActiveTooltipDataPoints=vN;exports.useAnimationId=ri;exports.useAppDispatch=ie;exports.useAppSelector=L;exports.useCartesianChartLayout=Ns;exports.useChartHeight=Ds;exports.useChartLayout=Lr;exports.useChartName=C0;exports.useChartWidth=Ms;exports.useElementOffset=py;exports.useIsPanorama=Ge;exports.useLegendPortal=mx;exports.useMargin=bE;exports.useMouseClickItemDispatch=_o;exports.useMouseEnterItemDispatch=So;exports.useMouseLeaveItemDispatch=Ao;exports.useNeedsClip=mf;exports.usePlotArea=df;exports.useViewBox=Qn;
|