import { i as __exportAll, n as __commonJSMin, o as __toESM, t as require_react } from "./react-B9yD8JC6.js"; import { t as require_react_dom } from "./react-dom.js"; import { clsx } from "./clsx.js"; import { t as require_shim } from "./shim-Di0eL7Xt.js"; //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/excludeEventProps.js var import_react = /* @__PURE__ */ __toESM(require_react()); var EventKeys = [ "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 isEventKey(key) { if (typeof key !== "string") return false; return EventKeys.includes(key); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/svgPropertiesNoEvents.js var SVGElementPropKeySet = new Set([ "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" ]); function isSvgElementPropKey(key) { if (typeof key !== "string") return false; return SVGElementPropKeySet.has(key); } /** * Checks if the property is a data attribute. * @param key The property key. * @returns True if the key starts with 'data-', false otherwise. */ function isDataAttribute(key) { return typeof key === "string" && key.startsWith("data-"); } /** * Filters an object to only include SVG properties. Removes all event handlers too. * @param obj - The object to filter * @returns A new object containing only valid SVG properties, excluding event handlers. */ function svgPropertiesNoEvents(obj) { if (typeof obj !== "object" || obj === null) return {}; var result = {}; for (var key in obj) if (Object.prototype.hasOwnProperty.call(obj, key)) { if (isSvgElementPropKey(key) || isDataAttribute(key)) result[key] = obj[key]; } return result; } /** * Function to filter SVG properties from various input types. * The input types can be: * - A record of string keys to any values, in which case it returns a record of only SVG properties * - A React element, in which case it returns the props of the element filtered to only SVG properties * - Anything else, in which case it returns null * * This function has a wide-open return type, because it will read and filter the props of an arbitrary React element. * This can be SVG, HTML, whatnot, with arbitrary values, so we can't type it more specifically. * * If you wish to have a type-safe version, use svgPropertiesNoEvents directly with a typed object. * * @param input - The input to filter, which can be a record, a React element, or other types. * @returns A record of SVG properties if the input is a record or React element, otherwise null. */ function svgPropertiesNoEventsFromUnknown(input) { if (input == null) return null; if (/* @__PURE__ */ (0, import_react.isValidElement)(input) && typeof input.props === "object" && input.props !== null) { var p = input.props; return svgPropertiesNoEvents(p); } if (typeof input === "object" && !Array.isArray(input)) return svgPropertiesNoEvents(input); return null; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/svgPropertiesAndEvents.js /** * Filters an object to only include SVG properties, data attributes, and event handlers. * @param obj - The object to filter. * @returns A new object containing only valid SVG properties, data attributes, and event handlers. */ function svgPropertiesAndEvents(obj) { var result = {}; for (var key in obj) if (Object.prototype.hasOwnProperty.call(obj, key)) { if (isSvgElementPropKey(key) || isDataAttribute(key) || isEventKey(key)) result[key] = obj[key]; } return result; } /** * Function to filter SVG properties from various input types. * The input types can be: * - A record of string keys to any values, in which case it returns a record of only SVG properties * - A React element, in which case it returns the props of the element filtered to only SVG properties * - Anything else, in which case it returns null * * This function has a wide-open return type, because it will read and filter the props of an arbitrary React element. * This can be SVG, HTML, whatnot, with arbitrary values, so we can't type it more specifically. * * If you wish to have a type-safe version, use svgPropertiesNoEvents directly with a typed object. * * @param input - The input to filter, which can be a record, a React element, or other types. * @returns A record of SVG properties if the input is a record or React element, otherwise null. */ function svgPropertiesAndEventsFromUnknown(input) { if (input == null) return null; if (/* @__PURE__ */ (0, import_react.isValidElement)(input)) return svgPropertiesAndEvents(input.props); if (typeof input === "object" && !Array.isArray(input)) return svgPropertiesAndEvents(input); return null; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/container/Surface.js var _excluded$38 = [ "children", "width", "height", "viewBox", "className", "style", "title", "desc" ]; function _extends$52() { return _extends$52 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$52.apply(null, arguments); } function _objectWithoutProperties$38(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$38(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$38(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } /** * Renders an SVG element. * * All charts already include a Surface component, so you would not normally use this directly. * * @link https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg */ var Surface = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => { var { children, width, height, viewBox, className, style, title, desc } = props, others = _objectWithoutProperties$38(props, _excluded$38); var svgView = viewBox || { width, height, x: 0, y: 0 }; var layerClass = clsx("recharts-surface", className); return /* @__PURE__ */ import_react.createElement("svg", _extends$52({}, svgPropertiesAndEvents(others), { className: layerClass, width, height, style, viewBox: "".concat(svgView.x, " ").concat(svgView.y, " ").concat(svgView.width, " ").concat(svgView.height), ref }), /* @__PURE__ */ import_react.createElement("title", null, title), /* @__PURE__ */ import_react.createElement("desc", null, desc), children); }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/container/Layer.js var _excluded$37 = ["children", "className"]; function _extends$51() { return _extends$51 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$51.apply(null, arguments); } function _objectWithoutProperties$37(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$37(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$37(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } /** * Creates an SVG group element to group other SVG elements. * * Useful if you want to apply transformations or styles to a set of elements * without affecting other elements in the SVG. * * @link https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/g */ var Layer = /* @__PURE__ */ import_react.forwardRef((props, ref) => { var { children, className } = props, others = _objectWithoutProperties$37(props, _excluded$37); var layerClass = clsx("recharts-layer", className); return /* @__PURE__ */ import_react.createElement("g", _extends$51({ className: layerClass }, svgPropertiesAndEvents(others), { ref }), children); }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/context/legendPortalContext.js var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom()); var LegendPortalContext = /* @__PURE__ */ (0, import_react.createContext)(null); var useLegendPortal = () => (0, import_react.useContext)(LegendPortalContext); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/constant.js function constant_default$1(x) { return function constant() { return x; }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/math.js var cos = Math.cos; var sin = Math.sin; var sqrt$1 = Math.sqrt; var pi$1 = Math.PI; pi$1 / 2; var tau$1 = 2 * pi$1; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-path-npm-3.1.0-8d69e9e4e5-10c0.zip/node_modules/d3-path/src/path.js var pi = Math.PI, tau = 2 * pi, epsilon = 1e-6, tauEpsilon = tau - epsilon; function append(strings) { this._ += strings[0]; for (let i = 1, n = strings.length; i < n; ++i) this._ += arguments[i] + strings[i]; } function appendRound(digits) { let d = Math.floor(digits); if (!(d >= 0)) throw new Error(`invalid digits: ${digits}`); if (d > 15) return append; const k = 10 ** d; return function(strings) { this._ += strings[0]; for (let i = 1, n = strings.length; i < n; ++i) this._ += Math.round(arguments[i] * k) / k + strings[i]; }; } var Path = class { constructor(digits) { this._x0 = this._y0 = this._x1 = this._y1 = null; this._ = ""; this._append = digits == null ? append : appendRound(digits); } moveTo(x, y) { this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}`; } closePath() { if (this._x1 !== null) { this._x1 = this._x0, this._y1 = this._y0; this._append`Z`; } } lineTo(x, y) { this._append`L${this._x1 = +x},${this._y1 = +y}`; } quadraticCurveTo(x1, y1, x, y) { this._append`Q${+x1},${+y1},${this._x1 = +x},${this._y1 = +y}`; } bezierCurveTo(x1, y1, x2, y2, x, y) { this._append`C${+x1},${+y1},${+x2},${+y2},${this._x1 = +x},${this._y1 = +y}`; } arcTo(x1, y1, x2, y2, r) { x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r; if (r < 0) throw new Error(`negative radius: ${r}`); let x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01; if (this._x1 === null) this._append`M${this._x1 = x1},${this._y1 = y1}`; else if (!(l01_2 > epsilon)); else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) this._append`L${this._x1 = x1},${this._y1 = y1}`; else { let x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21; if (Math.abs(t01 - 1) > epsilon) this._append`L${x1 + t01 * x01},${y1 + t01 * y01}`; this._append`A${r},${r},0,0,${+(y01 * x20 > x01 * y20)},${this._x1 = x1 + t21 * x21},${this._y1 = y1 + t21 * y21}`; } } arc(x, y, r, a0, a1, ccw) { x = +x, y = +y, r = +r, ccw = !!ccw; if (r < 0) throw new Error(`negative radius: ${r}`); let dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0; if (this._x1 === null) this._append`M${x0},${y0}`; else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) this._append`L${x0},${y0}`; if (!r) return; if (da < 0) da = da % tau + tau; if (da > tauEpsilon) this._append`A${r},${r},0,1,${cw},${x - dx},${y - dy}A${r},${r},0,1,${cw},${this._x1 = x0},${this._y1 = y0}`; else if (da > epsilon) this._append`A${r},${r},0,${+(da >= pi)},${cw},${this._x1 = x + r * Math.cos(a1)},${this._y1 = y + r * Math.sin(a1)}`; } rect(x, y, w, h) { this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}h${w = +w}v${+h}h${-w}Z`; } toString() { return this._; } }; function path() { return new Path(); } path.prototype = Path.prototype; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/path.js function withPath(shape) { let digits = 3; shape.digits = function(_) { if (!arguments.length) return digits; if (_ == null) digits = null; else { const d = Math.floor(_); if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`); digits = d; } return shape; }; return () => new Path(digits); } Array.prototype.slice; function array_default(x) { return typeof x === "object" && "length" in x ? x : Array.from(x); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/linear.js function Linear(context) { this._context = context; } Linear.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._point = 0; }, lineEnd: function() { if (this._line || this._line !== 0 && this._point === 1) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; default: this._context.lineTo(x, y); break; } } }; function linear_default(context) { return new Linear(context); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/point.js function x(p) { return p[0]; } function y(p) { return p[1]; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/line.js function line_default(x$1, y$1) { var defined = constant_default$1(true), context = null, curve = linear_default, output = null, path = withPath(line); x$1 = typeof x$1 === "function" ? x$1 : x$1 === void 0 ? x : constant_default$1(x$1); y$1 = typeof y$1 === "function" ? y$1 : y$1 === void 0 ? y : constant_default$1(y$1); function line(data) { var i, n = (data = array_default(data)).length, d, defined0 = false, buffer; if (context == null) output = curve(buffer = path()); for (i = 0; i <= n; ++i) { if (!(i < n && defined(d = data[i], i, data)) === defined0) if (defined0 = !defined0) output.lineStart(); else output.lineEnd(); if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data)); } if (buffer) return output = null, buffer + "" || null; } line.x = function(_) { return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant_default$1(+_), line) : x$1; }; line.y = function(_) { return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant_default$1(+_), line) : y$1; }; line.defined = function(_) { return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default$1(!!_), line) : defined; }; line.curve = function(_) { return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve; }; line.context = function(_) { return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context; }; return line; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/area.js function area_default(x0, y0, y1) { var x1 = null, defined = constant_default$1(true), context = null, curve = linear_default, output = null, path = withPath(area); x0 = typeof x0 === "function" ? x0 : x0 === void 0 ? x : constant_default$1(+x0); y0 = typeof y0 === "function" ? y0 : y0 === void 0 ? constant_default$1(0) : constant_default$1(+y0); y1 = typeof y1 === "function" ? y1 : y1 === void 0 ? y : constant_default$1(+y1); function area(data) { var i, j, k, n = (data = array_default(data)).length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n); if (context == null) output = curve(buffer = path()); for (i = 0; i <= n; ++i) { if (!(i < n && defined(d = data[i], i, data)) === defined0) if (defined0 = !defined0) { j = i; output.areaStart(); output.lineStart(); } else { output.lineEnd(); output.lineStart(); for (k = i - 1; k >= j; --k) output.point(x0z[k], y0z[k]); output.lineEnd(); output.areaEnd(); } if (defined0) { x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data); output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]); } } if (buffer) return output = null, buffer + "" || null; } function arealine() { return line_default().defined(defined).curve(curve).context(context); } area.x = function(_) { return arguments.length ? (x0 = typeof _ === "function" ? _ : constant_default$1(+_), x1 = null, area) : x0; }; area.x0 = function(_) { return arguments.length ? (x0 = typeof _ === "function" ? _ : constant_default$1(+_), area) : x0; }; area.x1 = function(_) { return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant_default$1(+_), area) : x1; }; area.y = function(_) { return arguments.length ? (y0 = typeof _ === "function" ? _ : constant_default$1(+_), y1 = null, area) : y0; }; area.y0 = function(_) { return arguments.length ? (y0 = typeof _ === "function" ? _ : constant_default$1(+_), area) : y0; }; area.y1 = function(_) { return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant_default$1(+_), area) : y1; }; area.lineX0 = area.lineY0 = function() { return arealine().x(x0).y(y0); }; area.lineY1 = function() { return arealine().x(x0).y(y1); }; area.lineX1 = function() { return arealine().x(x1).y(y0); }; area.defined = function(_) { return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default$1(!!_), area) : defined; }; area.curve = function(_) { return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve; }; area.context = function(_) { return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context; }; return area; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/bump.js var Bump = class { constructor(context, x) { this._context = context; this._x = x; } areaStart() { this._line = 0; } areaEnd() { this._line = NaN; } lineStart() { this._point = 0; } lineEnd() { if (this._line || this._line !== 0 && this._point === 1) this._context.closePath(); this._line = 1 - this._line; } point(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; if (this._line) this._context.lineTo(x, y); else this._context.moveTo(x, y); break; case 1: this._point = 2; default: if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y); else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y); break; } this._x0 = x, this._y0 = y; } }; function bumpX(context) { return new Bump(context, true); } function bumpY(context) { return new Bump(context, false); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/symbol/circle.js var circle_default = { draw(context, size) { const r = sqrt$1(size / pi$1); context.moveTo(r, 0); context.arc(0, 0, r, 0, tau$1); } }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/symbol/cross.js var cross_default = { draw(context, size) { const r = sqrt$1(size / 5) / 2; context.moveTo(-3 * r, -r); context.lineTo(-r, -r); context.lineTo(-r, -3 * r); context.lineTo(r, -3 * r); context.lineTo(r, -r); context.lineTo(3 * r, -r); context.lineTo(3 * r, r); context.lineTo(r, r); context.lineTo(r, 3 * r); context.lineTo(-r, 3 * r); context.lineTo(-r, r); context.lineTo(-3 * r, r); context.closePath(); } }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/symbol/diamond.js var tan30 = sqrt$1(1 / 3); var tan30_2 = tan30 * 2; var diamond_default = { draw(context, size) { const y = sqrt$1(size / tan30_2); const x = y * tan30; context.moveTo(0, -y); context.lineTo(x, 0); context.lineTo(0, y); context.lineTo(-x, 0); context.closePath(); } }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/symbol/square.js var square_default = { draw(context, size) { const w = sqrt$1(size); const x = -w / 2; context.rect(x, x, w, w); } }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/symbol/star.js var ka = .8908130915292852; var kr = sin(pi$1 / 10) / sin(7 * pi$1 / 10); var kx = sin(tau$1 / 10) * kr; var ky = -cos(tau$1 / 10) * kr; var star_default = { draw(context, size) { const r = sqrt$1(size * ka); const x = kx * r; const y = ky * r; context.moveTo(0, -r); context.lineTo(x, y); for (let i = 1; i < 5; ++i) { const a = tau$1 * i / 5; const c = cos(a); const s = sin(a); context.lineTo(s * r, -c * r); context.lineTo(c * x - s * y, s * x + c * y); } context.closePath(); } }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/symbol/triangle.js var sqrt3 = sqrt$1(3); var triangle_default = { draw(context, size) { const y = -sqrt$1(size / (sqrt3 * 3)); context.moveTo(0, y * 2); context.lineTo(-sqrt3 * y, -y); context.lineTo(sqrt3 * y, -y); context.closePath(); } }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/symbol/wye.js var c = -.5; var s = sqrt$1(3) / 2; var k = 1 / sqrt$1(12); var a = (k / 2 + 1) * 3; var wye_default = { draw(context, size) { const r = sqrt$1(size / a); const x0 = r / 2, y0 = r * k; const x1 = x0, y1 = r * k + r; const x2 = -x1, y2 = y1; context.moveTo(x0, y0); context.lineTo(x1, y1); context.lineTo(x2, y2); context.lineTo(c * x0 - s * y0, s * x0 + c * y0); context.lineTo(c * x1 - s * y1, s * x1 + c * y1); context.lineTo(c * x2 - s * y2, s * x2 + c * y2); context.lineTo(c * x0 + s * y0, c * y0 - s * x0); context.lineTo(c * x1 + s * y1, c * y1 - s * x1); context.lineTo(c * x2 + s * y2, c * y2 - s * x2); context.closePath(); } }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/symbol.js function Symbol$1(type, size) { let context = null, path = withPath(symbol); type = typeof type === "function" ? type : constant_default$1(type || circle_default); size = typeof size === "function" ? size : constant_default$1(size === void 0 ? 64 : +size); function symbol() { let buffer; if (!context) context = buffer = path(); type.apply(this, arguments).draw(context, +size.apply(this, arguments)); if (buffer) return context = null, buffer + "" || null; } symbol.type = function(_) { return arguments.length ? (type = typeof _ === "function" ? _ : constant_default$1(_), symbol) : type; }; symbol.size = function(_) { return arguments.length ? (size = typeof _ === "function" ? _ : constant_default$1(+_), symbol) : size; }; symbol.context = function(_) { return arguments.length ? (context = _ == null ? null : _, symbol) : context; }; return symbol; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/noop.js function noop_default() {} //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/basis.js function point$2(that, x, y) { that._context.bezierCurveTo((2 * that._x0 + that._x1) / 3, (2 * that._y0 + that._y1) / 3, (that._x0 + 2 * that._x1) / 3, (that._y0 + 2 * that._y1) / 3, (that._x0 + 4 * that._x1 + x) / 6, (that._y0 + 4 * that._y1 + y) / 6); } function Basis(context) { this._context = context; } Basis.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: point$2(this, this._x1, this._y1); case 2: this._context.lineTo(this._x1, this._y1); break; } if (this._line || this._line !== 0 && this._point === 1) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 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: point$2(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; function basis_default$1(context) { return new Basis(context); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/basisClosed.js function BasisClosed(context) { this._context = context; } BasisClosed.prototype = { areaStart: noop_default, areaEnd: noop_default, 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(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._x2 = x, this._y2 = y; break; case 1: this._point = 2; this._x3 = x, this._y3 = y; break; case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break; default: point$2(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; function basisClosed_default$1(context) { return new BasisClosed(context); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/basisOpen.js function BasisOpen(context) { this._context = context; } BasisOpen.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() { if (this._line || this._line !== 0 && this._point === 3) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break; case 3: this._point = 4; default: point$2(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; function basisOpen_default(context) { return new BasisOpen(context); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/linearClosed.js function LinearClosed(context) { this._context = context; } LinearClosed.prototype = { areaStart: noop_default, areaEnd: noop_default, lineStart: function() { this._point = 0; }, lineEnd: function() { if (this._point) this._context.closePath(); }, point: function(x, y) { x = +x, y = +y; if (this._point) this._context.lineTo(x, y); else this._point = 1, this._context.moveTo(x, y); } }; function linearClosed_default(context) { return new LinearClosed(context); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/monotone.js function sign(x) { return x < 0 ? -1 : 1; } function slope3(that, x2, y2) { var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1); return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), .5 * Math.abs(p)) || 0; } function slope2(that, t) { var h = that._x1 - that._x0; return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t; } function point$1(that, t0, t1) { var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3; that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1); } function MonotoneX(context) { this._context = context; } MonotoneX.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: point$1(this, this._t0, slope2(this, this._t0)); break; } if (this._line || this._line !== 0 && this._point === 1) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { var t1 = NaN; x = +x, y = +y; if (x === this._x1 && y === this._y1) return; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; point$1(this, slope2(this, t1 = slope3(this, x, y)), t1); break; default: point$1(this, this._t0, t1 = slope3(this, x, y)); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; this._t0 = t1; } }; function MonotoneY(context) { this._context = new ReflectContext(context); } (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) { MonotoneX.prototype.point.call(this, y, x); }; function ReflectContext(context) { this._context = context; } ReflectContext.prototype = { moveTo: function(x, y) { this._context.moveTo(y, x); }, closePath: function() { this._context.closePath(); }, lineTo: function(x, y) { this._context.lineTo(y, x); }, bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); } }; function monotoneX(context) { return new MonotoneX(context); } function monotoneY(context) { return new MonotoneY(context); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/natural.js function Natural(context) { this._context = context; } Natural.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = []; this._y = []; }, lineEnd: function() { var x = this._x, y = this._y, n = x.length; if (n) { this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]); if (n === 2) this._context.lineTo(x[1], y[1]); else { var px = controlPoints(x), py = controlPoints(y); for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]); } } if (this._line || this._line !== 0 && n === 1) this._context.closePath(); this._line = 1 - this._line; this._x = this._y = null; }, point: function(x, y) { this._x.push(+x); this._y.push(+y); } }; function controlPoints(x) { var i, n = x.length - 1, m, a = new Array(n), b = new Array(n), r = new Array(n); a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1]; for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1]; a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n]; for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1]; a[n - 1] = r[n - 1] / b[n - 1]; for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i]; b[n - 1] = (x[n] + a[n - 1]) / 2; for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1]; return [a, b]; } function natural_default(context) { return new Natural(context); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/curve/step.js function Step(context, t) { this._context = context; this._t = t; } Step.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = this._y = NaN; this._point = 0; }, lineEnd: function() { if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y); if (this._line || this._line !== 0 && this._point === 1) this._context.closePath(); if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; default: if (this._t <= 0) { this._context.lineTo(this._x, y); this._context.lineTo(x, y); } else { var x1 = this._x * (1 - this._t) + x * this._t; this._context.lineTo(x1, this._y); this._context.lineTo(x1, y); } break; } this._x = x, this._y = y; } }; function step_default(context) { return new Step(context, .5); } function stepBefore(context) { return new Step(context, 0); } function stepAfter(context) { return new Step(context, 1); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/offset/none.js function none_default$1(series, order) { if (!((n = series.length) > 1)) return; for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) { s0 = s1, s1 = series[order[i]]; for (j = 0; j < m; ++j) s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1]; } } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/order/none.js function none_default(series) { var n = series.length, o = new Array(n); while (--n >= 0) o[n] = n; return o; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/stack.js function stackValue(d, key) { return d[key]; } function stackSeries(key) { const series = []; series.key = key; return series; } function stack_default() { var keys = constant_default$1([]), order = none_default, offset = none_default$1, value = stackValue; function stack(data) { var sz = Array.from(keys.apply(this, arguments), stackSeries), i, n = sz.length, j = -1, oz; for (const d of data) for (i = 0, ++j; i < n; ++i) (sz[i][j] = [0, +value(d, sz[i].key, j, data)]).data = d; for (i = 0, oz = array_default(order(sz)); i < n; ++i) sz[oz[i]].index = i; offset(sz, oz); return sz; } stack.keys = function(_) { return arguments.length ? (keys = typeof _ === "function" ? _ : constant_default$1(Array.from(_)), stack) : keys; }; stack.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : constant_default$1(+_), stack) : value; }; stack.order = function(_) { return arguments.length ? (order = _ == null ? none_default : typeof _ === "function" ? _ : constant_default$1(Array.from(_)), stack) : order; }; stack.offset = function(_) { return arguments.length ? (offset = _ == null ? none_default$1 : _, stack) : offset; }; return stack; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/offset/expand.js function expand_default(series, order) { if (!((n = series.length) > 0)) return; for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) { for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0; if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y; } none_default$1(series, order); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/offset/silhouette.js function silhouette_default(series, order) { if (!((n = series.length) > 0)) return; for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) { for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0; s0[j][1] += s0[j][0] = -y / 2; } none_default$1(series, order); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-shape-npm-3.2.0-0beb7d8b02-10c0.zip/node_modules/d3-shape/src/offset/wiggle.js function wiggle_default(series, order) { if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return; for (var y = 0, j = 1, s0, m, n; j < m; ++j) { for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) { var si = series[order[i]], sij0 = si[j][1] || 0, s3 = (sij0 - (si[j - 1][1] || 0)) / 2; for (var k = 0; k < i; ++k) { var sk = series[order[k]], skj0 = sk[j][1] || 0, skj1 = sk[j - 1][1] || 0; s3 += skj0 - skj1; } s1 += sij0, s2 += s3 * sij0; } s0[j - 1][1] += s0[j - 1][0] = y; if (s1) y -= s2 / s1; } s0[j - 1][1] += s0[j - 1][0] = y; none_default$1(series, order); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js var require_isUnsafeProperty = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isUnsafeProperty(key) { return key === "__proto__"; } exports.isUnsafeProperty = isUnsafeProperty; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js var require_isDeepKey = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isDeepKey(key) { switch (typeof key) { case "number": case "symbol": return false; case "string": return key.includes(".") || key.includes("[") || key.includes("]"); } } exports.isDeepKey = isDeepKey; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/toKey.js var require_toKey = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function toKey(value) { if (typeof value === "string" || typeof value === "symbol") return value; if (Object.is(value?.valueOf?.(), -0)) return "-0"; return String(value); } exports.toKey = toKey; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/util/toString.js var require_toString = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function toString(value) { if (value == null) return ""; if (typeof value === "string") return value; if (Array.isArray(value)) return value.map(toString).join(","); const result = String(value); if (result === "0" && Object.is(Number(value), -0)) return "-0"; return result; } exports.toString = toString; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/util/toPath.js var require_toPath = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var toString = require_toString(); var toKey = require_toKey(); function toPath(deepKey) { if (Array.isArray(deepKey)) return deepKey.map(toKey.toKey); if (typeof deepKey === "symbol") return [deepKey]; deepKey = toString.toString(deepKey); const result = []; const length = deepKey.length; if (length === 0) return result; let index = 0; let key = ""; let quoteChar = ""; let bracket = false; if (deepKey.charCodeAt(0) === 46) { result.push(""); index++; } while (index < length) { const char = deepKey[index]; if (quoteChar) if (char === "\\" && index + 1 < length) { index++; key += deepKey[index]; } else if (char === quoteChar) quoteChar = ""; else key += char; else if (bracket) if (char === "\"" || char === "'") quoteChar = char; else if (char === "]") { bracket = false; result.push(key); key = ""; } else key += char; else if (char === "[") { bracket = true; if (key) { result.push(key); key = ""; } } else if (char === ".") { if (key) { result.push(key); key = ""; } } else key += char; index++; } if (key) result.push(key); return result; } exports.toPath = toPath; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/object/get.js var require_get$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isUnsafeProperty = require_isUnsafeProperty(); var isDeepKey = require_isDeepKey(); var toKey = require_toKey(); var toPath = require_toPath(); function get(object, path, defaultValue) { if (object == null) return defaultValue; switch (typeof path) { case "string": { if (isUnsafeProperty.isUnsafeProperty(path)) return defaultValue; const result = object[path]; if (result === void 0) if (isDeepKey.isDeepKey(path)) return get(object, toPath.toPath(path), defaultValue); else return defaultValue; return result; } case "number": case "symbol": { if (typeof path === "number") path = toKey.toKey(path); const result = object[path]; if (result === void 0) return defaultValue; return result; } default: { if (Array.isArray(path)) return getWithPath(object, path, defaultValue); if (Object.is(path?.valueOf(), -0)) path = "-0"; else path = String(path); if (isUnsafeProperty.isUnsafeProperty(path)) return defaultValue; const result = object[path]; if (result === void 0) return defaultValue; return result; } } } function getWithPath(object, path, defaultValue) { if (path.length === 0) return defaultValue; let current = object; for (let index = 0; index < path.length; index++) { if (current == null) return defaultValue; if (isUnsafeProperty.isUnsafeProperty(path[index])) return defaultValue; current = current[path[index]]; } if (current === void 0) return defaultValue; return current; } exports.get = get; })); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/round.js var import_get = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = require_get$1().get; })))()); var defaultRoundPrecision = 4; function round(num) { var factor = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultRoundPrecision); var rounded = Math.round(num * factor) / factor; if (Object.is(rounded, -0)) return 0; return rounded; } /** * This function will accept a string template literal and for each * variable placeholder, it will round the value to avoid long float numbers in * the SVG path which might cause rendering issues in some browsers. */ function roundTemplateLiteral(strings) { for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) values[_key - 1] = arguments[_key]; return strings.reduce((result, string, i) => { var value = values[i - 1]; if (typeof value === "string") return result + value + string; if (value !== void 0) return result + round(value) + string; return result + string; }, ""); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/DataUtils.js var mathSign = (value) => { if (value === 0) return 0; if (value > 0) return 1; return -1; }; var isNan = (value) => { return typeof value == "number" && value != +value; }; var isPercent = (value) => typeof value === "string" && value.indexOf("%") === value.length - 1; var isNumber = (value) => (typeof value === "number" || value instanceof Number) && !isNan(value); var isNumOrStr = (value) => isNumber(value) || typeof value === "string"; var idCounter = 0; var uniqueId = (prefix) => { var id = ++idCounter; return "".concat(prefix || "").concat(id); }; /** * Calculates the numeric value represented by a percent string or number, based on a total value. * * - If `percent` is not a number or string, returns `defaultValue`. * - If `percent` is a percent string but `totalValue` is null/undefined, returns `defaultValue`. * - If the result is NaN, returns `defaultValue`. * - If `validate` is true and the result exceeds `totalValue`, returns `totalValue`. * * @param percent - The percent value to convert. Can be a number (e.g. 25) or a string ending with '%' (e.g. '25%'). * If a string, it must end with '%' to be treated as a percent; otherwise, it is parsed as a number. * @param totalValue - The total value to calculate the percent of. Required if `percent` is a percent string. * @param defaultValue - The value returned if `percent` is undefined, invalid, or cannot be converted to a number. * @param validate - If true, ensures the result does not exceed `totalValue` (when provided). * @returns The calculated value, or `defaultValue` for invalid input. */ var getPercentValue = function getPercentValue(percent, totalValue) { var defaultValue = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; var validate = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; if (!isNumber(percent) && typeof percent !== "string") return defaultValue; var value; if (isPercent(percent)) { if (totalValue == null) return defaultValue; var index = percent.indexOf("%"); value = totalValue * parseFloat(percent.slice(0, index)) / 100; } else value = +percent; if (isNan(value)) value = defaultValue; if (validate && totalValue != null && value > totalValue) value = totalValue; return value; }; var hasDuplicate = (ary) => { if (!Array.isArray(ary)) return false; var len = ary.length; var cache = {}; for (var i = 0; i < len; i++) if (!cache[String(ary[i])]) cache[String(ary[i])] = true; else return true; return false; }; function interpolate(start, end, t) { if (isNumber(start) && isNumber(end)) return round(start + t * (end - start)); return end; } function findEntryInArray(ary, specifiedKey, specifiedValue) { if (!ary || !ary.length) return; return ary.find((entry) => entry && (typeof specifiedKey === "function" ? specifiedKey(entry) : (0, import_get.default)(entry, specifiedKey)) === specifiedValue); } /** * The least square linear regression * @param {Array} data The array of points * @returns {Object} The domain of x, and the parameter of linear function */ var getLinearRegression = (data) => { var len = data.length; var xsum = 0; var ysum = 0; var xysum = 0; var xxsum = 0; var xmin = Infinity; var xmax = -Infinity; var xcurrent = 0; var ycurrent = 0; for (var i = 0; i < len; i++) { var _data$i, _data$i2; xcurrent = ((_data$i = data[i]) === null || _data$i === void 0 ? void 0 : _data$i.cx) || 0; ycurrent = ((_data$i2 = data[i]) === null || _data$i2 === void 0 ? void 0 : _data$i2.cy) || 0; xsum += xcurrent; ysum += ycurrent; xysum += xcurrent * ycurrent; xxsum += xcurrent * xcurrent; xmin = Math.min(xmin, xcurrent); xmax = Math.max(xmax, xcurrent); } var a = len * xxsum !== xsum * xsum ? (len * xysum - xsum * ysum) / (len * xxsum - xsum * xsum) : 0; return { xmin, xmax, a, b: (ysum - a * xsum) / len }; }; /** * Checks if the value is null or undefined * @param value The value to check * @returns true if the value is null or undefined */ var isNullish = (value) => { return value === null || typeof value === "undefined"; }; /** * Uppercase the first letter of a string * @param {string} value The string to uppercase * @returns {string} The uppercased string */ var upperFirst = (value) => { if (isNullish(value)) return value; return "".concat(value.charAt(0).toUpperCase()).concat(value.slice(1)); }; /** * Checks if the value is not null nor undefined. * @param value The value to check * @returns true if the value is not null nor undefined */ function isNotNil(value) { return value != null; } /** * No-operation function that does nothing. * Useful as a placeholder or default callback function. */ function noop$2() {} //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/shape/Symbols.js var _excluded$36 = [ "type", "size", "sizeType" ]; function _extends$50() { return _extends$50 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$50.apply(null, arguments); } function ownKeys$70(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$70(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$70(Object(t), !0).forEach(function(r) { _defineProperty$72(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$70(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$72(e, r, t) { return (r = _toPropertyKey$72(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$72(t) { var i = _toPrimitive$72(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$72(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function _objectWithoutProperties$36(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$36(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$36(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } var symbolFactories = { symbolCircle: circle_default, symbolCross: cross_default, symbolDiamond: diamond_default, symbolSquare: square_default, symbolStar: star_default, symbolTriangle: triangle_default, symbolWye: wye_default }; var RADIAN$1 = Math.PI / 180; var getSymbolFactory = (type) => { return symbolFactories["symbol".concat(upperFirst(type))] || circle_default; }; var calculateAreaSize = (size, sizeType, type) => { if (sizeType === "area") return size; switch (type) { case "cross": return 5 * size * size / 9; case "diamond": return .5 * size * size / Math.sqrt(3); case "square": return size * size; case "star": var angle = 18 * RADIAN$1; return 1.25 * size * size * (Math.tan(angle) - Math.tan(angle * 2) * Math.tan(angle) ** 2); case "triangle": return Math.sqrt(3) * size * size / 4; case "wye": return (21 - 10 * Math.sqrt(3)) * size * size / 8; default: return Math.PI * size * size / 4; } }; var registerSymbol = (key, factory) => { symbolFactories["symbol".concat(upperFirst(key))] = factory; }; /** * Renders a symbol from a set of predefined shapes. */ var Symbols = (_ref) => { var { type = "circle", size = 64, sizeType = "area" } = _ref; var props = _objectSpread$70(_objectSpread$70({}, _objectWithoutProperties$36(_ref, _excluded$36)), {}, { type, size, sizeType }); var realType = "circle"; if (typeof type === "string") realType = type; /** * Calculate the path of curve * @return {String} path */ var getPath = () => { var symbolFactory = getSymbolFactory(realType); var s = Symbol$1().type(symbolFactory).size(calculateAreaSize(size, sizeType, realType))(); if (s === null) return; return s; }; var { className, cx, cy } = props; var filteredProps = svgPropertiesAndEvents(props); if (isNumber(cx) && isNumber(cy) && isNumber(size)) return /* @__PURE__ */ import_react.createElement("path", _extends$50({}, filteredProps, { className: clsx("recharts-symbols", className), transform: "translate(".concat(cx, ", ").concat(cy, ")"), d: getPath() })); return null; }; Symbols.registerSymbol = registerSymbol; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/types.js /** * Determines how values are stacked: * * - `none` is the default, it adds values on top of each other. No smarts. Negative values will overlap. * - `expand` make it so that the values always add up to 1 - so the chart will look like a rectangle. * - `wiggle` and `silhouette` tries to keep the chart centered. * - `sign` stacks positive values above zero and negative values below zero. Similar to `none` but handles negatives. * - `positive` ignores all negative values, and then behaves like \`none\`. * * @see {@link https://d3js.org/d3-shape/stack#stack-offsets} * (note that the `diverging` offset in d3 is named `sign` in recharts) * * @inline */ /** * @deprecated use either `CartesianLayout` or `PolarLayout` instead. * Mixing both charts families leads to ambiguity in the type system. * These two layouts share very few properties, so it is best to keep them separate. */ /** * The type of axis. * * `category`: Treats data as distinct values. * Each value is in the same distance from its neighbors, regardless of their actual numeric difference. * * `number`: Treats data as continuous range. * Values that are numerically closer are placed closer together on the axis. * * `auto`: the type is inferred based on the chart layout. * * This is external type - users will provide this type in props. * Internally we will evaluate it to either 'category' or 'number' based on the layout, * before sending it to the store. * * @inline */ /** * Individual axes are responsible for resolving the 'auto' type to either 'number' or 'category', * based on the chart layout and axis kind. Then they can start using this type. */ /** * Extracts values from data objects. * * @inline */ /** * @inline */ /** * @inline */ /** * @deprecated do not use: too many properties, mixing too many concepts, cartesian and polar together, everything optional. * Instead, use either `Coordinate` or `PolarCoordinate`. */ var isPolarCoordinate = (c) => { return "radius" in c && "startAngle" in c && "endAngle" in c; }; /** * String shortcuts for scale types. * In case none of these does what you want you can also provide your own scale function * @see {@link CustomScaleDefinition} */ /** * The type of easing function to use for animations * * @inline */ /** Specifies the duration of animation, the unit of this option is ms. */ /** * This object defines the offset of the chart area and width and height and brush and ... it's a bit too much information all in one. * We use it internally but let's not expose it to the outside world. * If you are looking for this information, instead import `ChartOffset` or `PlotArea` from `recharts`. */ /** * The domain of axis. * This is the definition * * Numeric domain is always defined by an array of exactly two values, for the min and the max of the axis. * Categorical domain is defined as array of all possible values. * * Can be specified in many ways: * - array of numbers * - with special strings like 'dataMin' and 'dataMax' * - with special string math like 'dataMin - 100' * - with keyword 'auto' * - or a function * - array of functions * - or a combination of the above */ /** * NumberDomain is an evaluated {@link AxisDomain}. * Unlike {@link AxisDomain}, it has no variety - it's a tuple of two number. * This is after all the keywords and functions were evaluated and what is left is [min, max]. * * Know that the min, max values are not guaranteed to be nice numbers - values like -Infinity or NaN are possible. * * There are also `category` axes that have different things than numbers in their domain. */ /** * Props shared in all renderable axes - meaning the ones that are drawn on the chart, * can have ticks, axis line, etc. */ /** Defines how ticks are placed and whether / how tick collisions are handled. * 'preserveStart' keeps the left tick on collision and ensures that the first tick is always shown. * 'preserveEnd' keeps the right tick on collision and ensures that the last tick is always shown. * 'preserveStartEnd' keeps the left tick on collision and ensures that the first and last ticks always show. * 'equidistantPreserveStart' selects a number N such that every nTh tick will be shown without collision. * 'equidistantPreserveEnd' selects a number N such that every nTh tick will be shown, ensuring the last tick is always visible. */ /** * Ticks can be any type when the axis is the type of category. * * Ticks must be numbers when the axis is the type of number. * * @inline */ /** * @inline */ /** * @inline */ var adaptEventHandlers = (props, newHandler) => { if (!props || typeof props === "function" || typeof props === "boolean") return null; var inputProps = props; if (/* @__PURE__ */ (0, import_react.isValidElement)(props)) inputProps = props.props; if (typeof inputProps !== "object" && typeof inputProps !== "function") return null; var out = {}; Object.keys(inputProps).forEach((key) => { if (isEventKey(key) && typeof inputProps[key] === "function") out[key] = newHandler || ((e) => inputProps[key](inputProps, e)); }); return out; }; var getEventHandlerOfChild = (originalHandler, data, index) => (e) => { originalHandler(data, index, e); return null; }; var adaptEventsOfChild = (props, data, index) => { if (props === null || typeof props !== "object" && typeof props !== "function") return null; var out = null; Object.keys(props).forEach((key) => { var item = props[key]; if (isEventKey(key) && typeof item === "function") { if (!out) out = {}; out[key] = getEventHandlerOfChild(item, data, index); } }); return out; }; /** * 'axis' means that all graphical items belonging to this axis tick will be highlighted, * and all will be present in the tooltip. * Tooltip with 'axis' will display when hovering on the chart background. * * 'item' means only the one graphical item being hovered will show in the tooltip. * Tooltip with 'item' will display when hovering over individual graphical items. * * This is calculated internally; * charts have a `defaultTooltipEventType` and `validateTooltipEventTypes` options. * * Users then use or to control their preference, * and charts will then see what is allowed and what is not. */ /** * These are the props we are going to pass to an `activeDot` or `dot` if it is a function or a custom Component */ /** * This is the type of `activeDot` prop on: * - Area * - Line * - Radar * * @inline */ /** * Inside the dot event handlers we provide extra information about the dot point * that the Dot component itself does not need but users might find useful. */ /** * This is the type of `dot` prop on: * - Area * - Line * - Radar * * @inline */ /** * Simplified version of the MouseEvent so that we don't have to mock the whole thing in tests. * * This is meant to represent the React.MouseEvent * which is a wrapper on top of https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent */ /** * Simplified version of the MouseEvent for SVG elements. * * Similar to MousePointer but uses SVGGraphicsElement properties instead of HTMLElement properties. * SVG elements use getBBox() to get the intrinsic size instead of offsetWidth/offsetHeight. */ /** * Recharts accepts mouse events from both HTML and SVG elements. */ /** * Coordinates relative to the top-left corner of the active element. * Also include scale which means that element that's scaled will return the same coordinates as element that's not scaled. */ /** * Data provider means that this component accepts a `data` prop which is where you can input your data into the chart state. * The data is an array of objects, where each object represents a data point. * * DataPointType is the type of each data point object in the data array. * * The data is reused in multiple charts and components. Meaning if you provide data on the chart level, * then all child components, graphical items, legend, tooltip, axes ... will be able to access the data. * * Same goes for the graphical item. If you provide data on the graphical item level, * then that data is visible for the main chart, and all axes, tooltip, legend ... in the whole chart. * This is not scoped to the graphical item only. */ /** * Data consumer means that this component accepts a `dataKey` prop which is how you specify * which dimension of the data to use for this component. * * DataPointType is the type of each data point object in the data array. * DataValueType is the type of the value that this dataKey extracts from each data point. */ /** * Props shared with all Cartesian and Polar charts. * There are three charts that do not use these base props, and define their own: * - Treemap * - Sunburst * - Sankey */ var isNonEmptyArray = (arr) => { return Array.isArray(arr) && arr.length > 0; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/resolveDefaultProps.js function ownKeys$69(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$69(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$69(Object(t), !0).forEach(function(r) { _defineProperty$71(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$69(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$71(e, r, t) { return (r = _toPropertyKey$71(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$71(t) { var i = _toPrimitive$71(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$71(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * This function mimics the behavior of the `defaultProps` static property in React. * Functional components do not have a defaultProps property, so this function is useful to resolve default props. * * The common recommendation is to use ES6 destructuring with default values in the function signature, * but you need to be careful there and make sure you destructure all the individual properties * and not the whole object. See the test file for example. * * And because destructuring all properties one by one is a faff, and it's easy to miss one property, * this function exists. * * @param realProps - the props object passed to the component by the user * @param defaultProps - the default props object defined in the component by Recharts * @returns - the props object with all the default props resolved. All `undefined` values are replaced with the default value. */ function resolveDefaultProps(realProps, defaultProps) { var resolvedProps = _objectSpread$69({}, realProps); var dp = defaultProps; return Object.keys(defaultProps).reduce((acc, key) => { if (acc[key] === void 0 && dp[key] !== void 0) acc[key] = dp[key]; return acc; }, resolvedProps); } /** * Helper type to extract the keys of T that are required. * It iterates through each key K in T. If Pick cannot be assigned an empty object {}, * it means K is required, so we keep K; otherwise, we discard it (never). * [keyof T] at the end creates a union of the kept keys. */ /** * Helper type to extract the keys of T that are optional. * It iterates through each key K in T. If Pick can be assigned an empty object {}, * it means K is optional (or potentially missing), so we keep K; otherwise, we discard it (never). * [keyof T] at the end creates a union of the kept keys. */ /** * Helper type to ensure keys of D exist in T. * For each key K in D, if K is also a key of T, keep the type D[K]. * If K is NOT a key of T, map it to type `never`. * An object cannot have a property of type `never`, effectively disallowing extra keys. */ /** * This type will take a source type `Props` and a default type `Defaults` and will return a new type * where all properties that are optional in `Props` but required in `Defaults` are made required in the result. * Properties that are required in `Props` and optional in `Defaults` will remain required. * Properties that are optional in both `Props` and `Defaults` will remain optional. * * This is useful for creating a type that represents the resolved props of a component with default props. */ //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/DefaultLegendContent.js function _extends$49() { return _extends$49 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$49.apply(null, arguments); } function ownKeys$68(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$68(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$68(Object(t), !0).forEach(function(r) { _defineProperty$70(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$68(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$70(e, r, t) { return (r = _toPropertyKey$70(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$70(t) { var i = _toPrimitive$70(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$70(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var SIZE = 32; var defaultLegendContentDefaultProps = { align: "center", iconSize: 14, inactiveColor: "#ccc", layout: "horizontal", verticalAlign: "middle", labelStyle: {} }; function getStrokeDasharray$1(input) { if (typeof input === "object" && input !== null && "strokeDasharray" in input) return String(input.strokeDasharray); } function Icon(_ref) { var { data, iconType, inactiveColor } = _ref; var halfSize = SIZE / 2; var sixthSize = SIZE / 6; var thirdSize = SIZE / 3; var color = data.inactive ? inactiveColor : data.color; var preferredIcon = iconType !== null && iconType !== void 0 ? iconType : data.type; if (preferredIcon === "none") return null; if (preferredIcon === "plainline") return /* @__PURE__ */ import_react.createElement("line", { strokeWidth: 4, fill: "none", stroke: color, strokeDasharray: getStrokeDasharray$1(data.payload), x1: 0, y1: halfSize, x2: SIZE, y2: halfSize, className: "recharts-legend-icon" }); if (preferredIcon === "line") return /* @__PURE__ */ import_react.createElement("path", { strokeWidth: 4, fill: "none", stroke: color, d: "M0,".concat(halfSize, "h").concat(thirdSize, "\n A").concat(sixthSize, ",").concat(sixthSize, ",0,1,1,").concat(2 * thirdSize, ",").concat(halfSize, "\n H").concat(SIZE, "M").concat(2 * thirdSize, ",").concat(halfSize, "\n A").concat(sixthSize, ",").concat(sixthSize, ",0,1,1,").concat(thirdSize, ",").concat(halfSize), className: "recharts-legend-icon" }); if (preferredIcon === "rect") return /* @__PURE__ */ import_react.createElement("path", { stroke: "none", fill: color, d: "M0,".concat(SIZE / 8, "h").concat(SIZE, "v").concat(SIZE * 3 / 4, "h").concat(-SIZE, "z"), className: "recharts-legend-icon" }); if (/* @__PURE__ */ import_react.isValidElement(data.legendIcon)) { var iconProps = _objectSpread$68({}, data); delete iconProps.legendIcon; return /* @__PURE__ */ import_react.cloneElement(data.legendIcon, iconProps); } return /* @__PURE__ */ import_react.createElement(Symbols, { fill: color, cx: halfSize, cy: halfSize, size: SIZE, sizeType: "diameter", type: preferredIcon }); } function Items(props) { var { payload, iconSize, layout, formatter, inactiveColor, iconType, labelStyle } = props; var viewBox = { x: 0, y: 0, width: SIZE, height: SIZE }; var itemStyle = { display: layout === "horizontal" ? "inline-block" : "block", marginRight: 10 }; var svgStyle = { display: "inline-block", verticalAlign: "middle", marginRight: 4 }; return payload.map((entry, i) => { var finalFormatter = entry.formatter || formatter; var className = clsx({ "recharts-legend-item": true, ["legend-item-".concat(i)]: true, inactive: entry.inactive }); if (entry.type === "none") return null; var finalLabelStyle = typeof labelStyle === "object" ? _objectSpread$68({}, labelStyle) : {}; finalLabelStyle.color = entry.inactive ? inactiveColor : finalLabelStyle.color || entry.color; var finalValue = finalFormatter ? finalFormatter(entry.value, entry, i) : entry.value; return /* @__PURE__ */ import_react.createElement("li", _extends$49({ className, style: itemStyle, key: "legend-item-".concat(i) }, adaptEventsOfChild(props, entry, i)), /* @__PURE__ */ import_react.createElement(Surface, { width: iconSize, height: iconSize, viewBox, style: svgStyle, "aria-label": "".concat(entry.value, " legend icon") }, /* @__PURE__ */ import_react.createElement(Icon, { data: entry, iconType, inactiveColor })), /* @__PURE__ */ import_react.createElement("span", { className: "recharts-legend-item-text", style: finalLabelStyle }, finalValue)); }); } /** * This component is by default rendered inside the {@link Legend} component. You would not use it directly. * * You can use this component to customize the content of the legend, * or you can provide your own completely independent content. */ var DefaultLegendContent = (outsideProps) => { var props = resolveDefaultProps(outsideProps, defaultLegendContentDefaultProps); var { payload, layout, align } = props; if (!payload || !payload.length) return null; var finalStyle = { padding: 0, margin: 0, textAlign: layout === "horizontal" ? align : "left" }; return /* @__PURE__ */ import_react.createElement("ul", { className: "recharts-default-legend", style: finalStyle }, /* @__PURE__ */ import_react.createElement(Items, _extends$49({}, props, { payload }))); }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/array/uniqBy.js var require_uniqBy$2 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function uniqBy(arr, mapper) { const map = /* @__PURE__ */ new Map(); for (let i = 0; i < arr.length; i++) { const item = arr[i]; const key = mapper(item, i, arr); if (!map.has(key)) map.set(key, item); } return Array.from(map.values()); } exports.uniqBy = uniqBy; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/function/ary.js var require_ary = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function ary(func, n) { return function(...args) { return func.apply(this, args.slice(0, n)); }; } exports.ary = ary; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/function/identity.js var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function identity(x) { return x; } exports.identity = identity; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/predicate/isLength.js var require_isLength = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isLength(value) { return Number.isSafeInteger(value) && value >= 0; } exports.isLength = isLength; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js var require_isArrayLike = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isLength = require_isLength(); function isArrayLike(value) { return value != null && typeof value !== "function" && isLength.isLength(value.length); } exports.isArrayLike = isArrayLike; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js var require_isObjectLike = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isObjectLike(value) { return typeof value === "object" && value !== null; } exports.isObjectLike = isObjectLike; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js var require_isArrayLikeObject = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isArrayLike = require_isArrayLike(); var isObjectLike = require_isObjectLike(); function isArrayLikeObject(value) { return isObjectLike.isObjectLike(value) && isArrayLike.isArrayLike(value); } exports.isArrayLikeObject = isArrayLikeObject; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/object/property.js var require_property = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var get = require_get$1(); function property(path) { return function(object) { return get.get(object, path); }; } exports.property = property; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/isObject.js var require_isObject = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isObject(value) { return value !== null && (typeof value === "object" || typeof value === "function"); } exports.isObject = isObject; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/predicate/isPrimitive.js var require_isPrimitive = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isPrimitive(value) { return value == null || typeof value !== "object" && typeof value !== "function"; } exports.isPrimitive = isPrimitive; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.js var require_isEqualsSameValueZero = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isEqualsSameValueZero(value, other) { return value === other || Number.isNaN(value) && Number.isNaN(other); } exports.isEqualsSameValueZero = isEqualsSameValueZero; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js var require_isMatchWith = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isObject = require_isObject(); var isPrimitive = require_isPrimitive(); var isEqualsSameValueZero = require_isEqualsSameValueZero(); function isMatchWith(target, source, compare) { if (typeof compare !== "function") return isMatchWith(target, source, () => void 0); return isMatchWithInternal(target, source, function doesMatch(objValue, srcValue, key, object, source, stack) { const isEqual = compare(objValue, srcValue, key, object, source, stack); if (isEqual !== void 0) return Boolean(isEqual); return isMatchWithInternal(objValue, srcValue, doesMatch, stack); }, /* @__PURE__ */ new Map()); } function isMatchWithInternal(target, source, compare, stack) { if (source === target) return true; switch (typeof source) { case "object": return isObjectMatch(target, source, compare, stack); case "function": if (Object.keys(source).length > 0) return isMatchWithInternal(target, { ...source }, compare, stack); return isEqualsSameValueZero.isEqualsSameValueZero(target, source); default: if (!isObject.isObject(target)) return isEqualsSameValueZero.isEqualsSameValueZero(target, source); if (typeof source === "string") return source === ""; return true; } } function isObjectMatch(target, source, compare, stack) { if (source == null) return true; if (Array.isArray(source)) return isArrayMatch(target, source, compare, stack); if (source instanceof Map) return isMapMatch(target, source, compare, stack); if (source instanceof Set) return isSetMatch(target, source, compare, stack); const keys = Object.keys(source); if (target == null || isPrimitive.isPrimitive(target)) return keys.length === 0; if (keys.length === 0) return true; if (stack?.has(source)) return stack.get(source) === target; stack?.set(source, target); try { for (let i = 0; i < keys.length; i++) { const key = keys[i]; if (!isPrimitive.isPrimitive(target) && !(key in target)) return false; if (source[key] === void 0 && target[key] !== void 0) return false; if (source[key] === null && target[key] !== null) return false; if (!compare(target[key], source[key], key, target, source, stack)) return false; } return true; } finally { stack?.delete(source); } } function isMapMatch(target, source, compare, stack) { if (source.size === 0) return true; if (!(target instanceof Map)) return false; for (const [key, sourceValue] of source.entries()) if (compare(target.get(key), sourceValue, key, target, source, stack) === false) return false; return true; } function isArrayMatch(target, source, compare, stack) { if (source.length === 0) return true; if (!Array.isArray(target)) return false; const countedIndex = /* @__PURE__ */ new Set(); for (let i = 0; i < source.length; i++) { const sourceItem = source[i]; let found = false; for (let j = 0; j < target.length; j++) { if (countedIndex.has(j)) continue; const targetItem = target[j]; let matches = false; if (compare(targetItem, sourceItem, i, target, source, stack)) matches = true; if (matches) { countedIndex.add(j); found = true; break; } } if (!found) return false; } return true; } function isSetMatch(target, source, compare, stack) { if (source.size === 0) return true; if (!(target instanceof Set)) return false; return isArrayMatch([...target], [...source], compare, stack); } exports.isMatchWith = isMatchWith; exports.isSetMatch = isSetMatch; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/isMatch.js var require_isMatch = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isMatchWith = require_isMatchWith(); function isMatch(target, source) { return isMatchWith.isMatchWith(target, source, () => void 0); } exports.isMatch = isMatch; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js var require_getSymbols = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function getSymbols(object) { return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol)); } exports.getSymbols = getSymbols; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/getTag.js var require_getTag = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function getTag(value) { if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]"; return Object.prototype.toString.call(value); } exports.getTag = getTag; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/tags.js var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var regexpTag = "[object RegExp]"; var stringTag = "[object String]"; var numberTag = "[object Number]"; var booleanTag = "[object Boolean]"; var argumentsTag = "[object Arguments]"; var symbolTag = "[object Symbol]"; var dateTag = "[object Date]"; var mapTag = "[object Map]"; var setTag = "[object Set]"; var arrayTag = "[object Array]"; var functionTag = "[object Function]"; var arrayBufferTag = "[object ArrayBuffer]"; var objectTag = "[object Object]"; var errorTag = "[object Error]"; var dataViewTag = "[object DataView]"; var uint8ArrayTag = "[object Uint8Array]"; var uint8ClampedArrayTag = "[object Uint8ClampedArray]"; var uint16ArrayTag = "[object Uint16Array]"; var uint32ArrayTag = "[object Uint32Array]"; var bigUint64ArrayTag = "[object BigUint64Array]"; var int8ArrayTag = "[object Int8Array]"; var int16ArrayTag = "[object Int16Array]"; var int32ArrayTag = "[object Int32Array]"; var bigInt64ArrayTag = "[object BigInt64Array]"; var float32ArrayTag = "[object Float32Array]"; var float64ArrayTag = "[object Float64Array]"; exports.argumentsTag = argumentsTag; exports.arrayBufferTag = arrayBufferTag; exports.arrayTag = arrayTag; exports.bigInt64ArrayTag = bigInt64ArrayTag; exports.bigUint64ArrayTag = bigUint64ArrayTag; exports.booleanTag = booleanTag; exports.dataViewTag = dataViewTag; exports.dateTag = dateTag; exports.errorTag = errorTag; exports.float32ArrayTag = float32ArrayTag; exports.float64ArrayTag = float64ArrayTag; exports.functionTag = functionTag; exports.int16ArrayTag = int16ArrayTag; exports.int32ArrayTag = int32ArrayTag; exports.int8ArrayTag = int8ArrayTag; exports.mapTag = mapTag; exports.numberTag = numberTag; exports.objectTag = objectTag; exports.regexpTag = regexpTag; exports.setTag = setTag; exports.stringTag = stringTag; exports.symbolTag = symbolTag; exports.uint16ArrayTag = uint16ArrayTag; exports.uint32ArrayTag = uint32ArrayTag; exports.uint8ArrayTag = uint8ArrayTag; exports.uint8ClampedArrayTag = uint8ClampedArrayTag; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/predicate/isTypedArray.js var require_isTypedArray$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isTypedArray(x) { return ArrayBuffer.isView(x) && !(x instanceof DataView); } exports.isTypedArray = isTypedArray; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/object/cloneDeepWith.js var require_cloneDeepWith$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var getSymbols = require_getSymbols(); var getTag = require_getTag(); var tags = require_tags(); var isPrimitive = require_isPrimitive(); var isTypedArray = require_isTypedArray$1(); function cloneDeepWith(obj, cloneValue) { return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), cloneValue); } function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) { const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack); if (cloned !== void 0) return cloned; if (isPrimitive.isPrimitive(valueToClone)) return valueToClone; if (stack.has(valueToClone)) return stack.get(valueToClone); if (Array.isArray(valueToClone)) { const result = new Array(valueToClone.length); stack.set(valueToClone, result); for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue); if (Object.hasOwn(valueToClone, "index")) result.index = valueToClone.index; if (Object.hasOwn(valueToClone, "input")) result.input = valueToClone.input; return result; } if (valueToClone instanceof Date) return new Date(valueToClone.getTime()); if (valueToClone instanceof RegExp) { const result = new RegExp(valueToClone.source, valueToClone.flags); result.lastIndex = valueToClone.lastIndex; return result; } if (valueToClone instanceof Map) { const result = /* @__PURE__ */ new Map(); stack.set(valueToClone, result); for (const [key, value] of valueToClone) result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue)); return result; } if (valueToClone instanceof Set) { const result = /* @__PURE__ */ new Set(); stack.set(valueToClone, result); for (const value of valueToClone) result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue)); return result; } if (typeof Buffer !== "undefined" && Buffer.isBuffer(valueToClone)) return valueToClone.subarray(); if (isTypedArray.isTypedArray(valueToClone)) { const result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length); stack.set(valueToClone, result); for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue); return result; } if (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && valueToClone instanceof SharedArrayBuffer) return valueToClone.slice(0); if (valueToClone instanceof DataView) { const result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength); stack.set(valueToClone, result); copyProperties(result, valueToClone, objectToClone, stack, cloneValue); return result; } if (typeof File !== "undefined" && valueToClone instanceof File) { const result = new File([valueToClone], valueToClone.name, { type: valueToClone.type }); stack.set(valueToClone, result); copyProperties(result, valueToClone, objectToClone, stack, cloneValue); return result; } if (typeof Blob !== "undefined" && valueToClone instanceof Blob) { const result = new Blob([valueToClone], { type: valueToClone.type }); stack.set(valueToClone, result); copyProperties(result, valueToClone, objectToClone, stack, cloneValue); return result; } if (valueToClone instanceof Error) { const result = structuredClone(valueToClone); stack.set(valueToClone, result); result.message = valueToClone.message; result.name = valueToClone.name; result.stack = valueToClone.stack; result.cause = valueToClone.cause; result.constructor = valueToClone.constructor; copyProperties(result, valueToClone, objectToClone, stack, cloneValue); return result; } if (valueToClone instanceof Boolean) { const result = new Boolean(valueToClone.valueOf()); stack.set(valueToClone, result); copyProperties(result, valueToClone, objectToClone, stack, cloneValue); return result; } if (valueToClone instanceof Number) { const result = new Number(valueToClone.valueOf()); stack.set(valueToClone, result); copyProperties(result, valueToClone, objectToClone, stack, cloneValue); return result; } if (valueToClone instanceof String) { const result = new String(valueToClone.valueOf()); stack.set(valueToClone, result); copyProperties(result, valueToClone, objectToClone, stack, cloneValue); return result; } if (typeof valueToClone === "object" && isCloneableObject(valueToClone)) { const result = Object.create(Object.getPrototypeOf(valueToClone)); stack.set(valueToClone, result); copyProperties(result, valueToClone, objectToClone, stack, cloneValue); return result; } return valueToClone; } function copyProperties(target, source, objectToClone = target, stack, cloneValue) { const keys = [...Object.keys(source), ...getSymbols.getSymbols(source)]; for (let i = 0; i < keys.length; i++) { const key = keys[i]; const descriptor = Object.getOwnPropertyDescriptor(target, key); if (descriptor == null || descriptor.writable) target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue); } } function isCloneableObject(object) { switch (getTag.getTag(object)) { case tags.argumentsTag: case tags.arrayTag: case tags.arrayBufferTag: case tags.dataViewTag: case tags.booleanTag: case tags.dateTag: case tags.float32ArrayTag: case tags.float64ArrayTag: case tags.int8ArrayTag: case tags.int16ArrayTag: case tags.int32ArrayTag: case tags.mapTag: case tags.numberTag: case tags.objectTag: case tags.regexpTag: case tags.setTag: case tags.stringTag: case tags.symbolTag: case tags.uint8ArrayTag: case tags.uint8ClampedArrayTag: case tags.uint16ArrayTag: case tags.uint32ArrayTag: return true; default: return false; } } exports.cloneDeepWith = cloneDeepWith; exports.cloneDeepWithImpl = cloneDeepWithImpl; exports.copyProperties = copyProperties; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/object/cloneDeep.js var require_cloneDeep$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var cloneDeepWith = require_cloneDeepWith$1(); function cloneDeep(obj) { return cloneDeepWith.cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0); } exports.cloneDeep = cloneDeep; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/matches.js var require_matches = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isMatch = require_isMatch(); var cloneDeep = require_cloneDeep$1(); function matches(source) { source = cloneDeep.cloneDeep(source); return (target) => { return isMatch.isMatch(target, source); }; } exports.matches = matches; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js var require_cloneDeepWith = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var cloneDeepWith$1 = require_cloneDeepWith$1(); var getTag = require_getTag(); var tags = require_tags(); function cloneDeepWith(obj, customizer) { return cloneDeepWith$1.cloneDeepWith(obj, (value, key, object, stack) => { const cloned = customizer?.(value, key, object, stack); if (cloned !== void 0) return cloned; if (typeof obj !== "object") return; if (getTag.getTag(obj) === tags.objectTag && typeof obj.constructor !== "function") { const result = {}; stack.set(obj, result); cloneDeepWith$1.copyProperties(result, obj, object, stack); return result; } switch (Object.prototype.toString.call(obj)) { case tags.numberTag: case tags.stringTag: case tags.booleanTag: { const result = new obj.constructor(obj?.valueOf()); cloneDeepWith$1.copyProperties(result, obj); return result; } case tags.argumentsTag: { const result = {}; cloneDeepWith$1.copyProperties(result, obj); result.length = obj.length; result[Symbol.iterator] = obj[Symbol.iterator]; return result; } default: return; } }); } exports.cloneDeepWith = cloneDeepWith; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/object/cloneDeep.js var require_cloneDeep = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var cloneDeepWith = require_cloneDeepWith(); function cloneDeep(obj) { return cloneDeepWith.cloneDeepWith(obj); } exports.cloneDeep = cloneDeep; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/isIndex.js var require_isIndex = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/; function isIndex(value, length = Number.MAX_SAFE_INTEGER) { switch (typeof value) { case "number": return Number.isInteger(value) && value >= 0 && value < length; case "symbol": return false; case "string": return IS_UNSIGNED_INTEGER.test(value); } } exports.isIndex = isIndex; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/isArguments.js var require_isArguments = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var getTag = require_getTag(); function isArguments(value) { return value !== null && typeof value === "object" && getTag.getTag(value) === "[object Arguments]"; } exports.isArguments = isArguments; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/object/has.js var require_has = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isDeepKey = require_isDeepKey(); var isIndex = require_isIndex(); var isArguments = require_isArguments(); var toPath = require_toPath(); function has(object, path) { let resolvedPath; if (Array.isArray(path)) resolvedPath = path; else if (typeof path === "string" && isDeepKey.isDeepKey(path) && object?.[path] == null) resolvedPath = toPath.toPath(path); else resolvedPath = [path]; if (resolvedPath.length === 0) return false; let current = object; for (let i = 0; i < resolvedPath.length; i++) { const key = resolvedPath[i]; if (current == null || !Object.hasOwn(current, key)) { if (!((Array.isArray(current) || isArguments.isArguments(current)) && isIndex.isIndex(key) && key < current.length)) return false; } current = current[key]; } return true; } exports.has = has; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js var require_matchesProperty = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isMatch = require_isMatch(); var toKey = require_toKey(); var cloneDeep = require_cloneDeep(); var get = require_get$1(); var has = require_has(); function matchesProperty(property, source) { switch (typeof property) { case "object": if (Object.is(property?.valueOf(), -0)) property = "-0"; break; case "number": property = toKey.toKey(property); break; } source = cloneDeep.cloneDeep(source); return function(target) { const result = get.get(target, property); if (result === void 0) return has.has(target, property); if (source === void 0) return result === void 0; return isMatch.isMatch(result, source); }; } exports.matchesProperty = matchesProperty; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/util/iteratee.js var require_iteratee = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var identity = require_identity(); var property = require_property(); var matches = require_matches(); var matchesProperty = require_matchesProperty(); function iteratee(value) { if (value == null) return identity.identity; switch (typeof value) { case "function": return value; case "object": if (Array.isArray(value) && value.length === 2) return matchesProperty.matchesProperty(value[0], value[1]); return matches.matches(value); case "string": case "symbol": case "number": return property.property(value); } } exports.iteratee = iteratee; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/array/uniqBy.js var require_uniqBy$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var uniqBy$1 = require_uniqBy$2(); var ary = require_ary(); var identity = require_identity(); var isArrayLikeObject = require_isArrayLikeObject(); var iteratee = require_iteratee(); function uniqBy(array, iteratee$1 = identity.identity) { if (!isArrayLikeObject.isArrayLikeObject(array)) return []; return uniqBy$1.uniqBy(Array.from(array), ary.ary(iteratee.iteratee(iteratee$1), 1)); } exports.uniqBy = uniqBy; })); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/payload/getUniqPayload.js var import_uniqBy = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = require_uniqBy$1().uniqBy; })))()); /** * This is configuration option that decides how to filter for unique values only: * * - `false` means "no filter" * - `true` means "use recharts default filter" * - function means "use return of this function as the default key" */ function getUniqPayload(payload, option, defaultUniqBy) { if (option === true) return (0, import_uniqBy.default)(payload, defaultUniqBy); if (typeof option === "function") return (0, import_uniqBy.default)(payload, option); return payload; } //#endregion //#region .yarn/__virtual__/use-sync-external-store-virtual-aac11f593c/3/AppData/Local/Yarn/Berry/cache/use-sync-external-store-npm-1.6.0-2db2af616d-10c0.zip/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js /** * @license React * use-sync-external-store-shim/with-selector.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var require_with_selector_development = /* @__PURE__ */ __commonJSMin(((exports) => { (function() { function is(x, y) { return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; } "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); var React = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue; exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) { var instRef = useRef(null); if (null === instRef.current) { var inst = { hasValue: !1, value: null }; instRef.current = inst; } else inst = instRef.current; instRef = useMemo(function() { function memoizedSelector(nextSnapshot) { if (!hasMemo) { hasMemo = !0; memoizedSnapshot = nextSnapshot; nextSnapshot = selector(nextSnapshot); if (void 0 !== isEqual && inst.hasValue) { var currentSelection = inst.value; if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection; } return memoizedSelection = nextSnapshot; } currentSelection = memoizedSelection; if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection; var nextSelection = selector(nextSnapshot); if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection; memoizedSnapshot = nextSnapshot; return memoizedSelection = nextSelection; } var hasMemo = !1, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot; return [function() { return memoizedSelector(getSnapshot()); }, null === maybeGetServerSnapshot ? void 0 : function() { return memoizedSelector(maybeGetServerSnapshot()); }]; }, [ getSnapshot, getServerSnapshot, selector, isEqual ]); var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]); useEffect(function() { inst.hasValue = !0; inst.value = value; }, [value]); useDebugValue(value); return value; }; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); })(); })); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/RechartsReduxContext.js var import_with_selector$1 = (/* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = require_with_selector_development(); })))(); /** * We need to use our own independent Redux context because we need to avoid interfering with other people's Redux stores * in case they decide to install and use Recharts in another Redux app which is likely to happen. * * https://react-redux.js.org/using-react-redux/accessing-store#providing-custom-context */ var RechartsReduxContext = /* @__PURE__ */ (0, import_react.createContext)(null); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/hooks.js var noopDispatch = (a) => a; var useAppDispatch = () => { var context = (0, import_react.useContext)(RechartsReduxContext); if (context) return context.store.dispatch; return noopDispatch; }; var noop$1 = () => {}; var addNestedSubNoop = () => noop$1; var refEquality = (a, b) => a === b; /** * This is a recharts variant of `useSelector` from 'react-redux' package. * * The difference is that react-redux version will throw an Error when used outside of Redux context. * * This, recharts version, will return undefined instead. * * This is because we want to allow using our components outside the Chart wrapper, * and have people provide all props explicitly. * * If however they use the component inside a chart wrapper then those props become optional, * and we read them from Redux state instead. * * @param selector for pulling things out of Redux store; will not be called if the store is not accessible * @return whatever the selector returned; or undefined when outside of Redux store */ function useAppSelector(selector) { var context = (0, import_react.useContext)(RechartsReduxContext); var outOfContextSelector = (0, import_react.useMemo)(() => { if (!context) return noop$1; return (state) => { if (state == null) return; return selector(state); }; }, [context, selector]); return (0, import_with_selector$1.useSyncExternalStoreWithSelector)(context ? context.subscription.addNestedSub : addNestedSubNoop, context ? context.store.getState : noop$1, context ? context.store.getState : noop$1, outOfContextSelector, refEquality); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/reselect-npm-5.1.1-667568f51c-10c0.zip/node_modules/reselect/dist/reselect.mjs var runIdentityFunctionCheck = (resultFunc, inputSelectorsResults, outputSelectorResult) => { if (inputSelectorsResults.length === 1 && inputSelectorsResults[0] === outputSelectorResult) { let isInputSameAsOutput = false; try { const emptyObject = {}; if (resultFunc(emptyObject) === emptyObject) isInputSameAsOutput = true; } catch {} if (isInputSameAsOutput) { let stack = void 0; try { throw new Error(); } catch (e) { ({stack} = e); } console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.", { stack }); } } }; var runInputStabilityCheck = (inputSelectorResultsObject, options, inputSelectorArgs) => { const { memoize, memoizeOptions } = options; const { inputSelectorResults, inputSelectorResultsCopy } = inputSelectorResultsObject; const createAnEmptyObject = memoize(() => ({}), ...memoizeOptions); if (!(createAnEmptyObject.apply(null, inputSelectorResults) === createAnEmptyObject.apply(null, inputSelectorResultsCopy))) { let stack = void 0; try { throw new Error(); } catch (e) { ({stack} = e); } console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`", { arguments: inputSelectorArgs, firstInputs: inputSelectorResults, secondInputs: inputSelectorResultsCopy, stack }); } }; var globalDevModeChecks = { inputStabilityCheck: "once", identityFunctionCheck: "once" }; function assertIsFunction(func, errorMessage = `expected a function, instead received ${typeof func}`) { if (typeof func !== "function") throw new TypeError(errorMessage); } function assertIsObject(object, errorMessage = `expected an object, instead received ${typeof object}`) { if (typeof object !== "object") throw new TypeError(errorMessage); } function assertIsArrayOfFunctions(array, errorMessage = `expected all items to be functions, instead received the following types: `) { if (!array.every((item) => typeof item === "function")) { const itemTypes = array.map((item) => typeof item === "function" ? `function ${item.name || "unnamed"}()` : typeof item).join(", "); throw new TypeError(`${errorMessage}[${itemTypes}]`); } } var ensureIsArray = (item) => { return Array.isArray(item) ? item : [item]; }; function getDependencies(createSelectorArgs) { const dependencies = Array.isArray(createSelectorArgs[0]) ? createSelectorArgs[0] : createSelectorArgs; assertIsArrayOfFunctions(dependencies, `createSelector expects all input-selectors to be functions, but received the following types: `); return dependencies; } function collectInputSelectorResults(dependencies, inputSelectorArgs) { const inputSelectorResults = []; const { length } = dependencies; for (let i = 0; i < length; i++) inputSelectorResults.push(dependencies[i].apply(null, inputSelectorArgs)); return inputSelectorResults; } var getDevModeChecksExecutionInfo = (firstRun, devModeChecks) => { const { identityFunctionCheck, inputStabilityCheck } = { ...globalDevModeChecks, ...devModeChecks }; return { identityFunctionCheck: { shouldRun: identityFunctionCheck === "always" || identityFunctionCheck === "once" && firstRun, run: runIdentityFunctionCheck }, inputStabilityCheck: { shouldRun: inputStabilityCheck === "always" || inputStabilityCheck === "once" && firstRun, run: runInputStabilityCheck } }; }; var StrongRef = class { constructor(value) { this.value = value; } deref() { return this.value; } }; var Ref = typeof WeakRef !== "undefined" ? WeakRef : StrongRef; var UNTERMINATED = 0; var TERMINATED = 1; function createCacheNode() { return { s: UNTERMINATED, v: void 0, o: null, p: null }; } function weakMapMemoize(func, options = {}) { let fnNode = createCacheNode(); const { resultEqualityCheck } = options; let lastResult; let resultsCount = 0; function memoized() { let cacheNode = fnNode; const { length } = arguments; for (let i = 0, l = length; i < l; i++) { const arg = arguments[i]; if (typeof arg === "function" || typeof arg === "object" && arg !== null) { let objectCache = cacheNode.o; if (objectCache === null) cacheNode.o = objectCache = /* @__PURE__ */ new WeakMap(); const objectNode = objectCache.get(arg); if (objectNode === void 0) { cacheNode = createCacheNode(); objectCache.set(arg, cacheNode); } else cacheNode = objectNode; } else { let primitiveCache = cacheNode.p; if (primitiveCache === null) cacheNode.p = primitiveCache = /* @__PURE__ */ new Map(); const primitiveNode = primitiveCache.get(arg); if (primitiveNode === void 0) { cacheNode = createCacheNode(); primitiveCache.set(arg, cacheNode); } else cacheNode = primitiveNode; } } const terminatedNode = cacheNode; let result; if (cacheNode.s === TERMINATED) result = cacheNode.v; else { result = func.apply(null, arguments); resultsCount++; if (resultEqualityCheck) { const lastResultValue = lastResult?.deref?.() ?? lastResult; if (lastResultValue != null && resultEqualityCheck(lastResultValue, result)) { result = lastResultValue; resultsCount !== 0 && resultsCount--; } lastResult = typeof result === "object" && result !== null || typeof result === "function" ? new Ref(result) : result; } } terminatedNode.s = TERMINATED; terminatedNode.v = result; return result; } memoized.clearCache = () => { fnNode = createCacheNode(); memoized.resetResultsCount(); }; memoized.resultsCount = () => resultsCount; memoized.resetResultsCount = () => { resultsCount = 0; }; return memoized; } function createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) { const createSelectorCreatorOptions = typeof memoizeOrOptions === "function" ? { memoize: memoizeOrOptions, memoizeOptions: memoizeOptionsFromArgs } : memoizeOrOptions; const createSelector2 = (...createSelectorArgs) => { let recomputations = 0; let dependencyRecomputations = 0; let lastResult; let directlyPassedOptions = {}; let resultFunc = createSelectorArgs.pop(); if (typeof resultFunc === "object") { directlyPassedOptions = resultFunc; resultFunc = createSelectorArgs.pop(); } assertIsFunction(resultFunc, `createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`); const { memoize, memoizeOptions = [], argsMemoize = weakMapMemoize, argsMemoizeOptions = [], devModeChecks = {} } = { ...createSelectorCreatorOptions, ...directlyPassedOptions }; const finalMemoizeOptions = ensureIsArray(memoizeOptions); const finalArgsMemoizeOptions = ensureIsArray(argsMemoizeOptions); const dependencies = getDependencies(createSelectorArgs); const memoizedResultFunc = memoize(function recomputationWrapper() { recomputations++; return resultFunc.apply(null, arguments); }, ...finalMemoizeOptions); let firstRun = true; const selector = argsMemoize(function dependenciesChecker() { dependencyRecomputations++; const inputSelectorResults = collectInputSelectorResults(dependencies, arguments); lastResult = memoizedResultFunc.apply(null, inputSelectorResults); { const { identityFunctionCheck, inputStabilityCheck } = getDevModeChecksExecutionInfo(firstRun, devModeChecks); if (identityFunctionCheck.shouldRun) identityFunctionCheck.run(resultFunc, inputSelectorResults, lastResult); if (inputStabilityCheck.shouldRun) { const inputSelectorResultsCopy = collectInputSelectorResults(dependencies, arguments); inputStabilityCheck.run({ inputSelectorResults, inputSelectorResultsCopy }, { memoize, memoizeOptions: finalMemoizeOptions }, arguments); } if (firstRun) firstRun = false; } return lastResult; }, ...finalArgsMemoizeOptions); return Object.assign(selector, { resultFunc, memoizedResultFunc, dependencies, dependencyRecomputations: () => dependencyRecomputations, resetDependencyRecomputations: () => { dependencyRecomputations = 0; }, lastResult: () => lastResult, recomputations: () => recomputations, resetRecomputations: () => { recomputations = 0; }, memoize, argsMemoize }); }; Object.assign(createSelector2, { withTypes: () => createSelector2 }); return createSelector2; } var createSelector = /* @__PURE__ */ createSelectorCreator(weakMapMemoize); var createStructuredSelector = Object.assign((inputSelectorsObject, selectorCreator = createSelector) => { assertIsObject(inputSelectorsObject, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof inputSelectorsObject}`); const inputSelectorKeys = Object.keys(inputSelectorsObject); return selectorCreator(inputSelectorKeys.map((key) => inputSelectorsObject[key]), (...inputSelectorResults) => { return inputSelectorResults.reduce((composition, value, index) => { composition[inputSelectorKeys[index]] = value; return composition; }, {}); }); }, { withTypes: () => createStructuredSelector }); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/compareValues.js var require_compareValues = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function getPriority(a) { if (typeof a === "symbol") return 1; if (a === null) return 2; if (a === void 0) return 3; if (a !== a) return 4; return 0; } var compareValues = (a, b, order) => { if (a !== b) { const aPriority = getPriority(a); const bPriority = getPriority(b); if (aPriority === bPriority && aPriority === 0) { if (a < b) return order === "desc" ? 1 : -1; if (a > b) return order === "desc" ? -1 : 1; } return order === "desc" ? bPriority - aPriority : aPriority - bPriority; } return 0; }; exports.compareValues = compareValues; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js var require_isSymbol = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function isSymbol(value) { return typeof value === "symbol" || value instanceof Symbol; } exports.isSymbol = isSymbol; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/isKey.js var require_isKey = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isSymbol = require_isSymbol(); var regexIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; var regexIsPlainProp = /^\w*$/; function isKey(value, object) { if (Array.isArray(value)) return false; if (typeof value === "number" || typeof value === "boolean" || value == null || isSymbol.isSymbol(value)) return true; return typeof value === "string" && (regexIsPlainProp.test(value) || !regexIsDeepProp.test(value)) || object != null && Object.hasOwn(object, value); } exports.isKey = isKey; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/array/orderBy.js var require_orderBy = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var compareValues = require_compareValues(); var isKey = require_isKey(); var toPath = require_toPath(); function orderBy(collection, criteria, orders, guard) { if (collection == null) return []; orders = guard ? void 0 : orders; if (!Array.isArray(collection)) collection = Object.values(collection); if (!Array.isArray(criteria)) criteria = criteria == null ? [null] : [criteria]; if (criteria.length === 0) criteria = [null]; if (!Array.isArray(orders)) orders = orders == null ? [] : [orders]; orders = orders.map((order) => String(order)); const getValueByNestedPath = (object, path) => { let target = object; for (let i = 0; i < path.length && target != null; ++i) target = target[path[i]]; return target; }; const getValueByCriterion = (criterion, object) => { if (object == null || criterion == null) return object; if (typeof criterion === "object" && "key" in criterion) { if (Object.hasOwn(object, criterion.key)) return object[criterion.key]; return getValueByNestedPath(object, criterion.path); } if (typeof criterion === "function") return criterion(object); if (Array.isArray(criterion)) return getValueByNestedPath(object, criterion); if (typeof object === "object") return object[criterion]; return object; }; const preparedCriteria = criteria.map((criterion) => { if (Array.isArray(criterion) && criterion.length === 1) criterion = criterion[0]; if (criterion == null || typeof criterion === "function" || Array.isArray(criterion) || isKey.isKey(criterion)) return criterion; return { key: criterion, path: toPath.toPath(criterion) }; }); return collection.map((item) => ({ original: item, criteria: preparedCriteria.map((criterion) => getValueByCriterion(criterion, item)) })).slice().sort((a, b) => { for (let i = 0; i < preparedCriteria.length; i++) { const comparedResult = compareValues.compareValues(a.criteria[i], b.criteria[i], orders[i]); if (comparedResult !== 0) return comparedResult; } return 0; }).map((item) => item.original); } exports.orderBy = orderBy; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/array/flatten.js var require_flatten$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function flatten(arr, depth = 1) { const result = []; const flooredDepth = Math.floor(depth); const recursive = (arr, currentDepth) => { for (let i = 0; i < arr.length; i++) { const item = arr[i]; if (Array.isArray(item) && currentDepth < flooredDepth) recursive(item, currentDepth + 1); else result.push(item); } }; recursive(arr, 0); return result; } exports.flatten = flatten; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js var require_isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isIndex = require_isIndex(); var isArrayLike = require_isArrayLike(); var isObject = require_isObject(); var isEqualsSameValueZero = require_isEqualsSameValueZero(); function isIterateeCall(value, index, object) { if (!isObject.isObject(object)) return false; if (typeof index === "number" && isArrayLike.isArrayLike(object) && isIndex.isIndex(index) && index < object.length || typeof index === "string" && index in object) return isEqualsSameValueZero.isEqualsSameValueZero(object[index], value); return false; } exports.isIterateeCall = isIterateeCall; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/array/sortBy.js var require_sortBy$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var orderBy = require_orderBy(); var flatten = require_flatten$1(); var isIterateeCall = require_isIterateeCall(); function sortBy(collection, ...criteria) { const length = criteria.length; if (length > 1 && isIterateeCall.isIterateeCall(collection, criteria[0], criteria[1])) criteria = []; else if (length > 2 && isIterateeCall.isIterateeCall(criteria[0], criteria[1], criteria[2])) criteria = [criteria[0]]; return orderBy.orderBy(collection, flatten.flatten(criteria), ["asc"]); } exports.sortBy = sortBy; })); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/legendSelectors.js var import_sortBy = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = require_sortBy$1().sortBy; })))()); var selectLegendSettings = (state) => state.legend.settings; var selectLegendSize = (state) => state.legend.size; var selectAllLegendPayload2DArray = (state) => state.legend.payload; var selectLegendPayload = createSelector([selectAllLegendPayload2DArray, selectLegendSettings], (payloads, _ref) => { var { itemSorter } = _ref; var flat = payloads.flat(1); return itemSorter ? (0, import_sortBy.default)(flat, itemSorter) : flat; }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/context/legendPayloadContext.js /** * Use this hook in Legend, or anywhere else where you want to read the current Legend items. * @return all Legend items ready to be rendered */ function useLegendPayload() { return useAppSelector(selectLegendPayload); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/useElementOffset.js var EPS = 1; /** * TODO this documentation does not reflect what this hook is doing, update it. * Stores the `offsetHeight`, `offsetLeft`, `offsetTop`, and `offsetWidth` of a DOM element. */ /** * Use this to listen to element layout changes. * * Very useful for reading actual sizes of DOM elements relative to the viewport. * * @param extraDependencies use this to trigger new DOM dimensions read when any of these change. Good for things like payload and label, that will re-render something down in the children array, but you want to read the layout box of a parent. * @returns [lastElementOffset, updateElementOffset] most recent value, and setter. Pass the setter to a DOM element ref like this: `
` */ function useElementOffset() { var extraDependencies = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; var [lastBoundingBox, setLastBoundingBox] = (0, import_react.useState)({ height: 0, left: 0, top: 0, width: 0 }); return [lastBoundingBox, (0, import_react.useCallback)((node) => { if (node != null) { var rect = node.getBoundingClientRect(); var box = { height: rect.height, left: rect.left, top: rect.top, width: rect.width }; if (Math.abs(box.height - lastBoundingBox.height) > EPS || Math.abs(box.left - lastBoundingBox.left) > EPS || Math.abs(box.top - lastBoundingBox.top) > EPS || Math.abs(box.width - lastBoundingBox.width) > EPS) setLastBoundingBox({ height: box.height, left: box.left, top: box.top, width: box.width }); } }, [ lastBoundingBox.width, lastBoundingBox.height, lastBoundingBox.top, lastBoundingBox.left, ...extraDependencies ])]; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/redux-npm-5.0.1-f8e6b1cb23-10c0.zip/node_modules/redux/dist/redux.mjs var symbol_observable_default = typeof Symbol === "function" && Symbol.observable || "@@observable"; var randomString = () => Math.random().toString(36).substring(7).split("").join("."); var actionTypes_default = { INIT: `@@redux/INIT${/* @__PURE__ */ randomString()}`, REPLACE: `@@redux/REPLACE${/* @__PURE__ */ randomString()}`, PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}` }; function isPlainObject$3(obj) { if (typeof obj !== "object" || obj === null) return false; let proto = obj; while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto); return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null; } function miniKindOf(val) { if (val === void 0) return "undefined"; if (val === null) return "null"; const type = typeof val; switch (type) { case "boolean": case "string": case "number": case "symbol": case "function": return type; } if (Array.isArray(val)) return "array"; if (isDate(val)) return "date"; if (isError(val)) return "error"; const constructorName = ctorName(val); switch (constructorName) { case "Symbol": case "Promise": case "WeakMap": case "WeakSet": case "Map": case "Set": return constructorName; } return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\s/g, ""); } function ctorName(val) { return typeof val.constructor === "function" ? val.constructor.name : null; } function isError(val) { return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number"; } function isDate(val) { if (val instanceof Date) return true; return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function"; } function kindOf(val) { let typeOfVal = typeof val; typeOfVal = miniKindOf(val); return typeOfVal; } function createStore(reducer, preloadedState, enhancer) { if (typeof reducer !== "function") throw new Error(`Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`); if (typeof preloadedState === "function" && typeof enhancer === "function" || typeof enhancer === "function" && typeof arguments[3] === "function") throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example."); if (typeof preloadedState === "function" && typeof enhancer === "undefined") { enhancer = preloadedState; preloadedState = void 0; } if (typeof enhancer !== "undefined") { if (typeof enhancer !== "function") throw new Error(`Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`); return enhancer(createStore)(reducer, preloadedState); } let currentReducer = reducer; let currentState = preloadedState; let currentListeners = /* @__PURE__ */ new Map(); let nextListeners = currentListeners; let listenerIdCounter = 0; let isDispatching = false; function ensureCanMutateNextListeners() { if (nextListeners === currentListeners) { nextListeners = /* @__PURE__ */ new Map(); currentListeners.forEach((listener, key) => { nextListeners.set(key, listener); }); } } function getState() { if (isDispatching) throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store."); return currentState; } function subscribe(listener) { if (typeof listener !== "function") throw new Error(`Expected the listener to be a function. Instead, received: '${kindOf(listener)}'`); if (isDispatching) throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details."); let isSubscribed = true; ensureCanMutateNextListeners(); const listenerId = listenerIdCounter++; nextListeners.set(listenerId, listener); return function unsubscribe() { if (!isSubscribed) return; if (isDispatching) throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); isSubscribed = false; ensureCanMutateNextListeners(); nextListeners.delete(listenerId); currentListeners = null; }; } function dispatch(action) { if (!isPlainObject$3(action)) throw new Error(`Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`); if (typeof action.type === "undefined") throw new Error("Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant."); if (typeof action.type !== "string") throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`); if (isDispatching) throw new Error("Reducers may not dispatch actions."); try { isDispatching = true; currentState = currentReducer(currentState, action); } finally { isDispatching = false; } (currentListeners = nextListeners).forEach((listener) => { listener(); }); return action; } function replaceReducer(nextReducer) { if (typeof nextReducer !== "function") throw new Error(`Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`); currentReducer = nextReducer; dispatch({ type: actionTypes_default.REPLACE }); } function observable() { const outerSubscribe = subscribe; return { subscribe(observer) { if (typeof observer !== "object" || observer === null) throw new Error(`Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`); function observeState() { const observerAsObserver = observer; if (observerAsObserver.next) observerAsObserver.next(getState()); } observeState(); return { unsubscribe: outerSubscribe(observeState) }; }, [symbol_observable_default]() { return this; } }; } dispatch({ type: actionTypes_default.INIT }); return { dispatch, subscribe, getState, replaceReducer, [symbol_observable_default]: observable }; } function warning(message) { if (typeof console !== "undefined" && typeof console.error === "function") console.error(message); try { throw new Error(message); } catch (e) {} } function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { const reducerKeys = Object.keys(reducers); const argumentName = action && action.type === actionTypes_default.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer"; if (reducerKeys.length === 0) return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers."; if (!isPlainObject$3(inputState)) return `The ${argumentName} has unexpected type of "${kindOf(inputState)}". Expected argument to be an object with the following keys: "${reducerKeys.join("\", \"")}"`; const unexpectedKeys = Object.keys(inputState).filter((key) => !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]); unexpectedKeys.forEach((key) => { unexpectedKeyCache[key] = true; }); if (action && action.type === actionTypes_default.REPLACE) return; if (unexpectedKeys.length > 0) return `Unexpected ${unexpectedKeys.length > 1 ? "keys" : "key"} "${unexpectedKeys.join("\", \"")}" found in ${argumentName}. Expected to find one of the known reducer keys instead: "${reducerKeys.join("\", \"")}". Unexpected keys will be ignored.`; } function assertReducerShape(reducers) { Object.keys(reducers).forEach((key) => { const reducer = reducers[key]; if (typeof reducer(void 0, { type: actionTypes_default.INIT }) === "undefined") throw new Error(`The slice reducer for key "${key}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`); if (typeof reducer(void 0, { type: actionTypes_default.PROBE_UNKNOWN_ACTION() }) === "undefined") throw new Error(`The slice reducer for key "${key}" returned undefined when probed with a random type. Don't try to handle '${actionTypes_default.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`); }); } function combineReducers(reducers) { const reducerKeys = Object.keys(reducers); const finalReducers = {}; for (let i = 0; i < reducerKeys.length; i++) { const key = reducerKeys[i]; if (typeof reducers[key] === "undefined") warning(`No reducer provided for key "${key}"`); if (typeof reducers[key] === "function") finalReducers[key] = reducers[key]; } const finalReducerKeys = Object.keys(finalReducers); let unexpectedKeyCache = {}; let shapeAssertionError; try { assertReducerShape(finalReducers); } catch (e) { shapeAssertionError = e; } return function combination(state = {}, action) { if (shapeAssertionError) throw shapeAssertionError; { const warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); if (warningMessage) warning(warningMessage); } let hasChanged = false; const nextState = {}; for (let i = 0; i < finalReducerKeys.length; i++) { const key = finalReducerKeys[i]; const reducer = finalReducers[key]; const previousStateForKey = state[key]; const nextStateForKey = reducer(previousStateForKey, action); if (typeof nextStateForKey === "undefined") { const actionType = action && action.type; throw new Error(`When called with an action of type ${actionType ? `"${String(actionType)}"` : "(unknown type)"}, the slice reducer for key "${key}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`); } nextState[key] = nextStateForKey; hasChanged = hasChanged || nextStateForKey !== previousStateForKey; } hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; return hasChanged ? nextState : state; }; } function compose(...funcs) { if (funcs.length === 0) return (arg) => arg; if (funcs.length === 1) return funcs[0]; return funcs.reduce((a, b) => (...args) => a(b(...args))); } function applyMiddleware(...middlewares) { return (createStore2) => (reducer, preloadedState) => { const store = createStore2(reducer, preloadedState); let dispatch = () => { throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch."); }; const middlewareAPI = { getState: store.getState, dispatch: (action, ...args) => dispatch(action, ...args) }; dispatch = compose(...middlewares.map((middleware) => middleware(middlewareAPI)))(store.dispatch); return { ...store, dispatch }; }; } function isAction(action) { return isPlainObject$3(action) && "type" in action && typeof action.type === "string"; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/immer-npm-11.1.4-9feafa681e-10c0.zip/node_modules/immer/dist/immer.mjs var NOTHING$1 = Symbol.for("immer-nothing"); var DRAFTABLE$1 = Symbol.for("immer-draftable"); var DRAFT_STATE$1 = Symbol.for("immer-state"); var errors$1 = [ function(plugin) { return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`; }, function(thing) { return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${thing}'`; }, "This object has been frozen and should not be mutated", function(data) { return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + data; }, "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.", "Immer forbids circular references", "The first or second argument to `produce` must be a function", "The third argument to `produce` must be a function or undefined", "First argument to `createDraft` must be a plain object, an array, or an immerable object", "First argument to `finishDraft` must be a draft returned by `createDraft`", function(thing) { return `'current' expects a draft, got: ${thing}`; }, "Object.defineProperty() cannot be used on an Immer draft", "Object.setPrototypeOf() cannot be used on an Immer draft", "Immer only supports deleting array indices", "Immer only supports setting array indices and the 'length' property", function(thing) { return `'original' expects a draft, got: ${thing}`; } ]; function die$1(error, ...args) { { const e = errors$1[error]; const msg = isFunction(e) ? e.apply(null, args) : e; throw new Error(`[Immer] ${msg}`); } throw new Error(`[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`); } var O = Object; var getPrototypeOf$1 = O.getPrototypeOf; var CONSTRUCTOR = "constructor"; var PROTOTYPE = "prototype"; var CONFIGURABLE = "configurable"; var ENUMERABLE = "enumerable"; var WRITABLE = "writable"; var VALUE = "value"; var isDraft$1 = (value) => !!value && !!value[DRAFT_STATE$1]; function isDraftable$1(value) { if (!value) return false; return isPlainObject$2(value) || isArray(value) || !!value[DRAFTABLE$1] || !!value[CONSTRUCTOR]?.[DRAFTABLE$1] || isMap$1(value) || isSet$1(value); } var objectCtorString$1 = O[PROTOTYPE][CONSTRUCTOR].toString(); var cachedCtorStrings$1 = /* @__PURE__ */ new WeakMap(); function isPlainObject$2(value) { if (!value || !isObjectish(value)) return false; const proto = getPrototypeOf$1(value); if (proto === null || proto === O[PROTOTYPE]) return true; const Ctor = O.hasOwnProperty.call(proto, CONSTRUCTOR) && proto[CONSTRUCTOR]; if (Ctor === Object) return true; if (!isFunction(Ctor)) return false; let ctorString = cachedCtorStrings$1.get(Ctor); if (ctorString === void 0) { ctorString = Function.toString.call(Ctor); cachedCtorStrings$1.set(Ctor, ctorString); } return ctorString === objectCtorString$1; } function each$1(obj, iter, strict = true) { if (getArchtype$1(obj) === 0) (strict ? Reflect.ownKeys(obj) : O.keys(obj)).forEach((key) => { iter(key, obj[key], obj); }); else obj.forEach((entry, index) => iter(index, entry, obj)); } function getArchtype$1(thing) { const state = thing[DRAFT_STATE$1]; return state ? state.type_ : isArray(thing) ? 1 : isMap$1(thing) ? 2 : isSet$1(thing) ? 3 : 0; } var has$1 = (thing, prop, type = getArchtype$1(thing)) => type === 2 ? thing.has(prop) : O[PROTOTYPE].hasOwnProperty.call(thing, prop); var get$7 = (thing, prop, type = getArchtype$1(thing)) => type === 2 ? thing.get(prop) : thing[prop]; var set$1 = (thing, propOrOldValue, value, type = getArchtype$1(thing)) => { if (type === 2) thing.set(propOrOldValue, value); else if (type === 3) thing.add(value); else thing[propOrOldValue] = value; }; function is$2(x, y) { if (x === y) return x !== 0 || 1 / x === 1 / y; else return x !== x && y !== y; } var isArray = Array.isArray; var isMap$1 = (target) => target instanceof Map; var isSet$1 = (target) => target instanceof Set; var isObjectish = (target) => typeof target === "object"; var isFunction = (target) => typeof target === "function"; var isBoolean$1 = (target) => typeof target === "boolean"; function isArrayIndex(value) { const n = +value; return Number.isInteger(n) && String(n) === value; } var latest$1 = (state) => state.copy_ || state.base_; var getFinalValue = (state) => state.modified_ ? state.copy_ : state.base_; function shallowCopy$1(base, strict) { if (isMap$1(base)) return new Map(base); if (isSet$1(base)) return new Set(base); if (isArray(base)) return Array[PROTOTYPE].slice.call(base); const isPlain = isPlainObject$2(base); if (strict === true || strict === "class_only" && !isPlain) { const descriptors = O.getOwnPropertyDescriptors(base); delete descriptors[DRAFT_STATE$1]; let keys = Reflect.ownKeys(descriptors); for (let i = 0; i < keys.length; i++) { const key = keys[i]; const desc = descriptors[key]; if (desc[WRITABLE] === false) { desc[WRITABLE] = true; desc[CONFIGURABLE] = true; } if (desc.get || desc.set) descriptors[key] = { [CONFIGURABLE]: true, [WRITABLE]: true, [ENUMERABLE]: desc[ENUMERABLE], [VALUE]: base[key] }; } return O.create(getPrototypeOf$1(base), descriptors); } else { const proto = getPrototypeOf$1(base); if (proto !== null && isPlain) return { ...base }; const obj = O.create(proto); return O.assign(obj, base); } } function freeze$1(obj, deep = false) { if (isFrozen$1(obj) || isDraft$1(obj) || !isDraftable$1(obj)) return obj; if (getArchtype$1(obj) > 1) O.defineProperties(obj, { set: dontMutateMethodOverride$1, add: dontMutateMethodOverride$1, clear: dontMutateMethodOverride$1, delete: dontMutateMethodOverride$1 }); O.freeze(obj); if (deep) each$1(obj, (_key, value) => { freeze$1(value, true); }, false); return obj; } function dontMutateFrozenCollections$1() { die$1(2); } var dontMutateMethodOverride$1 = { [VALUE]: dontMutateFrozenCollections$1 }; function isFrozen$1(obj) { if (obj === null || !isObjectish(obj)) return true; return O.isFrozen(obj); } var PluginMapSet = "MapSet"; var PluginPatches = "Patches"; var PluginArrayMethods = "ArrayMethods"; var plugins$1 = {}; function getPlugin$1(pluginKey) { const plugin = plugins$1[pluginKey]; if (!plugin) die$1(0, pluginKey); return plugin; } var isPluginLoaded = (pluginKey) => !!plugins$1[pluginKey]; var currentScope$1; var getCurrentScope$1 = () => currentScope$1; var createScope$1 = (parent_, immer_) => ({ drafts_: [], parent_, immer_, canAutoFreeze_: true, unfinalizedDrafts_: 0, handledSet_: /* @__PURE__ */ new Set(), processedForPatches_: /* @__PURE__ */ new Set(), mapSetPlugin_: isPluginLoaded(PluginMapSet) ? getPlugin$1(PluginMapSet) : void 0, arrayMethodsPlugin_: isPluginLoaded(PluginArrayMethods) ? getPlugin$1(PluginArrayMethods) : void 0 }); function usePatchesInScope$1(scope, patchListener) { if (patchListener) { scope.patchPlugin_ = getPlugin$1(PluginPatches); scope.patches_ = []; scope.inversePatches_ = []; scope.patchListener_ = patchListener; } } function revokeScope$1(scope) { leaveScope$1(scope); scope.drafts_.forEach(revokeDraft$1); scope.drafts_ = null; } function leaveScope$1(scope) { if (scope === currentScope$1) currentScope$1 = scope.parent_; } var enterScope$1 = (immer2) => currentScope$1 = createScope$1(currentScope$1, immer2); function revokeDraft$1(draft) { const state = draft[DRAFT_STATE$1]; if (state.type_ === 0 || state.type_ === 1) state.revoke_(); else state.revoked_ = true; } function processResult$1(result, scope) { scope.unfinalizedDrafts_ = scope.drafts_.length; const baseDraft = scope.drafts_[0]; if (result !== void 0 && result !== baseDraft) { if (baseDraft[DRAFT_STATE$1].modified_) { revokeScope$1(scope); die$1(4); } if (isDraftable$1(result)) result = finalize$1(scope, result); const { patchPlugin_ } = scope; if (patchPlugin_) patchPlugin_.generateReplacementPatches_(baseDraft[DRAFT_STATE$1].base_, result, scope); } else result = finalize$1(scope, baseDraft); maybeFreeze$1(scope, result, true); revokeScope$1(scope); if (scope.patches_) scope.patchListener_(scope.patches_, scope.inversePatches_); return result !== NOTHING$1 ? result : void 0; } function finalize$1(rootScope, value) { if (isFrozen$1(value)) return value; const state = value[DRAFT_STATE$1]; if (!state) return handleValue(value, rootScope.handledSet_, rootScope); if (!isSameScope(state, rootScope)) return value; if (!state.modified_) return state.base_; if (!state.finalized_) { const { callbacks_ } = state; if (callbacks_) while (callbacks_.length > 0) callbacks_.pop()(rootScope); generatePatchesAndFinalize(state, rootScope); } return state.copy_; } function maybeFreeze$1(scope, value, deep = false) { if (!scope.parent_ && scope.immer_.autoFreeze_ && scope.canAutoFreeze_) freeze$1(value, deep); } function markStateFinalized(state) { state.finalized_ = true; state.scope_.unfinalizedDrafts_--; } var isSameScope = (state, rootScope) => state.scope_ === rootScope; var EMPTY_LOCATIONS_RESULT = []; function updateDraftInParent(parent, draftValue, finalizedValue, originalKey) { const parentCopy = latest$1(parent); const parentType = parent.type_; if (originalKey !== void 0) { if (get$7(parentCopy, originalKey, parentType) === draftValue) { set$1(parentCopy, originalKey, finalizedValue, parentType); return; } } if (!parent.draftLocations_) { const draftLocations = parent.draftLocations_ = /* @__PURE__ */ new Map(); each$1(parentCopy, (key, value) => { if (isDraft$1(value)) { const keys = draftLocations.get(value) || []; keys.push(key); draftLocations.set(value, keys); } }); } const locations = parent.draftLocations_.get(draftValue) ?? EMPTY_LOCATIONS_RESULT; for (const location of locations) set$1(parentCopy, location, finalizedValue, parentType); } function registerChildFinalizationCallback(parent, child, key) { parent.callbacks_.push(function childCleanup(rootScope) { const state = child; if (!state || !isSameScope(state, rootScope)) return; rootScope.mapSetPlugin_?.fixSetContents(state); const finalizedValue = getFinalValue(state); updateDraftInParent(parent, state.draft_ ?? state, finalizedValue, key); generatePatchesAndFinalize(state, rootScope); }); } function generatePatchesAndFinalize(state, rootScope) { if (state.modified_ && !state.finalized_ && (state.type_ === 3 || state.type_ === 1 && state.allIndicesReassigned_ || (state.assigned_?.size ?? 0) > 0)) { const { patchPlugin_ } = rootScope; if (patchPlugin_) { const basePath = patchPlugin_.getPath(state); if (basePath) patchPlugin_.generatePatches_(state, basePath, rootScope); } markStateFinalized(state); } } function handleCrossReference(target, key, value) { const { scope_ } = target; if (isDraft$1(value)) { const state = value[DRAFT_STATE$1]; if (isSameScope(state, scope_)) state.callbacks_.push(function crossReferenceCleanup() { prepareCopy$1(target); updateDraftInParent(target, value, getFinalValue(state), key); }); } else if (isDraftable$1(value)) target.callbacks_.push(function nestedDraftCleanup() { const targetCopy = latest$1(target); if (target.type_ === 3) { if (targetCopy.has(value)) handleValue(value, scope_.handledSet_, scope_); } else if (get$7(targetCopy, key, target.type_) === value) { if (scope_.drafts_.length > 1 && (target.assigned_.get(key) ?? false) === true && target.copy_) handleValue(get$7(target.copy_, key, target.type_), scope_.handledSet_, scope_); } }); } function handleValue(target, handledSet, rootScope) { if (!rootScope.immer_.autoFreeze_ && rootScope.unfinalizedDrafts_ < 1) return target; if (isDraft$1(target) || handledSet.has(target) || !isDraftable$1(target) || isFrozen$1(target)) return target; handledSet.add(target); each$1(target, (key, value) => { if (isDraft$1(value)) { const state = value[DRAFT_STATE$1]; if (isSameScope(state, rootScope)) { set$1(target, key, getFinalValue(state), target.type_); markStateFinalized(state); } } else if (isDraftable$1(value)) handleValue(value, handledSet, rootScope); }); return target; } function createProxyProxy$1(base, parent) { const baseIsArray = isArray(base); const state = { type_: baseIsArray ? 1 : 0, scope_: parent ? parent.scope_ : getCurrentScope$1(), modified_: false, finalized_: false, assigned_: void 0, parent_: parent, base_: base, draft_: null, copy_: null, revoke_: null, isManual_: false, callbacks_: void 0 }; let target = state; let traps = objectTraps$1; if (baseIsArray) { target = [state]; traps = arrayTraps$1; } const { revoke, proxy } = Proxy.revocable(target, traps); state.draft_ = proxy; state.revoke_ = revoke; return [proxy, state]; } var objectTraps$1 = { get(state, prop) { if (prop === DRAFT_STATE$1) return state; let arrayPlugin = state.scope_.arrayMethodsPlugin_; const isArrayWithStringProp = state.type_ === 1 && typeof prop === "string"; if (isArrayWithStringProp) { if (arrayPlugin?.isArrayOperationMethod(prop)) return arrayPlugin.createMethodInterceptor(state, prop); } const source = latest$1(state); if (!has$1(source, prop, state.type_)) return readPropFromProto$1(state, source, prop); const value = source[prop]; if (state.finalized_ || !isDraftable$1(value)) return value; if (isArrayWithStringProp && state.operationMethod && arrayPlugin?.isMutatingArrayMethod(state.operationMethod) && isArrayIndex(prop)) return value; if (value === peek$1(state.base_, prop)) { prepareCopy$1(state); const childKey = state.type_ === 1 ? +prop : prop; const childDraft = createProxy$1(state.scope_, value, state, childKey); return state.copy_[childKey] = childDraft; } return value; }, has(state, prop) { return prop in latest$1(state); }, ownKeys(state) { return Reflect.ownKeys(latest$1(state)); }, set(state, prop, value) { const desc = getDescriptorFromProto$1(latest$1(state), prop); if (desc?.set) { desc.set.call(state.draft_, value); return true; } if (!state.modified_) { const current2 = peek$1(latest$1(state), prop); const currentState = current2?.[DRAFT_STATE$1]; if (currentState && currentState.base_ === value) { state.copy_[prop] = value; state.assigned_.set(prop, false); return true; } if (is$2(value, current2) && (value !== void 0 || has$1(state.base_, prop, state.type_))) return true; prepareCopy$1(state); markChanged$1(state); } if (state.copy_[prop] === value && (value !== void 0 || prop in state.copy_) || Number.isNaN(value) && Number.isNaN(state.copy_[prop])) return true; state.copy_[prop] = value; state.assigned_.set(prop, true); handleCrossReference(state, prop, value); return true; }, deleteProperty(state, prop) { prepareCopy$1(state); if (peek$1(state.base_, prop) !== void 0 || prop in state.base_) { state.assigned_.set(prop, false); markChanged$1(state); } else state.assigned_.delete(prop); if (state.copy_) delete state.copy_[prop]; return true; }, getOwnPropertyDescriptor(state, prop) { const owner = latest$1(state); const desc = Reflect.getOwnPropertyDescriptor(owner, prop); if (!desc) return desc; return { [WRITABLE]: true, [CONFIGURABLE]: state.type_ !== 1 || prop !== "length", [ENUMERABLE]: desc[ENUMERABLE], [VALUE]: owner[prop] }; }, defineProperty() { die$1(11); }, getPrototypeOf(state) { return getPrototypeOf$1(state.base_); }, setPrototypeOf() { die$1(12); } }; var arrayTraps$1 = {}; for (let key in objectTraps$1) { let fn = objectTraps$1[key]; arrayTraps$1[key] = function() { const args = arguments; args[0] = args[0][0]; return fn.apply(this, args); }; } arrayTraps$1.deleteProperty = function(state, prop) { if (isNaN(parseInt(prop))) die$1(13); return arrayTraps$1.set.call(this, state, prop, void 0); }; arrayTraps$1.set = function(state, prop, value) { if (prop !== "length" && isNaN(parseInt(prop))) die$1(14); return objectTraps$1.set.call(this, state[0], prop, value, state[0]); }; function peek$1(draft, prop) { const state = draft[DRAFT_STATE$1]; return (state ? latest$1(state) : draft)[prop]; } function readPropFromProto$1(state, source, prop) { const desc = getDescriptorFromProto$1(source, prop); return desc ? VALUE in desc ? desc[VALUE] : desc.get?.call(state.draft_) : void 0; } function getDescriptorFromProto$1(source, prop) { if (!(prop in source)) return void 0; let proto = getPrototypeOf$1(source); while (proto) { const desc = Object.getOwnPropertyDescriptor(proto, prop); if (desc) return desc; proto = getPrototypeOf$1(proto); } } function markChanged$1(state) { if (!state.modified_) { state.modified_ = true; if (state.parent_) markChanged$1(state.parent_); } } function prepareCopy$1(state) { if (!state.copy_) { state.assigned_ = /* @__PURE__ */ new Map(); state.copy_ = shallowCopy$1(state.base_, state.scope_.immer_.useStrictShallowCopy_); } } var Immer2$1 = class { constructor(config) { this.autoFreeze_ = true; this.useStrictShallowCopy_ = false; this.useStrictIteration_ = false; /** * The `produce` function takes a value and a "recipe function" (whose * return value often depends on the base state). The recipe function is * free to mutate its first argument however it wants. All mutations are * only ever applied to a __copy__ of the base state. * * Pass only a function to create a "curried producer" which relieves you * from passing the recipe function every time. * * Only plain objects and arrays are made mutable. All other objects are * considered uncopyable. * * Note: This function is __bound__ to its `Immer` instance. * * @param {any} base - the initial state * @param {Function} recipe - function that receives a proxy of the base state as first argument and which can be freely modified * @param {Function} patchListener - optional function that will be called with all the patches produced here * @returns {any} a new state, or the initial state if nothing was modified */ this.produce = (base, recipe, patchListener) => { if (isFunction(base) && !isFunction(recipe)) { const defaultBase = recipe; recipe = base; const self = this; return function curriedProduce(base2 = defaultBase, ...args) { return self.produce(base2, (draft) => recipe.call(this, draft, ...args)); }; } if (!isFunction(recipe)) die$1(6); if (patchListener !== void 0 && !isFunction(patchListener)) die$1(7); let result; if (isDraftable$1(base)) { const scope = enterScope$1(this); const proxy = createProxy$1(scope, base, void 0); let hasError = true; try { result = recipe(proxy); hasError = false; } finally { if (hasError) revokeScope$1(scope); else leaveScope$1(scope); } usePatchesInScope$1(scope, patchListener); return processResult$1(result, scope); } else if (!base || !isObjectish(base)) { result = recipe(base); if (result === void 0) result = base; if (result === NOTHING$1) result = void 0; if (this.autoFreeze_) freeze$1(result, true); if (patchListener) { const p = []; const ip = []; getPlugin$1(PluginPatches).generateReplacementPatches_(base, result, { patches_: p, inversePatches_: ip }); patchListener(p, ip); } return result; } else die$1(1, base); }; this.produceWithPatches = (base, recipe) => { if (isFunction(base)) return (state, ...args) => this.produceWithPatches(state, (draft) => base(draft, ...args)); let patches, inversePatches; return [ this.produce(base, recipe, (p, ip) => { patches = p; inversePatches = ip; }), patches, inversePatches ]; }; if (isBoolean$1(config?.autoFreeze)) this.setAutoFreeze(config.autoFreeze); if (isBoolean$1(config?.useStrictShallowCopy)) this.setUseStrictShallowCopy(config.useStrictShallowCopy); if (isBoolean$1(config?.useStrictIteration)) this.setUseStrictIteration(config.useStrictIteration); } createDraft(base) { if (!isDraftable$1(base)) die$1(8); if (isDraft$1(base)) base = current$1(base); const scope = enterScope$1(this); const proxy = createProxy$1(scope, base, void 0); proxy[DRAFT_STATE$1].isManual_ = true; leaveScope$1(scope); return proxy; } finishDraft(draft, patchListener) { const state = draft && draft[DRAFT_STATE$1]; if (!state || !state.isManual_) die$1(9); const { scope_: scope } = state; usePatchesInScope$1(scope, patchListener); return processResult$1(void 0, scope); } /** * Pass true to automatically freeze all copies created by Immer. * * By default, auto-freezing is enabled. */ setAutoFreeze(value) { this.autoFreeze_ = value; } /** * Pass true to enable strict shallow copy. * * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties. */ setUseStrictShallowCopy(value) { this.useStrictShallowCopy_ = value; } /** * Pass false to use faster iteration that skips non-enumerable properties * but still handles symbols for compatibility. * * By default, strict iteration is enabled (includes all own properties). */ setUseStrictIteration(value) { this.useStrictIteration_ = value; } shouldUseStrictIteration() { return this.useStrictIteration_; } applyPatches(base, patches) { let i; for (i = patches.length - 1; i >= 0; i--) { const patch = patches[i]; if (patch.path.length === 0 && patch.op === "replace") { base = patch.value; break; } } if (i > -1) patches = patches.slice(i + 1); const applyPatchesImpl = getPlugin$1(PluginPatches).applyPatches_; if (isDraft$1(base)) return applyPatchesImpl(base, patches); return this.produce(base, (draft) => applyPatchesImpl(draft, patches)); } }; function createProxy$1(rootScope, value, parent, key) { const [draft, state] = isMap$1(value) ? getPlugin$1(PluginMapSet).proxyMap_(value, parent) : isSet$1(value) ? getPlugin$1(PluginMapSet).proxySet_(value, parent) : createProxyProxy$1(value, parent); (parent?.scope_ ?? getCurrentScope$1()).drafts_.push(draft); state.callbacks_ = parent?.callbacks_ ?? []; state.key_ = key; if (parent && key !== void 0) registerChildFinalizationCallback(parent, state, key); else state.callbacks_.push(function rootDraftCleanup(rootScope2) { rootScope2.mapSetPlugin_?.fixSetContents(state); const { patchPlugin_ } = rootScope2; if (state.modified_ && patchPlugin_) patchPlugin_.generatePatches_(state, [], rootScope2); }); return draft; } function current$1(value) { if (!isDraft$1(value)) die$1(10, value); return currentImpl$1(value); } function currentImpl$1(value) { if (!isDraftable$1(value) || isFrozen$1(value)) return value; const state = value[DRAFT_STATE$1]; let copy; let strict = true; if (state) { if (!state.modified_) return state.base_; state.finalized_ = true; copy = shallowCopy$1(value, state.scope_.immer_.useStrictShallowCopy_); strict = state.scope_.immer_.shouldUseStrictIteration(); } else copy = shallowCopy$1(value, true); each$1(copy, (key, childValue) => { set$1(copy, key, currentImpl$1(childValue)); }, strict); if (state) state.finalized_ = false; return copy; } var produce$1 = new Immer2$1().produce; //#endregion //#region .yarn/__virtual__/redux-thunk-virtual-7eef9bfcbd/3/AppData/Local/Yarn/Berry/cache/redux-thunk-npm-3.1.0-6a8fdd3211-10c0.zip/node_modules/redux-thunk/dist/redux-thunk.mjs function createThunkMiddleware(extraArgument) { const middleware = ({ dispatch, getState }) => (next) => (action) => { if (typeof action === "function") return action(dispatch, getState, extraArgument); return next(action); }; return middleware; } var thunk = createThunkMiddleware(); var withExtraArgument = createThunkMiddleware; //#endregion //#region .yarn/__virtual__/@reduxjs-toolkit-virtual-be3b9ddb6f/3/AppData/Local/Yarn/Berry/cache/@reduxjs-toolkit-npm-2.11.2-bcb187ef4f-10c0.zip/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() { if (arguments.length === 0) return void 0; if (typeof arguments[0] === "object") return compose; return compose.apply(null, arguments); }; typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__; var hasMatchFunction = (v) => { return v && typeof v.match === "function"; }; function createAction(type, prepareAction) { function actionCreator(...args) { if (prepareAction) { let prepared = prepareAction(...args); if (!prepared) throw new Error("prepareAction did not return an object"); return { type, payload: prepared.payload, ..."meta" in prepared && { meta: prepared.meta }, ..."error" in prepared && { error: prepared.error } }; } return { type, payload: args[0] }; } actionCreator.toString = () => `${type}`; actionCreator.type = type; actionCreator.match = (action) => isAction(action) && action.type === type; return actionCreator; } function isActionCreator(action) { return typeof action === "function" && "type" in action && hasMatchFunction(action); } function getMessage(type) { const splitType = type ? `${type}`.split("/") : []; const actionName = splitType[splitType.length - 1] || "actionCreator"; return `Detected an action creator with type "${type || "unknown"}" being dispatched. Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${actionName}())\` instead of \`dispatch(${actionName})\`. This is necessary even if the action has no payload.`; } function createActionCreatorInvariantMiddleware(options = {}) { const { isActionCreator: isActionCreator2 = isActionCreator } = options; return () => (next) => (action) => { if (isActionCreator2(action)) console.warn(getMessage(action.type)); return next(action); }; } function getTimeMeasureUtils(maxDelay, fnName) { let elapsed = 0; return { measureTime(fn) { const started = Date.now(); try { return fn(); } finally { elapsed += Date.now() - started; } }, warnIfExceeded() { if (elapsed > maxDelay) console.warn(`${fnName} took ${elapsed}ms, which is more than the warning threshold of ${maxDelay}ms. If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions. It is disabled in production builds, so you don't need to worry about that.`); } }; } var Tuple = class _Tuple extends Array { constructor(...items) { super(...items); Object.setPrototypeOf(this, _Tuple.prototype); } static get [Symbol.species]() { return _Tuple; } concat(...arr) { return super.concat.apply(this, arr); } prepend(...arr) { if (arr.length === 1 && Array.isArray(arr[0])) return new _Tuple(...arr[0].concat(this)); return new _Tuple(...arr.concat(this)); } }; function freezeDraftable(val) { return isDraftable$1(val) ? produce$1(val, () => {}) : val; } function getOrInsertComputed(map, key, compute) { if (map.has(key)) return map.get(key); return map.set(key, compute(key)).get(key); } function isImmutableDefault(value) { return typeof value !== "object" || value == null || Object.isFrozen(value); } function trackForMutations(isImmutable, ignoredPaths, obj) { const trackedProperties = trackProperties(isImmutable, ignoredPaths, obj); return { detectMutations() { return detectMutations(isImmutable, ignoredPaths, trackedProperties, obj); } }; } function trackProperties(isImmutable, ignoredPaths = [], obj, path = "", checkedObjects = /* @__PURE__ */ new Set()) { const tracked = { value: obj }; if (!isImmutable(obj) && !checkedObjects.has(obj)) { checkedObjects.add(obj); tracked.children = {}; const hasIgnoredPaths = ignoredPaths.length > 0; for (const key in obj) { const nestedPath = path ? path + "." + key : key; if (hasIgnoredPaths) { if (ignoredPaths.some((ignored) => { if (ignored instanceof RegExp) return ignored.test(nestedPath); return nestedPath === ignored; })) continue; } tracked.children[key] = trackProperties(isImmutable, ignoredPaths, obj[key], nestedPath); } } return tracked; } function detectMutations(isImmutable, ignoredPaths = [], trackedProperty, obj, sameParentRef = false, path = "") { const prevObj = trackedProperty ? trackedProperty.value : void 0; const sameRef = prevObj === obj; if (sameParentRef && !sameRef && !Number.isNaN(obj)) return { wasMutated: true, path }; if (isImmutable(prevObj) || isImmutable(obj)) return { wasMutated: false }; const keysToDetect = {}; for (let key in trackedProperty.children) keysToDetect[key] = true; for (let key in obj) keysToDetect[key] = true; const hasIgnoredPaths = ignoredPaths.length > 0; for (let key in keysToDetect) { const nestedPath = path ? path + "." + key : key; if (hasIgnoredPaths) { if (ignoredPaths.some((ignored) => { if (ignored instanceof RegExp) return ignored.test(nestedPath); return nestedPath === ignored; })) continue; } const result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath); if (result.wasMutated) return result; } return { wasMutated: false }; } function createImmutableStateInvariantMiddleware(options = {}) { { let stringify2 = function(obj, serializer, indent, decycler) { return JSON.stringify(obj, getSerialize2(serializer, decycler), indent); }, getSerialize2 = function(serializer, decycler) { let stack = [], keys = []; if (!decycler) decycler = function(_, value) { if (stack[0] === value) return "[Circular ~]"; return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"; }; return function(key, value) { if (stack.length > 0) { var thisPos = stack.indexOf(this); ~thisPos ? stack.splice(thisPos + 1) : stack.push(this); ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key); if (~stack.indexOf(value)) value = decycler.call(this, key, value); } else stack.push(value); return serializer == null ? value : serializer.call(this, key, value); }; }; let { isImmutable = isImmutableDefault, ignoredPaths, warnAfter = 32 } = options; const track = trackForMutations.bind(null, isImmutable, ignoredPaths); return ({ getState }) => { let state = getState(); let tracker = track(state); let result; return (next) => (action) => { const measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware"); measureUtils.measureTime(() => { state = getState(); result = tracker.detectMutations(); tracker = track(state); if (result.wasMutated) throw new Error(`A state mutation was detected between dispatches, in the path '${result.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`); }); const dispatchedAction = next(action); measureUtils.measureTime(() => { state = getState(); result = tracker.detectMutations(); tracker = track(state); if (result.wasMutated) throw new Error(`A state mutation was detected inside a dispatch, in the path: ${result.path || ""}. Take a look at the reducer(s) handling the action ${stringify2(action)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`); }); measureUtils.warnIfExceeded(); return dispatchedAction; }; }; } } function isPlain(val) { const type = typeof val; return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject$3(val); } function findNonSerializableValue(value, path = "", isSerializable = isPlain, getEntries, ignoredPaths = [], cache) { let foundNestedSerializable; if (!isSerializable(value)) return { keyPath: path || "", value }; if (typeof value !== "object" || value === null) return false; if (cache?.has(value)) return false; const entries = getEntries != null ? getEntries(value) : Object.entries(value); const hasIgnoredPaths = ignoredPaths.length > 0; for (const [key, nestedValue] of entries) { const nestedPath = path ? path + "." + key : key; if (hasIgnoredPaths) { if (ignoredPaths.some((ignored) => { if (ignored instanceof RegExp) return ignored.test(nestedPath); return nestedPath === ignored; })) continue; } if (!isSerializable(nestedValue)) return { keyPath: nestedPath, value: nestedValue }; if (typeof nestedValue === "object") { foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache); if (foundNestedSerializable) return foundNestedSerializable; } } if (cache && isNestedFrozen(value)) cache.add(value); return false; } function isNestedFrozen(value) { if (!Object.isFrozen(value)) return false; for (const nestedValue of Object.values(value)) { if (typeof nestedValue !== "object" || nestedValue === null) continue; if (!isNestedFrozen(nestedValue)) return false; } return true; } function createSerializableStateInvariantMiddleware(options = {}) { { const { isSerializable = isPlain, getEntries, ignoredActions = [], ignoredActionPaths = ["meta.arg", "meta.baseQueryMeta"], ignoredPaths = [], warnAfter = 32, ignoreState = false, ignoreActions = false, disableCache = false } = options; const cache = !disableCache && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0; return (storeAPI) => (next) => (action) => { if (!isAction(action)) return next(action); const result = next(action); const measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware"); if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) measureUtils.measureTime(() => { const foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache); if (foundActionNonSerializableValue) { const { keyPath, value } = foundActionNonSerializableValue; console.error(`A non-serializable value was detected in an action, in the path: \`${keyPath}\`. Value:`, value, "\nTake a look at the logic that dispatched this action: ", action, "\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)", "\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)"); } }); if (!ignoreState) { measureUtils.measureTime(() => { const foundStateNonSerializableValue = findNonSerializableValue(storeAPI.getState(), "", isSerializable, getEntries, ignoredPaths, cache); if (foundStateNonSerializableValue) { const { keyPath, value } = foundStateNonSerializableValue; console.error(`A non-serializable value was detected in the state, in the path: \`${keyPath}\`. Value:`, value, ` Take a look at the reducer(s) handling this action type: ${action.type}. (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`); } }); measureUtils.warnIfExceeded(); } return result; }; } } function isBoolean(x) { return typeof x === "boolean"; } var buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) { const { thunk: thunk$1 = true, immutableCheck = true, serializableCheck = true, actionCreatorCheck = true } = options ?? {}; let middlewareArray = new Tuple(); if (thunk$1) if (isBoolean(thunk$1)) middlewareArray.push(thunk); else middlewareArray.push(withExtraArgument(thunk$1.extraArgument)); if (immutableCheck) { let immutableOptions = {}; if (!isBoolean(immutableCheck)) immutableOptions = immutableCheck; middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions)); } if (serializableCheck) { let serializableOptions = {}; if (!isBoolean(serializableCheck)) serializableOptions = serializableCheck; middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions)); } if (actionCreatorCheck) { let actionCreatorOptions = {}; if (!isBoolean(actionCreatorCheck)) actionCreatorOptions = actionCreatorCheck; middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions)); } return middlewareArray; }; var SHOULD_AUTOBATCH = "RTK_autoBatch"; var prepareAutoBatched = () => (payload) => ({ payload, meta: { [SHOULD_AUTOBATCH]: true } }); var createQueueWithTimer = (timeout) => { return (notify) => { setTimeout(notify, timeout); }; }; var autoBatchEnhancer = (options = { type: "raf" }) => (next) => (...args) => { const store = next(...args); let notifying = true; let shouldNotifyAtEndOfTick = false; let notificationQueued = false; const listeners = /* @__PURE__ */ new Set(); const queueCallback = options.type === "tick" ? queueMicrotask : options.type === "raf" ? typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10) : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout); const notifyListeners = () => { notificationQueued = false; if (shouldNotifyAtEndOfTick) { shouldNotifyAtEndOfTick = false; listeners.forEach((l) => l()); } }; return Object.assign({}, store, { subscribe(listener2) { const wrappedListener = () => notifying && listener2(); const unsubscribe = store.subscribe(wrappedListener); listeners.add(listener2); return () => { unsubscribe(); listeners.delete(listener2); }; }, dispatch(action) { try { notifying = !action?.meta?.[SHOULD_AUTOBATCH]; shouldNotifyAtEndOfTick = !notifying; if (shouldNotifyAtEndOfTick) { if (!notificationQueued) { notificationQueued = true; queueCallback(notifyListeners); } } return store.dispatch(action); } finally { notifying = true; } } }); }; var buildGetDefaultEnhancers = (middlewareEnhancer) => function getDefaultEnhancers(options) { const { autoBatch = true } = options ?? {}; let enhancerArray = new Tuple(middlewareEnhancer); if (autoBatch) enhancerArray.push(autoBatchEnhancer(typeof autoBatch === "object" ? autoBatch : void 0)); return enhancerArray; }; function configureStore(options) { const getDefaultMiddleware = buildGetDefaultMiddleware(); const { reducer = void 0, middleware, devTools = true, duplicateMiddlewareCheck = true, preloadedState = void 0, enhancers = void 0 } = options || {}; let rootReducer; if (typeof reducer === "function") rootReducer = reducer; else if (isPlainObject$3(reducer)) rootReducer = combineReducers(reducer); else throw new Error("`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers"); if (middleware && typeof middleware !== "function") throw new Error("`middleware` field must be a callback"); let finalMiddleware; if (typeof middleware === "function") { finalMiddleware = middleware(getDefaultMiddleware); if (!Array.isArray(finalMiddleware)) throw new Error("when using a middleware builder function, an array of middleware must be returned"); } else finalMiddleware = getDefaultMiddleware(); if (finalMiddleware.some((item) => typeof item !== "function")) throw new Error("each middleware provided to configureStore must be a function"); if (duplicateMiddlewareCheck) { let middlewareReferences = /* @__PURE__ */ new Set(); finalMiddleware.forEach((middleware2) => { if (middlewareReferences.has(middleware2)) throw new Error("Duplicate middleware references found when creating the store. Ensure that each middleware is only included once."); middlewareReferences.add(middleware2); }); } let finalCompose = compose; if (devTools) finalCompose = composeWithDevTools({ trace: true, ...typeof devTools === "object" && devTools }); const middlewareEnhancer = applyMiddleware(...finalMiddleware); const getDefaultEnhancers = buildGetDefaultEnhancers(middlewareEnhancer); if (enhancers && typeof enhancers !== "function") throw new Error("`enhancers` field must be a callback"); let storeEnhancers = typeof enhancers === "function" ? enhancers(getDefaultEnhancers) : getDefaultEnhancers(); if (!Array.isArray(storeEnhancers)) throw new Error("`enhancers` callback must return an array"); if (storeEnhancers.some((item) => typeof item !== "function")) throw new Error("each enhancer provided to configureStore must be a function"); if (finalMiddleware.length && !storeEnhancers.includes(middlewareEnhancer)) console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`"); const composedEnhancer = finalCompose(...storeEnhancers); return createStore(rootReducer, preloadedState, composedEnhancer); } function executeReducerBuilderCallback(builderCallback) { const actionsMap = {}; const actionMatchers = []; let defaultCaseReducer; const builder = { addCase(typeOrActionCreator, reducer) { if (actionMatchers.length > 0) throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`"); if (defaultCaseReducer) throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`"); const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type; if (!type) throw new Error("`builder.addCase` cannot be called with an empty action type"); if (type in actionsMap) throw new Error(`\`builder.addCase\` cannot be called with two reducers for the same action type '${type}'`); actionsMap[type] = reducer; return builder; }, addAsyncThunk(asyncThunk, reducers) { if (defaultCaseReducer) throw new Error("`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`"); if (reducers.pending) actionsMap[asyncThunk.pending.type] = reducers.pending; if (reducers.rejected) actionsMap[asyncThunk.rejected.type] = reducers.rejected; if (reducers.fulfilled) actionsMap[asyncThunk.fulfilled.type] = reducers.fulfilled; if (reducers.settled) actionMatchers.push({ matcher: asyncThunk.settled, reducer: reducers.settled }); return builder; }, addMatcher(matcher, reducer) { if (defaultCaseReducer) throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`"); actionMatchers.push({ matcher, reducer }); return builder; }, addDefaultCase(reducer) { if (defaultCaseReducer) throw new Error("`builder.addDefaultCase` can only be called once"); defaultCaseReducer = reducer; return builder; } }; builderCallback(builder); return [ actionsMap, actionMatchers, defaultCaseReducer ]; } function isStateFunction(x) { return typeof x === "function"; } function createReducer(initialState, mapOrBuilderCallback) { if (typeof mapOrBuilderCallback === "object") throw new Error("The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer"); let [actionsMap, finalActionMatchers, finalDefaultCaseReducer] = executeReducerBuilderCallback(mapOrBuilderCallback); let getInitialState; if (isStateFunction(initialState)) getInitialState = () => freezeDraftable(initialState()); else { const frozenInitialState = freezeDraftable(initialState); getInitialState = () => frozenInitialState; } function reducer(state = getInitialState(), action) { let caseReducers = [actionsMap[action.type], ...finalActionMatchers.filter(({ matcher }) => matcher(action)).map(({ reducer: reducer2 }) => reducer2)]; if (caseReducers.filter((cr) => !!cr).length === 0) caseReducers = [finalDefaultCaseReducer]; return caseReducers.reduce((previousState, caseReducer) => { if (caseReducer) if (isDraft$1(previousState)) { const result = caseReducer(previousState, action); if (result === void 0) return previousState; return result; } else if (!isDraftable$1(previousState)) { const result = caseReducer(previousState, action); if (result === void 0) { if (previousState === null) return previousState; throw Error("A case reducer on a non-draftable value must not return undefined"); } return result; } else return produce$1(previousState, (draft) => { return caseReducer(draft, action); }); return previousState; }, state); } reducer.getInitialState = getInitialState; return reducer; } var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"; var nanoid = (size = 21) => { let id = ""; let i = size; while (i--) id += urlAlphabet[Math.random() * 64 | 0]; return id; }; var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk"); function getType(slice, actionKey) { return `${slice}/${actionKey}`; } function buildCreateSlice({ creators } = {}) { const cAT = creators?.asyncThunk?.[asyncThunkSymbol]; return function createSlice2(options) { const { name, reducerPath = name } = options; if (!name) throw new Error("`name` is a required option for createSlice"); if (typeof process !== "undefined" && true) { if (options.initialState === void 0) console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`"); } const reducers = (typeof options.reducers === "function" ? options.reducers(buildReducerCreators()) : options.reducers) || {}; const reducerNames = Object.keys(reducers); const context = { sliceCaseReducersByName: {}, sliceCaseReducersByType: {}, actionCreators: {}, sliceMatchers: [] }; const contextMethods = { addCase(typeOrActionCreator, reducer2) { const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type; if (!type) throw new Error("`context.addCase` cannot be called with an empty action type"); if (type in context.sliceCaseReducersByType) throw new Error("`context.addCase` cannot be called with two reducers for the same action type: " + type); context.sliceCaseReducersByType[type] = reducer2; return contextMethods; }, addMatcher(matcher, reducer2) { context.sliceMatchers.push({ matcher, reducer: reducer2 }); return contextMethods; }, exposeAction(name2, actionCreator) { context.actionCreators[name2] = actionCreator; return contextMethods; }, exposeCaseReducer(name2, reducer2) { context.sliceCaseReducersByName[name2] = reducer2; return contextMethods; } }; reducerNames.forEach((reducerName) => { const reducerDefinition = reducers[reducerName]; const reducerDetails = { reducerName, type: getType(name, reducerName), createNotation: typeof options.reducers === "function" }; if (isAsyncThunkSliceReducerDefinition(reducerDefinition)) handleThunkCaseReducerDefinition(reducerDetails, reducerDefinition, contextMethods, cAT); else handleNormalReducerDefinition(reducerDetails, reducerDefinition, contextMethods); }); function buildReducer() { if (typeof options.extraReducers === "object") throw new Error("The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice"); const [extraReducers = {}, actionMatchers = [], defaultCaseReducer = void 0] = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers]; const finalCaseReducers = { ...extraReducers, ...context.sliceCaseReducersByType }; return createReducer(options.initialState, (builder) => { for (let key in finalCaseReducers) builder.addCase(key, finalCaseReducers[key]); for (let sM of context.sliceMatchers) builder.addMatcher(sM.matcher, sM.reducer); for (let m of actionMatchers) builder.addMatcher(m.matcher, m.reducer); if (defaultCaseReducer) builder.addDefaultCase(defaultCaseReducer); }); } const selectSelf = (state) => state; const injectedSelectorCache = /* @__PURE__ */ new Map(); const injectedStateCache = /* @__PURE__ */ new WeakMap(); let _reducer; function reducer(state, action) { if (!_reducer) _reducer = buildReducer(); return _reducer(state, action); } function getInitialState() { if (!_reducer) _reducer = buildReducer(); return _reducer.getInitialState(); } function makeSelectorProps(reducerPath2, injected = false) { function selectSlice(state) { let sliceState = state[reducerPath2]; if (typeof sliceState === "undefined") if (injected) sliceState = getOrInsertComputed(injectedStateCache, selectSlice, getInitialState); else throw new Error("selectSlice returned undefined for an uninjected slice reducer"); return sliceState; } function getSelectors(selectState = selectSelf) { return getOrInsertComputed(getOrInsertComputed(injectedSelectorCache, injected, () => /* @__PURE__ */ new WeakMap()), selectState, () => { const map = {}; for (const [name2, selector] of Object.entries(options.selectors ?? {})) map[name2] = wrapSelector(selector, selectState, () => getOrInsertComputed(injectedStateCache, selectState, getInitialState), injected); return map; }); } return { reducerPath: reducerPath2, getSelectors, get selectors() { return getSelectors(selectSlice); }, selectSlice }; } const slice = { name, reducer, actions: context.actionCreators, caseReducers: context.sliceCaseReducersByName, getInitialState, ...makeSelectorProps(reducerPath), injectInto(injectable, { reducerPath: pathOpt, ...config } = {}) { const newReducerPath = pathOpt ?? reducerPath; injectable.inject({ reducerPath: newReducerPath, reducer }, config); return { ...slice, ...makeSelectorProps(newReducerPath, true) }; } }; return slice; }; } function wrapSelector(selector, selectState, getInitialState, injected) { function wrapper(rootState, ...args) { let sliceState = selectState(rootState); if (typeof sliceState === "undefined") if (injected) sliceState = getInitialState(); else throw new Error("selectState returned undefined for an uninjected slice reducer"); return selector(sliceState, ...args); } wrapper.unwrapped = selector; return wrapper; } var createSlice = /* @__PURE__ */ buildCreateSlice(); function buildReducerCreators() { function asyncThunk(payloadCreator, config) { return { _reducerDefinitionType: "asyncThunk", payloadCreator, ...config }; } asyncThunk.withTypes = () => asyncThunk; return { reducer(caseReducer) { return Object.assign({ [caseReducer.name](...args) { return caseReducer(...args); } }[caseReducer.name], { _reducerDefinitionType: "reducer" }); }, preparedReducer(prepare, reducer) { return { _reducerDefinitionType: "reducerWithPrepare", prepare, reducer }; }, asyncThunk }; } function handleNormalReducerDefinition({ type, reducerName, createNotation }, maybeReducerWithPrepare, context) { let caseReducer; let prepareCallback; if ("reducer" in maybeReducerWithPrepare) { if (createNotation && !isCaseReducerWithPrepareDefinition(maybeReducerWithPrepare)) throw new Error("Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation."); caseReducer = maybeReducerWithPrepare.reducer; prepareCallback = maybeReducerWithPrepare.prepare; } else caseReducer = maybeReducerWithPrepare; context.addCase(type, caseReducer).exposeCaseReducer(reducerName, caseReducer).exposeAction(reducerName, prepareCallback ? createAction(type, prepareCallback) : createAction(type)); } function isAsyncThunkSliceReducerDefinition(reducerDefinition) { return reducerDefinition._reducerDefinitionType === "asyncThunk"; } function isCaseReducerWithPrepareDefinition(reducerDefinition) { return reducerDefinition._reducerDefinitionType === "reducerWithPrepare"; } function handleThunkCaseReducerDefinition({ type, reducerName }, reducerDefinition, context, cAT) { if (!cAT) throw new Error("Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`."); const { payloadCreator, fulfilled, pending, rejected, settled, options } = reducerDefinition; const thunk = cAT(type, payloadCreator, options); context.exposeAction(reducerName, thunk); if (fulfilled) context.addCase(thunk.fulfilled, fulfilled); if (pending) context.addCase(thunk.pending, pending); if (rejected) context.addCase(thunk.rejected, rejected); if (settled) context.addMatcher(thunk.settled, settled); context.exposeCaseReducer(reducerName, { fulfilled: fulfilled || noop, pending: pending || noop, rejected: rejected || noop, settled: settled || noop }); } function noop() {} var task = "task"; var listener = "listener"; var completed = "completed"; var cancelled = "cancelled"; var taskCancelled = `task-${cancelled}`; var taskCompleted = `task-${completed}`; var listenerCancelled = `${listener}-${cancelled}`; var listenerCompleted = `${listener}-${completed}`; var TaskAbortError = class { constructor(code) { this.code = code; this.message = `${task} ${cancelled} (reason: ${code})`; } name = "TaskAbortError"; message; }; var assertFunction = (func, expected) => { if (typeof func !== "function") throw new TypeError(`${expected} is not a function`); }; var noop2 = () => {}; var catchRejection = (promise, onError = noop2) => { promise.catch(onError); return promise; }; var addAbortSignalListener = (abortSignal, callback) => { abortSignal.addEventListener("abort", callback, { once: true }); return () => abortSignal.removeEventListener("abort", callback); }; var validateActive = (signal) => { if (signal.aborted) throw new TaskAbortError(signal.reason); }; function raceWithSignal(signal, promise) { let cleanup = noop2; return new Promise((resolve, reject) => { const notifyRejection = () => reject(new TaskAbortError(signal.reason)); if (signal.aborted) { notifyRejection(); return; } cleanup = addAbortSignalListener(signal, notifyRejection); promise.finally(() => cleanup()).then(resolve, reject); }).finally(() => { cleanup = noop2; }); } var runTask = async (task2, cleanUp) => { try { await Promise.resolve(); return { status: "ok", value: await task2() }; } catch (error) { return { status: error instanceof TaskAbortError ? "cancelled" : "rejected", error }; } finally { cleanUp?.(); } }; var createPause = (signal) => { return (promise) => { return catchRejection(raceWithSignal(signal, promise).then((output) => { validateActive(signal); return output; })); }; }; var createDelay = (signal) => { const pause = createPause(signal); return (timeoutMs) => { return pause(new Promise((resolve) => setTimeout(resolve, timeoutMs))); }; }; var { assign } = Object; var INTERNAL_NIL_TOKEN = {}; var alm = "listenerMiddleware"; var createFork = (parentAbortSignal, parentBlockingPromises) => { const linkControllers = (controller) => addAbortSignalListener(parentAbortSignal, () => controller.abort(parentAbortSignal.reason)); return (taskExecutor, opts) => { assertFunction(taskExecutor, "taskExecutor"); const childAbortController = new AbortController(); linkControllers(childAbortController); const result = runTask(async () => { validateActive(parentAbortSignal); validateActive(childAbortController.signal); const result2 = await taskExecutor({ pause: createPause(childAbortController.signal), delay: createDelay(childAbortController.signal), signal: childAbortController.signal }); validateActive(childAbortController.signal); return result2; }, () => childAbortController.abort(taskCompleted)); if (opts?.autoJoin) parentBlockingPromises.push(result.catch(noop2)); return { result: createPause(parentAbortSignal)(result), cancel() { childAbortController.abort(taskCancelled); } }; }; }; var createTakePattern = (startListening, signal) => { const take = async (predicate, timeout) => { validateActive(signal); let unsubscribe = () => {}; const promises = [new Promise((resolve, reject) => { let stopListening = startListening({ predicate, effect: (action, listenerApi) => { listenerApi.unsubscribe(); resolve([ action, listenerApi.getState(), listenerApi.getOriginalState() ]); } }); unsubscribe = () => { stopListening(); reject(); }; })]; if (timeout != null) promises.push(new Promise((resolve) => setTimeout(resolve, timeout, null))); try { const output = await raceWithSignal(signal, Promise.race(promises)); validateActive(signal); return output; } finally { unsubscribe(); } }; return (predicate, timeout) => catchRejection(take(predicate, timeout)); }; var getListenerEntryPropsFrom = (options) => { let { type, actionCreator, matcher, predicate, effect } = options; if (type) predicate = createAction(type).match; else if (actionCreator) { type = actionCreator.type; predicate = actionCreator.match; } else if (matcher) predicate = matcher; else if (predicate) {} else throw new Error("Creating or removing a listener requires one of the known fields for matching an action"); assertFunction(effect, "options.listener"); return { predicate, type, effect }; }; var createListenerEntry = /* @__PURE__ */ assign((options) => { const { type, predicate, effect } = getListenerEntryPropsFrom(options); return { id: nanoid(), effect, type, predicate, pending: /* @__PURE__ */ new Set(), unsubscribe: () => { throw new Error("Unsubscribe not initialized"); } }; }, { withTypes: () => createListenerEntry }); var findListenerEntry = (listenerMap, options) => { const { type, effect, predicate } = getListenerEntryPropsFrom(options); return Array.from(listenerMap.values()).find((entry) => { return (typeof type === "string" ? entry.type === type : entry.predicate === predicate) && entry.effect === effect; }); }; var cancelActiveListeners = (entry) => { entry.pending.forEach((controller) => { controller.abort(listenerCancelled); }); }; var createClearListenerMiddleware = (listenerMap, executingListeners) => { return () => { for (const listener2 of executingListeners.keys()) cancelActiveListeners(listener2); listenerMap.clear(); }; }; var safelyNotifyError = (errorHandler, errorToNotify, errorInfo) => { try { errorHandler(errorToNotify, errorInfo); } catch (errorHandlerError) { setTimeout(() => { throw errorHandlerError; }, 0); } }; var addListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/add`), { withTypes: () => addListener }); var clearAllListeners = /* @__PURE__ */ createAction(`${alm}/removeAll`); var removeListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/remove`), { withTypes: () => removeListener }); var defaultErrorHandler = (...args) => { console.error(`${alm}/error`, ...args); }; var createListenerMiddleware = (middlewareOptions = {}) => { const listenerMap = /* @__PURE__ */ new Map(); const executingListeners = /* @__PURE__ */ new Map(); const trackExecutingListener = (entry) => { const count = executingListeners.get(entry) ?? 0; executingListeners.set(entry, count + 1); }; const untrackExecutingListener = (entry) => { const count = executingListeners.get(entry) ?? 1; if (count === 1) executingListeners.delete(entry); else executingListeners.set(entry, count - 1); }; const { extra, onError = defaultErrorHandler } = middlewareOptions; assertFunction(onError, "onError"); const insertEntry = (entry) => { entry.unsubscribe = () => listenerMap.delete(entry.id); listenerMap.set(entry.id, entry); return (cancelOptions) => { entry.unsubscribe(); if (cancelOptions?.cancelActive) cancelActiveListeners(entry); }; }; const startListening = (options) => { return insertEntry(findListenerEntry(listenerMap, options) ?? createListenerEntry(options)); }; assign(startListening, { withTypes: () => startListening }); const stopListening = (options) => { const entry = findListenerEntry(listenerMap, options); if (entry) { entry.unsubscribe(); if (options.cancelActive) cancelActiveListeners(entry); } return !!entry; }; assign(stopListening, { withTypes: () => stopListening }); const notifyListener = async (entry, action, api, getOriginalState) => { const internalTaskController = new AbortController(); const take = createTakePattern(startListening, internalTaskController.signal); const autoJoinPromises = []; try { entry.pending.add(internalTaskController); trackExecutingListener(entry); await Promise.resolve(entry.effect(action, assign({}, api, { getOriginalState, condition: (predicate, timeout) => take(predicate, timeout).then(Boolean), take, delay: createDelay(internalTaskController.signal), pause: createPause(internalTaskController.signal), extra, signal: internalTaskController.signal, fork: createFork(internalTaskController.signal, autoJoinPromises), unsubscribe: entry.unsubscribe, subscribe: () => { listenerMap.set(entry.id, entry); }, cancelActiveListeners: () => { entry.pending.forEach((controller, _, set) => { if (controller !== internalTaskController) { controller.abort(listenerCancelled); set.delete(controller); } }); }, cancel: () => { internalTaskController.abort(listenerCancelled); entry.pending.delete(internalTaskController); }, throwIfCancelled: () => { validateActive(internalTaskController.signal); } }))); } catch (listenerError) { if (!(listenerError instanceof TaskAbortError)) safelyNotifyError(onError, listenerError, { raisedBy: "effect" }); } finally { await Promise.all(autoJoinPromises); internalTaskController.abort(listenerCompleted); untrackExecutingListener(entry); entry.pending.delete(internalTaskController); } }; const clearListenerMiddleware = createClearListenerMiddleware(listenerMap, executingListeners); const middleware = (api) => (next) => (action) => { if (!isAction(action)) return next(action); if (addListener.match(action)) return startListening(action.payload); if (clearAllListeners.match(action)) { clearListenerMiddleware(); return; } if (removeListener.match(action)) return stopListening(action.payload); let originalState = api.getState(); const getOriginalState = () => { if (originalState === INTERNAL_NIL_TOKEN) throw new Error(`${alm}: getOriginalState can only be called synchronously`); return originalState; }; let result; try { result = next(action); if (listenerMap.size > 0) { const currentState = api.getState(); const listenerEntries = Array.from(listenerMap.values()); for (const entry of listenerEntries) { let runListener = false; try { runListener = entry.predicate(action, currentState, originalState); } catch (predicateError) { runListener = false; safelyNotifyError(onError, predicateError, { raisedBy: "predicate" }); } if (!runListener) continue; notifyListener(entry, action, api, getOriginalState); } } } finally { originalState = INTERNAL_NIL_TOKEN; } return result; }; return { middleware, startListening, stopListening, clearListeners: clearListenerMiddleware }; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/layoutSlice.js var chartLayoutSlice = createSlice({ name: "chartLayout", initialState: { layoutType: "horizontal", width: 0, height: 0, margin: { top: 5, right: 5, bottom: 5, left: 5 }, scale: 1 }, reducers: { setLayout(state, action) { state.layoutType = action.payload; }, setChartSize(state, action) { state.width = action.payload.width; state.height = action.payload.height; }, setMargin(state, action) { var _action$payload$top, _action$payload$right, _action$payload$botto, _action$payload$left; state.margin.top = (_action$payload$top = action.payload.top) !== null && _action$payload$top !== void 0 ? _action$payload$top : 0; state.margin.right = (_action$payload$right = action.payload.right) !== null && _action$payload$right !== void 0 ? _action$payload$right : 0; state.margin.bottom = (_action$payload$botto = action.payload.bottom) !== null && _action$payload$botto !== void 0 ? _action$payload$botto : 0; state.margin.left = (_action$payload$left = action.payload.left) !== null && _action$payload$left !== void 0 ? _action$payload$left : 0; }, setScale(state, action) { state.scale = action.payload; } } }); var { setMargin, setLayout, setChartSize, setScale } = chartLayoutSlice.actions; var chartLayoutReducer = chartLayoutSlice.reducer; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/getSliced.js function getSliced(arr, startIndex, endIndex) { if (!Array.isArray(arr)) return arr; if (arr && startIndex + endIndex !== 0) return arr.slice(startIndex, endIndex + 1); return arr; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/isWellBehavedNumber.js function isWellBehavedNumber(n) { return Number.isFinite(n); } function isPositiveNumber(n) { return typeof n === "number" && n > 0 && Number.isFinite(n); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/ChartUtils.js function ownKeys$67(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$67(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$67(Object(t), !0).forEach(function(r) { _defineProperty$69(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$67(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$69(e, r, t) { return (r = _toPropertyKey$69(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$69(t) { var i = _toPrimitive$69(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$69(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function getValueByDataKey(obj, dataKey, defaultValue) { if (isNullish(obj) || isNullish(dataKey)) return defaultValue; if (isNumOrStr(dataKey)) return (0, import_get.default)(obj, dataKey, defaultValue); if (typeof dataKey === "function") return dataKey(obj); return defaultValue; } var appendOffsetOfLegend = (offset, legendSettings, legendSize) => { if (legendSettings && legendSize) { var { width: boxWidth, height: boxHeight } = legendSize; var { align, verticalAlign, layout } = legendSettings; if ((layout === "vertical" || layout === "horizontal" && verticalAlign === "middle") && align !== "center" && isNumber(offset[align])) return _objectSpread$67(_objectSpread$67({}, offset), {}, { [align]: offset[align] + (boxWidth || 0) }); if ((layout === "horizontal" || layout === "vertical" && align === "center") && verticalAlign !== "middle" && isNumber(offset[verticalAlign])) return _objectSpread$67(_objectSpread$67({}, offset), {}, { [verticalAlign]: offset[verticalAlign] + (boxHeight || 0) }); } return offset; }; var isCategoricalAxis = (layout, axisType) => layout === "horizontal" && axisType === "xAxis" || layout === "vertical" && axisType === "yAxis" || layout === "centric" && axisType === "angleAxis" || layout === "radial" && axisType === "radiusAxis"; /** * Calculate the Coordinates of grid * @param {Array} ticks The ticks in axis * @param {Number} minValue The minimum value of axis * @param {Number} maxValue The maximum value of axis * @param {boolean} syncWithTicks Synchronize grid lines with ticks or not * @return {Array} Coordinates */ var getCoordinatesOfGrid = (ticks, minValue, maxValue, syncWithTicks) => { if (syncWithTicks) return ticks.map((entry) => entry.coordinate); var hasMin, hasMax; var values = ticks.map((entry) => { if (entry.coordinate === minValue) hasMin = true; if (entry.coordinate === maxValue) hasMax = true; return entry.coordinate; }); if (!hasMin) values.push(minValue); if (!hasMax) values.push(maxValue); return values; }; /** * Of on four almost identical implementations of tick generation. * The four horsemen of tick generation are: * - {@link selectTooltipAxisTicks} * - {@link combineAxisTicks} * - {@link getTicksOfAxis}. * - {@link combineGraphicalItemTicks} */ var getTicksOfAxis = (axis, isGrid, isAll) => { if (!axis) return null; var { duplicateDomain, type, range, scale, realScaleType, isCategorical, categoricalDomain, tickCount, ticks, niceTicks, axisType } = axis; if (!scale) return null; var offsetForBand = realScaleType === "scaleBand" && scale.bandwidth ? scale.bandwidth() / 2 : 2; var offset = (isGrid || isAll) && type === "category" && scale.bandwidth ? scale.bandwidth() / offsetForBand : 0; offset = axisType === "angleAxis" && range && range.length >= 2 ? mathSign(range[0] - range[1]) * 2 * offset : offset; if (isGrid && (ticks || niceTicks)) return (ticks || niceTicks || []).map((entry, index) => { var scaleContent = duplicateDomain ? duplicateDomain.indexOf(entry) : entry; var scaled = scale.map(scaleContent); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: entry, offset, index }; }).filter(isNotNil); if (isCategorical && categoricalDomain) return categoricalDomain.map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: entry, index, offset }; }).filter(isNotNil); if (scale.ticks && !isAll && tickCount != null) return scale.ticks(tickCount).map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: entry, index, offset }; }).filter(isNotNil); return scale.domain().map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: duplicateDomain ? duplicateDomain[entry] : entry, index, offset }; }).filter(isNotNil); }; /** * Both value and domain are tuples of two numbers * - but the type stays as array of numbers until we have better support in rest of the app * @param value input that will be truncated * @param domain boundaries * @returns tuple of two numbers */ var truncateByDomain = (value, domain) => { if (!domain || domain.length !== 2 || !isNumber(domain[0]) || !isNumber(domain[1])) return value; var minValue = Math.min(domain[0], domain[1]); var maxValue = Math.max(domain[0], domain[1]); var result = [value[0], value[1]]; if (!isNumber(value[0]) || value[0] < minValue) result[0] = minValue; if (!isNumber(value[1]) || value[1] > maxValue) result[1] = maxValue; if (result[0] > maxValue) result[0] = maxValue; if (result[1] < minValue) result[1] = minValue; return result; }; /** * Stacks all positive numbers above zero and all negative numbers below zero. * * If all values in the series are positive then this behaves the same as 'none' stacker. * * @param {Array} series from d3-shape Stack * @return {Array} series with applied offset */ var offsetSign = (series) => { var _series$; var n = series.length; if (n <= 0) return; var m = (_series$ = series[0]) === null || _series$ === void 0 ? void 0 : _series$.length; if (m == null || m <= 0) return; for (var j = 0; j < m; ++j) { var positive = 0; var negative = 0; for (var i = 0; i < n; ++i) { var row = series[i]; var col = row === null || row === void 0 ? void 0 : row[j]; if (col == null) continue; var series1 = col[1]; var series0 = col[0]; var value = isNan(series1) ? series0 : series1; if (value >= 0) { col[0] = positive; positive += value; col[1] = positive; } else { col[0] = negative; negative += value; col[1] = negative; } } } }; /** * Replaces all negative values with zero when stacking data. * * If all values in the series are positive then this behaves the same as 'none' stacker. * * @param {Array} series from d3-shape Stack * @return {Array} series with applied offset */ var offsetPositive = (series) => { var _series$2; var n = series.length; if (n <= 0) return; var m = (_series$2 = series[0]) === null || _series$2 === void 0 ? void 0 : _series$2.length; if (m == null || m <= 0) return; for (var j = 0; j < m; ++j) { var positive = 0; for (var i = 0; i < n; ++i) { var row = series[i]; var col = row === null || row === void 0 ? void 0 : row[j]; if (col == null) continue; var value = isNan(col[1]) ? col[0] : col[1]; if (value >= 0) { col[0] = positive; positive += value; col[1] = positive; } else { col[0] = 0; col[1] = 0; } } } }; /** * Function type to compute offset for stacked data. * * d3-shape has something fishy going on with its types. * In @definitelytyped/d3-shape, this function (the offset accessor) is typed as Series<> => void. * However! When I actually open the storybook I can see that the offset accessor actually receives Array>. * The same I can see in the source code itself: * https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/66042 * That one unfortunately has no types but we can tell it passes three-dimensional array. * * Which leads me to believe that definitelytyped is wrong on this one. * There's open discussion on this topic without much attention: * https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/66042 */ var STACK_OFFSET_MAP = { sign: offsetSign, expand: expand_default, none: none_default$1, silhouette: silhouette_default, wiggle: wiggle_default, positive: offsetPositive }; var getStackedData = (data, dataKeys, offsetType) => { var _STACK_OFFSET_MAP$off; var offsetAccessor = (_STACK_OFFSET_MAP$off = STACK_OFFSET_MAP[offsetType]) !== null && _STACK_OFFSET_MAP$off !== void 0 ? _STACK_OFFSET_MAP$off : none_default$1; var result = stack_default().keys(dataKeys).value((d, key) => Number(getValueByDataKey(d, key, 0))).order(none_default).offset(offsetAccessor)(data); result.forEach((series, seriesIndex) => { series.forEach((point, pointIndex) => { var value = getValueByDataKey(data[pointIndex], dataKeys[seriesIndex], 0); if (Array.isArray(value) && value.length === 2 && isNumber(value[0]) && isNumber(value[1])) { point[0] = value[0]; point[1] = value[1]; } }); }); return result; }; /** * Externally, we accept both strings and numbers as stack IDs * @inline */ /** * Stack IDs in the external props allow numbers; but internally we use it as an object key * and object keys are always strings. Also, it would be kinda confusing if stackId=8 and stackId='8' were different stacks * so let's just force a string. */ function getNormalizedStackId(publicStackId) { return publicStackId == null ? void 0 : String(publicStackId); } function getCateCoordinateOfLine(_ref) { var { axis, ticks, bandSize, entry, index, dataKey } = _ref; if (axis.type === "category") { if (!axis.allowDuplicatedCategory && axis.dataKey && !isNullish(entry[axis.dataKey])) { var matchedTick = findEntryInArray(ticks, "value", entry[axis.dataKey]); if (matchedTick) return matchedTick.coordinate + bandSize / 2; } return ticks !== null && ticks !== void 0 && ticks[index] ? ticks[index].coordinate + bandSize / 2 : null; } var value = getValueByDataKey(entry, !isNullish(dataKey) ? dataKey : axis.dataKey); var scaled = axis.scale.map(value); if (!isNumber(scaled)) return null; return scaled; } var getCateCoordinateOfBar = (_ref2) => { var { axis, ticks, offset, bandSize, entry, index } = _ref2; if (axis.type === "category") return ticks[index] ? ticks[index].coordinate + offset : null; var value = getValueByDataKey(entry, axis.dataKey, axis.scale.domain()[index]); if (isNullish(value)) return null; var scaled = axis.scale.map(value); if (!isNumber(scaled)) return null; return scaled - bandSize / 2 + offset; }; var getBaseValueOfBar = (_ref3) => { var { numericAxis } = _ref3; var domain = numericAxis.scale.domain(); if (numericAxis.type === "number") { var minValue = Math.min(domain[0], domain[1]); var maxValue = Math.max(domain[0], domain[1]); if (minValue <= 0 && maxValue >= 0) return 0; if (maxValue < 0) return maxValue; return minValue; } return domain[0]; }; var getDomainOfSingle = (data) => { var flat = data.flat(2).filter(isNumber); return [Math.min(...flat), Math.max(...flat)]; }; var makeDomainFinite = (domain) => { return [domain[0] === Infinity ? 0 : domain[0], domain[1] === -Infinity ? 0 : domain[1]]; }; var getDomainOfStackGroups = (stackGroups, startIndex, endIndex) => { if (stackGroups == null) return; return makeDomainFinite(Object.keys(stackGroups).reduce((result, stackId) => { var group = stackGroups[stackId]; if (!group) return result; var { stackedData } = group; var domain = stackedData.reduce((res, entry) => { var s = getDomainOfSingle(getSliced(entry, startIndex, endIndex)); if (!isWellBehavedNumber(s[0]) || !isWellBehavedNumber(s[1])) return res; return [Math.min(res[0], s[0]), Math.max(res[1], s[1])]; }, [Infinity, -Infinity]); return [Math.min(domain[0], result[0]), Math.max(domain[1], result[1])]; }, [Infinity, -Infinity])); }; var MIN_VALUE_REG = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/; var MAX_VALUE_REG = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/; /** * Calculate the size between two category * @param {Object} axis The options of axis * @param {Array} ticks The ticks of axis * @param {Boolean} isBar if items in axis are bars * @return {Number} Size */ var getBandSizeOfAxis = (axis, ticks, isBar) => { if (axis && axis.scale && axis.scale.bandwidth) { var bandWidth = axis.scale.bandwidth(); if (!isBar || bandWidth > 0) return bandWidth; } if (axis && ticks && ticks.length >= 2) { var orderedTicks = (0, import_sortBy.default)(ticks, (o) => o.coordinate); var bandSize = Infinity; for (var i = 1, len = orderedTicks.length; i < len; i++) { var cur = orderedTicks[i]; var prev = orderedTicks[i - 1]; bandSize = Math.min(((cur === null || cur === void 0 ? void 0 : cur.coordinate) || 0) - ((prev === null || prev === void 0 ? void 0 : prev.coordinate) || 0), bandSize); } return bandSize === Infinity ? 0 : bandSize; } return isBar ? void 0 : 0; }; function getTooltipEntry(_ref4) { var { tooltipEntrySettings, dataKey, payload, value, name } = _ref4; return _objectSpread$67(_objectSpread$67({}, tooltipEntrySettings), {}, { dataKey, payload, value, name }); } function getTooltipNameProp(nameFromItem, dataKey) { if (nameFromItem) return String(nameFromItem); if (typeof dataKey === "string") return dataKey; } var calculateCartesianTooltipPos = (coordinate, layout) => { if (layout === "horizontal") return coordinate.relativeX; if (layout === "vertical") return coordinate.relativeY; }; var calculatePolarTooltipPos = (rangeObj, layout) => { if (layout === "centric") return rangeObj.angle; return rangeObj.radius; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/containerSelectors.js var selectChartWidth = (state) => state.layout.width; var selectChartHeight = (state) => state.layout.height; var selectContainerScale = (state) => state.layout.scale; var selectMargin = (state) => state.layout.margin; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectAllAxes.js var selectAllXAxes = createSelector((state) => state.cartesianAxis.xAxis, (xAxisMap) => { return Object.values(xAxisMap); }); var selectAllYAxes = createSelector((state) => state.cartesianAxis.yAxis, (yAxisMap) => { return Object.values(yAxisMap); }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/Constants.js var COLOR_PANEL = [ "#1890FF", "#66B5FF", "#41D9C7", "#2FC25B", "#6EDB8F", "#9AE65C", "#FACC14", "#E6965C", "#57AD71", "#223273", "#738AE6", "#7564CC", "#8543E0", "#A877ED", "#5C8EE6", "#13C2C2", "#70E0E0", "#5CA3E6", "#3436C7", "#8082FF", "#DD81E6", "#F04864", "#FA7D92", "#D598D9" ]; /** * We use this attribute to identify which element is the one that the user is touching. * The index is the position of the element in the data array. * This can be either a number (for array-based charts) or a string (for the charts that have a matrix-shaped data). */ var DATA_ITEM_INDEX_ATTRIBUTE_NAME = "data-recharts-item-index"; /** * We use this attribute to identify which element is the one that the user is touching. * Unlike dataKey, or name, it is always unique. */ var DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME = "data-recharts-item-id"; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js function ownKeys$66(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$66(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$66(Object(t), !0).forEach(function(r) { _defineProperty$68(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$66(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$68(e, r, t) { return (r = _toPropertyKey$68(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$68(t) { var i = _toPrimitive$68(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$68(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var selectBrushHeight = (state) => state.brush.height; function selectLeftAxesOffset(state) { return selectAllYAxes(state).reduce((result, entry) => { if (entry.orientation === "left" && !entry.mirror && !entry.hide) return result + (typeof entry.width === "number" ? entry.width : 60); return result; }, 0); } function selectRightAxesOffset(state) { return selectAllYAxes(state).reduce((result, entry) => { if (entry.orientation === "right" && !entry.mirror && !entry.hide) return result + (typeof entry.width === "number" ? entry.width : 60); return result; }, 0); } function selectTopAxesOffset(state) { return selectAllXAxes(state).reduce((result, entry) => { if (entry.orientation === "top" && !entry.mirror && !entry.hide) return result + entry.height; return result; }, 0); } function selectBottomAxesOffset(state) { return selectAllXAxes(state).reduce((result, entry) => { if (entry.orientation === "bottom" && !entry.mirror && !entry.hide) return result + entry.height; return result; }, 0); } /** * For internal use only. * * @param root state * @return ChartOffsetInternal */ var selectChartOffsetInternal = createSelector([ selectChartWidth, selectChartHeight, selectMargin, selectBrushHeight, selectLeftAxesOffset, selectRightAxesOffset, selectTopAxesOffset, selectBottomAxesOffset, selectLegendSettings, selectLegendSize ], (chartWidth, chartHeight, margin, brushHeight, leftAxesOffset, rightAxesOffset, topAxesOffset, bottomAxesOffset, legendSettings, legendSize) => { var offsetH = { left: (margin.left || 0) + leftAxesOffset, right: (margin.right || 0) + rightAxesOffset }; var offset = _objectSpread$66(_objectSpread$66({}, { top: (margin.top || 0) + topAxesOffset, bottom: (margin.bottom || 0) + bottomAxesOffset }), offsetH); var brushBottom = offset.bottom; offset.bottom += brushHeight; offset = appendOffsetOfLegend(offset, legendSettings, legendSize); var offsetWidth = chartWidth - offset.left - offset.right; var offsetHeight = chartHeight - offset.top - offset.bottom; return _objectSpread$66(_objectSpread$66({ brushBottom }, offset), {}, { width: Math.max(offsetWidth, 0), height: Math.max(offsetHeight, 0) }); }); var selectChartViewBox = createSelector(selectChartOffsetInternal, (offset) => ({ x: offset.left, y: offset.top, width: offset.width, height: offset.height })); var selectAxisViewBox = createSelector(selectChartWidth, selectChartHeight, (width, height) => ({ x: 0, y: 0, width, height })); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/context/PanoramaContext.js var PanoramaContext = /* @__PURE__ */ (0, import_react.createContext)(null); var useIsPanorama = () => (0, import_react.useContext)(PanoramaContext) != null; var PanoramaContextProvider = (_ref) => { var { children } = _ref; return /* @__PURE__ */ import_react.createElement(PanoramaContext.Provider, { value: true }, children); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/brushSelectors.js var selectBrushSettings = (state) => state.brush; var selectBrushDimensions = createSelector([ selectBrushSettings, selectChartOffsetInternal, selectMargin ], (brushSettings, offset, margin) => ({ height: brushSettings.height, x: isNumber(brushSettings.x) ? brushSettings.x : offset.left, y: isNumber(brushSettings.y) ? brushSettings.y : offset.top + offset.height + offset.brushBottom - ((margin === null || margin === void 0 ? void 0 : margin.bottom) || 0), width: isNumber(brushSettings.width) ? brushSettings.width : offset.width })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/function/debounce.js var require_debounce$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function debounce(func, debounceMs, { signal, edges } = {}) { let pendingThis = void 0; let pendingArgs = null; const leading = edges != null && edges.includes("leading"); const trailing = edges == null || edges.includes("trailing"); const invoke = () => { if (pendingArgs !== null) { func.apply(pendingThis, pendingArgs); pendingThis = void 0; pendingArgs = null; } }; const onTimerEnd = () => { if (trailing) invoke(); cancel(); }; let timeoutId = null; const schedule = () => { if (timeoutId != null) clearTimeout(timeoutId); timeoutId = setTimeout(() => { timeoutId = null; onTimerEnd(); }, debounceMs); }; const cancelTimer = () => { if (timeoutId !== null) { clearTimeout(timeoutId); timeoutId = null; } }; const cancel = () => { cancelTimer(); pendingThis = void 0; pendingArgs = null; }; const flush = () => { invoke(); }; const debounced = function(...args) { if (signal?.aborted) return; pendingThis = this; pendingArgs = args; const isFirstCall = timeoutId == null; schedule(); if (leading && isFirstCall) invoke(); }; debounced.schedule = schedule; debounced.cancel = cancel; debounced.flush = flush; signal?.addEventListener("abort", cancel, { once: true }); return debounced; } exports.debounce = debounce; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/function/debounce.js var require_debounce = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var debounce$1 = require_debounce$1(); function debounce(func, debounceMs = 0, options = {}) { if (typeof options !== "object") options = {}; const { leading = false, trailing = true, maxWait } = options; const edges = Array(2); if (leading) edges[0] = "leading"; if (trailing) edges[1] = "trailing"; let result = void 0; let pendingAt = null; const _debounced = debounce$1.debounce(function(...args) { result = func.apply(this, args); pendingAt = null; }, debounceMs, { edges }); const debounced = function(...args) { if (maxWait != null) { if (pendingAt === null) pendingAt = Date.now(); if (Date.now() - pendingAt >= maxWait) { result = func.apply(this, args); pendingAt = Date.now(); _debounced.cancel(); _debounced.schedule(); return result; } } _debounced.apply(this, args); return result; }; const flush = () => { _debounced.flush(); return result; }; debounced.cancel = _debounced.cancel; debounced.flush = flush; return debounced; } exports.debounce = debounce; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/function/throttle.js var require_throttle$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var debounce = require_debounce(); function throttle(func, throttleMs = 0, options = {}) { const { leading = true, trailing = true } = options; return debounce.debounce(func, throttleMs, { leading, maxWait: throttleMs, trailing }); } exports.throttle = throttle; })); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/LogUtils.js var import_throttle = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = require_throttle$1().throttle; })))()); var isDev = true; var warn = function warn(condition, format) { for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key]; if (isDev && typeof console !== "undefined" && console.warn) { if (format === void 0) console.warn("LogUtils requires an error message argument"); if (!condition) if (format === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); else { var argIndex = 0; console.warn(format.replace(/%s/g, () => args[argIndex++])); } } }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/responsiveContainerUtils.js var defaultResponsiveContainerProps = { width: "100%", height: "100%", debounce: 0, minWidth: 0, initialDimension: { width: -1, height: -1 } }; var calculateChartDimensions = (containerWidth, containerHeight, props) => { var { width = defaultResponsiveContainerProps.width, height = defaultResponsiveContainerProps.height, aspect, maxHeight } = props; var calculatedWidth = isPercent(width) ? containerWidth : Number(width); var calculatedHeight = isPercent(height) ? containerHeight : Number(height); if (aspect && aspect > 0) { if (calculatedWidth) calculatedHeight = calculatedWidth / aspect; else if (calculatedHeight) calculatedWidth = calculatedHeight * aspect; if (maxHeight && calculatedHeight != null && calculatedHeight > maxHeight) calculatedHeight = maxHeight; } return { calculatedWidth, calculatedHeight }; }; var bothOverflow = { width: 0, height: 0, overflow: "visible" }; var overflowX = { width: 0, overflowX: "visible" }; var overflowY = { height: 0, overflowY: "visible" }; var noStyle = {}; /** * This zero-size, overflow-visible is required to allow the chart to shrink. * Without it, the chart itself will fill the ResponsiveContainer, and while it allows the chart to grow, * it would always keep the container at the size of the chart, * and ResizeObserver would never fire. * With this zero-size element, the chart itself never actually fills the container, * it just so happens that it is visible because it overflows. * I learned this trick from the `react-virtualized` library: https://github.com/bvaughn/react-virtualized-auto-sizer/blob/master/src/AutoSizer.ts * See https://github.com/recharts/recharts/issues/172 and also https://github.com/bvaughn/react-virtualized/issues/68 * * Also, we don't need to apply the zero-size style if the dimension is a fixed number (or undefined), * because in that case the chart can't shrink in that dimension anyway. * This fixes defining the dimensions using aspect ratio: https://github.com/recharts/recharts/issues/6245 */ var getInnerDivStyle = (props) => { var { width, height } = props; var isWidthPercent = isPercent(width); var isHeightPercent = isPercent(height); if (isWidthPercent && isHeightPercent) return bothOverflow; if (isWidthPercent) return overflowX; if (isHeightPercent) return overflowY; return noStyle; }; function getDefaultWidthAndHeight(_ref) { var { width, height, aspect } = _ref; var calculatedWidth = width; var calculatedHeight = height; if (calculatedWidth === void 0 && calculatedHeight === void 0) { calculatedWidth = defaultResponsiveContainerProps.width; calculatedHeight = defaultResponsiveContainerProps.height; } else if (calculatedWidth === void 0) calculatedWidth = aspect && aspect > 0 ? void 0 : defaultResponsiveContainerProps.width; else if (calculatedHeight === void 0) calculatedHeight = aspect && aspect > 0 ? void 0 : defaultResponsiveContainerProps.height; return { width: calculatedWidth, height: calculatedHeight }; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/ResponsiveContainer.js function _extends$48() { return _extends$48 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$48.apply(null, arguments); } function ownKeys$65(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$65(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$65(Object(t), !0).forEach(function(r) { _defineProperty$67(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$65(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$67(e, r, t) { return (r = _toPropertyKey$67(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$67(t) { var i = _toPrimitive$67(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$67(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var ResponsiveContainerContext = /* @__PURE__ */ (0, import_react.createContext)(defaultResponsiveContainerProps.initialDimension); function isAcceptableSize(size) { return isPositiveNumber(size.width) && isPositiveNumber(size.height); } function ResponsiveContainerContextProvider(_ref) { var { children, width, height } = _ref; var size = (0, import_react.useMemo)(() => ({ width, height }), [width, height]); if (!isAcceptableSize(size)) return null; return /* @__PURE__ */ import_react.createElement(ResponsiveContainerContext.Provider, { value: size }, children); } var useResponsiveContainerContext = () => (0, import_react.useContext)(ResponsiveContainerContext); var SizeDetectorContainer = /* @__PURE__ */ (0, import_react.forwardRef)((_ref2, ref) => { var { aspect, initialDimension = defaultResponsiveContainerProps.initialDimension, width, height, minWidth = defaultResponsiveContainerProps.minWidth, minHeight, maxHeight, children, debounce = defaultResponsiveContainerProps.debounce, id, className, onResize, style = {} } = _ref2; var containerRef = (0, import_react.useRef)(null); var onResizeRef = (0, import_react.useRef)(); onResizeRef.current = onResize; (0, import_react.useImperativeHandle)(ref, () => containerRef.current); var [sizes, setSizes] = (0, import_react.useState)({ containerWidth: initialDimension.width, containerHeight: initialDimension.height }); var setContainerSize = (0, import_react.useCallback)((newWidth, newHeight) => { setSizes((prevState) => { var roundedWidth = Math.round(newWidth); var roundedHeight = Math.round(newHeight); if (prevState.containerWidth === roundedWidth && prevState.containerHeight === roundedHeight) return prevState; return { containerWidth: roundedWidth, containerHeight: roundedHeight }; }); }, []); (0, import_react.useEffect)(() => { if (containerRef.current == null || typeof ResizeObserver === "undefined") return noop$2; var callback = (entries) => { var _onResizeRef$current; var entry = entries[0]; if (entry == null) return; var { width: containerWidth, height: containerHeight } = entry.contentRect; setContainerSize(containerWidth, containerHeight); (_onResizeRef$current = onResizeRef.current) === null || _onResizeRef$current === void 0 || _onResizeRef$current.call(onResizeRef, containerWidth, containerHeight); }; if (debounce > 0) callback = (0, import_throttle.default)(callback, debounce, { trailing: true, leading: false }); var observer = new ResizeObserver(callback); var { width: containerWidth, height: containerHeight } = containerRef.current.getBoundingClientRect(); setContainerSize(containerWidth, containerHeight); observer.observe(containerRef.current); return () => { observer.disconnect(); }; }, [setContainerSize, debounce]); var { containerWidth, containerHeight } = sizes; warn(!aspect || aspect > 0, "The aspect(%s) must be greater than zero.", aspect); var { calculatedWidth, calculatedHeight } = calculateChartDimensions(containerWidth, containerHeight, { width, height, aspect, maxHeight }); warn(calculatedWidth != null && calculatedWidth > 0 || calculatedHeight != null && calculatedHeight > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", calculatedWidth, calculatedHeight, width, height, minWidth, minHeight, aspect); return /* @__PURE__ */ import_react.createElement("div", { id: id ? "".concat(id) : void 0, className: clsx("recharts-responsive-container", className), style: _objectSpread$65(_objectSpread$65({}, style), {}, { width, height, minWidth, minHeight, maxHeight }), ref: containerRef }, /* @__PURE__ */ import_react.createElement("div", { style: getInnerDivStyle({ width, height }) }, /* @__PURE__ */ import_react.createElement(ResponsiveContainerContextProvider, { width: calculatedWidth, height: calculatedHeight }, children))); }); /** * The `ResponsiveContainer` component is a container that adjusts its width and height based on the size of its parent element. * It is used to create responsive charts that adapt to different screen sizes. * * This component uses the {@link https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver ResizeObserver} API to monitor changes to the size of its parent element. * If you need to support older browsers that do not support this API, you may need to include a polyfill. * * @see {@link https://recharts.github.io/en-US/guide/sizes/ Chart size guide} * * @provides ResponsiveContainerContext */ var ResponsiveContainer = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => { var responsiveContainerContext = useResponsiveContainerContext(); if (isPositiveNumber(responsiveContainerContext.width) && isPositiveNumber(responsiveContainerContext.height)) return props.children; var { width, height } = getDefaultWidthAndHeight({ width: props.width, height: props.height, aspect: props.aspect }); var { calculatedWidth, calculatedHeight } = calculateChartDimensions(void 0, void 0, { width, height, aspect: props.aspect, maxHeight: props.maxHeight }); if (isNumber(calculatedWidth) && isNumber(calculatedHeight)) return /* @__PURE__ */ import_react.createElement(ResponsiveContainerContextProvider, { width: calculatedWidth, height: calculatedHeight }, props.children); return /* @__PURE__ */ import_react.createElement(SizeDetectorContainer, _extends$48({}, props, { width, height, ref })); }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/context/chartLayoutContext.js function cartesianViewBoxToTrapezoid(box) { if (!box) return; return { x: box.x, y: box.y, upperWidth: "upperWidth" in box ? box.upperWidth : box.width, lowerWidth: "lowerWidth" in box ? box.lowerWidth : box.width, width: box.width, height: box.height }; } var useViewBox = () => { var _useAppSelector; var panorama = useIsPanorama(); var rootViewBox = useAppSelector(selectChartViewBox); var brushDimensions = useAppSelector(selectBrushDimensions); var brushPadding = (_useAppSelector = useAppSelector(selectBrushSettings)) === null || _useAppSelector === void 0 ? void 0 : _useAppSelector.padding; if (!panorama || !brushDimensions || !brushPadding) return rootViewBox; return { width: brushDimensions.width - brushPadding.left - brushPadding.right, height: brushDimensions.height - brushPadding.top - brushPadding.bottom, x: brushPadding.left, y: brushPadding.top }; }; var manyComponentsThrowErrorsIfOffsetIsUndefined = { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0, brushBottom: 0 }; /** * For internal use only. If you want this information, `import { useOffset } from 'recharts'` instead. * * Returns the offset of the chart in pixels. * * @returns {ChartOffsetInternal} The offset of the chart in pixels, or a default value if not in a chart context. */ var useOffsetInternal = () => { var _useAppSelector2; return (_useAppSelector2 = useAppSelector(selectChartOffsetInternal)) !== null && _useAppSelector2 !== void 0 ? _useAppSelector2 : manyComponentsThrowErrorsIfOffsetIsUndefined; }; /** * Returns the width of the chart in pixels. * * If you are using chart with hardcoded `width` prop, then the width returned will be the same * as the `width` prop on the main chart element. * * If you are using a chart with a `ResponsiveContainer`, the width will be the size of the chart * as the ResponsiveContainer has decided it would be. * * If the chart has any axes or legend, the `width` will be the size of the chart * including the axes and legend. Meaning: adding axes and legend will not change the width. * * The dimensions do not scale, meaning as user zoom in and out, the width number will not change * as the chart gets visually larger or smaller. * * Returns `undefined` if used outside a chart context. * * @returns {number | undefined} The width of the chart in pixels, or `undefined` if not in a chart context. */ var useChartWidth = () => { return useAppSelector(selectChartWidth); }; /** * Returns the height of the chart in pixels. * * If you are using chart with hardcoded `height` props, then the height returned will be the same * as the `height` prop on the main chart element. * * If you are using a chart with a `ResponsiveContainer`, the height will be the size of the chart * as the ResponsiveContainer has decided it would be. * * If the chart has any axes or legend, the `height` will be the size of the chart * including the axes and legend. Meaning: adding axes and legend will not change the height. * * The dimensions do not scale, meaning as user zoom in and out, the height number will not change * as the chart gets visually larger or smaller. * * Returns `undefined` if used outside a chart context. * * @returns {number | undefined} The height of the chart in pixels, or `undefined` if not in a chart context. */ var useChartHeight = () => { return useAppSelector(selectChartHeight); }; /** * Margin is the empty space around the chart. Excludes axes and legend and brushes and the like. * This is declared by the user in the chart props. * If you are interested in the space occupied by axes, legend, or brushes, * use {@link useOffset} instead, which also includes calculated widths and heights of axes and legends. * * Returns `undefined` if used outside a chart context. * * @returns {Margin | undefined} The margin of the chart in pixels, or `undefined` if not in a chart context. */ var useMargin = () => { return useAppSelector((state) => state.layout.margin); }; var selectChartLayout = (state) => state.layout.layoutType; var useChartLayout = () => useAppSelector(selectChartLayout); var useCartesianChartLayout = () => { var layout = useChartLayout(); if (layout === "horizontal" || layout === "vertical") return layout; }; var selectPolarChartLayout = (state) => { var layout = state.layout.layoutType; if (layout === "centric" || layout === "radial") return layout; }; var usePolarChartLayout = () => { return useAppSelector(selectPolarChartLayout); }; /** * Returns true if the component is rendered inside a chart context. * Some components may be used both inside and outside of charts, * and this hook allows them to determine if they are in a chart context or not. * * Other selectors may return undefined when used outside a chart context, * or undefined when inside a chart, but without relevant data. * This hook provides a more explicit way to check for chart context. * * @returns {boolean} True if in chart context, false otherwise. */ var useIsInChartContext = () => { return useChartLayout() !== void 0; }; var ReportChartSize = (props) => { var dispatch = useAppDispatch(); var isPanorama = useIsPanorama(); var { width: widthFromProps, height: heightFromProps } = props; var responsiveContainerCalculations = useResponsiveContainerContext(); var width = widthFromProps; var height = heightFromProps; if (responsiveContainerCalculations) { width = responsiveContainerCalculations.width > 0 ? responsiveContainerCalculations.width : widthFromProps; height = responsiveContainerCalculations.height > 0 ? responsiveContainerCalculations.height : heightFromProps; } (0, import_react.useEffect)(() => { if (!isPanorama && isPositiveNumber(width) && isPositiveNumber(height)) dispatch(setChartSize({ width, height })); }, [ dispatch, isPanorama, width, height ]); return null; }; var ReportChartMargin = (_ref) => { var { margin } = _ref; var dispatch = useAppDispatch(); (0, import_react.useEffect)(() => { dispatch(setMargin(margin)); }, [dispatch, margin]); return null; }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/immer-npm-10.2.0-e485dbc924-10c0.zip/node_modules/immer/dist/immer.mjs var NOTHING = Symbol.for("immer-nothing"); var DRAFTABLE = Symbol.for("immer-draftable"); var DRAFT_STATE = Symbol.for("immer-state"); var errors = [ function(plugin) { return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`; }, function(thing) { return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${thing}'`; }, "This object has been frozen and should not be mutated", function(data) { return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + data; }, "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.", "Immer forbids circular references", "The first or second argument to `produce` must be a function", "The third argument to `produce` must be a function or undefined", "First argument to `createDraft` must be a plain object, an array, or an immerable object", "First argument to `finishDraft` must be a draft returned by `createDraft`", function(thing) { return `'current' expects a draft, got: ${thing}`; }, "Object.defineProperty() cannot be used on an Immer draft", "Object.setPrototypeOf() cannot be used on an Immer draft", "Immer only supports deleting array indices", "Immer only supports setting array indices and the 'length' property", function(thing) { return `'original' expects a draft, got: ${thing}`; } ]; function die(error, ...args) { { const e = errors[error]; const msg = typeof e === "function" ? e.apply(null, args) : e; throw new Error(`[Immer] ${msg}`); } throw new Error(`[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`); } var getPrototypeOf = Object.getPrototypeOf; function isDraft(value) { return !!value && !!value[DRAFT_STATE]; } function isDraftable(value) { if (!value) return false; return isPlainObject$1(value) || Array.isArray(value) || !!value[DRAFTABLE] || !!value.constructor?.[DRAFTABLE] || isMap(value) || isSet(value); } var objectCtorString = Object.prototype.constructor.toString(); var cachedCtorStrings = /* @__PURE__ */ new WeakMap(); function isPlainObject$1(value) { if (!value || typeof value !== "object") return false; const proto = Object.getPrototypeOf(value); if (proto === null || proto === Object.prototype) return true; const Ctor = Object.hasOwnProperty.call(proto, "constructor") && proto.constructor; if (Ctor === Object) return true; if (typeof Ctor !== "function") return false; let ctorString = cachedCtorStrings.get(Ctor); if (ctorString === void 0) { ctorString = Function.toString.call(Ctor); cachedCtorStrings.set(Ctor, ctorString); } return ctorString === objectCtorString; } function each(obj, iter, strict = true) { if (getArchtype(obj) === 0) (strict ? Reflect.ownKeys(obj) : Object.keys(obj)).forEach((key) => { iter(key, obj[key], obj); }); else obj.forEach((entry, index) => iter(index, entry, obj)); } function getArchtype(thing) { const state = thing[DRAFT_STATE]; return state ? state.type_ : Array.isArray(thing) ? 1 : isMap(thing) ? 2 : isSet(thing) ? 3 : 0; } function has(thing, prop) { return getArchtype(thing) === 2 ? thing.has(prop) : Object.prototype.hasOwnProperty.call(thing, prop); } function set(thing, propOrOldValue, value) { const t = getArchtype(thing); if (t === 2) thing.set(propOrOldValue, value); else if (t === 3) thing.add(value); else thing[propOrOldValue] = value; } function is$1(x, y) { if (x === y) return x !== 0 || 1 / x === 1 / y; else return x !== x && y !== y; } function isMap(target) { return target instanceof Map; } function isSet(target) { return target instanceof Set; } function latest(state) { return state.copy_ || state.base_; } function shallowCopy(base, strict) { if (isMap(base)) return new Map(base); if (isSet(base)) return new Set(base); if (Array.isArray(base)) return Array.prototype.slice.call(base); const isPlain = isPlainObject$1(base); if (strict === true || strict === "class_only" && !isPlain) { const descriptors = Object.getOwnPropertyDescriptors(base); delete descriptors[DRAFT_STATE]; let keys = Reflect.ownKeys(descriptors); for (let i = 0; i < keys.length; i++) { const key = keys[i]; const desc = descriptors[key]; if (desc.writable === false) { desc.writable = true; desc.configurable = true; } if (desc.get || desc.set) descriptors[key] = { configurable: true, writable: true, enumerable: desc.enumerable, value: base[key] }; } return Object.create(getPrototypeOf(base), descriptors); } else { const proto = getPrototypeOf(base); if (proto !== null && isPlain) return { ...base }; return Object.assign(Object.create(proto), base); } } function freeze(obj, deep = false) { if (isFrozen(obj) || isDraft(obj) || !isDraftable(obj)) return obj; if (getArchtype(obj) > 1) Object.defineProperties(obj, { set: dontMutateMethodOverride, add: dontMutateMethodOverride, clear: dontMutateMethodOverride, delete: dontMutateMethodOverride }); Object.freeze(obj); if (deep) Object.values(obj).forEach((value) => freeze(value, true)); return obj; } function dontMutateFrozenCollections() { die(2); } var dontMutateMethodOverride = { value: dontMutateFrozenCollections }; function isFrozen(obj) { if (obj === null || typeof obj !== "object") return true; return Object.isFrozen(obj); } var plugins = {}; function getPlugin(pluginKey) { const plugin = plugins[pluginKey]; if (!plugin) die(0, pluginKey); return plugin; } var currentScope; function getCurrentScope() { return currentScope; } function createScope(parent_, immer_) { return { drafts_: [], parent_, immer_, canAutoFreeze_: true, unfinalizedDrafts_: 0 }; } function usePatchesInScope(scope, patchListener) { if (patchListener) { getPlugin("Patches"); scope.patches_ = []; scope.inversePatches_ = []; scope.patchListener_ = patchListener; } } function revokeScope(scope) { leaveScope(scope); scope.drafts_.forEach(revokeDraft); scope.drafts_ = null; } function leaveScope(scope) { if (scope === currentScope) currentScope = scope.parent_; } function enterScope(immer2) { return currentScope = createScope(currentScope, immer2); } function revokeDraft(draft) { const state = draft[DRAFT_STATE]; if (state.type_ === 0 || state.type_ === 1) state.revoke_(); else state.revoked_ = true; } function processResult(result, scope) { scope.unfinalizedDrafts_ = scope.drafts_.length; const baseDraft = scope.drafts_[0]; if (result !== void 0 && result !== baseDraft) { if (baseDraft[DRAFT_STATE].modified_) { revokeScope(scope); die(4); } if (isDraftable(result)) { result = finalize(scope, result); if (!scope.parent_) maybeFreeze(scope, result); } if (scope.patches_) getPlugin("Patches").generateReplacementPatches_(baseDraft[DRAFT_STATE].base_, result, scope.patches_, scope.inversePatches_); } else result = finalize(scope, baseDraft, []); revokeScope(scope); if (scope.patches_) scope.patchListener_(scope.patches_, scope.inversePatches_); return result !== NOTHING ? result : void 0; } function finalize(rootScope, value, path) { if (isFrozen(value)) return value; const useStrictIteration = rootScope.immer_.shouldUseStrictIteration(); const state = value[DRAFT_STATE]; if (!state) { each(value, (key, childValue) => finalizeProperty(rootScope, state, value, key, childValue, path), useStrictIteration); return value; } if (state.scope_ !== rootScope) return value; if (!state.modified_) { maybeFreeze(rootScope, state.base_, true); return state.base_; } if (!state.finalized_) { state.finalized_ = true; state.scope_.unfinalizedDrafts_--; const result = state.copy_; let resultEach = result; let isSet2 = false; if (state.type_ === 3) { resultEach = new Set(result); result.clear(); isSet2 = true; } each(resultEach, (key, childValue) => finalizeProperty(rootScope, state, result, key, childValue, path, isSet2), useStrictIteration); maybeFreeze(rootScope, result, false); if (path && rootScope.patches_) getPlugin("Patches").generatePatches_(state, path, rootScope.patches_, rootScope.inversePatches_); } return state.copy_; } function finalizeProperty(rootScope, parentState, targetObject, prop, childValue, rootPath, targetIsSet) { if (childValue == null) return; if (typeof childValue !== "object" && !targetIsSet) return; const childIsFrozen = isFrozen(childValue); if (childIsFrozen && !targetIsSet) return; if (childValue === targetObject) die(5); if (isDraft(childValue)) { const res = finalize(rootScope, childValue, rootPath && parentState && parentState.type_ !== 3 && !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0); set(targetObject, prop, res); if (isDraft(res)) rootScope.canAutoFreeze_ = false; else return; } else if (targetIsSet) targetObject.add(childValue); if (isDraftable(childValue) && !childIsFrozen) { if (!rootScope.immer_.autoFreeze_ && rootScope.unfinalizedDrafts_ < 1) return; if (parentState && parentState.base_ && parentState.base_[prop] === childValue && childIsFrozen) return; finalize(rootScope, childValue); if ((!parentState || !parentState.scope_.parent_) && typeof prop !== "symbol" && (isMap(targetObject) ? targetObject.has(prop) : Object.prototype.propertyIsEnumerable.call(targetObject, prop))) maybeFreeze(rootScope, childValue); } } function maybeFreeze(scope, value, deep = false) { if (!scope.parent_ && scope.immer_.autoFreeze_ && scope.canAutoFreeze_) freeze(value, deep); } function createProxyProxy(base, parent) { const isArray = Array.isArray(base); const state = { type_: isArray ? 1 : 0, scope_: parent ? parent.scope_ : getCurrentScope(), modified_: false, finalized_: false, assigned_: {}, parent_: parent, base_: base, draft_: null, copy_: null, revoke_: null, isManual_: false }; let target = state; let traps = objectTraps; if (isArray) { target = [state]; traps = arrayTraps; } const { revoke, proxy } = Proxy.revocable(target, traps); state.draft_ = proxy; state.revoke_ = revoke; return proxy; } var objectTraps = { get(state, prop) { if (prop === DRAFT_STATE) return state; const source = latest(state); if (!has(source, prop)) return readPropFromProto(state, source, prop); const value = source[prop]; if (state.finalized_ || !isDraftable(value)) return value; if (value === peek(state.base_, prop)) { prepareCopy(state); return state.copy_[prop] = createProxy(value, state); } return value; }, has(state, prop) { return prop in latest(state); }, ownKeys(state) { return Reflect.ownKeys(latest(state)); }, set(state, prop, value) { const desc = getDescriptorFromProto(latest(state), prop); if (desc?.set) { desc.set.call(state.draft_, value); return true; } if (!state.modified_) { const current2 = peek(latest(state), prop); const currentState = current2?.[DRAFT_STATE]; if (currentState && currentState.base_ === value) { state.copy_[prop] = value; state.assigned_[prop] = false; return true; } if (is$1(value, current2) && (value !== void 0 || has(state.base_, prop))) return true; prepareCopy(state); markChanged(state); } if (state.copy_[prop] === value && (value !== void 0 || prop in state.copy_) || Number.isNaN(value) && Number.isNaN(state.copy_[prop])) return true; state.copy_[prop] = value; state.assigned_[prop] = true; return true; }, deleteProperty(state, prop) { if (peek(state.base_, prop) !== void 0 || prop in state.base_) { state.assigned_[prop] = false; prepareCopy(state); markChanged(state); } else delete state.assigned_[prop]; if (state.copy_) delete state.copy_[prop]; return true; }, getOwnPropertyDescriptor(state, prop) { const owner = latest(state); const desc = Reflect.getOwnPropertyDescriptor(owner, prop); if (!desc) return desc; return { writable: true, configurable: state.type_ !== 1 || prop !== "length", enumerable: desc.enumerable, value: owner[prop] }; }, defineProperty() { die(11); }, getPrototypeOf(state) { return getPrototypeOf(state.base_); }, setPrototypeOf() { die(12); } }; var arrayTraps = {}; each(objectTraps, (key, fn) => { arrayTraps[key] = function() { arguments[0] = arguments[0][0]; return fn.apply(this, arguments); }; }); arrayTraps.deleteProperty = function(state, prop) { if (isNaN(parseInt(prop))) die(13); return arrayTraps.set.call(this, state, prop, void 0); }; arrayTraps.set = function(state, prop, value) { if (prop !== "length" && isNaN(parseInt(prop))) die(14); return objectTraps.set.call(this, state[0], prop, value, state[0]); }; function peek(draft, prop) { const state = draft[DRAFT_STATE]; return (state ? latest(state) : draft)[prop]; } function readPropFromProto(state, source, prop) { const desc = getDescriptorFromProto(source, prop); return desc ? `value` in desc ? desc.value : desc.get?.call(state.draft_) : void 0; } function getDescriptorFromProto(source, prop) { if (!(prop in source)) return void 0; let proto = getPrototypeOf(source); while (proto) { const desc = Object.getOwnPropertyDescriptor(proto, prop); if (desc) return desc; proto = getPrototypeOf(proto); } } function markChanged(state) { if (!state.modified_) { state.modified_ = true; if (state.parent_) markChanged(state.parent_); } } function prepareCopy(state) { if (!state.copy_) state.copy_ = shallowCopy(state.base_, state.scope_.immer_.useStrictShallowCopy_); } var Immer2 = class { constructor(config) { this.autoFreeze_ = true; this.useStrictShallowCopy_ = false; this.useStrictIteration_ = true; /** * The `produce` function takes a value and a "recipe function" (whose * return value often depends on the base state). The recipe function is * free to mutate its first argument however it wants. All mutations are * only ever applied to a __copy__ of the base state. * * Pass only a function to create a "curried producer" which relieves you * from passing the recipe function every time. * * Only plain objects and arrays are made mutable. All other objects are * considered uncopyable. * * Note: This function is __bound__ to its `Immer` instance. * * @param {any} base - the initial state * @param {Function} recipe - function that receives a proxy of the base state as first argument and which can be freely modified * @param {Function} patchListener - optional function that will be called with all the patches produced here * @returns {any} a new state, or the initial state if nothing was modified */ this.produce = (base, recipe, patchListener) => { if (typeof base === "function" && typeof recipe !== "function") { const defaultBase = recipe; recipe = base; const self = this; return function curriedProduce(base2 = defaultBase, ...args) { return self.produce(base2, (draft) => recipe.call(this, draft, ...args)); }; } if (typeof recipe !== "function") die(6); if (patchListener !== void 0 && typeof patchListener !== "function") die(7); let result; if (isDraftable(base)) { const scope = enterScope(this); const proxy = createProxy(base, void 0); let hasError = true; try { result = recipe(proxy); hasError = false; } finally { if (hasError) revokeScope(scope); else leaveScope(scope); } usePatchesInScope(scope, patchListener); return processResult(result, scope); } else if (!base || typeof base !== "object") { result = recipe(base); if (result === void 0) result = base; if (result === NOTHING) result = void 0; if (this.autoFreeze_) freeze(result, true); if (patchListener) { const p = []; const ip = []; getPlugin("Patches").generateReplacementPatches_(base, result, p, ip); patchListener(p, ip); } return result; } else die(1, base); }; this.produceWithPatches = (base, recipe) => { if (typeof base === "function") return (state, ...args) => this.produceWithPatches(state, (draft) => base(draft, ...args)); let patches, inversePatches; return [ this.produce(base, recipe, (p, ip) => { patches = p; inversePatches = ip; }), patches, inversePatches ]; }; if (typeof config?.autoFreeze === "boolean") this.setAutoFreeze(config.autoFreeze); if (typeof config?.useStrictShallowCopy === "boolean") this.setUseStrictShallowCopy(config.useStrictShallowCopy); if (typeof config?.useStrictIteration === "boolean") this.setUseStrictIteration(config.useStrictIteration); } createDraft(base) { if (!isDraftable(base)) die(8); if (isDraft(base)) base = current(base); const scope = enterScope(this); const proxy = createProxy(base, void 0); proxy[DRAFT_STATE].isManual_ = true; leaveScope(scope); return proxy; } finishDraft(draft, patchListener) { const state = draft && draft[DRAFT_STATE]; if (!state || !state.isManual_) die(9); const { scope_: scope } = state; usePatchesInScope(scope, patchListener); return processResult(void 0, scope); } /** * Pass true to automatically freeze all copies created by Immer. * * By default, auto-freezing is enabled. */ setAutoFreeze(value) { this.autoFreeze_ = value; } /** * Pass true to enable strict shallow copy. * * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties. */ setUseStrictShallowCopy(value) { this.useStrictShallowCopy_ = value; } /** * Pass false to use faster iteration that skips non-enumerable properties * but still handles symbols for compatibility. * * By default, strict iteration is enabled (includes all own properties). */ setUseStrictIteration(value) { this.useStrictIteration_ = value; } shouldUseStrictIteration() { return this.useStrictIteration_; } applyPatches(base, patches) { let i; for (i = patches.length - 1; i >= 0; i--) { const patch = patches[i]; if (patch.path.length === 0 && patch.op === "replace") { base = patch.value; break; } } if (i > -1) patches = patches.slice(i + 1); const applyPatchesImpl = getPlugin("Patches").applyPatches_; if (isDraft(base)) return applyPatchesImpl(base, patches); return this.produce(base, (draft) => applyPatchesImpl(draft, patches)); } }; function createProxy(value, parent) { const draft = isMap(value) ? getPlugin("MapSet").proxyMap_(value, parent) : isSet(value) ? getPlugin("MapSet").proxySet_(value, parent) : createProxyProxy(value, parent); (parent ? parent.scope_ : getCurrentScope()).drafts_.push(draft); return draft; } function current(value) { if (!isDraft(value)) die(10, value); return currentImpl(value); } function currentImpl(value) { if (!isDraftable(value) || isFrozen(value)) return value; const state = value[DRAFT_STATE]; let copy; let strict = true; if (state) { if (!state.modified_) return state.base_; state.finalized_ = true; copy = shallowCopy(value, state.scope_.immer_.useStrictShallowCopy_); strict = state.scope_.immer_.shouldUseStrictIteration(); } else copy = shallowCopy(value, true); each(copy, (key, childValue) => { set(copy, key, currentImpl(childValue)); }, strict); if (state) state.finalized_ = false; return copy; } new Immer2().produce; function castDraft(value) { return value; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/legendSlice.js var legendSlice = createSlice({ name: "legend", initialState: { settings: { layout: "horizontal", align: "center", verticalAlign: "middle", itemSorter: "value" }, size: { width: 0, height: 0 }, payload: [] }, reducers: { setLegendSize(state, action) { state.size.width = action.payload.width; state.size.height = action.payload.height; }, setLegendSettings(state, action) { state.settings.align = action.payload.align; state.settings.layout = action.payload.layout; state.settings.verticalAlign = action.payload.verticalAlign; state.settings.itemSorter = action.payload.itemSorter; }, addLegendPayload: { reducer(state, action) { state.payload.push(castDraft(action.payload)); }, prepare: prepareAutoBatched() }, replaceLegendPayload: { reducer(state, action) { var { prev, next } = action.payload; var index = current$1(state).payload.indexOf(castDraft(prev)); if (index > -1) state.payload[index] = castDraft(next); }, prepare: prepareAutoBatched() }, removeLegendPayload: { reducer(state, action) { var index = current$1(state).payload.indexOf(castDraft(action.payload)); if (index > -1) state.payload.splice(index, 1); }, prepare: prepareAutoBatched() } } }); var { setLegendSize, setLegendSettings, addLegendPayload, replaceLegendPayload, removeLegendPayload } = legendSlice.actions; var legendReducer = legendSlice.reducer; //#endregion //#region .yarn/__virtual__/use-sync-external-store-virtual-aac11f593c/3/AppData/Local/Yarn/Berry/cache/use-sync-external-store-npm-1.6.0-2db2af616d-10c0.zip/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js /** * @license React * use-sync-external-store-with-selector.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var require_use_sync_external_store_with_selector_development = /* @__PURE__ */ __commonJSMin(((exports) => { (function() { function is(x, y) { return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; } "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); var React = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = React.useSyncExternalStore, useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue; exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) { var instRef = useRef(null); if (null === instRef.current) { var inst = { hasValue: !1, value: null }; instRef.current = inst; } else inst = instRef.current; instRef = useMemo(function() { function memoizedSelector(nextSnapshot) { if (!hasMemo) { hasMemo = !0; memoizedSnapshot = nextSnapshot; nextSnapshot = selector(nextSnapshot); if (void 0 !== isEqual && inst.hasValue) { var currentSelection = inst.value; if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection; } return memoizedSelection = nextSnapshot; } currentSelection = memoizedSelection; if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection; var nextSelection = selector(nextSnapshot); if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection; memoizedSnapshot = nextSnapshot; return memoizedSelection = nextSelection; } var hasMemo = !1, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot; return [function() { return memoizedSelector(getSnapshot()); }, null === maybeGetServerSnapshot ? void 0 : function() { return memoizedSelector(maybeGetServerSnapshot()); }]; }, [ getSnapshot, getServerSnapshot, selector, isEqual ]); var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]); useEffect(function() { inst.hasValue = !0; inst.value = value; }, [value]); useDebugValue(value); return value; }; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); })(); })); (/* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = require_use_sync_external_store_with_selector_development(); })))(); function defaultNoopBatch(callback) { callback(); } function createListenerCollection() { let first = null; let last = null; return { clear() { first = null; last = null; }, notify() { defaultNoopBatch(() => { let listener = first; while (listener) { listener.callback(); listener = listener.next; } }); }, get() { const listeners = []; let listener = first; while (listener) { listeners.push(listener); listener = listener.next; } return listeners; }, subscribe(callback) { let isSubscribed = true; const listener = last = { callback, next: null, prev: last }; if (listener.prev) listener.prev.next = listener; else first = listener; return function unsubscribe() { if (!isSubscribed || first === null) return; isSubscribed = false; if (listener.next) listener.next.prev = listener.prev; else last = listener.prev; if (listener.prev) listener.prev.next = listener.next; else first = listener.next; }; } }; } var nullListeners = { notify() {}, get: () => [] }; function createSubscription(store, parentSub) { let unsubscribe; let listeners = nullListeners; let subscriptionsAmount = 0; let selfSubscribed = false; function addNestedSub(listener) { trySubscribe(); const cleanupListener = listeners.subscribe(listener); let removed = false; return () => { if (!removed) { removed = true; cleanupListener(); tryUnsubscribe(); } }; } function notifyNestedSubs() { listeners.notify(); } function handleChangeWrapper() { if (subscription.onStateChange) subscription.onStateChange(); } function isSubscribed() { return selfSubscribed; } function trySubscribe() { subscriptionsAmount++; if (!unsubscribe) { unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper); listeners = createListenerCollection(); } } function tryUnsubscribe() { subscriptionsAmount--; if (unsubscribe && subscriptionsAmount === 0) { unsubscribe(); unsubscribe = void 0; listeners.clear(); listeners = nullListeners; } } function trySubscribeSelf() { if (!selfSubscribed) { selfSubscribed = true; trySubscribe(); } } function tryUnsubscribeSelf() { if (selfSubscribed) { selfSubscribed = false; tryUnsubscribe(); } } const subscription = { addNestedSub, notifyNestedSubs, handleChangeWrapper, isSubscribed, trySubscribe: trySubscribeSelf, tryUnsubscribe: tryUnsubscribeSelf, getListeners: () => listeners }; return subscription; } var canUseDOM = () => !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined"); var isDOM = /* @__PURE__ */ canUseDOM(); var isRunningInReactNative = () => typeof navigator !== "undefined" && navigator.product === "ReactNative"; var isReactNative = /* @__PURE__ */ isRunningInReactNative(); var getUseIsomorphicLayoutEffect = () => isDOM || isReactNative ? import_react.useLayoutEffect : import_react.useEffect; var useIsomorphicLayoutEffect = /* @__PURE__ */ getUseIsomorphicLayoutEffect(); function is(x, y) { if (x === y) return x !== 0 || y !== 0 || 1 / x === 1 / y; else return x !== x && y !== y; } function shallowEqual(objA, objB) { if (is(objA, objB)) return true; if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) return false; const keysA = Object.keys(objA); const keysB = Object.keys(objB); if (keysA.length !== keysB.length) return false; for (let i = 0; i < keysA.length; i++) if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) return false; return true; } var ContextKey = /* @__PURE__ */ Symbol.for(`react-redux-context`); var gT = typeof globalThis !== "undefined" ? globalThis : {}; function getContext() { if (!import_react.createContext) return {}; const contextMap = gT[ContextKey] ??= /* @__PURE__ */ new Map(); let realContext = contextMap.get(import_react.createContext); if (!realContext) { realContext = import_react.createContext(null); realContext.displayName = "ReactRedux"; contextMap.set(import_react.createContext, realContext); } return realContext; } var ReactReduxContext = /* @__PURE__ */ getContext(); function Provider(providerProps) { const { children, context, serverState, store } = providerProps; const contextValue = import_react.useMemo(() => { const baseContextValue = { store, subscription: createSubscription(store), getServerState: serverState ? () => serverState : void 0 }; { const { identityFunctionCheck = "once", stabilityCheck = "once" } = providerProps; return /* @__PURE__ */ Object.assign(baseContextValue, { stabilityCheck, identityFunctionCheck }); } }, [store, serverState]); const previousState = import_react.useMemo(() => store.getState(), [store]); useIsomorphicLayoutEffect(() => { const { subscription } = contextValue; subscription.onStateChange = subscription.notifyNestedSubs; subscription.trySubscribe(); if (previousState !== store.getState()) subscription.notifyNestedSubs(); return () => { subscription.tryUnsubscribe(); subscription.onStateChange = void 0; }; }, [contextValue, previousState]); const Context = context || ReactReduxContext; return /* @__PURE__ */ import_react.createElement(Context.Provider, { value: contextValue }, children); } var Provider_default = Provider; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/propsAreEqual.js var propsToShallowCompare = new Set([ "axisLine", "tickLine", "activeBar", "activeDot", "activeLabel", "activeShape", "allowEscapeViewBox", "background", "cursor", "dot", "label", "line", "margin", "padding", "position", "shape", "style", "tick", "wrapperStyle", "radius", "throttledEvents" ]); /** * When comparing two values, returns true if they are the same value or * are both NaN. * * If we used just a simple triple equals, we would get false negatives for two NaNs * which could cause extra re-renders so let's have this instead. * * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#same-value-zero_equality * * @param x first value to compare * @param y second value to compare * return true if the same, false if different */ function sameValueZero(x, y) { if (x == null && y == null) return true; if (typeof x === "number" && typeof y === "number") return x === y || x !== x && y !== y; return x === y; } /** * So usually React would compare only the first level of props using Object.is. * However, in our case many props are objects or arrays, and our own docs recommend to do that! * Therefore, we need a custom comparison function that does a shallow comparison of each prop value. * * Because charts can and do receive large props (typically the data array), * we only limit this to a subset of known props that are likely to be objects/arrays. * * @param prevProps * @param nextProps */ function propsAreEqual(prevProps, nextProps) { for (var key of new Set([...Object.keys(prevProps), ...Object.keys(nextProps)])) if (propsToShallowCompare.has(key)) { if (prevProps[key] == null && nextProps[key] == null) continue; if (!shallowEqual(prevProps[key], nextProps[key])) return false; } else if (!sameValueZero(prevProps[key], nextProps[key])) return false; return true; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/Legend.js var _excluded$35 = ["contextPayload"]; function _extends$47() { return _extends$47 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$47.apply(null, arguments); } function ownKeys$64(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$64(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$64(Object(t), !0).forEach(function(r) { _defineProperty$66(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$64(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$66(e, r, t) { return (r = _toPropertyKey$66(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$66(t) { var i = _toPrimitive$66(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$66(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function _objectWithoutProperties$35(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$35(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$35(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } function defaultUniqBy$1(entry) { return entry.value; } function LegendContent(props) { var { contextPayload } = props, otherProps = _objectWithoutProperties$35(props, _excluded$35); var finalPayload = getUniqPayload(contextPayload, props.payloadUniqBy, defaultUniqBy$1); var contentProps = _objectSpread$64(_objectSpread$64({}, otherProps), {}, { payload: finalPayload }); if (/* @__PURE__ */ import_react.isValidElement(props.content)) return /* @__PURE__ */ import_react.cloneElement(props.content, contentProps); if (typeof props.content === "function") return /* @__PURE__ */ import_react.createElement(props.content, contentProps); return /* @__PURE__ */ import_react.createElement(DefaultLegendContent, contentProps); } function getDefaultPosition(style, props, margin, chartWidth, chartHeight, box) { var { layout, align, verticalAlign } = props; var hPos, vPos; if (!style || (style.left === void 0 || style.left === null) && (style.right === void 0 || style.right === null)) if (align === "center" && layout === "vertical") hPos = { left: ((chartWidth || 0) - box.width) / 2 }; else hPos = align === "right" ? { right: margin && margin.right || 0 } : { left: margin && margin.left || 0 }; if (!style || (style.top === void 0 || style.top === null) && (style.bottom === void 0 || style.bottom === null)) if (verticalAlign === "middle") vPos = { top: ((chartHeight || 0) - box.height) / 2 }; else vPos = verticalAlign === "bottom" ? { bottom: margin && margin.bottom || 0 } : { top: margin && margin.top || 0 }; return _objectSpread$64(_objectSpread$64({}, hPos), vPos); } function LegendSettingsDispatcher(props) { var dispatch = useAppDispatch(); (0, import_react.useEffect)(() => { dispatch(setLegendSettings(props)); }, [dispatch, props]); return null; } function LegendSizeDispatcher(props) { var dispatch = useAppDispatch(); (0, import_react.useEffect)(() => { dispatch(setLegendSize(props)); return () => { dispatch(setLegendSize({ width: 0, height: 0 })); }; }, [dispatch, props]); return null; } function getWidthOrHeight(layout, height, width, maxWidth) { if (layout === "vertical" && height != null) return { height }; if (layout === "horizontal") return { width: width || maxWidth }; return null; } var legendDefaultProps = { align: "center", iconSize: 14, inactiveColor: "#ccc", itemSorter: "value", layout: "horizontal", verticalAlign: "bottom" }; /** * @consumes CartesianChartContext * @consumes PolarChartContext */ function LegendImpl(outsideProps) { var props = resolveDefaultProps(outsideProps, legendDefaultProps); var contextPayload = useLegendPayload(); var legendPortalFromContext = useLegendPortal(); var margin = useMargin(); var { width: widthFromProps, height: heightFromProps, wrapperStyle, portal: portalFromProps } = props; var [lastBoundingBox, updateBoundingBox] = useElementOffset([contextPayload]); var chartWidth = useChartWidth(); var chartHeight = useChartHeight(); if (chartWidth == null || chartHeight == null) return null; var maxWidth = chartWidth - ((margin === null || margin === void 0 ? void 0 : margin.left) || 0) - ((margin === null || margin === void 0 ? void 0 : margin.right) || 0); var widthOrHeight = getWidthOrHeight(props.layout, heightFromProps, widthFromProps, maxWidth); var outerStyle = portalFromProps ? wrapperStyle : _objectSpread$64(_objectSpread$64({ position: "absolute", width: (widthOrHeight === null || widthOrHeight === void 0 ? void 0 : widthOrHeight.width) || widthFromProps || "auto", height: (widthOrHeight === null || widthOrHeight === void 0 ? void 0 : widthOrHeight.height) || heightFromProps || "auto" }, getDefaultPosition(wrapperStyle, props, margin, chartWidth, chartHeight, lastBoundingBox)), wrapperStyle); var legendPortal = portalFromProps !== null && portalFromProps !== void 0 ? portalFromProps : legendPortalFromContext; if (legendPortal == null || contextPayload == null) return null; return /* @__PURE__ */ (0, import_react_dom.createPortal)(/* @__PURE__ */ import_react.createElement("div", { className: "recharts-legend-wrapper", style: outerStyle, ref: updateBoundingBox }, /* @__PURE__ */ import_react.createElement(LegendSettingsDispatcher, { layout: props.layout, align: props.align, verticalAlign: props.verticalAlign, itemSorter: props.itemSorter }), !portalFromProps && /* @__PURE__ */ import_react.createElement(LegendSizeDispatcher, { width: lastBoundingBox.width, height: lastBoundingBox.height }), /* @__PURE__ */ import_react.createElement(LegendContent, _extends$47({}, props, widthOrHeight, { margin, chartWidth, chartHeight, contextPayload }))), legendPortal); } var Legend = /* @__PURE__ */ import_react.memo(LegendImpl, propsAreEqual); Legend.displayName = "Legend"; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/DefaultTooltipContent.js /** * @fileOverview Default Tooltip Content */ function _extends$46() { return _extends$46 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$46.apply(null, arguments); } function ownKeys$63(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$63(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$63(Object(t), !0).forEach(function(r) { _defineProperty$65(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$63(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$65(e, r, t) { return (r = _toPropertyKey$65(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$65(t) { var i = _toPrimitive$65(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$65(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function defaultFormatter(value) { return Array.isArray(value) && isNumOrStr(value[0]) && isNumOrStr(value[1]) ? value.join(" ~ ") : value; } /** * @inline */ var defaultDefaultTooltipContentProps = { separator: " : ", contentStyle: { margin: 0, padding: 10, backgroundColor: "#fff", border: "1px solid #ccc", whiteSpace: "nowrap" }, itemStyle: { display: "block", paddingTop: 4, paddingBottom: 4, color: "#000" }, labelStyle: {}, accessibilityLayer: false }; function lodashLikeSortBy(array, itemSorter) { if (itemSorter == null) return array; return (0, import_sortBy.default)(array, itemSorter); } /** * This component is by default rendered inside the {@link Tooltip} component. You would not use it directly. * * You can use this component to customize the content of the tooltip, * or you can provide your own completely independent content. */ var DefaultTooltipContent = (props) => { var { separator = defaultDefaultTooltipContentProps.separator, contentStyle, itemStyle, labelStyle = defaultDefaultTooltipContentProps.labelStyle, payload, formatter, itemSorter, wrapperClassName, labelClassName, label, labelFormatter, accessibilityLayer = defaultDefaultTooltipContentProps.accessibilityLayer } = props; var renderContent = () => { if (payload && payload.length) { var listStyle = { padding: 0, margin: 0 }; var items = lodashLikeSortBy(payload, itemSorter).map((entry, i) => { if (!entry || entry.type === "none") return null; var finalFormatter = entry.formatter || formatter || defaultFormatter; var { value, name } = entry; var finalValue = value; var finalName = name; if (finalFormatter) { var formatted = finalFormatter(value, name, entry, i, payload); if (Array.isArray(formatted)) [finalValue, finalName] = formatted; else if (formatted != null) finalValue = formatted; else return null; } var finalItemStyle = _objectSpread$63(_objectSpread$63({}, defaultDefaultTooltipContentProps.itemStyle), {}, { color: entry.color || defaultDefaultTooltipContentProps.itemStyle.color }, itemStyle); return /* @__PURE__ */ import_react.createElement("li", { className: "recharts-tooltip-item", key: "tooltip-item-".concat(i), style: finalItemStyle }, isNumOrStr(finalName) ? /* @__PURE__ */ import_react.createElement("span", { className: "recharts-tooltip-item-name" }, finalName) : null, isNumOrStr(finalName) ? /* @__PURE__ */ import_react.createElement("span", { className: "recharts-tooltip-item-separator" }, separator) : null, /* @__PURE__ */ import_react.createElement("span", { className: "recharts-tooltip-item-value" }, finalValue), /* @__PURE__ */ import_react.createElement("span", { className: "recharts-tooltip-item-unit" }, entry.unit || "")); }); return /* @__PURE__ */ import_react.createElement("ul", { className: "recharts-tooltip-item-list", style: listStyle }, items); } return null; }; var finalStyle = _objectSpread$63(_objectSpread$63({}, defaultDefaultTooltipContentProps.contentStyle), contentStyle); var finalLabelStyle = _objectSpread$63({ margin: 0 }, labelStyle); var hasLabel = !isNullish(label); var finalLabel = hasLabel ? label : ""; var wrapperCN = clsx("recharts-default-tooltip", wrapperClassName); var labelCN = clsx("recharts-tooltip-label", labelClassName); if (hasLabel && labelFormatter && payload !== void 0 && payload !== null) finalLabel = labelFormatter(label, payload); var accessibilityAttributes = accessibilityLayer ? { role: "status", "aria-live": "assertive" } : {}; return /* @__PURE__ */ import_react.createElement("div", _extends$46({ className: wrapperCN, style: finalStyle }, accessibilityAttributes), /* @__PURE__ */ import_react.createElement("p", { className: labelCN, style: finalLabelStyle }, /* @__PURE__ */ import_react.isValidElement(finalLabel) ? finalLabel : "".concat(finalLabel)), renderContent()); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/tooltip/translate.js var CSS_CLASS_PREFIX = "recharts-tooltip-wrapper"; var TOOLTIP_HIDDEN = { visibility: "hidden" }; function getTooltipCSSClassName(_ref) { var { coordinate, translateX, translateY } = _ref; return clsx(CSS_CLASS_PREFIX, { ["".concat(CSS_CLASS_PREFIX, "-right")]: isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x, ["".concat(CSS_CLASS_PREFIX, "-left")]: isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX < coordinate.x, ["".concat(CSS_CLASS_PREFIX, "-bottom")]: isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY >= coordinate.y, ["".concat(CSS_CLASS_PREFIX, "-top")]: isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY < coordinate.y }); } function getTooltipTranslateXY(_ref2) { var { allowEscapeViewBox, coordinate, key, offset, position, reverseDirection, tooltipDimension, viewBox, viewBoxDimension } = _ref2; if (position && isNumber(position[key])) return position[key]; var negative = coordinate[key] - tooltipDimension - (offset > 0 ? offset : 0); var positive = coordinate[key] + offset; if (allowEscapeViewBox[key]) return reverseDirection[key] ? negative : positive; var viewBoxKey = viewBox[key]; if (viewBoxKey == null) return 0; if (reverseDirection[key]) { if (negative < viewBoxKey) return Math.max(positive, viewBoxKey); return Math.max(negative, viewBoxKey); } if (viewBoxDimension == null) return 0; if (positive + tooltipDimension > viewBoxKey + viewBoxDimension) return Math.max(negative, viewBoxKey); return Math.max(positive, viewBoxKey); } function getTransformStyle(_ref3) { var { translateX, translateY, useTranslate3d } = _ref3; return { transform: useTranslate3d ? "translate3d(".concat(translateX, "px, ").concat(translateY, "px, 0)") : "translate(".concat(translateX, "px, ").concat(translateY, "px)") }; } function getTooltipTranslate(_ref4) { var { allowEscapeViewBox, coordinate, offsetTop, offsetLeft, position, reverseDirection, tooltipBox, useTranslate3d, viewBox } = _ref4; var cssProperties, translateX, translateY; if (tooltipBox.height > 0 && tooltipBox.width > 0 && coordinate) { translateX = getTooltipTranslateXY({ allowEscapeViewBox, coordinate, key: "x", offset: offsetLeft, position, reverseDirection, tooltipDimension: tooltipBox.width, viewBox, viewBoxDimension: viewBox.width }); translateY = getTooltipTranslateXY({ allowEscapeViewBox, coordinate, key: "y", offset: offsetTop, position, reverseDirection, tooltipDimension: tooltipBox.height, viewBox, viewBoxDimension: viewBox.height }); cssProperties = getTransformStyle({ translateX, translateY, useTranslate3d }); } else cssProperties = TOOLTIP_HIDDEN; return { cssProperties, cssClasses: getTooltipCSSClassName({ translateX, translateY, coordinate }) }; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/Global.js var parseIsSsrByDefault = () => !(typeof window !== "undefined" && window.document && Boolean(window.document.createElement) && window.setTimeout); var Global = { devToolsEnabled: true, isSsr: parseIsSsrByDefault() }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/usePrefersReducedMotion.js /** * Detects and subscribes to the user's `prefers-reduced-motion` system preference. * Returns `true` when the user prefers reduced motion, `false` otherwise. * SSR-safe: always returns `false` during server-side rendering. */ function usePrefersReducedMotion() { var [prefersReducedMotion, setPrefersReducedMotion] = (0, import_react.useState)(() => { if (Global.isSsr) return false; if (!window.matchMedia) return false; return window.matchMedia("(prefers-reduced-motion: reduce)").matches; }); (0, import_react.useEffect)(() => { if (!window.matchMedia) return; var mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)"); var handleChange = () => { setPrefersReducedMotion(mediaQuery.matches); }; mediaQuery.addEventListener("change", handleChange); return () => { mediaQuery.removeEventListener("change", handleChange); }; }, []); return prefersReducedMotion; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/TooltipBoundingBox.js function ownKeys$62(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$62(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$62(Object(t), !0).forEach(function(r) { _defineProperty$64(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$62(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$64(e, r, t) { return (r = _toPropertyKey$64(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$64(t) { var i = _toPrimitive$64(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$64(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function resolveTransitionProperty(args) { if (args.prefersReducedMotion && args.isAnimationActive === "auto") return; if (args.isAnimationActive && args.active) return "transform ".concat(args.animationDuration, "ms ").concat(args.animationEasing); } function TooltipBoundingBoxImpl(props) { var _props$coordinate3, _props$coordinate4, _props$coordinate$x2, _props$coordinate5, _props$coordinate$y2, _props$coordinate6; var prefersReducedMotion = usePrefersReducedMotion(); var [state, setState] = import_react.useState(() => ({ dismissed: false, dismissedAtCoordinate: { x: 0, y: 0 } })); import_react.useEffect(() => { var handleKeyDown = (event) => { if (event.key === "Escape") { var _props$coordinate$x, _props$coordinate, _props$coordinate$y, _props$coordinate2; setState({ dismissed: true, dismissedAtCoordinate: { x: (_props$coordinate$x = (_props$coordinate = props.coordinate) === null || _props$coordinate === void 0 ? void 0 : _props$coordinate.x) !== null && _props$coordinate$x !== void 0 ? _props$coordinate$x : 0, y: (_props$coordinate$y = (_props$coordinate2 = props.coordinate) === null || _props$coordinate2 === void 0 ? void 0 : _props$coordinate2.y) !== null && _props$coordinate$y !== void 0 ? _props$coordinate$y : 0 } }); } }; document.addEventListener("keydown", handleKeyDown); return () => { document.removeEventListener("keydown", handleKeyDown); }; }, [(_props$coordinate3 = props.coordinate) === null || _props$coordinate3 === void 0 ? void 0 : _props$coordinate3.x, (_props$coordinate4 = props.coordinate) === null || _props$coordinate4 === void 0 ? void 0 : _props$coordinate4.y]); if (state.dismissed && (((_props$coordinate$x2 = (_props$coordinate5 = props.coordinate) === null || _props$coordinate5 === void 0 ? void 0 : _props$coordinate5.x) !== null && _props$coordinate$x2 !== void 0 ? _props$coordinate$x2 : 0) !== state.dismissedAtCoordinate.x || ((_props$coordinate$y2 = (_props$coordinate6 = props.coordinate) === null || _props$coordinate6 === void 0 ? void 0 : _props$coordinate6.y) !== null && _props$coordinate$y2 !== void 0 ? _props$coordinate$y2 : 0) !== state.dismissedAtCoordinate.y)) setState(_objectSpread$62(_objectSpread$62({}, state), {}, { dismissed: false })); var { cssClasses, cssProperties } = getTooltipTranslate({ allowEscapeViewBox: props.allowEscapeViewBox, coordinate: props.coordinate, offsetLeft: typeof props.offset === "number" ? props.offset : props.offset.x, offsetTop: typeof props.offset === "number" ? props.offset : props.offset.y, position: props.position, reverseDirection: props.reverseDirection, tooltipBox: { height: props.lastBoundingBox.height, width: props.lastBoundingBox.width }, useTranslate3d: props.useTranslate3d, viewBox: props.viewBox }); var outerStyle = _objectSpread$62(_objectSpread$62({}, props.hasPortalFromProps ? {} : _objectSpread$62(_objectSpread$62({ transition: resolveTransitionProperty({ prefersReducedMotion, isAnimationActive: props.isAnimationActive, active: props.active, animationDuration: props.animationDuration, animationEasing: props.animationEasing }) }, cssProperties), {}, { pointerEvents: "none", position: "absolute", top: 0, left: 0 })), {}, { visibility: !state.dismissed && props.active && props.hasPayload ? "visible" : "hidden" }, props.wrapperStyle); return /* @__PURE__ */ import_react.createElement("div", { xmlns: "http://www.w3.org/1999/xhtml", tabIndex: -1, className: cssClasses, style: outerStyle, ref: props.innerRef }, props.children); } var TooltipBoundingBox = /* @__PURE__ */ import_react.memo(TooltipBoundingBoxImpl); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/context/accessibilityContext.js var useAccessibilityLayer = () => { var _useAppSelector; return (_useAppSelector = useAppSelector((state) => state.rootProps.accessibilityLayer)) !== null && _useAppSelector !== void 0 ? _useAppSelector : true; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/shape/Curve.js /** * @fileOverview Curve */ function _extends$45() { return _extends$45 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$45.apply(null, arguments); } function ownKeys$61(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$61(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$61(Object(t), !0).forEach(function(r) { _defineProperty$63(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$61(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$63(e, r, t) { return (r = _toPropertyKey$63(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$63(t) { var i = _toPrimitive$63(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$63(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var CURVE_FACTORIES = { curveBasisClosed: basisClosed_default$1, curveBasisOpen: basisOpen_default, curveBasis: basis_default$1, curveBumpX: bumpX, curveBumpY: bumpY, curveLinearClosed: linearClosed_default, curveLinear: linear_default, curveMonotoneX: monotoneX, curveMonotoneY: monotoneY, curveNatural: natural_default, curveStep: step_default, curveStepAfter: stepAfter, curveStepBefore: stepBefore }; /** * @inline */ /** * @inline */ var defined = (p) => isWellBehavedNumber(p.x) && isWellBehavedNumber(p.y); var areaDefined = (d) => d.base != null && defined(d.base) && defined(d); var getX = (p) => p.x; var getY = (p) => p.y; var getCurveFactory = (type, layout) => { if (typeof type === "function") return type; var name = "curve".concat(upperFirst(type)); if ((name === "curveMonotone" || name === "curveBump") && layout) { var factory = CURVE_FACTORIES["".concat(name).concat(layout === "vertical" ? "Y" : "X")]; if (factory) return factory; } return CURVE_FACTORIES[name] || linear_default; }; var defaultCurveProps = { connectNulls: false, type: "linear" }; /** * Calculate the path of curve. Returns null if points is an empty array. * @return path or null */ var getPath$1 = (_ref) => { var { type = defaultCurveProps.type, points = [], baseLine, layout, connectNulls = defaultCurveProps.connectNulls } = _ref; var curveFactory = getCurveFactory(type, layout); var formatPoints = connectNulls ? points.filter(defined) : points; if (Array.isArray(baseLine)) { var _lineFunction; var areaPoints = points.map((entry, index) => _objectSpread$61(_objectSpread$61({}, entry), {}, { base: baseLine[index] })); if (layout === "vertical") _lineFunction = area_default().y(getY).x1(getX).x0((d) => d.base.x); else _lineFunction = area_default().x(getX).y1(getY).y0((d) => d.base.y); return _lineFunction.defined(areaDefined).curve(curveFactory)(connectNulls ? areaPoints.filter(areaDefined) : areaPoints); } var lineFunction; if (layout === "vertical" && isNumber(baseLine)) lineFunction = area_default().y(getY).x1(getX).x0(baseLine); else if (isNumber(baseLine)) lineFunction = area_default().x(getX).y1(getY).y0(baseLine); else lineFunction = line_default().x(getX).y(getY); return lineFunction.defined(defined).curve(curveFactory)(formatPoints); }; var Curve = (props) => { var { className, points, path, pathRef } = props; var layout = useChartLayout(); if ((!points || !points.length) && !path) return null; var getPathInput = { type: props.type, points: props.points, baseLine: props.baseLine, layout: props.layout || layout, connectNulls: props.connectNulls }; var realPath = points && points.length ? getPath$1(getPathInput) : path; return /* @__PURE__ */ import_react.createElement("path", _extends$45({}, svgPropertiesNoEvents(props), adaptEventHandlers(props), { className: clsx("recharts-curve", className), d: realPath === null ? void 0 : realPath, ref: pathRef })); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/shape/Cross.js /** * @fileOverview Cross */ var _excluded$34 = [ "x", "y", "top", "left", "width", "height", "className" ]; function _extends$44() { return _extends$44 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$44.apply(null, arguments); } function ownKeys$60(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$60(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$60(Object(t), !0).forEach(function(r) { _defineProperty$62(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$60(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$62(e, r, t) { return (r = _toPropertyKey$62(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$62(t) { var i = _toPrimitive$62(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$62(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function _objectWithoutProperties$34(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$34(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$34(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } var getPath = (x, y, width, height, top, left) => { return "M".concat(x, ",").concat(top, "v").concat(height, "M").concat(left, ",").concat(y, "h").concat(width); }; var Cross = (_ref) => { var { x = 0, y = 0, top = 0, left = 0, width = 0, height = 0, className } = _ref, rest = _objectWithoutProperties$34(_ref, _excluded$34); var props = _objectSpread$60({ x, y, top, left, width, height }, rest); if (!isNumber(x) || !isNumber(y) || !isNumber(width) || !isNumber(height) || !isNumber(top) || !isNumber(left)) return null; return /* @__PURE__ */ import_react.createElement("path", _extends$44({}, svgPropertiesAndEvents(props), { className: clsx("recharts-cross", className), d: getPath(x, y, width, height, top, left) })); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/cursor/getCursorRectangle.js function getCursorRectangle(layout, activeCoordinate, offset, tooltipAxisBandSize) { var halfSize = tooltipAxisBandSize / 2; return { stroke: "none", fill: "#ccc", x: layout === "horizontal" ? activeCoordinate.x - halfSize : offset.left + .5, y: layout === "horizontal" ? offset.top + .5 : activeCoordinate.y - halfSize, width: layout === "horizontal" ? tooltipAxisBandSize : offset.width - 1, height: layout === "horizontal" ? offset.height - 1 : tooltipAxisBandSize }; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/animation/util.js function ownKeys$59(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$59(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$59(Object(t), !0).forEach(function(r) { _defineProperty$61(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$59(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$61(e, r, t) { return (r = _toPropertyKey$61(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$61(t) { var i = _toPrimitive$61(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$61(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var getDashCase = (name) => name.replace(/([A-Z])/g, (v) => "-".concat(v.toLowerCase())); var getTransitionVal = (props, duration, easing) => props.map((prop) => "".concat(getDashCase(prop), " ").concat(duration, "ms ").concat(easing)).join(","); /** * Finds the intersection of keys between two objects * @param {object} preObj previous object * @param {object} nextObj next object * @returns an array of keys that exist in both objects */ var getIntersectionKeys = (preObj, nextObj) => [Object.keys(preObj), Object.keys(nextObj)].reduce((a, b) => a.filter((c) => b.includes(c))); /** * Maps an object to another object * @param {function} fn function to map * @param {object} obj object to map * @returns mapped object */ var mapObject = (fn, obj) => Object.keys(obj).reduce((res, key) => _objectSpread$59(_objectSpread$59({}, res), {}, { [key]: fn(key, obj[key]) }), {}); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/animation/configUpdate.js function ownKeys$58(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$58(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$58(Object(t), !0).forEach(function(r) { _defineProperty$60(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$58(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$60(e, r, t) { return (r = _toPropertyKey$60(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$60(t) { var i = _toPrimitive$60(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$60(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var alpha = (begin, end, k) => begin + (end - begin) * k; var needContinue = (_ref) => { var { from, to } = _ref; return from !== to; }; var calStepperVals = (easing, preVals, steps) => { var nextStepVals = mapObject((key, val) => { if (needContinue(val)) { var [newX, newV] = easing(val.from, val.to, val.velocity); return _objectSpread$58(_objectSpread$58({}, val), {}, { from: newX, velocity: newV }); } return val; }, preVals); if (steps < 1) return mapObject((key, val) => { if (needContinue(val) && nextStepVals[key] != null) return _objectSpread$58(_objectSpread$58({}, val), {}, { velocity: alpha(val.velocity, nextStepVals[key].velocity, steps), from: alpha(val.from, nextStepVals[key].from, steps) }); return val; }, preVals); return calStepperVals(easing, nextStepVals, steps - 1); }; function createStepperUpdate(from, to, easing, interKeys, render, timeoutController) { var preTime; var stepperStyle = interKeys.reduce((res, key) => _objectSpread$58(_objectSpread$58({}, res), {}, { [key]: { from: from[key], velocity: 0, to: to[key] } }), {}); var getCurrStyle = () => mapObject((key, val) => val.from, stepperStyle); var shouldStopAnimation = () => !Object.values(stepperStyle).filter(needContinue).length; var stopAnimation = null; var stepperUpdate = (now) => { if (!preTime) preTime = now; var steps = (now - preTime) / easing.dt; stepperStyle = calStepperVals(easing, stepperStyle, steps); render(_objectSpread$58(_objectSpread$58(_objectSpread$58({}, from), to), getCurrStyle())); preTime = now; if (!shouldStopAnimation()) stopAnimation = timeoutController.setTimeout(stepperUpdate); }; return () => { stopAnimation = timeoutController.setTimeout(stepperUpdate); return () => { var _stopAnimation; (_stopAnimation = stopAnimation) === null || _stopAnimation === void 0 || _stopAnimation(); }; }; } function createTimingUpdate(from, to, easing, duration, interKeys, render, timeoutController) { var stopAnimation = null; var timingStyle = interKeys.reduce((res, key) => { var fromElement = from[key]; var toElement = to[key]; if (fromElement == null || toElement == null) return res; return _objectSpread$58(_objectSpread$58({}, res), {}, { [key]: [fromElement, toElement] }); }, {}); var beginTime; var timingUpdate = (now) => { if (!beginTime) beginTime = now; var t = (now - beginTime) / duration; var currStyle = mapObject((key, val) => alpha(...val, easing(t)), timingStyle); render(_objectSpread$58(_objectSpread$58(_objectSpread$58({}, from), to), currStyle)); if (t < 1) stopAnimation = timeoutController.setTimeout(timingUpdate); else { var finalStyle = mapObject((key, val) => alpha(...val, easing(1)), timingStyle); render(_objectSpread$58(_objectSpread$58(_objectSpread$58({}, from), to), finalStyle)); } }; return () => { stopAnimation = timeoutController.setTimeout(timingUpdate); return () => { var _stopAnimation2; (_stopAnimation2 = stopAnimation) === null || _stopAnimation2 === void 0 || _stopAnimation2(); }; }; } var configUpdate_default = (from, to, easing, duration, render, timeoutController) => { var interKeys = getIntersectionKeys(from, to); if (easing == null) return () => { render(_objectSpread$58(_objectSpread$58({}, from), to)); return () => {}; }; return easing.isStepper === true ? createStepperUpdate(from, to, easing, interKeys, render, timeoutController) : createTimingUpdate(from, to, easing, duration, interKeys, render, timeoutController); }; var cubicBezierFactor = (c1, c2) => [ 0, 3 * c1, 3 * c2 - 6 * c1, 3 * c1 - 3 * c2 + 1 ]; var evaluatePolynomial = (params, t) => params.map((param, i) => param * t ** i).reduce((pre, curr) => pre + curr); var cubicBezier = (c1, c2) => (t) => { return evaluatePolynomial(cubicBezierFactor(c1, c2), t); }; var derivativeCubicBezier = (c1, c2) => (t) => { return evaluatePolynomial([...cubicBezierFactor(c1, c2).map((param, i) => param * i).slice(1), 0], t); }; var parseCubicBezier = (easing) => { var _easingParts$; var easingParts = easing.split("("); if (easingParts.length !== 2 || easingParts[0] !== "cubic-bezier") return null; var numbers = (_easingParts$ = easingParts[1]) === null || _easingParts$ === void 0 || (_easingParts$ = _easingParts$.split(")")[0]) === null || _easingParts$ === void 0 ? void 0 : _easingParts$.split(","); if (numbers == null || numbers.length !== 4) return null; var coords = numbers.map((x) => parseFloat(x)); return [ coords[0], coords[1], coords[2], coords[3] ]; }; var getBezierCoordinates = function getBezierCoordinates() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; if (args.length === 1) switch (args[0]) { case "linear": return [ 0, 0, 1, 1 ]; case "ease": return [ .25, .1, .25, 1 ]; case "ease-in": return [ .42, 0, 1, 1 ]; case "ease-out": return [ .42, 0, .58, 1 ]; case "ease-in-out": return [ 0, 0, .58, 1 ]; default: var easing = parseCubicBezier(args[0]); if (easing) return easing; } if (args.length === 4) return args; return [ 0, 0, 1, 1 ]; }; var createBezierEasing = (x1, y1, x2, y2) => { var curveX = cubicBezier(x1, x2); var curveY = cubicBezier(y1, y2); var derCurveX = derivativeCubicBezier(x1, x2); var rangeValue = (value) => { if (value > 1) return 1; if (value < 0) return 0; return value; }; var bezier = (_t) => { var t = _t > 1 ? 1 : _t; var x = t; for (var i = 0; i < 8; ++i) { var evalT = curveX(x) - t; var derVal = derCurveX(x); if (Math.abs(evalT - t) < 1e-4 || derVal < 1e-4) return curveY(x); x = rangeValue(x - evalT / derVal); } return curveY(x); }; bezier.isStepper = false; return bezier; }; var configBezier = function configBezier() { return createBezierEasing(...getBezierCoordinates(...arguments)); }; var configSpring = function configSpring() { var { stiff = 100, damping = 8, dt = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; var stepper = (currX, destX, currV) => { var newV = currV + (-(currX - destX) * stiff - currV * damping) * dt / 1e3; var newX = currV * dt / 1e3 + currX; if (Math.abs(newX - destX) < 1e-4 && Math.abs(newV) < 1e-4) return [destX, 0]; return [newX, newV]; }; stepper.isStepper = true; stepper.dt = dt; return stepper; }; var configEasing = (easing) => { if (typeof easing === "string") switch (easing) { case "ease": case "ease-in-out": case "ease-out": case "ease-in": case "linear": return configBezier(easing); case "spring": return configSpring(); default: if (easing.split("(")[0] === "cubic-bezier") return configBezier(easing); } if (typeof easing === "function") return easing; return null; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/animation/AnimationManager.js /** * Represents a single item in the ReactSmoothQueue. * The item can be: * - A number representing a delay in milliseconds. * - An object representing a style change * - A StartAnimationFunction that starts eased transition and calls different render * because of course in Recharts we have to have three ways to do everything * - An arbitrary function to be executed */ function createAnimateManager(timeoutController) { var currStyle; var handleChange = () => null; var shouldStop = false; var cancelTimeout = null; var setStyle = (_style) => { if (shouldStop) return; if (Array.isArray(_style)) { if (!_style.length) return; var [curr, ...restStyles] = _style; if (typeof curr === "number") { cancelTimeout = timeoutController.setTimeout(setStyle.bind(null, restStyles), curr); return; } setStyle(curr); cancelTimeout = timeoutController.setTimeout(setStyle.bind(null, restStyles)); return; } if (typeof _style === "string") { currStyle = _style; handleChange(currStyle); } if (typeof _style === "object") { currStyle = _style; handleChange(currStyle); } if (typeof _style === "function") _style(); }; return { stop: () => { shouldStop = true; }, start: (style) => { shouldStop = false; if (cancelTimeout) { cancelTimeout(); cancelTimeout = null; } setStyle(style); }, subscribe: (_handleChange) => { handleChange = _handleChange; return () => { handleChange = () => null; }; }, getTimeoutController: () => timeoutController }; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/animation/timeoutController.js /** * Callback type for the timeout function. * Receives current time in milliseconds as an argument. */ /** * A function that, when called, cancels the timeout. */ var RequestAnimationFrameTimeoutController = class { setTimeout(callback) { var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; var startTime = performance.now(); var requestId = null; var executeCallback = (now) => { if (now - startTime >= delay) callback(now); else if (typeof requestAnimationFrame === "function") requestId = requestAnimationFrame(executeCallback); }; requestId = requestAnimationFrame(executeCallback); return () => { if (requestId != null) cancelAnimationFrame(requestId); }; } }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/animation/createDefaultAnimationManager.js function createDefaultAnimationManager() { return createAnimateManager(new RequestAnimationFrameTimeoutController()); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/animation/useAnimationManager.js var AnimationManagerContext = /* @__PURE__ */ (0, import_react.createContext)(createDefaultAnimationManager); function useAnimationManager(animationId, animationManagerFromProps) { var contextAnimationManager = (0, import_react.useContext)(AnimationManagerContext); return (0, import_react.useMemo)(() => animationManagerFromProps !== null && animationManagerFromProps !== void 0 ? animationManagerFromProps : contextAnimationManager(animationId), [ animationId, animationManagerFromProps, contextAnimationManager ]); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/animation/JavascriptAnimate.js var defaultJavascriptAnimateProps = { begin: 0, duration: 1e3, easing: "ease", isActive: true, canBegin: true, onAnimationEnd: () => {}, onAnimationStart: () => {} }; var from = { t: 0 }; var to = { t: 1 }; function JavascriptAnimate(outsideProps) { var props = resolveDefaultProps(outsideProps, defaultJavascriptAnimateProps); var { isActive: isActiveProp, canBegin, duration, easing, begin, onAnimationEnd, onAnimationStart, children } = props; var prefersReducedMotion = usePrefersReducedMotion(); var isActive = isActiveProp === "auto" ? !Global.isSsr && !prefersReducedMotion : isActiveProp; var animationManager = useAnimationManager(props.animationId, props.animationManager); var [style, setStyle] = (0, import_react.useState)(isActive ? from : to); var stopJSAnimation = (0, import_react.useRef)(null); (0, import_react.useEffect)(() => { if (!isActive) setStyle(to); }, [isActive]); (0, import_react.useEffect)(() => { if (!isActive || !canBegin) return noop$2; var startAnimation = configUpdate_default(from, to, configEasing(easing), duration, setStyle, animationManager.getTimeoutController()); var onAnimationActive = () => { stopJSAnimation.current = startAnimation(); }; animationManager.start([ onAnimationStart, begin, onAnimationActive, duration, onAnimationEnd ]); return () => { animationManager.stop(); if (stopJSAnimation.current) stopJSAnimation.current(); onAnimationEnd(); }; }, [ isActive, canBegin, duration, easing, begin, onAnimationStart, onAnimationEnd, animationManager ]); return children(style.t); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/useAnimationId.js /** * This hook returns a unique animation id for the object input. * If input changes (as in, reference equality is different), the animation id will change. * If input does not change, the animation id will not change. * * This is useful for animations. The Animate component * does have a `shouldReAnimate` prop but that doesn't seem to be doing what the name implies. * Also, we don't always want to re-animate on every render; * we only want to re-animate when the input changes. Not the internal state (e.g. `isAnimating`). * * @param input The object to check for changes. Uses reference equality (=== operator) * @param prefix Optional prefix to use for the animation id * @returns A unique animation id */ function useAnimationId(input) { var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-"; var animationId = (0, import_react.useRef)(uniqueId(prefix)); var prevProps = (0, import_react.useRef)(input); if (prevProps.current !== input) { animationId.current = uniqueId(prefix); prevProps.current = input; } return animationId.current; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/shape/Rectangle.js /** * @fileOverview Rectangle */ var _excluded$33 = ["radius"], _excluded2$17 = ["radius"]; var _templateObject$3, _templateObject2$2, _templateObject3$2, _templateObject4$2, _templateObject5$2, _templateObject6$1, _templateObject7$1, _templateObject8, _templateObject9, _templateObject0; function ownKeys$57(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$57(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$57(Object(t), !0).forEach(function(r) { _defineProperty$59(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$57(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$59(e, r, t) { return (r = _toPropertyKey$59(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$59(t) { var i = _toPrimitive$59(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$59(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function _extends$43() { return _extends$43 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$43.apply(null, arguments); } function _objectWithoutProperties$33(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$33(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$33(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } function _taggedTemplateLiteral$3(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); } /** * @inline */ var getRectanglePath = (x, y, width, height, radius) => { var roundedWidth = round(width); var roundedHeight = round(height); var maxRadius = Math.min(Math.abs(roundedWidth) / 2, Math.abs(roundedHeight) / 2); var ySign = roundedHeight >= 0 ? 1 : -1; var xSign = roundedWidth >= 0 ? 1 : -1; var clockWise = roundedHeight >= 0 && roundedWidth >= 0 || roundedHeight < 0 && roundedWidth < 0 ? 1 : 0; var path; if (maxRadius > 0 && Array.isArray(radius)) { var newRadius = [ 0, 0, 0, 0 ]; for (var i = 0, len = 4; i < len; i++) { var _radius$i; var r = (_radius$i = radius[i]) !== null && _radius$i !== void 0 ? _radius$i : 0; newRadius[i] = r > maxRadius ? maxRadius : r; } path = roundTemplateLiteral(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral$3([ "M", ",", "" ])), x, y + ySign * newRadius[0]); if (newRadius[0] > 0) path += roundTemplateLiteral(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral$3([ "A ", ",", ",0,0,", ",", ",", "" ])), newRadius[0], newRadius[0], clockWise, x + xSign * newRadius[0], y); path += roundTemplateLiteral(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteral$3([ "L ", ",", "" ])), x + width - xSign * newRadius[1], y); if (newRadius[1] > 0) path += roundTemplateLiteral(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteral$3([ "A ", ",", ",0,0,", ",\n ", ",", "" ])), newRadius[1], newRadius[1], clockWise, x + width, y + ySign * newRadius[1]); path += roundTemplateLiteral(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteral$3([ "L ", ",", "" ])), x + width, y + height - ySign * newRadius[2]); if (newRadius[2] > 0) path += roundTemplateLiteral(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteral$3([ "A ", ",", ",0,0,", ",\n ", ",", "" ])), newRadius[2], newRadius[2], clockWise, x + width - xSign * newRadius[2], y + height); path += roundTemplateLiteral(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteral$3([ "L ", ",", "" ])), x + xSign * newRadius[3], y + height); if (newRadius[3] > 0) path += roundTemplateLiteral(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral$3([ "A ", ",", ",0,0,", ",\n ", ",", "" ])), newRadius[3], newRadius[3], clockWise, x, y + height - ySign * newRadius[3]); path += "Z"; } else if (maxRadius > 0 && radius === +radius && radius > 0) { var _newRadius = Math.min(maxRadius, radius); path = roundTemplateLiteral(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral$3([ "M ", ",", "\n A ", ",", ",0,0,", ",", ",", "\n L ", ",", "\n A ", ",", ",0,0,", ",", ",", "\n L ", ",", "\n A ", ",", ",0,0,", ",", ",", "\n L ", ",", "\n A ", ",", ",0,0,", ",", ",", " Z" ])), x, y + ySign * _newRadius, _newRadius, _newRadius, clockWise, x + xSign * _newRadius, y, x + width - xSign * _newRadius, y, _newRadius, _newRadius, clockWise, x + width, y + ySign * _newRadius, x + width, y + height - ySign * _newRadius, _newRadius, _newRadius, clockWise, x + width - xSign * _newRadius, y + height, x + xSign * _newRadius, y + height, _newRadius, _newRadius, clockWise, x, y + height - ySign * _newRadius); } else path = roundTemplateLiteral(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral$3([ "M ", ",", " h ", " v ", " h ", " Z" ])), x, y, width, height, -width); return path; }; var defaultRectangleProps = { x: 0, y: 0, width: 0, height: 0, radius: 0, isAnimationActive: false, isUpdateAnimationActive: false, animationBegin: 0, animationDuration: 1500, animationEasing: "ease" }; /** * Renders a rectangle element. Unlike the {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/rect rect SVG element}, this component supports rounded corners * and animation. * * This component accepts X and Y coordinates in pixels. * If you need to position the rectangle based on your chart's data, * consider using the {@link ReferenceArea} component instead. * * @param rectangleProps * @constructor */ var Rectangle = (rectangleProps) => { var props = resolveDefaultProps(rectangleProps, defaultRectangleProps); var pathRef = (0, import_react.useRef)(null); var [totalLength, setTotalLength] = (0, import_react.useState)(-1); (0, import_react.useEffect)(() => { if (pathRef.current && pathRef.current.getTotalLength) try { var pathTotalLength = pathRef.current.getTotalLength(); if (pathTotalLength) setTotalLength(pathTotalLength); } catch (_unused) {} }, []); var { x, y, width, height, radius, className } = props; var { animationEasing, animationDuration, animationBegin, isAnimationActive, isUpdateAnimationActive } = props; var prevWidthRef = (0, import_react.useRef)(width); var prevHeightRef = (0, import_react.useRef)(height); var prevXRef = (0, import_react.useRef)(x); var prevYRef = (0, import_react.useRef)(y); var animationId = useAnimationId((0, import_react.useMemo)(() => ({ x, y, width, height, radius }), [ x, y, width, height, radius ]), "rectangle-"); if (x !== +x || y !== +y || width !== +width || height !== +height || width === 0 || height === 0) return null; var layerClass = clsx("recharts-rectangle", className); if (!isUpdateAnimationActive) { var _svgPropertiesAndEven = svgPropertiesAndEvents(props), { radius: _ } = _svgPropertiesAndEven, otherPathProps = _objectWithoutProperties$33(_svgPropertiesAndEven, _excluded$33); return /* @__PURE__ */ import_react.createElement("path", _extends$43({}, otherPathProps, { x: round(x), y: round(y), width: round(width), height: round(height), radius: typeof radius === "number" ? radius : void 0, className: layerClass, d: getRectanglePath(x, y, width, height, radius) })); } var prevWidth = prevWidthRef.current; var prevHeight = prevHeightRef.current; var prevX = prevXRef.current; var prevY = prevYRef.current; var from = "0px ".concat(totalLength === -1 ? 1 : totalLength, "px"); var to = "".concat(totalLength, "px ").concat(totalLength, "px"); var transition = getTransitionVal(["strokeDasharray"], animationDuration, typeof animationEasing === "string" ? animationEasing : defaultRectangleProps.animationEasing); return /* @__PURE__ */ import_react.createElement(JavascriptAnimate, { animationId, key: animationId, canBegin: totalLength > 0, duration: animationDuration, easing: animationEasing, isActive: isUpdateAnimationActive, begin: animationBegin }, (t) => { var currWidth = interpolate(prevWidth, width, t); var currHeight = interpolate(prevHeight, height, t); var currX = interpolate(prevX, x, t); var currY = interpolate(prevY, y, t); if (pathRef.current) { prevWidthRef.current = currWidth; prevHeightRef.current = currHeight; prevXRef.current = currX; prevYRef.current = currY; } var animationStyle; if (!isAnimationActive) animationStyle = { strokeDasharray: to }; else if (t > 0) animationStyle = { transition, strokeDasharray: to }; else animationStyle = { strokeDasharray: from }; var _svgPropertiesAndEven2 = svgPropertiesAndEvents(props), { radius: _ } = _svgPropertiesAndEven2, otherPathProps = _objectWithoutProperties$33(_svgPropertiesAndEven2, _excluded2$17); return /* @__PURE__ */ import_react.createElement("path", _extends$43({}, otherPathProps, { radius: typeof radius === "number" ? radius : void 0, className: layerClass, d: getRectanglePath(currX, currY, currWidth, currHeight, radius), ref: pathRef, style: _objectSpread$57(_objectSpread$57({}, animationStyle), props.style) })); }); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/PolarUtils.js function ownKeys$56(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$56(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$56(Object(t), !0).forEach(function(r) { _defineProperty$58(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$56(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$58(e, r, t) { return (r = _toPropertyKey$58(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$58(t) { var i = _toPrimitive$58(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$58(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var RADIAN = Math.PI / 180; var degreeToRadian = (angle) => angle * Math.PI / 180; var radianToDegree = (angleInRadian) => angleInRadian * 180 / Math.PI; var polarToCartesian = (cx, cy, radius, angle) => ({ x: cx + Math.cos(-RADIAN * angle) * radius, y: cy + Math.sin(-RADIAN * angle) * radius }); var getMaxRadius = function getMaxRadius(width, height) { var offset = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0, brushBottom: 0 }; return Math.min(Math.abs(width - (offset.left || 0) - (offset.right || 0)), Math.abs(height - (offset.top || 0) - (offset.bottom || 0))) / 2; }; var distanceBetweenPoints = (point, anotherPoint) => { var { x: x1, y: y1 } = point; var { x: x2, y: y2 } = anotherPoint; return Math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2); }; var getAngleOfPoint = (_ref, _ref2) => { var { x, y } = _ref; var { cx, cy } = _ref2; var radius = distanceBetweenPoints({ x, y }, { x: cx, y: cy }); if (radius <= 0) return { radius, angle: 0 }; var cos = (x - cx) / radius; var angleInRadian = Math.acos(cos); if (y > cy) angleInRadian = 2 * Math.PI - angleInRadian; return { radius, angle: radianToDegree(angleInRadian), angleInRadian }; }; var formatAngleOfSector = (_ref3) => { var { startAngle, endAngle } = _ref3; var startCnt = Math.floor(startAngle / 360); var endCnt = Math.floor(endAngle / 360); var min = Math.min(startCnt, endCnt); return { startAngle: startAngle - min * 360, endAngle: endAngle - min * 360 }; }; var reverseFormatAngleOfSector = (angle, _ref4) => { var { startAngle, endAngle } = _ref4; var startCnt = Math.floor(startAngle / 360); var endCnt = Math.floor(endAngle / 360); return angle + Math.min(startCnt, endCnt) * 360; }; var inRangeOfSector = (_ref5, viewBox) => { var { relativeX: x, relativeY: y } = _ref5; var { radius, angle } = getAngleOfPoint({ x, y }, viewBox); var { innerRadius, outerRadius } = viewBox; if (radius < innerRadius || radius > outerRadius) return null; if (radius === 0) return null; var { startAngle, endAngle } = formatAngleOfSector(viewBox); var formatAngle = angle; var inRange; if (startAngle <= endAngle) { while (formatAngle > endAngle) formatAngle -= 360; while (formatAngle < startAngle) formatAngle += 360; inRange = formatAngle >= startAngle && formatAngle <= endAngle; } else { while (formatAngle > startAngle) formatAngle -= 360; while (formatAngle < endAngle) formatAngle += 360; inRange = formatAngle >= endAngle && formatAngle <= startAngle; } if (inRange) return _objectSpread$56(_objectSpread$56({}, viewBox), {}, { radius, angle: reverseFormatAngleOfSector(formatAngle, viewBox) }); return null; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js /** * Only applicable for radial layouts * @param {Object} activeCoordinate ChartCoordinate * @returns {Object} RadialCursorPoints */ function getRadialCursorPoints(activeCoordinate) { var { cx, cy, radius, startAngle, endAngle } = activeCoordinate; return { points: [polarToCartesian(cx, cy, radius, startAngle), polarToCartesian(cx, cy, radius, endAngle)], cx, cy, radius, startAngle, endAngle }; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/shape/Sector.js var _templateObject$2, _templateObject2$1, _templateObject3$1, _templateObject4$1, _templateObject5$1, _templateObject6, _templateObject7; function _extends$42() { return _extends$42 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$42.apply(null, arguments); } function _taggedTemplateLiteral$2(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); } var getDeltaAngle$1 = (startAngle, endAngle) => { return mathSign(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 359.999); }; var getTangentCircle = (_ref) => { var { cx, cy, radius, angle, sign, isExternal, cornerRadius, cornerIsExternal } = _ref; var centerRadius = cornerRadius * (isExternal ? 1 : -1) + radius; var theta = Math.asin(cornerRadius / centerRadius) / RADIAN; var centerAngle = cornerIsExternal ? angle : angle + sign * theta; var center = polarToCartesian(cx, cy, centerRadius, centerAngle); var circleTangency = polarToCartesian(cx, cy, radius, centerAngle); var lineTangencyAngle = cornerIsExternal ? angle - sign * theta : angle; return { center, circleTangency, lineTangency: polarToCartesian(cx, cy, centerRadius * Math.cos(theta * RADIAN), lineTangencyAngle), theta }; }; var getSectorPath = (_ref2) => { var { cx, cy, innerRadius, outerRadius, startAngle, endAngle } = _ref2; var angle = getDeltaAngle$1(startAngle, endAngle); var tempEndAngle = startAngle + angle; var outerStartPoint = polarToCartesian(cx, cy, outerRadius, startAngle); var outerEndPoint = polarToCartesian(cx, cy, outerRadius, tempEndAngle); var path = roundTemplateLiteral(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral$2([ "M ", ",", "\n A ", ",", ",0,\n ", ",", ",\n ", ",", "\n " ])), outerStartPoint.x, outerStartPoint.y, outerRadius, outerRadius, +(Math.abs(angle) > 180), +(startAngle > tempEndAngle), outerEndPoint.x, outerEndPoint.y); if (innerRadius > 0) { var innerStartPoint = polarToCartesian(cx, cy, innerRadius, startAngle); var innerEndPoint = polarToCartesian(cx, cy, innerRadius, tempEndAngle); path += roundTemplateLiteral(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral$2([ "L ", ",", "\n A ", ",", ",0,\n ", ",", ",\n ", ",", " Z" ])), innerEndPoint.x, innerEndPoint.y, innerRadius, innerRadius, +(Math.abs(angle) > 180), +(startAngle <= tempEndAngle), innerStartPoint.x, innerStartPoint.y); } else path += roundTemplateLiteral(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteral$2([ "L ", ",", " Z" ])), cx, cy); return path; }; var getSectorWithCorner = (_ref3) => { var { cx, cy, innerRadius, outerRadius, cornerRadius, forceCornerRadius, cornerIsExternal, startAngle, endAngle } = _ref3; var sign = mathSign(endAngle - startAngle); var { circleTangency: soct, lineTangency: solt, theta: sot } = getTangentCircle({ cx, cy, radius: outerRadius, angle: startAngle, sign, cornerRadius, cornerIsExternal }); var { circleTangency: eoct, lineTangency: eolt, theta: eot } = getTangentCircle({ cx, cy, radius: outerRadius, angle: endAngle, sign: -sign, cornerRadius, cornerIsExternal }); var outerArcAngle = cornerIsExternal ? Math.abs(startAngle - endAngle) : Math.abs(startAngle - endAngle) - sot - eot; if (outerArcAngle < 0) { if (forceCornerRadius) return roundTemplateLiteral(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral$2([ "M ", ",", "\n a", ",", ",0,0,1,", ",0\n a", ",", ",0,0,1,", ",0\n " ])), solt.x, solt.y, cornerRadius, cornerRadius, cornerRadius * 2, cornerRadius, cornerRadius, -cornerRadius * 2); return getSectorPath({ cx, cy, innerRadius, outerRadius, startAngle, endAngle }); } var path = roundTemplateLiteral(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral$2([ "M ", ",", "\n A", ",", ",0,0,", ",", ",", "\n A", ",", ",0,", ",", ",", ",", "\n A", ",", ",0,0,", ",", ",", "\n " ])), solt.x, solt.y, cornerRadius, cornerRadius, +(sign < 0), soct.x, soct.y, outerRadius, outerRadius, +(outerArcAngle > 180), +(sign < 0), eoct.x, eoct.y, cornerRadius, cornerRadius, +(sign < 0), eolt.x, eolt.y); if (innerRadius > 0) { var { circleTangency: sict, lineTangency: silt, theta: sit } = getTangentCircle({ cx, cy, radius: innerRadius, angle: startAngle, sign, isExternal: true, cornerRadius, cornerIsExternal }); var { circleTangency: eict, lineTangency: eilt, theta: eit } = getTangentCircle({ cx, cy, radius: innerRadius, angle: endAngle, sign: -sign, isExternal: true, cornerRadius, cornerIsExternal }); var innerArcAngle = cornerIsExternal ? Math.abs(startAngle - endAngle) : Math.abs(startAngle - endAngle) - sit - eit; if (innerArcAngle < 0 && cornerRadius === 0) return "".concat(path, "L").concat(cx, ",").concat(cy, "Z"); path += roundTemplateLiteral(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral$2([ "L", ",", "\n A", ",", ",0,0,", ",", ",", "\n A", ",", ",0,", ",", ",", ",", "\n A", ",", ",0,0,", ",", ",", "Z" ])), eilt.x, eilt.y, cornerRadius, cornerRadius, +(sign < 0), eict.x, eict.y, innerRadius, innerRadius, +(innerArcAngle > 180), +(sign > 0), sict.x, sict.y, cornerRadius, cornerRadius, +(sign < 0), silt.x, silt.y); } else path += roundTemplateLiteral(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral$2([ "L", ",", "Z" ])), cx, cy); return path; }; /** * SVG cx, cy are `string | number | undefined`, but internally we use `number` so let's * override the types here. */ var defaultSectorProps = { cx: 0, cy: 0, innerRadius: 0, outerRadius: 0, startAngle: 0, endAngle: 0, cornerRadius: 0, forceCornerRadius: false, cornerIsExternal: false }; var Sector = (sectorProps) => { var props = resolveDefaultProps(sectorProps, defaultSectorProps); var { cx, cy, innerRadius, outerRadius, cornerRadius, forceCornerRadius, cornerIsExternal, startAngle, endAngle, className } = props; if (outerRadius < innerRadius || startAngle === endAngle) return null; var layerClass = clsx("recharts-sector", className); var deltaRadius = outerRadius - innerRadius; var cr = getPercentValue(cornerRadius, deltaRadius, 0, true); var path; if (cr > 0 && Math.abs(startAngle - endAngle) < 360) path = getSectorWithCorner({ cx, cy, innerRadius, outerRadius, cornerRadius: Math.min(cr, deltaRadius / 2), forceCornerRadius, cornerIsExternal, startAngle, endAngle }); else path = getSectorPath({ cx, cy, innerRadius, outerRadius, startAngle, endAngle }); return /* @__PURE__ */ import_react.createElement("path", _extends$42({}, svgPropertiesAndEvents(props), { className: layerClass, d: path })); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/cursor/getCursorPoints.js function getCursorPoints(layout, activeCoordinate, offset) { if (layout === "horizontal") return [{ x: activeCoordinate.x, y: offset.top }, { x: activeCoordinate.x, y: offset.top + offset.height }]; if (layout === "vertical") return [{ x: offset.left, y: activeCoordinate.y }, { x: offset.left + offset.width, y: activeCoordinate.y }]; if (isPolarCoordinate(activeCoordinate)) { if (layout === "centric") { var { cx, cy, innerRadius, outerRadius, angle } = activeCoordinate; var innerPoint = polarToCartesian(cx, cy, innerRadius, angle); var outerPoint = polarToCartesian(cx, cy, outerRadius, angle); return [{ x: innerPoint.x, y: innerPoint.y }, { x: outerPoint.x, y: outerPoint.y }]; } return getRadialCursorPoints(activeCoordinate); } } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/util/toNumber.js var require_toNumber = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isSymbol = require_isSymbol(); function toNumber(value) { if (isSymbol.isSymbol(value)) return NaN; return Number(value); } exports.toNumber = toNumber; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/util/toFinite.js var require_toFinite = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var toNumber = require_toNumber(); function toFinite(value) { if (!value) return value === 0 ? value : 0; value = toNumber.toNumber(value); if (value === Infinity || value === -Infinity) return (value < 0 ? -1 : 1) * Number.MAX_VALUE; return value === value ? value : 0; } exports.toFinite = toFinite; })); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/es-toolkit-npm-1.45.1-9660dc6721-10c0.zip/node_modules/es-toolkit/dist/compat/math/range.js var require_range$1 = /* @__PURE__ */ __commonJSMin(((exports) => { Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); var isIterateeCall = require_isIterateeCall(); var toFinite = require_toFinite(); function range(start, end, step) { if (step && typeof step !== "number" && isIterateeCall.isIterateeCall(start, end, step)) end = step = void 0; start = toFinite.toFinite(start); if (end === void 0) { end = start; start = 0; } else end = toFinite.toFinite(end); step = step === void 0 ? start < end ? 1 : -1 : toFinite.toFinite(step); const length = Math.max(Math.ceil((end - start) / (step || 1)), 0); const result = new Array(length); for (let index = 0; index < length; index++) { result[index] = start; start += step; } return result; } exports.range = range; })); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/dataSelectors.js var import_range = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => { module.exports = require_range$1().range; })))()); /** * This selector always returns the data with the indexes set by a Brush. * Trouble is, that might or might not be what you want. * * In charts with Brush, you will sometimes want to select the full range of data, and sometimes the one decided by the Brush * - even if the Brush is active, the panorama inside the Brush should show the full range of data. * * So instead of this selector, consider using either selectChartDataAndAlwaysIgnoreIndexes or selectChartDataWithIndexesIfNotInPanorama * * @param state RechartsRootState * @returns data defined on the chart root element, such as BarChart or ScatterChart */ var selectChartDataWithIndexes = (state) => state.chartData; /** * This selector will always return the full range of data, ignoring the indexes set by a Brush. * Useful for when you want to render the full range of data, even if a Brush is active. * For example: in the Brush panorama, in Legend, in Tooltip. */ var selectChartDataAndAlwaysIgnoreIndexes = createSelector([selectChartDataWithIndexes], (dataState) => { var dataEndIndex = dataState.chartData != null ? dataState.chartData.length - 1 : 0; return { chartData: dataState.chartData, computedData: dataState.computedData, dataEndIndex, dataStartIndex: 0 }; }); var selectChartDataWithIndexesIfNotInPanoramaPosition4 = (state, _unused1, _unused2, isPanorama) => { if (isPanorama) return selectChartDataAndAlwaysIgnoreIndexes(state); return selectChartDataWithIndexes(state); }; var selectChartDataWithIndexesIfNotInPanoramaPosition3 = (state, _unused1, isPanorama) => { if (isPanorama) return selectChartDataAndAlwaysIgnoreIndexes(state); return selectChartDataWithIndexes(state); }; /** * Returns the chart-level data slice (respecting Brush indexes), memoized by content so that * spurious Immer reference changes (e.g. dispatching `setChartData(undefined)` when data is * already `undefined`) do not propagate to downstream selectors. * * Used when a selector needs chart-level data but must avoid extra recomputes when the * data content has not actually changed. */ var selectChartDataSliceIfNotInPanorama = createSelector([selectChartDataWithIndexesIfNotInPanoramaPosition4], (_ref) => { var { chartData, dataStartIndex, dataEndIndex } = _ref; return chartData != null ? chartData.slice(dataStartIndex, dataEndIndex + 1) : []; }); /** * Returns the chart-level data slice (ignoring Brush indexes), memoized by content. * Used in tooltip and polar selectors that always need the full data range. */ var selectChartDataSliceIgnoringIndexes = createSelector([selectChartDataAndAlwaysIgnoreIndexes], (_ref2) => { var { chartData, dataStartIndex, dataEndIndex } = _ref2; return chartData != null ? chartData.slice(dataStartIndex, dataEndIndex + 1) : []; }); /** * Returns the chart-level data slice (with Brush indexes applied), memoized by content. * Used in tooltip selectors. */ var selectChartDataSliceWithIndexes = createSelector([selectChartDataWithIndexes], (_ref3) => { var { chartData, dataStartIndex, dataEndIndex } = _ref3; return chartData != null ? chartData.slice(dataStartIndex, dataEndIndex + 1) : []; }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js function isWellFormedNumberDomain(v) { if (Array.isArray(v) && v.length === 2) { var [min, max] = v; if (isWellBehavedNumber(min) && isWellBehavedNumber(max)) return true; } return false; } function extendDomain(providedDomain, boundaryDomain, allowDataOverflow) { if (allowDataOverflow) return providedDomain; return [Math.min(providedDomain[0], boundaryDomain[0]), Math.max(providedDomain[1], boundaryDomain[1])]; } /** * So Recharts allows users to provide their own domains, * but it also places some expectations on what the domain is. * We can improve on the typescript typing, but we also need a runtime test to observe that the user-provided domain is well-formed, * that is: an array with exactly two numbers. * * This function does not accept data as an argument. * This is to enable a performance optimization - if the domain is there, * and we know what it is without traversing all the data, * then we don't have to traverse all the data! * * If the user-provided domain is not well-formed, * this function will return undefined - in which case we should traverse the data to calculate the real domain. * * This function is for parsing the numerical domain only. * * @param userDomain external prop, user provided, before validation. Can have various shapes: array, function, special magical strings inside too. * @param allowDataOverflow boolean, provided by users. If true then the data domain wins * * @return [min, max] domain if it's well-formed; undefined if the domain is invalid */ function numericalDomainSpecifiedWithoutRequiringData(userDomain, allowDataOverflow) { if (!allowDataOverflow) return; if (typeof userDomain === "function") return; if (Array.isArray(userDomain) && userDomain.length === 2) { var [providedMin, providedMax] = userDomain; var finalMin, finalMax; if (isWellBehavedNumber(providedMin)) finalMin = providedMin; else if (typeof providedMin === "function") return; if (isWellBehavedNumber(providedMax)) finalMax = providedMax; else if (typeof providedMax === "function") return; var candidate = [finalMin, finalMax]; if (isWellFormedNumberDomain(candidate)) return candidate; } } /** * So Recharts allows users to provide their own domains, * but it also places some expectations on what the domain is. * We can improve on the typescript typing, but we also need a runtime test * to observe that the user-provided domain is well-formed, * that is: an array with exactly two numbers. * If the user-provided domain is not well-formed, * this function will return undefined - in which case we should traverse the data to calculate the real domain. * * This function is for parsing the numerical domain only. * * You are probably thinking, why does domain need tick count? * Well it adjusts the domain based on where the "nice ticks" land, and nice ticks depend on the tick count. * * @param userDomain external prop, user provided, before validation. Can have various shapes: array, function, special magical strings inside too. * @param dataDomain calculated from data. Can be undefined, as an option for performance optimization * @param allowDataOverflow provided by users. If true then the data domain wins * * @return [min, max] domain if it's well-formed; undefined if the domain is invalid */ function parseNumericalUserDomain(userDomain, dataDomain, allowDataOverflow) { if (!allowDataOverflow && dataDomain == null) return; if (typeof userDomain === "function" && dataDomain != null) try { var result = userDomain(dataDomain, allowDataOverflow); if (isWellFormedNumberDomain(result)) return extendDomain(result, dataDomain, allowDataOverflow); } catch (_unused) {} if (Array.isArray(userDomain) && userDomain.length === 2) { var [providedMin, providedMax] = userDomain; var finalMin, finalMax; if (providedMin === "auto") { if (dataDomain != null) finalMin = Math.min(...dataDomain); } else if (isNumber(providedMin)) finalMin = providedMin; else if (typeof providedMin === "function") try { if (dataDomain != null) finalMin = providedMin(dataDomain === null || dataDomain === void 0 ? void 0 : dataDomain[0]); } catch (_unused2) {} else if (typeof providedMin === "string" && MIN_VALUE_REG.test(providedMin)) { var match = MIN_VALUE_REG.exec(providedMin); if (match == null || match[1] == null || dataDomain == null) finalMin = void 0; else { var value = +match[1]; finalMin = dataDomain[0] - value; } } else finalMin = dataDomain === null || dataDomain === void 0 ? void 0 : dataDomain[0]; if (providedMax === "auto") { if (dataDomain != null) finalMax = Math.max(...dataDomain); } else if (isNumber(providedMax)) finalMax = providedMax; else if (typeof providedMax === "function") try { if (dataDomain != null) finalMax = providedMax(dataDomain === null || dataDomain === void 0 ? void 0 : dataDomain[1]); } catch (_unused3) {} else if (typeof providedMax === "string" && MAX_VALUE_REG.test(providedMax)) { var _match = MAX_VALUE_REG.exec(providedMax); if (_match == null || _match[1] == null || dataDomain == null) finalMax = void 0; else { var _value = +_match[1]; finalMax = dataDomain[1] + _value; } } else finalMax = dataDomain === null || dataDomain === void 0 ? void 0 : dataDomain[1]; var candidate = [finalMin, finalMax]; if (isWellFormedNumberDomain(candidate)) { if (dataDomain == null) return candidate; return extendDomain(candidate, dataDomain, allowDataOverflow); } } } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/scale/util/arithmetic.js var import_decimal = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => { (function(globalScope) { "use strict"; var MAX_DIGITS = 1e9, Decimal = { precision: 20, rounding: 4, toExpNeg: -7, toExpPos: 21, LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286" }, external = true, decimalError = "[DecimalError] ", invalidArgument = decimalError + "Invalid argument: ", exponentOutOfRange = decimalError + "Exponent out of range: ", mathfloor = Math.floor, mathpow = Math.pow, isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ONE, BASE = 1e7, LOG_BASE = 7, MAX_SAFE_INTEGER = 9007199254740991, MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE), P = {}; P.absoluteValue = P.abs = function() { var x = new this.constructor(this); if (x.s) x.s = 1; return x; }; P.comparedTo = P.cmp = function(y) { var i, j, xdL, ydL, x = this; y = new x.constructor(y); if (x.s !== y.s) return x.s || -y.s; if (x.e !== y.e) return x.e > y.e ^ x.s < 0 ? 1 : -1; xdL = x.d.length; ydL = y.d.length; for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) if (x.d[i] !== y.d[i]) return x.d[i] > y.d[i] ^ x.s < 0 ? 1 : -1; return xdL === ydL ? 0 : xdL > ydL ^ x.s < 0 ? 1 : -1; }; P.decimalPlaces = P.dp = function() { var x = this, w = x.d.length - 1, dp = (w - x.e) * LOG_BASE; w = x.d[w]; if (w) for (; w % 10 == 0; w /= 10) dp--; return dp < 0 ? 0 : dp; }; P.dividedBy = P.div = function(y) { return divide(this, new this.constructor(y)); }; P.dividedToIntegerBy = P.idiv = function(y) { var x = this, Ctor = x.constructor; return round(divide(x, new Ctor(y), 0, 1), Ctor.precision); }; P.equals = P.eq = function(y) { return !this.cmp(y); }; P.exponent = function() { return getBase10Exponent(this); }; P.greaterThan = P.gt = function(y) { return this.cmp(y) > 0; }; P.greaterThanOrEqualTo = P.gte = function(y) { return this.cmp(y) >= 0; }; P.isInteger = P.isint = function() { return this.e > this.d.length - 2; }; P.isNegative = P.isneg = function() { return this.s < 0; }; P.isPositive = P.ispos = function() { return this.s > 0; }; P.isZero = function() { return this.s === 0; }; P.lessThan = P.lt = function(y) { return this.cmp(y) < 0; }; P.lessThanOrEqualTo = P.lte = function(y) { return this.cmp(y) < 1; }; P.logarithm = P.log = function(base) { var r, x = this, Ctor = x.constructor, pr = Ctor.precision, wpr = pr + 5; if (base === void 0) base = new Ctor(10); else { base = new Ctor(base); if (base.s < 1 || base.eq(ONE)) throw Error(decimalError + "NaN"); } if (x.s < 1) throw Error(decimalError + (x.s ? "NaN" : "-Infinity")); if (x.eq(ONE)) return new Ctor(0); external = false; r = divide(ln(x, wpr), ln(base, wpr), wpr); external = true; return round(r, pr); }; P.minus = P.sub = function(y) { var x = this; y = new x.constructor(y); return x.s == y.s ? subtract(x, y) : add(x, (y.s = -y.s, y)); }; P.modulo = P.mod = function(y) { var q, x = this, Ctor = x.constructor, pr = Ctor.precision; y = new Ctor(y); if (!y.s) throw Error(decimalError + "NaN"); if (!x.s) return round(new Ctor(x), pr); external = false; q = divide(x, y, 0, 1).times(y); external = true; return x.minus(q); }; P.naturalExponential = P.exp = function() { return exp(this); }; P.naturalLogarithm = P.ln = function() { return ln(this); }; P.negated = P.neg = function() { var x = new this.constructor(this); x.s = -x.s || 0; return x; }; P.plus = P.add = function(y) { var x = this; y = new x.constructor(y); return x.s == y.s ? add(x, y) : subtract(x, (y.s = -y.s, y)); }; P.precision = P.sd = function(z) { var e, sd, w, x = this; if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z); e = getBase10Exponent(x) + 1; w = x.d.length - 1; sd = w * LOG_BASE + 1; w = x.d[w]; if (w) { for (; w % 10 == 0; w /= 10) sd--; for (w = x.d[0]; w >= 10; w /= 10) sd++; } return z && e > sd ? e : sd; }; P.squareRoot = P.sqrt = function() { var e, n, pr, r, s, t, wpr, x = this, Ctor = x.constructor; if (x.s < 1) { if (!x.s) return new Ctor(0); throw Error(decimalError + "NaN"); } e = getBase10Exponent(x); external = false; s = Math.sqrt(+x); if (s == 0 || s == Infinity) { n = digitsToString(x.d); if ((n.length + e) % 2 == 0) n += "0"; s = Math.sqrt(n); e = mathfloor((e + 1) / 2) - (e < 0 || e % 2); if (s == Infinity) n = "5e" + e; else { n = s.toExponential(); n = n.slice(0, n.indexOf("e") + 1) + e; } r = new Ctor(n); } else r = new Ctor(s.toString()); pr = Ctor.precision; s = wpr = pr + 3; for (;;) { t = r; r = t.plus(divide(x, t, wpr + 2)).times(.5); if (digitsToString(t.d).slice(0, wpr) === (n = digitsToString(r.d)).slice(0, wpr)) { n = n.slice(wpr - 3, wpr + 1); if (s == wpr && n == "4999") { round(t, pr + 1, 0); if (t.times(t).eq(x)) { r = t; break; } } else if (n != "9999") break; wpr += 4; } } external = true; return round(r, pr); }; P.times = P.mul = function(y) { var carry, e, i, k, r, rL, t, xdL, ydL, x = this, Ctor = x.constructor, xd = x.d, yd = (y = new Ctor(y)).d; if (!x.s || !y.s) return new Ctor(0); y.s *= x.s; e = x.e + y.e; xdL = xd.length; ydL = yd.length; if (xdL < ydL) { r = xd; xd = yd; yd = r; rL = xdL; xdL = ydL; ydL = rL; } r = []; rL = xdL + ydL; for (i = rL; i--;) r.push(0); for (i = ydL; --i >= 0;) { carry = 0; for (k = xdL + i; k > i;) { t = r[k] + yd[i] * xd[k - i - 1] + carry; r[k--] = t % BASE | 0; carry = t / BASE | 0; } r[k] = (r[k] + carry) % BASE | 0; } for (; !r[--rL];) r.pop(); if (carry) ++e; else r.shift(); y.d = r; y.e = e; return external ? round(y, Ctor.precision) : y; }; P.toDecimalPlaces = P.todp = function(dp, rm) { var x = this, Ctor = x.constructor; x = new Ctor(x); if (dp === void 0) return x; checkInt32(dp, 0, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); return round(x, dp + getBase10Exponent(x) + 1, rm); }; P.toExponential = function(dp, rm) { var str, x = this, Ctor = x.constructor; if (dp === void 0) str = toString(x, true); else { checkInt32(dp, 0, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); x = round(new Ctor(x), dp + 1, rm); str = toString(x, true, dp + 1); } return str; }; P.toFixed = function(dp, rm) { var str, y, x = this, Ctor = x.constructor; if (dp === void 0) return toString(x); checkInt32(dp, 0, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); y = round(new Ctor(x), dp + getBase10Exponent(x) + 1, rm); str = toString(y.abs(), false, dp + getBase10Exponent(y) + 1); return x.isneg() && !x.isZero() ? "-" + str : str; }; P.toInteger = P.toint = function() { var x = this, Ctor = x.constructor; return round(new Ctor(x), getBase10Exponent(x) + 1, Ctor.rounding); }; P.toNumber = function() { return +this; }; P.toPower = P.pow = function(y) { var e, k, pr, r, sign, yIsInt, x = this, Ctor = x.constructor, guard = 12, yn = +(y = new Ctor(y)); if (!y.s) return new Ctor(ONE); x = new Ctor(x); if (!x.s) { if (y.s < 1) throw Error(decimalError + "Infinity"); return x; } if (x.eq(ONE)) return x; pr = Ctor.precision; if (y.eq(ONE)) return round(x, pr); e = y.e; k = y.d.length - 1; yIsInt = e >= k; sign = x.s; if (!yIsInt) { if (sign < 0) throw Error(decimalError + "NaN"); } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) { r = new Ctor(ONE); e = Math.ceil(pr / LOG_BASE + 4); external = false; for (;;) { if (k % 2) { r = r.times(x); truncate(r.d, e); } k = mathfloor(k / 2); if (k === 0) break; x = x.times(x); truncate(x.d, e); } external = true; return y.s < 0 ? new Ctor(ONE).div(r) : round(r, pr); } sign = sign < 0 && y.d[Math.max(e, k)] & 1 ? -1 : 1; x.s = 1; external = false; r = y.times(ln(x, pr + guard)); external = true; r = exp(r); r.s = sign; return r; }; P.toPrecision = function(sd, rm) { var e, str, x = this, Ctor = x.constructor; if (sd === void 0) { e = getBase10Exponent(x); str = toString(x, e <= Ctor.toExpNeg || e >= Ctor.toExpPos); } else { checkInt32(sd, 1, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); x = round(new Ctor(x), sd, rm); e = getBase10Exponent(x); str = toString(x, sd <= e || e <= Ctor.toExpNeg, sd); } return str; }; P.toSignificantDigits = P.tosd = function(sd, rm) { var x = this, Ctor = x.constructor; if (sd === void 0) { sd = Ctor.precision; rm = Ctor.rounding; } else { checkInt32(sd, 1, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); } return round(new Ctor(x), sd, rm); }; P.toString = P.valueOf = P.val = P.toJSON = function() { var x = this, e = getBase10Exponent(x), Ctor = x.constructor; return toString(x, e <= Ctor.toExpNeg || e >= Ctor.toExpPos); }; function add(x, y) { var carry, d, e, i, k, len, xd, yd, Ctor = x.constructor, pr = Ctor.precision; if (!x.s || !y.s) { if (!y.s) y = new Ctor(x); return external ? round(y, pr) : y; } xd = x.d; yd = y.d; k = x.e; e = y.e; xd = xd.slice(); i = k - e; if (i) { if (i < 0) { d = xd; i = -i; len = yd.length; } else { d = yd; e = k; len = xd.length; } k = Math.ceil(pr / LOG_BASE); len = k > len ? k + 1 : len + 1; if (i > len) { i = len; d.length = 1; } d.reverse(); for (; i--;) d.push(0); d.reverse(); } len = xd.length; i = yd.length; if (len - i < 0) { i = len; d = yd; yd = xd; xd = d; } for (carry = 0; i;) { carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0; xd[i] %= BASE; } if (carry) { xd.unshift(carry); ++e; } for (len = xd.length; xd[--len] == 0;) xd.pop(); y.d = xd; y.e = e; return external ? round(y, pr) : y; } function checkInt32(i, min, max) { if (i !== ~~i || i < min || i > max) throw Error(invalidArgument + i); } function digitsToString(d) { var i, k, ws, indexOfLastWord = d.length - 1, str = "", w = d[0]; if (indexOfLastWord > 0) { str += w; for (i = 1; i < indexOfLastWord; i++) { ws = d[i] + ""; k = LOG_BASE - ws.length; if (k) str += getZeroString(k); str += ws; } w = d[i]; ws = w + ""; k = LOG_BASE - ws.length; if (k) str += getZeroString(k); } else if (w === 0) return "0"; for (; w % 10 === 0;) w /= 10; return str + w; } var divide = (function() { function multiplyInteger(x, k) { var temp, carry = 0, i = x.length; for (x = x.slice(); i--;) { temp = x[i] * k + carry; x[i] = temp % BASE | 0; carry = temp / BASE | 0; } if (carry) x.unshift(carry); return x; } function compare(a, b, aL, bL) { var i, r; if (aL != bL) r = aL > bL ? 1 : -1; else for (i = r = 0; i < aL; i++) if (a[i] != b[i]) { r = a[i] > b[i] ? 1 : -1; break; } return r; } function subtract(a, b, aL) { var i = 0; for (; aL--;) { a[aL] -= i; i = a[aL] < b[aL] ? 1 : 0; a[aL] = i * BASE + a[aL] - b[aL]; } for (; !a[0] && a.length > 1;) a.shift(); } return function(x, y, pr, dp) { var cmp, e, i, k, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz, Ctor = x.constructor, sign = x.s == y.s ? 1 : -1, xd = x.d, yd = y.d; if (!x.s) return new Ctor(x); if (!y.s) throw Error(decimalError + "Division by zero"); e = x.e - y.e; yL = yd.length; xL = xd.length; q = new Ctor(sign); qd = q.d = []; for (i = 0; yd[i] == (xd[i] || 0);) ++i; if (yd[i] > (xd[i] || 0)) --e; if (pr == null) sd = pr = Ctor.precision; else if (dp) sd = pr + (getBase10Exponent(x) - getBase10Exponent(y)) + 1; else sd = pr; if (sd < 0) return new Ctor(0); sd = sd / LOG_BASE + 2 | 0; i = 0; if (yL == 1) { k = 0; yd = yd[0]; sd++; for (; (i < xL || k) && sd--; i++) { t = k * BASE + (xd[i] || 0); qd[i] = t / yd | 0; k = t % yd | 0; } } else { k = BASE / (yd[0] + 1) | 0; if (k > 1) { yd = multiplyInteger(yd, k); xd = multiplyInteger(xd, k); yL = yd.length; xL = xd.length; } xi = yL; rem = xd.slice(0, yL); remL = rem.length; for (; remL < yL;) rem[remL++] = 0; yz = yd.slice(); yz.unshift(0); yd0 = yd[0]; if (yd[1] >= BASE / 2) ++yd0; do { k = 0; cmp = compare(yd, rem, yL, remL); if (cmp < 0) { rem0 = rem[0]; if (yL != remL) rem0 = rem0 * BASE + (rem[1] || 0); k = rem0 / yd0 | 0; if (k > 1) { if (k >= BASE) k = BASE - 1; prod = multiplyInteger(yd, k); prodL = prod.length; remL = rem.length; cmp = compare(prod, rem, prodL, remL); if (cmp == 1) { k--; subtract(prod, yL < prodL ? yz : yd, prodL); } } else { if (k == 0) cmp = k = 1; prod = yd.slice(); } prodL = prod.length; if (prodL < remL) prod.unshift(0); subtract(rem, prod, remL); if (cmp == -1) { remL = rem.length; cmp = compare(yd, rem, yL, remL); if (cmp < 1) { k++; subtract(rem, yL < remL ? yz : yd, remL); } } remL = rem.length; } else if (cmp === 0) { k++; rem = [0]; } qd[i++] = k; if (cmp && rem[0]) rem[remL++] = xd[xi] || 0; else { rem = [xd[xi]]; remL = 1; } } while ((xi++ < xL || rem[0] !== void 0) && sd--); } if (!qd[0]) qd.shift(); q.e = e; return round(q, dp ? pr + getBase10Exponent(q) + 1 : pr); }; })(); function exp(x, sd) { var denominator, guard, pow, sum, t, wpr, i = 0, k = 0, Ctor = x.constructor, pr = Ctor.precision; if (getBase10Exponent(x) > 16) throw Error(exponentOutOfRange + getBase10Exponent(x)); if (!x.s) return new Ctor(ONE); if (sd == null) { external = false; wpr = pr; } else wpr = sd; t = new Ctor(.03125); while (x.abs().gte(.1)) { x = x.times(t); k += 5; } guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0; wpr += guard; denominator = pow = sum = new Ctor(ONE); Ctor.precision = wpr; for (;;) { pow = round(pow.times(x), wpr); denominator = denominator.times(++i); t = sum.plus(divide(pow, denominator, wpr)); if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) { while (k--) sum = round(sum.times(sum), wpr); Ctor.precision = pr; return sd == null ? (external = true, round(sum, pr)) : sum; } sum = t; } } function getBase10Exponent(x) { var e = x.e * LOG_BASE, w = x.d[0]; for (; w >= 10; w /= 10) e++; return e; } function getLn10(Ctor, sd, pr) { if (sd > Ctor.LN10.sd()) { external = true; if (pr) Ctor.precision = pr; throw Error(decimalError + "LN10 precision limit exceeded"); } return round(new Ctor(Ctor.LN10), sd); } function getZeroString(k) { var zs = ""; for (; k--;) zs += "0"; return zs; } function ln(y, sd) { var c, c0, denominator, e, numerator, sum, t, wpr, x2, n = 1, guard = 10, x = y, xd = x.d, Ctor = x.constructor, pr = Ctor.precision; if (x.s < 1) throw Error(decimalError + (x.s ? "NaN" : "-Infinity")); if (x.eq(ONE)) return new Ctor(0); if (sd == null) { external = false; wpr = pr; } else wpr = sd; if (x.eq(10)) { if (sd == null) external = true; return getLn10(Ctor, wpr); } wpr += guard; Ctor.precision = wpr; c = digitsToString(xd); c0 = c.charAt(0); e = getBase10Exponent(x); if (Math.abs(e) < 0x5543df729c000) { while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) { x = x.times(y); c = digitsToString(x.d); c0 = c.charAt(0); n++; } e = getBase10Exponent(x); if (c0 > 1) { x = new Ctor("0." + c); e++; } else x = new Ctor(c0 + "." + c.slice(1)); } else { t = getLn10(Ctor, wpr + 2, pr).times(e + ""); x = ln(new Ctor(c0 + "." + c.slice(1)), wpr - guard).plus(t); Ctor.precision = pr; return sd == null ? (external = true, round(x, pr)) : x; } sum = numerator = x = divide(x.minus(ONE), x.plus(ONE), wpr); x2 = round(x.times(x), wpr); denominator = 3; for (;;) { numerator = round(numerator.times(x2), wpr); t = sum.plus(divide(numerator, new Ctor(denominator), wpr)); if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) { sum = sum.times(2); if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + "")); sum = divide(sum, new Ctor(n), wpr); Ctor.precision = pr; return sd == null ? (external = true, round(sum, pr)) : sum; } sum = t; denominator += 2; } } function parseDecimal(x, str) { var e, i, len; if ((e = str.indexOf(".")) > -1) str = str.replace(".", ""); if ((i = str.search(/e/i)) > 0) { if (e < 0) e = i; e += +str.slice(i + 1); str = str.substring(0, i); } else if (e < 0) e = str.length; for (i = 0; str.charCodeAt(i) === 48;) ++i; for (len = str.length; str.charCodeAt(len - 1) === 48;) --len; str = str.slice(i, len); if (str) { len -= i; e = e - i - 1; x.e = mathfloor(e / LOG_BASE); x.d = []; i = (e + 1) % LOG_BASE; if (e < 0) i += LOG_BASE; if (i < len) { if (i) x.d.push(+str.slice(0, i)); for (len -= LOG_BASE; i < len;) x.d.push(+str.slice(i, i += LOG_BASE)); str = str.slice(i); i = LOG_BASE - str.length; } else i -= len; for (; i--;) str += "0"; x.d.push(+str); if (external && (x.e > MAX_E || x.e < -MAX_E)) throw Error(exponentOutOfRange + e); } else { x.s = 0; x.e = 0; x.d = [0]; } return x; } function round(x, sd, rm) { var i, j, k, n, rd, doRound, w, xdi, xd = x.d; for (n = 1, k = xd[0]; k >= 10; k /= 10) n++; i = sd - n; if (i < 0) { i += LOG_BASE; j = sd; w = xd[xdi = 0]; } else { xdi = Math.ceil((i + 1) / LOG_BASE); k = xd.length; if (xdi >= k) return x; w = k = xd[xdi]; for (n = 1; k >= 10; k /= 10) n++; i %= LOG_BASE; j = i - LOG_BASE + n; } if (rm !== void 0) { k = mathpow(10, n - j - 1); rd = w / k % 10 | 0; doRound = sd < 0 || xd[xdi + 1] !== void 0 || w % k; doRound = rm < 4 ? (rd || doRound) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || doRound || rm == 6 && (i > 0 ? j > 0 ? w / mathpow(10, n - j) : 0 : xd[xdi - 1]) % 10 & 1 || rm == (x.s < 0 ? 8 : 7)); } if (sd < 1 || !xd[0]) { if (doRound) { k = getBase10Exponent(x); xd.length = 1; sd = sd - k - 1; xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE); x.e = mathfloor(-sd / LOG_BASE) || 0; } else { xd.length = 1; xd[0] = x.e = x.s = 0; } return x; } if (i == 0) { xd.length = xdi; k = 1; xdi--; } else { xd.length = xdi + 1; k = mathpow(10, LOG_BASE - i); xd[xdi] = j > 0 ? (w / mathpow(10, n - j) % mathpow(10, j) | 0) * k : 0; } if (doRound) for (;;) if (xdi == 0) { if ((xd[0] += k) == BASE) { xd[0] = 1; ++x.e; } break; } else { xd[xdi] += k; if (xd[xdi] != BASE) break; xd[xdi--] = 0; k = 1; } for (i = xd.length; xd[--i] === 0;) xd.pop(); if (external && (x.e > MAX_E || x.e < -MAX_E)) throw Error(exponentOutOfRange + getBase10Exponent(x)); return x; } function subtract(x, y) { var d, e, i, j, k, len, xd, xe, xLTy, yd, Ctor = x.constructor, pr = Ctor.precision; if (!x.s || !y.s) { if (y.s) y.s = -y.s; else y = new Ctor(x); return external ? round(y, pr) : y; } xd = x.d; yd = y.d; e = y.e; xe = x.e; xd = xd.slice(); k = xe - e; if (k) { xLTy = k < 0; if (xLTy) { d = xd; k = -k; len = yd.length; } else { d = yd; e = xe; len = xd.length; } i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2; if (k > i) { k = i; d.length = 1; } d.reverse(); for (i = k; i--;) d.push(0); d.reverse(); } else { i = xd.length; len = yd.length; xLTy = i < len; if (xLTy) len = i; for (i = 0; i < len; i++) if (xd[i] != yd[i]) { xLTy = xd[i] < yd[i]; break; } k = 0; } if (xLTy) { d = xd; xd = yd; yd = d; y.s = -y.s; } len = xd.length; for (i = yd.length - len; i > 0; --i) xd[len++] = 0; for (i = yd.length; i > k;) { if (xd[--i] < yd[i]) { for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1; --xd[j]; xd[i] += BASE; } xd[i] -= yd[i]; } for (; xd[--len] === 0;) xd.pop(); for (; xd[0] === 0; xd.shift()) --e; if (!xd[0]) return new Ctor(0); y.d = xd; y.e = e; return external ? round(y, pr) : y; } function toString(x, isExp, sd) { var k, e = getBase10Exponent(x), str = digitsToString(x.d), len = str.length; if (isExp) { if (sd && (k = sd - len) > 0) str = str.charAt(0) + "." + str.slice(1) + getZeroString(k); else if (len > 1) str = str.charAt(0) + "." + str.slice(1); str = str + (e < 0 ? "e" : "e+") + e; } else if (e < 0) { str = "0." + getZeroString(-e - 1) + str; if (sd && (k = sd - len) > 0) str += getZeroString(k); } else if (e >= len) { str += getZeroString(e + 1 - len); if (sd && (k = sd - e - 1) > 0) str = str + "." + getZeroString(k); } else { if ((k = e + 1) < len) str = str.slice(0, k) + "." + str.slice(k); if (sd && (k = sd - len) > 0) { if (e + 1 === len) str += "."; str += getZeroString(k); } } return x.s < 0 ? "-" + str : str; } function truncate(arr, len) { if (arr.length > len) { arr.length = len; return true; } } function clone(obj) { var i, p, ps; function Decimal(value) { var x = this; if (!(x instanceof Decimal)) return new Decimal(value); x.constructor = Decimal; if (value instanceof Decimal) { x.s = value.s; x.e = value.e; x.d = (value = value.d) ? value.slice() : value; return; } if (typeof value === "number") { if (value * 0 !== 0) throw Error(invalidArgument + value); if (value > 0) x.s = 1; else if (value < 0) { value = -value; x.s = -1; } else { x.s = 0; x.e = 0; x.d = [0]; return; } if (value === ~~value && value < 1e7) { x.e = 0; x.d = [value]; return; } return parseDecimal(x, value.toString()); } else if (typeof value !== "string") throw Error(invalidArgument + value); if (value.charCodeAt(0) === 45) { value = value.slice(1); x.s = -1; } else x.s = 1; if (isDecimal.test(value)) parseDecimal(x, value); else throw Error(invalidArgument + value); } Decimal.prototype = P; Decimal.ROUND_UP = 0; Decimal.ROUND_DOWN = 1; Decimal.ROUND_CEIL = 2; Decimal.ROUND_FLOOR = 3; Decimal.ROUND_HALF_UP = 4; Decimal.ROUND_HALF_DOWN = 5; Decimal.ROUND_HALF_EVEN = 6; Decimal.ROUND_HALF_CEIL = 7; Decimal.ROUND_HALF_FLOOR = 8; Decimal.clone = clone; Decimal.config = Decimal.set = config; if (obj === void 0) obj = {}; if (obj) { ps = [ "precision", "rounding", "toExpNeg", "toExpPos", "LN10" ]; for (i = 0; i < ps.length;) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p]; } Decimal.config(obj); return Decimal; } function config(obj) { if (!obj || typeof obj !== "object") throw Error(decimalError + "Object expected"); var i, p, v, ps = [ "precision", 1, MAX_DIGITS, "rounding", 0, 8, "toExpNeg", -Infinity, 0, "toExpPos", 0, Infinity ]; for (i = 0; i < ps.length; i += 3) if ((v = obj[p = ps[i]]) !== void 0) if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v; else throw Error(invalidArgument + p + ": " + v); if ((v = obj[p = "LN10"]) !== void 0) if (v == Math.LN10) this[p] = new this(v); else throw Error(invalidArgument + p + ": " + v); return this; } Decimal = clone(Decimal); Decimal["default"] = Decimal.Decimal = Decimal; ONE = new Decimal(1); if (typeof define == "function" && define.amd) define(function() { return Decimal; }); else if (typeof module != "undefined" && module.exports) module.exports = Decimal; else { if (!globalScope) globalScope = typeof self != "undefined" && self && self.self == self ? self : Function("return this")(); globalScope.Decimal = Decimal; } })(exports); })))()); /** * Get the digit count of a number. * If the absolute value is in the interval [0.1, 1), the result is 0. * If the absolute value is in the interval [0.01, 0.1), the digit count is -1. * If the absolute value is in the interval [0.001, 0.01), the digit count is -2. * * @param {Number} value The number * @return {Integer} Digit count */ function getDigitCount(value) { var result; if (value === 0) result = 1; else result = Math.floor(new import_decimal.default(value).abs().log(10).toNumber()) + 1; return result; } /** * Get the data in the interval [start, end) with a fixed step. * Also handles JS calculation precision issues. * * @param {Decimal} start Start point * @param {Decimal} end End point, not included * @param {Decimal} step Step size * @return {Array} Array of numbers */ function rangeStep(start, end, step) { var num = new import_decimal.default(start); var i = 0; var result = []; while (num.lt(end) && i < 1e5) { result.push(num.toNumber()); num = num.add(step); i++; } return result; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/scale/getNiceTickValues.js /** * @fileOverview calculate tick values of scale * @author xile611, arcthur * @date 2015-09-17 */ /** * Calculate a interval of a minimum value and a maximum value * * @param {Number} min The minimum value * @param {Number} max The maximum value * @return {Array} An interval */ var getValidInterval = (_ref) => { var [min, max] = _ref; var [validMin, validMax] = [min, max]; if (min > max) [validMin, validMax] = [max, min]; return [validMin, validMax]; }; /** * Calculate the step which is easy to understand between ticks, like 10, 20, 25 * * @param roughStep The rough step calculated by dividing the difference by the tickCount * @param allowDecimals Allow the ticks to be decimals or not * @param correctionFactor A correction factor * @return The step which is easy to understand between two ticks */ var getAdaptiveStep = (roughStep, allowDecimals, correctionFactor) => { if (roughStep.lte(0)) return new import_decimal.default(0); var digitCount = getDigitCount(roughStep.toNumber()); var digitCountValue = new import_decimal.default(10).pow(digitCount); var stepRatio = roughStep.div(digitCountValue); var stepRatioScale = digitCount !== 1 ? .05 : .1; var formatStep = new import_decimal.default(Math.ceil(stepRatio.div(stepRatioScale).toNumber())).add(correctionFactor).mul(stepRatioScale).mul(digitCountValue); return allowDecimals ? new import_decimal.default(formatStep.toNumber()) : new import_decimal.default(Math.ceil(formatStep.toNumber())); }; /** * The snap125 step algorithm snaps to nice numbers (1, 2, 2.5, 5) at each * order of magnitude, producing human-friendly tick intervals like * 0, 5, 10, 15, 20 instead of 0, 4, 8, 12, 16. * * This is opt-in and can be enabled via the `niceTicks` prop on axis components. * * @param roughStep The rough step calculated by dividing the difference by the tickCount * @param allowDecimals Allow the ticks to be decimals or not * @param correctionFactor A correction factor * @return The step which is easy to understand between two ticks */ var getSnap125Step = (roughStep, allowDecimals, correctionFactor) => { var _NICE_STEPS$niceIdx; if (roughStep.lte(0)) return new import_decimal.default(0); var NICE_STEPS = [ 1, 2, 2.5, 5 ]; var roughNum = roughStep.toNumber(); var exponent = Math.floor(new import_decimal.default(roughNum).abs().log(10).toNumber()); var magnitude = new import_decimal.default(10).pow(exponent); var normalized = roughStep.div(magnitude).toNumber(); var niceIdx = NICE_STEPS.findIndex((s) => s >= normalized - 1e-10); if (niceIdx === -1) { magnitude = magnitude.mul(10); niceIdx = 0; } niceIdx += correctionFactor; if (niceIdx >= NICE_STEPS.length) { var extraMag = Math.floor(niceIdx / NICE_STEPS.length); niceIdx %= NICE_STEPS.length; magnitude = magnitude.mul(new import_decimal.default(10).pow(extraMag)); } var formatStep = new import_decimal.default((_NICE_STEPS$niceIdx = NICE_STEPS[niceIdx]) !== null && _NICE_STEPS$niceIdx !== void 0 ? _NICE_STEPS$niceIdx : 1).mul(magnitude); return allowDecimals ? formatStep : new import_decimal.default(Math.ceil(formatStep.toNumber())); }; /** * calculate the ticks when the minimum value equals to the maximum value * * @param value The minimum value which is also the maximum value * @param tickCount The count of ticks * @param allowDecimals Allow the ticks to be decimals or not * @return array of ticks */ var getTickOfSingleValue = (value, tickCount, allowDecimals) => { var step = new import_decimal.default(1); var middle = new import_decimal.default(value); if (!middle.isint() && allowDecimals) { var absVal = Math.abs(value); if (absVal < 1) { step = new import_decimal.default(10).pow(getDigitCount(value) - 1); middle = new import_decimal.default(Math.floor(middle.div(step).toNumber())).mul(step); } else if (absVal > 1) middle = new import_decimal.default(Math.floor(value)); } else if (value === 0) middle = new import_decimal.default(Math.floor((tickCount - 1) / 2)); else if (!allowDecimals) middle = new import_decimal.default(Math.floor(value)); var middleIndex = Math.floor((tickCount - 1) / 2); var ticks = []; for (var i = 0; i < tickCount; i++) ticks.push(middle.add(new import_decimal.default(i - middleIndex).mul(step)).toNumber()); return ticks; }; /** * Calculate the step * * @param min The minimum value of an interval * @param max The maximum value of an interval * @param tickCount The count of ticks * @param allowDecimals Allow the ticks to be decimals or not * @param correctionFactor A correction factor * @return The step, minimum value of ticks, maximum value of ticks */ var _calculateStep = function calculateStep(min, max, tickCount, allowDecimals) { var correctionFactor = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0; var stepFn = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : getAdaptiveStep; if (!Number.isFinite((max - min) / (tickCount - 1))) return { step: new import_decimal.default(0), tickMin: new import_decimal.default(0), tickMax: new import_decimal.default(0) }; var step = stepFn(new import_decimal.default(max).sub(min).div(tickCount - 1), allowDecimals, correctionFactor); var middle; if (min <= 0 && max >= 0) middle = new import_decimal.default(0); else { middle = new import_decimal.default(min).add(max).div(2); middle = middle.sub(new import_decimal.default(middle).mod(step)); } var belowCount = Math.ceil(middle.sub(min).div(step).toNumber()); var upCount = Math.ceil(new import_decimal.default(max).sub(middle).div(step).toNumber()); var scaleCount = belowCount + upCount + 1; if (scaleCount > tickCount) return _calculateStep(min, max, tickCount, allowDecimals, correctionFactor + 1, stepFn); if (scaleCount < tickCount) { upCount = max > 0 ? upCount + (tickCount - scaleCount) : upCount; belowCount = max > 0 ? belowCount : belowCount + (tickCount - scaleCount); } return { step, tickMin: middle.sub(new import_decimal.default(belowCount).mul(step)), tickMax: middle.add(new import_decimal.default(upCount).mul(step)) }; }; var getNiceTickValues = function getNiceTickValues(_ref2) { var [min, max] = _ref2; var tickCount = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6; var allowDecimals = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; var niceTicksMode = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto"; var count = Math.max(tickCount, 2); var [cormin, cormax] = getValidInterval([min, max]); if (cormin === -Infinity || cormax === Infinity) { var _values = cormax === Infinity ? [cormin, ...Array(tickCount - 1).fill(Infinity)] : [...Array(tickCount - 1).fill(-Infinity), cormax]; return min > max ? _values.reverse() : _values; } if (cormin === cormax) return getTickOfSingleValue(cormin, tickCount, allowDecimals); var { step, tickMin, tickMax } = _calculateStep(cormin, cormax, count, allowDecimals, 0, niceTicksMode === "snap125" ? getSnap125Step : getAdaptiveStep); var values = rangeStep(tickMin, tickMax.add(new import_decimal.default(.1).mul(step)), step); return min > max ? values.reverse() : values; }; /** * Calculate the ticks of an interval. * Ticks will be constrained to the interval [min, max] even if it makes them less rounded and nice. * * @param tuple of [min,max] min: The minimum value, max: The maximum value * @param tickCount The count of ticks. This function may return less than tickCount ticks if the interval is too small. * @param allowDecimals Allow the ticks to be decimals or not * @param niceTicksMode The algorithm to use for calculating nice ticks. See {@link NiceTicksAlgorithm}. * @return array of ticks */ var getTickValuesFixedDomain = function getTickValuesFixedDomain(_ref3, tickCount) { var [min, max] = _ref3; var allowDecimals = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; var niceTicksMode = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto"; var [cormin, cormax] = getValidInterval([min, max]); if (cormin === -Infinity || cormax === Infinity) return [min, max]; if (cormin === cormax) return [cormin]; var stepFn = niceTicksMode === "snap125" ? getSnap125Step : getAdaptiveStep; var count = Math.max(tickCount, 2); var step = stepFn(new import_decimal.default(cormax).sub(cormin).div(count - 1), allowDecimals, 0); var values = [...rangeStep(new import_decimal.default(cormin), new import_decimal.default(cormax), step), cormax]; if (allowDecimals === false) values = values.map((value) => Math.round(value)); return min > max ? values.reverse() : values; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/rootPropsSelectors.js var selectRootMaxBarSize = (state) => state.rootProps.maxBarSize; var selectBarGap = (state) => state.rootProps.barGap; var selectBarCategoryGap = (state) => state.rootProps.barCategoryGap; var selectRootBarSize = (state) => state.rootProps.barSize; var selectStackOffsetType = (state) => state.rootProps.stackOffset; var selectReverseStackOrder = (state) => state.rootProps.reverseStackOrder; var selectChartName = (state) => state.options.chartName; var selectSyncId = (state) => state.rootProps.syncId; var selectSyncMethod = (state) => state.rootProps.syncMethod; var selectEventEmitter = (state) => state.options.eventEmitter; var selectChartBaseValue = (state) => state.rootProps.baseValue; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/zIndex/DefaultZIndexes.js /** * A collection of all default zIndex values used by Recharts. * * You can reuse these, or you can define your own. */ var DefaultZIndexes = { grid: -100, barBackground: -50, area: 100, cursorRectangle: 200, bar: 300, line: 400, axis: 500, scatter: 600, activeBar: 1e3, cursorLine: 1100, activeDot: 1200, label: 2e3 }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/polar/defaultPolarAngleAxisProps.js var defaultPolarAngleAxisProps = { allowDecimals: false, allowDuplicatedCategory: true, allowDataOverflow: false, angle: 0, angleAxisId: 0, axisLine: true, axisLineType: "polygon", cx: 0, cy: 0, hide: false, includeHidden: false, label: false, niceTicks: "auto", orientation: "outer", reversed: false, scale: "auto", tick: true, tickLine: true, tickSize: 8, type: "auto", zIndex: DefaultZIndexes.axis }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/polar/defaultPolarRadiusAxisProps.js var defaultPolarRadiusAxisProps = { allowDataOverflow: false, allowDecimals: false, allowDuplicatedCategory: true, angle: 0, axisLine: true, includeHidden: false, hide: false, niceTicks: "auto", label: false, orientation: "right", radiusAxisId: 0, reversed: false, scale: "auto", stroke: "#ccc", tick: true, tickCount: 5, tickLine: true, type: "auto", zIndex: DefaultZIndexes.axis }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineAxisRangeWithReverse.js var combineAxisRangeWithReverse = (axisSettings, axisRange) => { if (!axisSettings || !axisRange) return; if (axisSettings !== null && axisSettings !== void 0 && axisSettings.reversed) return [axisRange[1], axisRange[0]]; return axisRange; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js /** * This function evaluates the "auto" axis domain type based on the chart layout and axis type. * It outputs a definitive axis domain type that can be used for further processing. */ function getAxisTypeBasedOnLayout(layout, axisType, axisDomainType) { if (axisDomainType !== "auto") return axisDomainType; if (layout == null) return; return isCategoricalAxis(layout, axisType) ? "category" : "number"; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js function ownKeys$55(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$55(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$55(Object(t), !0).forEach(function(r) { _defineProperty$57(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$55(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$57(e, r, t) { return (r = _toPropertyKey$57(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$57(t) { var i = _toPrimitive$57(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$57(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var implicitAngleAxis = { allowDataOverflow: defaultPolarAngleAxisProps.allowDataOverflow, allowDecimals: defaultPolarAngleAxisProps.allowDecimals, allowDuplicatedCategory: false, dataKey: void 0, domain: void 0, id: defaultPolarAngleAxisProps.angleAxisId, includeHidden: false, name: void 0, reversed: defaultPolarAngleAxisProps.reversed, scale: defaultPolarAngleAxisProps.scale, tick: defaultPolarAngleAxisProps.tick, tickCount: void 0, ticks: void 0, type: defaultPolarAngleAxisProps.type, unit: void 0, niceTicks: "auto" }; var implicitRadiusAxis = { allowDataOverflow: defaultPolarRadiusAxisProps.allowDataOverflow, allowDecimals: defaultPolarRadiusAxisProps.allowDecimals, allowDuplicatedCategory: defaultPolarRadiusAxisProps.allowDuplicatedCategory, dataKey: void 0, domain: void 0, id: defaultPolarRadiusAxisProps.radiusAxisId, includeHidden: defaultPolarRadiusAxisProps.includeHidden, name: void 0, reversed: defaultPolarRadiusAxisProps.reversed, scale: defaultPolarRadiusAxisProps.scale, tick: defaultPolarRadiusAxisProps.tick, tickCount: defaultPolarRadiusAxisProps.tickCount, ticks: void 0, type: defaultPolarRadiusAxisProps.type, unit: void 0, niceTicks: "auto" }; var selectAngleAxisNoDefaults = (state, angleAxisId) => { if (angleAxisId == null) return; return state.polarAxis.angleAxis[angleAxisId]; }; var selectAngleAxis = createSelector([selectAngleAxisNoDefaults, selectPolarChartLayout], (angleAxisSettings, layout) => { var _getAxisTypeBasedOnLa; if (angleAxisSettings != null) return angleAxisSettings; var evaluatedType = (_getAxisTypeBasedOnLa = getAxisTypeBasedOnLayout(layout, "angleAxis", implicitAngleAxis.type)) !== null && _getAxisTypeBasedOnLa !== void 0 ? _getAxisTypeBasedOnLa : "category"; return _objectSpread$55(_objectSpread$55({}, implicitAngleAxis), {}, { type: evaluatedType }); }); var selectRadiusAxisNoDefaults = (state, radiusAxisId) => { return state.polarAxis.radiusAxis[radiusAxisId]; }; var selectRadiusAxis = createSelector([selectRadiusAxisNoDefaults, selectPolarChartLayout], (radiusAxisSettings, layout) => { var _getAxisTypeBasedOnLa2; if (radiusAxisSettings != null) return radiusAxisSettings; var evaluatedType = (_getAxisTypeBasedOnLa2 = getAxisTypeBasedOnLayout(layout, "radiusAxis", implicitRadiusAxis.type)) !== null && _getAxisTypeBasedOnLa2 !== void 0 ? _getAxisTypeBasedOnLa2 : "category"; return _objectSpread$55(_objectSpread$55({}, implicitRadiusAxis), {}, { type: evaluatedType }); }); var selectPolarOptions = (state) => state.polarOptions; var selectMaxRadius = createSelector([ selectChartWidth, selectChartHeight, selectChartOffsetInternal ], getMaxRadius); var selectInnerRadius = createSelector([selectPolarOptions, selectMaxRadius], (polarChartOptions, maxRadius) => { if (polarChartOptions == null) return; return getPercentValue(polarChartOptions.innerRadius, maxRadius, 0); }); var selectOuterRadius = createSelector([selectPolarOptions, selectMaxRadius], (polarChartOptions, maxRadius) => { if (polarChartOptions == null) return; return getPercentValue(polarChartOptions.outerRadius, maxRadius, maxRadius * .8); }); var combineAngleAxisRange = (polarOptions) => { if (polarOptions == null) return [0, 0]; var { startAngle, endAngle } = polarOptions; return [startAngle, endAngle]; }; var selectAngleAxisRange = createSelector([selectPolarOptions], combineAngleAxisRange); var selectAngleAxisRangeWithReversed = createSelector([selectAngleAxis, selectAngleAxisRange], combineAxisRangeWithReverse); var selectRadiusAxisRange = createSelector([ selectMaxRadius, selectInnerRadius, selectOuterRadius ], (maxRadius, innerRadius, outerRadius) => { if (maxRadius == null || innerRadius == null || outerRadius == null) return; return [innerRadius, outerRadius]; }); var selectRadiusAxisRangeWithReversed = createSelector([selectRadiusAxis, selectRadiusAxisRange], combineAxisRangeWithReverse); var selectPolarViewBox = createSelector([ selectChartLayout, selectPolarOptions, selectInnerRadius, selectOuterRadius, selectChartWidth, selectChartHeight ], (layout, polarOptions, innerRadius, outerRadius, width, height) => { if (layout !== "centric" && layout !== "radial" || polarOptions == null || innerRadius == null || outerRadius == null) return; var { cx, cy, startAngle, endAngle } = polarOptions; return { cx: getPercentValue(cx, width, width / 2), cy: getPercentValue(cy, height, height / 2), innerRadius, outerRadius, startAngle, endAngle, clockWise: false }; }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/pickAxisType.js var pickAxisType = (_state, axisType) => axisType; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/pickAxisId.js var pickAxisId = (_state, _axisType, axisId) => axisId; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js /** * Returns identifier for stack series which is one individual graphical item in the stack. * @param graphicalItem - The graphical item representing the series in the stack. * @return The identifier for the series in the stack */ function getStackSeriesIdentifier(graphicalItem) { return graphicalItem === null || graphicalItem === void 0 ? void 0 : graphicalItem.id; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js /** * In a stacked chart, each graphical item has its own data. That data could be either: * - defined on the chart root, in which case the item gets a unique dataKey * - or defined on the item itself, in which case multiple items can share the same dataKey * * That means we cannot use the dataKey as a unique identifier for the item. * * This type represents a single data point in a stacked chart, where each key is a series identifier * and the value is the numeric value for that series using the numerical axis dataKey. */ function combineDisplayedStackedData(stackedGraphicalItems, _ref, tooltipAxisSettings) { var { chartData = [] } = _ref; var { allowDuplicatedCategory, dataKey: tooltipDataKey } = tooltipAxisSettings; var knownItemsByDataKey = /* @__PURE__ */ new Map(); stackedGraphicalItems.forEach((item) => { var _item$data; var resolvedData = (_item$data = item.data) !== null && _item$data !== void 0 ? _item$data : chartData; if (resolvedData == null || resolvedData.length === 0) return; var stackIdentifier = getStackSeriesIdentifier(item); resolvedData.forEach((entry, index) => { var tooltipValue = tooltipDataKey == null || allowDuplicatedCategory ? index : String(getValueByDataKey(entry, tooltipDataKey, null)); var numericValue = getValueByDataKey(entry, item.dataKey, 0); var curr; if (knownItemsByDataKey.has(tooltipValue)) curr = knownItemsByDataKey.get(tooltipValue); else curr = {}; Object.assign(curr, { [stackIdentifier]: numericValue }); knownItemsByDataKey.set(tooltipValue, curr); }); }); return Array.from(knownItemsByDataKey.values()); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/types/StackedGraphicalItem.js /** * Some graphical items allow data stacking. The stacks are optional, * so all props here are optional too. */ /** * Some graphical items allow data stacking. * This interface is used to represent the items that are stacked * because the user has provided the stackId and dataKey properties. */ function isStacked(graphicalItem) { return "stackId" in graphicalItem && graphicalItem.stackId != null && graphicalItem.dataKey != null; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js var numberDomainEqualityCheck = (a, b) => { if (a === b) return true; if (a == null || b == null) return false; return a[0] === b[0] && a[1] === b[1]; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js /** * Checks if two arrays are equal, treating empty arrays as equal regardless of reference. * If both arrays are non-empty, it checks for reference equality. * @param a * @param b */ function emptyArraysAreEqualCheck(a, b) { if (Array.isArray(a) && Array.isArray(b) && a.length === 0 && b.length === 0) return true; return a === b; } /** * Checks if two arrays have the same contents in the same order. * @param a * @param b */ function arrayContentsAreEqualCheck(a, b) { if (a.length === b.length) { for (var i = 0; i < a.length; i++) if (a[i] !== b[i]) return false; return true; } return false; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js /** * angle, radius, X, Y, and Z axes all have domain and range and scale and associated settings */ /** * Z axis is never displayed and so it lacks ticks and tick settings. */ var selectTooltipAxisType = (state) => { var layout = selectChartLayout(state); if (layout === "horizontal") return "xAxis"; if (layout === "vertical") return "yAxis"; if (layout === "centric") return "angleAxis"; return "radiusAxis"; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js var selectTooltipAxisId = (state) => state.tooltip.settings.axisId; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/scale/RechartsScale.js /** * This is internal representation of scale used in Recharts. * Users will provide CustomScaleDefinition or a string, which we will parse into RechartsScale. * Most importantly, RechartsScale is fully immutable - there are no setters that mutate the scale in place. * This is important for React integration - if the scale changes, we want to trigger re-renders. * Mutating the scale in place would not trigger re-renders, leading to stale UI. */ /** * Position within a band for banded scales. * In scales that are not banded, this parameter is ignored. * * @inline */ function rechartsScaleFactory(d3Scale) { if (d3Scale == null) return; var ticksFn = d3Scale.ticks; var bandwidthFn = d3Scale.bandwidth; var d3Range = d3Scale.range(); var range = [Math.min(...d3Range), Math.max(...d3Range)]; return { domain: () => d3Scale.domain(), range: function(_range) { function range() { return _range.apply(this, arguments); } range.toString = function() { return _range.toString(); }; return range; }(() => range), rangeMin: () => range[0], rangeMax: () => range[1], isInRange(value) { var first = range[0]; var last = range[1]; return first <= last ? value >= first && value <= last : value >= last && value <= first; }, bandwidth: bandwidthFn ? () => bandwidthFn.call(d3Scale) : void 0, ticks: ticksFn ? (count) => ticksFn.call(d3Scale, count) : void 0, map: (input, options) => { var baseValue = d3Scale(input); if (baseValue == null) return; if (d3Scale.bandwidth && options !== null && options !== void 0 && options.position) { var bandWidth = d3Scale.bandwidth(); switch (options.position) { case "middle": baseValue += bandWidth / 2; break; case "end": baseValue += bandWidth; break; default: break; } } return baseValue; } }; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js /** * This function validates and transforms the axis domain so that it is safe to use in the provided scale. */ var combineCheckedDomain = (realScaleType, axisDomain) => { if (axisDomain == null) return; switch (realScaleType) { case "linear": if (!isWellFormedNumberDomain(axisDomain)) { var min, max; for (var i = 0; i < axisDomain.length; i++) { var value = axisDomain[i]; if (!isWellBehavedNumber(value)) continue; if (min === void 0 || value < min) min = value; if (max === void 0 || value > max) max = value; } if (min !== void 0 && max !== void 0) return [min, max]; return; } return axisDomain; default: return axisDomain; } }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/ascending.js function ascending(a, b) { return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/descending.js function descending(a, b) { return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/bisector.js function bisector(f) { let compare1, compare2, delta; if (f.length !== 2) { compare1 = ascending; compare2 = (d, x) => ascending(f(d), x); delta = (d, x) => f(d) - x; } else { compare1 = f === ascending || f === descending ? f : zero$1; compare2 = f; delta = f; } function left(a, x, lo = 0, hi = a.length) { if (lo < hi) { if (compare1(x, x) !== 0) return hi; do { const mid = lo + hi >>> 1; if (compare2(a[mid], x) < 0) lo = mid + 1; else hi = mid; } while (lo < hi); } return lo; } function right(a, x, lo = 0, hi = a.length) { if (lo < hi) { if (compare1(x, x) !== 0) return hi; do { const mid = lo + hi >>> 1; if (compare2(a[mid], x) <= 0) lo = mid + 1; else hi = mid; } while (lo < hi); } return lo; } function center(a, x, lo = 0, hi = a.length) { const i = left(a, x, lo, hi - 1); return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i; } return { left, center, right }; } function zero$1() { return 0; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/number.js function number$2(x) { return x === null ? NaN : +x; } function* numbers(values, valueof) { if (valueof === void 0) { for (let value of values) if (value != null && (value = +value) >= value) yield value; } else { let index = -1; for (let value of values) if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) yield value; } } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/bisect.js var ascendingBisect = bisector(ascending); var bisectRight = ascendingBisect.right; ascendingBisect.left; bisector(number$2).center; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/internmap-npm-2.0.3-d74f5c9998-10c0.zip/node_modules/internmap/src/index.js var InternMap = class extends Map { constructor(entries, key = keyof) { super(); Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key } }); if (entries != null) for (const [key, value] of entries) this.set(key, value); } get(key) { return super.get(intern_get(this, key)); } has(key) { return super.has(intern_get(this, key)); } set(key, value) { return super.set(intern_set(this, key), value); } delete(key) { return super.delete(intern_delete(this, key)); } }; function intern_get({ _intern, _key }, value) { const key = _key(value); return _intern.has(key) ? _intern.get(key) : value; } function intern_set({ _intern, _key }, value) { const key = _key(value); if (_intern.has(key)) return _intern.get(key); _intern.set(key, value); return value; } function intern_delete({ _intern, _key }, value) { const key = _key(value); if (_intern.has(key)) { value = _intern.get(key); _intern.delete(key); } return value; } function keyof(value) { return value !== null && typeof value === "object" ? value.valueOf() : value; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/sort.js function compareDefined(compare = ascending) { if (compare === ascending) return ascendingDefined; if (typeof compare !== "function") throw new TypeError("compare is not a function"); return (a, b) => { const x = compare(a, b); if (x || x === 0) return x; return (compare(b, b) === 0) - (compare(a, a) === 0); }; } function ascendingDefined(a, b) { return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/ticks.js var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2); function tickSpec(start, stop, count) { const step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log10(step)), error = step / Math.pow(10, power), factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1; let i1, i2, inc; if (power < 0) { inc = Math.pow(10, -power) / factor; i1 = Math.round(start * inc); i2 = Math.round(stop * inc); if (i1 / inc < start) ++i1; if (i2 / inc > stop) --i2; inc = -inc; } else { inc = Math.pow(10, power) * factor; i1 = Math.round(start / inc); i2 = Math.round(stop / inc); if (i1 * inc < start) ++i1; if (i2 * inc > stop) --i2; } if (i2 < i1 && .5 <= count && count < 2) return tickSpec(start, stop, count * 2); return [ i1, i2, inc ]; } function ticks(start, stop, count) { stop = +stop, start = +start, count = +count; if (!(count > 0)) return []; if (start === stop) return [start]; const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count); if (!(i2 >= i1)) return []; const n = i2 - i1 + 1, ticks = new Array(n); if (reverse) if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) / -inc; else for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) * inc; else if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) / -inc; else for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) * inc; return ticks; } function tickIncrement(start, stop, count) { stop = +stop, start = +start, count = +count; return tickSpec(start, stop, count)[2]; } function tickStep(start, stop, count) { stop = +stop, start = +start, count = +count; const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count); return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/max.js function max(values, valueof) { let max; if (valueof === void 0) { for (const value of values) if (value != null && (max < value || max === void 0 && value >= value)) max = value; } else { let index = -1; for (let value of values) if ((value = valueof(value, ++index, values)) != null && (max < value || max === void 0 && value >= value)) max = value; } return max; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/min.js function min(values, valueof) { let min; if (valueof === void 0) { for (const value of values) if (value != null && (min > value || min === void 0 && value >= value)) min = value; } else { let index = -1; for (let value of values) if ((value = valueof(value, ++index, values)) != null && (min > value || min === void 0 && value >= value)) min = value; } return min; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/quickselect.js function quickselect(array, k, left = 0, right = Infinity, compare) { k = Math.floor(k); left = Math.floor(Math.max(0, left)); right = Math.floor(Math.min(array.length - 1, right)); if (!(left <= k && k <= right)) return array; compare = compare === void 0 ? ascendingDefined : compareDefined(compare); while (right > left) { if (right - left > 600) { const n = right - left + 1; const m = k - left + 1; const z = Math.log(n); const s = .5 * Math.exp(2 * z / 3); const sd = .5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1); const newLeft = Math.max(left, Math.floor(k - m * s / n + sd)); const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd)); quickselect(array, k, newLeft, newRight, compare); } const t = array[k]; let i = left; let j = right; swap(array, left, k); if (compare(array[right], t) > 0) swap(array, left, right); while (i < j) { swap(array, i, j), ++i, --j; while (compare(array[i], t) < 0) ++i; while (compare(array[j], t) > 0) --j; } if (compare(array[left], t) === 0) swap(array, left, j); else ++j, swap(array, j, right); if (j <= k) left = j + 1; if (k <= j) right = j - 1; } return array; } function swap(array, i, j) { const t = array[i]; array[i] = array[j]; array[j] = t; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/quantile.js function quantile$1(values, p, valueof) { values = Float64Array.from(numbers(values, valueof)); if (!(n = values.length) || isNaN(p = +p)) return; if (p <= 0 || n < 2) return min(values); if (p >= 1) return max(values); var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = max(quickselect(values, i0).subarray(0, i0 + 1)); return value0 + (min(values.subarray(i0 + 1)) - value0) * (i - i0); } function quantileSorted(values, p, valueof = number$2) { if (!(n = values.length) || isNaN(p = +p)) return; if (p <= 0 || n < 2) return +valueof(values[0], 0, values); if (p >= 1) return +valueof(values[n - 1], n - 1, values); var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values[i0], i0, values); return value0 + (+valueof(values[i0 + 1], i0 + 1, values) - value0) * (i - i0); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-array-npm-3.2.4-b427632bcc-10c0.zip/node_modules/d3-array/src/range.js function range$2(start, stop, step) { start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step; var i = -1, n = Math.max(0, Math.ceil((stop - start) / step)) | 0, range = new Array(n); while (++i < n) range[i] = start + i * step; return range; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/init.js function initRange(domain, range) { switch (arguments.length) { case 0: break; case 1: this.range(domain); break; default: this.range(range).domain(domain); break; } return this; } function initInterpolator(domain, interpolator) { switch (arguments.length) { case 0: break; case 1: if (typeof domain === "function") this.interpolator(domain); else this.range(domain); break; default: this.domain(domain); if (typeof interpolator === "function") this.interpolator(interpolator); else this.range(interpolator); break; } return this; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/ordinal.js var implicit = Symbol("implicit"); function ordinal() { var index = new InternMap(), domain = [], range = [], unknown = implicit; function scale(d) { let i = index.get(d); if (i === void 0) { if (unknown !== implicit) return unknown; index.set(d, i = domain.push(d) - 1); } return range[i % range.length]; } scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = [], index = new InternMap(); for (const value of _) { if (index.has(value)) continue; index.set(value, domain.push(value) - 1); } return scale; }; scale.range = function(_) { return arguments.length ? (range = Array.from(_), scale) : range.slice(); }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; scale.copy = function() { return ordinal(domain, range).unknown(unknown); }; initRange.apply(scale, arguments); return scale; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/band.js function band() { var scale = ordinal().unknown(void 0), domain = scale.domain, ordinalRange = scale.range, r0 = 0, r1 = 1, step, bandwidth, round = false, paddingInner = 0, paddingOuter = 0, align = .5; delete scale.unknown; function rescale() { var n = domain().length, reverse = r1 < r0, start = reverse ? r1 : r0, stop = reverse ? r0 : r1; step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2); if (round) step = Math.floor(step); start += (stop - start - step * (n - paddingInner)) * align; bandwidth = step * (1 - paddingInner); if (round) start = Math.round(start), bandwidth = Math.round(bandwidth); var values = range$2(n).map(function(i) { return start + step * i; }); return ordinalRange(reverse ? values.reverse() : values); } scale.domain = function(_) { return arguments.length ? (domain(_), rescale()) : domain(); }; scale.range = function(_) { return arguments.length ? ([r0, r1] = _, r0 = +r0, r1 = +r1, rescale()) : [r0, r1]; }; scale.rangeRound = function(_) { return [r0, r1] = _, r0 = +r0, r1 = +r1, round = true, rescale(); }; scale.bandwidth = function() { return bandwidth; }; scale.step = function() { return step; }; scale.round = function(_) { return arguments.length ? (round = !!_, rescale()) : round; }; scale.padding = function(_) { return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner; }; scale.paddingInner = function(_) { return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner; }; scale.paddingOuter = function(_) { return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter; }; scale.align = function(_) { return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align; }; scale.copy = function() { return band(domain(), [r0, r1]).round(round).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align); }; return initRange.apply(rescale(), arguments); } function pointish(scale) { var copy = scale.copy; scale.padding = scale.paddingOuter; delete scale.paddingInner; delete scale.paddingOuter; scale.copy = function() { return pointish(copy()); }; return scale; } function point() { return pointish(band.apply(null, arguments).paddingInner(1)); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-color-npm-3.1.0-fc73fe3b15-10c0.zip/node_modules/d3-color/src/define.js function define_default(constructor, factory, prototype) { constructor.prototype = factory.prototype = prototype; prototype.constructor = constructor; } function extend(parent, definition) { var prototype = Object.create(parent.prototype); for (var key in definition) prototype[key] = definition[key]; return prototype; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-color-npm-3.1.0-fc73fe3b15-10c0.zip/node_modules/d3-color/src/color.js function Color() {} var darker = .7; var brighter = 1 / darker; var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`), reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`), reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`), reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`), reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`), reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`); var named = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, aquamarine: 8388564, azure: 15794175, beige: 16119260, bisque: 16770244, black: 0, blanchedalmond: 16772045, blue: 255, blueviolet: 9055202, brown: 10824234, burlywood: 14596231, cadetblue: 6266528, chartreuse: 8388352, chocolate: 13789470, coral: 16744272, cornflowerblue: 6591981, cornsilk: 16775388, crimson: 14423100, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 12092939, darkgray: 11119017, darkgreen: 25600, darkgrey: 11119017, darkkhaki: 12433259, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 16747520, darkorchid: 10040012, darkred: 9109504, darksalmon: 15308410, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 16716947, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 11674146, floralwhite: 16775920, forestgreen: 2263842, fuchsia: 16711935, gainsboro: 14474460, ghostwhite: 16316671, gold: 16766720, goldenrod: 14329120, gray: 8421504, green: 32768, greenyellow: 11403055, grey: 8421504, honeydew: 15794160, hotpink: 16738740, indianred: 13458524, indigo: 4915330, ivory: 16777200, khaki: 15787660, lavender: 15132410, lavenderblush: 16773365, lawngreen: 8190976, lemonchiffon: 16775885, lightblue: 11393254, lightcoral: 15761536, lightcyan: 14745599, lightgoldenrodyellow: 16448210, lightgray: 13882323, lightgreen: 9498256, lightgrey: 13882323, lightpink: 16758465, lightsalmon: 16752762, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 11584734, lightyellow: 16777184, lime: 65280, limegreen: 3329330, linen: 16445670, magenta: 16711935, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 12211667, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 13047173, midnightblue: 1644912, mintcream: 16121850, mistyrose: 16770273, moccasin: 16770229, navajowhite: 16768685, navy: 128, oldlace: 16643558, olive: 8421376, olivedrab: 7048739, orange: 16753920, orangered: 16729344, orchid: 14315734, palegoldenrod: 15657130, palegreen: 10025880, paleturquoise: 11529966, palevioletred: 14381203, papayawhip: 16773077, peachpuff: 16767673, peru: 13468991, pink: 16761035, plum: 14524637, powderblue: 11591910, purple: 8388736, rebeccapurple: 6697881, red: 16711680, rosybrown: 12357519, royalblue: 4286945, saddlebrown: 9127187, salmon: 16416882, sandybrown: 16032864, seagreen: 3050327, seashell: 16774638, sienna: 10506797, silver: 12632256, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 16775930, springgreen: 65407, steelblue: 4620980, tan: 13808780, teal: 32896, thistle: 14204888, tomato: 16737095, turquoise: 4251856, violet: 15631086, wheat: 16113331, white: 16777215, whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 }; define_default(Color, color, { copy(channels) { return Object.assign(new this.constructor(), this, channels); }, displayable() { return this.rgb().displayable(); }, hex: color_formatHex, formatHex: color_formatHex, formatHex8: color_formatHex8, formatHsl: color_formatHsl, formatRgb: color_formatRgb, toString: color_formatRgb }); function color_formatHex() { return this.rgb().formatHex(); } function color_formatHex8() { return this.rgb().formatHex8(); } function color_formatHsl() { return hslConvert(this).formatHsl(); } function color_formatRgb() { return this.rgb().formatRgb(); } function color(format) { var m, l; format = (format + "").trim().toLowerCase(); return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) : l === 3 ? new Rgb(m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, (m & 15) << 4 | m & 15, 1) : l === 8 ? rgba(m >> 24 & 255, m >> 16 & 255, m >> 8 & 255, (m & 255) / 255) : l === 4 ? rgba(m >> 12 & 15 | m >> 8 & 240, m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, ((m & 15) << 4 | m & 15) / 255) : null) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) : named.hasOwnProperty(format) ? rgbn(named[format]) : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null; } function rgbn(n) { return new Rgb(n >> 16 & 255, n >> 8 & 255, n & 255, 1); } function rgba(r, g, b, a) { if (a <= 0) r = g = b = NaN; return new Rgb(r, g, b, a); } function rgbConvert(o) { if (!(o instanceof Color)) o = color(o); if (!o) return new Rgb(); o = o.rgb(); return new Rgb(o.r, o.g, o.b, o.opacity); } function rgb(r, g, b, opacity) { return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity); } function Rgb(r, g, b, opacity) { this.r = +r; this.g = +g; this.b = +b; this.opacity = +opacity; } define_default(Rgb, rgb, extend(Color, { brighter(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, darker(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, rgb() { return this; }, clamp() { return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity)); }, displayable() { return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1; }, hex: rgb_formatHex, formatHex: rgb_formatHex, formatHex8: rgb_formatHex8, formatRgb: rgb_formatRgb, toString: rgb_formatRgb })); function rgb_formatHex() { return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`; } function rgb_formatHex8() { return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } function rgb_formatRgb() { const a = clampa(this.opacity); return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`; } function clampa(opacity) { return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity)); } function clampi(value) { return Math.max(0, Math.min(255, Math.round(value) || 0)); } function hex(value) { value = clampi(value); return (value < 16 ? "0" : "") + value.toString(16); } function hsla(h, s, l, a) { if (a <= 0) h = s = l = NaN; else if (l <= 0 || l >= 1) h = s = NaN; else if (s <= 0) h = NaN; return new Hsl(h, s, l, a); } function hslConvert(o) { if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); if (!(o instanceof Color)) o = color(o); if (!o) return new Hsl(); if (o instanceof Hsl) return o; o = o.rgb(); var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2; if (s) { if (r === max) h = (g - b) / s + (g < b) * 6; else if (g === max) h = (b - r) / s + 2; else h = (r - g) / s + 4; s /= l < .5 ? max + min : 2 - max - min; h *= 60; } else s = l > 0 && l < 1 ? 0 : h; return new Hsl(h, s, l, o.opacity); } function hsl(h, s, l, opacity) { return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity); } function Hsl(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } define_default(Hsl, hsl, extend(Color, { brighter(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, darker(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, rgb() { var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < .5 ? l : 1 - l) * s, m1 = 2 * l - m2; return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity); }, clamp() { return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity)); }, displayable() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1; }, formatHsl() { const a = clampa(this.opacity); return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`; } })); function clamph(value) { value = (value || 0) % 360; return value < 0 ? value + 360 : value; } function clampt(value) { return Math.max(0, Math.min(1, value || 0)); } function hsl2rgb(h, m1, m2) { return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/basis.js function basis(t1, v0, v1, v2, v3) { var t2 = t1 * t1, t3 = t2 * t1; return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6; } function basis_default(values) { var n = values.length - 1; return function(t) { var i = t <= 0 ? t = 0 : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1; return basis((t - i / n) * n, v0, v1, v2, v3); }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/basisClosed.js function basisClosed_default(values) { var n = values.length; return function(t) { var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), v0 = values[(i + n - 1) % n], v1 = values[i % n], v2 = values[(i + 1) % n], v3 = values[(i + 2) % n]; return basis((t - i / n) * n, v0, v1, v2, v3); }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/constant.js var constant_default = (x) => () => x; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/color.js function linear$1(a, d) { return function(t) { return a + t * d; }; } function exponential(a, b, y) { return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { return Math.pow(a + t * b, y); }; } function gamma(y) { return (y = +y) === 1 ? nogamma : function(a, b) { return b - a ? exponential(a, b, y) : constant_default(isNaN(a) ? b : a); }; } function nogamma(a, b) { var d = b - a; return d ? linear$1(a, d) : constant_default(isNaN(a) ? b : a); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/rgb.js var rgb_default = (function rgbGamma(y) { var color = gamma(y); function rgb$1(start, end) { var r = color((start = rgb(start)).r, (end = rgb(end)).r), g = color(start.g, end.g), b = color(start.b, end.b), opacity = nogamma(start.opacity, end.opacity); return function(t) { start.r = r(t); start.g = g(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } rgb$1.gamma = rgbGamma; return rgb$1; })(1); function rgbSpline(spline) { return function(colors) { var n = colors.length, r = new Array(n), g = new Array(n), b = new Array(n), i, color; for (i = 0; i < n; ++i) { color = rgb(colors[i]); r[i] = color.r || 0; g[i] = color.g || 0; b[i] = color.b || 0; } r = spline(r); g = spline(g); b = spline(b); color.opacity = 1; return function(t) { color.r = r(t); color.g = g(t); color.b = b(t); return color + ""; }; }; } rgbSpline(basis_default); rgbSpline(basisClosed_default); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/numberArray.js function numberArray_default(a, b) { if (!b) b = []; var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i; return function(t) { for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t; return c; }; } function isNumberArray(x) { return ArrayBuffer.isView(x) && !(x instanceof DataView); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/array.js function genericArray(a, b) { var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i; for (i = 0; i < na; ++i) x[i] = value_default(a[i], b[i]); for (; i < nb; ++i) c[i] = b[i]; return function(t) { for (i = 0; i < na; ++i) c[i] = x[i](t); return c; }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/date.js function date_default(a, b) { var d = /* @__PURE__ */ new Date(); return a = +a, b = +b, function(t) { return d.setTime(a * (1 - t) + b * t), d; }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/number.js function number_default(a, b) { return a = +a, b = +b, function(t) { return a * (1 - t) + b * t; }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/object.js function object_default(a, b) { var i = {}, c = {}, k; if (a === null || typeof a !== "object") a = {}; if (b === null || typeof b !== "object") b = {}; for (k in b) if (k in a) i[k] = value_default(a[k], b[k]); else c[k] = b[k]; return function(t) { for (k in i) c[k] = i[k](t); return c; }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/string.js var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g"); function zero(b) { return function() { return b; }; } function one(b) { return function(t) { return b(t) + ""; }; } function string_default(a, b) { var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = []; a = a + "", b = b + ""; while ((am = reA.exec(a)) && (bm = reB.exec(b))) { if ((bs = bm.index) > bi) { bs = b.slice(bi, bs); if (s[i]) s[i] += bs; else s[++i] = bs; } if ((am = am[0]) === (bm = bm[0])) if (s[i]) s[i] += bm; else s[++i] = bm; else { s[++i] = null; q.push({ i, x: number_default(am, bm) }); } bi = reB.lastIndex; } if (bi < b.length) { bs = b.slice(bi); if (s[i]) s[i] += bs; else s[++i] = bs; } return s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function(t) { for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t); return s.join(""); }); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/value.js function value_default(a, b) { var t = typeof b, c; return b == null || t === "boolean" ? constant_default(b) : (t === "number" ? number_default : t === "string" ? (c = color(b)) ? (b = c, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default)(a, b); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/round.js function round_default(a, b) { return a = +a, b = +b, function(t) { return Math.round(a * (1 - t) + b * t); }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-interpolate-npm-3.0.1-77ddca7977-10c0.zip/node_modules/d3-interpolate/src/piecewise.js function piecewise(interpolate, values) { if (values === void 0) values = interpolate, interpolate = value_default; var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n); while (i < n) I[i] = interpolate(v, v = values[++i]); return function(t) { var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n))); return I[i](t - i); }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/constant.js function constants(x) { return function() { return x; }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/number.js function number$1(x) { return +x; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/continuous.js var unit = [0, 1]; function identity$1(x) { return x; } function normalize(a, b) { return (b -= a = +a) ? function(x) { return (x - a) / b; } : constants(isNaN(b) ? NaN : .5); } function clamper(a, b) { var t; if (a > b) t = a, a = b, b = t; return function(x) { return Math.max(a, Math.min(b, x)); }; } function bimap(domain, range, interpolate) { var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0); else d0 = normalize(d0, d1), r0 = interpolate(r0, r1); return function(x) { return r0(d0(x)); }; } function polymap(domain, range, interpolate) { var j = Math.min(domain.length, range.length) - 1, d = new Array(j), r = new Array(j), i = -1; if (domain[j] < domain[0]) { domain = domain.slice().reverse(); range = range.slice().reverse(); } while (++i < j) { d[i] = normalize(domain[i], domain[i + 1]); r[i] = interpolate(range[i], range[i + 1]); } return function(x) { var i = bisectRight(domain, x, 1, j) - 1; return r[i](d[i](x)); }; } function copy$1(source, target) { return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown()); } function transformer$2() { var domain = unit, range = unit, interpolate = value_default, transform, untransform, unknown, clamp = identity$1, piecewise, output, input; function rescale() { var n = Math.min(domain.length, range.length); if (clamp !== identity$1) clamp = clamper(domain[0], domain[n - 1]); piecewise = n > 2 ? polymap : bimap; output = input = null; return scale; } function scale(x) { return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x))); } scale.invert = function(y) { return clamp(untransform((input || (input = piecewise(range, domain.map(transform), number_default)))(y))); }; scale.domain = function(_) { return arguments.length ? (domain = Array.from(_, number$1), rescale()) : domain.slice(); }; scale.range = function(_) { return arguments.length ? (range = Array.from(_), rescale()) : range.slice(); }; scale.rangeRound = function(_) { return range = Array.from(_), interpolate = round_default, rescale(); }; scale.clamp = function(_) { return arguments.length ? (clamp = _ ? true : identity$1, rescale()) : clamp !== identity$1; }; scale.interpolate = function(_) { return arguments.length ? (interpolate = _, rescale()) : interpolate; }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; return function(t, u) { transform = t, untransform = u; return rescale(); }; } function continuous() { return transformer$2()(identity$1, identity$1); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/formatDecimal.js function formatDecimal_default(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); } function formatDecimalParts(x, p) { if (!isFinite(x) || x === 0) return null; var i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e"), coefficient = x.slice(0, i); return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1)]; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/exponent.js function exponent_default(x) { return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/formatGroup.js function formatGroup_default(grouping, thousands) { return function(value, width) { var i = value.length, t = [], j = 0, g = grouping[0], length = 0; while (i > 0 && g > 0) { if (length + g + 1 > width) g = Math.max(1, width - length); t.push(value.substring(i -= g, i + g)); if ((length += g + 1) > width) break; g = grouping[j = (j + 1) % grouping.length]; } return t.reverse().join(thousands); }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/formatNumerals.js function formatNumerals_default(numerals) { return function(value) { return value.replace(/[0-9]/g, function(i) { return numerals[+i]; }); }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/formatSpecifier.js var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; function formatSpecifier(specifier) { if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier); var match; return new FormatSpecifier({ fill: match[1], align: match[2], sign: match[3], symbol: match[4], zero: match[5], width: match[6], comma: match[7], precision: match[8] && match[8].slice(1), trim: match[9], type: match[10] }); } formatSpecifier.prototype = FormatSpecifier.prototype; function FormatSpecifier(specifier) { this.fill = specifier.fill === void 0 ? " " : specifier.fill + ""; this.align = specifier.align === void 0 ? ">" : specifier.align + ""; this.sign = specifier.sign === void 0 ? "-" : specifier.sign + ""; this.symbol = specifier.symbol === void 0 ? "" : specifier.symbol + ""; this.zero = !!specifier.zero; this.width = specifier.width === void 0 ? void 0 : +specifier.width; this.comma = !!specifier.comma; this.precision = specifier.precision === void 0 ? void 0 : +specifier.precision; this.trim = !!specifier.trim; this.type = specifier.type === void 0 ? "" : specifier.type + ""; } FormatSpecifier.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/formatTrim.js function formatTrim_default(s) { out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) switch (s[i]) { case ".": i0 = i1 = i; break; case "0": if (i0 === 0) i0 = i; i1 = i; break; default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break; } return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/formatPrefixAuto.js var prefixExponent; function formatPrefixAuto_default(x, p) { var d = formatDecimalParts(x, p); if (!d) return prefixExponent = void 0, x.toPrecision(p); var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, n = coefficient.length; return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/formatRounded.js function formatRounded_default(x, p) { var d = formatDecimalParts(x, p); if (!d) return x + ""; var coefficient = d[0], exponent = d[1]; return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0"); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/formatTypes.js var formatTypes_default = { "%": (x, p) => (x * 100).toFixed(p), "b": (x) => Math.round(x).toString(2), "c": (x) => x + "", "d": formatDecimal_default, "e": (x, p) => x.toExponential(p), "f": (x, p) => x.toFixed(p), "g": (x, p) => x.toPrecision(p), "o": (x) => Math.round(x).toString(8), "p": (x, p) => formatRounded_default(x * 100, p), "r": formatRounded_default, "s": formatPrefixAuto_default, "X": (x) => Math.round(x).toString(16).toUpperCase(), "x": (x) => Math.round(x).toString(16) }; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/identity.js function identity_default(x) { return x; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/locale.js var map = Array.prototype.map, prefixes = [ "y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y" ]; function locale_default(locale) { var group = locale.grouping === void 0 || locale.thousands === void 0 ? identity_default : formatGroup_default(map.call(locale.grouping, Number), locale.thousands + ""), currencyPrefix = locale.currency === void 0 ? "" : locale.currency[0] + "", currencySuffix = locale.currency === void 0 ? "" : locale.currency[1] + "", decimal = locale.decimal === void 0 ? "." : locale.decimal + "", numerals = locale.numerals === void 0 ? identity_default : formatNumerals_default(map.call(locale.numerals, String)), percent = locale.percent === void 0 ? "%" : locale.percent + "", minus = locale.minus === void 0 ? "−" : locale.minus + "", nan = locale.nan === void 0 ? "NaN" : locale.nan + ""; function newFormat(specifier, options) { specifier = formatSpecifier(specifier); var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type; if (type === "n") comma = true, type = "g"; else if (!formatTypes_default[type]) precision === void 0 && (precision = 12), trim = true, type = "g"; if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "="; var prefix = (options && options.prefix !== void 0 ? options.prefix : "") + (symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : ""), suffix = (symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "") + (options && options.suffix !== void 0 ? options.suffix : ""); var formatType = formatTypes_default[type], maybeSuffix = /[defgprs%]/.test(type); precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)); function format(value) { var valuePrefix = prefix, valueSuffix = suffix, i, n, c; if (type === "c") { valueSuffix = formatType(value) + valueSuffix; value = ""; } else { value = +value; var valueNegative = value < 0 || 1 / value < 0; value = isNaN(value) ? nan : formatType(Math.abs(value), precision); if (trim) value = formatTrim_default(value); if (valueNegative && +value === 0 && sign !== "+") valueNegative = false; valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix; valueSuffix = (type === "s" && !isNaN(value) && prefixExponent !== void 0 ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); if (maybeSuffix) { i = -1, n = value.length; while (++i < n) if (c = value.charCodeAt(i), 48 > c || c > 57) { valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; value = value.slice(0, i); break; } } } if (comma && !zero) value = group(value, Infinity); var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : ""; if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; switch (align) { case "<": value = valuePrefix + value + valueSuffix + padding; break; case "=": value = valuePrefix + padding + value + valueSuffix; break; case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break; default: value = padding + valuePrefix + value + valueSuffix; break; } return numerals(value); } format.toString = function() { return specifier + ""; }; return format; } function formatPrefix(specifier, value) { var e = Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3, k = Math.pow(10, -e), f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier), { suffix: prefixes[8 + e / 3] }); return function(value) { return f(k * value); }; } return { format: newFormat, formatPrefix }; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/defaultLocale.js var locale$1; var format; var formatPrefix; defaultLocale$1({ thousands: ",", grouping: [3], currency: ["$", ""] }); function defaultLocale$1(definition) { locale$1 = locale_default(definition); format = locale$1.format; formatPrefix = locale$1.formatPrefix; return locale$1; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/precisionFixed.js function precisionFixed_default(step) { return Math.max(0, -exponent_default(Math.abs(step))); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/precisionPrefix.js function precisionPrefix_default(step, value) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3 - exponent_default(Math.abs(step))); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-format-npm-3.1.2-78b0d9257a-10c0.zip/node_modules/d3-format/src/precisionRound.js function precisionRound_default(step, max) { step = Math.abs(step), max = Math.abs(max) - step; return Math.max(0, exponent_default(max) - exponent_default(step)) + 1; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/tickFormat.js function tickFormat(start, stop, count, specifier) { var step = tickStep(start, stop, count), precision; specifier = formatSpecifier(specifier == null ? ",f" : specifier); switch (specifier.type) { case "s": var value = Math.max(Math.abs(start), Math.abs(stop)); if (specifier.precision == null && !isNaN(precision = precisionPrefix_default(step, value))) specifier.precision = precision; return formatPrefix(specifier, value); case "": case "e": case "g": case "p": case "r": if (specifier.precision == null && !isNaN(precision = precisionRound_default(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e"); break; case "f": case "%": if (specifier.precision == null && !isNaN(precision = precisionFixed_default(step))) specifier.precision = precision - (specifier.type === "%") * 2; break; } return format(specifier); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/linear.js function linearish(scale) { var domain = scale.domain; scale.ticks = function(count) { var d = domain(); return ticks(d[0], d[d.length - 1], count == null ? 10 : count); }; scale.tickFormat = function(count, specifier) { var d = domain(); return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier); }; scale.nice = function(count) { if (count == null) count = 10; var d = domain(); var i0 = 0; var i1 = d.length - 1; var start = d[i0]; var stop = d[i1]; var prestep; var step; var maxIter = 10; if (stop < start) { step = start, start = stop, stop = step; step = i0, i0 = i1, i1 = step; } while (maxIter-- > 0) { step = tickIncrement(start, stop, count); if (step === prestep) { d[i0] = start; d[i1] = stop; return domain(d); } else if (step > 0) { start = Math.floor(start / step) * step; stop = Math.ceil(stop / step) * step; } else if (step < 0) { start = Math.ceil(start * step) / step; stop = Math.floor(stop * step) / step; } else break; prestep = step; } return scale; }; return scale; } function linear() { var scale = continuous(); scale.copy = function() { return copy$1(scale, linear()); }; initRange.apply(scale, arguments); return linearish(scale); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/identity.js function identity(domain) { var unknown; function scale(x) { return x == null || isNaN(x = +x) ? unknown : x; } scale.invert = scale; scale.domain = scale.range = function(_) { return arguments.length ? (domain = Array.from(_, number$1), scale) : domain.slice(); }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; scale.copy = function() { return identity(domain).unknown(unknown); }; domain = arguments.length ? Array.from(domain, number$1) : [0, 1]; return linearish(scale); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/nice.js function nice(domain, interval) { domain = domain.slice(); var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], t; if (x1 < x0) { t = i0, i0 = i1, i1 = t; t = x0, x0 = x1, x1 = t; } domain[i0] = interval.floor(x0); domain[i1] = interval.ceil(x1); return domain; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/log.js function transformLog(x) { return Math.log(x); } function transformExp(x) { return Math.exp(x); } function transformLogn(x) { return -Math.log(-x); } function transformExpn(x) { return -Math.exp(-x); } function pow10(x) { return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x; } function powp(base) { return base === 10 ? pow10 : base === Math.E ? Math.exp : (x) => Math.pow(base, x); } function logp(base) { return base === Math.E ? Math.log : base === 10 && Math.log10 || base === 2 && Math.log2 || (base = Math.log(base), (x) => Math.log(x) / base); } function reflect(f) { return (x, k) => -f(-x, k); } function loggish(transform) { const scale = transform(transformLog, transformExp); const domain = scale.domain; let base = 10; let logs; let pows; function rescale() { logs = logp(base), pows = powp(base); if (domain()[0] < 0) { logs = reflect(logs), pows = reflect(pows); transform(transformLogn, transformExpn); } else transform(transformLog, transformExp); return scale; } scale.base = function(_) { return arguments.length ? (base = +_, rescale()) : base; }; scale.domain = function(_) { return arguments.length ? (domain(_), rescale()) : domain(); }; scale.ticks = (count) => { const d = domain(); let u = d[0]; let v = d[d.length - 1]; const r = v < u; if (r) [u, v] = [v, u]; let i = logs(u); let j = logs(v); let k; let t; const n = count == null ? 10 : +count; let z = []; if (!(base % 1) && j - i < n) { i = Math.floor(i), j = Math.ceil(j); if (u > 0) for (; i <= j; ++i) for (k = 1; k < base; ++k) { t = i < 0 ? k / pows(-i) : k * pows(i); if (t < u) continue; if (t > v) break; z.push(t); } else for (; i <= j; ++i) for (k = base - 1; k >= 1; --k) { t = i > 0 ? k / pows(-i) : k * pows(i); if (t < u) continue; if (t > v) break; z.push(t); } if (z.length * 2 < n) z = ticks(u, v, n); } else z = ticks(i, j, Math.min(j - i, n)).map(pows); return r ? z.reverse() : z; }; scale.tickFormat = (count, specifier) => { if (count == null) count = 10; if (specifier == null) specifier = base === 10 ? "s" : ","; if (typeof specifier !== "function") { if (!(base % 1) && (specifier = formatSpecifier(specifier)).precision == null) specifier.trim = true; specifier = format(specifier); } if (count === Infinity) return specifier; const k = Math.max(1, base * count / scale.ticks().length); return (d) => { let i = d / pows(Math.round(logs(d))); if (i * base < base - .5) i *= base; return i <= k ? specifier(d) : ""; }; }; scale.nice = () => { return domain(nice(domain(), { floor: (x) => pows(Math.floor(logs(x))), ceil: (x) => pows(Math.ceil(logs(x))) })); }; return scale; } function log() { const scale = loggish(transformer$2()).domain([1, 10]); scale.copy = () => copy$1(scale, log()).base(scale.base()); initRange.apply(scale, arguments); return scale; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/symlog.js function transformSymlog(c) { return function(x) { return Math.sign(x) * Math.log1p(Math.abs(x / c)); }; } function transformSymexp(c) { return function(x) { return Math.sign(x) * Math.expm1(Math.abs(x)) * c; }; } function symlogish(transform) { var c = 1, scale = transform(transformSymlog(c), transformSymexp(c)); scale.constant = function(_) { return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c; }; return linearish(scale); } function symlog() { var scale = symlogish(transformer$2()); scale.copy = function() { return copy$1(scale, symlog()).constant(scale.constant()); }; return initRange.apply(scale, arguments); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/pow.js function transformPow(exponent) { return function(x) { return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); }; } function transformSqrt(x) { return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x); } function transformSquare(x) { return x < 0 ? -x * x : x * x; } function powish(transform) { var scale = transform(identity$1, identity$1), exponent = 1; function rescale() { return exponent === 1 ? transform(identity$1, identity$1) : exponent === .5 ? transform(transformSqrt, transformSquare) : transform(transformPow(exponent), transformPow(1 / exponent)); } scale.exponent = function(_) { return arguments.length ? (exponent = +_, rescale()) : exponent; }; return linearish(scale); } function pow() { var scale = powish(transformer$2()); scale.copy = function() { return copy$1(scale, pow()).exponent(scale.exponent()); }; initRange.apply(scale, arguments); return scale; } function sqrt() { return pow.apply(null, arguments).exponent(.5); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/radial.js function square(x) { return Math.sign(x) * x * x; } function unsquare(x) { return Math.sign(x) * Math.sqrt(Math.abs(x)); } function radial() { var squared = continuous(), range = [0, 1], round = false, unknown; function scale(x) { var y = unsquare(squared(x)); return isNaN(y) ? unknown : round ? Math.round(y) : y; } scale.invert = function(y) { return squared.invert(square(y)); }; scale.domain = function(_) { return arguments.length ? (squared.domain(_), scale) : squared.domain(); }; scale.range = function(_) { return arguments.length ? (squared.range((range = Array.from(_, number$1)).map(square)), scale) : range.slice(); }; scale.rangeRound = function(_) { return scale.range(_).round(true); }; scale.round = function(_) { return arguments.length ? (round = !!_, scale) : round; }; scale.clamp = function(_) { return arguments.length ? (squared.clamp(_), scale) : squared.clamp(); }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; scale.copy = function() { return radial(squared.domain(), range).round(round).clamp(squared.clamp()).unknown(unknown); }; initRange.apply(scale, arguments); return linearish(scale); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/quantile.js function quantile() { var domain = [], range = [], thresholds = [], unknown; function rescale() { var i = 0, n = Math.max(1, range.length); thresholds = new Array(n - 1); while (++i < n) thresholds[i - 1] = quantileSorted(domain, i / n); return scale; } function scale(x) { return x == null || isNaN(x = +x) ? unknown : range[bisectRight(thresholds, x)]; } scale.invertExtent = function(y) { var i = range.indexOf(y); return i < 0 ? [NaN, NaN] : [i > 0 ? thresholds[i - 1] : domain[0], i < thresholds.length ? thresholds[i] : domain[domain.length - 1]]; }; scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = []; for (let d of _) if (d != null && !isNaN(d = +d)) domain.push(d); domain.sort(ascending); return rescale(); }; scale.range = function(_) { return arguments.length ? (range = Array.from(_), rescale()) : range.slice(); }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; scale.quantiles = function() { return thresholds.slice(); }; scale.copy = function() { return quantile().domain(domain).range(range).unknown(unknown); }; return initRange.apply(scale, arguments); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/quantize.js function quantize() { var x0 = 0, x1 = 1, n = 1, domain = [.5], range = [0, 1], unknown; function scale(x) { return x != null && x <= x ? range[bisectRight(domain, x, 0, n)] : unknown; } function rescale() { var i = -1; domain = new Array(n); while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1); return scale; } scale.domain = function(_) { return arguments.length ? ([x0, x1] = _, x0 = +x0, x1 = +x1, rescale()) : [x0, x1]; }; scale.range = function(_) { return arguments.length ? (n = (range = Array.from(_)).length - 1, rescale()) : range.slice(); }; scale.invertExtent = function(y) { var i = range.indexOf(y); return i < 0 ? [NaN, NaN] : i < 1 ? [x0, domain[0]] : i >= n ? [domain[n - 1], x1] : [domain[i - 1], domain[i]]; }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : scale; }; scale.thresholds = function() { return domain.slice(); }; scale.copy = function() { return quantize().domain([x0, x1]).range(range).unknown(unknown); }; return initRange.apply(linearish(scale), arguments); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/threshold.js function threshold() { var domain = [.5], range = [0, 1], unknown, n = 1; function scale(x) { return x != null && x <= x ? range[bisectRight(domain, x, 0, n)] : unknown; } scale.domain = function(_) { return arguments.length ? (domain = Array.from(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice(); }; scale.range = function(_) { return arguments.length ? (range = Array.from(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice(); }; scale.invertExtent = function(y) { var i = range.indexOf(y); return [domain[i - 1], domain[i]]; }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; scale.copy = function() { return threshold().domain(domain).range(range).unknown(unknown); }; return initRange.apply(scale, arguments); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/interval.js var t0 = /* @__PURE__ */ new Date(), t1 = /* @__PURE__ */ new Date(); function timeInterval(floori, offseti, count, field) { function interval(date) { return floori(date = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+date)), date; } interval.floor = (date) => { return floori(date = /* @__PURE__ */ new Date(+date)), date; }; interval.ceil = (date) => { return floori(date = /* @__PURE__ */ new Date(date - 1)), offseti(date, 1), floori(date), date; }; interval.round = (date) => { const d0 = interval(date), d1 = interval.ceil(date); return date - d0 < d1 - date ? d0 : d1; }; interval.offset = (date, step) => { return offseti(date = /* @__PURE__ */ new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval.range = (start, stop, step) => { const range = []; start = interval.ceil(start); step = step == null ? 1 : Math.floor(step); if (!(start < stop) || !(step > 0)) return range; let previous; do range.push(previous = /* @__PURE__ */ new Date(+start)), offseti(start, step), floori(start); while (previous < start && start < stop); return range; }; interval.filter = (test) => { return timeInterval((date) => { if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1); }, (date, step) => { if (date >= date) if (step < 0) while (++step <= 0) while (offseti(date, -1), !test(date)); else while (--step >= 0) while (offseti(date, 1), !test(date)); }); }; if (count) { interval.count = (start, end) => { t0.setTime(+start), t1.setTime(+end); floori(t0), floori(t1); return Math.floor(count(t0, t1)); }; interval.every = (step) => { step = Math.floor(step); return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval : interval.filter(field ? (d) => field(d) % step === 0 : (d) => interval.count(0, d) % step === 0); }; } return interval; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/millisecond.js var millisecond = timeInterval(() => {}, (date, step) => { date.setTime(+date + step); }, (start, end) => { return end - start; }); millisecond.every = (k) => { k = Math.floor(k); if (!isFinite(k) || !(k > 0)) return null; if (!(k > 1)) return millisecond; return timeInterval((date) => { date.setTime(Math.floor(date / k) * k); }, (date, step) => { date.setTime(+date + step * k); }, (start, end) => { return (end - start) / k; }); }; millisecond.range; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/duration.js var durationSecond = 1e3; var durationMinute = durationSecond * 60; var durationHour = durationMinute * 60; var durationDay = durationHour * 24; var durationWeek = durationDay * 7; var durationMonth = durationDay * 30; var durationYear = durationDay * 365; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/second.js var second = timeInterval((date) => { date.setTime(date - date.getMilliseconds()); }, (date, step) => { date.setTime(+date + step * durationSecond); }, (start, end) => { return (end - start) / durationSecond; }, (date) => { return date.getUTCSeconds(); }); second.range; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/minute.js var timeMinute = timeInterval((date) => { date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond); }, (date, step) => { date.setTime(+date + step * durationMinute); }, (start, end) => { return (end - start) / durationMinute; }, (date) => { return date.getMinutes(); }); timeMinute.range; var utcMinute = timeInterval((date) => { date.setUTCSeconds(0, 0); }, (date, step) => { date.setTime(+date + step * durationMinute); }, (start, end) => { return (end - start) / durationMinute; }, (date) => { return date.getUTCMinutes(); }); utcMinute.range; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/hour.js var timeHour = timeInterval((date) => { date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute); }, (date, step) => { date.setTime(+date + step * durationHour); }, (start, end) => { return (end - start) / durationHour; }, (date) => { return date.getHours(); }); timeHour.range; var utcHour = timeInterval((date) => { date.setUTCMinutes(0, 0, 0); }, (date, step) => { date.setTime(+date + step * durationHour); }, (start, end) => { return (end - start) / durationHour; }, (date) => { return date.getUTCHours(); }); utcHour.range; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/day.js var timeDay = timeInterval((date) => date.setHours(0, 0, 0, 0), (date, step) => date.setDate(date.getDate() + step), (start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay, (date) => date.getDate() - 1); timeDay.range; var utcDay = timeInterval((date) => { date.setUTCHours(0, 0, 0, 0); }, (date, step) => { date.setUTCDate(date.getUTCDate() + step); }, (start, end) => { return (end - start) / durationDay; }, (date) => { return date.getUTCDate() - 1; }); utcDay.range; var unixDay = timeInterval((date) => { date.setUTCHours(0, 0, 0, 0); }, (date, step) => { date.setUTCDate(date.getUTCDate() + step); }, (start, end) => { return (end - start) / durationDay; }, (date) => { return Math.floor(date / durationDay); }); unixDay.range; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/week.js function timeWeekday(i) { return timeInterval((date) => { date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7); date.setHours(0, 0, 0, 0); }, (date, step) => { date.setDate(date.getDate() + step * 7); }, (start, end) => { return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek; }); } var timeSunday = timeWeekday(0); var timeMonday = timeWeekday(1); var timeTuesday = timeWeekday(2); var timeWednesday = timeWeekday(3); var timeThursday = timeWeekday(4); var timeFriday = timeWeekday(5); var timeSaturday = timeWeekday(6); timeSunday.range; timeMonday.range; timeTuesday.range; timeWednesday.range; timeThursday.range; timeFriday.range; timeSaturday.range; function utcWeekday(i) { return timeInterval((date) => { date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7); date.setUTCHours(0, 0, 0, 0); }, (date, step) => { date.setUTCDate(date.getUTCDate() + step * 7); }, (start, end) => { return (end - start) / durationWeek; }); } var utcSunday = utcWeekday(0); var utcMonday = utcWeekday(1); var utcTuesday = utcWeekday(2); var utcWednesday = utcWeekday(3); var utcThursday = utcWeekday(4); var utcFriday = utcWeekday(5); var utcSaturday = utcWeekday(6); utcSunday.range; utcMonday.range; utcTuesday.range; utcWednesday.range; utcThursday.range; utcFriday.range; utcSaturday.range; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/month.js var timeMonth = timeInterval((date) => { date.setDate(1); date.setHours(0, 0, 0, 0); }, (date, step) => { date.setMonth(date.getMonth() + step); }, (start, end) => { return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12; }, (date) => { return date.getMonth(); }); timeMonth.range; var utcMonth = timeInterval((date) => { date.setUTCDate(1); date.setUTCHours(0, 0, 0, 0); }, (date, step) => { date.setUTCMonth(date.getUTCMonth() + step); }, (start, end) => { return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12; }, (date) => { return date.getUTCMonth(); }); utcMonth.range; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/year.js var timeYear = timeInterval((date) => { date.setMonth(0, 1); date.setHours(0, 0, 0, 0); }, (date, step) => { date.setFullYear(date.getFullYear() + step); }, (start, end) => { return end.getFullYear() - start.getFullYear(); }, (date) => { return date.getFullYear(); }); timeYear.every = (k) => { return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => { date.setFullYear(Math.floor(date.getFullYear() / k) * k); date.setMonth(0, 1); date.setHours(0, 0, 0, 0); }, (date, step) => { date.setFullYear(date.getFullYear() + step * k); }); }; timeYear.range; var utcYear = timeInterval((date) => { date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); }, (date, step) => { date.setUTCFullYear(date.getUTCFullYear() + step); }, (start, end) => { return end.getUTCFullYear() - start.getUTCFullYear(); }, (date) => { return date.getUTCFullYear(); }); utcYear.every = (k) => { return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => { date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k); date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); }, (date, step) => { date.setUTCFullYear(date.getUTCFullYear() + step * k); }); }; utcYear.range; //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-npm-3.1.0-fb068fd1c9-10c0.zip/node_modules/d3-time/src/ticks.js function ticker(year, month, week, day, hour, minute) { const tickIntervals = [ [ second, 1, durationSecond ], [ second, 5, 5 * durationSecond ], [ second, 15, 15 * durationSecond ], [ second, 30, 30 * durationSecond ], [ minute, 1, durationMinute ], [ minute, 5, 5 * durationMinute ], [ minute, 15, 15 * durationMinute ], [ minute, 30, 30 * durationMinute ], [ hour, 1, durationHour ], [ hour, 3, 3 * durationHour ], [ hour, 6, 6 * durationHour ], [ hour, 12, 12 * durationHour ], [ day, 1, durationDay ], [ day, 2, 2 * durationDay ], [ week, 1, durationWeek ], [ month, 1, durationMonth ], [ month, 3, 3 * durationMonth ], [ year, 1, durationYear ] ]; function ticks(start, stop, count) { const reverse = stop < start; if (reverse) [start, stop] = [stop, start]; const interval = count && typeof count.range === "function" ? count : tickInterval(start, stop, count); const ticks = interval ? interval.range(start, +stop + 1) : []; return reverse ? ticks.reverse() : ticks; } function tickInterval(start, stop, count) { const target = Math.abs(stop - start) / count; const i = bisector(([, , step]) => step).right(tickIntervals, target); if (i === tickIntervals.length) return year.every(tickStep(start / durationYear, stop / durationYear, count)); if (i === 0) return millisecond.every(Math.max(tickStep(start, stop, count), 1)); const [t, step] = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i]; return t.every(step); } return [ticks, tickInterval]; } var [utcTicks, utcTickInterval] = ticker(utcYear, utcMonth, utcSunday, unixDay, utcHour, utcMinute); var [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute); //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-format-npm-4.1.0-7f352c4634-10c0.zip/node_modules/d3-time-format/src/locale.js function localDate(d) { if (0 <= d.y && d.y < 100) { var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L); date.setFullYear(d.y); return date; } return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L); } function utcDate(d) { if (0 <= d.y && d.y < 100) { var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L)); date.setUTCFullYear(d.y); return date; } return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L)); } function newDate(y, m, d) { return { y, m, d, H: 0, M: 0, S: 0, L: 0 }; } function formatLocale(locale) { var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths; var periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths); var formats = { "a": formatShortWeekday, "A": formatWeekday, "b": formatShortMonth, "B": formatMonth, "c": null, "d": formatDayOfMonth, "e": formatDayOfMonth, "f": formatMicroseconds, "g": formatYearISO, "G": formatFullYearISO, "H": formatHour24, "I": formatHour12, "j": formatDayOfYear, "L": formatMilliseconds, "m": formatMonthNumber, "M": formatMinutes, "p": formatPeriod, "q": formatQuarter, "Q": formatUnixTimestamp, "s": formatUnixTimestampSeconds, "S": formatSeconds, "u": formatWeekdayNumberMonday, "U": formatWeekNumberSunday, "V": formatWeekNumberISO, "w": formatWeekdayNumberSunday, "W": formatWeekNumberMonday, "x": null, "X": null, "y": formatYear, "Y": formatFullYear, "Z": formatZone, "%": formatLiteralPercent }; var utcFormats = { "a": formatUTCShortWeekday, "A": formatUTCWeekday, "b": formatUTCShortMonth, "B": formatUTCMonth, "c": null, "d": formatUTCDayOfMonth, "e": formatUTCDayOfMonth, "f": formatUTCMicroseconds, "g": formatUTCYearISO, "G": formatUTCFullYearISO, "H": formatUTCHour24, "I": formatUTCHour12, "j": formatUTCDayOfYear, "L": formatUTCMilliseconds, "m": formatUTCMonthNumber, "M": formatUTCMinutes, "p": formatUTCPeriod, "q": formatUTCQuarter, "Q": formatUnixTimestamp, "s": formatUnixTimestampSeconds, "S": formatUTCSeconds, "u": formatUTCWeekdayNumberMonday, "U": formatUTCWeekNumberSunday, "V": formatUTCWeekNumberISO, "w": formatUTCWeekdayNumberSunday, "W": formatUTCWeekNumberMonday, "x": null, "X": null, "y": formatUTCYear, "Y": formatUTCFullYear, "Z": formatUTCZone, "%": formatLiteralPercent }; var parses = { "a": parseShortWeekday, "A": parseWeekday, "b": parseShortMonth, "B": parseMonth, "c": parseLocaleDateTime, "d": parseDayOfMonth, "e": parseDayOfMonth, "f": parseMicroseconds, "g": parseYear, "G": parseFullYear, "H": parseHour24, "I": parseHour24, "j": parseDayOfYear, "L": parseMilliseconds, "m": parseMonthNumber, "M": parseMinutes, "p": parsePeriod, "q": parseQuarter, "Q": parseUnixTimestamp, "s": parseUnixTimestampSeconds, "S": parseSeconds, "u": parseWeekdayNumberMonday, "U": parseWeekNumberSunday, "V": parseWeekNumberISO, "w": parseWeekdayNumberSunday, "W": parseWeekNumberMonday, "x": parseLocaleDate, "X": parseLocaleTime, "y": parseYear, "Y": parseFullYear, "Z": parseZone, "%": parseLiteralPercent }; formats.x = newFormat(locale_date, formats); formats.X = newFormat(locale_time, formats); formats.c = newFormat(locale_dateTime, formats); utcFormats.x = newFormat(locale_date, utcFormats); utcFormats.X = newFormat(locale_time, utcFormats); utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats) { return function(date) { var string = [], i = -1, j = 0, n = specifier.length, c, pad, format; if (!(date instanceof Date)) date = /* @__PURE__ */ new Date(+date); while (++i < n) if (specifier.charCodeAt(i) === 37) { string.push(specifier.slice(j, i)); if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i); else pad = c === "e" ? " " : "0"; if (format = formats[c]) c = format(date, pad); string.push(c); j = i + 1; } string.push(specifier.slice(j, i)); return string.join(""); }; } function newParse(specifier, Z) { return function(string) { var d = newDate(1900, void 0, 1), i = parseSpecifier(d, specifier, string += "", 0), week, day; if (i != string.length) return null; if ("Q" in d) return new Date(d.Q); if ("s" in d) return new Date(d.s * 1e3 + ("L" in d ? d.L : 0)); if (Z && !("Z" in d)) d.Z = 0; if ("p" in d) d.H = d.H % 12 + d.p * 12; if (d.m === void 0) d.m = "q" in d ? d.q : 0; if ("V" in d) { if (d.V < 1 || d.V > 53) return null; if (!("w" in d)) d.w = 1; if ("Z" in d) { week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay(); week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week); week = utcDay.offset(week, (d.V - 1) * 7); d.y = week.getUTCFullYear(); d.m = week.getUTCMonth(); d.d = week.getUTCDate() + (d.w + 6) % 7; } else { week = localDate(newDate(d.y, 0, 1)), day = week.getDay(); week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week); week = timeDay.offset(week, (d.V - 1) * 7); d.y = week.getFullYear(); d.m = week.getMonth(); d.d = week.getDate() + (d.w + 6) % 7; } } else if ("W" in d || "U" in d) { if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0; day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(); d.m = 0; d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7; } if ("Z" in d) { d.H += d.Z / 100 | 0; d.M += d.Z % 100; return utcDate(d); } return localDate(d); }; } function parseSpecifier(d, specifier, string, j) { var i = 0, n = specifier.length, m = string.length, c, parse; while (i < n) { if (j >= m) return -1; c = specifier.charCodeAt(i++); if (c === 37) { c = specifier.charAt(i++); parse = parses[c in pads ? specifier.charAt(i++) : c]; if (!parse || (j = parse(d, string, j)) < 0) return -1; } else if (c != string.charCodeAt(j++)) return -1; } return j; } function parsePeriod(d, string, i) { var n = periodRe.exec(string.slice(i)); return n ? (d.p = periodLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; } function parseShortWeekday(d, string, i) { var n = shortWeekdayRe.exec(string.slice(i)); return n ? (d.w = shortWeekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; } function parseWeekday(d, string, i) { var n = weekdayRe.exec(string.slice(i)); return n ? (d.w = weekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; } function parseShortMonth(d, string, i) { var n = shortMonthRe.exec(string.slice(i)); return n ? (d.m = shortMonthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; } function parseMonth(d, string, i) { var n = monthRe.exec(string.slice(i)); return n ? (d.m = monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; } function parseLocaleDateTime(d, string, i) { return parseSpecifier(d, locale_dateTime, string, i); } function parseLocaleDate(d, string, i) { return parseSpecifier(d, locale_date, string, i); } function parseLocaleTime(d, string, i) { return parseSpecifier(d, locale_time, string, i); } function formatShortWeekday(d) { return locale_shortWeekdays[d.getDay()]; } function formatWeekday(d) { return locale_weekdays[d.getDay()]; } function formatShortMonth(d) { return locale_shortMonths[d.getMonth()]; } function formatMonth(d) { return locale_months[d.getMonth()]; } function formatPeriod(d) { return locale_periods[+(d.getHours() >= 12)]; } function formatQuarter(d) { return 1 + ~~(d.getMonth() / 3); } function formatUTCShortWeekday(d) { return locale_shortWeekdays[d.getUTCDay()]; } function formatUTCWeekday(d) { return locale_weekdays[d.getUTCDay()]; } function formatUTCShortMonth(d) { return locale_shortMonths[d.getUTCMonth()]; } function formatUTCMonth(d) { return locale_months[d.getUTCMonth()]; } function formatUTCPeriod(d) { return locale_periods[+(d.getUTCHours() >= 12)]; } function formatUTCQuarter(d) { return 1 + ~~(d.getUTCMonth() / 3); } return { format: function(specifier) { var f = newFormat(specifier += "", formats); f.toString = function() { return specifier; }; return f; }, parse: function(specifier) { var p = newParse(specifier += "", false); p.toString = function() { return specifier; }; return p; }, utcFormat: function(specifier) { var f = newFormat(specifier += "", utcFormats); f.toString = function() { return specifier; }; return f; }, utcParse: function(specifier) { var p = newParse(specifier += "", true); p.toString = function() { return specifier; }; return p; } }; } var pads = { "-": "", "_": " ", "0": "0" }, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g; function pad(value, fill, width) { var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length; return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); } function requote(s) { return s.replace(requoteRe, "\\$&"); } function formatRe(names) { return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i"); } function formatLookup(names) { return new Map(names.map((name, i) => [name.toLowerCase(), i])); } function parseWeekdayNumberSunday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.w = +n[0], i + n[0].length) : -1; } function parseWeekdayNumberMonday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.u = +n[0], i + n[0].length) : -1; } function parseWeekNumberSunday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.U = +n[0], i + n[0].length) : -1; } function parseWeekNumberISO(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.V = +n[0], i + n[0].length) : -1; } function parseWeekNumberMonday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.W = +n[0], i + n[0].length) : -1; } function parseFullYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 4)); return n ? (d.y = +n[0], i + n[0].length) : -1; } function parseYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), i + n[0].length) : -1; } function parseZone(d, string, i) { var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6)); return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1; } function parseQuarter(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1; } function parseMonthNumber(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.m = n[0] - 1, i + n[0].length) : -1; } function parseDayOfMonth(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.d = +n[0], i + n[0].length) : -1; } function parseDayOfYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 3)); return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1; } function parseHour24(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.H = +n[0], i + n[0].length) : -1; } function parseMinutes(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.M = +n[0], i + n[0].length) : -1; } function parseSeconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.S = +n[0], i + n[0].length) : -1; } function parseMilliseconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 3)); return n ? (d.L = +n[0], i + n[0].length) : -1; } function parseMicroseconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 6)); return n ? (d.L = Math.floor(n[0] / 1e3), i + n[0].length) : -1; } function parseLiteralPercent(d, string, i) { var n = percentRe.exec(string.slice(i, i + 1)); return n ? i + n[0].length : -1; } function parseUnixTimestamp(d, string, i) { var n = numberRe.exec(string.slice(i)); return n ? (d.Q = +n[0], i + n[0].length) : -1; } function parseUnixTimestampSeconds(d, string, i) { var n = numberRe.exec(string.slice(i)); return n ? (d.s = +n[0], i + n[0].length) : -1; } function formatDayOfMonth(d, p) { return pad(d.getDate(), p, 2); } function formatHour24(d, p) { return pad(d.getHours(), p, 2); } function formatHour12(d, p) { return pad(d.getHours() % 12 || 12, p, 2); } function formatDayOfYear(d, p) { return pad(1 + timeDay.count(timeYear(d), d), p, 3); } function formatMilliseconds(d, p) { return pad(d.getMilliseconds(), p, 3); } function formatMicroseconds(d, p) { return formatMilliseconds(d, p) + "000"; } function formatMonthNumber(d, p) { return pad(d.getMonth() + 1, p, 2); } function formatMinutes(d, p) { return pad(d.getMinutes(), p, 2); } function formatSeconds(d, p) { return pad(d.getSeconds(), p, 2); } function formatWeekdayNumberMonday(d) { var day = d.getDay(); return day === 0 ? 7 : day; } function formatWeekNumberSunday(d, p) { return pad(timeSunday.count(timeYear(d) - 1, d), p, 2); } function dISO(d) { var day = d.getDay(); return day >= 4 || day === 0 ? timeThursday(d) : timeThursday.ceil(d); } function formatWeekNumberISO(d, p) { d = dISO(d); return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2); } function formatWeekdayNumberSunday(d) { return d.getDay(); } function formatWeekNumberMonday(d, p) { return pad(timeMonday.count(timeYear(d) - 1, d), p, 2); } function formatYear(d, p) { return pad(d.getFullYear() % 100, p, 2); } function formatYearISO(d, p) { d = dISO(d); return pad(d.getFullYear() % 100, p, 2); } function formatFullYear(d, p) { return pad(d.getFullYear() % 1e4, p, 4); } function formatFullYearISO(d, p) { var day = d.getDay(); d = day >= 4 || day === 0 ? timeThursday(d) : timeThursday.ceil(d); return pad(d.getFullYear() % 1e4, p, 4); } function formatZone(d) { var z = d.getTimezoneOffset(); return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2); } function formatUTCDayOfMonth(d, p) { return pad(d.getUTCDate(), p, 2); } function formatUTCHour24(d, p) { return pad(d.getUTCHours(), p, 2); } function formatUTCHour12(d, p) { return pad(d.getUTCHours() % 12 || 12, p, 2); } function formatUTCDayOfYear(d, p) { return pad(1 + utcDay.count(utcYear(d), d), p, 3); } function formatUTCMilliseconds(d, p) { return pad(d.getUTCMilliseconds(), p, 3); } function formatUTCMicroseconds(d, p) { return formatUTCMilliseconds(d, p) + "000"; } function formatUTCMonthNumber(d, p) { return pad(d.getUTCMonth() + 1, p, 2); } function formatUTCMinutes(d, p) { return pad(d.getUTCMinutes(), p, 2); } function formatUTCSeconds(d, p) { return pad(d.getUTCSeconds(), p, 2); } function formatUTCWeekdayNumberMonday(d) { var dow = d.getUTCDay(); return dow === 0 ? 7 : dow; } function formatUTCWeekNumberSunday(d, p) { return pad(utcSunday.count(utcYear(d) - 1, d), p, 2); } function UTCdISO(d) { var day = d.getUTCDay(); return day >= 4 || day === 0 ? utcThursday(d) : utcThursday.ceil(d); } function formatUTCWeekNumberISO(d, p) { d = UTCdISO(d); return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2); } function formatUTCWeekdayNumberSunday(d) { return d.getUTCDay(); } function formatUTCWeekNumberMonday(d, p) { return pad(utcMonday.count(utcYear(d) - 1, d), p, 2); } function formatUTCYear(d, p) { return pad(d.getUTCFullYear() % 100, p, 2); } function formatUTCYearISO(d, p) { d = UTCdISO(d); return pad(d.getUTCFullYear() % 100, p, 2); } function formatUTCFullYear(d, p) { return pad(d.getUTCFullYear() % 1e4, p, 4); } function formatUTCFullYearISO(d, p) { var day = d.getUTCDay(); d = day >= 4 || day === 0 ? utcThursday(d) : utcThursday.ceil(d); return pad(d.getUTCFullYear() % 1e4, p, 4); } function formatUTCZone() { return "+0000"; } function formatLiteralPercent() { return "%"; } function formatUnixTimestamp(d) { return +d; } function formatUnixTimestampSeconds(d) { return Math.floor(+d / 1e3); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-time-format-npm-4.1.0-7f352c4634-10c0.zip/node_modules/d3-time-format/src/defaultLocale.js var locale; var timeFormat; var utcFormat; defaultLocale({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", periods: ["AM", "PM"], days: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], shortDays: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], months: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], shortMonths: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] }); function defaultLocale(definition) { locale = formatLocale(definition); timeFormat = locale.format; locale.parse; utcFormat = locale.utcFormat; locale.utcParse; return locale; } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/time.js function date(t) { return new Date(t); } function number(t) { return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t); } function calendar(ticks, tickInterval, year, month, week, day, hour, minute, second, format) { var scale = continuous(), invert = scale.invert, domain = scale.domain; var formatMillisecond = format(".%L"), formatSecond = format(":%S"), formatMinute = format("%I:%M"), formatHour = format("%I %p"), formatDay = format("%a %d"), formatWeek = format("%b %d"), formatMonth = format("%B"), formatYear = format("%Y"); function tickFormat(date) { return (second(date) < date ? formatMillisecond : minute(date) < date ? formatSecond : hour(date) < date ? formatMinute : day(date) < date ? formatHour : month(date) < date ? week(date) < date ? formatDay : formatWeek : year(date) < date ? formatMonth : formatYear)(date); } scale.invert = function(y) { return new Date(invert(y)); }; scale.domain = function(_) { return arguments.length ? domain(Array.from(_, number)) : domain().map(date); }; scale.ticks = function(interval) { var d = domain(); return ticks(d[0], d[d.length - 1], interval == null ? 10 : interval); }; scale.tickFormat = function(count, specifier) { return specifier == null ? tickFormat : format(specifier); }; scale.nice = function(interval) { var d = domain(); if (!interval || typeof interval.range !== "function") interval = tickInterval(d[0], d[d.length - 1], interval == null ? 10 : interval); return interval ? domain(nice(d, interval)) : scale; }; scale.copy = function() { return copy$1(scale, calendar(ticks, tickInterval, year, month, week, day, hour, minute, second, format)); }; return scale; } function time() { return initRange.apply(calendar(timeTicks, timeTickInterval, timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute, second, timeFormat).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/utcTime.js function utcTime() { return initRange.apply(calendar(utcTicks, utcTickInterval, utcYear, utcMonth, utcSunday, utcDay, utcHour, utcMinute, second, utcFormat).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/sequential.js function transformer$1() { var x0 = 0, x1 = 1, t0, t1, k10, transform, interpolator = identity$1, clamp = false, unknown; function scale(x) { return x == null || isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? .5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x)); } scale.domain = function(_) { return arguments.length ? ([x0, x1] = _, t0 = transform(x0 = +x0), t1 = transform(x1 = +x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1]; }; scale.clamp = function(_) { return arguments.length ? (clamp = !!_, scale) : clamp; }; scale.interpolator = function(_) { return arguments.length ? (interpolator = _, scale) : interpolator; }; function range(interpolate) { return function(_) { var r0, r1; return arguments.length ? ([r0, r1] = _, interpolator = interpolate(r0, r1), scale) : [interpolator(0), interpolator(1)]; }; } scale.range = range(value_default); scale.rangeRound = range(round_default); scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; return function(t) { transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0); return scale; }; } function copy(source, target) { return target.domain(source.domain()).interpolator(source.interpolator()).clamp(source.clamp()).unknown(source.unknown()); } function sequential() { var scale = linearish(transformer$1()(identity$1)); scale.copy = function() { return copy(scale, sequential()); }; return initInterpolator.apply(scale, arguments); } function sequentialLog() { var scale = loggish(transformer$1()).domain([1, 10]); scale.copy = function() { return copy(scale, sequentialLog()).base(scale.base()); }; return initInterpolator.apply(scale, arguments); } function sequentialSymlog() { var scale = symlogish(transformer$1()); scale.copy = function() { return copy(scale, sequentialSymlog()).constant(scale.constant()); }; return initInterpolator.apply(scale, arguments); } function sequentialPow() { var scale = powish(transformer$1()); scale.copy = function() { return copy(scale, sequentialPow()).exponent(scale.exponent()); }; return initInterpolator.apply(scale, arguments); } function sequentialSqrt() { return sequentialPow.apply(null, arguments).exponent(.5); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/sequentialQuantile.js function sequentialQuantile() { var domain = [], interpolator = identity$1; function scale(x) { if (x != null && !isNaN(x = +x)) return interpolator((bisectRight(domain, x, 1) - 1) / (domain.length - 1)); } scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = []; for (let d of _) if (d != null && !isNaN(d = +d)) domain.push(d); domain.sort(ascending); return scale; }; scale.interpolator = function(_) { return arguments.length ? (interpolator = _, scale) : interpolator; }; scale.range = function() { return domain.map((d, i) => interpolator(i / (domain.length - 1))); }; scale.quantiles = function(n) { return Array.from({ length: n + 1 }, (_, i) => quantile$1(domain, i / n)); }; scale.copy = function() { return sequentialQuantile(interpolator).domain(domain); }; return initInterpolator.apply(scale, arguments); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/d3-scale-npm-4.0.2-d17a53447b-10c0.zip/node_modules/d3-scale/src/diverging.js function transformer() { var x0 = 0, x1 = .5, x2 = 1, s = 1, t0, t1, t2, k10, k21, interpolator = identity$1, transform, clamp = false, unknown; function scale(x) { return isNaN(x = +x) ? unknown : (x = .5 + ((x = +transform(x)) - t1) * (s * x < s * t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x)); } scale.domain = function(_) { return arguments.length ? ([x0, x1, x2] = _, t0 = transform(x0 = +x0), t1 = transform(x1 = +x1), t2 = transform(x2 = +x2), k10 = t0 === t1 ? 0 : .5 / (t1 - t0), k21 = t1 === t2 ? 0 : .5 / (t2 - t1), s = t1 < t0 ? -1 : 1, scale) : [ x0, x1, x2 ]; }; scale.clamp = function(_) { return arguments.length ? (clamp = !!_, scale) : clamp; }; scale.interpolator = function(_) { return arguments.length ? (interpolator = _, scale) : interpolator; }; function range(interpolate) { return function(_) { var r0, r1, r2; return arguments.length ? ([r0, r1, r2] = _, interpolator = piecewise(interpolate, [ r0, r1, r2 ]), scale) : [ interpolator(0), interpolator(.5), interpolator(1) ]; }; } scale.range = range(value_default); scale.rangeRound = range(round_default); scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; return function(t) { transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : .5 / (t1 - t0), k21 = t1 === t2 ? 0 : .5 / (t2 - t1), s = t1 < t0 ? -1 : 1; return scale; }; } function diverging() { var scale = linearish(transformer()(identity$1)); scale.copy = function() { return copy(scale, diverging()); }; return initInterpolator.apply(scale, arguments); } function divergingLog() { var scale = loggish(transformer()).domain([ .1, 1, 10 ]); scale.copy = function() { return copy(scale, divergingLog()).base(scale.base()); }; return initInterpolator.apply(scale, arguments); } function divergingSymlog() { var scale = symlogish(transformer()); scale.copy = function() { return copy(scale, divergingSymlog()).constant(scale.constant()); }; return initInterpolator.apply(scale, arguments); } function divergingPow() { var scale = powish(transformer()); scale.copy = function() { return copy(scale, divergingPow()).exponent(scale.exponent()); }; return initInterpolator.apply(scale, arguments); } function divergingSqrt() { return divergingPow.apply(null, arguments).exponent(.5); } //#endregion //#region ../../AppData/Local/Yarn/Berry/cache/victory-vendor-npm-37.3.6-7dc2baabe5-10c0.zip/node_modules/victory-vendor/es/d3-scale.js var d3_scale_exports = /* @__PURE__ */ __exportAll({ scaleBand: () => band, scaleDiverging: () => diverging, scaleDivergingLog: () => divergingLog, scaleDivergingPow: () => divergingPow, scaleDivergingSqrt: () => divergingSqrt, scaleDivergingSymlog: () => divergingSymlog, scaleIdentity: () => identity, scaleImplicit: () => implicit, scaleLinear: () => linear, scaleLog: () => log, scaleOrdinal: () => ordinal, scalePoint: () => point, scalePow: () => pow, scaleQuantile: () => quantile, scaleQuantize: () => quantize, scaleRadial: () => radial, scaleSequential: () => sequential, scaleSequentialLog: () => sequentialLog, scaleSequentialPow: () => sequentialPow, scaleSequentialQuantile: () => sequentialQuantile, scaleSequentialSqrt: () => sequentialSqrt, scaleSequentialSymlog: () => sequentialSymlog, scaleSqrt: () => sqrt, scaleSymlog: () => symlog, scaleThreshold: () => threshold, scaleTime: () => time, scaleUtc: () => utcTime, tickFormat: () => tickFormat }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js function getD3ScaleFromType(realScaleType) { var scales = d3_scale_exports; if (realScaleType in scales && typeof scales[realScaleType] === "function") return scales[realScaleType](); var name = "scale".concat(upperFirst(realScaleType)); if (name in scales && typeof scales[name] === "function") return scales[name](); } /** * Converts external scale definition into internal RechartsScale definition. * @param scale custom function scale - if you have the `string` from outside, use `combineRealScaleType` first which will validate it and return RechartsScaleType or undefined * @param axisDomain * @param axisRange */ function combineConfiguredScaleInternal(scale, axisDomain, axisRange) { if (typeof scale === "function") return scale.copy().domain(axisDomain).range(axisRange); if (scale == null) return; var d3ScaleFunction = getD3ScaleFromType(scale); if (d3ScaleFunction == null) return; d3ScaleFunction.domain(axisDomain).range(axisRange); return d3ScaleFunction; } function combineConfiguredScale(axis, realScaleType, axisDomain, axisRange) { if (axisDomain == null || axisRange == null) return; if (typeof axis.scale === "function") return combineConfiguredScaleInternal(axis.scale, axisDomain, axisRange); return combineConfiguredScaleInternal(realScaleType, axisDomain, axisRange); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js function getD3ScaleName(name) { return "scale".concat(upperFirst(name)); } function isSupportedScaleName(name) { return getD3ScaleName(name) in d3_scale_exports; } var combineRealScaleType = (axisConfig, hasBar, chartType) => { if (axisConfig == null) return; var { scale, type } = axisConfig; if (scale === "auto") { if (type === "category" && chartType && (chartType.indexOf("LineChart") >= 0 || chartType.indexOf("AreaChart") >= 0 || chartType.indexOf("ComposedChart") >= 0 && !hasBar)) return "point"; if (type === "category") return "band"; return "linear"; } if (typeof scale === "string") return isSupportedScaleName(scale) ? scale : "point"; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/scale/createCategoricalInverse.js /** * Binary search to find the index where x would fit in array a. * Works for arrays that are sorted both ascending and descending. * * Unlike d3.bisect, this implementation handles both ascending and descending arrays. * * @param haystack Sorted array of numbers * @param needle Number to find the insertion index for * @returns Index where x would fit in array a */ function bisect(haystack, needle) { var lo = 0; var hi = haystack.length; var ascending = haystack[0] < haystack[haystack.length - 1]; while (lo < hi) { var mid = Math.floor((lo + hi) / 2); if (ascending ? haystack[mid] < needle : haystack[mid] > needle) lo = mid + 1; else hi = mid; } return lo; } /** * Computes an inverse scale function for categorical/ordinal scales. * Uses bisect to find the closest domain value for a given pixel coordinate. */ function createCategoricalInverse(scale, allDataPointsOnAxis) { if (!scale) return; var domain = allDataPointsOnAxis !== null && allDataPointsOnAxis !== void 0 ? allDataPointsOnAxis : scale.domain(); var pixelPositions = domain.map((d) => { var _scale; return (_scale = scale(d)) !== null && _scale !== void 0 ? _scale : 0; }); var range = scale.range(); if (domain.length === 0 || range.length < 2) return; return (pixelValue) => { var _pixelPositions, _pixelPositions$index; var index = bisect(pixelPositions, pixelValue); if (index <= 0) return domain[0]; if (index >= domain.length) return domain[domain.length - 1]; var leftPixel = (_pixelPositions = pixelPositions[index - 1]) !== null && _pixelPositions !== void 0 ? _pixelPositions : 0; var rightPixel = (_pixelPositions$index = pixelPositions[index]) !== null && _pixelPositions$index !== void 0 ? _pixelPositions$index : 0; if (Math.abs(pixelValue - leftPixel) <= Math.abs(pixelValue - rightPixel)) return domain[index - 1]; return domain[index]; }; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js function combineInverseScaleFunction(configuredScale) { if (configuredScale == null) return; if ("invert" in configuredScale && typeof configuredScale.invert === "function") return configuredScale.invert.bind(configuredScale); return createCategoricalInverse(configuredScale, void 0); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/axisSelectors.js function ownKeys$54(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$54(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$54(Object(t), !0).forEach(function(r) { _defineProperty$56(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$54(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$56(e, r, t) { return (r = _toPropertyKey$56(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$56(t) { var i = _toPrimitive$56(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$56(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var defaultNumericDomain = [0, "auto"]; /** * If an axis is not explicitly defined as an element, * we still need to render something in the chart and we need * some object to hold the domain and default settings. */ var implicitXAxis = { allowDataOverflow: false, allowDecimals: true, allowDuplicatedCategory: true, angle: 0, dataKey: void 0, domain: void 0, height: 30, hide: true, id: 0, includeHidden: false, interval: "preserveEnd", minTickGap: 5, mirror: false, name: void 0, orientation: "bottom", padding: { left: 0, right: 0 }, reversed: false, scale: "auto", tick: true, tickCount: 5, tickFormatter: void 0, ticks: void 0, type: "category", unit: void 0, niceTicks: "auto" }; var selectXAxisSettingsNoDefaults = (state, axisId) => { return state.cartesianAxis.xAxis[axisId]; }; var selectXAxisSettings = (state, axisId) => { var axis = selectXAxisSettingsNoDefaults(state, axisId); if (axis == null) return implicitXAxis; return axis; }; /** * If an axis is not explicitly defined as an element, * we still need to render something in the chart and we need * some object to hold the domain and default settings. */ var implicitYAxis = { allowDataOverflow: false, allowDecimals: true, allowDuplicatedCategory: true, angle: 0, dataKey: void 0, domain: defaultNumericDomain, hide: true, id: 0, includeHidden: false, interval: "preserveEnd", minTickGap: 5, mirror: false, name: void 0, orientation: "left", padding: { top: 0, bottom: 0 }, reversed: false, scale: "auto", tick: true, tickCount: 5, tickFormatter: void 0, ticks: void 0, type: "number", unit: void 0, niceTicks: "auto", width: 60 }; var selectYAxisSettingsNoDefaults = (state, axisId) => { return state.cartesianAxis.yAxis[axisId]; }; var selectYAxisSettings = (state, axisId) => { var axis = selectYAxisSettingsNoDefaults(state, axisId); if (axis == null) return implicitYAxis; return axis; }; var implicitZAxis = { domain: [0, "auto"], includeHidden: false, reversed: false, allowDataOverflow: false, allowDuplicatedCategory: false, dataKey: void 0, id: 0, name: "", range: [64, 64], scale: "auto", type: "number", unit: "" }; var selectZAxisSettings = (state, axisId) => { var axis = state.cartesianAxis.zAxis[axisId]; if (axis == null) return implicitZAxis; return axis; }; var selectBaseAxis = (state, axisType, axisId) => { switch (axisType) { case "xAxis": return selectXAxisSettings(state, axisId); case "yAxis": return selectYAxisSettings(state, axisId); case "zAxis": return selectZAxisSettings(state, axisId); case "angleAxis": return selectAngleAxis(state, axisId); case "radiusAxis": return selectRadiusAxis(state, axisId); default: throw new Error("Unexpected axis type: ".concat(axisType)); } }; var selectCartesianAxisSettings = (state, axisType, axisId) => { switch (axisType) { case "xAxis": return selectXAxisSettings(state, axisId); case "yAxis": return selectYAxisSettings(state, axisId); default: throw new Error("Unexpected axis type: ".concat(axisType)); } }; /** * Selects either an X or Y axis. Doesn't work with Z axis - for that, instead use selectBaseAxis. * @param state Root state * @param axisType xAxis | yAxis * @param axisId xAxisId | yAxisId * @returns axis settings object */ var selectRenderableAxisSettings = (state, axisType, axisId) => { switch (axisType) { case "xAxis": return selectXAxisSettings(state, axisId); case "yAxis": return selectYAxisSettings(state, axisId); case "angleAxis": return selectAngleAxis(state, axisId); case "radiusAxis": return selectRadiusAxis(state, axisId); default: throw new Error("Unexpected axis type: ".concat(axisType)); } }; /** * @param state RechartsRootState * @return boolean true if there is at least one Bar or RadialBar */ var selectHasBar = (state) => state.graphicalItems.cartesianItems.some((item) => item.type === "bar") || state.graphicalItems.polarItems.some((item) => item.type === "radialBar"); /** * Filters CartesianGraphicalItemSettings by the relevant axis ID * @param axisType 'xAxis' | 'yAxis' | 'zAxis' | 'radiusAxis' | 'angleAxis' * @param axisId from props, defaults to 0 * * @returns Predicate function that return true for CartesianGraphicalItemSettings that are relevant to the specified axis */ function itemAxisPredicate(axisType, axisId) { return (item) => { switch (axisType) { case "xAxis": return "xAxisId" in item && item.xAxisId === axisId; case "yAxis": return "yAxisId" in item && item.yAxisId === axisId; case "zAxis": return "zAxisId" in item && item.zAxisId === axisId; case "angleAxis": return "angleAxisId" in item && item.angleAxisId === axisId; case "radiusAxis": return "radiusAxisId" in item && item.radiusAxisId === axisId; default: return false; } }; } var selectUnfilteredCartesianItems = (state) => state.graphicalItems.cartesianItems; var selectAxisPredicate$1 = createSelector([pickAxisType, pickAxisId], itemAxisPredicate); var combineGraphicalItemsSettings = (graphicalItems, axisSettings, axisPredicate) => graphicalItems.filter(axisPredicate).filter((item) => { if ((axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.includeHidden) === true) return true; return !item.hide; }); var selectCartesianItemsSettings = createSelector([ selectUnfilteredCartesianItems, selectBaseAxis, selectAxisPredicate$1 ], combineGraphicalItemsSettings, { memoizeOptions: { resultEqualityCheck: emptyArraysAreEqualCheck } }); var selectStackedCartesianItemsSettings = createSelector([selectCartesianItemsSettings], (cartesianItems) => { return cartesianItems.filter((item) => item.type === "area" || item.type === "bar").filter(isStacked); }); var filterGraphicalNotStackedItems = (cartesianItems) => cartesianItems.filter((item) => !("stackId" in item) || item.stackId === void 0); var selectCartesianItemsSettingsExceptStacked = createSelector([selectCartesianItemsSettings], filterGraphicalNotStackedItems); var combineGraphicalItemsData = (cartesianItems) => cartesianItems.map((item) => item.data).filter(Boolean).flat(1); /** * Returns true if at least one graphical item does not define its own `data` prop * and therefore relies on the chart-level data. * This is used to decide whether to merge chart-level data into the axis domain calculation. */ var selectAnyCartesianItemsUsesChartData = createSelector([selectCartesianItemsSettings], (items) => items.some((item) => !item.data)); /** * This is a "cheap" selector - it returns the data but doesn't iterate them, so it is not sensitive on the array length. * Also does not apply dataKey yet. * @param state RechartsRootState * @returns data defined on the chart graphical items, such as Line or Scatter or Pie, and filtered with appropriate dataKey */ var selectCartesianGraphicalItemsData = createSelector([selectCartesianItemsSettings], combineGraphicalItemsData, { memoizeOptions: { resultEqualityCheck: emptyArraysAreEqualCheck } }); var combineDisplayedData = (graphicalItemsData, _ref) => { var { chartData = [], dataStartIndex, dataEndIndex } = _ref; if (graphicalItemsData.length > 0) return graphicalItemsData; return chartData.slice(dataStartIndex, dataEndIndex + 1); }; /** * This selector will return all data there is in the chart: graphical items, chart root, all together. * Useful for figuring out an axis domain (because that needs to know of everything), * not useful for rendering individual graphical elements (because they need to know which data is theirs and which is not). * * This function will discard the original indexes, so it is also not useful for anything that depends on ordering. */ var selectDisplayedData$1 = createSelector([selectCartesianGraphicalItemsData, selectChartDataWithIndexesIfNotInPanoramaPosition4], combineDisplayedData); var combineAppliedValues = (data, axisSettings, items) => { if ((axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey) != null) return data.map((item) => ({ value: getValueByDataKey(item, axisSettings.dataKey) })); if (items.length > 0) return items.map((item) => item.dataKey).flatMap((dataKey) => data.map((entry) => ({ value: getValueByDataKey(entry, dataKey) }))); return data.map((entry) => ({ value: entry })); }; /** * Computes applied values from graphical items data plus, when needed, chart-level data. * * When at least one graphical item has no own `data` (it relies on chart root data) AND the axis has a `dataKey`, * AND there are other items that do have their own data (meaning `displayedData` only contains graphical items data, * not chart root data), we also include chart root data values so the axis domain covers all categories, * including those only present in the chart root data but not in any graphical item's own data. * * Values from chart root data that don't match the axis dataKey (undefined) are excluded. */ var combineAllAppliedValues = (displayedData, axisSettings, items, _ref2, anyItemUsesChartData, graphicalItemsData) => { var { chartData = [], dataStartIndex, dataEndIndex } = _ref2; var appliedValues = combineAppliedValues(displayedData, axisSettings, items); if (anyItemUsesChartData && (axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey) != null && graphicalItemsData.length > 0) return [...chartData.slice(dataStartIndex, dataEndIndex + 1).map((item) => ({ value: getValueByDataKey(item, axisSettings.dataKey) })).filter((av) => av.value != null), ...appliedValues]; return appliedValues; }; /** * This selector will return all values with the appropriate dataKey applied on them. * Which dataKey is appropriate depends on where it is defined. * * This is an expensive selector - it will iterate all data and compute their value using the provided dataKey. */ var selectAllAppliedValues = createSelector([ selectDisplayedData$1, selectBaseAxis, selectCartesianItemsSettings, selectChartDataWithIndexesIfNotInPanoramaPosition4, selectAnyCartesianItemsUsesChartData, selectCartesianGraphicalItemsData ], combineAllAppliedValues); function makeNumber(val) { if (isNumOrStr(val) || val instanceof Date) { var n = Number(val); if (isWellBehavedNumber(n)) return n; } } function makeDomain(val) { if (Array.isArray(val)) { var attempt = [makeNumber(val[0]), makeNumber(val[1])]; if (isWellFormedNumberDomain(attempt)) return attempt; return; } var n = makeNumber(val); if (n == null) return; return [n, n]; } function onlyAllowNumbers(data) { return data.map(makeNumber).filter(isNotNil); } function sortBy$1(a, b) { var aNum = makeNumber(a); var bNum = makeNumber(b); if (aNum == null && bNum == null) return 0; if (aNum == null) return -1; if (bNum == null) return 1; return aNum - bNum; } var selectSortedDataPoints = createSelector([selectAllAppliedValues], (appliedData) => { return appliedData === null || appliedData === void 0 ? void 0 : appliedData.map((item) => item.value).sort(sortBy$1); }); function isErrorBarRelevantForAxisType(axisType, errorBar) { switch (axisType) { case "xAxis": return errorBar.direction === "x"; case "yAxis": return errorBar.direction === "y"; default: return false; } } /** * @param entry One item in the 'data' array. Could be anything really - this is defined externally. This is the raw, before dataKey application * @param appliedValue This is the result of applying the 'main' dataKey on the `entry`. * @param relevantErrorBars Error bars that are relevant for the current axis and layout and all that. * @return either undefined or an array of ErrorValue */ function getErrorDomainByDataKey(entry, appliedValue, relevantErrorBars) { if (!relevantErrorBars) return []; if (!relevantErrorBars.length) return []; var appliedNumericValue; if (typeof appliedValue === "number" && !isNan(appliedValue)) appliedNumericValue = appliedValue; else if (Array.isArray(appliedValue)) { var numericRangeValues = onlyAllowNumbers(appliedValue); if (numericRangeValues.length > 0) appliedNumericValue = Math.max(...numericRangeValues); } if (appliedNumericValue == null) return []; return onlyAllowNumbers(relevantErrorBars.flatMap((eb) => { var errorValue = getValueByDataKey(entry, eb.dataKey); var lowBound, highBound; if (Array.isArray(errorValue)) [lowBound, highBound] = errorValue; else lowBound = highBound = errorValue; if (!isWellBehavedNumber(lowBound) || !isWellBehavedNumber(highBound)) return; return [appliedNumericValue - lowBound, appliedNumericValue + highBound]; })); } var selectTooltipAxis = (state) => { return selectRenderableAxisSettings(state, selectTooltipAxisType(state), selectTooltipAxisId(state)); }; var selectTooltipAxisDataKey = createSelector([selectTooltipAxis], (axis) => axis === null || axis === void 0 ? void 0 : axis.dataKey); var selectDisplayedStackedData = createSelector([ selectStackedCartesianItemsSettings, selectChartDataWithIndexesIfNotInPanoramaPosition4, selectTooltipAxis ], combineDisplayedStackedData); var combineStackGroups = (displayedData, items, stackOffsetType, reverseStackOrder) => { var itemsGroup = items.reduce((acc, item) => { if (item.stackId == null) return acc; var stack = acc[item.stackId]; if (stack == null) stack = []; stack.push(item); acc[item.stackId] = stack; return acc; }, {}); return Object.fromEntries(Object.entries(itemsGroup).map((_ref3) => { var [stackId, graphicalItems] = _ref3; var orderedGraphicalItems = reverseStackOrder ? [...graphicalItems].reverse() : graphicalItems; return [stackId, { stackedData: getStackedData(displayedData, orderedGraphicalItems.map(getStackSeriesIdentifier), stackOffsetType), graphicalItems: orderedGraphicalItems }]; })); }; /** * Stack groups are groups of graphical items that stack on each other. * Stack is a function of axis type (X, Y), axis ID, and stack ID. * Graphical items that do not have a stack ID are not going to be present in stack groups. */ var selectStackGroups$1 = createSelector([ selectDisplayedStackedData, selectStackedCartesianItemsSettings, selectStackOffsetType, selectReverseStackOrder ], combineStackGroups); var combineDomainOfStackGroups = (stackGroups, _ref4, axisType, domainFromUserPreference) => { var { dataStartIndex, dataEndIndex } = _ref4; if (domainFromUserPreference != null) return; if (axisType === "zAxis") return; var domainOfStackGroups = getDomainOfStackGroups(stackGroups, dataStartIndex, dataEndIndex); if (domainOfStackGroups != null && domainOfStackGroups[0] === 0 && domainOfStackGroups[1] === 0) return; return domainOfStackGroups; }; var selectAllowsDataOverflow = createSelector([selectBaseAxis], (axisSettings) => axisSettings.allowDataOverflow); var getDomainDefinition = (axisSettings) => { var _axisSettings$domain; if (axisSettings == null || !("domain" in axisSettings)) return defaultNumericDomain; if (axisSettings.domain != null) return axisSettings.domain; if ("ticks" in axisSettings && axisSettings.ticks != null) { if (axisSettings.type === "number") { var allValues = onlyAllowNumbers(axisSettings.ticks); return [Math.min(...allValues), Math.max(...allValues)]; } if (axisSettings.type === "category") return axisSettings.ticks.map(String); } return (_axisSettings$domain = axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.domain) !== null && _axisSettings$domain !== void 0 ? _axisSettings$domain : defaultNumericDomain; }; var selectDomainDefinition = createSelector([selectBaseAxis], getDomainDefinition); /** * Under certain circumstances, we can determine the domain without looking at the data at all. * This is the case when the domain is explicitly specified as numbers, or when it is specified * as 'auto' or 'dataMin'/'dataMax' and data overflow is not allowed. * * In that case, this function will return the domain, otherwise it returns undefined. * * This is an optimization to avoid unnecessary data processing. * @param state * @param axisType * @param axisId * @param isPanorama */ var selectDomainFromUserPreference = createSelector([selectDomainDefinition, selectAllowsDataOverflow], numericalDomainSpecifiedWithoutRequiringData); var selectDomainOfStackGroups = createSelector([ selectStackGroups$1, selectChartDataWithIndexes, pickAxisType, selectDomainFromUserPreference ], combineDomainOfStackGroups, { memoizeOptions: { resultEqualityCheck: numberDomainEqualityCheck } }); var selectAllErrorBarSettings = (state) => state.errorBars; var combineRelevantErrorBarSettings = (cartesianItemsSettings, allErrorBarSettings, axisType) => { return cartesianItemsSettings.flatMap((item) => { return allErrorBarSettings[item.id]; }).filter(Boolean).filter((e) => { return isErrorBarRelevantForAxisType(axisType, e); }); }; var mergeDomains = function mergeDomains() { for (var _len = arguments.length, domains = new Array(_len), _key = 0; _key < _len; _key++) domains[_key] = arguments[_key]; var allDomains = domains.filter(Boolean); if (allDomains.length === 0) return; var allValues = allDomains.flat(); return [Math.min(...allValues), Math.max(...allValues)]; }; var combineDomainOfAllAppliedNumericalValuesIncludingErrorValues = function combineDomainOfAllAppliedNumericalValuesIncludingErrorValues(displayedData, axisSettings, items, errorBars, axisType) { var chartDataSlice = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : []; var lowerEnd, upperEnd; if (items.length > 0) items.forEach((item) => { var _errorBars$item$id; var itemData = item.data != null ? [...item.data] : chartDataSlice; var relevantErrorBars = (_errorBars$item$id = errorBars[item.id]) === null || _errorBars$item$id === void 0 ? void 0 : _errorBars$item$id.filter((errorBar) => isErrorBarRelevantForAxisType(axisType, errorBar)); itemData.forEach((entry) => { var _axisSettings$dataKey; var valueByDataKey = getValueByDataKey(entry, (_axisSettings$dataKey = axisSettings.dataKey) !== null && _axisSettings$dataKey !== void 0 ? _axisSettings$dataKey : item.dataKey); var errorDomain = getErrorDomainByDataKey(entry, valueByDataKey, relevantErrorBars); if (errorDomain.length >= 2) { var localLower = Math.min(...errorDomain); var localUpper = Math.max(...errorDomain); if (lowerEnd == null || localLower < lowerEnd) lowerEnd = localLower; if (upperEnd == null || localUpper > upperEnd) upperEnd = localUpper; } var dataValueDomain = makeDomain(valueByDataKey); if (dataValueDomain != null) { lowerEnd = lowerEnd == null ? dataValueDomain[0] : Math.min(lowerEnd, dataValueDomain[0]); upperEnd = upperEnd == null ? dataValueDomain[1] : Math.max(upperEnd, dataValueDomain[1]); } }); }); if ((axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.dataKey) != null && items.length === 0) displayedData.forEach((item) => { var dataValueDomain = makeDomain(getValueByDataKey(item, axisSettings.dataKey)); if (dataValueDomain != null) { lowerEnd = lowerEnd == null ? dataValueDomain[0] : Math.min(lowerEnd, dataValueDomain[0]); upperEnd = upperEnd == null ? dataValueDomain[1] : Math.max(upperEnd, dataValueDomain[1]); } }); if (isWellBehavedNumber(lowerEnd) && isWellBehavedNumber(upperEnd)) return [lowerEnd, upperEnd]; }; var selectDomainOfAllAppliedNumericalValuesIncludingErrorValues$1 = createSelector([ selectDisplayedData$1, selectBaseAxis, selectCartesianItemsSettingsExceptStacked, selectAllErrorBarSettings, pickAxisType, selectChartDataSliceIfNotInPanorama ], combineDomainOfAllAppliedNumericalValuesIncludingErrorValues, { memoizeOptions: { resultEqualityCheck: numberDomainEqualityCheck } }); function onlyAllowNumbersAndStringsAndDates(item) { var { value } = item; if (isNumOrStr(value) || value instanceof Date) return value; } var computeDomainOfTypeCategory = (allDataSquished, axisSettings, isCategorical) => { var categoricalDomain = allDataSquished.map(onlyAllowNumbersAndStringsAndDates).filter((v) => v != null); if (isCategorical && (axisSettings.dataKey == null || axisSettings.allowDuplicatedCategory && hasDuplicate(categoricalDomain))) return (0, import_range.default)(0, allDataSquished.length); if (axisSettings.allowDuplicatedCategory) return categoricalDomain; return Array.from(new Set(categoricalDomain)); }; var selectReferenceDots = (state) => state.referenceElements.dots; var filterReferenceElements = (elements, axisType, axisId) => { return elements.filter((el) => el.ifOverflow === "extendDomain").filter((el) => { if (axisType === "xAxis") return el.xAxisId === axisId; return el.yAxisId === axisId; }); }; var selectReferenceDotsByAxis = createSelector([ selectReferenceDots, pickAxisType, pickAxisId ], filterReferenceElements); var selectReferenceAreas = (state) => state.referenceElements.areas; var selectReferenceAreasByAxis = createSelector([ selectReferenceAreas, pickAxisType, pickAxisId ], filterReferenceElements); var selectReferenceLines = (state) => state.referenceElements.lines; var selectReferenceLinesByAxis = createSelector([ selectReferenceLines, pickAxisType, pickAxisId ], filterReferenceElements); var combineDotsDomain = (dots, axisType) => { if (dots == null) return; var allCoords = onlyAllowNumbers(dots.map((dot) => axisType === "xAxis" ? dot.x : dot.y)); if (allCoords.length === 0) return; return [Math.min(...allCoords), Math.max(...allCoords)]; }; var selectReferenceDotsDomain = createSelector(selectReferenceDotsByAxis, pickAxisType, combineDotsDomain); var combineAreasDomain = (areas, axisType) => { if (areas == null) return; var allCoords = onlyAllowNumbers(areas.flatMap((area) => [axisType === "xAxis" ? area.x1 : area.y1, axisType === "xAxis" ? area.x2 : area.y2])); if (allCoords.length === 0) return; return [Math.min(...allCoords), Math.max(...allCoords)]; }; var selectReferenceAreasDomain = createSelector([selectReferenceAreasByAxis, pickAxisType], combineAreasDomain); function extractXCoordinates(line) { var _line$segment; if (line.x != null) return onlyAllowNumbers([line.x]); var segmentCoordinates = (_line$segment = line.segment) === null || _line$segment === void 0 ? void 0 : _line$segment.map((s) => s.x); if (segmentCoordinates == null || segmentCoordinates.length === 0) return []; return onlyAllowNumbers(segmentCoordinates); } function extractYCoordinates(line) { var _line$segment2; if (line.y != null) return onlyAllowNumbers([line.y]); var segmentCoordinates = (_line$segment2 = line.segment) === null || _line$segment2 === void 0 ? void 0 : _line$segment2.map((s) => s.y); if (segmentCoordinates == null || segmentCoordinates.length === 0) return []; return onlyAllowNumbers(segmentCoordinates); } var combineLinesDomain = (lines, axisType) => { if (lines == null) return; var allCoords = lines.flatMap((line) => axisType === "xAxis" ? extractXCoordinates(line) : extractYCoordinates(line)); if (allCoords.length === 0) return; return [Math.min(...allCoords), Math.max(...allCoords)]; }; var selectReferenceElementsDomain = createSelector(selectReferenceDotsDomain, createSelector([selectReferenceLinesByAxis, pickAxisType], combineLinesDomain), selectReferenceAreasDomain, (dotsDomain, linesDomain, areasDomain) => { return mergeDomains(dotsDomain, areasDomain, linesDomain); }); var combineNumericalDomain = (axisSettings, domainDefinition, domainFromUserPreference, domainOfStackGroups, dataAndErrorBarsDomain, referenceElementsDomain, layout, axisType) => { if (domainFromUserPreference != null) return domainFromUserPreference; return parseNumericalUserDomain(domainDefinition, layout === "vertical" && axisType === "xAxis" || layout === "horizontal" && axisType === "yAxis" ? mergeDomains(domainOfStackGroups, referenceElementsDomain, dataAndErrorBarsDomain) : mergeDomains(referenceElementsDomain, dataAndErrorBarsDomain), axisSettings.allowDataOverflow); }; var selectNumericalDomain = createSelector([ selectBaseAxis, selectDomainDefinition, selectDomainFromUserPreference, selectDomainOfStackGroups, selectDomainOfAllAppliedNumericalValuesIncludingErrorValues$1, selectReferenceElementsDomain, selectChartLayout, pickAxisType ], combineNumericalDomain, { memoizeOptions: { resultEqualityCheck: numberDomainEqualityCheck } }); /** * Expand by design maps everything between 0 and 1, * there is nothing to compute. * See https://d3js.org/d3-shape/stack#stack-offsets */ var expandDomain = [0, 1]; var combineAxisDomain = (axisSettings, layout, displayedData, allAppliedValues, stackOffsetType, axisType, numericalDomain) => { if ((axisSettings == null || displayedData == null || displayedData.length === 0) && numericalDomain === void 0) return; var { dataKey, type } = axisSettings; var isCategorical = isCategoricalAxis(layout, axisType); if (isCategorical && dataKey == null) { var _displayedData$length; return (0, import_range.default)(0, (_displayedData$length = displayedData === null || displayedData === void 0 ? void 0 : displayedData.length) !== null && _displayedData$length !== void 0 ? _displayedData$length : 0); } if (type === "category") return computeDomainOfTypeCategory(allAppliedValues, axisSettings, isCategorical); if (stackOffsetType === "expand" && !isCategorical) return expandDomain; return numericalDomain; }; var selectAxisDomain = createSelector([ selectBaseAxis, selectChartLayout, selectDisplayedData$1, selectAllAppliedValues, selectStackOffsetType, pickAxisType, selectNumericalDomain ], combineAxisDomain); var selectRealScaleType = createSelector([ selectBaseAxis, selectHasBar, selectChartName ], combineRealScaleType); var combineNiceTicks = (axisDomain, axisSettings, realScaleType) => { var { niceTicks } = axisSettings; if (niceTicks === "none") return; var domainDefinition = getDomainDefinition(axisSettings); var hasDomainAutoKeyword = Array.isArray(domainDefinition) && (domainDefinition[0] === "auto" || domainDefinition[1] === "auto"); if ((niceTicks === "snap125" || niceTicks === "adaptive") && axisSettings != null && axisSettings.tickCount && isWellFormedNumberDomain(axisDomain)) { if (hasDomainAutoKeyword) return getNiceTickValues(axisDomain, axisSettings.tickCount, axisSettings.allowDecimals, niceTicks); if (axisSettings.type === "number") return getTickValuesFixedDomain(axisDomain, axisSettings.tickCount, axisSettings.allowDecimals, niceTicks); } if (niceTicks === "auto" && realScaleType === "linear" && axisSettings != null && axisSettings.tickCount) { if (hasDomainAutoKeyword && isWellFormedNumberDomain(axisDomain)) return getNiceTickValues(axisDomain, axisSettings.tickCount, axisSettings.allowDecimals, "adaptive"); if (axisSettings.type === "number" && isWellFormedNumberDomain(axisDomain)) return getTickValuesFixedDomain(axisDomain, axisSettings.tickCount, axisSettings.allowDecimals, "adaptive"); } }; var selectNiceTicks = createSelector([ selectAxisDomain, selectRenderableAxisSettings, selectRealScaleType ], combineNiceTicks); var combineAxisDomainWithNiceTicks = (axisSettings, domain, niceTicks, axisType) => { if (axisType !== "angleAxis" && (axisSettings === null || axisSettings === void 0 ? void 0 : axisSettings.type) === "number" && isWellFormedNumberDomain(domain) && Array.isArray(niceTicks) && niceTicks.length > 0) { var _niceTicks$, _niceTicks; var minFromDomain = domain[0]; var minFromTicks = (_niceTicks$ = niceTicks[0]) !== null && _niceTicks$ !== void 0 ? _niceTicks$ : 0; var maxFromDomain = domain[1]; var maxFromTicks = (_niceTicks = niceTicks[niceTicks.length - 1]) !== null && _niceTicks !== void 0 ? _niceTicks : 0; return [Math.min(minFromDomain, minFromTicks), Math.max(maxFromDomain, maxFromTicks)]; } return domain; }; var selectAxisDomainIncludingNiceTicks = createSelector([ selectBaseAxis, selectAxisDomain, selectNiceTicks, pickAxisType ], combineAxisDomainWithNiceTicks); var selectCalculatedPadding = createSelector(createSelector(selectAllAppliedValues, selectBaseAxis, (allDataSquished, axisSettings) => { if (!axisSettings || axisSettings.type !== "number") return; var smallestDistanceBetweenValues = Infinity; var sortedValues = Array.from(onlyAllowNumbers(allDataSquished.map((d) => d.value))).sort((a, b) => a - b); var first = sortedValues[0]; var last = sortedValues[sortedValues.length - 1]; if (first == null || last == null) return Infinity; var diff = last - first; if (diff === 0) return Infinity; for (var i = 0; i < sortedValues.length - 1; i++) { var curr = sortedValues[i]; var next = sortedValues[i + 1]; if (curr == null || next == null) continue; var distance = next - curr; smallestDistanceBetweenValues = Math.min(smallestDistanceBetweenValues, distance); } return smallestDistanceBetweenValues / diff; }), selectChartLayout, selectBarCategoryGap, selectChartOffsetInternal, (_1, _2, _3, _4, padding) => padding, (smallestDistanceInPercent, layout, barCategoryGap, offset, padding) => { if (!isWellBehavedNumber(smallestDistanceInPercent)) return 0; var rangeWidth = layout === "vertical" ? offset.height : offset.width; if (padding === "gap") return smallestDistanceInPercent * rangeWidth / 2; if (padding === "no-gap") { var gap = getPercentValue(barCategoryGap, smallestDistanceInPercent * rangeWidth); var halfBand = smallestDistanceInPercent * rangeWidth / 2; return halfBand - gap - (halfBand - gap) / rangeWidth * gap; } return 0; }); var selectCalculatedXAxisPadding = (state, axisId, isPanorama) => { var xAxisSettings = selectXAxisSettings(state, axisId); if (xAxisSettings == null || typeof xAxisSettings.padding !== "string") return 0; return selectCalculatedPadding(state, "xAxis", axisId, isPanorama, xAxisSettings.padding); }; var selectCalculatedYAxisPadding = (state, axisId, isPanorama) => { var yAxisSettings = selectYAxisSettings(state, axisId); if (yAxisSettings == null || typeof yAxisSettings.padding !== "string") return 0; return selectCalculatedPadding(state, "yAxis", axisId, isPanorama, yAxisSettings.padding); }; var selectXAxisPadding = createSelector(selectXAxisSettings, selectCalculatedXAxisPadding, (xAxisSettings, calculated) => { var _padding$left, _padding$right; if (xAxisSettings == null) return { left: 0, right: 0 }; var { padding } = xAxisSettings; if (typeof padding === "string") return { left: calculated, right: calculated }; return { left: ((_padding$left = padding.left) !== null && _padding$left !== void 0 ? _padding$left : 0) + calculated, right: ((_padding$right = padding.right) !== null && _padding$right !== void 0 ? _padding$right : 0) + calculated }; }); var selectYAxisPadding = createSelector(selectYAxisSettings, selectCalculatedYAxisPadding, (yAxisSettings, calculated) => { var _padding$top, _padding$bottom; if (yAxisSettings == null) return { top: 0, bottom: 0 }; var { padding } = yAxisSettings; if (typeof padding === "string") return { top: calculated, bottom: calculated }; return { top: ((_padding$top = padding.top) !== null && _padding$top !== void 0 ? _padding$top : 0) + calculated, bottom: ((_padding$bottom = padding.bottom) !== null && _padding$bottom !== void 0 ? _padding$bottom : 0) + calculated }; }); var selectXAxisRange = createSelector([ selectChartOffsetInternal, selectXAxisPadding, selectBrushDimensions, selectBrushSettings, (_state, _axisId, isPanorama) => isPanorama ], (offset, padding, brushDimensions, _ref5, isPanorama) => { var { padding: brushPadding } = _ref5; if (isPanorama) return [brushPadding.left, brushDimensions.width - brushPadding.right]; return [offset.left + padding.left, offset.left + offset.width - padding.right]; }); var selectYAxisRange = createSelector([ selectChartOffsetInternal, selectChartLayout, selectYAxisPadding, selectBrushDimensions, selectBrushSettings, (_state, _axisId, isPanorama) => isPanorama ], (offset, layout, padding, brushDimensions, _ref6, isPanorama) => { var { padding: brushPadding } = _ref6; if (isPanorama) return [brushDimensions.height - brushPadding.bottom, brushPadding.top]; if (layout === "horizontal") return [offset.top + offset.height - padding.bottom, offset.top + padding.top]; return [offset.top + padding.top, offset.top + offset.height - padding.bottom]; }); var selectAxisRange = (state, axisType, axisId, isPanorama) => { var _selectZAxisSettings; switch (axisType) { case "xAxis": return selectXAxisRange(state, axisId, isPanorama); case "yAxis": return selectYAxisRange(state, axisId, isPanorama); case "zAxis": return (_selectZAxisSettings = selectZAxisSettings(state, axisId)) === null || _selectZAxisSettings === void 0 ? void 0 : _selectZAxisSettings.range; case "angleAxis": return selectAngleAxisRange(state); case "radiusAxis": return selectRadiusAxisRange(state, axisId); default: return; } }; var selectAxisRangeWithReverse = createSelector([selectBaseAxis, selectAxisRange], combineAxisRangeWithReverse); var selectConfiguredScale = createSelector([ selectBaseAxis, selectRealScaleType, createSelector([selectRealScaleType, selectAxisDomainIncludingNiceTicks], combineCheckedDomain), selectAxisRangeWithReverse ], combineConfiguredScale); var combineCategoricalDomain = (layout, appliedValues, axis, axisType) => { if (axis == null || axis.dataKey == null) return; var { type, scale } = axis; if (isCategoricalAxis(layout, axisType) && (type === "number" || scale !== "auto")) return appliedValues.map((d) => d.value); }; var selectCategoricalDomain = createSelector([ selectChartLayout, selectAllAppliedValues, selectRenderableAxisSettings, pickAxisType ], combineCategoricalDomain); var selectAxisScale = createSelector([selectConfiguredScale], rechartsScaleFactory); var selectAxisInverseScale = createSelector([selectConfiguredScale], combineInverseScaleFunction); var selectAxisInverseDataSnapScale = createSelector([selectConfiguredScale, selectSortedDataPoints], createCategoricalInverse); createSelector([ selectCartesianItemsSettings, selectAllErrorBarSettings, pickAxisType ], combineRelevantErrorBarSettings); function compareIds(a, b) { if (a.id < b.id) return -1; if (a.id > b.id) return 1; return 0; } var pickAxisOrientation = (_state, orientation) => orientation; var pickMirror = (_state, _orientation, mirror) => mirror; var selectAllXAxesWithOffsetType = createSelector(selectAllXAxes, pickAxisOrientation, pickMirror, (allAxes, orientation, mirror) => allAxes.filter((axis) => axis.orientation === orientation).filter((axis) => axis.mirror === mirror).sort(compareIds)); var selectAllYAxesWithOffsetType = createSelector(selectAllYAxes, pickAxisOrientation, pickMirror, (allAxes, orientation, mirror) => allAxes.filter((axis) => axis.orientation === orientation).filter((axis) => axis.mirror === mirror).sort(compareIds)); var getXAxisSize = (offset, axisSettings) => { return { width: offset.width, height: axisSettings.height }; }; var getYAxisSize = (offset, axisSettings) => { return { width: typeof axisSettings.width === "number" ? axisSettings.width : 60, height: offset.height }; }; var selectXAxisSize = createSelector(selectChartOffsetInternal, selectXAxisSettings, getXAxisSize); var combineXAxisPositionStartingPoint = (offset, orientation, chartHeight) => { switch (orientation) { case "top": return offset.top; case "bottom": return chartHeight - offset.bottom; default: return 0; } }; var combineYAxisPositionStartingPoint = (offset, orientation, chartWidth) => { switch (orientation) { case "left": return offset.left; case "right": return chartWidth - offset.right; default: return 0; } }; var selectAllXAxesOffsetSteps = createSelector(selectChartHeight, selectChartOffsetInternal, selectAllXAxesWithOffsetType, pickAxisOrientation, pickMirror, (chartHeight, offset, allAxesWithSameOffsetType, orientation, mirror) => { var steps = {}; var position; allAxesWithSameOffsetType.forEach((axis) => { var axisSize = getXAxisSize(offset, axis); if (position == null) position = combineXAxisPositionStartingPoint(offset, orientation, chartHeight); var needSpace = orientation === "top" && !mirror || orientation === "bottom" && mirror; steps[axis.id] = position - Number(needSpace) * axisSize.height; position += (needSpace ? -1 : 1) * axisSize.height; }); return steps; }); var selectAllYAxesOffsetSteps = createSelector(selectChartWidth, selectChartOffsetInternal, selectAllYAxesWithOffsetType, pickAxisOrientation, pickMirror, (chartWidth, offset, allAxesWithSameOffsetType, orientation, mirror) => { var steps = {}; var position; allAxesWithSameOffsetType.forEach((axis) => { var axisSize = getYAxisSize(offset, axis); if (position == null) position = combineYAxisPositionStartingPoint(offset, orientation, chartWidth); var needSpace = orientation === "left" && !mirror || orientation === "right" && mirror; steps[axis.id] = position - Number(needSpace) * axisSize.width; position += (needSpace ? -1 : 1) * axisSize.width; }); return steps; }); var selectXAxisOffsetSteps = (state, axisId) => { var axisSettings = selectXAxisSettings(state, axisId); if (axisSettings == null) return; return selectAllXAxesOffsetSteps(state, axisSettings.orientation, axisSettings.mirror); }; var selectXAxisPosition = createSelector([ selectChartOffsetInternal, selectXAxisSettings, selectXAxisOffsetSteps, (_, axisId) => axisId ], (offset, axisSettings, allSteps, axisId) => { if (axisSettings == null) return; var stepOfThisAxis = allSteps === null || allSteps === void 0 ? void 0 : allSteps[axisId]; if (stepOfThisAxis == null) return { x: offset.left, y: 0 }; return { x: offset.left, y: stepOfThisAxis }; }); var selectYAxisOffsetSteps = (state, axisId) => { var axisSettings = selectYAxisSettings(state, axisId); if (axisSettings == null) return; return selectAllYAxesOffsetSteps(state, axisSettings.orientation, axisSettings.mirror); }; var selectYAxisPosition = createSelector([ selectChartOffsetInternal, selectYAxisSettings, selectYAxisOffsetSteps, (_, axisId) => axisId ], (offset, axisSettings, allSteps, axisId) => { if (axisSettings == null) return; var stepOfThisAxis = allSteps === null || allSteps === void 0 ? void 0 : allSteps[axisId]; if (stepOfThisAxis == null) return { x: 0, y: offset.top }; return { x: stepOfThisAxis, y: offset.top }; }); var selectYAxisSize = createSelector(selectChartOffsetInternal, selectYAxisSettings, (offset, axisSettings) => { return { width: typeof axisSettings.width === "number" ? axisSettings.width : 60, height: offset.height }; }); var selectCartesianAxisSize = (state, axisType, axisId) => { switch (axisType) { case "xAxis": return selectXAxisSize(state, axisId).width; case "yAxis": return selectYAxisSize(state, axisId).height; default: return; } }; var combineDuplicateDomain = (chartLayout, appliedValues, axis, axisType) => { if (axis == null) return; var { allowDuplicatedCategory, type, dataKey } = axis; var isCategorical = isCategoricalAxis(chartLayout, axisType); var allData = appliedValues.map((av) => av.value); var validData = allData.filter((v) => v != null); if (dataKey && isCategorical && type === "category" && allowDuplicatedCategory && hasDuplicate(validData)) return allData; }; var selectDuplicateDomain = createSelector([ selectChartLayout, selectAllAppliedValues, selectBaseAxis, pickAxisType ], combineDuplicateDomain); var selectAxisPropsNeededForCartesianGridTicksGenerator = createSelector([ selectChartLayout, selectCartesianAxisSettings, selectRealScaleType, selectAxisScale, selectDuplicateDomain, selectCategoricalDomain, selectAxisRange, selectNiceTicks, pickAxisType ], (layout, axis, realScaleType, scale, duplicateDomain, categoricalDomain, axisRange, niceTicks, axisType) => { if (axis == null) return; var isCategorical = isCategoricalAxis(layout, axisType); return { angle: axis.angle, interval: axis.interval, minTickGap: axis.minTickGap, orientation: axis.orientation, tick: axis.tick, tickCount: axis.tickCount, tickFormatter: axis.tickFormatter, ticks: axis.ticks, type: axis.type, unit: axis.unit, axisType, categoricalDomain, duplicateDomain, isCategorical, niceTicks, range: axisRange, realScaleType, scale }; }); /** * Of on four almost identical implementations of tick generation. * The four horsemen of tick generation are: * - {@link selectTooltipAxisTicks} * - {@link combineAxisTicks} * - {@link getTicksOfAxis}. * - {@link combineGraphicalItemTicks} */ var combineAxisTicks = (layout, axis, realScaleType, scale, niceTicks, axisRange, duplicateDomain, categoricalDomain, axisType) => { if (axis == null || scale == null) return; var isCategorical = isCategoricalAxis(layout, axisType); var { type, ticks, tickCount } = axis; var offsetForBand = realScaleType === "scaleBand" && typeof scale.bandwidth === "function" ? scale.bandwidth() / 2 : 2; var offset = type === "category" && scale.bandwidth ? scale.bandwidth() / offsetForBand : 0; offset = axisType === "angleAxis" && axisRange != null && axisRange.length >= 2 ? mathSign(axisRange[0] - axisRange[1]) * 2 * offset : offset; var ticksOrNiceTicks = ticks || niceTicks; if (ticksOrNiceTicks) return ticksOrNiceTicks.map((entry, index) => { var scaleContent = duplicateDomain ? duplicateDomain.indexOf(entry) : entry; var scaled = scale.map(scaleContent); if (!isWellBehavedNumber(scaled)) return null; return { index, coordinate: scaled + offset, value: entry, offset }; }).filter(isNotNil); if (isCategorical && categoricalDomain) return categoricalDomain.map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: entry, index, offset }; }).filter(isNotNil); if (scale.ticks) return scale.ticks(tickCount).map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: entry, index, offset }; }).filter(isNotNil); return scale.domain().map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: duplicateDomain ? duplicateDomain[entry] : entry, index, offset }; }).filter(isNotNil); }; var selectTicksOfAxis = createSelector([ selectChartLayout, selectRenderableAxisSettings, selectRealScaleType, selectAxisScale, selectNiceTicks, selectAxisRange, selectDuplicateDomain, selectCategoricalDomain, pickAxisType ], combineAxisTicks); /** * Of on four almost identical implementations of tick generation. * The four horsemen of tick generation are: * - {@link selectTooltipAxisTicks} * - {@link combineAxisTicks} * - {@link getTicksOfAxis}. * - {@link combineGraphicalItemTicks} */ var combineGraphicalItemTicks = (layout, axis, scale, axisRange, duplicateDomain, categoricalDomain, axisType) => { if (axis == null || scale == null || axisRange == null || axisRange[0] === axisRange[1]) return; var isCategorical = isCategoricalAxis(layout, axisType); var { tickCount } = axis; var offset = 0; offset = axisType === "angleAxis" && (axisRange === null || axisRange === void 0 ? void 0 : axisRange.length) >= 2 ? mathSign(axisRange[0] - axisRange[1]) * 2 * offset : offset; if (isCategorical && categoricalDomain) return categoricalDomain.map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: entry, index, offset }; }).filter(isNotNil); if (scale.ticks) return scale.ticks(tickCount).map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: entry, index, offset }; }).filter(isNotNil); return scale.domain().map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: duplicateDomain ? duplicateDomain[entry] : entry, index, offset }; }).filter(isNotNil); }; var selectTicksOfGraphicalItem = createSelector([ selectChartLayout, selectRenderableAxisSettings, selectAxisScale, selectAxisRange, selectDuplicateDomain, selectCategoricalDomain, pickAxisType ], combineGraphicalItemTicks); /** * This is the internal representation of an axis along with its scale function. * Here we have already computed the scale function for the axis, * and replaced the union type of scale (string | function) with just the function type. */ var selectAxisWithScale = createSelector(selectBaseAxis, selectAxisScale, (axis, scale) => { if (axis == null || scale == null) return; return _objectSpread$54(_objectSpread$54({}, axis), {}, { scale }); }); var selectZAxisWithScale = createSelector((state, _axisType, axisId) => selectZAxisSettings(state, axisId), createSelector([createSelector([ selectBaseAxis, selectRealScaleType, selectAxisDomain, selectAxisRangeWithReverse ], combineConfiguredScale)], rechartsScaleFactory), (axis, scale) => { if (axis == null || scale == null) return; return _objectSpread$54(_objectSpread$54({}, axis), {}, { scale }); }); /** * We are also going to need to implement polar chart directions if we want to support keyboard controls for those. */ var selectChartDirection = createSelector([ selectChartLayout, selectAllXAxes, selectAllYAxes ], (layout, allXAxes, allYAxes) => { switch (layout) { case "horizontal": return allXAxes.some((axis) => axis.reversed) ? "right-to-left" : "left-to-right"; case "vertical": return allYAxes.some((axis) => axis.reversed) ? "bottom-to-top" : "top-to-bottom"; case "centric": case "radial": return "left-to-right"; default: return; } }); var selectRenderedTicksOfAxis = (state, axisType, axisId) => { var _state$renderedTicks$; return (_state$renderedTicks$ = state.renderedTicks[axisType]) === null || _state$renderedTicks$ === void 0 ? void 0 : _state$renderedTicks$[axisId]; }; var selectAxisInverseTickSnapScale = createSelector([selectRenderedTicksOfAxis], (ticks) => { if (!ticks || ticks.length === 0) return; return (pixelValue) => { var _closestTick; var minDistance = Infinity; var closestTick = ticks[0]; for (var tick of ticks) { var distance = Math.abs(tick.coordinate - pixelValue); if (distance < minDistance) { minDistance = distance; closestTick = tick; } } return (_closestTick = closestTick) === null || _closestTick === void 0 ? void 0 : _closestTick.value; }; }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectTooltipEventType.js var selectDefaultTooltipEventType = (state) => state.options.defaultTooltipEventType; var selectValidateTooltipEventTypes = (state) => state.options.validateTooltipEventTypes; function combineTooltipEventType(shared, defaultTooltipEventType, validateTooltipEventTypes) { if (shared == null) return defaultTooltipEventType; var eventType = shared ? "axis" : "item"; if (validateTooltipEventTypes == null) return defaultTooltipEventType; return validateTooltipEventTypes.includes(eventType) ? eventType : defaultTooltipEventType; } function selectTooltipEventType$1(state, shared) { return combineTooltipEventType(shared, selectDefaultTooltipEventType(state), selectValidateTooltipEventTypes(state)); } function useTooltipEventType(shared) { return useAppSelector((state) => selectTooltipEventType$1(state, shared)); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js var combineActiveLabel = (tooltipTicks, activeIndex) => { var _tooltipTicks$n; var n = Number(activeIndex); if (isNan(n) || activeIndex == null) return; return n >= 0 ? tooltipTicks === null || tooltipTicks === void 0 || (_tooltipTicks$n = tooltipTicks[n]) === null || _tooltipTicks$n === void 0 ? void 0 : _tooltipTicks$n.value : void 0; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectTooltipSettings.js var selectTooltipSettings = (state) => state.tooltip.settings; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/tooltipSlice.js /** * One Tooltip can display multiple TooltipPayloadEntries at a time. */ /** * So what happens is that the tooltip payload is decided based on the available data, and the dataKey. * The dataKey can either be defined on the graphical element (like Line, or Bar) * or on the tooltip itself. * * The data can be defined in the chart element, or in the graphical item. * * So this type is all the settings, other than the data + dataKey complications. */ /** * This is what Tooltip renders. */ /** * null means no active index * string means: whichever index from the chart data it is. * Different charts have different requirements on data shapes, * and are also responsible for providing a function that will accept this index * and return data. */ /** * Different items have different data shapes so the state has no opinion on what the data shape should be; * the only requirement is that the chart also provides a searcher function * that accepts the data, and a key, and returns whatever the payload in Tooltip should be. */ /** * So this informs the "tooltip event type". Tooltip event type can be either "axis" or "item" * and it is used for two things: * 1. Sets the active area * 2. Sets the background and cursor highlights * * Some charts only allow to have one type of tooltip event type, some allow both. * Those charts that allow both will have one default, and the "shared" prop will be used to switch between them. * Undefined means "use the chart default". * * Charts that only allow one tooltip event type, will ignore the shared prop. */ /** * A generic state for user interaction with the chart. * User interaction can come through multiple channels: mouse events, keyboard events, or hardcoded in props, or synchronised from other charts. * * Each of the interaction states is represented as TooltipInteractionState, * and then the selectors and Tooltip will decide which of the interaction states to use. */ var noInteraction = { active: false, index: null, dataKey: void 0, graphicalItemId: void 0, coordinate: void 0 }; /** * This is the event we get when user is interacting with a specific graphical item. */ /** * Keyboard interaction payload has no graphical item ID, * and no dataKey, because keyboard interaction is always * with the whole chart, not with a specific graphical item. */ var tooltipSlice = createSlice({ name: "tooltip", initialState: { itemInteraction: { click: noInteraction, hover: noInteraction }, axisInteraction: { click: noInteraction, hover: noInteraction }, keyboardInteraction: noInteraction, syncInteraction: { active: false, index: null, dataKey: void 0, label: void 0, coordinate: void 0, sourceViewBox: void 0, graphicalItemId: void 0 }, tooltipItemPayloads: [], settings: { shared: void 0, trigger: "hover", axisId: 0, active: false, defaultIndex: void 0 } }, reducers: { addTooltipEntrySettings: { reducer(state, action) { state.tooltipItemPayloads.push(castDraft(action.payload)); }, prepare: prepareAutoBatched() }, replaceTooltipEntrySettings: { reducer(state, action) { var { prev, next } = action.payload; var index = current$1(state).tooltipItemPayloads.indexOf(castDraft(prev)); if (index > -1) state.tooltipItemPayloads[index] = castDraft(next); }, prepare: prepareAutoBatched() }, removeTooltipEntrySettings: { reducer(state, action) { var index = current$1(state).tooltipItemPayloads.indexOf(castDraft(action.payload)); if (index > -1) state.tooltipItemPayloads.splice(index, 1); }, prepare: prepareAutoBatched() }, setTooltipSettingsState(state, action) { state.settings = action.payload; }, setActiveMouseOverItemIndex(state, action) { state.syncInteraction.active = false; state.syncInteraction.sourceViewBox = void 0; state.keyboardInteraction.active = false; state.itemInteraction.hover.active = true; state.itemInteraction.hover.index = action.payload.activeIndex; state.itemInteraction.hover.dataKey = action.payload.activeDataKey; state.itemInteraction.hover.graphicalItemId = action.payload.activeGraphicalItemId; state.itemInteraction.hover.coordinate = action.payload.activeCoordinate; }, mouseLeaveChart(state) { state.itemInteraction.hover.active = false; state.axisInteraction.hover.active = false; }, mouseLeaveItem(state) { state.itemInteraction.hover.active = false; }, setActiveClickItemIndex(state, action) { state.syncInteraction.active = false; state.syncInteraction.sourceViewBox = void 0; state.itemInteraction.click.active = true; state.keyboardInteraction.active = false; state.itemInteraction.click.index = action.payload.activeIndex; state.itemInteraction.click.dataKey = action.payload.activeDataKey; state.itemInteraction.click.graphicalItemId = action.payload.activeGraphicalItemId; state.itemInteraction.click.coordinate = action.payload.activeCoordinate; }, setMouseOverAxisIndex(state, action) { state.syncInteraction.active = false; state.syncInteraction.sourceViewBox = void 0; state.axisInteraction.hover.active = true; state.keyboardInteraction.active = false; state.axisInteraction.hover.index = action.payload.activeIndex; state.axisInteraction.hover.dataKey = action.payload.activeDataKey; state.axisInteraction.hover.coordinate = action.payload.activeCoordinate; }, setMouseClickAxisIndex(state, action) { state.syncInteraction.active = false; state.syncInteraction.sourceViewBox = void 0; state.keyboardInteraction.active = false; state.axisInteraction.click.active = true; state.axisInteraction.click.index = action.payload.activeIndex; state.axisInteraction.click.dataKey = action.payload.activeDataKey; state.axisInteraction.click.coordinate = action.payload.activeCoordinate; }, setSyncInteraction(state, action) { state.syncInteraction = action.payload; }, setKeyboardInteraction(state, action) { state.keyboardInteraction.active = action.payload.active; state.keyboardInteraction.index = action.payload.activeIndex; state.keyboardInteraction.coordinate = action.payload.activeCoordinate; } } }); var { addTooltipEntrySettings, replaceTooltipEntrySettings, removeTooltipEntrySettings, setTooltipSettingsState, setActiveMouseOverItemIndex, mouseLeaveItem, mouseLeaveChart, setActiveClickItemIndex, setMouseOverAxisIndex, setMouseClickAxisIndex, setSyncInteraction, setKeyboardInteraction } = tooltipSlice.actions; var tooltipReducer = tooltipSlice.reducer; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js function ownKeys$53(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$53(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$53(Object(t), !0).forEach(function(r) { _defineProperty$55(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$53(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$55(e, r, t) { return (r = _toPropertyKey$55(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$55(t) { var i = _toPrimitive$55(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$55(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function chooseAppropriateMouseInteraction(tooltipState, tooltipEventType, trigger) { if (tooltipEventType === "axis") { if (trigger === "click") return tooltipState.axisInteraction.click; return tooltipState.axisInteraction.hover; } if (trigger === "click") return tooltipState.itemInteraction.click; return tooltipState.itemInteraction.hover; } function hasBeenActivePreviously(tooltipInteractionState) { return tooltipInteractionState.index != null; } var combineTooltipInteractionState = (tooltipState, tooltipEventType, trigger, defaultIndex) => { if (tooltipEventType == null) return noInteraction; var appropriateMouseInteraction = chooseAppropriateMouseInteraction(tooltipState, tooltipEventType, trigger); if (appropriateMouseInteraction == null) return noInteraction; if (appropriateMouseInteraction.active) return appropriateMouseInteraction; if (tooltipState.keyboardInteraction.active) return tooltipState.keyboardInteraction; if (tooltipState.syncInteraction.active && tooltipState.syncInteraction.index != null) return tooltipState.syncInteraction; var activeFromProps = tooltipState.settings.active === true; if (hasBeenActivePreviously(appropriateMouseInteraction)) { if (activeFromProps) return _objectSpread$53(_objectSpread$53({}, appropriateMouseInteraction), {}, { active: true }); } else if (defaultIndex != null) return { active: true, coordinate: void 0, dataKey: void 0, index: defaultIndex, graphicalItemId: void 0 }; return _objectSpread$53(_objectSpread$53({}, noInteraction), {}, { coordinate: appropriateMouseInteraction.coordinate }); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js function toFiniteNumber(value) { if (typeof value === "number") return Number.isFinite(value) ? value : void 0; if (value instanceof Date) { var numericValue = value.valueOf(); return Number.isFinite(numericValue) ? numericValue : void 0; } var parsed = Number(value); return Number.isFinite(parsed) ? parsed : void 0; } function isValueWithinNumberDomain(value, domain) { var numericValue = toFiniteNumber(value); var lowerBound = domain[0]; var upperBound = domain[1]; if (numericValue === void 0) return false; return numericValue >= Math.min(lowerBound, upperBound) && numericValue <= Math.max(lowerBound, upperBound); } function isValueWithinDomain(entry, axisDataKey, domain) { if (domain == null || axisDataKey == null) return true; var value = getValueByDataKey(entry, axisDataKey); if (value == null) return true; if (!isWellFormedNumberDomain(domain)) return true; return isValueWithinNumberDomain(value, domain); } var combineActiveTooltipIndex = (tooltipInteraction, chartData, axisDataKey, domain) => { var desiredIndex = tooltipInteraction === null || tooltipInteraction === void 0 ? void 0 : tooltipInteraction.index; if (desiredIndex == null) return null; var indexAsNumber = Number(desiredIndex); if (!isWellBehavedNumber(indexAsNumber)) return desiredIndex; var lowerLimit = 0; var upperLimit = Infinity; if (chartData.length > 0) upperLimit = chartData.length - 1; var clampedIndex = Math.max(lowerLimit, Math.min(indexAsNumber, upperLimit)); var entry = chartData[clampedIndex]; if (entry == null) return String(clampedIndex); if (!isValueWithinDomain(entry, axisDataKey, domain)) return null; return String(clampedIndex); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js var combineCoordinateForDefaultIndex = (width, height, layout, offset, tooltipTicks, defaultIndex, tooltipConfigurations) => { if (defaultIndex == null) return; var firstConfiguration = tooltipConfigurations[0]; var maybePosition = firstConfiguration === null || firstConfiguration === void 0 ? void 0 : firstConfiguration.getPosition(defaultIndex); if (maybePosition != null) return maybePosition; var tick = tooltipTicks === null || tooltipTicks === void 0 ? void 0 : tooltipTicks[Number(defaultIndex)]; if (!tick) return; switch (layout) { case "horizontal": return { x: tick.coordinate, y: (offset.top + height) / 2 }; default: return { x: (offset.left + width) / 2, y: tick.coordinate }; } }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js var combineTooltipPayloadConfigurations = (tooltipState, tooltipEventType, trigger, defaultIndex) => { if (tooltipEventType === "axis") return tooltipState.tooltipItemPayloads; if (tooltipState.tooltipItemPayloads.length === 0) return []; var filterByGraphicalItemId; if (trigger === "hover") filterByGraphicalItemId = tooltipState.itemInteraction.hover.graphicalItemId; else filterByGraphicalItemId = tooltipState.itemInteraction.click.graphicalItemId; if (tooltipState.syncInteraction.active && filterByGraphicalItemId == null) return tooltipState.tooltipItemPayloads; if (filterByGraphicalItemId == null && (defaultIndex != null || tooltipState.keyboardInteraction.active)) { var firstItemPayload = tooltipState.tooltipItemPayloads[0]; if (firstItemPayload != null) return [firstItemPayload]; return []; } return tooltipState.tooltipItemPayloads.filter((tpc) => { var _tpc$settings; return ((_tpc$settings = tpc.settings) === null || _tpc$settings === void 0 ? void 0 : _tpc$settings.graphicalItemId) === filterByGraphicalItemId; }); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectTooltipPayloadSearcher.js var selectTooltipPayloadSearcher = (state) => state.options.tooltipPayloadSearcher; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectTooltipState.js var selectTooltipState = (state) => state.tooltip; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js function ownKeys$52(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$52(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$52(Object(t), !0).forEach(function(r) { _defineProperty$54(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$52(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$54(e, r, t) { return (r = _toPropertyKey$54(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$54(t) { var i = _toPrimitive$54(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$54(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function parseName(value) { if (typeof value === "string" || typeof value === "number") return value; } function parseUnit(value) { if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") return value; } function parseDataKey(value) { if (typeof value === "string" || typeof value === "number") return value; if (typeof value === "function") return (obj) => value(obj); } function parseColor(value) { if (typeof value === "string") return value; } function parseTooltipPayloadItem(item) { if (item == null || typeof item !== "object") return; return { name: "name" in item ? parseName(item.name) : void 0, unit: "unit" in item ? parseUnit(item.unit) : void 0, dataKey: "dataKey" in item ? parseDataKey(item.dataKey) : void 0, payload: "payload" in item ? item.payload : void 0, color: "color" in item ? parseColor(item.color) : void 0, fill: "fill" in item ? parseColor(item.fill) : void 0 }; } function selectFinalData(dataDefinedOnItem, dataDefinedOnChart) { if (dataDefinedOnItem != null) return dataDefinedOnItem; return dataDefinedOnChart; } var combineTooltipPayload = (tooltipPayloadConfigurations, activeIndex, chartDataState, tooltipAxisDataKey, activeLabel, tooltipPayloadSearcher, tooltipEventType) => { if (activeIndex == null || tooltipPayloadSearcher == null) return; var { chartData, computedData, dataStartIndex, dataEndIndex } = chartDataState; return tooltipPayloadConfigurations.reduce((agg, _ref) => { var _settings$dataKey; var { dataDefinedOnItem, settings } = _ref; var finalData = selectFinalData(dataDefinedOnItem, chartData); var sliced = Array.isArray(finalData) ? getSliced(finalData, dataStartIndex, dataEndIndex) : finalData; var finalDataKey = (_settings$dataKey = settings === null || settings === void 0 ? void 0 : settings.dataKey) !== null && _settings$dataKey !== void 0 ? _settings$dataKey : tooltipAxisDataKey; var finalNameKey = settings === null || settings === void 0 ? void 0 : settings.nameKey; var tooltipPayload; if (tooltipAxisDataKey && Array.isArray(sliced) && !Array.isArray(sliced[0]) && tooltipEventType === "axis") tooltipPayload = findEntryInArray(sliced, tooltipAxisDataKey, activeLabel); else tooltipPayload = tooltipPayloadSearcher(sliced, activeIndex, computedData, finalNameKey); if (Array.isArray(tooltipPayload)) tooltipPayload.forEach((item) => { var _parsedItem$color, _parsedItem$fill; var parsedItem = parseTooltipPayloadItem(item); var itemName = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.name; var itemDataKey = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.dataKey; var itemPayload = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.payload; var newSettings = _objectSpread$52(_objectSpread$52({}, settings), {}, { name: itemName, unit: parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.unit, color: (_parsedItem$color = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.color) !== null && _parsedItem$color !== void 0 ? _parsedItem$color : settings === null || settings === void 0 ? void 0 : settings.color, fill: (_parsedItem$fill = parsedItem === null || parsedItem === void 0 ? void 0 : parsedItem.fill) !== null && _parsedItem$fill !== void 0 ? _parsedItem$fill : settings === null || settings === void 0 ? void 0 : settings.fill }); agg.push(getTooltipEntry({ tooltipEntrySettings: newSettings, dataKey: itemDataKey, payload: itemPayload, value: getValueByDataKey(itemPayload, itemDataKey), name: itemName == null ? void 0 : String(itemName) })); }); else { var _getValueByDataKey; agg.push(getTooltipEntry({ tooltipEntrySettings: settings, dataKey: finalDataKey, payload: tooltipPayload, value: getValueByDataKey(tooltipPayload, finalDataKey), name: (_getValueByDataKey = getValueByDataKey(tooltipPayload, finalNameKey)) !== null && _getValueByDataKey !== void 0 ? _getValueByDataKey : settings === null || settings === void 0 ? void 0 : settings.name })); } return agg; }, []); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/tooltipSelectors.js var selectTooltipAxisRealScaleType = createSelector([ selectTooltipAxis, selectHasBar, selectChartName ], combineRealScaleType); var selectAllGraphicalItemsSettings = createSelector([ createSelector([(state) => state.graphicalItems.cartesianItems, (state) => state.graphicalItems.polarItems], (cartesianItems, polarItems) => [...cartesianItems, ...polarItems]), selectTooltipAxis, createSelector([selectTooltipAxisType, selectTooltipAxisId], itemAxisPredicate) ], combineGraphicalItemsSettings, { memoizeOptions: { resultEqualityCheck: emptyArraysAreEqualCheck } }); var selectAllStackedGraphicalItemsSettings = createSelector([selectAllGraphicalItemsSettings], (graphicalItems) => graphicalItems.filter(isStacked)); var selectTooltipGraphicalItemsData = createSelector([selectAllGraphicalItemsSettings], combineGraphicalItemsData, { memoizeOptions: { resultEqualityCheck: emptyArraysAreEqualCheck } }); var selectAnyTooltipItemUsesChartData = createSelector([selectAllGraphicalItemsSettings], (items) => items.some((item) => !item.data)); /** * Data for tooltip always use the data with indexes set by a Brush, * and never accept the isPanorama flag: * because Tooltip never displays inside the panorama anyway * so we don't need to worry what would happen there. */ var selectTooltipDisplayedData = createSelector([selectTooltipGraphicalItemsData, selectChartDataWithIndexes], combineDisplayedData); var selectTooltipStackedData = createSelector([ selectAllStackedGraphicalItemsSettings, selectChartDataWithIndexes, selectTooltipAxis ], combineDisplayedStackedData); var selectAllTooltipAppliedValues = createSelector([ selectTooltipDisplayedData, selectTooltipAxis, selectAllGraphicalItemsSettings, selectChartDataWithIndexes, selectAnyTooltipItemUsesChartData, selectTooltipGraphicalItemsData ], combineAllAppliedValues); var selectTooltipAxisDomainDefinition = createSelector([selectTooltipAxis], getDomainDefinition); var selectTooltipDomainFromUserPreferences = createSelector([selectTooltipAxisDomainDefinition, createSelector([selectTooltipAxis], (axisSettings) => axisSettings.allowDataOverflow)], numericalDomainSpecifiedWithoutRequiringData); var selectTooltipDomainOfStackGroups = createSelector([ createSelector([ selectTooltipStackedData, createSelector([selectAllGraphicalItemsSettings], (graphicalItems) => graphicalItems.filter(isStacked)), selectStackOffsetType, selectReverseStackOrder ], combineStackGroups), selectChartDataWithIndexes, selectTooltipAxisType, selectTooltipDomainFromUserPreferences ], combineDomainOfStackGroups); var selectDomainOfAllAppliedNumericalValuesIncludingErrorValues = createSelector([ selectTooltipDisplayedData, selectTooltipAxis, createSelector([selectAllGraphicalItemsSettings], filterGraphicalNotStackedItems), selectAllErrorBarSettings, selectTooltipAxisType, selectChartDataSliceWithIndexes ], combineDomainOfAllAppliedNumericalValuesIncludingErrorValues, { memoizeOptions: { resultEqualityCheck: numberDomainEqualityCheck } }); var selectTooltipReferenceDotsDomain = createSelector([createSelector([ selectReferenceDots, selectTooltipAxisType, selectTooltipAxisId ], filterReferenceElements), selectTooltipAxisType], combineDotsDomain); var selectTooltipReferenceAreasDomain = createSelector([createSelector([ selectReferenceAreas, selectTooltipAxisType, selectTooltipAxisId ], filterReferenceElements), selectTooltipAxisType], combineAreasDomain); var selectTooltipAxisDomain = createSelector([ selectTooltipAxis, selectChartLayout, selectTooltipDisplayedData, selectAllTooltipAppliedValues, selectStackOffsetType, selectTooltipAxisType, createSelector([ selectTooltipAxis, selectTooltipAxisDomainDefinition, selectTooltipDomainFromUserPreferences, selectTooltipDomainOfStackGroups, selectDomainOfAllAppliedNumericalValuesIncludingErrorValues, createSelector([ selectTooltipReferenceDotsDomain, createSelector([createSelector([ selectReferenceLines, selectTooltipAxisType, selectTooltipAxisId ], filterReferenceElements), selectTooltipAxisType], combineLinesDomain), selectTooltipReferenceAreasDomain ], mergeDomains), selectChartLayout, selectTooltipAxisType ], combineNumericalDomain) ], combineAxisDomain); var selectTooltipAxisDomainIncludingNiceTicks = createSelector([ selectTooltipAxis, selectTooltipAxisDomain, createSelector([ selectTooltipAxisDomain, selectTooltipAxis, selectTooltipAxisRealScaleType ], combineNiceTicks), selectTooltipAxisType ], combineAxisDomainWithNiceTicks); var selectTooltipAxisRange = (state) => { return selectAxisRange(state, selectTooltipAxisType(state), selectTooltipAxisId(state), false); }; var selectTooltipAxisRangeWithReverse = createSelector([selectTooltipAxis, selectTooltipAxisRange], combineAxisRangeWithReverse); var selectTooltipAxisScale = createSelector([createSelector([ selectTooltipAxis, selectTooltipAxisRealScaleType, selectTooltipAxisDomainIncludingNiceTicks, selectTooltipAxisRangeWithReverse ], combineConfiguredScale)], rechartsScaleFactory); var selectTooltipDuplicateDomain = createSelector([ selectChartLayout, selectAllTooltipAppliedValues, selectTooltipAxis, selectTooltipAxisType ], combineDuplicateDomain); var selectTooltipCategoricalDomain = createSelector([ selectChartLayout, selectAllTooltipAppliedValues, selectTooltipAxis, selectTooltipAxisType ], combineCategoricalDomain); var combineTicksOfTooltipAxis = (layout, axis, realScaleType, scale, range, duplicateDomain, categoricalDomain, axisType) => { if (!axis) return; var { type } = axis; var isCategorical = isCategoricalAxis(layout, axisType); if (!scale) return; var offsetForBand = realScaleType === "scaleBand" && scale.bandwidth ? scale.bandwidth() / 2 : 2; var offset = type === "category" && scale.bandwidth ? scale.bandwidth() / offsetForBand : 0; offset = axisType === "angleAxis" && range != null && (range === null || range === void 0 ? void 0 : range.length) >= 2 ? mathSign(range[0] - range[1]) * 2 * offset : offset; if (isCategorical && categoricalDomain) return categoricalDomain.map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: entry, index, offset }; }).filter(isNotNil); return scale.domain().map((entry, index) => { var scaled = scale.map(entry); if (!isWellBehavedNumber(scaled)) return null; return { coordinate: scaled + offset, value: duplicateDomain ? duplicateDomain[entry] : entry, index, offset }; }).filter(isNotNil); }; /** * Of on four almost identical implementations of tick generation. * The four horsemen of tick generation are: * - {@link selectTooltipAxisTicks} * - {@link combineAxisTicks} * - {@link getTicksOfAxis}. * - {@link combineGraphicalItemTicks} */ var selectTooltipAxisTicks = createSelector([ selectChartLayout, selectTooltipAxis, selectTooltipAxisRealScaleType, selectTooltipAxisScale, selectTooltipAxisRange, selectTooltipDuplicateDomain, selectTooltipCategoricalDomain, selectTooltipAxisType ], combineTicksOfTooltipAxis); var selectTooltipEventType = createSelector([ selectDefaultTooltipEventType, selectValidateTooltipEventTypes, selectTooltipSettings ], (defaultTooltipEventType, validateTooltipEventType, settings) => combineTooltipEventType(settings.shared, defaultTooltipEventType, validateTooltipEventType)); var selectTooltipTrigger = (state) => state.tooltip.settings.trigger; var selectDefaultIndex = (state) => state.tooltip.settings.defaultIndex; var selectTooltipInteractionState$1 = createSelector([ selectTooltipState, selectTooltipEventType, selectTooltipTrigger, selectDefaultIndex ], combineTooltipInteractionState); var selectActiveTooltipIndex = createSelector([ selectTooltipInteractionState$1, selectTooltipDisplayedData, selectTooltipAxisDataKey, selectTooltipAxisDomain ], combineActiveTooltipIndex); var selectActiveLabel$1 = createSelector([selectTooltipAxisTicks, selectActiveTooltipIndex], combineActiveLabel); var selectActiveTooltipDataKey = createSelector([selectTooltipInteractionState$1], (tooltipInteraction) => { if (!tooltipInteraction) return; return tooltipInteraction.dataKey; }); var selectActiveTooltipGraphicalItemId = createSelector([selectTooltipInteractionState$1], (tooltipInteraction) => { if (!tooltipInteraction) return; return tooltipInteraction.graphicalItemId; }); var selectTooltipPayloadConfigurations$1 = createSelector([ selectTooltipState, selectTooltipEventType, selectTooltipTrigger, selectDefaultIndex ], combineTooltipPayloadConfigurations); var selectActiveTooltipCoordinate = createSelector([selectTooltipInteractionState$1, createSelector([ selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, selectDefaultIndex, selectTooltipPayloadConfigurations$1 ], combineCoordinateForDefaultIndex)], (tooltipInteractionState, defaultIndexCoordinate) => { if (tooltipInteractionState !== null && tooltipInteractionState !== void 0 && tooltipInteractionState.coordinate) return tooltipInteractionState.coordinate; return defaultIndexCoordinate; }); var selectIsTooltipActive$1 = createSelector([selectTooltipInteractionState$1], (tooltipInteractionState) => { var _tooltipInteractionSt; return (_tooltipInteractionSt = tooltipInteractionState === null || tooltipInteractionState === void 0 ? void 0 : tooltipInteractionState.active) !== null && _tooltipInteractionSt !== void 0 ? _tooltipInteractionSt : false; }); var selectActiveTooltipDataPoints = createSelector([createSelector([ selectTooltipPayloadConfigurations$1, selectActiveTooltipIndex, selectChartDataWithIndexes, selectTooltipAxisDataKey, selectActiveLabel$1, selectTooltipPayloadSearcher, selectTooltipEventType ], combineTooltipPayload)], (payload) => { if (payload == null) return; var dataPoints = payload.map((p) => p.payload).filter((p) => p != null); return Array.from(new Set(dataPoints)); }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/context/useTooltipAxis.js function ownKeys$51(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$51(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$51(Object(t), !0).forEach(function(r) { _defineProperty$53(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$51(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$53(e, r, t) { return (r = _toPropertyKey$53(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$53(t) { var i = _toPrimitive$53(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$53(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var useTooltipAxis = () => useAppSelector(selectTooltipAxis); var useTooltipAxisBandSize = () => { var tooltipAxis = useTooltipAxis(); var tooltipTicks = useAppSelector(selectTooltipAxisTicks); var tooltipAxisScale = useAppSelector(selectTooltipAxisScale); if (!tooltipAxis || !tooltipAxisScale) return getBandSizeOfAxis(void 0, tooltipTicks); return getBandSizeOfAxis(_objectSpread$51(_objectSpread$51({}, tooltipAxis), {}, { scale: tooltipAxisScale }), tooltipTicks); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/getActiveCoordinate.js function ownKeys$50(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$50(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$50(Object(t), !0).forEach(function(r) { _defineProperty$52(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$50(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$52(e, r, t) { return (r = _toPropertyKey$52(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$52(t) { var i = _toPrimitive$52(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$52(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var getActiveCartesianCoordinate = (layout, tooltipTicks, activeIndex, pointer) => { var entry = tooltipTicks.find((tick) => tick && tick.index === activeIndex); if (entry) { if (layout === "horizontal") return { x: entry.coordinate, y: pointer.relativeY }; if (layout === "vertical") return { x: pointer.relativeX, y: entry.coordinate }; } return { x: 0, y: 0 }; }; /** * Get the active coordinate in polar coordinate system. * Internally we only really use x and y, but this returned object is part of public API * (because it goes straight to the tooltip content) so we keep all the other properties * for backwards compatibility. * * @param layout - The polar layout type ('centric' or 'radial'). * @param tooltipTicks - Array of tick items used for tooltips. * @param activeIndex - The index of the active tick. * @param rangeObj - The range object containing polar chart properties. * @returns The active coordinate object with polar properties. */ var getActivePolarCoordinate = (layout, tooltipTicks, activeIndex, rangeObj) => { var entry = tooltipTicks.find((tick) => tick && tick.index === activeIndex); if (entry) { if (layout === "centric") { var _angle = entry.coordinate; var { radius: _radius } = rangeObj; return _objectSpread$50(_objectSpread$50(_objectSpread$50({}, rangeObj), polarToCartesian(rangeObj.cx, rangeObj.cy, _radius, _angle)), {}, { angle: _angle, radius: _radius }); } var radius = entry.coordinate; var { angle } = rangeObj; return _objectSpread$50(_objectSpread$50(_objectSpread$50({}, rangeObj), polarToCartesian(rangeObj.cx, rangeObj.cy, radius, angle)), {}, { angle, radius }); } return { angle: 0, clockWise: false, cx: 0, cy: 0, endAngle: 0, innerRadius: 0, outerRadius: 0, radius: 0, startAngle: 0, x: 0, y: 0 }; }; function isInCartesianRange(pointer, offset) { var { relativeX: x, relativeY: y } = pointer; return x >= offset.left && x <= offset.left + offset.width && y >= offset.top && y <= offset.top + offset.height; } var calculateActiveTickIndex = (coordinate, ticks, unsortedTicks, axisType, range) => { var _ticks$length; var len = (_ticks$length = ticks === null || ticks === void 0 ? void 0 : ticks.length) !== null && _ticks$length !== void 0 ? _ticks$length : 0; if (len <= 1 || coordinate == null) return 0; if (axisType === "angleAxis" && range != null && Math.abs(Math.abs(range[1] - range[0]) - 360) <= 1e-6) for (var i = 0; i < len; i++) { var _unsortedTicks, _unsortedTicks2, _unsortedTicks$i, _unsortedTicks$, _unsortedTicks3; var before = i > 0 ? (_unsortedTicks = unsortedTicks[i - 1]) === null || _unsortedTicks === void 0 ? void 0 : _unsortedTicks.coordinate : (_unsortedTicks2 = unsortedTicks[len - 1]) === null || _unsortedTicks2 === void 0 ? void 0 : _unsortedTicks2.coordinate; var cur = (_unsortedTicks$i = unsortedTicks[i]) === null || _unsortedTicks$i === void 0 ? void 0 : _unsortedTicks$i.coordinate; var after = i >= len - 1 ? (_unsortedTicks$ = unsortedTicks[0]) === null || _unsortedTicks$ === void 0 ? void 0 : _unsortedTicks$.coordinate : (_unsortedTicks3 = unsortedTicks[i + 1]) === null || _unsortedTicks3 === void 0 ? void 0 : _unsortedTicks3.coordinate; var sameDirectionCoord = void 0; if (before == null || cur == null || after == null) continue; if (mathSign(cur - before) !== mathSign(after - cur)) { var diffInterval = []; if (mathSign(after - cur) === mathSign(range[1] - range[0])) { sameDirectionCoord = after; var curInRange = cur + range[1] - range[0]; diffInterval[0] = Math.min(curInRange, (curInRange + before) / 2); diffInterval[1] = Math.max(curInRange, (curInRange + before) / 2); } else { sameDirectionCoord = before; var afterInRange = after + range[1] - range[0]; diffInterval[0] = Math.min(cur, (afterInRange + cur) / 2); diffInterval[1] = Math.max(cur, (afterInRange + cur) / 2); } var sameInterval = [Math.min(cur, (sameDirectionCoord + cur) / 2), Math.max(cur, (sameDirectionCoord + cur) / 2)]; if (coordinate > sameInterval[0] && coordinate <= sameInterval[1] || coordinate >= diffInterval[0] && coordinate <= diffInterval[1]) { var _unsortedTicks$i2; return (_unsortedTicks$i2 = unsortedTicks[i]) === null || _unsortedTicks$i2 === void 0 ? void 0 : _unsortedTicks$i2.index; } } else { var minValue = Math.min(before, after); var maxValue = Math.max(before, after); if (coordinate > (minValue + cur) / 2 && coordinate <= (maxValue + cur) / 2) { var _unsortedTicks$i3; return (_unsortedTicks$i3 = unsortedTicks[i]) === null || _unsortedTicks$i3 === void 0 ? void 0 : _unsortedTicks$i3.index; } } } else if (ticks) for (var _i = 0; _i < len; _i++) { var curr = ticks[_i]; if (curr == null) continue; var next = ticks[_i + 1]; var prev = ticks[_i - 1]; if (_i === 0 && next != null && coordinate <= (curr.coordinate + next.coordinate) / 2) return curr.index; if (_i === len - 1 && prev != null && coordinate > (curr.coordinate + prev.coordinate) / 2) return curr.index; if (_i > 0 && _i < len - 1 && prev != null && next != null && coordinate > (curr.coordinate + prev.coordinate) / 2 && coordinate <= (curr.coordinate + next.coordinate) / 2) return curr.index; } return -1; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/selectors/selectors.js var useChartName = () => { return useAppSelector(selectChartName); }; var pickTooltipEventType = (_state, tooltipEventType) => tooltipEventType; var pickTrigger = (_state, _tooltipEventType, trigger) => trigger; var pickDefaultIndex = (_state, _tooltipEventType, _trigger, defaultIndex) => defaultIndex; var selectOrderedTooltipTicks = createSelector(selectTooltipAxisTicks, (ticks) => (0, import_sortBy.default)(ticks, (o) => o.coordinate)); var selectTooltipInteractionState = createSelector([ selectTooltipState, pickTooltipEventType, pickTrigger, pickDefaultIndex ], combineTooltipInteractionState); var selectActiveIndex = createSelector([ selectTooltipInteractionState, selectTooltipDisplayedData, selectTooltipAxisDataKey, selectTooltipAxisDomain ], combineActiveTooltipIndex); var selectTooltipDataKey = (state, tooltipEventType, trigger) => { if (tooltipEventType == null) return; var tooltipState = selectTooltipState(state); if (tooltipEventType === "axis") { if (trigger === "hover") return tooltipState.axisInteraction.hover.dataKey; return tooltipState.axisInteraction.click.dataKey; } if (trigger === "hover") return tooltipState.itemInteraction.hover.dataKey; return tooltipState.itemInteraction.click.dataKey; }; var selectTooltipPayloadConfigurations = createSelector([ selectTooltipState, pickTooltipEventType, pickTrigger, pickDefaultIndex ], combineTooltipPayloadConfigurations); var selectCoordinateForDefaultIndex = createSelector([ selectChartWidth, selectChartHeight, selectChartLayout, selectChartOffsetInternal, selectTooltipAxisTicks, pickDefaultIndex, selectTooltipPayloadConfigurations ], combineCoordinateForDefaultIndex); var selectActiveCoordinate = createSelector([selectTooltipInteractionState, selectCoordinateForDefaultIndex], (tooltipInteractionState, defaultIndexCoordinate) => { var _tooltipInteractionSt; return (_tooltipInteractionSt = tooltipInteractionState.coordinate) !== null && _tooltipInteractionSt !== void 0 ? _tooltipInteractionSt : defaultIndexCoordinate; }); var selectActiveLabel = createSelector([selectTooltipAxisTicks, selectActiveIndex], combineActiveLabel); var selectTooltipPayload = createSelector([ selectTooltipPayloadConfigurations, selectActiveIndex, selectChartDataWithIndexes, selectTooltipAxisDataKey, selectActiveLabel, selectTooltipPayloadSearcher, pickTooltipEventType ], combineTooltipPayload); var selectIsTooltipActive = createSelector([selectTooltipInteractionState, selectActiveIndex], (tooltipInteractionState, activeIndex) => { return { isActive: tooltipInteractionState.active && activeIndex != null, activeIndex }; }); var combineActiveCartesianProps = (chartEvent, layout, tooltipAxisType, tooltipAxisRange, tooltipTicks, orderedTooltipTicks, offset) => { if (!chartEvent || !tooltipAxisType || !tooltipAxisRange || !tooltipTicks) return; if (!isInCartesianRange(chartEvent, offset)) return; var activeIndex = calculateActiveTickIndex(calculateCartesianTooltipPos(chartEvent, layout), orderedTooltipTicks, tooltipTicks, tooltipAxisType, tooltipAxisRange); var activeCoordinate = getActiveCartesianCoordinate(layout, tooltipTicks, activeIndex, chartEvent); return { activeIndex: String(activeIndex), activeCoordinate }; }; var combineActivePolarProps = (chartEvent, layout, polarViewBox, tooltipAxisType, tooltipAxisRange, tooltipTicks, orderedTooltipTicks) => { if (!chartEvent || !tooltipAxisType || !tooltipAxisRange || !tooltipTicks || !polarViewBox) return; var rangeObj = inRangeOfSector(chartEvent, polarViewBox); if (!rangeObj) return; var activeIndex = calculateActiveTickIndex(calculatePolarTooltipPos(rangeObj, layout), orderedTooltipTicks, tooltipTicks, tooltipAxisType, tooltipAxisRange); var activeCoordinate = getActivePolarCoordinate(layout, tooltipTicks, activeIndex, rangeObj); return { activeIndex: String(activeIndex), activeCoordinate }; }; var combineActiveProps = (chartEvent, layout, polarViewBox, tooltipAxisType, tooltipAxisRange, tooltipTicks, orderedTooltipTicks, offset) => { if (!chartEvent || !layout || !tooltipAxisType || !tooltipAxisRange || !tooltipTicks) return; if (layout === "horizontal" || layout === "vertical") return combineActiveCartesianProps(chartEvent, layout, tooltipAxisType, tooltipAxisRange, tooltipTicks, orderedTooltipTicks, offset); return combineActivePolarProps(chartEvent, layout, polarViewBox, tooltipAxisType, tooltipAxisRange, tooltipTicks, orderedTooltipTicks); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/zIndex/zIndexSelectors.js /** * Given a zIndex, returns the corresponding portal element reference. * If no zIndex is provided or if the zIndex is not registered, returns undefined. * * It also returns undefined in case the z-index portal has not been rendered yet. */ var selectZIndexPortalElement = createSelector((state) => state.zIndex.zIndexMap, (_, zIndex) => zIndex, (_, _zIndex, isPanorama) => isPanorama, (zIndexMap, zIndex, isPanorama) => { if (zIndex == null) return; var entry = zIndexMap[zIndex]; if (entry == null) return; if (isPanorama) return entry.panoramaElement; return entry.element; }); var selectAllRegisteredZIndexes = createSelector((state) => state.zIndex.zIndexMap, (zIndexMap) => { var allNumbers = Object.keys(zIndexMap).map((zIndexStr) => parseInt(zIndexStr, 10)).concat(Object.values(DefaultZIndexes)); return Array.from(new Set(allNumbers)).sort((a, b) => a - b); }, { memoizeOptions: { resultEqualityCheck: arrayContentsAreEqualCheck } }); //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/zIndexSlice.js /** * This slice contains a registry of z-index values for various components. * The state is a map from z-index numbers to element references. */ function ownKeys$49(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$49(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$49(Object(t), !0).forEach(function(r) { _defineProperty$51(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$49(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$51(e, r, t) { return (r = _toPropertyKey$51(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$51(t) { var i = _toPrimitive$51(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$51(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var initialState$4 = { zIndexMap: Object.values(DefaultZIndexes).reduce((acc, current) => _objectSpread$49(_objectSpread$49({}, acc), {}, { [current]: { element: void 0, panoramaElement: void 0, consumers: 0 } }), {}) }; var defaultZIndexSet = new Set(Object.values(DefaultZIndexes)); function isDefaultZIndex(zIndex) { return defaultZIndexSet.has(zIndex); } var zIndexSlice = createSlice({ name: "zIndex", initialState: initialState$4, reducers: { registerZIndexPortal: { reducer: (state, action) => { var { zIndex } = action.payload; if (state.zIndexMap[zIndex]) state.zIndexMap[zIndex].consumers += 1; else state.zIndexMap[zIndex] = { consumers: 1, element: void 0, panoramaElement: void 0 }; }, prepare: prepareAutoBatched() }, unregisterZIndexPortal: { reducer: (state, action) => { var { zIndex } = action.payload; if (state.zIndexMap[zIndex]) { state.zIndexMap[zIndex].consumers -= 1; if (state.zIndexMap[zIndex].consumers <= 0 && !isDefaultZIndex(zIndex)) delete state.zIndexMap[zIndex]; } }, prepare: prepareAutoBatched() }, registerZIndexPortalElement: { reducer: (state, action) => { var { zIndex, element, isPanorama } = action.payload; if (state.zIndexMap[zIndex]) if (isPanorama) state.zIndexMap[zIndex].panoramaElement = castDraft(element); else state.zIndexMap[zIndex].element = castDraft(element); else state.zIndexMap[zIndex] = { consumers: 0, element: isPanorama ? void 0 : castDraft(element), panoramaElement: isPanorama ? castDraft(element) : void 0 }; }, prepare: prepareAutoBatched() }, unregisterZIndexPortalElement: { reducer: (state, action) => { var { zIndex } = action.payload; if (state.zIndexMap[zIndex]) if (action.payload.isPanorama) state.zIndexMap[zIndex].panoramaElement = void 0; else state.zIndexMap[zIndex].element = void 0; }, prepare: prepareAutoBatched() } } }); var { registerZIndexPortal, unregisterZIndexPortal, registerZIndexPortalElement, unregisterZIndexPortalElement } = zIndexSlice.actions; var zIndexReducer = zIndexSlice.reducer; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/zIndex/ZIndexLayer.js /** * @since 3.4 */ /** * A layer that renders its children into a portal corresponding to the given zIndex. * We can't use regular CSS `z-index` because SVG does not support it. * So instead, we create separate DOM nodes for each zIndex layer * and render the children into the corresponding DOM node using React portals. * * This component must be used inside a Chart component. * * @param zIndex numeric zIndex value, higher values are rendered on top of lower values * @param children the content to render inside this zIndex layer * * @since 3.4 */ function ZIndexLayer(_ref) { var { zIndex, children } = _ref; var shouldRenderInPortal = useIsInChartContext() && zIndex !== void 0 && zIndex !== 0; var isPanorama = useIsPanorama(); /** * When zIndex changes, the new portal element is not immediately available because * it requires a full render cycle through AllZIndexPortals → ZIndexSvgPortal. * During this transition we keep rendering into the previous portal element * to avoid an unmount/remount cycle that would cause children to briefly disappear. * * `registeredZIndexesRef` tracks every zIndex we have registered so that * we can defer unregistration of old values until the new portal is ready. * `lastPortalElementRef` caches the most recent valid portal DOM node. */ var lastPortalElementRef = (0, import_react.useRef)(void 0); var registeredZIndexesRef = (0, import_react.useRef)(/* @__PURE__ */ new Set()); var dispatch = useAppDispatch(); var portalElement = useAppSelector((state) => selectZIndexPortalElement(state, zIndex, isPanorama)); (0, import_react.useLayoutEffect)(() => { if (!shouldRenderInPortal) { var registered = registeredZIndexesRef.current; registered.forEach((z) => { dispatch(unregisterZIndexPortal({ zIndex: z })); }); registered.clear(); lastPortalElementRef.current = void 0; return; } if (!registeredZIndexesRef.current.has(zIndex)) { dispatch(registerZIndexPortal({ zIndex })); registeredZIndexesRef.current.add(zIndex); } if (portalElement) { lastPortalElementRef.current = portalElement; var _registered = registeredZIndexesRef.current; _registered.forEach((z) => { if (z !== zIndex) { dispatch(unregisterZIndexPortal({ zIndex: z })); _registered.delete(z); } }); } }, [ dispatch, zIndex, shouldRenderInPortal, portalElement ]); (0, import_react.useLayoutEffect)(() => { var registered = registeredZIndexesRef.current; return () => { registered.forEach((z) => { dispatch(unregisterZIndexPortal({ zIndex: z })); }); registered.clear(); }; }, [dispatch]); if (!shouldRenderInPortal) return children; var targetElement = portalElement !== null && portalElement !== void 0 ? portalElement : lastPortalElementRef.current; if (!targetElement) return null; return /* @__PURE__ */ (0, import_react_dom.createPortal)(children, targetElement); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/Cursor.js function _extends$41() { return _extends$41 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$41.apply(null, arguments); } function ownKeys$48(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$48(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$48(Object(t), !0).forEach(function(r) { _defineProperty$50(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$48(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$50(e, r, t) { return (r = _toPropertyKey$50(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$50(t) { var i = _toPrimitive$50(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$50(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * If set false, no cursor will be drawn when tooltip is active. * If set an object, the option is the configuration of cursor. * If set a React element, the option is the custom react element of drawing cursor */ function RenderCursor(_ref) { var { cursor, cursorComp, cursorProps } = _ref; if (/* @__PURE__ */ (0, import_react.isValidElement)(cursor)) return /* @__PURE__ */ (0, import_react.cloneElement)(cursor, cursorProps); return /* @__PURE__ */ (0, import_react.createElement)(cursorComp, cursorProps); } function CursorInternal(props) { var _props$zIndex; var { coordinate, payload, index, offset, tooltipAxisBandSize, layout, cursor, tooltipEventType, chartName } = props; var activeCoordinate = coordinate; var activePayload = payload; var activeTooltipIndex = index; if (!cursor || !activeCoordinate || chartName !== "ScatterChart" && tooltipEventType !== "axis") return null; var restProps, cursorComp, preferredZIndex; if (chartName === "ScatterChart") { restProps = activeCoordinate; cursorComp = Cross; preferredZIndex = DefaultZIndexes.cursorLine; } else if (chartName === "BarChart") { restProps = getCursorRectangle(layout, activeCoordinate, offset, tooltipAxisBandSize); cursorComp = Rectangle; preferredZIndex = DefaultZIndexes.cursorRectangle; } else if (layout === "radial" && isPolarCoordinate(activeCoordinate)) { var { cx, cy, radius, startAngle, endAngle } = getRadialCursorPoints(activeCoordinate); restProps = { cx, cy, startAngle, endAngle, innerRadius: radius, outerRadius: radius }; cursorComp = Sector; preferredZIndex = DefaultZIndexes.cursorLine; } else { restProps = { points: getCursorPoints(layout, activeCoordinate, offset) }; cursorComp = Curve; preferredZIndex = DefaultZIndexes.cursorLine; } var extraClassName = typeof cursor === "object" && "className" in cursor ? cursor.className : void 0; var cursorProps = _objectSpread$48(_objectSpread$48(_objectSpread$48(_objectSpread$48({ stroke: "#ccc", pointerEvents: "none" }, offset), restProps), svgPropertiesNoEventsFromUnknown(cursor)), {}, { payload: activePayload, payloadIndex: activeTooltipIndex, className: clsx("recharts-tooltip-cursor", extraClassName) }); return /* @__PURE__ */ import_react.createElement(ZIndexLayer, { zIndex: (_props$zIndex = props.zIndex) !== null && _props$zIndex !== void 0 ? _props$zIndex : preferredZIndex }, /* @__PURE__ */ import_react.createElement(RenderCursor, { cursor, cursorComp, cursorProps })); } function Cursor(props) { var tooltipAxisBandSize = useTooltipAxisBandSize(); var offset = useOffsetInternal(); var layout = useChartLayout(); var chartName = useChartName(); if (tooltipAxisBandSize == null || offset == null || layout == null || chartName == null) return null; return /* @__PURE__ */ import_react.createElement(CursorInternal, _extends$41({}, props, { offset, layout, tooltipAxisBandSize, chartName })); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/context/tooltipPortalContext.js var TooltipPortalContext = /* @__PURE__ */ (0, import_react.createContext)(null); var useTooltipPortal = () => (0, import_react.useContext)(TooltipPortalContext); var eventemitter3_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => { var has = Object.prototype.hasOwnProperty, prefix = "~"; /** * Constructor to create a storage for our `EE` objects. * An `Events` instance is a plain object whose properties are event names. * * @constructor * @private */ function Events() {} if (Object.create) { Events.prototype = Object.create(null); if (!new Events().__proto__) prefix = false; } /** * Representation of a single event listener. * * @param {Function} fn The listener function. * @param {*} context The context to invoke the listener with. * @param {Boolean} [once=false] Specify if the listener is a one-time listener. * @constructor * @private */ function EE(fn, context, once) { this.fn = fn; this.context = context; this.once = once || false; } /** * Add a listener for a given event. * * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. * @param {(String|Symbol)} event The event name. * @param {Function} fn The listener function. * @param {*} context The context to invoke the listener with. * @param {Boolean} once Specify if the listener is a one-time listener. * @returns {EventEmitter} * @private */ function addListener(emitter, event, fn, context, once) { if (typeof fn !== "function") throw new TypeError("The listener must be a function"); var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event; if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++; else if (!emitter._events[evt].fn) emitter._events[evt].push(listener); else emitter._events[evt] = [emitter._events[evt], listener]; return emitter; } /** * Clear event by name. * * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. * @param {(String|Symbol)} evt The Event name. * @private */ function clearEvent(emitter, evt) { if (--emitter._eventsCount === 0) emitter._events = new Events(); else delete emitter._events[evt]; } /** * Minimal `EventEmitter` interface that is molded against the Node.js * `EventEmitter` interface. * * @constructor * @public */ function EventEmitter() { this._events = new Events(); this._eventsCount = 0; } /** * Return an array listing the events for which the emitter has registered * listeners. * * @returns {Array} * @public */ EventEmitter.prototype.eventNames = function eventNames() { var names = [], events, name; if (this._eventsCount === 0) return names; for (name in events = this._events) if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); if (Object.getOwnPropertySymbols) return names.concat(Object.getOwnPropertySymbols(events)); return names; }; /** * Return the listeners registered for a given event. * * @param {(String|Symbol)} event The event name. * @returns {Array} The registered listeners. * @public */ EventEmitter.prototype.listeners = function listeners(event) { var evt = prefix ? prefix + event : event, handlers = this._events[evt]; if (!handlers) return []; if (handlers.fn) return [handlers.fn]; for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) ee[i] = handlers[i].fn; return ee; }; /** * Return the number of listeners listening to a given event. * * @param {(String|Symbol)} event The event name. * @returns {Number} The number of listeners. * @public */ EventEmitter.prototype.listenerCount = function listenerCount(event) { var evt = prefix ? prefix + event : event, listeners = this._events[evt]; if (!listeners) return 0; if (listeners.fn) return 1; return listeners.length; }; /** * Calls each of the listeners registered for a given event. * * @param {(String|Symbol)} event The event name. * @returns {Boolean} `true` if the event had listeners, else `false`. * @public */ EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { var evt = prefix ? prefix + event : event; if (!this._events[evt]) return false; var listeners = this._events[evt], len = arguments.length, args, i; if (listeners.fn) { if (listeners.once) this.removeListener(event, listeners.fn, void 0, true); switch (len) { case 1: return listeners.fn.call(listeners.context), true; case 2: return listeners.fn.call(listeners.context, a1), true; case 3: return listeners.fn.call(listeners.context, a1, a2), true; case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true; case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; } for (i = 1, args = new Array(len - 1); i < len; i++) args[i - 1] = arguments[i]; listeners.fn.apply(listeners.context, args); } else { var length = listeners.length, j; for (i = 0; i < length; i++) { if (listeners[i].once) this.removeListener(event, listeners[i].fn, void 0, true); switch (len) { case 1: listeners[i].fn.call(listeners[i].context); break; case 2: listeners[i].fn.call(listeners[i].context, a1); break; case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break; case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break; default: if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) args[j - 1] = arguments[j]; listeners[i].fn.apply(listeners[i].context, args); } } } return true; }; /** * Add a listener for a given event. * * @param {(String|Symbol)} event The event name. * @param {Function} fn The listener function. * @param {*} [context=this] The context to invoke the listener with. * @returns {EventEmitter} `this`. * @public */ EventEmitter.prototype.on = function on(event, fn, context) { return addListener(this, event, fn, context, false); }; /** * Add a one-time listener for a given event. * * @param {(String|Symbol)} event The event name. * @param {Function} fn The listener function. * @param {*} [context=this] The context to invoke the listener with. * @returns {EventEmitter} `this`. * @public */ EventEmitter.prototype.once = function once(event, fn, context) { return addListener(this, event, fn, context, true); }; /** * Remove the listeners of a given event. * * @param {(String|Symbol)} event The event name. * @param {Function} fn Only remove the listeners that match this function. * @param {*} context Only remove the listeners that have this context. * @param {Boolean} once Only remove one-time listeners. * @returns {EventEmitter} `this`. * @public */ EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { var evt = prefix ? prefix + event : event; if (!this._events[evt]) return this; if (!fn) { clearEvent(this, evt); return this; } var listeners = this._events[evt]; if (listeners.fn) { if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) clearEvent(this, evt); } else { for (var i = 0, events = [], length = listeners.length; i < length; i++) if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) events.push(listeners[i]); if (events.length) this._events[evt] = events.length === 1 ? events[0] : events; else clearEvent(this, evt); } return this; }; /** * Remove all listeners, or those of the specified event. * * @param {(String|Symbol)} [event] The event name. * @returns {EventEmitter} `this`. * @public */ EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { var evt; if (event) { evt = prefix ? prefix + event : event; if (this._events[evt]) clearEvent(this, evt); } else { this._events = new Events(); this._eventsCount = 0; } return this; }; EventEmitter.prototype.off = EventEmitter.prototype.removeListener; EventEmitter.prototype.addListener = EventEmitter.prototype.on; EventEmitter.prefixed = prefix; EventEmitter.EventEmitter = EventEmitter; if ("undefined" !== typeof module) module.exports = EventEmitter; })))(), 1)).default; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/Events.js var eventCenter = new eventemitter3_default(); var TOOLTIP_SYNC_EVENT = "recharts.syncEvent.tooltip"; var BRUSH_SYNC_EVENT = "recharts.syncEvent.brush"; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/state/optionsSlice.js /** * These chart options are decided internally, by Recharts, * and will not change during the lifetime of the chart. * * Changing these options can be done by swapping the root element * which will make a brand-new Redux store. * * If you want to store options that can be changed by the user, * use UpdatableChartOptions in rootPropsSlice.ts. */ var arrayTooltipSearcher = (data, strIndex) => { if (!strIndex) return void 0; if (!Array.isArray(data)) return void 0; var numIndex = Number.parseInt(strIndex, 10); if (isNan(numIndex)) return; return data[numIndex]; }; var optionsSlice = createSlice({ name: "options", initialState: { chartName: "", tooltipPayloadSearcher: () => void 0, eventEmitter: void 0, defaultTooltipEventType: "axis" }, reducers: { createEventEmitter: (state) => { if (state.eventEmitter == null) state.eventEmitter = Symbol("rechartsEventEmitter"); } } }); var optionsReducer = optionsSlice.reducer; var { createEventEmitter } = optionsSlice.actions; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/synchronisation/syncSelectors.js function selectSynchronisedTooltipState(state) { return state.tooltip.syncInteraction; } var chartDataSlice = createSlice({ name: "chartData", initialState: { chartData: void 0, computedData: void 0, dataStartIndex: 0, dataEndIndex: 0 }, reducers: { setChartData(state, action) { state.chartData = castDraft(action.payload); if (action.payload == null) { state.dataStartIndex = 0; state.dataEndIndex = 0; return; } if (action.payload.length > 0 && state.dataEndIndex !== action.payload.length - 1) state.dataEndIndex = action.payload.length - 1; }, setComputedData(state, action) { state.computedData = action.payload; }, setDataStartEndIndexes(state, action) { var { startIndex, endIndex } = action.payload; if (startIndex != null) state.dataStartIndex = startIndex; if (endIndex != null) state.dataEndIndex = endIndex; } } }); var { setChartData, setDataStartEndIndexes, setComputedData } = chartDataSlice.actions; var chartDataReducer = chartDataSlice.reducer; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/synchronisation/useChartSynchronisation.js var _excluded$32 = ["x", "y"]; function ownKeys$47(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$47(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$47(Object(t), !0).forEach(function(r) { _defineProperty$49(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$47(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$49(e, r, t) { return (r = _toPropertyKey$49(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$49(t) { var i = _toPrimitive$49(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$49(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function _objectWithoutProperties$32(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$32(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$32(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } /** * Listens for tooltip sync events from other charts and dispatches the appropriate * sync interaction state based on the current chart's syncMethod. * * Handles three sync methods: * - 'index': passes through the tooltip index with coordinate scaling between chart viewBoxes * - 'value': matches the incoming label against this chart's axis ticks by string comparison * - function: delegates tick resolution to a user-provided callback * * When a synced label has no matching tick (e.g. sparse chart), the tooltip is hidden * but sourceViewBox is preserved to prevent counter-emission cascades. */ function useTooltipSyncEventsListener() { var mySyncId = useAppSelector(selectSyncId); var myEventEmitter = useAppSelector(selectEventEmitter); var dispatch = useAppDispatch(); var syncMethod = useAppSelector(selectSyncMethod); var tooltipTicks = useAppSelector(selectTooltipAxisTicks); var layout = useChartLayout(); var viewBox = useViewBox(); (0, import_react.useEffect)(() => { if (mySyncId == null) return noop$2; var listener = (incomingSyncId, action, emitter) => { if (myEventEmitter === emitter) return; if (mySyncId !== incomingSyncId) return; if (action.payload.active === false) { dispatch(setSyncInteraction({ active: false, coordinate: void 0, dataKey: void 0, index: null, label: void 0, sourceViewBox: void 0, graphicalItemId: void 0 })); return; } if (syncMethod === "index") { var _action$payload; if (viewBox && action !== null && action !== void 0 && (_action$payload = action.payload) !== null && _action$payload !== void 0 && _action$payload.coordinate && action.payload.sourceViewBox) { var _action$payload$coord = action.payload.coordinate, { x: _x, y: _y } = _action$payload$coord, otherCoordinateProps = _objectWithoutProperties$32(_action$payload$coord, _excluded$32); var { x: sourceX, y: sourceY, width: sourceWidth, height: sourceHeight } = action.payload.sourceViewBox; var scaledCoordinate = _objectSpread$47(_objectSpread$47({}, otherCoordinateProps), {}, { x: viewBox.x + (sourceWidth ? (_x - sourceX) / sourceWidth : 0) * viewBox.width, y: viewBox.y + (sourceHeight ? (_y - sourceY) / sourceHeight : 0) * viewBox.height }); dispatch(_objectSpread$47(_objectSpread$47({}, action), {}, { payload: _objectSpread$47(_objectSpread$47({}, action.payload), {}, { coordinate: scaledCoordinate }) })); } else dispatch(action); return; } if (tooltipTicks == null) return; var activeTick; if (typeof syncMethod === "function") activeTick = tooltipTicks[syncMethod(tooltipTicks, { activeTooltipIndex: action.payload.index == null ? void 0 : Number(action.payload.index), isTooltipActive: action.payload.active, activeIndex: action.payload.index == null ? void 0 : Number(action.payload.index), activeLabel: action.payload.label, activeDataKey: action.payload.dataKey, activeCoordinate: action.payload.coordinate })]; else if (syncMethod === "value") activeTick = tooltipTicks.find((tick) => String(tick.value) === action.payload.label); var { coordinate } = action.payload; if (coordinate == null || viewBox == null) { dispatch(setSyncInteraction({ active: false, coordinate: void 0, dataKey: void 0, index: null, label: void 0, sourceViewBox: void 0, graphicalItemId: void 0 })); return; } if (activeTick == null) { dispatch(setSyncInteraction({ active: false, coordinate: void 0, dataKey: void 0, index: null, label: void 0, sourceViewBox: action.payload.sourceViewBox, graphicalItemId: void 0 })); return; } var { x, y } = coordinate; var validateChartX = Math.min(x, viewBox.x + viewBox.width); var validateChartY = Math.min(y, viewBox.y + viewBox.height); var activeCoordinate = { x: layout === "horizontal" ? activeTick.coordinate : validateChartX, y: layout === "horizontal" ? validateChartY : activeTick.coordinate }; dispatch(setSyncInteraction({ active: action.payload.active, coordinate: activeCoordinate, dataKey: action.payload.dataKey, index: String(activeTick.index), label: action.payload.label, sourceViewBox: action.payload.sourceViewBox, graphicalItemId: action.payload.graphicalItemId })); }; eventCenter.on(TOOLTIP_SYNC_EVENT, listener); return () => { eventCenter.off(TOOLTIP_SYNC_EVENT, listener); }; }, [ useAppSelector((state) => state.rootProps.className), dispatch, myEventEmitter, mySyncId, syncMethod, tooltipTicks, layout, viewBox ]); } /** * Listens for brush sync events from other charts and updates this chart's * data start/end indexes to match, keeping brush positions synchronised. */ function useBrushSyncEventsListener() { var mySyncId = useAppSelector(selectSyncId); var myEventEmitter = useAppSelector(selectEventEmitter); var dispatch = useAppDispatch(); (0, import_react.useEffect)(() => { if (mySyncId == null) return noop$2; var listener = (incomingSyncId, action, emitter) => { if (myEventEmitter === emitter) return; if (mySyncId === incomingSyncId) dispatch(setDataStartEndIndexes(action)); }; eventCenter.on(BRUSH_SYNC_EVENT, listener); return () => { eventCenter.off(BRUSH_SYNC_EVENT, listener); }; }, [ dispatch, myEventEmitter, mySyncId ]); } /** * Will receive synchronisation events from other charts. * * Reads syncMethod from state and decides how to synchronise the tooltip based on that. * * @returns void */ function useSynchronisedEventsFromOtherCharts() { var dispatch = useAppDispatch(); (0, import_react.useEffect)(() => { dispatch(createEventEmitter()); }, [dispatch]); useTooltipSyncEventsListener(); useBrushSyncEventsListener(); } /** * Will send events to other charts. * If syncId is undefined, no events will be sent. * * This ignores the syncMethod, because that is set and computed on the receiving end. * * Outgoing emissions are suppressed when `isReceivingSynchronisation` is true, * which is determined by the presence of `sourceViewBox` in the sync state (not by * the tooltip's `active` flag). This matters for charts with sparse data: when an * incoming sync label has no matching tick, the tooltip becomes inactive but * `sourceViewBox` remains set, so the chart is still considered "receiving" and * will not emit a counter-sync event that would cascade-clear other charts' tooltips. * * @param tooltipEventType from Tooltip * @param trigger from Tooltip * @param activeCoordinate from state * @param activeLabel from state * @param activeIndex from state * @param isTooltipActive from state * @returns void */ function useTooltipChartSynchronisation(tooltipEventType, trigger, activeCoordinate, activeLabel, activeIndex, isTooltipActive) { var activeDataKey = useAppSelector((state) => selectTooltipDataKey(state, tooltipEventType, trigger)); var activeGraphicalItemId = useAppSelector(selectActiveTooltipGraphicalItemId); var eventEmitterSymbol = useAppSelector(selectEventEmitter); var syncId = useAppSelector(selectSyncId); var syncMethod = useAppSelector(selectSyncMethod); var tooltipState = useAppSelector(selectSynchronisedTooltipState); var isReceivingSynchronisation = (tooltipState === null || tooltipState === void 0 ? void 0 : tooltipState.sourceViewBox) != null; var viewBox = useViewBox(); (0, import_react.useEffect)(() => { if (isReceivingSynchronisation) return; if (syncId == null) return; if (eventEmitterSymbol == null) return; var syncAction = setSyncInteraction({ active: isTooltipActive, coordinate: activeCoordinate, dataKey: activeDataKey, index: activeIndex, label: typeof activeLabel === "number" ? String(activeLabel) : activeLabel, sourceViewBox: viewBox, graphicalItemId: activeGraphicalItemId }); eventCenter.emit(TOOLTIP_SYNC_EVENT, syncId, syncAction, eventEmitterSymbol); }, [ isReceivingSynchronisation, activeCoordinate, activeDataKey, activeGraphicalItemId, activeIndex, activeLabel, eventEmitterSymbol, syncId, syncMethod, isTooltipActive, viewBox ]); } /** * Emits brush sync events to other charts when the brush start/end indexes change. * If syncId is undefined, no events will be sent. */ function useBrushChartSynchronisation() { var syncId = useAppSelector(selectSyncId); var eventEmitterSymbol = useAppSelector(selectEventEmitter); var brushStartIndex = useAppSelector((state) => state.chartData.dataStartIndex); var brushEndIndex = useAppSelector((state) => state.chartData.dataEndIndex); (0, import_react.useEffect)(() => { if (syncId == null || brushStartIndex == null || brushEndIndex == null || eventEmitterSymbol == null) return; var syncAction = { startIndex: brushStartIndex, endIndex: brushEndIndex }; eventCenter.emit(BRUSH_SYNC_EVENT, syncId, syncAction, eventEmitterSymbol); }, [ brushEndIndex, brushStartIndex, eventEmitterSymbol, syncId ]); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/Tooltip.js function ownKeys$46(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$46(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$46(Object(t), !0).forEach(function(r) { _defineProperty$48(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$46(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$48(e, r, t) { return (r = _toPropertyKey$48(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$48(t) { var i = _toPrimitive$48(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$48(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function defaultUniqBy(entry) { return entry.dataKey; } function renderContent(content, props) { if (/* @__PURE__ */ import_react.isValidElement(content)) return /* @__PURE__ */ import_react.cloneElement(content, props); if (typeof content === "function") return /* @__PURE__ */ import_react.createElement(content, props); return /* @__PURE__ */ import_react.createElement(DefaultTooltipContent, props); } var emptyPayload = []; var defaultTooltipProps = { allowEscapeViewBox: { x: false, y: false }, animationDuration: 400, animationEasing: "ease", axisId: 0, contentStyle: {}, cursor: true, filterNull: true, includeHidden: false, isAnimationActive: "auto", itemSorter: "name", itemStyle: {}, labelStyle: {}, offset: 10, reverseDirection: { x: false, y: false }, separator: " : ", trigger: "hover", useTranslate3d: false, wrapperStyle: {} }; /** * The Tooltip component displays a floating box with data values when hovering over or clicking on chart elements. * * It can be configured to show information for individual data points or for all points at a specific axis coordinate. * The appearance and content of the tooltip can be customized via props. * * @see {@link https://github.com/recharts/recharts/wiki/Tooltip-event-type-and-shared-prop Tooltip event type and shared prop wiki page} * @see {@link https://recharts.github.io/en-US/guide/activeIndex/ Active index replacement when migrating from Recharts v2 to v3} * * @consumes CartesianChartContext * @consumes PolarChartContext * @consumes TooltipEntrySettings */ function Tooltip(outsideProps) { var _useAppSelector, _ref; var props = resolveDefaultProps(outsideProps, defaultTooltipProps); var { active: activeFromProps, allowEscapeViewBox, animationDuration, animationEasing, content, filterNull, isAnimationActive, offset, payloadUniqBy, position, reverseDirection, useTranslate3d, wrapperStyle, cursor, shared, trigger, defaultIndex, portal: portalFromProps, axisId } = props; var dispatch = useAppDispatch(); var defaultIndexAsString = typeof defaultIndex === "number" ? String(defaultIndex) : defaultIndex; (0, import_react.useEffect)(() => { dispatch(setTooltipSettingsState({ shared, trigger, axisId, active: activeFromProps, defaultIndex: defaultIndexAsString })); }, [ dispatch, shared, trigger, axisId, activeFromProps, defaultIndexAsString ]); var viewBox = useViewBox(); var accessibilityLayer = useAccessibilityLayer(); var tooltipEventType = useTooltipEventType(shared); var { activeIndex, isActive } = (_useAppSelector = useAppSelector((state) => selectIsTooltipActive(state, tooltipEventType, trigger, defaultIndexAsString))) !== null && _useAppSelector !== void 0 ? _useAppSelector : {}; var payloadFromRedux = useAppSelector((state) => selectTooltipPayload(state, tooltipEventType, trigger, defaultIndexAsString)); var labelFromRedux = useAppSelector((state) => selectActiveLabel(state, tooltipEventType, trigger, defaultIndexAsString)); var coordinate = useAppSelector((state) => selectActiveCoordinate(state, tooltipEventType, trigger, defaultIndexAsString)); var payload = payloadFromRedux; var tooltipPortalFromContext = useTooltipPortal(); var finalIsActive = (_ref = activeFromProps !== null && activeFromProps !== void 0 ? activeFromProps : isActive) !== null && _ref !== void 0 ? _ref : false; var [lastBoundingBox, updateBoundingBox] = useElementOffset([payload, finalIsActive]); var finalLabel = tooltipEventType === "axis" ? labelFromRedux : void 0; useTooltipChartSynchronisation(tooltipEventType, trigger, coordinate, finalLabel, activeIndex, finalIsActive); var tooltipPortal = portalFromProps !== null && portalFromProps !== void 0 ? portalFromProps : tooltipPortalFromContext; if (tooltipPortal == null || viewBox == null || tooltipEventType == null) return null; var finalPayload = payload !== null && payload !== void 0 ? payload : emptyPayload; if (!finalIsActive) finalPayload = emptyPayload; if (filterNull && finalPayload.length) finalPayload = getUniqPayload(finalPayload.filter((entry) => entry.value != null && (entry.hide !== true || props.includeHidden)), payloadUniqBy, defaultUniqBy); var hasPayload = finalPayload.length > 0; var tooltipContentProps = _objectSpread$46(_objectSpread$46({}, props), {}, { payload: finalPayload, label: finalLabel, active: finalIsActive, activeIndex, coordinate, accessibilityLayer }); var tooltipElement = /* @__PURE__ */ import_react.createElement(TooltipBoundingBox, { allowEscapeViewBox, animationDuration, animationEasing, isAnimationActive, active: finalIsActive, coordinate, hasPayload, offset, position, reverseDirection, useTranslate3d, viewBox, wrapperStyle, lastBoundingBox, innerRef: updateBoundingBox, hasPortalFromProps: Boolean(portalFromProps) }, renderContent(content, tooltipContentProps)); return /* @__PURE__ */ import_react.createElement(import_react.Fragment, null, /* @__PURE__ */ (0, import_react_dom.createPortal)(tooltipElement, tooltipPortal), finalIsActive && /* @__PURE__ */ import_react.createElement(Cursor, { cursor, tooltipEventType, coordinate, payload: finalPayload, index: activeIndex })); } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/Cell.js /** * Cell component used to define colors and styles of chart elements. * * This component is now deprecated and will be removed in Recharts 4.0. * * Please use the `shape` prop or `content` prop on the respective chart components * to customize the rendering of chart elements instead of using `Cell`. * * @see {@link https://recharts.github.io/en-US/guide/cell/ Guide: Migrate from Cell component to shape prop} * * @deprecated * @consumes CellReader */ var Cell = (_props) => null; Cell.displayName = "Cell"; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/LRUCache.js function _defineProperty$47(e, r, t) { return (r = _toPropertyKey$47(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$47(t) { var i = _toPrimitive$47(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$47(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * Simple LRU (Least Recently Used) cache implementation */ var LRUCache = class { constructor(maxSize) { _defineProperty$47(this, "cache", /* @__PURE__ */ new Map()); this.maxSize = maxSize; } get(key) { var value = this.cache.get(key); if (value !== void 0) { this.cache.delete(key); this.cache.set(key, value); } return value; } set(key, value) { if (this.cache.has(key)) this.cache.delete(key); else if (this.cache.size >= this.maxSize) { var firstKey = this.cache.keys().next().value; if (firstKey != null) this.cache.delete(firstKey); } this.cache.set(key, value); } clear() { this.cache.clear(); } size() { return this.cache.size; } }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/DOMUtils.js function ownKeys$45(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$45(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$45(Object(t), !0).forEach(function(r) { _defineProperty$46(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$45(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$46(e, r, t) { return (r = _toPropertyKey$46(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$46(t) { var i = _toPrimitive$46(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$46(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var currentConfig = _objectSpread$45({}, { cacheSize: 2e3, enableCache: true }); var stringCache = new LRUCache(currentConfig.cacheSize); var SPAN_STYLE = { position: "absolute", top: "-20000px", left: 0, padding: 0, margin: 0, border: "none", whiteSpace: "pre" }; var MEASUREMENT_SPAN_ID = "recharts_measurement_span"; function createCacheKey(text, style) { var fontSize = style.fontSize || ""; var fontFamily = style.fontFamily || ""; var fontWeight = style.fontWeight || ""; var fontStyle = style.fontStyle || ""; var letterSpacing = style.letterSpacing || ""; var textTransform = style.textTransform || ""; return "".concat(text, "|").concat(fontSize, "|").concat(fontFamily, "|").concat(fontWeight, "|").concat(fontStyle, "|").concat(letterSpacing, "|").concat(textTransform); } /** * Measure text using DOM (accurate but slower) * @param text - The text to measure * @param style - CSS style properties to apply * @returns The size of the text */ var measureTextWithDOM = (text, style) => { try { var measurementSpan = document.getElementById(MEASUREMENT_SPAN_ID); if (!measurementSpan) { measurementSpan = document.createElement("span"); measurementSpan.setAttribute("id", MEASUREMENT_SPAN_ID); measurementSpan.setAttribute("aria-hidden", "true"); document.body.appendChild(measurementSpan); } Object.assign(measurementSpan.style, SPAN_STYLE, style); measurementSpan.textContent = "".concat(text); var rect = measurementSpan.getBoundingClientRect(); return { width: rect.width, height: rect.height }; } catch (_unused) { return { width: 0, height: 0 }; } }; var getStringSize = function getStringSize(text) { var style = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; if (text === void 0 || text === null || Global.isSsr) return { width: 0, height: 0 }; if (!currentConfig.enableCache) return measureTextWithDOM(text, style); var cacheKey = createCacheKey(text, style); var cachedResult = stringCache.get(cacheKey); if (cachedResult) return cachedResult; var result = measureTextWithDOM(text, style); stringCache.set(cacheKey, result); return result; }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/util/ReduceCSSCalc.js var _DecimalCSS; function _defineProperty$45(e, r, t) { return (r = _toPropertyKey$45(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$45(t) { var i = _toPrimitive$45(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$45(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } var MULTIPLY_OR_DIVIDE_REGEX = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/; var ADD_OR_SUBTRACT_REGEX = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/; var CSS_LENGTH_UNIT_REGEX = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/; var NUM_SPLIT_REGEX = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/; var CONVERSION_RATES = { cm: 96 / 2.54, mm: 96 / 25.4, pt: 96 / 72, pc: 96 / 6, in: 96, Q: 96 / (2.54 * 40), px: 1 }; var FIXED_CSS_LENGTH_UNITS = [ "cm", "mm", "pt", "pc", "in", "Q", "px" ]; function isSupportedUnit(unit) { return FIXED_CSS_LENGTH_UNITS.includes(unit); } var STR_NAN = "NaN"; function convertToPx(value, unit) { return value * CONVERSION_RATES[unit]; } var DecimalCSS = class DecimalCSS { static parse(str) { var _NUM_SPLIT_REGEX$exec; var [, numStr, unit] = (_NUM_SPLIT_REGEX$exec = NUM_SPLIT_REGEX.exec(str)) !== null && _NUM_SPLIT_REGEX$exec !== void 0 ? _NUM_SPLIT_REGEX$exec : []; if (numStr == null) return DecimalCSS.NaN; return new DecimalCSS(parseFloat(numStr), unit !== null && unit !== void 0 ? unit : ""); } constructor(num, unit) { this.num = num; this.unit = unit; this.num = num; this.unit = unit; if (isNan(num)) this.unit = ""; if (unit !== "" && !CSS_LENGTH_UNIT_REGEX.test(unit)) { this.num = NaN; this.unit = ""; } if (isSupportedUnit(unit)) { this.num = convertToPx(num, unit); this.unit = "px"; } } add(other) { if (this.unit !== other.unit) return new DecimalCSS(NaN, ""); return new DecimalCSS(this.num + other.num, this.unit); } subtract(other) { if (this.unit !== other.unit) return new DecimalCSS(NaN, ""); return new DecimalCSS(this.num - other.num, this.unit); } multiply(other) { if (this.unit !== "" && other.unit !== "" && this.unit !== other.unit) return new DecimalCSS(NaN, ""); return new DecimalCSS(this.num * other.num, this.unit || other.unit); } divide(other) { if (this.unit !== "" && other.unit !== "" && this.unit !== other.unit) return new DecimalCSS(NaN, ""); return new DecimalCSS(this.num / other.num, this.unit || other.unit); } toString() { return "".concat(this.num).concat(this.unit); } isNaN() { return isNan(this.num); } }; _DecimalCSS = DecimalCSS; _defineProperty$45(DecimalCSS, "NaN", new _DecimalCSS(NaN, "")); function calculateArithmetic(expr) { if (expr == null || expr.includes(STR_NAN)) return STR_NAN; var newExpr = expr; while (newExpr.includes("*") || newExpr.includes("/")) { var _MULTIPLY_OR_DIVIDE_R; var [, leftOperand, operator, rightOperand] = (_MULTIPLY_OR_DIVIDE_R = MULTIPLY_OR_DIVIDE_REGEX.exec(newExpr)) !== null && _MULTIPLY_OR_DIVIDE_R !== void 0 ? _MULTIPLY_OR_DIVIDE_R : []; var lTs = DecimalCSS.parse(leftOperand !== null && leftOperand !== void 0 ? leftOperand : ""); var rTs = DecimalCSS.parse(rightOperand !== null && rightOperand !== void 0 ? rightOperand : ""); var result = operator === "*" ? lTs.multiply(rTs) : lTs.divide(rTs); if (result.isNaN()) return STR_NAN; newExpr = newExpr.replace(MULTIPLY_OR_DIVIDE_REGEX, result.toString()); } while (newExpr.includes("+") || /.-\d+(?:\.\d+)?/.test(newExpr)) { var _ADD_OR_SUBTRACT_REGE; var [, _leftOperand, _operator, _rightOperand] = (_ADD_OR_SUBTRACT_REGE = ADD_OR_SUBTRACT_REGEX.exec(newExpr)) !== null && _ADD_OR_SUBTRACT_REGE !== void 0 ? _ADD_OR_SUBTRACT_REGE : []; var _lTs = DecimalCSS.parse(_leftOperand !== null && _leftOperand !== void 0 ? _leftOperand : ""); var _rTs = DecimalCSS.parse(_rightOperand !== null && _rightOperand !== void 0 ? _rightOperand : ""); var _result = _operator === "+" ? _lTs.add(_rTs) : _lTs.subtract(_rTs); if (_result.isNaN()) return STR_NAN; newExpr = newExpr.replace(ADD_OR_SUBTRACT_REGEX, _result.toString()); } return newExpr; } var PARENTHESES_REGEX = /\(([^()]*)\)/; function calculateParentheses(expr) { var newExpr = expr; var match; while ((match = PARENTHESES_REGEX.exec(newExpr)) != null) { var [, parentheticalExpression] = match; newExpr = newExpr.replace(PARENTHESES_REGEX, calculateArithmetic(parentheticalExpression)); } return newExpr; } function evaluateExpression(expression) { var newExpr = expression.replace(/\s+/g, ""); newExpr = calculateParentheses(newExpr); newExpr = calculateArithmetic(newExpr); return newExpr; } function safeEvaluateExpression(expression) { try { return evaluateExpression(expression); } catch (_unused) { return STR_NAN; } } function reduceCSSCalc(expression) { var result = safeEvaluateExpression(expression.slice(5, -1)); if (result === STR_NAN) return ""; return result; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/Text.js var _excluded$31 = [ "x", "y", "lineHeight", "capHeight", "fill", "scaleToFit", "textAnchor", "verticalAnchor" ], _excluded2$16 = [ "dx", "dy", "angle", "className", "breakAll" ]; function _extends$40() { return _extends$40 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$40.apply(null, arguments); } function _objectWithoutProperties$31(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$31(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$31(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/; var calculateWordWidths = (_ref) => { var { children, breakAll, style } = _ref; try { var words = []; if (!isNullish(children)) if (breakAll) words = children.toString().split(""); else words = children.toString().split(BREAKING_SPACES); return { wordsWithComputedWidth: words.map((word) => ({ word, width: getStringSize(word, style).width })), spaceWidth: breakAll ? 0 : getStringSize("\xA0", style).width }; } catch (_unused) { return null; } }; /** * @inline */ function isValidTextAnchor(value) { return value === "start" || value === "middle" || value === "end" || value === "inherit"; } /** * @inline */ /** * @inline */ function isRenderableText(val) { return isNullish(val) || typeof val === "string" || typeof val === "number" || typeof val === "boolean"; } var calculate = (words, lineWidth, spaceWidth, scaleToFit) => words.reduce((result, _ref2) => { var { word, width } = _ref2; var currentLine = result[result.length - 1]; if (currentLine && width != null && (lineWidth == null || scaleToFit || currentLine.width + width + spaceWidth < Number(lineWidth))) { currentLine.words.push(word); currentLine.width += width + spaceWidth; } else { var newLine = { words: [word], width }; result.push(newLine); } return result; }, []); var findLongestLine = (words) => words.reduce((a, b) => a.width > b.width ? a : b); var suffix = "…"; var checkOverflow = (text, index, breakAll, style, maxLines, lineWidth, spaceWidth, scaleToFit) => { var words = calculateWordWidths({ breakAll, style, children: text.slice(0, index) + suffix }); if (!words) return [false, []]; var result = calculate(words.wordsWithComputedWidth, lineWidth, spaceWidth, scaleToFit); return [result.length > maxLines || findLongestLine(result).width > Number(lineWidth), result]; }; var calculateWordsByLines = (_ref3, initialWordsWithComputedWith, spaceWidth, lineWidth, scaleToFit) => { var { maxLines, children, style, breakAll } = _ref3; var shouldLimitLines = isNumber(maxLines); var text = String(children); var originalResult = calculate(initialWordsWithComputedWith, lineWidth, spaceWidth, scaleToFit); if (!shouldLimitLines || scaleToFit) return originalResult; if (!(originalResult.length > maxLines || findLongestLine(originalResult).width > Number(lineWidth))) return originalResult; var start = 0; var end = text.length - 1; var iterations = 0; var trimmedResult; while (start <= end && iterations <= text.length - 1) { var middle = Math.floor((start + end) / 2); var [doesPrevOverflow, result] = checkOverflow(text, middle - 1, breakAll, style, maxLines, lineWidth, spaceWidth, scaleToFit); var [doesMiddleOverflow] = checkOverflow(text, middle, breakAll, style, maxLines, lineWidth, spaceWidth, scaleToFit); if (!doesPrevOverflow && !doesMiddleOverflow) start = middle + 1; if (doesPrevOverflow && doesMiddleOverflow) end = middle - 1; if (!doesPrevOverflow && doesMiddleOverflow) { trimmedResult = result; break; } iterations++; } return trimmedResult || originalResult; }; var getWordsWithoutCalculate = (children) => { return [{ words: !isNullish(children) ? children.toString().split(BREAKING_SPACES) : [], width: void 0 }]; }; var getWordsByLines = (_ref4) => { var { width, scaleToFit, children, style, breakAll, maxLines } = _ref4; if ((width || scaleToFit) && !Global.isSsr) { var wordsWithComputedWidth, spaceWidth; var wordWidths = calculateWordWidths({ breakAll, children, style }); if (wordWidths) { var { wordsWithComputedWidth: wcw, spaceWidth: sw } = wordWidths; wordsWithComputedWidth = wcw; spaceWidth = sw; } else return getWordsWithoutCalculate(children); return calculateWordsByLines({ breakAll, children, maxLines, style }, wordsWithComputedWidth, spaceWidth, width, Boolean(scaleToFit)); } return getWordsWithoutCalculate(children); }; var DEFAULT_FILL = "#808080"; var textDefaultProps = { angle: 0, breakAll: false, capHeight: "0.71em", fill: DEFAULT_FILL, lineHeight: "1em", scaleToFit: false, textAnchor: "start", verticalAnchor: "end", x: 0, y: 0 }; var Text = /* @__PURE__ */ (0, import_react.forwardRef)((outsideProps, ref) => { var _resolveDefaultProps = resolveDefaultProps(outsideProps, textDefaultProps), { x: propsX, y: propsY, lineHeight, capHeight, fill, scaleToFit, textAnchor, verticalAnchor } = _resolveDefaultProps, props = _objectWithoutProperties$31(_resolveDefaultProps, _excluded$31); var wordsByLines = (0, import_react.useMemo)(() => { return getWordsByLines({ breakAll: props.breakAll, children: props.children, maxLines: props.maxLines, scaleToFit, style: props.style, width: props.width }); }, [ props.breakAll, props.children, props.maxLines, scaleToFit, props.style, props.width ]); var { dx, dy, angle, className, breakAll } = props, textProps = _objectWithoutProperties$31(props, _excluded2$16); if (!isNumOrStr(propsX) || !isNumOrStr(propsY) || wordsByLines.length === 0) return null; var x = Number(propsX) + (isNumber(dx) ? dx : 0); var y = Number(propsY) + (isNumber(dy) ? dy : 0); if (!isWellBehavedNumber(x) || !isWellBehavedNumber(y)) return null; var startDy; switch (verticalAnchor) { case "start": startDy = reduceCSSCalc("calc(".concat(capHeight, ")")); break; case "middle": startDy = reduceCSSCalc("calc(".concat((wordsByLines.length - 1) / 2, " * -").concat(lineHeight, " + (").concat(capHeight, " / 2))")); break; default: startDy = reduceCSSCalc("calc(".concat(wordsByLines.length - 1, " * -").concat(lineHeight, ")")); break; } var transforms = []; var firstLine = wordsByLines[0]; if (scaleToFit && firstLine != null) { var lineWidth = firstLine.width; var { width } = props; transforms.push("scale(".concat(isNumber(width) && isNumber(lineWidth) ? width / lineWidth : 1, ")")); } if (angle) transforms.push("rotate(".concat(angle, ", ").concat(x, ", ").concat(y, ")")); if (transforms.length) textProps.transform = transforms.join(" "); return /* @__PURE__ */ import_react.createElement("text", _extends$40({}, svgPropertiesAndEvents(textProps), { ref, x, y, className: clsx("recharts-text", className), textAnchor, fill: fill.includes("url") ? DEFAULT_FILL : fill }), wordsByLines.map((line, index) => { var words = line.words.join(breakAll ? "" : " "); return /* @__PURE__ */ import_react.createElement("tspan", { x, dy: index === 0 ? startDy : lineHeight, key: "".concat(words, "-").concat(index) }, words); })); }); Text.displayName = "Text"; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/cartesian/getCartesianPosition.js function ownKeys$44(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$44(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$44(Object(t), !0).forEach(function(r) { _defineProperty$44(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$44(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$44(e, r, t) { return (r = _toPropertyKey$44(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$44(t) { var i = _toPrimitive$44(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$44(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * Calculates the position and alignment for a generic element in a Cartesian coordinate system. * * @param options - The options including viewBox, position, and offset. * @returns The calculated x, y, alignment and size. */ var getCartesianPosition = (options) => { var { viewBox, position, offset = 0, parentViewBox: parentViewBoxFromOptions, clamp } = options; var { x, y, height, upperWidth, lowerWidth } = cartesianViewBoxToTrapezoid(viewBox); var upperX = x; var lowerX = x + (upperWidth - lowerWidth) / 2; var middleX = (upperX + lowerX) / 2; var midHeightWidth = (upperWidth + lowerWidth) / 2; var centerX = upperX + upperWidth / 2; var verticalSign = height >= 0 ? 1 : -1; var verticalOffset = verticalSign * offset; var verticalEnd = verticalSign > 0 ? "end" : "start"; var verticalStart = verticalSign > 0 ? "start" : "end"; var horizontalSign = upperWidth >= 0 ? 1 : -1; var horizontalOffset = horizontalSign * offset; var horizontalEnd = horizontalSign > 0 ? "end" : "start"; var horizontalStart = horizontalSign > 0 ? "start" : "end"; var parentViewBox = parentViewBoxFromOptions; if (position === "top") { var result = { x: upperX + upperWidth / 2, y: y - verticalOffset, horizontalAnchor: "middle", verticalAnchor: verticalEnd }; if (clamp && parentViewBox) { result.height = Math.max(y - parentViewBox.y, 0); result.width = upperWidth; } return result; } if (position === "bottom") { var _result = { x: lowerX + lowerWidth / 2, y: y + height + verticalOffset, horizontalAnchor: "middle", verticalAnchor: verticalStart }; if (clamp && parentViewBox) { _result.height = Math.max(parentViewBox.y + parentViewBox.height - (y + height), 0); _result.width = lowerWidth; } return _result; } if (position === "left") { var _result2 = { x: middleX - horizontalOffset, y: y + height / 2, horizontalAnchor: horizontalEnd, verticalAnchor: "middle" }; if (clamp && parentViewBox) { _result2.width = Math.max(_result2.x - parentViewBox.x, 0); _result2.height = height; } return _result2; } if (position === "right") { var _result3 = { x: middleX + midHeightWidth + horizontalOffset, y: y + height / 2, horizontalAnchor: horizontalStart, verticalAnchor: "middle" }; if (clamp && parentViewBox) { _result3.width = Math.max(parentViewBox.x + parentViewBox.width - _result3.x, 0); _result3.height = height; } return _result3; } var sizeAttrs = clamp && parentViewBox ? { width: midHeightWidth, height } : {}; if (position === "insideLeft") return _objectSpread$44({ x: middleX + horizontalOffset, y: y + height / 2, horizontalAnchor: horizontalStart, verticalAnchor: "middle" }, sizeAttrs); if (position === "insideRight") return _objectSpread$44({ x: middleX + midHeightWidth - horizontalOffset, y: y + height / 2, horizontalAnchor: horizontalEnd, verticalAnchor: "middle" }, sizeAttrs); if (position === "insideTop") return _objectSpread$44({ x: upperX + upperWidth / 2, y: y + verticalOffset, horizontalAnchor: "middle", verticalAnchor: verticalStart }, sizeAttrs); if (position === "insideBottom") return _objectSpread$44({ x: lowerX + lowerWidth / 2, y: y + height - verticalOffset, horizontalAnchor: "middle", verticalAnchor: verticalEnd }, sizeAttrs); if (position === "insideTopLeft") return _objectSpread$44({ x: upperX + horizontalOffset, y: y + verticalOffset, horizontalAnchor: horizontalStart, verticalAnchor: verticalStart }, sizeAttrs); if (position === "insideTopRight") return _objectSpread$44({ x: upperX + upperWidth - horizontalOffset, y: y + verticalOffset, horizontalAnchor: horizontalEnd, verticalAnchor: verticalStart }, sizeAttrs); if (position === "insideBottomLeft") return _objectSpread$44({ x: lowerX + horizontalOffset, y: y + height - verticalOffset, horizontalAnchor: horizontalStart, verticalAnchor: verticalEnd }, sizeAttrs); if (position === "insideBottomRight") return _objectSpread$44({ x: lowerX + lowerWidth - horizontalOffset, y: y + height - verticalOffset, horizontalAnchor: horizontalEnd, verticalAnchor: verticalEnd }, sizeAttrs); if (!!position && typeof position === "object" && (isNumber(position.x) || isPercent(position.x)) && (isNumber(position.y) || isPercent(position.y))) return _objectSpread$44({ x: x + getPercentValue(position.x, midHeightWidth), y: y + getPercentValue(position.y, height), horizontalAnchor: "end", verticalAnchor: "end" }, sizeAttrs); return _objectSpread$44({ x: centerX, y: y + height / 2, horizontalAnchor: "middle", verticalAnchor: "middle" }, sizeAttrs); }; //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/Label.js var _excluded$30 = ["labelRef"], _excluded2$15 = ["content"]; function _objectWithoutProperties$30(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$30(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$30(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } function ownKeys$43(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread$43(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$43(Object(t), !0).forEach(function(r) { _defineProperty$43(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$43(Object(t)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _defineProperty$43(e, r, t) { return (r = _toPropertyKey$43(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey$43(t) { var i = _toPrimitive$43(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive$43(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } function _extends$39() { return _extends$39 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$39.apply(null, arguments); } /** * @inline */ /** * @inline */ /** * @inline */ var CartesianLabelContext = /* @__PURE__ */ (0, import_react.createContext)(null); var CartesianLabelContextProvider = (_ref) => { var { x, y, upperWidth, lowerWidth, width, height, children } = _ref; var viewBox = (0, import_react.useMemo)(() => ({ x, y, upperWidth, lowerWidth, width, height }), [ x, y, upperWidth, lowerWidth, width, height ]); return /* @__PURE__ */ import_react.createElement(CartesianLabelContext.Provider, { value: viewBox }, children); }; var useCartesianLabelContext = () => { var labelChildContext = (0, import_react.useContext)(CartesianLabelContext); var chartContext = useViewBox(); return labelChildContext || (chartContext ? cartesianViewBoxToTrapezoid(chartContext) : void 0); }; var PolarLabelContext = /* @__PURE__ */ (0, import_react.createContext)(null); var PolarLabelContextProvider = (_ref2) => { var { cx, cy, innerRadius, outerRadius, startAngle, endAngle, clockWise, children } = _ref2; var viewBox = (0, import_react.useMemo)(() => ({ cx, cy, innerRadius, outerRadius, startAngle, endAngle, clockWise }), [ cx, cy, innerRadius, outerRadius, startAngle, endAngle, clockWise ]); return /* @__PURE__ */ import_react.createElement(PolarLabelContext.Provider, { value: viewBox }, children); }; var usePolarLabelContext = () => { var labelChildContext = (0, import_react.useContext)(PolarLabelContext); var chartContext = useAppSelector(selectPolarViewBox); return labelChildContext || chartContext; }; var getLabel = (props) => { var { value, formatter } = props; var label = isNullish(props.children) ? value : props.children; if (typeof formatter === "function") return formatter(label); return label; }; var isLabelContentAFunction = (content) => { return content != null && typeof content === "function"; }; var getDeltaAngle = (startAngle, endAngle) => { return mathSign(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 360); }; var renderRadialLabel = (labelProps, position, label, attrs, viewBox) => { var { offset, className } = labelProps; var { cx, cy, innerRadius, outerRadius, startAngle, endAngle, clockWise } = viewBox; var radius = (innerRadius + outerRadius) / 2; var deltaAngle = getDeltaAngle(startAngle, endAngle); var sign = deltaAngle >= 0 ? 1 : -1; var labelAngle, direction; switch (position) { case "insideStart": labelAngle = startAngle + sign * offset; direction = clockWise; break; case "insideEnd": labelAngle = endAngle - sign * offset; direction = !clockWise; break; case "end": labelAngle = endAngle + sign * offset; direction = clockWise; break; default: throw new Error("Unsupported position ".concat(position)); } direction = deltaAngle <= 0 ? direction : !direction; var startPoint = polarToCartesian(cx, cy, radius, labelAngle); var endPoint = polarToCartesian(cx, cy, radius, labelAngle + (direction ? 1 : -1) * 359); var path = "M".concat(startPoint.x, ",").concat(startPoint.y, "\n A").concat(radius, ",").concat(radius, ",0,1,").concat(direction ? 0 : 1, ",\n ").concat(endPoint.x, ",").concat(endPoint.y); var id = isNullish(labelProps.id) ? uniqueId("recharts-radial-line-") : labelProps.id; return /* @__PURE__ */ import_react.createElement("text", _extends$39({}, attrs, { dominantBaseline: "central", className: clsx("recharts-radial-bar-label", className) }), /* @__PURE__ */ import_react.createElement("defs", null, /* @__PURE__ */ import_react.createElement("path", { id, d: path })), /* @__PURE__ */ import_react.createElement("textPath", { xlinkHref: "#".concat(id) }, label)); }; var getAttrsOfPolarLabel = (viewBox, offset, position) => { var { cx, cy, innerRadius, outerRadius, startAngle, endAngle } = viewBox; var midAngle = (startAngle + endAngle) / 2; if (position === "outside") { var { x: _x, y: _y } = polarToCartesian(cx, cy, outerRadius + offset, midAngle); return { x: _x, y: _y, textAnchor: _x >= cx ? "start" : "end", verticalAnchor: "middle" }; } if (position === "center") return { x: cx, y: cy, textAnchor: "middle", verticalAnchor: "middle" }; if (position === "centerTop") return { x: cx, y: cy, textAnchor: "middle", verticalAnchor: "start" }; if (position === "centerBottom") return { x: cx, y: cy, textAnchor: "middle", verticalAnchor: "end" }; var { x, y } = polarToCartesian(cx, cy, (innerRadius + outerRadius) / 2, midAngle); return { x, y, textAnchor: "middle", verticalAnchor: "middle" }; }; var isPolar = (viewBox) => viewBox != null && "cx" in viewBox && isNumber(viewBox.cx); var defaultLabelProps = { angle: 0, offset: 5, zIndex: DefaultZIndexes.label, position: "middle", textBreakAll: false }; function polarViewBoxToTrapezoid(viewBox) { if (!isPolar(viewBox)) return viewBox; var { cx, cy, outerRadius } = viewBox; var diameter = outerRadius * 2; return { x: cx - outerRadius, y: cy - outerRadius, width: diameter, upperWidth: diameter, lowerWidth: diameter, height: diameter }; } /** * @consumes CartesianViewBoxContext * @consumes PolarViewBoxContext * @consumes CartesianLabelContext * @consumes PolarLabelContext */ function Label(outerProps) { var props = resolveDefaultProps(outerProps, defaultLabelProps); var { viewBox: viewBoxFromProps, parentViewBox, position, value, children, content, className = "", textBreakAll, labelRef } = props; var polarViewBox = usePolarLabelContext(); var cartesianViewBox = useCartesianLabelContext(); var resolvedViewBox = position === "center" ? cartesianViewBox : polarViewBox !== null && polarViewBox !== void 0 ? polarViewBox : cartesianViewBox; var viewBox, label, positionAttrs; if (viewBoxFromProps == null) viewBox = resolvedViewBox; else if (isPolar(viewBoxFromProps)) viewBox = viewBoxFromProps; else viewBox = cartesianViewBoxToTrapezoid(viewBoxFromProps); var cartesianBox = polarViewBoxToTrapezoid(viewBox); if (!viewBox || isNullish(value) && isNullish(children) && !/* @__PURE__ */ (0, import_react.isValidElement)(content) && typeof content !== "function") return null; var propsWithViewBox = _objectSpread$43(_objectSpread$43({}, props), {}, { viewBox }); if (/* @__PURE__ */ (0, import_react.isValidElement)(content)) { var { labelRef: _ } = propsWithViewBox; return /* @__PURE__ */ (0, import_react.cloneElement)(content, _objectWithoutProperties$30(propsWithViewBox, _excluded$30)); } if (typeof content === "function") { var { content: _2 } = propsWithViewBox; label = /* @__PURE__ */ (0, import_react.createElement)(content, _objectWithoutProperties$30(propsWithViewBox, _excluded2$15)); if (/* @__PURE__ */ (0, import_react.isValidElement)(label)) return label; } else label = getLabel(props); var attrs = svgPropertiesAndEvents(props); if (isPolar(viewBox)) { if (position === "insideStart" || position === "insideEnd" || position === "end") return renderRadialLabel(props, position, label, attrs, viewBox); positionAttrs = getAttrsOfPolarLabel(viewBox, props.offset, props.position); } else { if (!cartesianBox) return null; var cartesianResult = getCartesianPosition({ viewBox: cartesianBox, position, offset: props.offset, parentViewBox: isPolar(parentViewBox) ? void 0 : parentViewBox, clamp: true }); positionAttrs = _objectSpread$43(_objectSpread$43({ x: cartesianResult.x, y: cartesianResult.y, textAnchor: cartesianResult.horizontalAnchor, verticalAnchor: cartesianResult.verticalAnchor }, cartesianResult.width !== void 0 ? { width: cartesianResult.width } : {}), cartesianResult.height !== void 0 ? { height: cartesianResult.height } : {}); } return /* @__PURE__ */ import_react.createElement(ZIndexLayer, { zIndex: props.zIndex }, /* @__PURE__ */ import_react.createElement(Text, _extends$39({ ref: labelRef, className: clsx("recharts-label", className) }, attrs, positionAttrs, { textAnchor: isValidTextAnchor(attrs.textAnchor) ? attrs.textAnchor : positionAttrs.textAnchor, breakAll: textBreakAll }), label)); } Label.displayName = "Label"; var parseLabel = (label, viewBox, labelRef) => { if (!label) return null; var commonProps = { viewBox, labelRef }; if (label === true) return /* @__PURE__ */ import_react.createElement(Label, _extends$39({ key: "label-implicit" }, commonProps)); if (isNumOrStr(label)) return /* @__PURE__ */ import_react.createElement(Label, _extends$39({ key: "label-implicit", value: label }, commonProps)); if (/* @__PURE__ */ (0, import_react.isValidElement)(label)) { if (label.type === Label) return /* @__PURE__ */ (0, import_react.cloneElement)(label, _objectSpread$43({ key: "label-implicit" }, commonProps)); return /* @__PURE__ */ import_react.createElement(Label, _extends$39({ key: "label-implicit", content: label }, commonProps)); } if (isLabelContentAFunction(label)) return /* @__PURE__ */ import_react.createElement(Label, _extends$39({ key: "label-implicit", content: label }, commonProps)); if (label && typeof label === "object") return /* @__PURE__ */ import_react.createElement(Label, _extends$39({}, label, { key: "label-implicit" }, commonProps)); return null; }; function CartesianLabelFromLabelProp(_ref3) { var { label, labelRef } = _ref3; return parseLabel(label, useCartesianLabelContext(), labelRef) || null; } function PolarLabelFromLabelProp(_ref4) { var { label } = _ref4; return parseLabel(label, usePolarLabelContext()) || null; } //#endregion //#region .yarn/__virtual__/recharts-virtual-325d88ca36/3/AppData/Local/Yarn/Berry/cache/recharts-npm-3.8.1-9f57b72cb4-10c0.zip/node_modules/recharts/es6/component/LabelList.js var _excluded$29 = ["valueAccessor"], _excluded2$14 = [ "dataKey", "clockWise", "id", "textBreakAll", "zIndex" ]; function _extends$38() { return _extends$38 = Object.assign ? Object.assign.bind() : function(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$38.apply(null, arguments); } function _objectWithoutProperties$29(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose$29(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; } function _objectWithoutPropertiesLoose$29(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } /** * This is public API because we expose it as the valueAccessor parameter. * * The properties of "viewBox" are repeated as the root props of the entry object. * So it doesn't matter if you read entry.x or entry.viewBox.x, they are the same. * * It's not necessary to pass redundant data, but we keep it for backward compatibility. */ /** * LabelList props do not allow refs because the same props are reused in multiple elements so we don't have a good single place to ref to. */ /** * This is the type accepted for the `label` prop on various graphical items. * It accepts: * * boolean: * true = labels show, * false = labels don't show * React element: * will be cloned with extra props * function: * is used as