@dudousxd/nestjs-agent-dashboard 0.15.4 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/agent-client.d.ts +77 -0
- package/dist/client/agent-client.d.ts.map +1 -1
- package/dist/client/agent-client.js +8 -0
- package/dist/client/agent-client.js.map +1 -1
- package/dist/server/index.cjs +32 -0
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +14 -1
- package/dist/server/index.d.ts +14 -1
- package/dist/server/index.js +32 -0
- package/dist/server/index.js.map +1 -1
- package/dist/spa/assets/{base-ui-CWwgtV-8.js → base-ui-Bm0nR785.js} +1 -1
- package/dist/spa/assets/index-CnY2UUny.js +25 -0
- package/dist/spa/assets/index-DM4zr-AZ.css +1 -0
- package/dist/spa/assets/index-Dri7bktH.js +1 -0
- package/dist/spa/assets/preview-DQADeKT4.js +1 -0
- package/dist/spa/assets/{recharts-El_Zr62O.js → recharts-CURTGZ5d.js} +2 -2
- package/dist/spa/index.html +5 -5
- package/dist/spa/preview.html +5 -5
- package/package.json +2 -2
- package/dist/spa/assets/index-BMcG8dYT.js +0 -25
- package/dist/spa/assets/index-CO6XH1b7.css +0 -1
- package/dist/spa/assets/index-d4_rang9.js +0 -1
- package/dist/spa/assets/preview-3GvRyoRW.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var k0=Object.defineProperty;var _0=(e,t,r)=>t in e?k0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var di=(e,t,r)=>_0(e,typeof t!="symbol"?t+"":t,r);import{r as v,w as j0,c as O,a as Uv,g as T0,R as D0}from"./base-ui-CWwgtV-8.js";function Hv(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=Hv(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Q(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Hv(e))&&(n&&(n+=" "),n+=t);return n}var M0=["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 Hl(e){if(typeof e!="string")return!1;var t=M0;return t.includes(e)}var $0=["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"],N0=new Set($0);function Yv(e){return typeof e!="string"?!1:N0.has(e)}function Vv(e){return typeof e=="string"&&e.startsWith("data-")}function Ue(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Yv(r)||Vv(r))&&(t[r]=e[r]);return t}function Hr(e){if(e==null)return null;if(v.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ue(t)}return typeof e=="object"&&!Array.isArray(e)?Ue(e):null}function Qe(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Yv(r)||Vv(r)||Hl(r))&&(t[r]=e[r]);return t}function L0(e){return e==null?null:v.isValidElement(e)?Qe(e.props):typeof e=="object"&&!Array.isArray(e)?Qe(e):null}var R0=["children","width","height","viewBox","className","style","title","desc"];function Qo(){return Qo=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},Qo.apply(null,arguments)}function z0(e,t){if(e==null)return{};var r,n,i=B0(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 B0(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 Gv=v.forwardRef((e,t)=>{var r=e.children,n=e.width,i=e.height,a=e.viewBox,o=e.className,l=e.style,u=e.title,c=e.desc,s=z0(e,R0),f=a||{width:n,height:i,x:0,y:0},d=Q("recharts-surface",o);return v.createElement("svg",Qo({},Qe(s),{className:d,width:n,height:i,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),v.createElement("title",null,u),v.createElement("desc",null,c),r)}),W0=["children","className"];function Jo(){return Jo=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},Jo.apply(null,arguments)}function F0(e,t){if(e==null)return{};var r,n,i=K0(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 K0(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 ge=v.forwardRef((e,t)=>{var r=e.children,n=e.className,i=F0(e,W0),a=Q("recharts-layer",n);return v.createElement("g",Jo({className:a},Qe(i),{ref:t}),r)});function el(e){return e==="__proto__"}function qv(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function Yl(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function Xv(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Xv).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Vl(e){if(Array.isArray(e))return e.map(Yl);if(typeof e=="symbol")return[e];e=Xv(e);const t=[],r=e.length;if(r===0)return t;let n=0,i="",a="",o=!1;for(e.charCodeAt(0)===46&&t.push("");n<r;){const l=e[n];if(a)l==="\\"&&n+1<r?(n++,i+=e[n]):l===a?a="":i+=l;else if(o)l==='"'||l==="'"?a=l:l==="]"?(o=!1,t.push(i),i=""):i+=l;else if(l==="[")o=!0,i&&(t.push(i),i="");else if(l==="."){i&&(t.push(i),i="");const u=e[n+1];(u===void 0||u===".")&&t.push("")}else i+=l;n++}return i&&t.push(i),t}function Et(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(el(t))return r;const n=e[t];return n===void 0?qv(t)&&!Object.hasOwn(e,t)?Et(e,Vl(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=Yl(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return U0(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),el(t))return r;const n=e[t];return n===void 0?r:n}}}function U0(e,t,r){if(t.length===0)return r;let n=e;for(let i=0;i<t.length;i++){if(n==null||el(t[i]))return r;n=n[t[i]]}return n===void 0?r:n}var H0=4;function Dt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H0,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ke(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 l=r[o-1];return typeof l=="string"?i+l+a:l!==void 0?i+Dt(l)+a:i+a},"")}var $e=e=>e===0?0:e>0?1:-1,It=e=>typeof e=="number"&&e!=+e,br=e=>typeof e=="string"&&e.length>1&&e.indexOf("%")===e.length-1,D=e=>(typeof e=="number"||e instanceof Number)&&!It(e),Ct=e=>D(e)||typeof e=="string",Y0=0,Tn=e=>{var t=++Y0;return"".concat(e||"").concat(t)},Xe=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(!D(t)&&typeof t!="string")return n;var a;if(br(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return It(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},Zv=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 ze(e,t,r){return D(e)&&D(t)?Dt(e+r*(t-e)):t}function Qv(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Et(n,t))===r)}var pe=e=>e===null||typeof e>"u",Gl=e=>pe(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Be(e){return e!=null}function Er(){}function ql(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}}function Zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zc(Object(r),!0).forEach(function(n){V0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V0(e,t,r){return(t=G0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G0(e){var t=q0(e,"string");return typeof t=="symbol"?t:t+""}function q0(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 X0=e=>{var t=e.viewBox,r=e.position,n=e.offset,i=n===void 0?0:n,a=e.parentViewBox,o=ql(t),l=o.x,u=o.y,c=o.height,s=o.upperWidth,f=o.lowerWidth,d=l,h=l+(s-f)/2,p=(d+h)/2,m=(s+f)/2,y=d+s/2,g=c>=0?1:-1,x=g*i,w=g>0?"end":"start",A=g>0?"start":"end",P=s>=0?1:-1,b=P*i,S=P>0?"end":"start",I=P>0?"start":"end",C=a;if(r==="top"){var k={x:d+s/2,y:u-x,horizontalAnchor:"middle",verticalAnchor:w};return C&&(k.height=Math.max(u-C.y,0),k.width=s),k}if(r==="bottom"){var _={x:h+f/2,y:u+c+x,horizontalAnchor:"middle",verticalAnchor:A};return C&&(_.height=Math.max(C.y+C.height-(u+c),0),_.width=f),_}if(r==="left"){var E={x:p-b,y:u+c/2,horizontalAnchor:S,verticalAnchor:"middle"};return C&&(E.width=Math.max(E.x-C.x,0),E.height=c),E}if(r==="right"){var L={x:p+m+b,y:u+c/2,horizontalAnchor:I,verticalAnchor:"middle"};return C&&(L.width=Math.max(C.x+C.width-L.x,0),L.height=c),L}var T=C?{width:m,height:c}:{};return r==="insideLeft"?gt({x:p+b,y:u+c/2,horizontalAnchor:I,verticalAnchor:"middle"},T):r==="insideRight"?gt({x:p+m-b,y:u+c/2,horizontalAnchor:S,verticalAnchor:"middle"},T):r==="insideTop"?gt({x:d+s/2,y:u+x,horizontalAnchor:"middle",verticalAnchor:A},T):r==="insideBottom"?gt({x:h+f/2,y:u+c-x,horizontalAnchor:"middle",verticalAnchor:w},T):r==="insideTopLeft"?gt({x:d+b,y:u+x,horizontalAnchor:I,verticalAnchor:A},T):r==="insideTopRight"?gt({x:d+s-b,y:u+x,horizontalAnchor:S,verticalAnchor:A},T):r==="insideBottomLeft"?gt({x:h+b,y:u+c-x,horizontalAnchor:I,verticalAnchor:w},T):r==="insideBottomRight"?gt({x:h+f-b,y:u+c-x,horizontalAnchor:S,verticalAnchor:w},T):r&&typeof r=="object"&&(D(r.x)||br(r.x))&&(D(r.y)||br(r.y))?gt({x:l+Xe(r.x,m),y:u+Xe(r.y,c),horizontalAnchor:"end",verticalAnchor:"end"},T):gt({x:y,y:u+c/2,horizontalAnchor:"middle",verticalAnchor:"middle"},T)},Z0=["top","left","right","bottom"];function Q0(e){return e==null?!1:typeof e=="object"?!0:Z0.includes(e)}var J0=v.createContext(null);function se(e){return function(){return e}}const tl=Math.PI,rl=2*tl,ur=1e-6,eb=rl-ur;function Jv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function tb(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Jv;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 rb{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Jv:tb(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,l=this._y1,u=n-t,c=i-r,s=o-t,f=l-r,d=s*s+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>ur)if(!(Math.abs(f*u-c*s)>ur)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,p=i-l,m=u*u+c*c,y=h*h+p*p,g=Math.sqrt(m),x=Math.sqrt(d),w=a*Math.tan((tl-Math.acos((m+d-y)/(2*g*x)))/2),A=w/x,P=w/g;Math.abs(A-1)>ur&&this._append`L${t+A*s},${r+A*f}`,this._append`A${a},${a},0,0,${+(f*h>s*p)},${this._x1=t+P*u},${this._y1=r+P*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),c=t+l,s=r+u,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${s}`:(Math.abs(this._x1-c)>ur||Math.abs(this._y1-s)>ur)&&this._append`L${c},${s}`,n&&(d<0&&(d=d%rl+rl),d>eb?this._append`A${n},${n},0,1,${f},${t-l},${r-u}A${n},${n},0,1,${f},${this._x1=c},${this._y1=s}`:d>ur&&this._append`A${n},${n},0,${+(d>=tl)},${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 eh(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 rb(t)}function Xl(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function th(e){this._context=e}th.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 Sa(e){return new th(e)}function rh(e){return e[0]}function nh(e){return e[1]}function ih(e,t){var r=se(!0),n=null,i=Sa,a=null,o=eh(l);e=typeof e=="function"?e:e===void 0?rh:se(e),t=typeof t=="function"?t:t===void 0?nh:se(t);function l(u){var c,s=(u=Xl(u)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=s;++c)!(c<s&&r(f=u[c],c,u))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,u),+t(f,c,u));if(h)return a=null,h+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:se(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:se(+u),l):t},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:se(!!u),l):r},l.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),l):i},l.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),l):n},l}function vi(e,t,r){var n=null,i=se(!0),a=null,o=Sa,l=null,u=eh(c);e=typeof e=="function"?e:e===void 0?rh:se(+e),t=typeof t=="function"?t:se(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?nh:se(+r);function c(f){var d,h,p,m=(f=Xl(f)).length,y,g=!1,x,w=new Array(m),A=new Array(m);for(a==null&&(l=o(x=u())),d=0;d<=m;++d){if(!(d<m&&i(y=f[d],d,f))===g)if(g=!g)h=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=d-1;p>=h;--p)l.point(w[p],A[p]);l.lineEnd(),l.areaEnd()}g&&(w[d]=+e(y,d,f),A[d]=+t(y,d,f),l.point(n?+n(y,d,f):w[d],r?+r(y,d,f):A[d]))}if(x)return l=null,x+""||null}function s(){return ih().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:se(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:se(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:se(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:se(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:se(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:se(+f),c):r},c.lineX0=c.lineY0=function(){return s().x(e).y(t)},c.lineY1=function(){return s().x(e).y(r)},c.lineX1=function(){return s().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:se(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),c):a},c}class ah{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 nb(e){return new ah(e,!0)}function ib(e){return new ah(e,!1)}function Di(){}function Mi(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 oh(e){this._context=e}oh.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:Mi(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:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ab(e){return new oh(e)}function lh(e){this._context=e}lh.prototype={areaStart:Di,areaEnd:Di,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:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ob(e){return new lh(e)}function uh(e){this._context=e}uh.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:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lb(e){return new uh(e)}function ch(e){this._context=e}ch.prototype={areaStart:Di,areaEnd:Di,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 ub(e){return new ch(e)}function Qc(e){return e<0?-1:1}function Jc(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),l=(a*i+o*n)/(n+i);return(Qc(a)+Qc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function es(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Eo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function $i(e){this._context=e}$i.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:Eo(this,this._t0,es(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,Eo(this,es(this,r=Jc(this,e,t)),r);break;default:Eo(this,this._t0,r=Jc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function sh(e){this._context=new fh(e)}(sh.prototype=Object.create($i.prototype)).point=function(e,t){$i.prototype.point.call(this,t,e)};function fh(e){this._context=e}fh.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 cb(e){return new $i(e)}function sb(e){return new sh(e)}function dh(e){this._context=e}dh.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=ts(e),i=ts(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 ts(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 fb(e){return new dh(e)}function Ea(e,t){this._context=e,this._t=t}Ea.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 db(e){return new Ea(e,.5)}function vb(e){return new Ea(e,0)}function hb(e){return new Ea(e,1)}function xr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function nl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function pb(e,t){return e[t]}function mb(e){const t=[];return t.key=e,t}function yb(){var e=se([]),t=nl,r=xr,n=pb;function i(a){var o=Array.from(e.apply(this,arguments),mb),l,u=o.length,c=-1,s;for(const f of a)for(l=0,++c;l<u;++l)(o[l][c]=[0,+n(f,o[l].key,c,a)]).data=f;for(l=0,s=Xl(t(o));l<u;++l)o[s[l]].index=l;return r(o,s),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:se(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:se(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?nl:typeof a=="function"?a:se(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??xr,i):r},i}function gb(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}xr(e,t)}}function bb(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,l=0;o<i;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}xr(e,t)}}function xb(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 l=0,u=0,c=0;l<o;++l){for(var s=e[t[l]],f=s[n][1]||0,d=s[n-1][1]||0,h=(f-d)/2,p=0;p<l;++p){var m=e[t[p]],y=m[n][1]||0,g=m[n-1][1]||0;h+=y-g}u+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,u&&(r-=c/u)}i[n-1][1]+=i[n-1][0]=r,xr(e,t)}}var vh=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Zl=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(v.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Hl(i)&&typeof r[i]=="function"&&(n[i]=a=>r[i](r,a))}),n},wb=(e,t,r)=>n=>(e(t,r,n),null),hh=(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];Hl(i)&&typeof a=="function"&&(n||(n={}),n[i]=wb(a,t,r))}),n};function rs(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 Ab(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rs(Object(r),!0).forEach(function(n){Pb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pb(e,t,r){return(t=Ob(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ob(e){var t=Sb(e,"string");return typeof t=="symbol"?t:t+""}function Sb(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 je(e,t){var r=Ab({},e),n=t,i=Object.keys(t),a=i.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return a}function Eb(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],a=t(i,n,e);r.has(a)||r.set(a,i)}return Array.from(r.values())}function Ib(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function ph(e){return e}function Cb(e){return function(t){return Et(t,e)}}function il(e){return e==null||typeof e!="object"&&typeof e!="function"}function kb(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function al(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Dn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const mh="[object RegExp]",Ql="[object String]",Jl="[object Number]",eu="[object Boolean]",yh="[object Arguments]",gh="[object Symbol]",bh="[object Date]",xh="[object Map]",wh="[object Set]",Ah="[object Array]",_b="[object Function]",Ph="[object ArrayBuffer]",Ci="[object Object]",jb="[object Error]",Oh="[object DataView]",Sh="[object Uint8Array]",Eh="[object Uint8ClampedArray]",Ih="[object Uint16Array]",Ch="[object Uint32Array]",Tb="[object BigUint64Array]",kh="[object Int8Array]",_h="[object Int16Array]",jh="[object Int32Array]",Db="[object BigInt64Array]",Th="[object Float32Array]",Dh="[object Float64Array]",ns=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function ol(e){return typeof ns.Buffer<"u"&&ns.Buffer.isBuffer(e)}function Mb(e,t){return fr(e,void 0,e,new Map,t)}function fr(e,t,r,n=new Map,i=void 0){const a=i==null?void 0:i(e,t,r,n);if(a!==void 0)return a;if(il(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const o=new Array(e.length);n.set(e,o);for(let l=0;l<e.length;l++)o[l]=fr(e[l],l,r,n,i);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;n.set(e,o);for(const[l,u]of e)o.set(l,fr(u,l,r,n,i));return o}if(e instanceof Set){const o=new Set;n.set(e,o);for(const l of e)o.add(fr(l,void 0,r,n,i));return o}if(ol(e))return e.subarray();if(kb(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,o);for(let l=0;l<e.length;l++)o[l]=fr(e[l],l,r,n,i);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,o),ft(o,e,r,n,i),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return n.set(e,o),ft(o,e,r,n,i),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return n.set(e,o),ft(o,e,r,n,i),o}if(e instanceof Error){const o=structuredClone(e);return n.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,ft(o,e,r,n,i),o}if(e instanceof Boolean){const o=new Boolean(e.valueOf());return n.set(e,o),ft(o,e,r,n,i),o}if(e instanceof Number){const o=new Number(e.valueOf());return n.set(e,o),ft(o,e,r,n,i),o}if(e instanceof String){const o=new String(e.valueOf());return n.set(e,o),ft(o,e,r,n,i),o}if(typeof e=="object"&&$b(e)){const o=Object.create(Object.getPrototypeOf(e));return n.set(e,o),ft(o,e,r,n,i),o}return e}function ft(e,t,r=e,n,i){const a=[...Object.keys(t),...al(t)];for(let o=0;o<a.length;o++){const l=a[o],u=Object.getOwnPropertyDescriptor(e,l);(u==null||u.writable)&&(e[l]=fr(t[l],l,r,n,i))}}function $b(e){switch(Dn(e)){case yh:case Ah:case Ph:case Oh:case eu:case bh:case Th:case Dh:case kh:case _h:case jh:case xh:case Jl:case Ci:case mh:case wh:case Ql:case gh:case Sh:case Eh:case Ih:case Ch:return!0;default:return!1}}function Nb(e){return fr(e,void 0,e,new Map,void 0)}function In(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Mh(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function $h(e,t,r){return typeof r!="function"?$h(e,t,()=>{}):ll(e,t,function n(i,a,o,l,u,c){const s=r(i,a,o,l,u,c);return s!==void 0?!!s:ll(i,a,n,c,!1)},new Map,!0)}function ll(e,t,r,n,i=!1){if(t===e)return!0;switch(typeof t){case"object":return Lb(e,t,r,n);case"function":return Object.keys(t).length>0?ll(e,{...t},r,n,i):In(e,t);default:return Mh(e)&&i?typeof t=="string"?t==="":!0:In(e,t)}}function Lb(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Nh(e,t,r,n);if(t instanceof Map)return Rb(e,t,r,n);if(t instanceof Set)return zb(e,t,r,n);const i=Object.keys(t);if(e==null||il(e))return i.length===0;if(i.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let a=0;a<i.length;a++){const o=i[a];if(!il(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function Rb(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[i,a]of t.entries())if(r(e.get(i),a,i,e,t,n)===!1)return!1;return!0}function Nh(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let a=0;a<t.length;a++){const o=t[a];let l=!1;for(let u=0;u<e.length;u++){if(i.has(u))continue;const c=e[u];let s=!1;if(r(c,o,a,e,t,n)&&(s=!0),s){i.add(u),l=!0;break}}if(!l)return!1}return!0}function zb(e,t,r,n){return t.size===0?!0:e instanceof Set?Nh([...e],[...t],r,n):!1}function Lh(e,t){return $h(e,t,()=>{})}function Bb(e){return e=Nb(e),t=>Lh(t,e)}function Wb(e,t){return Mb(e,(r,n,i,a)=>{if(typeof e=="object"){if(Dn(e)==="[object Object]"&&typeof e.constructor!="function"){const o={};return a.set(e,o),ft(o,e,i,a),o}switch(Object.prototype.toString.call(e)){case Jl:case Ql:case eu:{const o=new e.constructor(e==null?void 0:e.valueOf());return ft(o,e),o}case yh:{const o={};return ft(o,e),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}default:return}}})}function Fb(e){return Wb(e)}const Kb=/^(?:0|[1-9]\d*)$/;function Rh(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return Kb.test(e)}}function Ub(e){return e!==null&&typeof e=="object"&&Dn(e)==="[object Arguments]"}function Hb(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&qv(t)&&(e==null?void 0:e[t])==null?r=Vl(t):r=[t],r.length===0)return!1;let n=e;for(let i=0;i<r.length;i++){const a=r[i];if((n==null||!Object.hasOwn(n,a))&&!((Array.isArray(n)||Ub(n))&&Rh(a)&&a<n.length))return!1;n=n[a]}return!0}function Yb(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=Yl(e);break}return t=Fb(t),function(r){const n=Et(r,e);return n===void 0?Hb(r,e):t===void 0?n===void 0:Lh(n,t)}}function Vb(e){if(e==null)return ph;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?Yb(e[0],e[1]):Bb(e);case"string":case"symbol":case"number":return Cb(e)}}function Gb(e){return Number.isSafeInteger(e)&&e>=0}function zh(e){return e!=null&&typeof e!="function"&&Gb(e.length)}function qb(e){return typeof e=="object"&&e!==null}function Xb(e){return qb(e)&&zh(e)}function is(e,t=ph){return Xb(e)?Eb(Array.from(e),Ib(Vb(t),1)):[]}function Zb(e,t,r){return t===!0?is(e,r):typeof t=="function"?is(e,t):e}var tu=v.createContext(null),Qb=e=>e,re=()=>{var e=v.useContext(tu);return e?e.store.dispatch:Qb},ki=()=>{},Jb=()=>ki,ex=(e,t)=>e===t;function N(e){var t=v.useContext(tu),r=v.useMemo(()=>t?n=>{if(n!=null)return e(n)}:ki,[t,e]);return j0.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Jb,t?t.store.getState:ki,t?t.store.getState:ki,r,ex)}function tx(e,t=1){const r=[],n=Math.floor(t),i=(a,o)=>{for(let l=0;l<a.length;l++){const u=a[l];Array.isArray(u)&&o<n?i(u,o+1):r.push(u)}};return i(e,0),r}function ul(e,t,r){return Mh(r)&&(typeof t=="number"&&zh(r)&&Rh(t)&&t<r.length||typeof t=="string"&&t in r)?In(r[t],e):!1}function as(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const rx=(e,t,r)=>{if(e!==t){const n=as(e),i=as(t);if(n===i&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?i-n:n-i}return 0};function Bh(e){return typeof e=="symbol"||e instanceof Symbol}const nx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ix=/^\w*$/;function ax(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Bh(e)?!0:typeof e=="string"&&(ix.test(e)||!nx.test(e))||t!=null}function ox(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const i=(l,u)=>{let c=l;for(let s=0;s<u.length&&c!=null;++s)c=c[u[s]];return c},a=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:i(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?i(u,l):typeof u=="object"?u[l]:u,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||ax(l)?l:{key:l,path:Vl(l)}));return e.map(l=>({original:l,criteria:o.map(u=>a(u,l))})).slice().sort((l,u)=>{for(let c=0;c<o.length;c++){const s=rx(l.criteria[c],u.criteria[c],r[c]);if(s!==0)return s}return 0}).map(l=>l.original)}function Ia(e,...t){const r=t.length;return r>1&&ul(e,t[0],t[1])?t=[]:r>2&&ul(t[0],t[1],t[2])&&(t=[t[0]]),ox(e,tx(t),["asc"])}var Wh=e=>e.legend.settings,lx=e=>e.legend.size,ux=e=>e.legend.payload;O([ux,Wh],(e,t)=>{var r=t.itemSorter,n=e.flat(1);return r?Ia(n,r):n});function cx(e,t){return vx(e)||dx(e,t)||fx(e,t)||sx()}function sx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
var k0=Object.defineProperty;var _0=(e,t,r)=>t in e?k0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var di=(e,t,r)=>_0(e,typeof t!="symbol"?t+"":t,r);import{r as v,w as j0,c as O,a as Uv,g as T0,R as D0}from"./base-ui-Bm0nR785.js";function Hv(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=Hv(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Q(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Hv(e))&&(n&&(n+=" "),n+=t);return n}var M0=["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 Hl(e){if(typeof e!="string")return!1;var t=M0;return t.includes(e)}var $0=["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"],N0=new Set($0);function Yv(e){return typeof e!="string"?!1:N0.has(e)}function Vv(e){return typeof e=="string"&&e.startsWith("data-")}function Ue(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Yv(r)||Vv(r))&&(t[r]=e[r]);return t}function Hr(e){if(e==null)return null;if(v.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ue(t)}return typeof e=="object"&&!Array.isArray(e)?Ue(e):null}function Qe(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Yv(r)||Vv(r)||Hl(r))&&(t[r]=e[r]);return t}function L0(e){return e==null?null:v.isValidElement(e)?Qe(e.props):typeof e=="object"&&!Array.isArray(e)?Qe(e):null}var R0=["children","width","height","viewBox","className","style","title","desc"];function Qo(){return Qo=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},Qo.apply(null,arguments)}function z0(e,t){if(e==null)return{};var r,n,i=B0(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 B0(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 Gv=v.forwardRef((e,t)=>{var r=e.children,n=e.width,i=e.height,a=e.viewBox,o=e.className,l=e.style,u=e.title,c=e.desc,s=z0(e,R0),f=a||{width:n,height:i,x:0,y:0},d=Q("recharts-surface",o);return v.createElement("svg",Qo({},Qe(s),{className:d,width:n,height:i,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),v.createElement("title",null,u),v.createElement("desc",null,c),r)}),W0=["children","className"];function Jo(){return Jo=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},Jo.apply(null,arguments)}function F0(e,t){if(e==null)return{};var r,n,i=K0(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 K0(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 ge=v.forwardRef((e,t)=>{var r=e.children,n=e.className,i=F0(e,W0),a=Q("recharts-layer",n);return v.createElement("g",Jo({className:a},Qe(i),{ref:t}),r)});function el(e){return e==="__proto__"}function qv(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function Yl(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function Xv(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Xv).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Vl(e){if(Array.isArray(e))return e.map(Yl);if(typeof e=="symbol")return[e];e=Xv(e);const t=[],r=e.length;if(r===0)return t;let n=0,i="",a="",o=!1;for(e.charCodeAt(0)===46&&t.push("");n<r;){const l=e[n];if(a)l==="\\"&&n+1<r?(n++,i+=e[n]):l===a?a="":i+=l;else if(o)l==='"'||l==="'"?a=l:l==="]"?(o=!1,t.push(i),i=""):i+=l;else if(l==="[")o=!0,i&&(t.push(i),i="");else if(l==="."){i&&(t.push(i),i="");const u=e[n+1];(u===void 0||u===".")&&t.push("")}else i+=l;n++}return i&&t.push(i),t}function Et(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(el(t))return r;const n=e[t];return n===void 0?qv(t)&&!Object.hasOwn(e,t)?Et(e,Vl(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=Yl(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return U0(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),el(t))return r;const n=e[t];return n===void 0?r:n}}}function U0(e,t,r){if(t.length===0)return r;let n=e;for(let i=0;i<t.length;i++){if(n==null||el(t[i]))return r;n=n[t[i]]}return n===void 0?r:n}var H0=4;function Dt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H0,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ke(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 l=r[o-1];return typeof l=="string"?i+l+a:l!==void 0?i+Dt(l)+a:i+a},"")}var $e=e=>e===0?0:e>0?1:-1,It=e=>typeof e=="number"&&e!=+e,br=e=>typeof e=="string"&&e.length>1&&e.indexOf("%")===e.length-1,D=e=>(typeof e=="number"||e instanceof Number)&&!It(e),Ct=e=>D(e)||typeof e=="string",Y0=0,Tn=e=>{var t=++Y0;return"".concat(e||"").concat(t)},Xe=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(!D(t)&&typeof t!="string")return n;var a;if(br(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return It(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},Zv=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 ze(e,t,r){return D(e)&&D(t)?Dt(e+r*(t-e)):t}function Qv(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Et(n,t))===r)}var pe=e=>e===null||typeof e>"u",Gl=e=>pe(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Be(e){return e!=null}function Er(){}function ql(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}}function Zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zc(Object(r),!0).forEach(function(n){V0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V0(e,t,r){return(t=G0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G0(e){var t=q0(e,"string");return typeof t=="symbol"?t:t+""}function q0(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 X0=e=>{var t=e.viewBox,r=e.position,n=e.offset,i=n===void 0?0:n,a=e.parentViewBox,o=ql(t),l=o.x,u=o.y,c=o.height,s=o.upperWidth,f=o.lowerWidth,d=l,h=l+(s-f)/2,p=(d+h)/2,m=(s+f)/2,y=d+s/2,g=c>=0?1:-1,x=g*i,w=g>0?"end":"start",A=g>0?"start":"end",P=s>=0?1:-1,b=P*i,S=P>0?"end":"start",I=P>0?"start":"end",C=a;if(r==="top"){var k={x:d+s/2,y:u-x,horizontalAnchor:"middle",verticalAnchor:w};return C&&(k.height=Math.max(u-C.y,0),k.width=s),k}if(r==="bottom"){var _={x:h+f/2,y:u+c+x,horizontalAnchor:"middle",verticalAnchor:A};return C&&(_.height=Math.max(C.y+C.height-(u+c),0),_.width=f),_}if(r==="left"){var E={x:p-b,y:u+c/2,horizontalAnchor:S,verticalAnchor:"middle"};return C&&(E.width=Math.max(E.x-C.x,0),E.height=c),E}if(r==="right"){var L={x:p+m+b,y:u+c/2,horizontalAnchor:I,verticalAnchor:"middle"};return C&&(L.width=Math.max(C.x+C.width-L.x,0),L.height=c),L}var T=C?{width:m,height:c}:{};return r==="insideLeft"?gt({x:p+b,y:u+c/2,horizontalAnchor:I,verticalAnchor:"middle"},T):r==="insideRight"?gt({x:p+m-b,y:u+c/2,horizontalAnchor:S,verticalAnchor:"middle"},T):r==="insideTop"?gt({x:d+s/2,y:u+x,horizontalAnchor:"middle",verticalAnchor:A},T):r==="insideBottom"?gt({x:h+f/2,y:u+c-x,horizontalAnchor:"middle",verticalAnchor:w},T):r==="insideTopLeft"?gt({x:d+b,y:u+x,horizontalAnchor:I,verticalAnchor:A},T):r==="insideTopRight"?gt({x:d+s-b,y:u+x,horizontalAnchor:S,verticalAnchor:A},T):r==="insideBottomLeft"?gt({x:h+b,y:u+c-x,horizontalAnchor:I,verticalAnchor:w},T):r==="insideBottomRight"?gt({x:h+f-b,y:u+c-x,horizontalAnchor:S,verticalAnchor:w},T):r&&typeof r=="object"&&(D(r.x)||br(r.x))&&(D(r.y)||br(r.y))?gt({x:l+Xe(r.x,m),y:u+Xe(r.y,c),horizontalAnchor:"end",verticalAnchor:"end"},T):gt({x:y,y:u+c/2,horizontalAnchor:"middle",verticalAnchor:"middle"},T)},Z0=["top","left","right","bottom"];function Q0(e){return e==null?!1:typeof e=="object"?!0:Z0.includes(e)}var J0=v.createContext(null);function se(e){return function(){return e}}const tl=Math.PI,rl=2*tl,ur=1e-6,eb=rl-ur;function Jv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function tb(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Jv;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 rb{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Jv:tb(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,l=this._y1,u=n-t,c=i-r,s=o-t,f=l-r,d=s*s+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>ur)if(!(Math.abs(f*u-c*s)>ur)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,p=i-l,m=u*u+c*c,y=h*h+p*p,g=Math.sqrt(m),x=Math.sqrt(d),w=a*Math.tan((tl-Math.acos((m+d-y)/(2*g*x)))/2),A=w/x,P=w/g;Math.abs(A-1)>ur&&this._append`L${t+A*s},${r+A*f}`,this._append`A${a},${a},0,0,${+(f*h>s*p)},${this._x1=t+P*u},${this._y1=r+P*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),c=t+l,s=r+u,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${s}`:(Math.abs(this._x1-c)>ur||Math.abs(this._y1-s)>ur)&&this._append`L${c},${s}`,n&&(d<0&&(d=d%rl+rl),d>eb?this._append`A${n},${n},0,1,${f},${t-l},${r-u}A${n},${n},0,1,${f},${this._x1=c},${this._y1=s}`:d>ur&&this._append`A${n},${n},0,${+(d>=tl)},${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 eh(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 rb(t)}function Xl(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function th(e){this._context=e}th.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 Sa(e){return new th(e)}function rh(e){return e[0]}function nh(e){return e[1]}function ih(e,t){var r=se(!0),n=null,i=Sa,a=null,o=eh(l);e=typeof e=="function"?e:e===void 0?rh:se(e),t=typeof t=="function"?t:t===void 0?nh:se(t);function l(u){var c,s=(u=Xl(u)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=s;++c)!(c<s&&r(f=u[c],c,u))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,u),+t(f,c,u));if(h)return a=null,h+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:se(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:se(+u),l):t},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:se(!!u),l):r},l.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),l):i},l.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),l):n},l}function vi(e,t,r){var n=null,i=se(!0),a=null,o=Sa,l=null,u=eh(c);e=typeof e=="function"?e:e===void 0?rh:se(+e),t=typeof t=="function"?t:se(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?nh:se(+r);function c(f){var d,h,p,m=(f=Xl(f)).length,y,g=!1,x,w=new Array(m),A=new Array(m);for(a==null&&(l=o(x=u())),d=0;d<=m;++d){if(!(d<m&&i(y=f[d],d,f))===g)if(g=!g)h=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=d-1;p>=h;--p)l.point(w[p],A[p]);l.lineEnd(),l.areaEnd()}g&&(w[d]=+e(y,d,f),A[d]=+t(y,d,f),l.point(n?+n(y,d,f):w[d],r?+r(y,d,f):A[d]))}if(x)return l=null,x+""||null}function s(){return ih().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:se(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:se(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:se(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:se(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:se(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:se(+f),c):r},c.lineX0=c.lineY0=function(){return s().x(e).y(t)},c.lineY1=function(){return s().x(e).y(r)},c.lineX1=function(){return s().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:se(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),c):a},c}class ah{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 nb(e){return new ah(e,!0)}function ib(e){return new ah(e,!1)}function Di(){}function Mi(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 oh(e){this._context=e}oh.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:Mi(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:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ab(e){return new oh(e)}function lh(e){this._context=e}lh.prototype={areaStart:Di,areaEnd:Di,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:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ob(e){return new lh(e)}function uh(e){this._context=e}uh.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:Mi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lb(e){return new uh(e)}function ch(e){this._context=e}ch.prototype={areaStart:Di,areaEnd:Di,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 ub(e){return new ch(e)}function Qc(e){return e<0?-1:1}function Jc(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),l=(a*i+o*n)/(n+i);return(Qc(a)+Qc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function es(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Eo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function $i(e){this._context=e}$i.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:Eo(this,this._t0,es(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,Eo(this,es(this,r=Jc(this,e,t)),r);break;default:Eo(this,this._t0,r=Jc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function sh(e){this._context=new fh(e)}(sh.prototype=Object.create($i.prototype)).point=function(e,t){$i.prototype.point.call(this,t,e)};function fh(e){this._context=e}fh.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 cb(e){return new $i(e)}function sb(e){return new sh(e)}function dh(e){this._context=e}dh.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=ts(e),i=ts(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 ts(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 fb(e){return new dh(e)}function Ea(e,t){this._context=e,this._t=t}Ea.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 db(e){return new Ea(e,.5)}function vb(e){return new Ea(e,0)}function hb(e){return new Ea(e,1)}function xr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function nl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function pb(e,t){return e[t]}function mb(e){const t=[];return t.key=e,t}function yb(){var e=se([]),t=nl,r=xr,n=pb;function i(a){var o=Array.from(e.apply(this,arguments),mb),l,u=o.length,c=-1,s;for(const f of a)for(l=0,++c;l<u;++l)(o[l][c]=[0,+n(f,o[l].key,c,a)]).data=f;for(l=0,s=Xl(t(o));l<u;++l)o[s[l]].index=l;return r(o,s),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:se(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:se(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?nl:typeof a=="function"?a:se(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??xr,i):r},i}function gb(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}xr(e,t)}}function bb(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,l=0;o<i;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}xr(e,t)}}function xb(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 l=0,u=0,c=0;l<o;++l){for(var s=e[t[l]],f=s[n][1]||0,d=s[n-1][1]||0,h=(f-d)/2,p=0;p<l;++p){var m=e[t[p]],y=m[n][1]||0,g=m[n-1][1]||0;h+=y-g}u+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,u&&(r-=c/u)}i[n-1][1]+=i[n-1][0]=r,xr(e,t)}}var vh=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Zl=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(v.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Hl(i)&&typeof r[i]=="function"&&(n[i]=a=>r[i](r,a))}),n},wb=(e,t,r)=>n=>(e(t,r,n),null),hh=(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];Hl(i)&&typeof a=="function"&&(n||(n={}),n[i]=wb(a,t,r))}),n};function rs(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 Ab(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rs(Object(r),!0).forEach(function(n){Pb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pb(e,t,r){return(t=Ob(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ob(e){var t=Sb(e,"string");return typeof t=="symbol"?t:t+""}function Sb(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 je(e,t){var r=Ab({},e),n=t,i=Object.keys(t),a=i.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return a}function Eb(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],a=t(i,n,e);r.has(a)||r.set(a,i)}return Array.from(r.values())}function Ib(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function ph(e){return e}function Cb(e){return function(t){return Et(t,e)}}function il(e){return e==null||typeof e!="object"&&typeof e!="function"}function kb(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function al(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Dn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const mh="[object RegExp]",Ql="[object String]",Jl="[object Number]",eu="[object Boolean]",yh="[object Arguments]",gh="[object Symbol]",bh="[object Date]",xh="[object Map]",wh="[object Set]",Ah="[object Array]",_b="[object Function]",Ph="[object ArrayBuffer]",Ci="[object Object]",jb="[object Error]",Oh="[object DataView]",Sh="[object Uint8Array]",Eh="[object Uint8ClampedArray]",Ih="[object Uint16Array]",Ch="[object Uint32Array]",Tb="[object BigUint64Array]",kh="[object Int8Array]",_h="[object Int16Array]",jh="[object Int32Array]",Db="[object BigInt64Array]",Th="[object Float32Array]",Dh="[object Float64Array]",ns=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function ol(e){return typeof ns.Buffer<"u"&&ns.Buffer.isBuffer(e)}function Mb(e,t){return fr(e,void 0,e,new Map,t)}function fr(e,t,r,n=new Map,i=void 0){const a=i==null?void 0:i(e,t,r,n);if(a!==void 0)return a;if(il(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const o=new Array(e.length);n.set(e,o);for(let l=0;l<e.length;l++)o[l]=fr(e[l],l,r,n,i);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;n.set(e,o);for(const[l,u]of e)o.set(l,fr(u,l,r,n,i));return o}if(e instanceof Set){const o=new Set;n.set(e,o);for(const l of e)o.add(fr(l,void 0,r,n,i));return o}if(ol(e))return e.subarray();if(kb(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,o);for(let l=0;l<e.length;l++)o[l]=fr(e[l],l,r,n,i);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,o),ft(o,e,r,n,i),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return n.set(e,o),ft(o,e,r,n,i),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return n.set(e,o),ft(o,e,r,n,i),o}if(e instanceof Error){const o=structuredClone(e);return n.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,ft(o,e,r,n,i),o}if(e instanceof Boolean){const o=new Boolean(e.valueOf());return n.set(e,o),ft(o,e,r,n,i),o}if(e instanceof Number){const o=new Number(e.valueOf());return n.set(e,o),ft(o,e,r,n,i),o}if(e instanceof String){const o=new String(e.valueOf());return n.set(e,o),ft(o,e,r,n,i),o}if(typeof e=="object"&&$b(e)){const o=Object.create(Object.getPrototypeOf(e));return n.set(e,o),ft(o,e,r,n,i),o}return e}function ft(e,t,r=e,n,i){const a=[...Object.keys(t),...al(t)];for(let o=0;o<a.length;o++){const l=a[o],u=Object.getOwnPropertyDescriptor(e,l);(u==null||u.writable)&&(e[l]=fr(t[l],l,r,n,i))}}function $b(e){switch(Dn(e)){case yh:case Ah:case Ph:case Oh:case eu:case bh:case Th:case Dh:case kh:case _h:case jh:case xh:case Jl:case Ci:case mh:case wh:case Ql:case gh:case Sh:case Eh:case Ih:case Ch:return!0;default:return!1}}function Nb(e){return fr(e,void 0,e,new Map,void 0)}function In(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Mh(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function $h(e,t,r){return typeof r!="function"?$h(e,t,()=>{}):ll(e,t,function n(i,a,o,l,u,c){const s=r(i,a,o,l,u,c);return s!==void 0?!!s:ll(i,a,n,c,!1)},new Map,!0)}function ll(e,t,r,n,i=!1){if(t===e)return!0;switch(typeof t){case"object":return Lb(e,t,r,n);case"function":return Object.keys(t).length>0?ll(e,{...t},r,n,i):In(e,t);default:return Mh(e)&&i?typeof t=="string"?t==="":!0:In(e,t)}}function Lb(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Nh(e,t,r,n);if(t instanceof Map)return Rb(e,t,r,n);if(t instanceof Set)return zb(e,t,r,n);const i=Object.keys(t);if(e==null||il(e))return i.length===0;if(i.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let a=0;a<i.length;a++){const o=i[a];if(!il(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function Rb(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[i,a]of t.entries())if(r(e.get(i),a,i,e,t,n)===!1)return!1;return!0}function Nh(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let a=0;a<t.length;a++){const o=t[a];let l=!1;for(let u=0;u<e.length;u++){if(i.has(u))continue;const c=e[u];let s=!1;if(r(c,o,a,e,t,n)&&(s=!0),s){i.add(u),l=!0;break}}if(!l)return!1}return!0}function zb(e,t,r,n){return t.size===0?!0:e instanceof Set?Nh([...e],[...t],r,n):!1}function Lh(e,t){return $h(e,t,()=>{})}function Bb(e){return e=Nb(e),t=>Lh(t,e)}function Wb(e,t){return Mb(e,(r,n,i,a)=>{if(typeof e=="object"){if(Dn(e)==="[object Object]"&&typeof e.constructor!="function"){const o={};return a.set(e,o),ft(o,e,i,a),o}switch(Object.prototype.toString.call(e)){case Jl:case Ql:case eu:{const o=new e.constructor(e==null?void 0:e.valueOf());return ft(o,e),o}case yh:{const o={};return ft(o,e),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}default:return}}})}function Fb(e){return Wb(e)}const Kb=/^(?:0|[1-9]\d*)$/;function Rh(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return Kb.test(e)}}function Ub(e){return e!==null&&typeof e=="object"&&Dn(e)==="[object Arguments]"}function Hb(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&qv(t)&&(e==null?void 0:e[t])==null?r=Vl(t):r=[t],r.length===0)return!1;let n=e;for(let i=0;i<r.length;i++){const a=r[i];if((n==null||!Object.hasOwn(n,a))&&!((Array.isArray(n)||Ub(n))&&Rh(a)&&a<n.length))return!1;n=n[a]}return!0}function Yb(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=Yl(e);break}return t=Fb(t),function(r){const n=Et(r,e);return n===void 0?Hb(r,e):t===void 0?n===void 0:Lh(n,t)}}function Vb(e){if(e==null)return ph;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?Yb(e[0],e[1]):Bb(e);case"string":case"symbol":case"number":return Cb(e)}}function Gb(e){return Number.isSafeInteger(e)&&e>=0}function zh(e){return e!=null&&typeof e!="function"&&Gb(e.length)}function qb(e){return typeof e=="object"&&e!==null}function Xb(e){return qb(e)&&zh(e)}function is(e,t=ph){return Xb(e)?Eb(Array.from(e),Ib(Vb(t),1)):[]}function Zb(e,t,r){return t===!0?is(e,r):typeof t=="function"?is(e,t):e}var tu=v.createContext(null),Qb=e=>e,re=()=>{var e=v.useContext(tu);return e?e.store.dispatch:Qb},ki=()=>{},Jb=()=>ki,ex=(e,t)=>e===t;function N(e){var t=v.useContext(tu),r=v.useMemo(()=>t?n=>{if(n!=null)return e(n)}:ki,[t,e]);return j0.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Jb,t?t.store.getState:ki,t?t.store.getState:ki,r,ex)}function tx(e,t=1){const r=[],n=Math.floor(t),i=(a,o)=>{for(let l=0;l<a.length;l++){const u=a[l];Array.isArray(u)&&o<n?i(u,o+1):r.push(u)}};return i(e,0),r}function ul(e,t,r){return Mh(r)&&(typeof t=="number"&&zh(r)&&Rh(t)&&t<r.length||typeof t=="string"&&t in r)?In(r[t],e):!1}function as(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const rx=(e,t,r)=>{if(e!==t){const n=as(e),i=as(t);if(n===i&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?i-n:n-i}return 0};function Bh(e){return typeof e=="symbol"||e instanceof Symbol}const nx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ix=/^\w*$/;function ax(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Bh(e)?!0:typeof e=="string"&&(ix.test(e)||!nx.test(e))||t!=null}function ox(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const i=(l,u)=>{let c=l;for(let s=0;s<u.length&&c!=null;++s)c=c[u[s]];return c},a=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:i(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?i(u,l):typeof u=="object"?u[l]:u,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||ax(l)?l:{key:l,path:Vl(l)}));return e.map(l=>({original:l,criteria:o.map(u=>a(u,l))})).slice().sort((l,u)=>{for(let c=0;c<o.length;c++){const s=rx(l.criteria[c],u.criteria[c],r[c]);if(s!==0)return s}return 0}).map(l=>l.original)}function Ia(e,...t){const r=t.length;return r>1&&ul(e,t[0],t[1])?t=[]:r>2&&ul(t[0],t[1],t[2])&&(t=[t[0]]),ox(e,tx(t),["asc"])}var Wh=e=>e.legend.settings,lx=e=>e.legend.size,ux=e=>e.legend.payload;O([ux,Wh],(e,t)=>{var r=t.itemSorter,n=e.flat(1);return r?Ia(n,r):n});function cx(e,t){return vx(e)||dx(e,t)||fx(e,t)||sx()}function sx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fx(e,t){if(e){if(typeof e=="string")return os(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?os(e,t):void 0}}function os(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dx(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(s){c=!0,i=s}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function vx(e){if(Array.isArray(e))return e}var hi=1;function ls(e,t){return Math.abs(e.height-t.height)>hi||Math.abs(e.left-t.left)>hi||Math.abs(e.top-t.top)>hi||Math.abs(e.width-t.width)>hi}function us(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function hx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=v.useState({height:0,left:0,top:0,width:0}),r=cx(t,2),n=r[0],i=r[1],a=v.useRef(null),o=v.useRef(n);o.current=n;var l=v.useCallback(u=>{if(a.current!=null&&(a.current.disconnect(),a.current=null),u!=null){var c=us(u);if(ls(c,o.current)&&i(c),typeof ResizeObserver<"u"){var s=new ResizeObserver(()=>{var f=us(u);ls(f,o.current)&&i(f)});s.observe(u),a.current=s}}},[...e]);return v.useEffect(()=>()=>{var u;(u=a.current)===null||u===void 0||u.disconnect()},[]),[n,l]}function Ce(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 px=typeof Symbol=="function"&&Symbol.observable||"@@observable",cs=px,Io=()=>Math.random().toString(36).substring(7).split("").join("."),mx={INIT:`@@redux/INIT${Io()}`,REPLACE:`@@redux/REPLACE${Io()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Io()}`},Ni=mx;function ru(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 Fh(e,t,r){if(typeof e!="function")throw new Error(Ce(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ce(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ce(1));return r(Fh)(e,t)}let n=e,i=t,a=new Map,o=a,l=0,u=!1;function c(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function s(){if(u)throw new Error(Ce(3));return i}function f(y){if(typeof y!="function")throw new Error(Ce(4));if(u)throw new Error(Ce(5));let g=!0;c();const x=l++;return o.set(x,y),function(){if(g){if(u)throw new Error(Ce(6));g=!1,c(),o.delete(x),a=null}}}function d(y){if(!ru(y))throw new Error(Ce(7));if(typeof y.type>"u")throw new Error(Ce(8));if(typeof y.type!="string")throw new Error(Ce(17));if(u)throw new Error(Ce(9));try{u=!0,i=n(i,y)}finally{u=!1}return(a=o).forEach(x=>{x()}),y}function h(y){if(typeof y!="function")throw new Error(Ce(10));n=y,d({type:Ni.REPLACE})}function p(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(Ce(11));function x(){const A=g;A.next&&A.next(s())}return x(),{unsubscribe:y(x)}},[cs](){return this}}}return d({type:Ni.INIT}),{dispatch:d,subscribe:f,getState:s,replaceReducer:h,[cs]:p}}function yx(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ni.INIT})>"u")throw new Error(Ce(12));if(typeof r(void 0,{type:Ni.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ce(13))})}function Kh(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{yx(r)}catch(a){i=a}return function(o={},l){if(i)throw i;let u=!1;const c={};for(let s=0;s<n.length;s++){const f=n[s],d=r[f],h=o[f],p=d(h,l);if(typeof p>"u")throw l&&l.type,new Error(Ce(14));c[f]=p,u=u||p!==h}return u=u||n.length!==Object.keys(o).length,u?c:o}}function Li(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function gx(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(Ce(15))};const o={getState:i.getState,dispatch:(u,...c)=>a(u,...c)},l=e.map(u=>u(o));return a=Li(...l)(i.dispatch),{...i,dispatch:a}}}function Uh(e){return ru(e)&&"type"in e&&typeof e.type=="string"}var Hh=Symbol.for("immer-nothing"),ss=Symbol.for("immer-draftable"),Ne=Symbol.for("immer-state");function dt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qe=Object,Yr=qe.getPrototypeOf,Ri="constructor",Ca="prototype",cl="configurable",zi="enumerable",_i="writable",Mn="value",Rt=e=>!!e&&!!e[Ne];function nt(e){var t;return e?Yh(e)||_a(e)||!!e[ss]||!!((t=e[Ri])!=null&&t[ss])||ja(e)||Ta(e):!1}var bx=qe[Ca][Ri].toString(),fs=new WeakMap;function Yh(e){if(!e||!nu(e))return!1;const t=Yr(e);if(t===null||t===qe[Ca])return!0;const r=qe.hasOwnProperty.call(t,Ri)&&t[Ri];if(r===Object)return!0;if(!Rr(r))return!1;let n=fs.get(r);return n===void 0&&(n=Function.toString.call(r),fs.set(r,n)),n===bx}function ka(e,t,r=!0){Hn(e)===0?(r?Reflect.ownKeys(e):qe.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Hn(e){const t=e[Ne];return t?t.type_:_a(e)?1:ja(e)?2:Ta(e)?3:0}var Co=(e,t,r=Hn(e))=>r===2?e.has(t):qe[Ca].hasOwnProperty.call(e,t),sl=(e,t,r=Hn(e))=>r===2?e.get(t):e[t],Bi=(e,t,r,n=Hn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function xx(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _a=Array.isArray,ja=e=>e instanceof Map,Ta=e=>e instanceof Set,nu=e=>typeof e=="object",Rr=e=>typeof e=="function",ko=e=>typeof e=="boolean";function wx(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var jt=e=>e.copy_||e.base_,iu=e=>e.modified_?e.copy_:e.base_;function fl(e,t){if(ja(e))return new Map(e);if(Ta(e))return new Set(e);if(_a(e))return Array[Ca].slice.call(e);const r=Yh(e);if(t===!0||t==="class_only"&&!r){const n=qe.getOwnPropertyDescriptors(e);delete n[Ne];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],l=n[o];l[_i]===!1&&(l[_i]=!0,l[cl]=!0),(l.get||l.set)&&(n[o]={[cl]:!0,[_i]:!0,[zi]:l[zi],[Mn]:e[o]})}return qe.create(Yr(e),n)}else{const n=Yr(e);if(n!==null&&r)return{...e};const i=qe.create(n);return qe.assign(i,e)}}function au(e,t=!1){return Da(e)||Rt(e)||!nt(e)||(Hn(e)>1&&qe.defineProperties(e,{set:pi,add:pi,clear:pi,delete:pi}),qe.freeze(e),t&&ka(e,(r,n)=>{au(n,!0)},!1)),e}function Ax(){dt(2)}var pi={[Mn]:Ax};function Da(e){return e===null||!nu(e)?!0:qe.isFrozen(e)}var Wi="MapSet",dl="Patches",ds="ArrayMethods",Vh={};function wr(e){const t=Vh[e];return t||dt(0,e),t}var vs=e=>!!Vh[e],$n,Gh=()=>$n,Px=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:vs(Wi)?wr(Wi):void 0,arrayMethodsPlugin_:vs(ds)?wr(ds):void 0});function hs(e,t){t&&(e.patchPlugin_=wr(dl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function vl(e){hl(e),e.drafts_.forEach(Ox),e.drafts_=null}function hl(e){e===$n&&($n=e.parent_)}var ps=e=>$n=Px($n,e);function Ox(e){const t=e[Ne];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ms(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Ne].modified_&&(vl(t),dt(4)),nt(e)&&(e=ys(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[Ne].base_,e,t)}else e=ys(t,r);return Sx(t,e,!0),vl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Hh?e:void 0}function ys(e,t){if(Da(t))return t;const r=t[Ne];if(!r)return Fi(t,e.handledSet_,e);if(!Ma(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);Zh(r,e)}return r.copy_}function Sx(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&au(t,r)}function qh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ma=(e,t)=>e.scope_===t,Ex=[];function Xh(e,t,r,n){const i=jt(e),a=e.type_;if(n!==void 0&&sl(i,n,a)===t){Bi(i,n,r,a);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;ka(i,(u,c)=>{if(Rt(c)){const s=l.get(c)||[];s.push(u),l.set(c,s)}})}const o=e.draftLocations_.get(t)??Ex;for(const l of o)Bi(i,l,r,a)}function Ix(e,t,r){e.callbacks_.push(function(i){var l;const a=t;if(!a||!Ma(a,i))return;(l=i.mapSetPlugin_)==null||l.fixSetContents(a);const o=iu(a);Xh(e,a.draft_??a,o,r),Zh(a,i)})}function Zh(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const a=i.getPath(e);a&&i.generatePatches_(e,a,t)}qh(e)}}function Cx(e,t,r){const{scope_:n}=e;if(Rt(r)){const i=r[Ne];Ma(i,n)&&i.callbacks_.push(function(){ji(e);const o=iu(i);Xh(e,r,o,t)})}else nt(r)&&e.callbacks_.push(function(){const a=jt(e);e.type_===3?a.has(r)&&Fi(r,n.handledSet_,n):sl(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Fi(sl(e.copy_,t,e.type_),n.handledSet_,n)})}function Fi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Rt(e)||t.has(e)||!nt(e)||Da(e)||(t.add(e),ka(e,(n,i)=>{if(Rt(i)){const a=i[Ne];if(Ma(a,r)){const o=iu(a);Bi(e,n,o,e.type_),qh(a)}}else nt(i)&&Fi(i,t,r)})),e}function kx(e,t){const r=_a(e),n={type_:r?1:0,scope_:t?t.scope_:Gh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=Ki;r&&(i=[n],a=Nn);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,[l,n]}var Ki={get(e,t){if(t===Ne)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r!=null&&r.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=jt(e);if(!Co(i,t,e.type_))return jx(e,i,t);const a=i[t];if(e.finalized_||!nt(a)||n&&e.operationMethod&&(r!=null&&r.isMutatingArrayMethod(e.operationMethod))&&wx(t))return a;if(a===_o(e.base_,t)||_x(e,t,a)){ji(e);const o=e.type_===1?+t:t,l=ml(e.scope_,a,e,o);return e.copy_[o]=l}return a},has(e,t){return t in jt(e)},ownKeys(e){return Reflect.ownKeys(jt(e))},set(e,t,r){const n=Qh(jt(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=_o(jt(e),t),a=i==null?void 0:i[Ne];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(xx(r,i)&&(r!==void 0||Co(e.base_,t,e.type_)))return!0;ji(e),pl(e)}return e.copy_[t]===r&&(r!==void 0||Co(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Cx(e,t,r)),!0},deleteProperty(e,t){return ji(e),_o(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&&{[_i]:!0,[cl]:e.type_!==1||t!=="length",[zi]:n[zi],[Mn]:r[t]}},defineProperty(){dt(11)},getPrototypeOf(e){return Yr(e.base_)},setPrototypeOf(){dt(12)}},Nn={};for(let e in Ki){let t=Ki[e];Nn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Nn.deleteProperty=function(e,t){return Nn.set.call(this,e,t,void 0)};Nn.set=function(e,t,r){return Ki.set.call(this,e[0],t,r,e[0])};function _o(e,t){const r=e[Ne];return(r?jt(r):e)[t]}function _x(e,t,r){var n;return e.type_!==1||!e.allIndicesReassigned_||(n=e.assigned_)!=null&&n.get(t)||!nt(r)||r[Ne]?!1:e.baseRefs_.has(r)}function jx(e,t,r){var i;const n=Qh(t,r);return n?Mn in n?n[Mn]:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function Qh(e,t){if(!(t in e))return;let r=Yr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Yr(r)}}function pl(e){e.modified_||(e.modified_=!0,e.parent_&&pl(e.parent_))}function ji(e){e.copy_||(e.assigned_=new Map,e.copy_=fl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Tx=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Rr(t)&&!Rr(r)){const a=r;r=t;const o=this;return function(u=a,...c){return o.produce(u,s=>r.call(this,s,...c))}}Rr(r)||dt(6),n!==void 0&&!Rr(n)&&dt(7);let i;if(nt(t)){const a=ps(this),o=ml(a,t,void 0);let l=!0;try{i=r(o),l=!1}finally{l?vl(a):hl(a)}return hs(a,n),ms(i,a)}else if(!t||!nu(t)){if(i=r(t),i===void 0&&(i=t),i===Hh&&(i=void 0),this.autoFreeze_&&au(i,!0),n){const a=[],o=[];wr(dl).generateReplacementPatches_(t,i,{patches_:a,inversePatches_:o}),n(a,o)}return i}else dt(1,t)},this.produceWithPatches=(t,r)=>{if(Rr(t))return(o,...l)=>this.produceWithPatches(o,u=>t(u,...l));let n,i;return[this.produce(t,r,(o,l)=>{n=o,i=l}),n,i]},ko(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ko(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ko(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){nt(e)||dt(8),Rt(e)&&(e=tt(e));const t=ps(this),r=ml(t,e,void 0);return r[Ne].isManual_=!0,hl(t),r}finishDraft(e,t){const r=e&&e[Ne];(!r||!r.isManual_)&&dt(9);const{scope_:n}=r;return hs(n,t),ms(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=wr(dl).applyPatches_;return Rt(e)?n(e,t):this.produce(e,i=>n(i,t))}};function ml(e,t,r,n){const[i,a]=ja(t)?wr(Wi).proxyMap_(t,r):Ta(t)?wr(Wi).proxySet_(t,r):kx(t,r);return((r==null?void 0:r.scope_)??Gh()).drafts_.push(i),a.callbacks_=(r==null?void 0:r.callbacks_)??[],a.key_=n,r&&n!==void 0?Ix(r,a,n):a.callbacks_.push(function(u){var s;(s=u.mapSetPlugin_)==null||s.fixSetContents(a);const{patchPlugin_:c}=u;a.modified_&&c&&c.generatePatches_(a,[],u)}),i}function tt(e){return Rt(e)||dt(10,e),Jh(e)}function Jh(e){if(!nt(e)||Da(e))return e;const t=e[Ne];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=fl(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=fl(e,!0);return ka(r,(i,a)=>{Bi(r,i,Jh(a))},n),t&&(t.finalized_=!1),r}var Dx=new Tx,ep=Dx.produce,q=e=>e;function tp(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var Mx=tp(),$x=tp,Nx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Li:Li.apply(null,arguments)};function Je(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ze(0));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=>Uh(n)&&n.type===e,r}var rp=class On extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,On.prototype)}static get[Symbol.species](){return On}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new On(...t[0].concat(this)):new On(...t.concat(this))}};function gs(e){return nt(e)?ep(e,()=>{}):e}function mi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Lx(e){return typeof e=="boolean"}var Rx=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new rp;return r&&(Lx(r)?o.push(Mx):o.push($x(r.extraArgument))),o},np="RTK_autoBatch",ie=()=>e=>({payload:e,meta:{[np]:!0}}),bs=e=>t=>{setTimeout(t,e)},zx=(e,t)=>r=>{let n=!1;const i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(o),r())},a=e(i),o=setTimeout(i,t)},ip=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?zx(window.requestAnimationFrame,100):bs(10):e.type==="callback"?e.queueNotification:bs(e.timeout),c=()=>{o=!1,a&&(a=!1,l.forEach(s=>s()))};return Object.assign({},n,{subscribe(s){const f=()=>i&&s(),d=n.subscribe(f);return l.add(s),()=>{d(),l.delete(s)}},dispatch(s){var f;try{return i=!((f=s==null?void 0:s.meta)!=null&&f[np]),a=!i,a&&(o||(o=!0,u(c))),n.dispatch(s)}finally{i=!0}}})},Bx=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new rp(e);return n&&i.push(ip(typeof n=="object"?n:void 0)),i};function Wx(e){const t=Rx(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(ru(r))l=Kh(r);else throw new Error(Ze(1));let u;typeof n=="function"?u=n(t):u=t();let c=Li;i&&(c=Nx({trace:!1,...typeof i=="object"&&i}));const s=gx(...u),f=Bx(s);let d=typeof o=="function"?o(f):f();const h=c(...d);return Fh(l,a,h)}function ap(e){const t={},r=[];let n;const i={addCase(a,o){const l=typeof a=="string"?a:a.type;if(!l)throw new Error(Ze(28));if(l in t)throw new Error(Ze(29));return t[l]=o,i},addAsyncThunk(a,o){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){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function Fx(e){return typeof e=="function"}function Kx(e,t){let[r,n,i]=ap(t),a;if(Fx(e))a=()=>gs(e());else{const l=gs(e);a=()=>l}function o(l=a(),u){let c=[r[u.type],...n.filter(({matcher:s})=>s(u)).map(({reducer:s})=>s)];return c.filter(s=>!!s).length===0&&(c=[i]),c.reduce((s,f)=>{if(f)if(Rt(s)){const h=f(s,u);return h===void 0?s:h}else{if(nt(s))return ep(s,d=>f(d,u));{const d=f(s,u);if(d===void 0){if(s===null)return s;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return s},l)}return o.getInitialState=a,o}var Ux="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hx=(e=21)=>{let t="",r=e;for(;r--;)t+=Ux[Math.random()*64|0];return t},Yx=Symbol.for("rtk-slice-createasyncthunk");function Vx(e,t){return`${e}/${t}`}function Gx({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Yx];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(Ze(11));const l=(typeof i.reducers=="function"?i.reducers(Xx()):i.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(A,P){const b=typeof A=="string"?A:A.type;if(!b)throw new Error(Ze(12));if(b in c.sliceCaseReducersByType)throw new Error(Ze(13));return c.sliceCaseReducersByType[b]=P,s},addMatcher(A,P){return c.sliceMatchers.push({matcher:A,reducer:P}),s},exposeAction(A,P){return c.actionCreators[A]=P,s},exposeCaseReducer(A,P){return c.sliceCaseReducersByName[A]=P,s}};u.forEach(A=>{const P=l[A],b={reducerName:A,type:Vx(a,A),createNotation:typeof i.reducers=="function"};Qx(P)?ew(b,P,s,t):Zx(b,P,s)});function f(){const[A={},P=[],b=void 0]=typeof i.extraReducers=="function"?ap(i.extraReducers):[i.extraReducers],S={...A,...c.sliceCaseReducersByType};return Kx(i.initialState,I=>{for(let C in S)I.addCase(C,S[C]);for(let C of c.sliceMatchers)I.addMatcher(C.matcher,C.reducer);for(let C of P)I.addMatcher(C.matcher,C.reducer);b&&I.addDefaultCase(b)})}const d=A=>A,h=new Map,p=new WeakMap;let m;function y(A,P){return m||(m=f()),m(A,P)}function g(){return m||(m=f()),m.getInitialState()}function x(A,P=!1){function b(I){let C=I[A];return typeof C>"u"&&P&&(C=mi(p,b,g)),C}function S(I=d){const C=mi(h,P,()=>new WeakMap);return mi(C,I,()=>{const k={};for(const[_,E]of Object.entries(i.selectors??{}))k[_]=qx(E,I,()=>mi(p,I,g),P);return k})}return{reducerPath:A,getSelectors:S,get selectors(){return S(b)},selectSlice:b}}const w={name:a,reducer:y,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:g,...x(o),injectInto(A,{reducerPath:P,...b}={}){const S=P??o;return A.inject({reducerPath:S,reducer:y},b),{...w,...x(S,!0)}}};return w}}function qx(e,t,r,n){function i(a,...o){let l=t(a);return typeof l>"u"&&n&&(l=r()),e(l,...o)}return i.unwrapped=e,i}var Le=Gx();function Xx(){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 Zx({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!Jx(n))throw new Error(Ze(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Je(e,o):Je(e))}function Qx(e){return e._reducerDefinitionType==="asyncThunk"}function Jx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ew({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ze(18));const{payloadCreator:a,fulfilled:o,pending:l,rejected:u,settled:c,options:s}=r,f=i(e,a,s);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),l&&n.addCase(f.pending,l),u&&n.addCase(f.rejected,u),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||yi,pending:l||yi,rejected:u||yi,settled:c||yi})}function yi(){}var tw="task",op="listener",lp="completed",ou="cancelled",rw=`task-${ou}`,nw=`task-${lp}`,yl=`${op}-${ou}`,iw=`${op}-${lp}`,$a=class{constructor(e){di(this,"code");di(this,"name","TaskAbortError");di(this,"message");this.code=e,this.message=`${tw} ${ou} (reason: ${e})`}},lu=(e,t)=>{if(typeof e!="function")throw new TypeError(Ze(32))},Ui=()=>{},up=(e,t=Ui)=>(e.catch(t),e),cp=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),mr=e=>{if(e.aborted)throw new $a(e.reason)};function sp(e,t){let r=Ui;return new Promise((n,i)=>{const a=()=>i(new $a(e.reason));if(e.aborted){a();return}r=cp(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Ui})}var aw=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof $a?"cancelled":"rejected",error:r}}finally{t==null||t()}},Hi=e=>t=>up(sp(e,t).then(r=>(mr(e),r))),fp=e=>{const t=Hi(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Wr}=Object,xs={},Na="listenerMiddleware",ow=(e,t)=>{const r=n=>cp(e,()=>n.abort(e.reason));return(n,i)=>{lu(n);const a=new AbortController;r(a);const o=aw(async()=>{mr(e),mr(a.signal);const l=await n({pause:Hi(a.signal),delay:fp(a.signal),signal:a.signal});return mr(a.signal),l},()=>a.abort(nw));return i!=null&&i.autoJoin&&t.push(o.catch(Ui)),{result:Hi(e)(o),cancel(){a.abort(rw)}}}},lw=(e,t)=>{const r=async(n,i)=>{mr(t);let a=()=>{};const l=[new Promise((u,c)=>{let s=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),u([f,d.getState(),d.getOriginalState()])}});a=()=>{s(),c()}})];i!=null&&l.push(new Promise(u=>setTimeout(u,i,null)));try{const u=await sp(t,Promise.race(l));return mr(t),u}finally{a()}};return(n,i)=>up(r(n,i))},dp=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Je(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ze(21));return lu(a),{predicate:i,type:t,effect:a}},vp=Wr(e=>{const{type:t,predicate:r,effect:n}=dp(e);return{id:Hx(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ze(22))}}},{withTypes:()=>vp}),ws=(e,t)=>{const{type:r,effect:n,predicate:i}=dp(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},gl=e=>{e.pending.forEach(t=>{t.abort(yl)})},uw=(e,t)=>()=>{for(const r of t.keys())gl(r);e.clear()},As=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},hp=Wr(Je(`${Na}/add`),{withTypes:()=>hp}),cw=Je(`${Na}/removeAll`),pp=Wr(Je(`${Na}/remove`),{withTypes:()=>pp}),sw=(...e)=>{console.error(`${Na}/error`,...e)},Yn=(e={})=>{const t=new Map,r=new Map,n=h=>{const p=r.get(h)??0;r.set(h,p+1)},i=h=>{const p=r.get(h)??1;p===1?r.delete(h):r.set(h,p-1)},{extra:a,onError:o=sw}=e;lu(o);const l=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),p=>{h.unsubscribe(),p!=null&&p.cancelActive&&gl(h)}),u=h=>{const p=ws(t,h)??vp(h);return l(p)};Wr(u,{withTypes:()=>u});const c=h=>{const p=ws(t,h);return p&&(p.unsubscribe(),h.cancelActive&&gl(p)),!!p};Wr(c,{withTypes:()=>c});const s=async(h,p,m,y)=>{const g=new AbortController,x=lw(u,g.signal),w=[];try{h.pending.add(g),n(h),await Promise.resolve(h.effect(p,Wr({},m,{getOriginalState:y,condition:(A,P)=>x(A,P).then(Boolean),take:x,delay:fp(g.signal),pause:Hi(g.signal),extra:a,signal:g.signal,fork:ow(g.signal,w),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((A,P,b)=>{A!==g&&(A.abort(yl),b.delete(A))})},cancel:()=>{g.abort(yl),h.pending.delete(g)},throwIfCancelled:()=>{mr(g.signal)}})))}catch(A){A instanceof $a||As(o,A,{raisedBy:"effect"})}finally{await Promise.all(w),g.abort(iw),i(h),h.pending.delete(g)}},f=uw(t,r);return{middleware:h=>p=>m=>{if(!Uh(m))return p(m);if(hp.match(m))return u(m.payload);if(cw.match(m)){f();return}if(pp.match(m))return c(m.payload);let y=h.getState();const g=()=>{if(y===xs)throw new Error(Ze(23));return y};let x;try{if(x=p(m),t.size>0){const w=h.getState(),A=Array.from(t.values());for(const P of A){let b=!1;try{b=P.predicate(m,w,y)}catch(S){b=!1,As(o,S,{raisedBy:"predicate"})}b&&s(P,m,h,g)}}}finally{y=xs}return x},startListening:u,stopListening:c,clearListeners:f}};function Ze(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 fw={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},mp=Le({name:"chartLayout",initialState:fw,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}}}),La=mp.actions,dw=La.setMargin,vw=La.setLayout,hw=La.setChartSize,pw=La.setScale,mw=mp.reducer;function yp(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Y(e){return Number.isFinite(e)}function kt(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Ps(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 Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ps(Object(r),!0).forEach(function(n){yw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ps(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yw(e,t,r){return(t=gw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=bw(e,"string");return typeof t=="symbol"?t:t+""}function bw(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 Z(e,t,r){return pe(e)||pe(t)?r:Ct(t)?Et(e,t,r):typeof t=="function"?t(e):r}var xw=(e,t,r)=>{if(t&&r){var n=r.width,i=r.height,a=t.align,o=t.verticalAlign,l=t.layout,u=t.position,c=t.offset,s=c===void 0?0:c;if(u!=null){if(Q0(u)){if(u==="top"&&D(e.top))return Fe(Fe({},e),{},{top:e.top+(i||0)+s});if(u==="bottom"&&D(e.bottom))return Fe(Fe({},e),{},{bottom:e.bottom+(i||0)+s});if(u==="left"&&D(e.left))return Fe(Fe({},e),{},{left:e.left+(n||0)+s});if(u==="right"&&D(e.right))return Fe(Fe({},e),{},{right:e.right+(n||0)+s})}return e}if((l==="vertical"||l==="horizontal"&&o==="middle")&&a!=="center"&&D(e[a]))return Fe(Fe({},e),{},{[a]:e[a]+(n||0)});if((l==="horizontal"||l==="vertical"&&a==="center")&&o!=="middle"&&D(e[o]))return Fe(Fe({},e),{},{[o]:e[o]+(i||0)})}return e},pt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",gp=(e,t,r,n)=>{if(n)return e.map(l=>l.coordinate);var i,a,o=e.map(l=>(l.coordinate===t&&(i=!0),l.coordinate===r&&(a=!0),l.coordinate));return i||o.push(t),a||o.push(r),o},bp=(e,t,r)=>{if(!e)return null;var n=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,l=e.realScaleType,u=e.isCategorical,c=e.categoricalDomain,s=e.tickCount,f=e.ticks,d=e.niceTicks,h=e.axisType;if(!o)return null;var p=l==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(m=h==="angleAxis"&&a&&a.length>=2?$e(a[0]-a[1])*2*m:m,f||d){var y=(f||d||[]).map((g,x)=>{var w=n?n.indexOf(g):g,A=o.map(w);return Y(A)?{coordinate:A+m,value:g,offset:m,index:x}:null}).filter(Be);return y}return u&&c?c.map((g,x)=>{var w=o.map(g);return Y(w)?{coordinate:w+m,value:g,index:x,offset:m}:null}).filter(Be):o.ticks&&s!=null?o.ticks(s).map((g,x)=>{var w=o.map(g);return Y(w)?{coordinate:w+m,value:g,index:x,offset:m}:null}).filter(Be):o.domain().map((g,x)=>{var w=o.map(g);return Y(w)?{coordinate:w+m,value:n?n[g]:g,index:x,offset:m}:null}).filter(Be)},ww=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,l=0;l<r;++l){var u=e[l],c=u==null?void 0:u[i];if(c!=null){var s=c[1],f=c[0],d=It(s)?f:s;d>=0?(c[0]=a,a+=d,c[1]=a):(c[0]=o,o+=d,c[1]=o)}}}},Aw=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 l=e[o],u=l==null?void 0:l[i];if(u!=null){var c=It(u[1])?u[0]:u[1];c>=0?(u[0]=a,a+=c,u[1]=a):(u[0]=0,u[1]=0)}}}},Pw={sign:ww,expand:gb,none:xr,silhouette:bb,wiggle:xb,positive:Aw},Ow=(e,t,r)=>{var n,i=(n=Pw[r])!==null&&n!==void 0?n:xr,a=yb().keys(t).value((l,u)=>Number(Z(l,u,0))).order(nl).offset(i),o=a(e);return o.forEach((l,u)=>{l.forEach((c,s)=>{var f=Z(e[s],t[u],0);Array.isArray(f)&&f.length===2&&D(f[0])&&D(f[1])&&(c[0]=f[0],c[1]=f[1])})}),o};function Sw(e){return e==null?void 0:String(e)}function Yi(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!pe(i[t.dataKey])){var l=Qv(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var u=Z(i,pe(o)?t.dataKey:o),c=t.scale.map(u);return D(c)?c:null}var Ew=e=>{var t=e.flat(2).filter(D);return[Math.min(...t),Math.max(...t)]},Iw=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Cw=(e,t,r)=>{if(!(e==null||Object.keys(e).length===0))return Iw(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var o=a.stackedData,l=o.reduce((u,c)=>{var s=yp(c,t,r),f=Ew(s);return!Y(f[0])||!Y(f[1])?u:[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]))},Os=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ss=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vr=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Ia(t,m=>m.coordinate),a=[],o=0,l=1,u=i.length;l<u;l++){var c,s,f=(((c=i[l])===null||c===void 0?void 0:c.coordinate)||0)-(((s=i[l-1])===null||s===void 0?void 0:s.coordinate)||0);a.push(f),o=Math.max(f,o)}var d=o*1e-4,h=1/0;for(var p of a)p>d&&(h=Math.min(p,h));return h===1/0?0:h}return r?void 0:0};function Es(e){var t=e.tooltipEntrySettings,r=e.dataKey,n=e.payload,i=e.value,a=e.name;return Fe(Fe({},t),{},{dataKey:r,payload:n,value:i,name:a})}function tn(e,t){if(e!=null)return String(e);if(typeof t=="string")return t}var kw=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},_w=(e,t)=>t==="centric"?e.angle:e.radius,Ft=e=>e.layout.width,Kt=e=>e.layout.height,jw=e=>e.layout.scale,xp=e=>e.layout.margin,Ra=O(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),za=O(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),wp="data-recharts-item-index",Ap="data-recharts-item-id",Vn=60,uu=30;function Is(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Is(Object(r),!0).forEach(function(n){Tw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Is(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tw(e,t,r){return(t=Dw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dw(e){var t=Mw(e,"string");return typeof t=="symbol"?t:t+""}function Mw(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 $w=e=>e.brush.height;function Nw(e){var t=za(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Vn;return r+i}return r},0)}function Lw(e){var t=za(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Vn;return r+i}return r},0)}function Rw(e){var t=Ra(e);return t.reduce((r,n)=>{if(n.orientation==="top"&&!n.mirror&&!n.hide){var i=typeof n.height=="number"?n.height:uu;return r+i}return r},0)}function zw(e){var t=Ra(e);return t.reduce((r,n)=>{if(n.orientation==="bottom"&&!n.mirror&&!n.hide){var i=typeof n.height=="number"?n.height:uu;return r+i}return r},0)}var Oe=O([Ft,Kt,xp,$w,Nw,Lw,Rw,zw,Wh,lx],(e,t,r,n,i,a,o,l,u,c)=>{var s={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+l},d=gi(gi({},f),s),h=d.bottom;d.bottom+=n,d=xw(d,u,c);var p=e-d.left-d.right,m=t-d.top-d.bottom;return gi(gi({brushBottom:h},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Bw=O(Oe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Pp=O(Ft,Kt,(e,t)=>({x:0,y:0,width:e,height:t})),Ww=v.createContext(null),Re=()=>v.useContext(Ww)!=null,Ba=e=>e.brush,Wa=O([Ba,Oe,xp],(e,t,r)=>({height:e.height,x:D(e.x)?e.x:t.left,y:D(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:D(e.width)?e.width:t.width}));function Fw(e,t,{signal:r,edges:n}={}){let i,a=null;const o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),u=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},c=()=>{l&&u(),h()};let s=null;const f=()=>{s!=null&&clearTimeout(s),s=setTimeout(()=>{s=null,c()},t)},d=()=>{s!==null&&(clearTimeout(s),s=null)},h=()=>{d(),i=void 0,a=null},p=()=>{u()},m=function(...y){if(r!=null&&r.aborted)return;i=this,a=y;const g=s==null;f(),o&&g&&u()};return m.schedule=f,m.cancel=h,m.flush=p,r==null||r.addEventListener("abort",h,{once:!0}),m}function Kw(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:i=!0,maxWait:a}=r,o=Array(2);n&&(o[0]="leading"),i&&(o[1]="trailing");let l,u=null;const c=Fw(function(...d){l=e.apply(this,d),u=null},t,{edges:o}),s=function(...d){return a!=null&&(u===null&&(u=Date.now()),Date.now()-u>=a)?(l=e.apply(this,d),u=Date.now(),c.cancel(),c.schedule(),l):(c.apply(this,d),l)},f=()=>(c.flush(),l);return s.cancel=c.cancel,s.flush=f,s}function Uw(e,t=0,r={}){const{leading:n=!0,trailing:i=!0}=r;return Kw(e,t,{leading:n,maxWait:t,trailing:i})}var Vi=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++]))}},At={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Op=(e,t,r)=>{var n=r.width,i=n===void 0?At.width:n,a=r.height,o=a===void 0?At.height:a,l=r.aspect,u=r.maxHeight,c=br(i)?e:Number(i),s=br(o)?t:Number(o);return l&&l>0&&(c?s=c/l:s&&(c=s*l),u&&s!=null&&s>u&&(s=u)),{calculatedWidth:c,calculatedHeight:s}},Hw={width:0,height:0,overflow:"visible"},Yw={width:0,overflowX:"visible"},Vw={height:0,overflowY:"visible"},Gw={},qw=e=>{var t=e.width,r=e.height,n=br(t),i=br(r);return n&&i?Hw:n?Yw:i?Vw:Gw};function Xw(e){var t=e.width,r=e.height,n=e.aspect,i=t,a=r;return i===void 0&&a===void 0?(i=At.width,a=At.height):i===void 0?i=n&&n>0?void 0:At.width:a===void 0&&(a=n&&n>0?void 0:At.height),{width:i,height:a}}var Zw=["aspect","initialDimension","width","height","minWidth","minHeight","maxHeight","children","debounce","id","className","onResize","style"];function Gi(){return Gi=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},Gi.apply(null,arguments)}function Cs(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 ks(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cs(Object(r),!0).forEach(function(n){Qw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qw(e,t,r){return(t=Jw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jw(e){var t=eA(e,"string");return typeof t=="symbol"?t:t+""}function eA(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 tA(e,t){return aA(e)||iA(e,t)||nA(e,t)||rA()}function rA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nA(e,t){if(e){if(typeof e=="string")return _s(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_s(e,t):void 0}}function _s(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function iA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(s){c=!0,i=s}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function aA(e){if(Array.isArray(e))return e}function oA(e,t){if(e==null)return{};var r,n,i=lA(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 lA(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 Sp=v.createContext(At.initialDimension);function uA(e){return kt(e.width)&&kt(e.height)}function Ep(e){var t=e.children,r=e.width,n=e.height,i=v.useMemo(()=>({width:r,height:n}),[r,n]);return uA(i)?v.createElement(Sp.Provider,{value:i},t):null}var cu=()=>v.useContext(Sp),cA=v.forwardRef((e,t)=>{var r=e.aspect,n=e.initialDimension,i=n===void 0?At.initialDimension:n,a=e.width,o=e.height,l=e.minWidth,u=l===void 0?At.minWidth:l,c=e.minHeight,s=e.maxHeight,f=e.children,d=e.debounce,h=d===void 0?At.debounce:d,p=e.id,m=e.className,y=e.onResize,g=e.style,x=g===void 0?{}:g,w=oA(e,Zw),A=v.useRef(null),P=v.useRef();P.current=y,v.useImperativeHandle(t,()=>A.current);var b=v.useState({containerWidth:i.width,containerHeight:i.height}),S=tA(b,2),I=S[0],C=S[1],k=v.useCallback((W,F)=>{C(R=>{var G=Math.round(W),U=Math.round(F);return R.containerWidth===G&&R.containerHeight===U?R:{containerWidth:G,containerHeight:U}})},[]);v.useEffect(()=>{if(A.current==null||typeof ResizeObserver>"u")return Er;var W=we=>{var Ie,de=we[0];if(de!=null){var He=de.contentRect,Ye=He.width,ct=He.height;k(Ye,ct),(Ie=P.current)===null||Ie===void 0||Ie.call(P,Ye,ct)}};h>0&&(W=Uw(W,h,{trailing:!0,leading:!1}));var F=new ResizeObserver(W),R=A.current.getBoundingClientRect(),G=R.width,U=R.height;return k(G,U),F.observe(A.current),()=>{F.disconnect()}},[k,h]);var _=I.containerWidth,E=I.containerHeight;Vi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var L=Op(_,E,{width:a,height:o,aspect:r,maxHeight:s}),T=L.calculatedWidth,B=L.calculatedHeight;return Vi(_<0||E<0||T!=null&&T>0||B!=null&&B>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
4
4
|
please check the style of container, or the props width(%s) and height(%s),
|
|
@@ -66,4 +66,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
66
66
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kD(e,t){if(e){if(typeof e=="string")return mv(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mv(e,t):void 0}}function mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _D(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(s){c=!0,i=s}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function jD(e){if(Array.isArray(e))return e}var TD=v.createContext(void 0),DD=e=>{var t=e.children,r=v.useState("".concat(Tn("recharts"),"-clip")),n=ID(r,1),i=n[0],a=Oo();if(a==null)return null;var o=a.x,l=a.y,u=a.width,c=a.height;return v.createElement(TD.Provider,{value:i},v.createElement("defs",null,v.createElement("clipPath",{id:i},v.createElement("rect",{x:o,y:l,height:c,width:u}))),t)};function MD(){}function yv(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function $D(e,t,r){return En(e,t,void 0,void 0,void 0,void 0,r)}function En(e,t,r,n,i,a,o){const l=o(e,t,r,n,i,a);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return _n(e,t,a,o)}return _n(e,t,a,o)}function _n(e,t,r,n){if(Object.is(e,t))return!0;let i=Dn(e),a=Dn(t);if(i==="[object Arguments]"&&(i=Ci),a==="[object Arguments]"&&(a=Ci),i!==a)return!1;switch(i){case Ql:return e.toString()===t.toString();case Jl:return In(e.valueOf(),t.valueOf());case eu:case bh:case gh:return Object.is(e.valueOf(),t.valueOf());case mh:return e.source===t.source&&e.flags===t.flags;case _b:return e===t}r=r??new Map;const o=r.get(e),l=r.get(t);if(o!=null&&l!=null)return o===t;r.set(e,t),r.set(t,e);try{switch(i){case xh:if(e.size!==t.size)return!1;for(const[u,c]of e.entries())if(!t.has(u)||!En(c,t.get(u),u,e,t,r,n))return!1;return!0;case wh:{if(e.size!==t.size)return!1;const u=Array.from(e.values()),c=Array.from(t.values());for(let s=0;s<u.length;s++){const f=u[s],d=c.findIndex(h=>En(f,h,void 0,e,t,r,n));if(d===-1)return!1;c.splice(d,1)}return!0}case Ah:case Sh:case Eh:case Ih:case Ch:case Tb:case kh:case _h:case jh:case Db:case Th:case Dh:if(ol(e)!==ol(t)||e.length!==t.length)return!1;for(let u=0;u<e.length;u++)if(!En(e[u],t[u],u,e,t,r,n))return!1;return!0;case Ph:return e.byteLength!==t.byteLength?!1:_n(new Uint8Array(e),new Uint8Array(t),r,n);case Oh:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:_n(new Uint8Array(e),new Uint8Array(t),r,n);case jb:return e.name===t.name&&e.message===t.message;case Ci:{if(!(_n(e.constructor,t.constructor,r,n)||yv(e)&&yv(t)))return!1;const u=[...Object.keys(e),...al(e)],c=[...Object.keys(t),...al(t)];if(u.length!==c.length)return!1;for(let s=0;s<u.length;s++){const f=u[s],d=e[f];if(!Object.hasOwn(t,f))return!1;const h=t[f];if(!En(d,h,f,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function ND(e,t){return $D(e,t,MD)}function Wg(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 LD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return OD(n,r)}function RD(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,l=e.height;return t===1?{start:n?i:a,end:n?i+o:a+l}:{start:n?i+o:a+l,end:n?i:a}}function Un(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 zD(e,t){return Wg(e,t+1)}function BD(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,l=t.end,u=0,c=1,s=o,f=function(){var p=n==null?void 0:n[u];if(p===void 0)return{v:Wg(n,c)};var m=u,y,g=()=>(y===void 0&&(y=r(p,m)),y),x=p.coordinate,w=u===0||Un(e,x,g,s,l);w||(u=0,s=o,c+=1),w&&(s=x+e*(g()/2+i),u+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function WD(e,t,r,n,i){var a=(n||[]).slice(),o=a.length;if(o===0)return[];for(var l=t.start,u=t.end,c=1;c<=o;c++){for(var s=(o-1)%c,f=l,d=!0,h=function(){var A=n[m];if(A==null)return 0;var P=m,b,S=()=>(b===void 0&&(b=r(A,P)),b),I=A.coordinate,C=m===s||Un(e,I,S,f,u);if(!C)return d=!1,1;C&&(f=I+e*(S()/2+i))},p,m=s;m<o&&(p=h(),!(p!==0&&p===1));m+=c);if(d){for(var y=[],g=s;g<o;g+=c){var x=n[g];x!=null&&y.push(x)}return y}}return[]}function gv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gv(Object(r),!0).forEach(function(n){FD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FD(e,t,r){return(t=KD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KD(e){var t=UD(e,"string");return typeof t=="symbol"?t:t+""}function UD(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 HD(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,l=t.start,u=t.end,c=function(d){var h=a[d];if(h==null)return 1;var p=h,m,y=()=>(m===void 0&&(m=r(h,d)),m);if(d===o-1){var g=e*(p.coordinate+e*y()/2-u);a[d]=p=De(De({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else a[d]=p=De(De({},p),{},{tickCoord:p.coordinate});if(p.tickCoord!=null){var x=Un(e,p.tickCoord,y,l,u);x&&(u=p.tickCoord-e*(y()/2+i),a[d]=De(De({},p),{},{isShow:!0}))}},s=o-1;s>=0;s--)c(s);return a}function YD(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,u=t.start,c=t.end;if(a){var s=n[l-1];if(s!=null){var f=r(s,l-1),d=e*(s.coordinate+e*f/2-c);if(o[l-1]=s=De(De({},s),{},{tickCoord:d>0?s.coordinate-d*e:s.coordinate}),s.tickCoord!=null){var h=Un(e,s.tickCoord,()=>f,u,c);h&&(c=s.tickCoord-e*(f/2+i),o[l-1]=De(De({},s),{},{isShow:!0}))}}}for(var p=a?l-1:l,m=function(x){var w=o[x];if(w==null)return 1;var A=w,P,b=()=>(P===void 0&&(P=r(w,x)),P);if(x===0){var S=e*(A.coordinate-e*b()/2-u);o[x]=A=De(De({},A),{},{tickCoord:S<0?A.coordinate-S*e:A.coordinate})}else o[x]=A=De(De({},A),{},{tickCoord:A.coordinate});if(A.tickCoord!=null){var I=Un(e,A.tickCoord,b,u,c);I&&(u=A.tickCoord+e*(b()/2+i),o[x]=De(De({},A),{},{isShow:!0}))}},y=0;y<p;y++)m(y);return o}function Rc(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,l=e.orientation,u=e.interval,c=e.tickFormatter,s=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(D(u)||Qn.isSsr){var d;return(d=zD(i,D(u)?u:0))!==null&&d!==void 0?d:[]}var h=[],p=l==="top"||l==="bottom"?"width":"height",m=s&&p==="width"?kn(s,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=(P,b)=>{var S=typeof c=="function"?c(P.value,b):P.value;return p==="width"?LD(kn(S,{fontSize:t,letterSpacing:r}),m,f):kn(S,{fontSize:t,letterSpacing:r})[p]},g=i[0],x=i[1],w=i.length>=2&&g!=null&&x!=null?$e(x.coordinate-g.coordinate):1,A=RD(a,w,p);return u==="equidistantPreserveStart"?BD(w,A,y,i,o):u==="equidistantPreserveEnd"?WD(w,A,y,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=YD(w,A,y,i,o,u==="preserveStartEnd"):h=HD(w,A,y,i,o),h.filter(P=>P.isShow))}var VD=e=>{var t=e.ticks,r=e.label,n=e.labelGapWithTick,i=n,a=e.tickSize,o=a===void 0?0:a,l=e.tickMargin,u=l===void 0?0:l,c=0;if(t){Array.from(t).forEach(h=>{if(h){var p=h.getBoundingClientRect();p.width>c&&(c=p.width)}});var s=r?r.getBoundingClientRect().width:0,f=o+u,d=c+f+s+(r?i:0);return Math.round(d)}return 0},GD=e=>{var t=e.ticks,r=e.label,n=e.labelGapWithTick,i=n,a=e.tickSize,o=a===void 0?0:a,l=e.tickMargin,u=l===void 0?0:l,c=0;if(t){Array.from(t).forEach(h=>{if(h){var p=h.getBoundingClientRect();p.height>c&&(c=p.height)}});var s=r?r.getBoundingClientRect().height:0,f=o+u,d=c+f+s+(r?i:0);return Math.round(d)}return 0},qD={xAxis:{},yAxis:{}},Fg=Le({name:"renderedTicks",initialState:qD,reducers:{setRenderedTicks:(e,t)=>{var r=t.payload,n=r.axisType,i=r.axisId,a=r.ticks;e[n][i]=q(a)},removeRenderedTicks:(e,t)=>{var r=t.payload,n=r.axisType,i=r.axisId;delete e[n][i]}}}),Kg=Fg.actions,XD=Kg.setRenderedTicks,ZD=Kg.removeRenderedTicks,QD=Fg.reducer,JD=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function bv(e,t){return nM(e)||rM(e,t)||tM(e,t)||eM()}function eM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
67
67
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tM(e,t){if(e){if(typeof e=="string")return xv(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xv(e,t):void 0}}function xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(s){c=!0,i=s}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function nM(e){if(Array.isArray(e))return e}function iM(e,t){if(e==null)return{};var r,n,i=aM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Sr(){return Sr=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},Sr.apply(null,arguments)}function wv(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 fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wv(Object(r),!0).forEach(function(n){oM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oM(e,t,r){return(t=lM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lM(e){var t=uM(e,"string");return typeof t=="symbol"?t:t+""}function uM(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 Lt={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:Pe.axis};function cM(e){var t=e.x,r=e.y,n=e.width,i=e.height,a=e.orientation,o=e.mirror,l=e.axisLine,u=e.otherSvgProps;if(!l)return null;var c=fe(fe(fe({},u),Ue(l)),{},{fill:"none"});if(a==="top"||a==="bottom"){var s=+(a==="top"&&!o||a==="bottom"&&o);c=fe(fe({},c),{},{x1:t,y1:r+s*i,x2:t+n,y2:r+s*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);c=fe(fe({},c),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return v.createElement("line",Sr({},c,{className:Q("recharts-cartesian-axis-line",Et(l,"className"))}))}function sM(e,t,r,n,i,a,o,l,u){var c,s,f,d,h,p,m=l?-1:1,y=e.tickSize||o,g=D(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=s=e.coordinate,d=r+ +!l*i,f=d-m*y,p=f-m*u,h=g;break;case"left":f=d=e.coordinate,s=t+ +!l*n,c=s-m*y,h=c-m*u,p=g;break;case"right":f=d=e.coordinate,s=t+ +l*n,c=s+m*y,h=c+m*u,p=g;break;default:c=s=e.coordinate,d=r+ +l*i,f=d+m*y,p=f+m*u,h=g;break}return{line:{x1:c,y1:f,x2:s,y2:d},tick:{x:h,y:p}}}function fM(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function dM(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function vM(e){var t=e.option,r=e.tickProps,n=e.value,i,a=Q(r.className,"recharts-cartesian-axis-tick-value");if(v.isValidElement(t))i=v.cloneElement(t,fe(fe({},r),{},{className:a}));else if(typeof t=="function")i=t(fe(fe({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=Q(o,wg(t))),i=v.createElement(oo,Sr({},r,{className:o}),n)}return i}function hM(e){var t=e.ticks,r=e.axisType,n=e.axisId,i=re(),a=v.useRef(null);return v.useEffect(()=>{if(!(n==null||r==null)){var o=t.map(u=>({value:u.value,coordinate:u.coordinate,offset:u.offset,index:u.index})),l=a.current;l!=null&&l.axisId===n&&l.axisType===r&&ND(l.ticks,o)||(a.current={ticks:o,axisId:n,axisType:r},i(XD({ticks:o,axisId:n,axisType:r})))}},[i,t,n,r]),v.useEffect(()=>n==null||r==null?Er:()=>{i(ZD({axisId:n,axisType:r}))},[i,n,r]),null}var pM=v.forwardRef((e,t)=>{var r=e.ticks,n=r===void 0?[]:r,i=e.tick,a=e.tickLine,o=e.stroke,l=e.tickFormatter,u=e.unit,c=e.padding,s=e.tickTextProps,f=e.orientation,d=e.mirror,h=e.x,p=e.y,m=e.width,y=e.height,g=e.tickSize,x=e.tickMargin,w=e.fontSize,A=e.letterSpacing,P=e.getTicksConfig,b=e.events,S=e.axisType,I=e.axisId,C=Rc(fe(fe({},P),{},{ticks:n}),w,A),k=Ue(P),_=Hr(i),E=lg(k.textAnchor)?k.textAnchor:fM(f,d),L=dM(f,d),T={};typeof a=="object"&&(T=a);var B=fe(fe({},k),{},{fill:"none"},T),W=C.map(G=>fe({entry:G},sM(G,h,p,m,y,f,g,d,x))),F=W.map(G=>{var U=G.entry,we=G.line;return v.createElement(ge,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(U.value,"-").concat(U.coordinate,"-").concat(U.tickCoord)},a&&v.createElement("line",Sr({},B,we,{className:Q("recharts-cartesian-axis-tick-line",Et(a,"className"))})))}),R=W.map((G,U)=>{var we,Ie,de=G.entry,He=G.tick,Ye=fe(fe(fe(fe({verticalAnchor:L},k),{},{textAnchor:E,stroke:"none",fill:o},He),{},{index:U,payload:de,visibleTicksCount:C.length,tickFormatter:l,padding:c},s),{},{angle:(we=(Ie=s==null?void 0:s.angle)!==null&&Ie!==void 0?Ie:k.angle)!==null&&we!==void 0?we:0}),ct=fe(fe({},Ye),_);return v.createElement(ge,Sr({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(de.value,"-").concat(de.coordinate,"-").concat(de.tickCoord)},hh(b,de,U)),i&&v.createElement(vM,{option:i,tickProps:ct,value:"".concat(typeof l=="function"?l(de.value,U):de.value).concat(u||"")}))});return v.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(S,"-ticks")},v.createElement(hM,{ticks:C,axisId:I,axisType:S}),R.length>0&&v.createElement(lt,{zIndex:Pe.label},v.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(S,"-tick-labels"),ref:t},R)),F.length>0&&v.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(S,"-tick-lines")},F))}),mM=v.forwardRef((e,t)=>{var r=e.axisLine,n=e.width,i=e.height,a=e.className,o=e.hide,l=e.ticks,u=e.axisType,c=e.axisId,s=iM(e,JD),f=v.useState(""),d=bv(f,2),h=d[0],p=d[1],m=v.useState(""),y=bv(m,2),g=y[0],x=y[1],w=v.useRef(null);v.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var P;return VD({ticks:w.current,label:(P=e.labelRef)===null||P===void 0?void 0:P.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})},getCalculatedHeight:()=>{var P;return GD({ticks:w.current,label:(P=e.labelRef)===null||P===void 0?void 0:P.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var A=v.useCallback(P=>{if(P){var b=P.getElementsByClassName("recharts-cartesian-axis-tick-value");w.current=b;var S=b[0];if(S){var I=window.getComputedStyle(S),C=I.fontSize,k=I.letterSpacing;(C!==h||k!==g)&&(p(C),x(k))}}},[h,g]);return o||n!=null&&n<=0||i!=null&&i<=0?null:v.createElement(lt,{zIndex:e.zIndex},v.createElement(ge,{className:Q("recharts-cartesian-axis",a)},v.createElement(cM,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Ue(e)}),v.createElement(pM,{ref:A,axisType:u,events:s,fontSize:h,getTicksConfig:e,height:e.height,letterSpacing:g,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:l,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:c}),v.createElement(G_,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},v.createElement(ij,{label:e.label,labelRef:e.labelRef}),e.children)))}),zc=v.forwardRef((e,t)=>{var r=je(e,Lt);return v.createElement(mM,Sr({},r,{ref:t}))});zc.displayName="CartesianAxis";var yM={grid:{stroke:"#ccc",fill:"none"}},Ug=v.createContext(yM);Ug.Provider;var gM=()=>v.useContext(Ug),bM=["x1","y1","x2","y2","key"],xM=["offset"],wM=["xAxisId","yAxisId"],AM=["xAxisId","yAxisId"];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 Me(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){PM(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 PM(e,t,r){return(t=OM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OM(e){var t=SM(e,"string");return typeof t=="symbol"?t:t+""}function SM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pr(){return pr=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},pr.apply(null,arguments)}function ga(e,t){if(e==null)return{};var r,n,i=EM(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 EM(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 IM=e=>{var t=e.fill;if(!t||t==="none")return null;var r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,l=e.ry;return v.createElement("rect",{x:n,y:i,ry:l,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Hg(e){var t=e.option,r=e.lineItemProps,n;if(v.isValidElement(t))n=v.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,a=r.x1,o=r.y1,l=r.x2,u=r.y2,c=r.key,s=ga(r,bM),f=(i=Ue(s))!==null&&i!==void 0?i:{};f.offset;var d=ga(f,xM),h=Array.isArray(d.strokeDasharray)?d.strokeDasharray.join(","):d.strokeDasharray;n=v.createElement("line",pr({},d,{strokeDasharray:h,x1:a,y1:o,x2:l,y2:u,fill:"none",key:c}))}return n}function CM(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;e.xAxisId,e.yAxisId;var o=ga(e,wM),l=a.map((u,c)=>{var s=Me(Me({},o),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return v.createElement(Hg,{key:"line-".concat(c),option:i,lineItemProps:s})});return v.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function kM(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;e.xAxisId,e.yAxisId;var o=ga(e,AM),l=a.map((u,c)=>{var s=Me(Me({},o),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return v.createElement(Hg,{option:i,lineItemProps:s,key:"line-".concat(c)})});return v.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function _M(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,l=e.horizontalPoints,u=e.horizontal,c=u===void 0?!0:u;if(!c||!t||!t.length||l==null)return null;var s=l.map(d=>Math.round(d+i-i)).sort((d,h)=>d-h);i!==s[0]&&s.unshift(0);var f=s.map((d,h)=>{var p=s[h+1],m=p==null,y=m?i+o-d:p-d;if(y<=0)return null;var g=h%t.length;return v.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:y,width:a,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function jM(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,l=e.width,u=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var s=c.map(d=>Math.round(d+a-a)).sort((d,h)=>d-h);a!==s[0]&&s.unshift(0);var f=s.map((d,h)=>{var p=s[h+1],m=p==null,y=m?a+l-d:p-d;if(y<=0)return null;var g=h%n.length;return v.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:y,height:u,stroke:"none",fill:n[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var TM=(e,t)=>{var r=e.xAxis,n=e.width,i=e.height,a=e.offset;return gp(Rc(Me(Me(Me({},Lt),r),{},{ticks:bp(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},DM=(e,t)=>{var r=e.yAxis,n=e.width,i=e.height,a=e.offset;return gp(Rc(Me(Me(Me({},Lt),r),{},{ticks:bp(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},MM={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Pe.grid};function $M(e){var t,r,n,i,a,o,l=Cp(),u=kp(),c=Ip(),s=Me(Me({},je(e,MM)),{},{x:D(e.x)?e.x:c.left,y:D(e.y)?e.y:c.top,width:D(e.width)?e.width:c.width,height:D(e.height)?e.height:c.height}),f=s.xAxisId,d=s.yAxisId,h=s.x,p=s.y,m=s.width,y=s.height,g=s.syncWithTicks,x=s.horizontalValues,w=s.verticalValues,A=Re(),P=N(F=>wd(F,"xAxis",f,A)),b=N(F=>wd(F,"yAxis",d,A)),S=gM(),I={stroke:(t=s.stroke)!==null&&t!==void 0?t:S.grid.stroke,strokeWidth:(r=s.strokeWidth)!==null&&r!==void 0?r:S.grid.strokeWidth,strokeOpacity:(n=s.strokeOpacity)!==null&&n!==void 0?n:S.grid.strokeOpacity,strokeDasharray:(i=s.strokeDasharray)!==null&&i!==void 0?i:S.grid.strokeDasharray};if(!kt(m)||!kt(y)||!D(h)||!D(p))return null;var C=s.verticalCoordinatesGenerator||TM,k=s.horizontalCoordinatesGenerator||DM,_=s.horizontalPoints,E=s.verticalPoints;if((!_||!_.length)&&typeof k=="function"){var L=x&&x.length,T=k({yAxis:b?Me(Me({},b),{},{ticks:L?x:b.ticks}):void 0,width:l??m,height:u??y,offset:c},L?!0:g);Vi(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof T,"]")),Array.isArray(T)&&(_=T)}if((!E||!E.length)&&typeof C=="function"){var B=w&&w.length,W=C({xAxis:P?Me(Me({},P),{},{ticks:B?w:P.ticks}):void 0,width:l??m,height:u??y,offset:c},B?!0:g);Vi(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof W,"]")),Array.isArray(W)&&(E=W)}return v.createElement(lt,{zIndex:s.zIndex},v.createElement("g",{className:"recharts-cartesian-grid"},v.createElement(IM,{fill:(a=s.fill)!==null&&a!==void 0?a:S.grid.fill,fillOpacity:(o=s.fillOpacity)!==null&&o!==void 0?o:S.grid.fillOpacity,x:s.x,y:s.y,width:s.width,height:s.height,ry:s.ry}),v.createElement(_M,pr({},s,{horizontalPoints:_})),v.createElement(jM,pr({},s,{verticalPoints:E})),v.createElement(CM,pr({},s,I,{offset:c,horizontalPoints:_,xAxis:P,yAxis:b})),v.createElement(kM,pr({},s,I,{offset:c,verticalPoints:E,xAxis:P,yAxis:b}))))}$M.displayName="CartesianGrid";var NM=["animationElapsedTime","isAnimating","isEntrance","visibleLength","strokeDasharray","connectNulls"];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 LM(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 zM(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function Yg(e,t){return"".concat(t,"px ").concat(e,"px")}function BM(e){return e.length%2!==0?[...e,...e]:e}function WM(e,t){for(var r=[],n=0;n<t;++n)r.push(...e);return r}function FM(e,t,r){var n=BM(r),i=n.reduce((h,p)=>h+p,0);if(!i)return Yg(t,e);for(var a=Math.floor(e/i),o=e%i,l=[],u=0,c=0;u<n.length;c+=(s=n[u])!==null&&s!==void 0?s:0,++u){var s,f=n[u];if(f!=null&&c+f>o){l=[...n.slice(0,u),o-c];break}}var d=l.length%2===0?[0,t]:[t];return[...WM(n,a),...l,...d].map(h=>"".concat(h,"px")).join(", ")}function KM(e,t,r){if(e){var n="".concat(e).split(/[,\s]+/gim).map(i=>parseFloat(i));return FM(r,t,n)}return Yg(t,r)}function UM(e){e.animationElapsedTime,e.isAnimating,e.isEntrance;var t=e.visibleLength,r=e.strokeDasharray,n=e.connectNulls,i=LM(e,NM),a=n??!1,o;if(t!=null){var l,u=i.pathRef,c=zM((l=u==null?void 0:u.current)!==null&&l!==void 0?l:null);o=KM(r,c,t)}else r!=null&&(o=String(r));return v.createElement(Fr,Ll({},i,{connectNulls:a,strokeDasharray:o}))}function HM(e){var t=v.useRef(0),r=v.useRef(0),n=v.useRef(!1),i=v.useRef(e);return i.current!==e&&(t.current=r.current,i.current=e),v.useCallback((a,o)=>{if(n.current)return null;var l=Math.min(Dt(t.current+a*o),o);return a>0&&o>0&&(r.current=Math.max(r.current,l),l>=o)?(n.current=!0,null):l},[])}var YM={},Vg=Le({name:"errorBars",initialState:YM,reducers:{addErrorBar:(e,t)=>{var r=t.payload,n=r.itemId,i=r.errorBar;e[n]||(e[n]=[]),e[n].push(i)},replaceErrorBar:(e,t)=>{var r=t.payload,n=r.itemId,i=r.prev,a=r.next;e[n]&&(e[n]=e[n].map(o=>o.dataKey===i.dataKey&&o.direction===i.direction?a:o))},removeErrorBar:(e,t)=>{var r=t.payload,n=r.itemId,i=r.errorBar;e[n]&&(e[n]=e[n].filter(a=>a.dataKey!==i.dataKey||a.direction!==i.direction))}}}),Bc=Vg.actions;Bc.addErrorBar;Bc.replaceErrorBar;Bc.removeErrorBar;var VM=Vg.reducer,GM=["children"];function qM(e,t){if(e==null)return{};var r,n,i=XM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function XM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ZM={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},QM=v.createContext(ZM);function JM(e){var t=e.children,r=qM(e,GM);return v.createElement(QM.Provider,{value:r},t)}function Wc(e,t){var r,n,i=N(c=>Ht(c,e)),a=N(c=>Yt(c,t)),o=(r=i==null?void 0:i.allowDataOverflow)!==null&&r!==void 0?r:me.allowDataOverflow,l=(n=a==null?void 0:a.allowDataOverflow)!==null&&n!==void 0?n:ye.allowDataOverflow,u=o||l;return{needClip:u,needClipX:o,needClipY:l}}function Gg(e){var t=e.xAxisId,r=e.yAxisId,n=e.clipPathId,i=Oo(),a=Wc(t,r),o=a.needClipX,l=a.needClipY,u=a.needClip,c=N(w=>hy(w,t,!1)),s=N(w=>py(w,r,!1));if(!u||!i)return null;var f=i.x,d=i.y,h=i.width,p=i.height,m=o&&c?Math.min(c[0],c[1]):f-h/2,y=l&&s?Math.min(s[0],s[1]):d-p/2,g=o&&c?Math.abs(c[1]-c[0]):h*2,x=l&&s?Math.abs(s[1]-s[0]):p*2;return v.createElement("clipPath",{id:"clipPath-".concat(n)},v.createElement("rect",{x:m,y,width:g,height:x}))}var qg=(e,t,r,n)=>io(e,"xAxis",t,n),Xg=(e,t,r,n)=>no(e,"xAxis",t,n),Zg=(e,t,r,n)=>io(e,"yAxis",r,n),Qg=(e,t,r,n)=>no(e,"yAxis",r,n),e$=O([J,qg,Zg,Xg,Qg],(e,t,r,n,i)=>pt(e,"xAxis")?Vr(t,n,!1):Vr(r,i,!1)),t$=(e,t,r,n,i)=>i;function r$(e){return e.type==="line"}var n$=O([Zu,t$],(e,t)=>e.filter(r$).find(r=>r.id===t)),i$=O([J,qg,Zg,Xg,Qg,n$,e$,ei],(e,t,r,n,i,a,o,l)=>{var u=l.chartData,c=l.dataStartIndex,s=l.dataEndIndex;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null||e!=="horizontal"&&e!=="vertical")){var f=a.dataKey,d=a.data,h;if(d!=null&&d.length>0?h=d:h=u==null?void 0:u.slice(c,s+1),h!=null)return S$({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:h})}});function Jg(e){var t=Hr(e),r=3,n=2;if(t!=null){var i=t.r,a=t.strokeWidth,o=Number(i),l=Number(a);return(Number.isNaN(o)||o<0)&&(o=r),(Number.isNaN(l)||l<0)&&(l=n),{r:o,strokeWidth:l}}return{r,strokeWidth:n}}var a$=["id"],o$=["type","layout","connectNulls","needClip","shape","strokeDasharray"],l$=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba.apply(null,arguments)}function Fc(e,t){if(e==null)return{};var r,n,i=u$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pv(Object(r),!0).forEach(function(n){c$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c$(e,t,r){return(t=s$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s$(e){var t=f$(e,"string");return typeof t=="symbol"?t:t+""}function f$(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 d$(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function v$(e){var t=0,r=0;for(var n of e)n.status==="matched"&&n.prev.x!=null&&n.next.x!=null&&(t+=n.next.x-n.prev.x,r++);return r>0?t/r:0}var h$=(e,t)=>{if(e==null)return[];if(t===1)return e.flatMap(l=>l.status==="removed"?[]:[l.next]);var r=v$(e),n=[];for(var i of e)if(i.status==="matched")n.push(wt(wt({},i.next),{},{x:ze(i.prev.x,i.next.x,t),y:ze(i.prev.y,i.next.y,t)}));else if(i.status==="added")if(i.next.x!=null){var a=i.next.x-r;n.push(wt(wt({},i.next),{},{x:ze(a,i.next.x,t),y:i.next.y}))}else n.push(i.next);else if(i.status==="removed"&&i.prev.x!=null){var o=i.prev.x+r;n.push(wt(wt({},i.prev),{},{x:ze(i.prev.x,o,t),y:i.prev.y}))}return n},Kc={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",animationInterpolateFn:h$,animationMatchBy:Ao,connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",shape:UM,stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:Pe.line,type:"linear"},p$=e=>{var t=e.dataKey,r=e.name,n=e.stroke,i=e.legendType,a=e.hide;return[{inactive:a,dataKey:t,type:i,color:n,value:tn(r,t),payload:e}]},m$=v.memo(e=>{var t=e.dataKey,r=e.data,n=e.stroke,i=e.strokeWidth,a=e.fill,o=e.name,l=e.hide,u=e.unit,c=e.formatter,s=e.tooltipType,f=e.id,d={dataDefinedOnItem:r,getPosition:Er,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:tn(o,t),hide:l,type:s,color:n,unit:u,formatter:c,graphicalItemId:f}};return v.createElement(Dc,{tooltipEntrySettings:d})});function y$(e){var t=e.clipPathId,r=e.points,n=e.props,i=n.dot,a=n.dataKey,o=n.needClip;n.id;var l=Fc(n,a$),u=Ue(l);return v.createElement($g,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:u,needClip:o,clipPathId:t})}function g$(e){var t=e.showLabels,r=e.children,n=e.points,i=v.useMemo(()=>n==null?void 0:n.map(a=>{var o,l,u={x:(o=a.x)!==null&&o!==void 0?o:0,y:(l=a.y)!==null&&l!==void 0?l:0,width:0,lowerWidth:0,upperWidth:0,height:0};return wt(wt({},u),{},{value:a.value,payload:a.payload,viewBox:u,parentViewBox:void 0,fill:void 0})}),[n]);return v.createElement(pg,{value:t?i:void 0},r)}function b$(e){var t=e.clipPathId,r=e.pathRef,n=e.points,i=e.props,a=e.animationElapsedTime,o=e.isAnimating,l=e.isEntrance,u=e.visibleLength,c=i.type,s=i.layout,f=i.connectNulls,d=i.needClip,h=i.shape,p=i.strokeDasharray,m=Fc(i,o$),y=wt(wt({},Qe(m)),{},{fill:"none",className:"recharts-line-curve",clipPath:d?"url(#clipPath-".concat(t,")"):void 0,points:n,type:c,layout:s,connectNulls:f,strokeDasharray:p??i.strokeDasharray,pathRef:r,animationElapsedTime:a,isAnimating:o,isEntrance:i.animateNewValues?l:!1,visibleLength:u});return v.createElement(v.Fragment,null,(n==null?void 0:n.length)>1&&v.createElement(Tc,{option:h,DefaultShape:Kc.shape,shapeProps:y}),v.createElement(y$,{points:n,clipPathId:t,props:i}))}function x$(e){var t=e.clipPathId,r=e.props,n=e.pathRef,i=e.previousPointsRef,a=r.points,o=r.isAnimationActive,l=r.animationBegin,u=r.animationDuration,c=r.animationEasing,s=r.animationMatchBy,f=r.animationInterpolateFn,d=r.layout,h=d$(n.current),p=$c(r.onAnimationStart,r.onAnimationEnd),m=p.isAnimating,y=p.handleAnimationStart,g=p.handleAnimationEnd,x=!m,w=HM(a),A=v.useCallback(P=>P>0&&h>0,[h]);return v.createElement(g$,{points:a,showLabels:x},r.children,v.createElement(Nc,{animationInput:a,animationIdPrefix:"recharts-line-",items:a,previousItemsRef:i,isAnimationActive:o,animationBegin:l,animationDuration:u,animationEasing:c,onAnimationStart:y,onAnimationEnd:g,animationInterpolateFn:f,animationMatchBy:s,shouldUpdatePreviousRef:A,layout:d},(P,b,S)=>{var I=m||b<1,C=I?w(b,h):null;return v.createElement(b$,{props:r,points:P,clipPathId:t,pathRef:n,animationElapsedTime:b,isAnimating:I,isEntrance:S,visibleLength:C})}),v.createElement(Ec,{label:r.label}))}function w$(e){var t=e.clipPathId,r=e.props,n=v.useRef(null),i=v.useRef(null);return v.createElement(x$,{props:r,clipPathId:t,previousPointsRef:n,pathRef:i})}var A$=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:Z(e.payload,t)}};class P$ extends v.Component{render(){var t=this.props,r=t.hide,n=t.dot,i=t.points,a=t.className,o=t.xAxisId,l=t.yAxisId,u=t.top,c=t.left,s=t.width,f=t.height,d=t.id,h=t.needClip,p=t.zIndex;if(r)return null;var m=Q("recharts-line",a),y=d,g=Jg(n),x=g.r,w=g.strokeWidth,A=jc(n),P=x*2+w,b=h?"url(#clipPath-".concat(A?"":"dots-").concat(y,")"):void 0;return v.createElement(lt,{zIndex:p},v.createElement(ge,{className:m},h&&v.createElement("defs",null,v.createElement(Gg,{clipPathId:y,xAxisId:o,yAxisId:l}),!A&&v.createElement("clipPath",{id:"clipPath-dots-".concat(y)},v.createElement("rect",{x:c-P/2,y:u-P/2,width:s+P,height:f+P}))),v.createElement(JM,{xAxisId:o,yAxisId:l,data:i,dataPointFormatter:A$,errorBarOffset:0},v.createElement(w$,{props:this.props,clipPathId:y}))),v.createElement(Nl,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:b}))}}function O$(e){var t=je(e,Kc),r=t.activeDot,n=t.animateNewValues,i=t.animationBegin,a=t.animationDuration,o=t.animationEasing,l=t.connectNulls,u=t.dot,c=t.hide,s=t.isAnimationActive,f=t.label,d=t.legendType,h=t.xAxisId,p=t.yAxisId,m=t.id,y=Fc(t,l$),g=Wc(h,p),x=g.needClip,w=Oo(),A=Ir(),P=Re(),b=N(_=>i$(_,h,p,P,m));if(A!=="horizontal"&&A!=="vertical"||b==null||w==null)return null;var S=w.height,I=w.width,C=w.x,k=w.y;return v.createElement(P$,ba({},y,{id:m,connectNulls:l,dot:u,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:s,hide:c,label:f,legendType:d,xAxisId:h,yAxisId:p,points:b,layout:A,height:S,width:I,left:C,top:k,needClip:x}))}function S$(e){var t=e.layout,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,l=e.bandSize,u=e.displayedData;return u.map((c,s)=>{var f=Z(c,o);if(t==="horizontal"){var d=Yi({axis:r,ticks:i,bandSize:l,entry:c,index:s}),h=pe(f)?null:n.scale.map(f);return{x:d,y:h??null,value:f,payload:c}}var p=pe(f)?null:r.scale.map(f),m=Yi({axis:n,ticks:a,bandSize:l,entry:c,index:s});return p==null||m==null?null:{x:p,y:m,value:f,payload:c}}).filter(Boolean)}function E$(e){var t=je(e,Kc),r=Re();return v.createElement(Lc,{id:t.id,type:"line"},n=>v.createElement(v.Fragment,null,v.createElement(Cg,{legendPayload:p$(t)}),v.createElement(m$,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:n}),v.createElement(Dg,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),v.createElement(O$,ba({},t,{id:n}))))}var I$=v.memo(E$,Zn);I$.displayName="Line";function Uc(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:Ng}function Hc(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:Ng}var e0=(e,t,r)=>io(e,"xAxis",Uc(e,t),r),t0=(e,t,r)=>no(e,"xAxis",Uc(e,t),r),r0=(e,t,r)=>io(e,"yAxis",Hc(e,t),r),n0=(e,t,r)=>no(e,"yAxis",Hc(e,t),r),C$=O([J,e0,r0,t0,n0],(e,t,r,n,i)=>pt(e,"xAxis")?Vr(t,n,!1):Vr(r,i,!1)),k$=(e,t)=>t,Yc=O([Zu,k$],(e,t)=>e.filter(r=>r.type==="area").find(r=>r.id===t)),i0=e=>{var t=J(e),r=pt(t,"xAxis");return r?"yAxis":"xAxis"},_$=(e,t)=>{var r=i0(e);return r==="yAxis"?Hc(e,t):Uc(e,t)},a0=(e,t,r)=>ay(e,i0(e),_$(e,t),r),j$=O([Yc,a0],(e,t)=>{var r;if(!(e==null||t==null)){var n=e.stackId,i=Au(e);if(!(n==null||i==null)){var a=(r=t[n])===null||r===void 0?void 0:r.stackedData,o=a==null?void 0:a.find(l=>l.key===i);if(o!=null)return o.map(l=>[l[0],l[1]])}}}),T$=O([Yc,a0],(e,t)=>{if(!(e==null||e.stackId==null||t==null)){var r=t[e.stackId];if(r!=null)return r.graphicalItems.map(n=>n.dataKey).filter(Be)}}),D$=O([J,e0,r0,t0,n0,j$,IO,C$,Yc,HO,T$],(e,t,r,n,i,a,o,l,u,c,s)=>{var f=o.chartData,d=o.dataStartIndex,h=o.dataEndIndex;if(!(u==null||e!=="horizontal"&&e!=="vertical"||t==null||r==null||n==null||i==null||n.length===0||i.length===0||l==null)){var p=u.data,m;if(p&&p.length>0?m=p:m=f==null?void 0:f.slice(d,h+1),m!=null)return aN({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:d,areaSettings:u,stackedData:a,displayedData:m,chartBaseValue:c,bandSize:l,stackDataKeys:s})}}),M$=["animationElapsedTime","isAnimating","isEntrance","layout","isRange","stroke","connectNulls"],$$=["id","baseLine"];function jn(){return jn=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},jn.apply(null,arguments)}function Ov(e,t){if(e==null)return{};var r,n,i=N$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function N$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function L$(e){var t,r,n=e.alpha,i=e.baseLine,a=e.points,o=e.strokeWidth,l=(t=a[0])===null||t===void 0?void 0:t.x,u=(r=a[a.length-1])===null||r===void 0?void 0:r.x;if(!Y(l)||!Y(u))return null;var c=n*Math.abs(l-u),s=Math.max(...a.map(f=>f.y||0));return D(i)?s=Math.max(i,s):i&&Array.isArray(i)&&i.length&&(s=Math.max(...i.map(f=>f.y||0),s)),D(s)?v.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(s+(o?parseInt("".concat(o),10):1))}):null}function R$(e){var t,r,n=e.alpha,i=e.baseLine,a=e.points,o=e.strokeWidth,l=(t=a[0])===null||t===void 0?void 0:t.y,u=(r=a[a.length-1])===null||r===void 0?void 0:r.y;if(!Y(l)||!Y(u))return null;var c=n*Math.abs(l-u),s=Math.max(...a.map(f=>f.x||0));return D(i)?s=Math.max(i,s):i&&Array.isArray(i)&&i.length&&(s=Math.max(...i.map(f=>f.x||0),s)),D(s)?v.createElement("rect",{x:0,y:l<u?l:l-c,width:s+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}function z$(e){var t=e.alpha,r=e.layout,n=e.points,i=e.baseLine,a=e.strokeWidth;return r==="vertical"?v.createElement(R$,{alpha:t,points:n,baseLine:i,strokeWidth:a}):v.createElement(L$,{alpha:t,points:n,baseLine:i,strokeWidth:a})}function B$(e){var t=e.animationElapsedTime,r=t===void 0?1:t,n=e.isAnimating,i=n===void 0?!1:n,a=e.isEntrance,o=a===void 0?!1:a,l=e.layout,u=e.isRange,c=e.stroke,s=e.connectNulls,f=Ov(e,M$),d=l==="vertical"?"vertical":"horizontal",h=s??!1,p=jg(),m=f.id,y=f.baseLine,g=Ov(f,$$),x=Ue(g),w=v.createElement(Fr,jn({},f,{id:m,baseLine:y,connectNulls:h,stroke:"none",className:"recharts-area-area",layout:d})),A=c!=="none"&&v.createElement(Fr,jn({},x,{className:"recharts-area-curve",layout:d,type:f.type,connectNulls:h,fill:"none",stroke:c,points:f.points})),P=c!=="none"&&u&&Array.isArray(y)&&v.createElement(Fr,jn({},x,{className:"recharts-area-curve",layout:d,type:f.type,connectNulls:h,fill:"none",stroke:c,points:y}));if(o&&(i||r<1)){var b;return v.createElement(ge,null,v.createElement("defs",null,v.createElement("clipPath",{id:p},v.createElement(z$,{alpha:r,points:(b=f.points)!==null&&b!==void 0?b:[],baseLine:y,layout:d,strokeWidth:f.strokeWidth}))),v.createElement(ge,{clipPath:"url(#".concat(p,")")},w,A,P))}return v.createElement(v.Fragment,null,w,A,P)}var W$=["id"],F$=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function xa(){return xa=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},xa.apply(null,arguments)}function o0(e,t){if(e==null)return{};var r,n,i=K$(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 K$(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 Sv(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 en(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sv(Object(r),!0).forEach(function(n){U$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U$(e,t,r){return(t=H$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H$(e){var t=Y$(e,"string");return typeof t=="symbol"?t:t+""}function Y$(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 V$=(e,t)=>e==null?[]:t===1?e.flatMap(r=>r.status==="removed"?[]:[r.next]):e.flatMap(r=>r.status==="matched"?[en(en({},r.next),{},{x:ze(r.prev.x,r.next.x,t),y:ze(r.prev.y,r.next.y,t)})]:r.status==="added"?[r.next]:[]),l0={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",animationMatchBy:Ao,animationInterpolateFn:V$,connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,shape:B$,xAxisId:0,yAxisId:0,zIndex:Pe.area};function wa(e,t){return e&&e!=="none"?e:t}var G$=e=>{var t=e.dataKey,r=e.name,n=e.stroke,i=e.fill,a=e.legendType,o=e.hide;return[{inactive:o,dataKey:t,type:a,color:wa(n,i),value:tn(r,t),payload:e}]},q$=v.memo(e=>{var t=e.dataKey,r=e.data,n=e.stroke,i=e.strokeWidth,a=e.fill,o=e.name,l=e.hide,u=e.unit,c=e.formatter,s=e.tooltipType,f=e.id,d={dataDefinedOnItem:r,getPosition:Er,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:tn(o,t),hide:l,type:s,color:wa(n,a),unit:u,formatter:c,graphicalItemId:f}};return v.createElement(Dc,{tooltipEntrySettings:d})});function X$(e){var t=e.clipPathId,r=e.points,n=e.props,i=n.needClip,a=n.dot,o=n.dataKey,l=Ue(n);return v.createElement($g,{points:r,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:o,baseProps:l,needClip:i,clipPathId:t})}function Z$(e){var t=e.showLabels,r=e.children,n=e.points,i=n.map(a=>{var o,l,u={x:(o=a.x)!==null&&o!==void 0?o:0,y:(l=a.y)!==null&&l!==void 0?l:0,width:0,lowerWidth:0,upperWidth:0,height:0};return en(en({},u),{},{value:a.value,payload:a.payload,parentViewBox:void 0,viewBox:u,fill:void 0})});return v.createElement(pg,{value:t?i:void 0},r)}function Q$(e){var t=e.points,r=e.baseLine,n=e.needClip,i=e.clipPathId,a=e.props,o=e.animationElapsedTime,l=e.isAnimating,u=e.isEntrance,c=a.layout,s=a.type,f=a.stroke,d=a.connectNulls,h=a.isRange,p=a.shape,m=a.id,y=o0(a,W$),g=Qe(y),x=en(en({},g),{},{id:m,points:t,connectNulls:d,type:s,baseLine:r,layout:c,stroke:f,isRange:h,animationElapsedTime:o,isAnimating:l,isEntrance:u});return v.createElement(v.Fragment,null,(t==null?void 0:t.length)>1&&v.createElement(ge,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},v.createElement(Tc,{option:p,DefaultShape:l0.shape,shapeProps:x})),v.createElement(X$,{points:t,props:y,clipPathId:i}))}function J$(e,t,r){if(D(e)){var n=D(t)?t:void 0;return ze(n,e,r)}if(pe(e)||It(e)){var i=D(t)?t:void 0;return ze(i,0,r)}return e}function eN(e){var t=e.needClip,r=e.clipPathId,n=e.props,i=e.previousPointsRef,a=e.previousBaselineRef,o=n.points,l=n.baseLine,u=n.isAnimationActive,c=n.animationBegin,s=n.animationDuration,f=n.animationEasing,d=n.animationMatchBy,h=n.animationInterpolateFn,p=v.useMemo(()=>({points:o,baseLine:l}),[o,l]),m=_g(p,a),y=su(),g=$c(n.onAnimationStart,n.onAnimationEnd),x=g.isAnimating,w=g.handleAnimationStart,A=g.handleAnimationEnd,P=m.startValue;if(y==null)return null;var b;return Array.isArray(l)&&Array.isArray(P)?b=$l(P,l,d):Array.isArray(l)?b=$l(null,l,d):b=null,v.createElement(Nc,{animationInput:p,animationIdPrefix:"recharts-area-",items:o,previousItemsRef:i,isAnimationActive:u,animationBegin:c,animationDuration:s,animationEasing:f,onAnimationStart:w,onAnimationEnd:A,animationInterpolateFn:h,animationMatchBy:d,layout:y},(S,I,C)=>{var k;return I===1?k=l:Array.isArray(l)?k=h(b,I,y):k=C?l:J$(l,P,I),m.syncStepValue(k,I),v.createElement(Z$,{showLabels:!x,points:o},n.children,v.createElement(Q$,{points:S,baseLine:k,needClip:t,clipPathId:r,props:n,animationElapsedTime:I,isAnimating:x||I<1,isEntrance:C}),v.createElement(Ec,{label:n.label}))})}function tN(e){var t=e.needClip,r=e.clipPathId,n=e.props,i=v.useRef(null),a=v.useRef();return v.createElement(eN,{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:a})}class rN extends v.PureComponent{render(){var t=this.props,r=t.hide,n=t.dot,i=t.points,a=t.className,o=t.top,l=t.left,u=t.needClip,c=t.xAxisId,s=t.yAxisId,f=t.width,d=t.height,h=t.id,p=t.baseLine,m=t.zIndex;if(r)return null;var y=Q("recharts-area",a),g=h,x=Jg(n),w=x.r,A=x.strokeWidth,P=jc(n),b=w*2+A,S=u?"url(#clipPath-".concat(P?"":"dots-").concat(g,")"):void 0;return v.createElement(lt,{zIndex:m},v.createElement(ge,{className:y},u&&v.createElement("defs",null,v.createElement(Gg,{clipPathId:g,xAxisId:c,yAxisId:s}),!P&&v.createElement("clipPath",{id:"clipPath-dots-".concat(g)},v.createElement("rect",{x:l-b/2,y:o-b/2,width:f+b,height:d+b}))),v.createElement(tN,{needClip:u,clipPathId:g,props:this.props})),v.createElement(Nl,{points:i,mainColor:wa(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:S}),this.props.isRange&&Array.isArray(p)&&v.createElement(Nl,{points:p,mainColor:wa(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:S}))}}function nN(e){var t,r=e.activeDot,n=e.animationBegin,i=e.animationDuration,a=e.animationEasing,o=e.connectNulls,l=e.dot,u=e.fill,c=e.fillOpacity,s=e.hide,f=e.isAnimationActive,d=e.legendType,h=e.stroke,p=e.xAxisId,m=e.yAxisId,y=o0(e,F$),g=Ir(),x=Vy(),w=Wc(p,m),A=w.needClip,P=Re(),b=(t=N(B=>D$(B,e.id,P)))!==null&&t!==void 0?t:{},S=b.points,I=b.isRange,C=b.baseLine,k=Oo();if(g!=="horizontal"&&g!=="vertical"||k==null||x!=="AreaChart"&&x!=="ComposedChart")return null;var _=k.height,E=k.width,L=k.x,T=k.y;return!S||!S.length?null:v.createElement(rN,xa({},y,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:a,baseLine:C,connectNulls:o,dot:l,fill:u,fillOpacity:c,height:_,hide:s,layout:g,isAnimationActive:f,isRange:I,legendType:d,needClip:A,points:S,stroke:h,width:E,left:L,top:T,xAxisId:p,yAxisId:m}))}var iN=(e,t,r,n,i)=>{var a=r??t;if(D(a))return a;var o=e==="horizontal"?i:n,l=o.scale.domain();if(o.type==="number"){var u=Math.max(l[0],l[1]),c=Math.min(l[0],l[1]);return a==="dataMin"?c:a==="dataMax"||u<0?u:Math.max(Math.min(l[0],l[1]),0)}return a==="dataMin"?l[0]:a==="dataMax"?l[1]:l[0]};function aN(e){var t=e.areaSettings,r=t.connectNulls,n=t.baseValue,i=t.dataKey,a=e.stackedData,o=e.layout,l=e.chartBaseValue,u=e.xAxis,c=e.yAxis,s=e.displayedData,f=e.dataStartIndex,d=e.xAxisTicks,h=e.yAxisTicks,p=e.bandSize,m=e.stackDataKeys,y=a&&a.length,g=iN(o,l,n,u,c),x=o==="horizontal",w=!1,A=s.map((b,S)=>{var I,C,k,_;if(y)_=a[f+S];else{var E=Z(b,i);Array.isArray(E)?(_=E,w=!0):_=[g,E]}var L=(I=(C=_)===null||C===void 0?void 0:C[1])!==null&&I!==void 0?I:null,T=Z(b,i),B=y&&T==null&&m!=null&&m.length>0&&m.every(R=>Z(b,R)==null),W=L==null||y&&!r&&T==null||B;if(x){var F;return{x:Yi({axis:u,ticks:d,bandSize:p,entry:b,index:S}),y:W?null:(F=c.scale.map(L))!==null&&F!==void 0?F:null,value:_,payload:b}}return{x:W?null:(k=u.scale.map(L))!==null&&k!==void 0?k:null,y:Yi({axis:c,ticks:h,bandSize:p,entry:b,index:S}),value:_,payload:b}}),P;return y||w?P=A.map(b=>{var S,I=Array.isArray(b.value)?b.value[0]:null;if(x){var C;return{x:b.x,y:I!=null&&b.y!=null&&(C=c.scale.map(I))!==null&&C!==void 0?C:null,payload:b.payload}}return{x:I!=null&&(S=u.scale.map(I))!==null&&S!==void 0?S:null,y:b.y,payload:b.payload}}):P=x?c.scale.map(g):u.scale.map(g),{points:A,baseLine:P??0,isRange:w}}function oN(e){var t=je(e,l0),r=Re();return v.createElement(Lc,{id:t.id,type:"area"},n=>v.createElement(v.Fragment,null,v.createElement(Cg,{legendPayload:G$(t)}),v.createElement(q$,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:n}),v.createElement(Dg,{type:"area",id:n,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Sw(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),v.createElement(nN,xa({},t,{id:n}))))}var lN=v.memo(oN,Zn);lN.displayName="Area";var uN=["domain","range"],cN=["domain","range"];function Ev(e,t){if(e==null)return{};var r,n,i=sN(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 sN(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 Iv(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 u0(e,t){if(e===t)return!0;var r=e.domain,n=e.range,i=Ev(e,uN),a=t.domain,o=t.range,l=Ev(t,cN);return!Iv(r,a)||!Iv(n,o)?!1:Zn(i,l)}var fN=["type"],dN=["dangerouslySetInnerHTML","ticks","scale"],vN=["id","scale"];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 Cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(n){hN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hN(e,t,r){return(t=pN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pN(e){var t=mN(e,"string");return typeof t=="symbol"?t:t+""}function mN(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 zl(e,t){if(e==null)return{};var r,n,i=yN(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 yN(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 gN(e){var t=re(),r=v.useRef(null),n=su(),i=e.type,a=zl(e,fN),o=Ua(n,"xAxis",i),l=v.useMemo(()=>{if(o!=null)return kv(kv({},a),{},{type:o})},[a,o]);return v.useLayoutEffect(()=>{l!=null&&(r.current===null?t(oD(l)):r.current!==l&&t(lD({prev:r.current,next:l})),r.current=l)},[l,t]),v.useLayoutEffect(()=>()=>{r.current&&(t(uD(r.current)),r.current=null)},[t]),null}var bN=e=>{var t=e.xAxisId,r=e.className,n=e.height,i=e.label,a=v.useRef(null),o=v.useRef(null),l=N(Pp),u=Re(),c=re(),s="xAxis",f=N(g=>wy(g,s,t,u)),d=N(g=>PI(g,t)),h=N(g=>kI(g,t)),p=N(g=>qm(g,t));if(v.useLayoutEffect(()=>{if(!(n!=="auto"||!d||lo(i)||v.isValidElement(i)||p==null)){var g=a.current;if(g){var x=g.getCalculatedHeight();Math.round(d.height)!==Math.round(x)&&c(vD({id:t,height:x}))}}},[f,d,c,i,t,n,p]),d==null||h==null||p==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var m=zl(e,dN);p.id,p.scale;var y=zl(p,vN);return v.createElement(zc,Rl({},m,y,{ref:a,labelRef:o,x:h.x,y:h.y,width:d.width,height:d.height,className:Q("recharts-".concat(s," ").concat(s),r),viewBox:l,ticks:f,axisType:s,axisId:t}))},xN={allowDataOverflow:me.allowDataOverflow,allowDecimals:me.allowDecimals,allowDuplicatedCategory:me.allowDuplicatedCategory,angle:me.angle,axisLine:Lt.axisLine,height:me.height,hide:!1,includeHidden:me.includeHidden,interval:me.interval,label:!1,minTickGap:me.minTickGap,mirror:me.mirror,orientation:me.orientation,padding:me.padding,reversed:me.reversed,scale:me.scale,tick:me.tick,tickCount:me.tickCount,tickLine:Lt.tickLine,tickSize:Lt.tickSize,type:me.type,niceTicks:me.niceTicks,xAxisId:0},wN=e=>{var t=je(e,xN);return v.createElement(v.Fragment,null,v.createElement(gN,{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,niceTicks:t.niceTicks}),v.createElement(bN,t))},AN=v.memo(wN,u0);AN.displayName="XAxis";var PN=["type"],ON=["dangerouslySetInnerHTML","ticks","scale"],SN=["id","scale"];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 _v(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 jv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_v(Object(r),!0).forEach(function(n){EN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EN(e,t,r){return(t=IN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IN(e){var t=CN(e,"string");return typeof t=="symbol"?t:t+""}function CN(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 Wl(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 _N(e){var t=re(),r=v.useRef(null),n=su(),i=e.type,a=Wl(e,PN),o=Ua(n,"yAxis",i),l=v.useMemo(()=>{if(o!=null)return jv(jv({},a),{},{type:o})},[o,a]);return v.useLayoutEffect(()=>{l!=null&&(r.current===null?t(cD(l)):r.current!==l&&t(sD({prev:r.current,next:l})),r.current=l)},[l,t]),v.useLayoutEffect(()=>()=>{r.current&&(t(fD(r.current)),r.current=null)},[t]),null}function jN(e){var t=e.yAxisId,r=e.className,n=e.width,i=e.label,a=v.useRef(null),o=v.useRef(null),l=N(Pp),u=Re(),c=re(),s="yAxis",f=N(g=>TI(g,t)),d=N(g=>jI(g,t)),h=N(g=>wy(g,s,t,u)),p=N(g=>Xm(g,t));if(v.useLayoutEffect(()=>{if(!(n!=="auto"||!f||lo(i)||v.isValidElement(i)||p==null)){var g=a.current;if(g){var x=g.getCalculatedWidth();Math.round(f.width)!==Math.round(x)&&c(dD({id:t,width:x}))}}},[h,f,c,i,t,n,p]),f==null||d==null||p==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var m=Wl(e,ON);p.id,p.scale;var y=Wl(p,SN);return v.createElement(zc,Bl({},m,y,{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:Q("recharts-".concat(s," ").concat(s),r),viewBox:l,ticks:h,axisType:s,axisId:t}))}var TN={allowDataOverflow:ye.allowDataOverflow,allowDecimals:ye.allowDecimals,allowDuplicatedCategory:ye.allowDuplicatedCategory,angle:ye.angle,axisLine:Lt.axisLine,hide:!1,includeHidden:ye.includeHidden,interval:ye.interval,label:!1,minTickGap:ye.minTickGap,mirror:ye.mirror,orientation:ye.orientation,padding:ye.padding,reversed:ye.reversed,scale:ye.scale,tick:ye.tick,tickCount:ye.tickCount,tickLine:Lt.tickLine,tickSize:Lt.tickSize,type:ye.type,niceTicks:ye.niceTicks,width:ye.width,yAxisId:0},DN=e=>{var t=je(e,TN);return v.createElement(v.Fragment,null,v.createElement(_N,{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,niceTicks:t.niceTicks}),v.createElement(jN,t))},MN=v.memo(DN,u0);MN.displayName="YAxis";var $N=(e,t)=>t,Vc=O([$N,J,cm,Se,zy,Vt,JC,Oe],ok);function NN(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function Gc(e){var t=e.currentTarget.getBoundingClientRect(),r,n;if(NN(e)){var i=e.currentTarget.getBBox();r=i.width>0?t.width/i.width:1,n=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;r=a.offsetWidth>0?t.width/a.offsetWidth:1,n=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(l,u)=>({relativeX:Math.round((l-t.left)/r),relativeY:Math.round((u-t.top)/n)});return"touches"in e?Array.from(e.touches).map(l=>o(l.clientX,l.clientY)):o(e.clientX,e.clientY)}var c0=Je("mouseClick"),s0=Yn();s0.startListening({actionCreator:c0,effect:(e,t)=>{var r=e.payload,n=Vc(t.getState(),Gc(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(GI({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Fl=Je("mouseMove"),f0=Yn(),Nr=null,ar=null,Xo=null;f0.startListening({actionCreator:Fl,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=n.eventSettings,a=i.throttleDelay,o=i.throttledEvents,l=o==="all"||(o==null?void 0:o.includes("mousemove"));Nr!==null&&(cancelAnimationFrame(Nr),Nr=null),ar!==null&&(typeof a!="number"||!l)&&(clearTimeout(ar),ar=null),Xo=Gc(r);var u=()=>{var c=t.getState(),s=si(c,c.tooltip.settings.shared);if(!Xo){Nr=null,ar=null;return}if(s==="axis"){var f=Vc(c,Xo);(f==null?void 0:f.activeIndex)!=null?t.dispatch(ky({activeIndex:f.activeIndex,activeDataKey:void 0,activeCoordinate:f.activeCoordinate})):t.dispatch(Cy())}Nr=null,ar=null};if(!l){u();return}a==="raf"?Nr=requestAnimationFrame(u):typeof a=="number"&&ar===null&&(ar=setTimeout(u,a))}});function LN(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 Tv={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},d0=Le({name:"rootProps",initialState:Tv,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:Tv.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}}}),RN=d0.reducer,zN=d0.actions.updateOptions,BN=null,WN={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},v0=Le({name:"polarOptions",initialState:BN,reducers:WN}),FN=v0.actions.updatePolarOptions,KN=v0.reducer,h0=Je("keyDown"),p0=Je("focus"),m0=Je("blur"),So=Yn(),Lr=null,or=null,Ei=null;So.startListening({actionCreator:h0,effect:(e,t)=>{Ei=e.payload,Lr!==null&&(cancelAnimationFrame(Lr),Lr=null);var r=t.getState(),n=r.eventSettings,i=n.throttleDelay,a=n.throttledEvents,o=a==="all"||a.includes("keydown");or!==null&&(typeof i!="number"||!o)&&(clearTimeout(or),or=null);var l=()=>{try{var u=t.getState(),c=u.rootProps.accessibilityLayer!==!1;if(!c)return;var s=u.tooltip.keyboardInteraction,f=Ei;if(f!=="ArrowRight"&&f!=="ArrowLeft"&&f!=="Enter")return;var d=Cn(s,Pr(u),Zr(u),Qr(u)),h=d==null?-1:Number(d),p=!Number.isFinite(h)||h<0,m=Vt(u),y=Pr(u),g=si(u,u.tooltip.settings.shared);if(f==="Enter"){if(p)return;var x=ha(u,g,"hover",String(s.index));t.dispatch(va({active:!s.active,activeIndex:s.index,activeCoordinate:x}));return}var w=LI(u),A=w==="left-to-right"?1:-1,P=f==="ArrowRight"?1:-1,b;if(p){var S=Zr(u),I=Qr(u),C=P*A,k=B=>({active:!1,index:String(B),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(b=-1,C>0){for(var _=0;_<y.length;_++)if(Cn(k(_),y,S,I)!=null){b=_;break}}else for(var E=y.length-1;E>=0;E--)if(Cn(k(E),y,S,I)!=null){b=E;break}if(b<0)return}else{b=h+P*A;var L=(m==null?void 0:m.length)||y.length;if(L===0||b>=L||b<0)return}var T=ha(u,g,"hover",String(b));t.dispatch(va({active:!0,activeIndex:b.toString(),activeCoordinate:T}))}finally{Lr=null,or=null}};if(!o){l();return}i==="raf"?Lr=requestAnimationFrame(l):typeof i=="number"&&or===null&&(l(),Ei=null,or=setTimeout(()=>{Ei?l():(or=null,Lr=null)},i))}});So.startListening({actionCreator:p0,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var i=r.tooltip.keyboardInteraction;if(!i.active&&i.index==null){var a="0",o=si(r,r.tooltip.settings.shared),l=ha(r,o,"hover",String(a));t.dispatch(va({active:!0,activeIndex:a,activeCoordinate:l}))}}}});So.startListening({actionCreator:m0,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var i=r.tooltip.keyboardInteraction;i.active&&t.dispatch(va({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function y0(e){e.persist();var t=e.currentTarget;return new Proxy(e,{get:(r,n)=>{if(n==="currentTarget")return t;var i=Reflect.get(r,n);return typeof i=="function"?i.bind(r):i}})}var et=Je("externalEvent"),g0=Yn(),Ii=new Map,An=new Map,Zo=new Map;g0.startListening({actionCreator:et,effect:(e,t)=>{var r=e.payload,n=r.handler,i=r.reactEvent;if(n!=null){var a=i.type,o=y0(i);Zo.set(a,{handler:n,reactEvent:o});var l=Ii.get(a);l!==void 0&&(cancelAnimationFrame(l),Ii.delete(a));var u=t.getState(),c=u.eventSettings,s=c.throttleDelay,f=c.throttledEvents,d=f,h=d==="all"||(d==null?void 0:d.includes(a)),p=An.get(a);p!==void 0&&(typeof s!="number"||!h)&&(clearTimeout(p),An.delete(a));var m=()=>{var x=Zo.get(a);try{if(!x)return;var w=x.handler,A=x.reactEvent,P=t.getState(),b={activeCoordinate:RC(P),activeDataKey:Ky(P),activeIndex:Jr(P),activeLabel:Fy(P),activeTooltipIndex:Jr(P),isTooltipActive:zC(P)};w&&w(b,A)}finally{Ii.delete(a),An.delete(a),Zo.delete(a)}};if(!h){m();return}if(s==="raf"){var y=requestAnimationFrame(m);Ii.set(a,y)}else if(typeof s=="number"){if(!An.has(a)){m();var g=setTimeout(m,s);An.set(a,g)}}else m()}}});var UN=O([sn],e=>e.tooltipItemPayloads),HN=O([UN,(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 i=n.getPosition;if(i!=null)return i(t)}}}),b0=Je("touchMove"),x0=Yn(),lr=null,Gt=null,Dv=null,Pn=null;x0.startListening({actionCreator:b0,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){Pn=y0(r);var n=t.getState(),i=n.eventSettings,a=i.throttleDelay,o=i.throttledEvents,l=o==="all"||o.includes("touchmove");lr!==null&&(cancelAnimationFrame(lr),lr=null),Gt!==null&&(typeof a!="number"||!l)&&(clearTimeout(Gt),Gt=null),Dv=Array.from(r.touches).map(c=>Gc({clientX:c.clientX,clientY:c.clientY,currentTarget:r.currentTarget}));var u=()=>{if(Pn!=null){var c=t.getState(),s=si(c,c.tooltip.settings.shared);if(s==="axis"){var f,d=(f=Dv)===null||f===void 0?void 0:f[0];if(d==null){lr=null,Gt=null;return}var h=Vc(c,d);(h==null?void 0:h.activeIndex)!=null&&t.dispatch(ky({activeIndex:h.activeIndex,activeDataKey:void 0,activeCoordinate:h.activeCoordinate}))}else if(s==="item"){var p,m=Pn.touches[0];if(document.elementFromPoint==null||m==null)return;var y=document.elementFromPoint(m.clientX,m.clientY);if(!y||!y.getAttribute)return;var g=y.getAttribute(wp),x=(p=y.getAttribute(Ap))!==null&&p!==void 0?p:void 0,w=_r(c).find(b=>b.id===x);if(g==null||w==null||x==null)return;var A=w.dataKey,P=HN(c,g,x);t.dispatch(Iy({activeDataKey:A,activeIndex:g,activeCoordinate:P,activeGraphicalItemId:x}))}lr=null,Gt=null}};if(!l){u();return}a==="raf"?lr=requestAnimationFrame(u):typeof a=="number"&&Gt===null&&(u(),Pn=null,Gt=setTimeout(()=>{Pn?u():(Gt=null,lr=null)},a))}}});var qc={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},w0=Le({name:"eventSettings",initialState:qc,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=q(t.payload.throttledEvents))}}}),YN=w0.actions.setEventSettings,VN=w0.reducer,GN=Kh({brush:AD,cartesianAxis:hD,chartData:$k,errorBars:VM,eventSettings:VN,graphicalItems:mT,layout:mw,legend:hA,options:_k,polarAxis:xj,polarOptions:KN,referenceElements:ED,renderedTicks:QD,rootProps:RN,tooltip:qI,zIndex:bk}),qN=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Wx({reducer:GN,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([s0.middleware,f0.middleware,So.middleware,g0.middleware,x0.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(ip({type:"raf"}))},devTools:{serialize:{replacer:LN},name:"recharts-".concat(r)}})};function A0(e){var t=e.preloadedState,r=e.children,n=e.reduxStoreName,i=Re(),a=v.useRef(null);if(i)return r;a.current==null&&(a.current=qN(t,n));var o=tu;return v.createElement(NA,{context:o,store:a.current},r)}function XN(e){var t=e.layout,r=e.margin,n=re(),i=Re();return v.useEffect(()=>{i||(n(vw(t)),n(dw(r)))},[n,i,t,r]),null}var P0=v.memo(XN,Zn);function O0(e){var t=re();return v.useEffect(()=>{t(zN(e))},[t,e]),null}var ZN=e=>{var t=re();return v.useEffect(()=>{t(YN(e))},[t,e]),null},S0=v.memo(ZN,Zn);function Mv(e){var t=e.zIndex,r=e.isPanorama,n=v.useRef(null),i=re();return v.useLayoutEffect(()=>(n.current&&i(yk({zIndex:t,element:n.current,isPanorama:r})),()=>{i(gk({zIndex:t,isPanorama:r}))}),[i,t,r]),v.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function $v(e){var t=e.children,r=e.isPanorama,n=N(uk);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return v.createElement(v.Fragment,null,i.map(o=>v.createElement(Mv,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>v.createElement(Mv,{key:o,zIndex:o,isPanorama:r})))}var QN=["children"];function JN(e,t){if(e==null)return{};var r,n,i=eL(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 eL(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 Aa(){return Aa=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},Aa.apply(null,arguments)}var tL={width:"100%",height:"100%",display:"block"},rL=v.forwardRef((e,t)=>{var r=Cp(),n=kp(),i=$p();if(!kt(r)||!kt(n))return null;var a=e.children,o=e.otherAttributes,l=e.title,u=e.desc,c,s;return o!=null&&(typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?s=o.role:s=i?"application":void 0),v.createElement(Gv,Aa({},o,{title:l,desc:u,role:s,tabIndex:c,width:r,height:n,style:tL,ref:t}),a)}),nL=e=>{var t=e.children,r=N(Wa);if(!r)return null;var n=r.width,i=r.height,a=r.y,o=r.x;return v.createElement(Gv,{width:n,height:i,x:o,y:a},t)},Nv=v.forwardRef((e,t)=>{var r=e.children,n=JN(e,QN),i=Re();return i?v.createElement(nL,null,v.createElement($v,{isPanorama:!0},r)):v.createElement(rL,Aa({ref:t},n),v.createElement($v,{isPanorama:!1},r))});function iL(e,t){return uL(e)||lL(e,t)||oL(e,t)||aL()}function aL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
68
68
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oL(e,t){if(e){if(typeof e=="string")return Lv(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lv(e,t):void 0}}function Lv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(s){c=!0,i=s}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function uL(e){if(Array.isArray(e))return e}function cL(){var e=re(),t=v.useState(null),r=iL(t,2),n=r[0],i=r[1],a=N(jw);return v.useEffect(()=>{if(n!=null){var o=n.getBoundingClientRect(),l=o.width/n.offsetWidth;Y(l)&&l!==a&&e(pw(l))}},[n,e,a]),i}function Rv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rv(Object(r),!0).forEach(function(n){fL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fL(e,t,r){return(t=dL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dL(e){var t=vL(e,"string");return typeof t=="symbol"?t:t+""}function vL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jt.apply(null,arguments)}function Pa(e,t){return yL(e)||mL(e,t)||pL(e,t)||hL()}function hL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
69
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pL(e,t){if(e){if(typeof e=="string")return zv(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zv(e,t):void 0}}function zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(s){c=!0,i=s}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function yL(e){if(Array.isArray(e))return e}var gL=()=>(Uk(),null);function Oa(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var bL=v.forwardRef((e,t)=>{var r,n,i=v.useRef(null),a=v.useState({containerWidth:Oa((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Oa((n=e.style)===null||n===void 0?void 0:n.height)}),o=Pa(a,2),l=o[0],u=o[1],c=v.useCallback((f,d)=>{u(h=>{var p=Math.round(f),m=Math.round(d);return h.containerWidth===p&&h.containerHeight===m?h:{containerWidth:p,containerHeight:m}})},[]),s=v.useCallback(f=>{if(typeof t=="function"&&t(f),i.current!=null&&(i.current.disconnect(),i.current=null),f!=null&&typeof ResizeObserver<"u"){var d=f.getBoundingClientRect(),h=d.width,p=d.height;c(h,p);var m=g=>{var x=g[0];if(x!=null){var w=x.contentRect,A=w.width,P=w.height;c(A,P)}},y=new ResizeObserver(m);y.observe(f),i.current=y}},[t,c]);return v.useEffect(()=>()=>{var f=i.current;f!=null&&f.disconnect()},[c]),v.createElement(v.Fragment,null,v.createElement(Gn,{width:l.containerWidth,height:l.containerHeight}),v.createElement("div",Jt({ref:s},e)))}),xL=v.forwardRef((e,t)=>{var r=e.width,n=e.height,i=v.useState({containerWidth:Oa(r),containerHeight:Oa(n)}),a=Pa(i,2),o=a[0],l=a[1],u=v.useCallback((s,f)=>{l(d=>{var h=Math.round(s),p=Math.round(f);return d.containerWidth===h&&d.containerHeight===p?d:{containerWidth:h,containerHeight:p}})},[]),c=v.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null){var f=s.getBoundingClientRect(),d=f.width,h=f.height;u(d,h)}},[t,u]);return v.createElement(v.Fragment,null,v.createElement(Gn,{width:o.containerWidth,height:o.containerHeight}),v.createElement("div",Jt({ref:c},e)))}),wL=v.forwardRef((e,t)=>{var r=e.width,n=e.height;return v.createElement(v.Fragment,null,v.createElement(Gn,{width:r,height:n}),v.createElement("div",Jt({ref:t},e)))}),AL=v.forwardRef((e,t)=>{var r=e.width,n=e.height;return typeof r=="string"||typeof n=="string"?v.createElement(xL,Jt({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?v.createElement(wL,Jt({},e,{width:r,height:n,ref:t})):v.createElement(v.Fragment,null,v.createElement(Gn,{width:r,height:n}),v.createElement("div",Jt({ref:t},e)))});function PL(e){return e?bL:AL}var OL=v.forwardRef((e,t)=>{var r=e.children,n=e.className,i=e.height,a=e.onClick,o=e.onContextMenu,l=e.onDoubleClick,u=e.onMouseDown,c=e.onMouseEnter,s=e.onMouseLeave,f=e.onMouseMove,d=e.onMouseUp,h=e.onTouchEnd,p=e.onTouchMove,m=e.onTouchStart,y=e.style,g=e.width,x=e.responsive,w=e.dispatchTouchEvents,A=w===void 0?!0:w,P=v.useRef(null),b=re(),S=v.useState(null),I=Pa(S,2),C=I[0],k=I[1],_=v.useState(null),E=Pa(_,2),L=E[0],T=E[1],B=cL(),W=cu(),F=(W==null?void 0:W.width)>0?W.width:g,R=(W==null?void 0:W.height)>0?W.height:i,G=v.useCallback(z=>{B(z),typeof t=="function"&&t(z),k(z),T(z),z!=null&&(P.current=z)},[B,t,k,T]),U=v.useCallback(z=>{b(c0(z)),b(et({handler:a,reactEvent:z}))},[b,a]),we=v.useCallback(z=>{b(Fl(z)),b(et({handler:c,reactEvent:z}))},[b,c]),Ie=v.useCallback(z=>{b(Cy()),b(et({handler:s,reactEvent:z}))},[b,s]),de=v.useCallback(z=>{b(Fl(z)),b(et({handler:f,reactEvent:z}))},[b,f]),He=v.useCallback(()=>{b(p0())},[b]),Ye=v.useCallback(()=>{b(m0())},[b]),ct=v.useCallback(z=>{b(h0(z.key))},[b]),st=v.useCallback(z=>{b(et({handler:o,reactEvent:z}))},[b,o]),vn=v.useCallback(z=>{b(et({handler:l,reactEvent:z}))},[b,l]),M=v.useCallback(z=>{b(et({handler:u,reactEvent:z}))},[b,u]),H=v.useCallback(z=>{b(et({handler:d,reactEvent:z}))},[b,d]),K=v.useCallback(z=>{b(et({handler:m,reactEvent:z}))},[b,m]),j=v.useCallback(z=>{A&&b(b0(z)),b(et({handler:p,reactEvent:z}))},[b,A,p]),Te=v.useCallback(z=>{b(et({handler:h,reactEvent:z}))},[b,h]),ee=PL(x);return v.createElement(Qy.Provider,{value:C},v.createElement(J0.Provider,{value:L},v.createElement(ee,{width:F??(y==null?void 0:y.width),height:R??(y==null?void 0:y.height),className:Q("recharts-wrapper",n),style:sL({position:"relative",cursor:"default",width:F,height:R},y),onClick:U,onContextMenu:st,onDoubleClick:vn,onFocus:He,onBlur:Ye,onKeyDown:ct,onMouseDown:M,onMouseEnter:we,onMouseLeave:Ie,onMouseMove:de,onMouseUp:H,onTouchEnd:Te,onTouchMove:j,onTouchStart:K,ref:G},v.createElement(gL,null),r)))}),SL=["width","height","responsive","children","className","style","compact","title","desc"];function EL(e,t){if(e==null)return{};var r,n,i=IL(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 IL(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 E0=v.forwardRef((e,t)=>{var r=e.width,n=e.height,i=e.responsive,a=e.children,o=e.className,l=e.style,u=e.compact,c=e.title,s=e.desc,f=EL(e,SL),d=Ue(f);return u?v.createElement(v.Fragment,null,v.createElement(Gn,{width:r,height:n}),v.createElement(Nv,{otherAttributes:d,title:c,desc:s},a)):v.createElement(OL,{className:o,style:l,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},v.createElement(Nv,{otherAttributes:d,title:c,desc:s,ref:t},v.createElement(DD,null,a)))});function Kl(){return Kl=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},Kl.apply(null,arguments)}function Bv(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 CL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(r),!0).forEach(function(n){kL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kL(e,t,r){return(t=_L(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _L(e){var t=jL(e,"string");return typeof t=="symbol"?t:t+""}function jL(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 TL={top:5,right:5,bottom:5,left:5},DL=CL({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:TL,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},qc),I0=v.forwardRef(function(t,r){var n,i=je(t.categoricalChartProps,DL),a=t.chartName,o=t.defaultTooltipEventType,l=t.validateTooltipEventTypes,u=t.tooltipPayloadSearcher,c=t.categoricalChartProps,s={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:u,eventEmitter:void 0};return v.createElement(A0,{preloadedState:{options:s},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:a},v.createElement(Rg,{chartData:c.data}),v.createElement(P0,{layout:i.layout,margin:i.margin}),v.createElement(S0,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),v.createElement(O0,{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}),v.createElement(E0,Kl({},i,{ref:r})))});function ML(e){var t=re();return v.useEffect(()=>{t(FN(e))},[t,e]),null}var $L=["layout"];function Ul(){return Ul=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},Ul.apply(null,arguments)}function NL(e,t){if(e==null)return{};var r,n,i=LL(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 LL(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 Wv(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 RL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wv(Object(r),!0).forEach(function(n){zL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zL(e,t,r){return(t=BL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BL(e){var t=WL(e,"string");return typeof t=="symbol"?t:t+""}function WL(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 FL={top:5,right:5,bottom:5,left:5},C0=RL({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:FL,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},qc),KL=v.forwardRef(function(t,r){var n,i=je(t.categoricalChartProps,C0),a=i.layout,o=NL(i,$L),l=t.chartName,u=t.defaultTooltipEventType,c=t.validateTooltipEventTypes,s=t.tooltipPayloadSearcher,f={chartName:l,defaultTooltipEventType:u,validateTooltipEventTypes:c,tooltipPayloadSearcher:s,eventEmitter:void 0};return v.createElement(A0,{preloadedState:{options:f},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:l},v.createElement(Rg,{chartData:i.data}),v.createElement(P0,{layout:a,margin:i.margin}),v.createElement(S0,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),v.createElement(O0,{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}),v.createElement(ML,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),v.createElement(E0,Ul({},o,{ref:r})))});function Fv(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?Fv(Object(r),!0).forEach(function(n){UL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UL(e,t,r){return(t=HL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HL(e){var t=YL(e,"string");return typeof t=="symbol"?t:t+""}function YL(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 VL=["item"],GL=Kv(Kv({},C0),{},{layout:"centric",startAngle:0,endAngle:360}),tR=v.forwardRef((e,t)=>{var r=je(e,GL);return v.createElement(KL,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:VL,tooltipPayloadSearcher:Pc,categoricalChartProps:r,ref:t})}),qL=["axis"],rR=v.forwardRef((e,t)=>v.createElement(I0,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:qL,tooltipPayloadSearcher:Pc,categoricalChartProps:e,ref:t})),XL=["axis"],nR=v.forwardRef((e,t)=>v.createElement(I0,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:XL,tooltipPayloadSearcher:Pc,categoricalChartProps:e,ref:t}));export{lN as A,Sc as C,I$ as L,tR as P,JL as R,eR as T,AN as X,MN as Y,VT as a,nR as b,Q as c,$M as d,rR as e};
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pL(e,t){if(e){if(typeof e=="string")return zv(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zv(e,t):void 0}}function zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(s){c=!0,i=s}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function yL(e){if(Array.isArray(e))return e}var gL=()=>(Uk(),null);function Oa(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var bL=v.forwardRef((e,t)=>{var r,n,i=v.useRef(null),a=v.useState({containerWidth:Oa((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Oa((n=e.style)===null||n===void 0?void 0:n.height)}),o=Pa(a,2),l=o[0],u=o[1],c=v.useCallback((f,d)=>{u(h=>{var p=Math.round(f),m=Math.round(d);return h.containerWidth===p&&h.containerHeight===m?h:{containerWidth:p,containerHeight:m}})},[]),s=v.useCallback(f=>{if(typeof t=="function"&&t(f),i.current!=null&&(i.current.disconnect(),i.current=null),f!=null&&typeof ResizeObserver<"u"){var d=f.getBoundingClientRect(),h=d.width,p=d.height;c(h,p);var m=g=>{var x=g[0];if(x!=null){var w=x.contentRect,A=w.width,P=w.height;c(A,P)}},y=new ResizeObserver(m);y.observe(f),i.current=y}},[t,c]);return v.useEffect(()=>()=>{var f=i.current;f!=null&&f.disconnect()},[c]),v.createElement(v.Fragment,null,v.createElement(Gn,{width:l.containerWidth,height:l.containerHeight}),v.createElement("div",Jt({ref:s},e)))}),xL=v.forwardRef((e,t)=>{var r=e.width,n=e.height,i=v.useState({containerWidth:Oa(r),containerHeight:Oa(n)}),a=Pa(i,2),o=a[0],l=a[1],u=v.useCallback((s,f)=>{l(d=>{var h=Math.round(s),p=Math.round(f);return d.containerWidth===h&&d.containerHeight===p?d:{containerWidth:h,containerHeight:p}})},[]),c=v.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null){var f=s.getBoundingClientRect(),d=f.width,h=f.height;u(d,h)}},[t,u]);return v.createElement(v.Fragment,null,v.createElement(Gn,{width:o.containerWidth,height:o.containerHeight}),v.createElement("div",Jt({ref:c},e)))}),wL=v.forwardRef((e,t)=>{var r=e.width,n=e.height;return v.createElement(v.Fragment,null,v.createElement(Gn,{width:r,height:n}),v.createElement("div",Jt({ref:t},e)))}),AL=v.forwardRef((e,t)=>{var r=e.width,n=e.height;return typeof r=="string"||typeof n=="string"?v.createElement(xL,Jt({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?v.createElement(wL,Jt({},e,{width:r,height:n,ref:t})):v.createElement(v.Fragment,null,v.createElement(Gn,{width:r,height:n}),v.createElement("div",Jt({ref:t},e)))});function PL(e){return e?bL:AL}var OL=v.forwardRef((e,t)=>{var r=e.children,n=e.className,i=e.height,a=e.onClick,o=e.onContextMenu,l=e.onDoubleClick,u=e.onMouseDown,c=e.onMouseEnter,s=e.onMouseLeave,f=e.onMouseMove,d=e.onMouseUp,h=e.onTouchEnd,p=e.onTouchMove,m=e.onTouchStart,y=e.style,g=e.width,x=e.responsive,w=e.dispatchTouchEvents,A=w===void 0?!0:w,P=v.useRef(null),b=re(),S=v.useState(null),I=Pa(S,2),C=I[0],k=I[1],_=v.useState(null),E=Pa(_,2),L=E[0],T=E[1],B=cL(),W=cu(),F=(W==null?void 0:W.width)>0?W.width:g,R=(W==null?void 0:W.height)>0?W.height:i,G=v.useCallback(z=>{B(z),typeof t=="function"&&t(z),k(z),T(z),z!=null&&(P.current=z)},[B,t,k,T]),U=v.useCallback(z=>{b(c0(z)),b(et({handler:a,reactEvent:z}))},[b,a]),we=v.useCallback(z=>{b(Fl(z)),b(et({handler:c,reactEvent:z}))},[b,c]),Ie=v.useCallback(z=>{b(Cy()),b(et({handler:s,reactEvent:z}))},[b,s]),de=v.useCallback(z=>{b(Fl(z)),b(et({handler:f,reactEvent:z}))},[b,f]),He=v.useCallback(()=>{b(p0())},[b]),Ye=v.useCallback(()=>{b(m0())},[b]),ct=v.useCallback(z=>{b(h0(z.key))},[b]),st=v.useCallback(z=>{b(et({handler:o,reactEvent:z}))},[b,o]),vn=v.useCallback(z=>{b(et({handler:l,reactEvent:z}))},[b,l]),M=v.useCallback(z=>{b(et({handler:u,reactEvent:z}))},[b,u]),H=v.useCallback(z=>{b(et({handler:d,reactEvent:z}))},[b,d]),K=v.useCallback(z=>{b(et({handler:m,reactEvent:z}))},[b,m]),j=v.useCallback(z=>{A&&b(b0(z)),b(et({handler:p,reactEvent:z}))},[b,A,p]),Te=v.useCallback(z=>{b(et({handler:h,reactEvent:z}))},[b,h]),ee=PL(x);return v.createElement(Qy.Provider,{value:C},v.createElement(J0.Provider,{value:L},v.createElement(ee,{width:F??(y==null?void 0:y.width),height:R??(y==null?void 0:y.height),className:Q("recharts-wrapper",n),style:sL({position:"relative",cursor:"default",width:F,height:R},y),onClick:U,onContextMenu:st,onDoubleClick:vn,onFocus:He,onBlur:Ye,onKeyDown:ct,onMouseDown:M,onMouseEnter:we,onMouseLeave:Ie,onMouseMove:de,onMouseUp:H,onTouchEnd:Te,onTouchMove:j,onTouchStart:K,ref:G},v.createElement(gL,null),r)))}),SL=["width","height","responsive","children","className","style","compact","title","desc"];function EL(e,t){if(e==null)return{};var r,n,i=IL(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 IL(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 E0=v.forwardRef((e,t)=>{var r=e.width,n=e.height,i=e.responsive,a=e.children,o=e.className,l=e.style,u=e.compact,c=e.title,s=e.desc,f=EL(e,SL),d=Ue(f);return u?v.createElement(v.Fragment,null,v.createElement(Gn,{width:r,height:n}),v.createElement(Nv,{otherAttributes:d,title:c,desc:s},a)):v.createElement(OL,{className:o,style:l,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},v.createElement(Nv,{otherAttributes:d,title:c,desc:s,ref:t},v.createElement(DD,null,a)))});function Kl(){return Kl=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},Kl.apply(null,arguments)}function Bv(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 CL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(r),!0).forEach(function(n){kL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kL(e,t,r){return(t=_L(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _L(e){var t=jL(e,"string");return typeof t=="symbol"?t:t+""}function jL(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 TL={top:5,right:5,bottom:5,left:5},DL=CL({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:TL,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},qc),I0=v.forwardRef(function(t,r){var n,i=je(t.categoricalChartProps,DL),a=t.chartName,o=t.defaultTooltipEventType,l=t.validateTooltipEventTypes,u=t.tooltipPayloadSearcher,c=t.categoricalChartProps,s={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:u,eventEmitter:void 0};return v.createElement(A0,{preloadedState:{options:s},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:a},v.createElement(Rg,{chartData:c.data}),v.createElement(P0,{layout:i.layout,margin:i.margin}),v.createElement(S0,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),v.createElement(O0,{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}),v.createElement(E0,Kl({},i,{ref:r})))});function ML(e){var t=re();return v.useEffect(()=>{t(FN(e))},[t,e]),null}var $L=["layout"];function Ul(){return Ul=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},Ul.apply(null,arguments)}function NL(e,t){if(e==null)return{};var r,n,i=LL(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 LL(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 Wv(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 RL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wv(Object(r),!0).forEach(function(n){zL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zL(e,t,r){return(t=BL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BL(e){var t=WL(e,"string");return typeof t=="symbol"?t:t+""}function WL(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 FL={top:5,right:5,bottom:5,left:5},C0=RL({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:FL,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},qc),KL=v.forwardRef(function(t,r){var n,i=je(t.categoricalChartProps,C0),a=i.layout,o=NL(i,$L),l=t.chartName,u=t.defaultTooltipEventType,c=t.validateTooltipEventTypes,s=t.tooltipPayloadSearcher,f={chartName:l,defaultTooltipEventType:u,validateTooltipEventTypes:c,tooltipPayloadSearcher:s,eventEmitter:void 0};return v.createElement(A0,{preloadedState:{options:f},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:l},v.createElement(Rg,{chartData:i.data}),v.createElement(P0,{layout:a,margin:i.margin}),v.createElement(S0,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),v.createElement(O0,{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}),v.createElement(ML,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),v.createElement(E0,Ul({},o,{ref:r})))});function Fv(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?Fv(Object(r),!0).forEach(function(n){UL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UL(e,t,r){return(t=HL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HL(e){var t=YL(e,"string");return typeof t=="symbol"?t:t+""}function YL(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 VL=["item"],GL=Kv(Kv({},C0),{},{layout:"centric",startAngle:0,endAngle:360}),tR=v.forwardRef((e,t)=>{var r=je(e,GL);return v.createElement(KL,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:VL,tooltipPayloadSearcher:Pc,categoricalChartProps:r,ref:t})}),qL=["axis"],rR=v.forwardRef((e,t)=>v.createElement(I0,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:qL,tooltipPayloadSearcher:Pc,categoricalChartProps:e,ref:t})),XL=["axis"],nR=v.forwardRef((e,t)=>v.createElement(I0,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:XL,tooltipPayloadSearcher:Pc,categoricalChartProps:e,ref:t}));export{rR as A,$M as C,I$ as L,tR as P,JL as R,eR as T,AN as X,MN as Y,lN as a,VT as b,Q as c,Sc as d,nR as e};
|